diff --git a/owl-bot-staging/java-container/v1/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java similarity index 100% rename from owl-bot-staging/java-container/v1/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java rename to java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java 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 new file mode 100644 index 000000000000..4a7cc8076b11 --- /dev/null +++ b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java @@ -0,0 +1,585 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.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(); + } + + 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(); + } + + @Override + public ClusterManagerSettings build() throws IOException { + return new ClusterManagerSettings(this); + } + } +} diff --git a/owl-bot-staging/java-container/v1/google-cloud-container/src/main/java/com/google/cloud/container/v1/gapic_metadata.json b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-container/v1/google-cloud-container/src/main/java/com/google/cloud/container/v1/gapic_metadata.json rename to java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/gapic_metadata.json diff --git a/owl-bot-staging/java-container/v1/google-cloud-container/src/main/java/com/google/cloud/container/v1/package-info.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/package-info.java similarity index 100% rename from owl-bot-staging/java-container/v1/google-cloud-container/src/main/java/com/google/cloud/container/v1/package-info.java rename to java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/package-info.java diff --git a/owl-bot-staging/java-container/v1/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStub.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStub.java similarity index 100% rename from owl-bot-staging/java-container/v1/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStub.java rename to java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStub.java diff --git a/owl-bot-staging/java-container/v1/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java similarity index 100% rename from owl-bot-staging/java-container/v1/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java rename to java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java diff --git a/owl-bot-staging/java-container/v1/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerCallableFactory.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerCallableFactory.java similarity index 100% rename from owl-bot-staging/java-container/v1/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerCallableFactory.java rename to java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerCallableFactory.java 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 new file mode 100644 index 000000000000..4561644d9508 --- /dev/null +++ b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerStub.java @@ -0,0 +1,1267 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.UnaryCallable; +import com.google.common.collect.ImmutableMap; +import com.google.container.v1.CancelOperationRequest; +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 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 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 -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings getClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getClusterMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings createClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createClusterMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings updateClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateClusterMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings updateNodePoolTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateNodePoolMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("node_pool_id", String.valueOf(request.getNodePoolId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings + setNodePoolAutoscalingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setNodePoolAutoscalingMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("node_pool_id", String.valueOf(request.getNodePoolId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings setLoggingServiceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setLoggingServiceMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings setMonitoringServiceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setMonitoringServiceMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings setAddonsConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setAddonsConfigMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings setLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings updateMasterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateMasterMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings setMasterAuthTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setMasterAuthMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings deleteClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteClusterMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings + listOperationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listOperationsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings getOperationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getOperationMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + params.put("operation_id", String.valueOf(request.getOperationId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings cancelOperationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(cancelOperationMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + params.put("operation_id", String.valueOf(request.getOperationId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings getServerConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getServerConfigMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings + getJSONWebKeysTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getJSONWebKeysMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings listNodePoolsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listNodePoolsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("parent", String.valueOf(request.getParent())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings getNodePoolTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getNodePoolMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("node_pool_id", String.valueOf(request.getNodePoolId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings createNodePoolTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createNodePoolMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("parent", String.valueOf(request.getParent())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings deleteNodePoolTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteNodePoolMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("node_pool_id", String.valueOf(request.getNodePoolId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings + completeNodePoolUpgradeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(completeNodePoolUpgradeMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + rollbackNodePoolUpgradeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(rollbackNodePoolUpgradeMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("node_pool_id", String.valueOf(request.getNodePoolId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings + setNodePoolManagementTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setNodePoolManagementMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("node_pool_id", String.valueOf(request.getNodePoolId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings setLabelsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setLabelsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings setLegacyAbacTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setLegacyAbacMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings startIPRotationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(startIPRotationMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings completeIPRotationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(completeIPRotationMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings setNodePoolSizeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setNodePoolSizeMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("node_pool_id", String.valueOf(request.getNodePoolId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings setNetworkPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setNetworkPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings setMaintenancePolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setMaintenancePolicyMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings + listUsableSubnetworksTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listUsableSubnetworksMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + + this.listClustersCallable = + callableFactory.createUnaryCallable( + listClustersTransportSettings, settings.listClustersSettings(), clientContext); + this.getClusterCallable = + callableFactory.createUnaryCallable( + getClusterTransportSettings, settings.getClusterSettings(), clientContext); + this.createClusterCallable = + callableFactory.createUnaryCallable( + createClusterTransportSettings, settings.createClusterSettings(), clientContext); + this.updateClusterCallable = + callableFactory.createUnaryCallable( + updateClusterTransportSettings, settings.updateClusterSettings(), clientContext); + this.updateNodePoolCallable = + callableFactory.createUnaryCallable( + updateNodePoolTransportSettings, settings.updateNodePoolSettings(), clientContext); + this.setNodePoolAutoscalingCallable = + callableFactory.createUnaryCallable( + setNodePoolAutoscalingTransportSettings, + settings.setNodePoolAutoscalingSettings(), + clientContext); + this.setLoggingServiceCallable = + callableFactory.createUnaryCallable( + setLoggingServiceTransportSettings, + settings.setLoggingServiceSettings(), + clientContext); + this.setMonitoringServiceCallable = + callableFactory.createUnaryCallable( + setMonitoringServiceTransportSettings, + settings.setMonitoringServiceSettings(), + clientContext); + this.setAddonsConfigCallable = + callableFactory.createUnaryCallable( + setAddonsConfigTransportSettings, settings.setAddonsConfigSettings(), clientContext); + this.setLocationsCallable = + callableFactory.createUnaryCallable( + setLocationsTransportSettings, settings.setLocationsSettings(), clientContext); + this.updateMasterCallable = + callableFactory.createUnaryCallable( + updateMasterTransportSettings, settings.updateMasterSettings(), clientContext); + this.setMasterAuthCallable = + callableFactory.createUnaryCallable( + setMasterAuthTransportSettings, settings.setMasterAuthSettings(), clientContext); + this.deleteClusterCallable = + callableFactory.createUnaryCallable( + deleteClusterTransportSettings, settings.deleteClusterSettings(), clientContext); + this.listOperationsCallable = + callableFactory.createUnaryCallable( + listOperationsTransportSettings, settings.listOperationsSettings(), clientContext); + this.getOperationCallable = + callableFactory.createUnaryCallable( + getOperationTransportSettings, settings.getOperationSettings(), clientContext); + this.cancelOperationCallable = + callableFactory.createUnaryCallable( + cancelOperationTransportSettings, settings.cancelOperationSettings(), clientContext); + this.getServerConfigCallable = + callableFactory.createUnaryCallable( + getServerConfigTransportSettings, settings.getServerConfigSettings(), clientContext); + this.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.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 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/owl-bot-staging/java-container/v1beta1/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerClient.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerClient.java similarity index 100% rename from owl-bot-staging/java-container/v1beta1/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerClient.java rename to java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerClient.java 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 new file mode 100644 index 000000000000..9c8e7e5a3ba3 --- /dev/null +++ b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerSettings.java @@ -0,0 +1,599 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.container.v1beta1; + +import static com.google.cloud.container.v1beta1.ClusterManagerClient.ListUsableSubnetworksPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.container.v1beta1.stub.ClusterManagerStubSettings; +import com.google.container.v1beta1.CancelOperationRequest; +import com.google.container.v1beta1.Cluster; +import com.google.container.v1beta1.CompleteIPRotationRequest; +import com.google.container.v1beta1.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 listNodePools. */ + public UnaryCallSettings listNodePoolsSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).listNodePoolsSettings(); + } + + /** Returns the object with the settings used for calls to getJSONWebKeys. */ + public UnaryCallSettings getJSONWebKeysSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).getJSONWebKeysSettings(); + } + + /** Returns the object with the settings used for calls to getNodePool. */ + public UnaryCallSettings getNodePoolSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).getNodePoolSettings(); + } + + /** Returns the object with the settings used for calls to createNodePool. */ + public UnaryCallSettings createNodePoolSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).createNodePoolSettings(); + } + + /** Returns the object with the settings used for calls to deleteNodePool. */ + public UnaryCallSettings deleteNodePoolSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).deleteNodePoolSettings(); + } + + /** Returns the object with the settings used for calls to 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 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 listNodePools. */ + public UnaryCallSettings.Builder + listNodePoolsSettings() { + return getStubSettingsBuilder().listNodePoolsSettings(); + } + + /** Returns the builder for the settings used for calls to getJSONWebKeys. */ + public UnaryCallSettings.Builder + getJSONWebKeysSettings() { + return getStubSettingsBuilder().getJSONWebKeysSettings(); + } + + /** Returns the builder for the settings used for calls to getNodePool. */ + public UnaryCallSettings.Builder getNodePoolSettings() { + return getStubSettingsBuilder().getNodePoolSettings(); + } + + /** Returns the builder for the settings used for calls to createNodePool. */ + public UnaryCallSettings.Builder createNodePoolSettings() { + return getStubSettingsBuilder().createNodePoolSettings(); + } + + /** Returns the builder for the settings used for calls to deleteNodePool. */ + public UnaryCallSettings.Builder deleteNodePoolSettings() { + return getStubSettingsBuilder().deleteNodePoolSettings(); + } + + /** Returns the builder for the settings used for calls to 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 listLocations. */ + public UnaryCallSettings.Builder + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + @Override + public ClusterManagerSettings build() throws IOException { + return new ClusterManagerSettings(this); + } + } +} diff --git a/owl-bot-staging/java-container/v1beta1/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/gapic_metadata.json b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-container/v1beta1/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/gapic_metadata.json rename to java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/gapic_metadata.json diff --git a/owl-bot-staging/java-container/v1beta1/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/package-info.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/package-info.java similarity index 100% rename from owl-bot-staging/java-container/v1beta1/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/package-info.java rename to java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/package-info.java diff --git a/owl-bot-staging/java-container/v1beta1/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/ClusterManagerStub.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/ClusterManagerStub.java similarity index 100% rename from owl-bot-staging/java-container/v1beta1/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/ClusterManagerStub.java rename to java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/ClusterManagerStub.java diff --git a/owl-bot-staging/java-container/v1beta1/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/ClusterManagerStubSettings.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/ClusterManagerStubSettings.java similarity index 100% rename from owl-bot-staging/java-container/v1beta1/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/ClusterManagerStubSettings.java rename to java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/ClusterManagerStubSettings.java diff --git a/owl-bot-staging/java-container/v1beta1/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/GrpcClusterManagerCallableFactory.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/GrpcClusterManagerCallableFactory.java similarity index 100% rename from owl-bot-staging/java-container/v1beta1/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/GrpcClusterManagerCallableFactory.java rename to java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/GrpcClusterManagerCallableFactory.java 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 new file mode 100644 index 000000000000..2999b3d01d6a --- /dev/null +++ b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/GrpcClusterManagerStub.java @@ -0,0 +1,1301 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.UnaryCallable; +import com.google.common.collect.ImmutableMap; +import com.google.container.v1beta1.CancelOperationRequest; +import com.google.container.v1beta1.Cluster; +import com.google.container.v1beta1.CompleteIPRotationRequest; +import com.google.container.v1beta1.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 + listNodePoolsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/ListNodePools") + .setRequestMarshaller( + ProtoUtils.marshaller(ListNodePoolsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListNodePoolsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getJSONWebKeysMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/GetJSONWebKeys") + .setRequestMarshaller( + ProtoUtils.marshaller(GetJSONWebKeysRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(GetJSONWebKeysResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getNodePoolMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/GetNodePool") + .setRequestMarshaller(ProtoUtils.marshaller(GetNodePoolRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(NodePool.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createNodePoolMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/CreateNodePool") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateNodePoolRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteNodePoolMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/DeleteNodePool") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteNodePoolRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + 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 + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .build(); + + private final UnaryCallable listClustersCallable; + private final UnaryCallable getClusterCallable; + private final UnaryCallable createClusterCallable; + private final UnaryCallable updateClusterCallable; + private final UnaryCallable updateNodePoolCallable; + private final UnaryCallable + setNodePoolAutoscalingCallable; + private final UnaryCallable setLoggingServiceCallable; + private final UnaryCallable setMonitoringServiceCallable; + private final UnaryCallable setAddonsConfigCallable; + private final UnaryCallable setLocationsCallable; + private final UnaryCallable updateMasterCallable; + private final UnaryCallable setMasterAuthCallable; + private final UnaryCallable deleteClusterCallable; + private final UnaryCallable listOperationsCallable; + private final UnaryCallable getOperationCallable; + private final UnaryCallable cancelOperationCallable; + private final UnaryCallable getServerConfigCallable; + private final UnaryCallable listNodePoolsCallable; + private final UnaryCallable getJSONWebKeysCallable; + private final UnaryCallable getNodePoolCallable; + private final UnaryCallable createNodePoolCallable; + private final UnaryCallable deleteNodePoolCallable; + private final UnaryCallable + 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 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 -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings getClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getClusterMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings createClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createClusterMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings updateClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateClusterMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings updateNodePoolTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateNodePoolMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("node_pool_id", String.valueOf(request.getNodePoolId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings + setNodePoolAutoscalingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setNodePoolAutoscalingMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("node_pool_id", String.valueOf(request.getNodePoolId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings setLoggingServiceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setLoggingServiceMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings setMonitoringServiceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setMonitoringServiceMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings setAddonsConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setAddonsConfigMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings setLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings updateMasterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateMasterMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings setMasterAuthTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setMasterAuthMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings deleteClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteClusterMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings + listOperationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listOperationsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings getOperationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getOperationMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + params.put("operation_id", String.valueOf(request.getOperationId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings cancelOperationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(cancelOperationMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + params.put("operation_id", String.valueOf(request.getOperationId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings getServerConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getServerConfigMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings listNodePoolsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listNodePoolsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("parent", String.valueOf(request.getParent())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings + getJSONWebKeysTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getJSONWebKeysMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings getNodePoolTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getNodePoolMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("node_pool_id", String.valueOf(request.getNodePoolId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings createNodePoolTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createNodePoolMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("parent", String.valueOf(request.getParent())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings deleteNodePoolTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteNodePoolMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("node_pool_id", String.valueOf(request.getNodePoolId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings + completeNodePoolUpgradeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(completeNodePoolUpgradeMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + rollbackNodePoolUpgradeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(rollbackNodePoolUpgradeMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("node_pool_id", String.valueOf(request.getNodePoolId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings + setNodePoolManagementTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setNodePoolManagementMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("node_pool_id", String.valueOf(request.getNodePoolId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings setLabelsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setLabelsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings setLegacyAbacTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setLegacyAbacMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings startIPRotationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(startIPRotationMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings completeIPRotationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(completeIPRotationMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings setNodePoolSizeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setNodePoolSizeMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("node_pool_id", String.valueOf(request.getNodePoolId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings setNetworkPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setNetworkPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings setMaintenancePolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setMaintenancePolicyMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + }) + .build(); + GrpcCallSettings + listUsableSubnetworksTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listUsableSubnetworksMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + + this.listClustersCallable = + callableFactory.createUnaryCallable( + listClustersTransportSettings, settings.listClustersSettings(), clientContext); + this.getClusterCallable = + callableFactory.createUnaryCallable( + getClusterTransportSettings, settings.getClusterSettings(), clientContext); + this.createClusterCallable = + callableFactory.createUnaryCallable( + createClusterTransportSettings, settings.createClusterSettings(), clientContext); + this.updateClusterCallable = + callableFactory.createUnaryCallable( + updateClusterTransportSettings, settings.updateClusterSettings(), clientContext); + this.updateNodePoolCallable = + callableFactory.createUnaryCallable( + updateNodePoolTransportSettings, settings.updateNodePoolSettings(), clientContext); + this.setNodePoolAutoscalingCallable = + callableFactory.createUnaryCallable( + setNodePoolAutoscalingTransportSettings, + settings.setNodePoolAutoscalingSettings(), + clientContext); + this.setLoggingServiceCallable = + callableFactory.createUnaryCallable( + setLoggingServiceTransportSettings, + settings.setLoggingServiceSettings(), + clientContext); + this.setMonitoringServiceCallable = + callableFactory.createUnaryCallable( + setMonitoringServiceTransportSettings, + settings.setMonitoringServiceSettings(), + clientContext); + this.setAddonsConfigCallable = + callableFactory.createUnaryCallable( + setAddonsConfigTransportSettings, settings.setAddonsConfigSettings(), clientContext); + this.setLocationsCallable = + callableFactory.createUnaryCallable( + setLocationsTransportSettings, settings.setLocationsSettings(), clientContext); + this.updateMasterCallable = + callableFactory.createUnaryCallable( + updateMasterTransportSettings, settings.updateMasterSettings(), clientContext); + this.setMasterAuthCallable = + callableFactory.createUnaryCallable( + setMasterAuthTransportSettings, settings.setMasterAuthSettings(), clientContext); + this.deleteClusterCallable = + callableFactory.createUnaryCallable( + deleteClusterTransportSettings, settings.deleteClusterSettings(), clientContext); + this.listOperationsCallable = + callableFactory.createUnaryCallable( + listOperationsTransportSettings, settings.listOperationsSettings(), clientContext); + this.getOperationCallable = + callableFactory.createUnaryCallable( + getOperationTransportSettings, settings.getOperationSettings(), clientContext); + this.cancelOperationCallable = + callableFactory.createUnaryCallable( + cancelOperationTransportSettings, settings.cancelOperationSettings(), clientContext); + this.getServerConfigCallable = + callableFactory.createUnaryCallable( + getServerConfigTransportSettings, settings.getServerConfigSettings(), clientContext); + this.listNodePoolsCallable = + callableFactory.createUnaryCallable( + listNodePoolsTransportSettings, settings.listNodePoolsSettings(), clientContext); + this.getJSONWebKeysCallable = + callableFactory.createUnaryCallable( + getJSONWebKeysTransportSettings, settings.getJSONWebKeysSettings(), clientContext); + this.getNodePoolCallable = + callableFactory.createUnaryCallable( + getNodePoolTransportSettings, settings.getNodePoolSettings(), clientContext); + this.createNodePoolCallable = + callableFactory.createUnaryCallable( + createNodePoolTransportSettings, settings.createNodePoolSettings(), clientContext); + this.deleteNodePoolCallable = + callableFactory.createUnaryCallable( + deleteNodePoolTransportSettings, settings.deleteNodePoolSettings(), clientContext); + this.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.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable listClustersCallable() { + return listClustersCallable; + } + + @Override + public UnaryCallable getClusterCallable() { + return getClusterCallable; + } + + @Override + public UnaryCallable createClusterCallable() { + return createClusterCallable; + } + + @Override + public UnaryCallable updateClusterCallable() { + return updateClusterCallable; + } + + @Override + public UnaryCallable updateNodePoolCallable() { + return updateNodePoolCallable; + } + + @Override + public UnaryCallable setNodePoolAutoscalingCallable() { + return setNodePoolAutoscalingCallable; + } + + @Override + public UnaryCallable setLoggingServiceCallable() { + return setLoggingServiceCallable; + } + + @Override + public UnaryCallable setMonitoringServiceCallable() { + return setMonitoringServiceCallable; + } + + @Override + public UnaryCallable setAddonsConfigCallable() { + return setAddonsConfigCallable; + } + + @Override + public UnaryCallable setLocationsCallable() { + return setLocationsCallable; + } + + @Override + public UnaryCallable updateMasterCallable() { + return updateMasterCallable; + } + + @Override + public UnaryCallable setMasterAuthCallable() { + return setMasterAuthCallable; + } + + @Override + public UnaryCallable deleteClusterCallable() { + return deleteClusterCallable; + } + + @Override + public UnaryCallable listOperationsCallable() { + return listOperationsCallable; + } + + @Override + public UnaryCallable getOperationCallable() { + return getOperationCallable; + } + + @Override + public UnaryCallable cancelOperationCallable() { + return cancelOperationCallable; + } + + @Override + public UnaryCallable getServerConfigCallable() { + return getServerConfigCallable; + } + + @Override + public UnaryCallable listNodePoolsCallable() { + return listNodePoolsCallable; + } + + @Override + public UnaryCallable getJSONWebKeysCallable() { + return getJSONWebKeysCallable; + } + + @Override + public UnaryCallable getNodePoolCallable() { + return getNodePoolCallable; + } + + @Override + public UnaryCallable createNodePoolCallable() { + return createNodePoolCallable; + } + + @Override + public UnaryCallable deleteNodePoolCallable() { + return deleteNodePoolCallable; + } + + @Override + public UnaryCallable 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 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/owl-bot-staging/java-container/v1/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientTest.java b/java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientTest.java similarity index 100% rename from owl-bot-staging/java-container/v1/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientTest.java rename to java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientTest.java diff --git a/owl-bot-staging/java-container/v1/google-cloud-container/src/test/java/com/google/cloud/container/v1/MockClusterManager.java b/java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1/MockClusterManager.java similarity index 100% rename from owl-bot-staging/java-container/v1/google-cloud-container/src/test/java/com/google/cloud/container/v1/MockClusterManager.java rename to java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1/MockClusterManager.java diff --git a/owl-bot-staging/java-container/v1/google-cloud-container/src/test/java/com/google/cloud/container/v1/MockClusterManagerImpl.java b/java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1/MockClusterManagerImpl.java similarity index 100% rename from owl-bot-staging/java-container/v1/google-cloud-container/src/test/java/com/google/cloud/container/v1/MockClusterManagerImpl.java rename to java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1/MockClusterManagerImpl.java diff --git a/owl-bot-staging/java-container/v1beta1/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/ClusterManagerClientTest.java b/java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/ClusterManagerClientTest.java similarity index 100% rename from owl-bot-staging/java-container/v1beta1/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/ClusterManagerClientTest.java rename to java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/ClusterManagerClientTest.java diff --git a/owl-bot-staging/java-container/v1beta1/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/MockClusterManager.java b/java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/MockClusterManager.java similarity index 100% rename from owl-bot-staging/java-container/v1beta1/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/MockClusterManager.java rename to java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/MockClusterManager.java diff --git a/owl-bot-staging/java-container/v1beta1/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/MockClusterManagerImpl.java b/java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/MockClusterManagerImpl.java similarity index 100% rename from owl-bot-staging/java-container/v1beta1/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/MockClusterManagerImpl.java rename to java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/MockClusterManagerImpl.java 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 new file mode 100644 index 000000000000..c1c2f1dd4085 --- /dev/null +++ b/java-container/grpc-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterManagerGrpc.java @@ -0,0 +1,4086 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 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; + } + + /** 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 abstract static class ClusterManagerImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists all clusters owned by a project in either the specified zone or all
+     * zones.
+     * 
+ */ + public void listClusters( + com.google.container.v1.ListClustersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListClustersMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getGetClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a cluster, consisting of the specified number and type of Google
+     * Compute Engine instances.
+     * By default, the cluster is created in the project's
+     * [default
+     * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks).
+     * One firewall is added for the cluster. After cluster creation,
+     * the Kubelet creates routes for each node to allow the containers
+     * on that node to communicate with all other instances in the
+     * cluster.
+     * Finally, an entry is added to the project's global metadata indicating
+     * which CIDR range the cluster is using.
+     * 
+ */ + public void createCluster( + com.google.container.v1.CreateClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateClusterMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateClusterMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateNodePoolMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( + getSetNodePoolAutoscalingMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( + getSetLoggingServiceMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( + getSetMonitoringServiceMethod(), 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.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 + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public void listOperations( + com.google.container.v1.ListOperationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListOperationsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the specified operation.
+     * 
+ */ + public void getOperation( + com.google.container.v1.GetOperationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetOperationMethod(), responseObserver); + } + + /** + * + * + *
+     * Cancels the specified operation.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * This API is not yet intended for general use, and is not available for all
+     * clusters.
+     * 
+ */ + public void getJSONWebKeys( + com.google.container.v1.GetJSONWebKeysRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetJSONWebKeysMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( + getListNodePoolsMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves the requested node pool.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public void setLegacyAbac( + com.google.container.v1.SetLegacyAbacRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetLegacyAbacMethod(), responseObserver); + } + + /** + * + * + *
+     * Starts master IP rotation.
+     * 
+ */ + public void startIPRotation( + com.google.container.v1.StartIPRotationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStartIPRotationMethod(), responseObserver); + } + + /** + * + * + *
+     * Completes master IP rotation.
+     * 
+ */ + public 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].
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public void listUsableSubnetworks( + com.google.container.v1.ListUsableSubnetworksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListUsableSubnetworksMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListClustersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.ListClustersRequest, + com.google.container.v1.ListClustersResponse>(this, METHODID_LIST_CLUSTERS))) + .addMethod( + getGetClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.GetClusterRequest, com.google.container.v1.Cluster>( + this, METHODID_GET_CLUSTER))) + .addMethod( + getCreateClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.CreateClusterRequest, + com.google.container.v1.Operation>(this, METHODID_CREATE_CLUSTER))) + .addMethod( + getUpdateClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.UpdateClusterRequest, + com.google.container.v1.Operation>(this, METHODID_UPDATE_CLUSTER))) + .addMethod( + getUpdateNodePoolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.UpdateNodePoolRequest, + com.google.container.v1.Operation>(this, METHODID_UPDATE_NODE_POOL))) + .addMethod( + getSetNodePoolAutoscalingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.SetNodePoolAutoscalingRequest, + com.google.container.v1.Operation>(this, METHODID_SET_NODE_POOL_AUTOSCALING))) + .addMethod( + getSetLoggingServiceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.SetLoggingServiceRequest, + com.google.container.v1.Operation>(this, METHODID_SET_LOGGING_SERVICE))) + .addMethod( + getSetMonitoringServiceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.SetMonitoringServiceRequest, + com.google.container.v1.Operation>(this, METHODID_SET_MONITORING_SERVICE))) + .addMethod( + getSetAddonsConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.SetAddonsConfigRequest, + com.google.container.v1.Operation>(this, METHODID_SET_ADDONS_CONFIG))) + .addMethod( + getSetLocationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.SetLocationsRequest, + com.google.container.v1.Operation>(this, METHODID_SET_LOCATIONS))) + .addMethod( + getUpdateMasterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.UpdateMasterRequest, + com.google.container.v1.Operation>(this, METHODID_UPDATE_MASTER))) + .addMethod( + getSetMasterAuthMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.SetMasterAuthRequest, + com.google.container.v1.Operation>(this, METHODID_SET_MASTER_AUTH))) + .addMethod( + getDeleteClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.DeleteClusterRequest, + com.google.container.v1.Operation>(this, METHODID_DELETE_CLUSTER))) + .addMethod( + getListOperationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.ListOperationsRequest, + com.google.container.v1.ListOperationsResponse>( + this, METHODID_LIST_OPERATIONS))) + .addMethod( + getGetOperationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.GetOperationRequest, + com.google.container.v1.Operation>(this, METHODID_GET_OPERATION))) + .addMethod( + getCancelOperationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.CancelOperationRequest, com.google.protobuf.Empty>( + this, METHODID_CANCEL_OPERATION))) + .addMethod( + getGetServerConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.GetServerConfigRequest, + com.google.container.v1.ServerConfig>(this, METHODID_GET_SERVER_CONFIG))) + .addMethod( + getGetJSONWebKeysMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.GetJSONWebKeysRequest, + com.google.container.v1.GetJSONWebKeysResponse>( + this, METHODID_GET_JSONWEB_KEYS))) + .addMethod( + getListNodePoolsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.ListNodePoolsRequest, + com.google.container.v1.ListNodePoolsResponse>( + this, METHODID_LIST_NODE_POOLS))) + .addMethod( + getGetNodePoolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.GetNodePoolRequest, com.google.container.v1.NodePool>( + this, METHODID_GET_NODE_POOL))) + .addMethod( + getCreateNodePoolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.CreateNodePoolRequest, + com.google.container.v1.Operation>(this, METHODID_CREATE_NODE_POOL))) + .addMethod( + getDeleteNodePoolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.DeleteNodePoolRequest, + com.google.container.v1.Operation>(this, METHODID_DELETE_NODE_POOL))) + .addMethod( + getCompleteNodePoolUpgradeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.CompleteNodePoolUpgradeRequest, + com.google.protobuf.Empty>(this, METHODID_COMPLETE_NODE_POOL_UPGRADE))) + .addMethod( + getRollbackNodePoolUpgradeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.RollbackNodePoolUpgradeRequest, + com.google.container.v1.Operation>( + this, METHODID_ROLLBACK_NODE_POOL_UPGRADE))) + .addMethod( + getSetNodePoolManagementMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.SetNodePoolManagementRequest, + com.google.container.v1.Operation>(this, METHODID_SET_NODE_POOL_MANAGEMENT))) + .addMethod( + getSetLabelsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.SetLabelsRequest, com.google.container.v1.Operation>( + this, METHODID_SET_LABELS))) + .addMethod( + getSetLegacyAbacMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.SetLegacyAbacRequest, + com.google.container.v1.Operation>(this, METHODID_SET_LEGACY_ABAC))) + .addMethod( + getStartIPRotationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.StartIPRotationRequest, + com.google.container.v1.Operation>(this, METHODID_START_IPROTATION))) + .addMethod( + getCompleteIPRotationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.CompleteIPRotationRequest, + com.google.container.v1.Operation>(this, METHODID_COMPLETE_IPROTATION))) + .addMethod( + getSetNodePoolSizeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.SetNodePoolSizeRequest, + com.google.container.v1.Operation>(this, METHODID_SET_NODE_POOL_SIZE))) + .addMethod( + getSetNetworkPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.SetNetworkPolicyRequest, + com.google.container.v1.Operation>(this, METHODID_SET_NETWORK_POLICY))) + .addMethod( + getSetMaintenancePolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.SetMaintenancePolicyRequest, + com.google.container.v1.Operation>(this, METHODID_SET_MAINTENANCE_POLICY))) + .addMethod( + getListUsableSubnetworksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.ListUsableSubnetworksRequest, + com.google.container.v1.ListUsableSubnetworksResponse>( + this, METHODID_LIST_USABLE_SUBNETWORKS))) + .build(); + } + } + + /** + * + * + *
+   * 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.
+     * This API is not yet intended for general use, and is not available for all
+     * clusters.
+     * 
+ */ + public void getJSONWebKeys( + com.google.container.v1.GetJSONWebKeysRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + 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); + } + } + + /** + * + * + *
+   * 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.
+     * This API is not yet intended for general use, and is not available for all
+     * clusters.
+     * 
+ */ + public com.google.container.v1.GetJSONWebKeysResponse getJSONWebKeys( + com.google.container.v1.GetJSONWebKeysRequest request) { + return 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); + } + } + + /** + * + * + *
+   * 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.
+     * This API is not yet intended for general use, and is not available for all
+     * clusters.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1.GetJSONWebKeysResponse> + getJSONWebKeys(com.google.container.v1.GetJSONWebKeysRequest request) { + return 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); + } + } + + 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 class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final ClusterManagerImplBase serviceImpl; + private final int methodId; + + MethodHandlers(ClusterManagerImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_CLUSTERS: + serviceImpl.listClusters( + (com.google.container.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; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class ClusterManagerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ClusterManagerBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.container.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 String methodName; + + ClusterManagerMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (ClusterManagerGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ClusterManagerFileDescriptorSupplier()) + .addMethod(getListClustersMethod()) + .addMethod(getGetClusterMethod()) + .addMethod(getCreateClusterMethod()) + .addMethod(getUpdateClusterMethod()) + .addMethod(getUpdateNodePoolMethod()) + .addMethod(getSetNodePoolAutoscalingMethod()) + .addMethod(getSetLoggingServiceMethod()) + .addMethod(getSetMonitoringServiceMethod()) + .addMethod(getSetAddonsConfigMethod()) + .addMethod(getSetLocationsMethod()) + .addMethod(getUpdateMasterMethod()) + .addMethod(getSetMasterAuthMethod()) + .addMethod(getDeleteClusterMethod()) + .addMethod(getListOperationsMethod()) + .addMethod(getGetOperationMethod()) + .addMethod(getCancelOperationMethod()) + .addMethod(getGetServerConfigMethod()) + .addMethod(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()) + .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 new file mode 100644 index 000000000000..c6a2c8f05b27 --- /dev/null +++ b/java-container/grpc-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterManagerGrpc.java @@ -0,0 +1,4345 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 String SERVICE_NAME = "google.container.v1beta1.ClusterManager"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.ListClustersRequest, + com.google.container.v1beta1.ListClustersResponse> + getListClustersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListClusters", + requestType = com.google.container.v1beta1.ListClustersRequest.class, + responseType = com.google.container.v1beta1.ListClustersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.ListClustersRequest, + com.google.container.v1beta1.ListClustersResponse> + getListClustersMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.ListClustersRequest, + com.google.container.v1beta1.ListClustersResponse> + getListClustersMethod; + if ((getListClustersMethod = ClusterManagerGrpc.getListClustersMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getListClustersMethod = ClusterManagerGrpc.getListClustersMethod) == null) { + ClusterManagerGrpc.getListClustersMethod = + getListClustersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListClusters")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.ListClustersRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.ListClustersResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("ListClusters")) + .build(); + } + } + } + return getListClustersMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.GetClusterRequest, com.google.container.v1beta1.Cluster> + getGetClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCluster", + requestType = com.google.container.v1beta1.GetClusterRequest.class, + responseType = com.google.container.v1beta1.Cluster.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.GetClusterRequest, com.google.container.v1beta1.Cluster> + getGetClusterMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.GetClusterRequest, com.google.container.v1beta1.Cluster> + getGetClusterMethod; + if ((getGetClusterMethod = ClusterManagerGrpc.getGetClusterMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getGetClusterMethod = ClusterManagerGrpc.getGetClusterMethod) == null) { + ClusterManagerGrpc.getGetClusterMethod = + getGetClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.GetClusterRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Cluster.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("GetCluster")) + .build(); + } + } + } + return getGetClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.CreateClusterRequest, com.google.container.v1beta1.Operation> + getCreateClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCluster", + requestType = com.google.container.v1beta1.CreateClusterRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.CreateClusterRequest, com.google.container.v1beta1.Operation> + getCreateClusterMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.CreateClusterRequest, + com.google.container.v1beta1.Operation> + getCreateClusterMethod; + if ((getCreateClusterMethod = ClusterManagerGrpc.getCreateClusterMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getCreateClusterMethod = ClusterManagerGrpc.getCreateClusterMethod) == null) { + ClusterManagerGrpc.getCreateClusterMethod = + getCreateClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.CreateClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("CreateCluster")) + .build(); + } + } + } + return getCreateClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.UpdateClusterRequest, com.google.container.v1beta1.Operation> + getUpdateClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCluster", + requestType = com.google.container.v1beta1.UpdateClusterRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.UpdateClusterRequest, com.google.container.v1beta1.Operation> + getUpdateClusterMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.UpdateClusterRequest, + com.google.container.v1beta1.Operation> + getUpdateClusterMethod; + if ((getUpdateClusterMethod = ClusterManagerGrpc.getUpdateClusterMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getUpdateClusterMethod = ClusterManagerGrpc.getUpdateClusterMethod) == null) { + ClusterManagerGrpc.getUpdateClusterMethod = + getUpdateClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.UpdateClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("UpdateCluster")) + .build(); + } + } + } + return getUpdateClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.UpdateNodePoolRequest, + com.google.container.v1beta1.Operation> + getUpdateNodePoolMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateNodePool", + requestType = com.google.container.v1beta1.UpdateNodePoolRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.UpdateNodePoolRequest, + com.google.container.v1beta1.Operation> + getUpdateNodePoolMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.UpdateNodePoolRequest, + com.google.container.v1beta1.Operation> + getUpdateNodePoolMethod; + if ((getUpdateNodePoolMethod = ClusterManagerGrpc.getUpdateNodePoolMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getUpdateNodePoolMethod = ClusterManagerGrpc.getUpdateNodePoolMethod) == null) { + ClusterManagerGrpc.getUpdateNodePoolMethod = + getUpdateNodePoolMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNodePool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.UpdateNodePoolRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("UpdateNodePool")) + .build(); + } + } + } + return getUpdateNodePoolMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetNodePoolAutoscalingRequest, + com.google.container.v1beta1.Operation> + getSetNodePoolAutoscalingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetNodePoolAutoscaling", + requestType = com.google.container.v1beta1.SetNodePoolAutoscalingRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetNodePoolAutoscalingRequest, + com.google.container.v1beta1.Operation> + getSetNodePoolAutoscalingMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetNodePoolAutoscalingRequest, + com.google.container.v1beta1.Operation> + getSetNodePoolAutoscalingMethod; + if ((getSetNodePoolAutoscalingMethod = ClusterManagerGrpc.getSetNodePoolAutoscalingMethod) + == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetNodePoolAutoscalingMethod = ClusterManagerGrpc.getSetNodePoolAutoscalingMethod) + == null) { + ClusterManagerGrpc.getSetNodePoolAutoscalingMethod = + getSetNodePoolAutoscalingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "SetNodePoolAutoscaling")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.SetNodePoolAutoscalingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("SetNodePoolAutoscaling")) + .build(); + } + } + } + return getSetNodePoolAutoscalingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetLoggingServiceRequest, + com.google.container.v1beta1.Operation> + getSetLoggingServiceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetLoggingService", + requestType = com.google.container.v1beta1.SetLoggingServiceRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetLoggingServiceRequest, + com.google.container.v1beta1.Operation> + getSetLoggingServiceMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetLoggingServiceRequest, + com.google.container.v1beta1.Operation> + getSetLoggingServiceMethod; + if ((getSetLoggingServiceMethod = ClusterManagerGrpc.getSetLoggingServiceMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetLoggingServiceMethod = ClusterManagerGrpc.getSetLoggingServiceMethod) == null) { + ClusterManagerGrpc.getSetLoggingServiceMethod = + getSetLoggingServiceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetLoggingService")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.SetLoggingServiceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("SetLoggingService")) + .build(); + } + } + } + return getSetLoggingServiceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetMonitoringServiceRequest, + com.google.container.v1beta1.Operation> + getSetMonitoringServiceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetMonitoringService", + requestType = com.google.container.v1beta1.SetMonitoringServiceRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetMonitoringServiceRequest, + com.google.container.v1beta1.Operation> + getSetMonitoringServiceMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetMonitoringServiceRequest, + com.google.container.v1beta1.Operation> + getSetMonitoringServiceMethod; + if ((getSetMonitoringServiceMethod = ClusterManagerGrpc.getSetMonitoringServiceMethod) + == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetMonitoringServiceMethod = ClusterManagerGrpc.getSetMonitoringServiceMethod) + == null) { + ClusterManagerGrpc.getSetMonitoringServiceMethod = + getSetMonitoringServiceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "SetMonitoringService")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.SetMonitoringServiceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("SetMonitoringService")) + .build(); + } + } + } + return getSetMonitoringServiceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetAddonsConfigRequest, + com.google.container.v1beta1.Operation> + getSetAddonsConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetAddonsConfig", + requestType = com.google.container.v1beta1.SetAddonsConfigRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetAddonsConfigRequest, + com.google.container.v1beta1.Operation> + getSetAddonsConfigMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetAddonsConfigRequest, + com.google.container.v1beta1.Operation> + getSetAddonsConfigMethod; + if ((getSetAddonsConfigMethod = ClusterManagerGrpc.getSetAddonsConfigMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetAddonsConfigMethod = ClusterManagerGrpc.getSetAddonsConfigMethod) == null) { + ClusterManagerGrpc.getSetAddonsConfigMethod = + getSetAddonsConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetAddonsConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.SetAddonsConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("SetAddonsConfig")) + .build(); + } + } + } + return getSetAddonsConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetLocationsRequest, com.google.container.v1beta1.Operation> + getSetLocationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetLocations", + requestType = com.google.container.v1beta1.SetLocationsRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetLocationsRequest, com.google.container.v1beta1.Operation> + getSetLocationsMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetLocationsRequest, + com.google.container.v1beta1.Operation> + getSetLocationsMethod; + if ((getSetLocationsMethod = ClusterManagerGrpc.getSetLocationsMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetLocationsMethod = ClusterManagerGrpc.getSetLocationsMethod) == null) { + ClusterManagerGrpc.getSetLocationsMethod = + getSetLocationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetLocations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.SetLocationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("SetLocations")) + .build(); + } + } + } + return getSetLocationsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.UpdateMasterRequest, com.google.container.v1beta1.Operation> + getUpdateMasterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateMaster", + requestType = com.google.container.v1beta1.UpdateMasterRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.UpdateMasterRequest, com.google.container.v1beta1.Operation> + getUpdateMasterMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.UpdateMasterRequest, + com.google.container.v1beta1.Operation> + getUpdateMasterMethod; + if ((getUpdateMasterMethod = ClusterManagerGrpc.getUpdateMasterMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getUpdateMasterMethod = ClusterManagerGrpc.getUpdateMasterMethod) == null) { + ClusterManagerGrpc.getUpdateMasterMethod = + getUpdateMasterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateMaster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.UpdateMasterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("UpdateMaster")) + .build(); + } + } + } + return getUpdateMasterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetMasterAuthRequest, com.google.container.v1beta1.Operation> + getSetMasterAuthMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetMasterAuth", + requestType = com.google.container.v1beta1.SetMasterAuthRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetMasterAuthRequest, com.google.container.v1beta1.Operation> + getSetMasterAuthMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetMasterAuthRequest, + com.google.container.v1beta1.Operation> + getSetMasterAuthMethod; + if ((getSetMasterAuthMethod = ClusterManagerGrpc.getSetMasterAuthMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetMasterAuthMethod = ClusterManagerGrpc.getSetMasterAuthMethod) == null) { + ClusterManagerGrpc.getSetMasterAuthMethod = + getSetMasterAuthMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetMasterAuth")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.SetMasterAuthRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("SetMasterAuth")) + .build(); + } + } + } + return getSetMasterAuthMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.DeleteClusterRequest, com.google.container.v1beta1.Operation> + getDeleteClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCluster", + requestType = com.google.container.v1beta1.DeleteClusterRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.DeleteClusterRequest, com.google.container.v1beta1.Operation> + getDeleteClusterMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.DeleteClusterRequest, + com.google.container.v1beta1.Operation> + getDeleteClusterMethod; + if ((getDeleteClusterMethod = ClusterManagerGrpc.getDeleteClusterMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getDeleteClusterMethod = ClusterManagerGrpc.getDeleteClusterMethod) == null) { + ClusterManagerGrpc.getDeleteClusterMethod = + getDeleteClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.DeleteClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("DeleteCluster")) + .build(); + } + } + } + return getDeleteClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.ListOperationsRequest, + com.google.container.v1beta1.ListOperationsResponse> + getListOperationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListOperations", + requestType = com.google.container.v1beta1.ListOperationsRequest.class, + responseType = com.google.container.v1beta1.ListOperationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.ListOperationsRequest, + com.google.container.v1beta1.ListOperationsResponse> + getListOperationsMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.ListOperationsRequest, + com.google.container.v1beta1.ListOperationsResponse> + getListOperationsMethod; + if ((getListOperationsMethod = ClusterManagerGrpc.getListOperationsMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getListOperationsMethod = ClusterManagerGrpc.getListOperationsMethod) == null) { + ClusterManagerGrpc.getListOperationsMethod = + getListOperationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListOperations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.ListOperationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.ListOperationsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("ListOperations")) + .build(); + } + } + } + return getListOperationsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.GetOperationRequest, com.google.container.v1beta1.Operation> + getGetOperationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetOperation", + requestType = com.google.container.v1beta1.GetOperationRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.GetOperationRequest, com.google.container.v1beta1.Operation> + getGetOperationMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.GetOperationRequest, + com.google.container.v1beta1.Operation> + getGetOperationMethod; + if ((getGetOperationMethod = ClusterManagerGrpc.getGetOperationMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getGetOperationMethod = ClusterManagerGrpc.getGetOperationMethod) == null) { + ClusterManagerGrpc.getGetOperationMethod = + getGetOperationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOperation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.GetOperationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("GetOperation")) + .build(); + } + } + } + return getGetOperationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.CancelOperationRequest, com.google.protobuf.Empty> + getCancelOperationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CancelOperation", + requestType = com.google.container.v1beta1.CancelOperationRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.CancelOperationRequest, com.google.protobuf.Empty> + getCancelOperationMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.CancelOperationRequest, com.google.protobuf.Empty> + getCancelOperationMethod; + if ((getCancelOperationMethod = ClusterManagerGrpc.getCancelOperationMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getCancelOperationMethod = ClusterManagerGrpc.getCancelOperationMethod) == null) { + ClusterManagerGrpc.getCancelOperationMethod = + getCancelOperationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CancelOperation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.CancelOperationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("CancelOperation")) + .build(); + } + } + } + return getCancelOperationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.GetServerConfigRequest, + com.google.container.v1beta1.ServerConfig> + getGetServerConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetServerConfig", + requestType = com.google.container.v1beta1.GetServerConfigRequest.class, + responseType = com.google.container.v1beta1.ServerConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.GetServerConfigRequest, + com.google.container.v1beta1.ServerConfig> + getGetServerConfigMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.GetServerConfigRequest, + com.google.container.v1beta1.ServerConfig> + getGetServerConfigMethod; + if ((getGetServerConfigMethod = ClusterManagerGrpc.getGetServerConfigMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getGetServerConfigMethod = ClusterManagerGrpc.getGetServerConfigMethod) == null) { + ClusterManagerGrpc.getGetServerConfigMethod = + getGetServerConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetServerConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.GetServerConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.ServerConfig.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("GetServerConfig")) + .build(); + } + } + } + return getGetServerConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.ListNodePoolsRequest, + com.google.container.v1beta1.ListNodePoolsResponse> + getListNodePoolsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNodePools", + requestType = com.google.container.v1beta1.ListNodePoolsRequest.class, + responseType = com.google.container.v1beta1.ListNodePoolsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.ListNodePoolsRequest, + com.google.container.v1beta1.ListNodePoolsResponse> + getListNodePoolsMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.ListNodePoolsRequest, + com.google.container.v1beta1.ListNodePoolsResponse> + getListNodePoolsMethod; + if ((getListNodePoolsMethod = ClusterManagerGrpc.getListNodePoolsMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getListNodePoolsMethod = ClusterManagerGrpc.getListNodePoolsMethod) == null) { + ClusterManagerGrpc.getListNodePoolsMethod = + getListNodePoolsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNodePools")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.ListNodePoolsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.ListNodePoolsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("ListNodePools")) + .build(); + } + } + } + return getListNodePoolsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.GetJSONWebKeysRequest, + com.google.container.v1beta1.GetJSONWebKeysResponse> + getGetJSONWebKeysMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetJSONWebKeys", + requestType = com.google.container.v1beta1.GetJSONWebKeysRequest.class, + responseType = com.google.container.v1beta1.GetJSONWebKeysResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.GetJSONWebKeysRequest, + com.google.container.v1beta1.GetJSONWebKeysResponse> + getGetJSONWebKeysMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.GetJSONWebKeysRequest, + com.google.container.v1beta1.GetJSONWebKeysResponse> + getGetJSONWebKeysMethod; + if ((getGetJSONWebKeysMethod = ClusterManagerGrpc.getGetJSONWebKeysMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getGetJSONWebKeysMethod = ClusterManagerGrpc.getGetJSONWebKeysMethod) == null) { + ClusterManagerGrpc.getGetJSONWebKeysMethod = + getGetJSONWebKeysMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetJSONWebKeys")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.GetJSONWebKeysRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.GetJSONWebKeysResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("GetJSONWebKeys")) + .build(); + } + } + } + return getGetJSONWebKeysMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.GetNodePoolRequest, com.google.container.v1beta1.NodePool> + getGetNodePoolMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetNodePool", + requestType = com.google.container.v1beta1.GetNodePoolRequest.class, + responseType = com.google.container.v1beta1.NodePool.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.GetNodePoolRequest, com.google.container.v1beta1.NodePool> + getGetNodePoolMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.GetNodePoolRequest, com.google.container.v1beta1.NodePool> + getGetNodePoolMethod; + if ((getGetNodePoolMethod = ClusterManagerGrpc.getGetNodePoolMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getGetNodePoolMethod = ClusterManagerGrpc.getGetNodePoolMethod) == null) { + ClusterManagerGrpc.getGetNodePoolMethod = + getGetNodePoolMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNodePool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.GetNodePoolRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.NodePool.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("GetNodePool")) + .build(); + } + } + } + return getGetNodePoolMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.CreateNodePoolRequest, + com.google.container.v1beta1.Operation> + getCreateNodePoolMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateNodePool", + requestType = com.google.container.v1beta1.CreateNodePoolRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.CreateNodePoolRequest, + com.google.container.v1beta1.Operation> + getCreateNodePoolMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.CreateNodePoolRequest, + com.google.container.v1beta1.Operation> + getCreateNodePoolMethod; + if ((getCreateNodePoolMethod = ClusterManagerGrpc.getCreateNodePoolMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getCreateNodePoolMethod = ClusterManagerGrpc.getCreateNodePoolMethod) == null) { + ClusterManagerGrpc.getCreateNodePoolMethod = + getCreateNodePoolMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateNodePool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.CreateNodePoolRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("CreateNodePool")) + .build(); + } + } + } + return getCreateNodePoolMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.DeleteNodePoolRequest, + com.google.container.v1beta1.Operation> + getDeleteNodePoolMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteNodePool", + requestType = com.google.container.v1beta1.DeleteNodePoolRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.DeleteNodePoolRequest, + com.google.container.v1beta1.Operation> + getDeleteNodePoolMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.DeleteNodePoolRequest, + com.google.container.v1beta1.Operation> + getDeleteNodePoolMethod; + if ((getDeleteNodePoolMethod = ClusterManagerGrpc.getDeleteNodePoolMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getDeleteNodePoolMethod = ClusterManagerGrpc.getDeleteNodePoolMethod) == null) { + ClusterManagerGrpc.getDeleteNodePoolMethod = + getDeleteNodePoolMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteNodePool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.DeleteNodePoolRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("DeleteNodePool")) + .build(); + } + } + } + return getDeleteNodePoolMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.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.ListLocationsRequest, + com.google.container.v1beta1.ListLocationsResponse> + getListLocationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListLocations", + requestType = com.google.container.v1beta1.ListLocationsRequest.class, + responseType = com.google.container.v1beta1.ListLocationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.ListLocationsRequest, + com.google.container.v1beta1.ListLocationsResponse> + getListLocationsMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.ListLocationsRequest, + com.google.container.v1beta1.ListLocationsResponse> + getListLocationsMethod; + if ((getListLocationsMethod = ClusterManagerGrpc.getListLocationsMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getListLocationsMethod = ClusterManagerGrpc.getListLocationsMethod) == null) { + ClusterManagerGrpc.getListLocationsMethod = + getListLocationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLocations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.ListLocationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.ListLocationsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("ListLocations")) + .build(); + } + } + } + return getListLocationsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static ClusterManagerStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ClusterManagerStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ClusterManagerStub(channel, callOptions); + } + }; + return ClusterManagerStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ClusterManagerBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ClusterManagerBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ClusterManagerBlockingStub(channel, callOptions); + } + }; + return ClusterManagerBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ClusterManagerFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ClusterManagerFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ClusterManagerFutureStub(channel, callOptions); + } + }; + return ClusterManagerFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Google Kubernetes Engine Cluster Manager v1beta1
+   * 
+ */ + public abstract static class ClusterManagerImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists all clusters owned by a project in either the specified zone or all
+     * zones.
+     * 
+ */ + public void listClusters( + com.google.container.v1beta1.ListClustersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListClustersMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the details for a specific cluster.
+     * 
+ */ + public void getCluster( + com.google.container.v1beta1.GetClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a cluster, consisting of the specified number and type of Google
+     * Compute Engine instances.
+     * By default, the cluster is created in the project's
+     * [default
+     * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks).
+     * One firewall is added for the cluster. After cluster creation,
+     * the Kubelet creates routes for each node to allow the containers
+     * on that node to communicate with all other instances in the
+     * cluster.
+     * Finally, an entry is added to the project's global metadata indicating
+     * which CIDR range the cluster is using.
+     * 
+ */ + public void createCluster( + com.google.container.v1beta1.CreateClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the settings for a specific cluster.
+     * 
+ */ + public void updateCluster( + com.google.container.v1beta1.UpdateClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the version and/or image type of a specific node pool.
+     * 
+ */ + public void updateNodePool( + com.google.container.v1beta1.UpdateNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateNodePoolMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets the autoscaling settings of a specific node pool.
+     * 
+ */ + public void setNodePoolAutoscaling( + com.google.container.v1beta1.SetNodePoolAutoscalingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetNodePoolAutoscalingMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets the logging service for a specific cluster.
+     * 
+ */ + public void setLoggingService( + com.google.container.v1beta1.SetLoggingServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetLoggingServiceMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets the monitoring service for a specific cluster.
+     * 
+ */ + public void setMonitoringService( + com.google.container.v1beta1.SetMonitoringServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetMonitoringServiceMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets the addons for a specific cluster.
+     * 
+ */ + public void setAddonsConfig( + com.google.container.v1beta1.SetAddonsConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetAddonsConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets the locations for a specific cluster.
+     * Deprecated. Use
+     * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters/update)
+     * instead.
+     * 
+ */ + @java.lang.Deprecated + public void setLocations( + com.google.container.v1beta1.SetLocationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetLocationsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the master for a specific cluster.
+     * 
+ */ + public void updateMaster( + com.google.container.v1beta1.UpdateMasterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateMasterMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets master auth materials. Currently supports changing the admin password
+     * or a specific cluster, either via password generation or explicitly setting
+     * the password.
+     * 
+ */ + public void setMasterAuth( + com.google.container.v1beta1.SetMasterAuthRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetMasterAuthMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the cluster, including the Kubernetes endpoint and all worker
+     * nodes.
+     * Firewalls and routes that were configured during cluster creation
+     * are also deleted.
+     * Other Google Compute Engine resources that might be in use by the cluster,
+     * such as load balancer resources, are not deleted if they weren't present
+     * when the cluster was initially created.
+     * 
+ */ + public void deleteCluster( + com.google.container.v1beta1.DeleteClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists all operations in a project in the specified zone or all zones.
+     * 
+ */ + public void listOperations( + com.google.container.v1beta1.ListOperationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListOperationsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the specified operation.
+     * 
+ */ + public void getOperation( + com.google.container.v1beta1.GetOperationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetOperationMethod(), responseObserver); + } + + /** + * + * + *
+     * Cancels the specified operation.
+     * 
+ */ + public void cancelOperation( + com.google.container.v1beta1.CancelOperationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCancelOperationMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns configuration info about the Google Kubernetes Engine service.
+     * 
+ */ + public void getServerConfig( + com.google.container.v1beta1.GetServerConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetServerConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists the node pools for a cluster.
+     * 
+ */ + public void listNodePools( + com.google.container.v1beta1.ListNodePoolsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListNodePoolsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the public component of the cluster signing keys in
+     * JSON Web Key format.
+     * This API is not yet intended for general use, and is not available for all
+     * clusters.
+     * 
+ */ + public void getJSONWebKeys( + com.google.container.v1beta1.GetJSONWebKeysRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetJSONWebKeysMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves the requested node pool.
+     * 
+ */ + public void getNodePool( + com.google.container.v1beta1.GetNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetNodePoolMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a node pool for a cluster.
+     * 
+ */ + public void createNodePool( + com.google.container.v1beta1.CreateNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateNodePoolMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a node pool from a cluster.
+     * 
+ */ + public void deleteNodePool( + com.google.container.v1beta1.DeleteNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteNodePoolMethod(), responseObserver); + } + + /** + * + * + *
+     * 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.ServerCalls.asyncUnimplementedUnaryCall( + getCompleteNodePoolUpgradeMethod(), responseObserver); + } + + /** + * + * + *
+     * Rolls back a previously Aborted or Failed NodePool upgrade.
+     * This makes no changes if the last upgrade successfully completed.
+     * 
+ */ + public void rollbackNodePoolUpgrade( + com.google.container.v1beta1.RollbackNodePoolUpgradeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRollbackNodePoolUpgradeMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets the NodeManagement options for a node pool.
+     * 
+ */ + public void setNodePoolManagement( + com.google.container.v1beta1.SetNodePoolManagementRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetNodePoolManagementMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets labels on a cluster.
+     * 
+ */ + public void setLabels( + com.google.container.v1beta1.SetLabelsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetLabelsMethod(), responseObserver); + } + + /** + * + * + *
+     * Enables or disables the ABAC authorization mechanism on a cluster.
+     * 
+ */ + public void setLegacyAbac( + com.google.container.v1beta1.SetLegacyAbacRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetLegacyAbacMethod(), responseObserver); + } + + /** + * + * + *
+     * Starts master IP rotation.
+     * 
+ */ + public void startIPRotation( + com.google.container.v1beta1.StartIPRotationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStartIPRotationMethod(), responseObserver); + } + + /** + * + * + *
+     * Completes master IP rotation.
+     * 
+ */ + public void completeIPRotation( + com.google.container.v1beta1.CompleteIPRotationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCompleteIPRotationMethod(), responseObserver); + } + + /** + * + * + *
+     * 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.ServerCalls.asyncUnimplementedUnaryCall( + getSetNodePoolSizeMethod(), responseObserver); + } + + /** + * + * + *
+     * Enables or disables Network Policy for a cluster.
+     * 
+ */ + public void setNetworkPolicy( + com.google.container.v1beta1.SetNetworkPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetNetworkPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets the maintenance policy for a cluster.
+     * 
+ */ + public void setMaintenancePolicy( + com.google.container.v1beta1.SetMaintenancePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetMaintenancePolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists subnetworks that can be used for creating clusters in a project.
+     * 
+ */ + public void listUsableSubnetworks( + com.google.container.v1beta1.ListUsableSubnetworksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListUsableSubnetworksMethod(), responseObserver); + } + + /** + * + * + *
+     * Fetches locations that offer Google Kubernetes Engine.
+     * 
+ */ + public void listLocations( + com.google.container.v1beta1.ListLocationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListLocationsMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListClustersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.ListClustersRequest, + com.google.container.v1beta1.ListClustersResponse>( + this, METHODID_LIST_CLUSTERS))) + .addMethod( + getGetClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.GetClusterRequest, + com.google.container.v1beta1.Cluster>(this, METHODID_GET_CLUSTER))) + .addMethod( + getCreateClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.CreateClusterRequest, + com.google.container.v1beta1.Operation>(this, METHODID_CREATE_CLUSTER))) + .addMethod( + getUpdateClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.UpdateClusterRequest, + com.google.container.v1beta1.Operation>(this, METHODID_UPDATE_CLUSTER))) + .addMethod( + getUpdateNodePoolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.UpdateNodePoolRequest, + com.google.container.v1beta1.Operation>(this, METHODID_UPDATE_NODE_POOL))) + .addMethod( + getSetNodePoolAutoscalingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetNodePoolAutoscalingRequest, + com.google.container.v1beta1.Operation>( + this, METHODID_SET_NODE_POOL_AUTOSCALING))) + .addMethod( + getSetLoggingServiceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetLoggingServiceRequest, + com.google.container.v1beta1.Operation>(this, METHODID_SET_LOGGING_SERVICE))) + .addMethod( + getSetMonitoringServiceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetMonitoringServiceRequest, + com.google.container.v1beta1.Operation>( + this, METHODID_SET_MONITORING_SERVICE))) + .addMethod( + getSetAddonsConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetAddonsConfigRequest, + com.google.container.v1beta1.Operation>(this, METHODID_SET_ADDONS_CONFIG))) + .addMethod( + getSetLocationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetLocationsRequest, + com.google.container.v1beta1.Operation>(this, METHODID_SET_LOCATIONS))) + .addMethod( + getUpdateMasterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.UpdateMasterRequest, + com.google.container.v1beta1.Operation>(this, METHODID_UPDATE_MASTER))) + .addMethod( + getSetMasterAuthMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetMasterAuthRequest, + com.google.container.v1beta1.Operation>(this, METHODID_SET_MASTER_AUTH))) + .addMethod( + getDeleteClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.DeleteClusterRequest, + com.google.container.v1beta1.Operation>(this, METHODID_DELETE_CLUSTER))) + .addMethod( + getListOperationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.ListOperationsRequest, + com.google.container.v1beta1.ListOperationsResponse>( + this, METHODID_LIST_OPERATIONS))) + .addMethod( + getGetOperationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.GetOperationRequest, + com.google.container.v1beta1.Operation>(this, METHODID_GET_OPERATION))) + .addMethod( + getCancelOperationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.CancelOperationRequest, + com.google.protobuf.Empty>(this, METHODID_CANCEL_OPERATION))) + .addMethod( + getGetServerConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.GetServerConfigRequest, + com.google.container.v1beta1.ServerConfig>(this, METHODID_GET_SERVER_CONFIG))) + .addMethod( + getListNodePoolsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.ListNodePoolsRequest, + com.google.container.v1beta1.ListNodePoolsResponse>( + this, METHODID_LIST_NODE_POOLS))) + .addMethod( + getGetJSONWebKeysMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.GetJSONWebKeysRequest, + com.google.container.v1beta1.GetJSONWebKeysResponse>( + this, METHODID_GET_JSONWEB_KEYS))) + .addMethod( + getGetNodePoolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.GetNodePoolRequest, + com.google.container.v1beta1.NodePool>(this, METHODID_GET_NODE_POOL))) + .addMethod( + getCreateNodePoolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.CreateNodePoolRequest, + com.google.container.v1beta1.Operation>(this, METHODID_CREATE_NODE_POOL))) + .addMethod( + getDeleteNodePoolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.DeleteNodePoolRequest, + com.google.container.v1beta1.Operation>(this, METHODID_DELETE_NODE_POOL))) + .addMethod( + getCompleteNodePoolUpgradeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.CompleteNodePoolUpgradeRequest, + com.google.protobuf.Empty>(this, METHODID_COMPLETE_NODE_POOL_UPGRADE))) + .addMethod( + getRollbackNodePoolUpgradeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.RollbackNodePoolUpgradeRequest, + com.google.container.v1beta1.Operation>( + this, METHODID_ROLLBACK_NODE_POOL_UPGRADE))) + .addMethod( + getSetNodePoolManagementMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetNodePoolManagementRequest, + com.google.container.v1beta1.Operation>( + this, METHODID_SET_NODE_POOL_MANAGEMENT))) + .addMethod( + getSetLabelsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetLabelsRequest, + com.google.container.v1beta1.Operation>(this, METHODID_SET_LABELS))) + .addMethod( + getSetLegacyAbacMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetLegacyAbacRequest, + com.google.container.v1beta1.Operation>(this, METHODID_SET_LEGACY_ABAC))) + .addMethod( + getStartIPRotationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.StartIPRotationRequest, + com.google.container.v1beta1.Operation>(this, METHODID_START_IPROTATION))) + .addMethod( + getCompleteIPRotationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.CompleteIPRotationRequest, + com.google.container.v1beta1.Operation>(this, METHODID_COMPLETE_IPROTATION))) + .addMethod( + getSetNodePoolSizeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetNodePoolSizeRequest, + com.google.container.v1beta1.Operation>(this, METHODID_SET_NODE_POOL_SIZE))) + .addMethod( + getSetNetworkPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetNetworkPolicyRequest, + com.google.container.v1beta1.Operation>(this, METHODID_SET_NETWORK_POLICY))) + .addMethod( + getSetMaintenancePolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetMaintenancePolicyRequest, + com.google.container.v1beta1.Operation>( + this, METHODID_SET_MAINTENANCE_POLICY))) + .addMethod( + getListUsableSubnetworksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.ListUsableSubnetworksRequest, + com.google.container.v1beta1.ListUsableSubnetworksResponse>( + this, METHODID_LIST_USABLE_SUBNETWORKS))) + .addMethod( + getListLocationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.ListLocationsRequest, + com.google.container.v1beta1.ListLocationsResponse>( + this, METHODID_LIST_LOCATIONS))) + .build(); + } + } + + /** + * + * + *
+   * Google Kubernetes Engine Cluster Manager v1beta1
+   * 
+ */ + public static final class ClusterManagerStub + extends io.grpc.stub.AbstractAsyncStub { + private ClusterManagerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ClusterManagerStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ClusterManagerStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists all clusters owned by a project in either the specified zone or all
+     * zones.
+     * 
+ */ + public void listClusters( + com.google.container.v1beta1.ListClustersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListClustersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the details for a specific cluster.
+     * 
+ */ + public void getCluster( + com.google.container.v1beta1.GetClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetClusterMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a cluster, consisting of the specified number and type of Google
+     * Compute Engine instances.
+     * By default, the cluster is created in the project's
+     * [default
+     * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks).
+     * One firewall is added for the cluster. After cluster creation,
+     * the Kubelet creates routes for each node to allow the containers
+     * on that node to communicate with all other instances in the
+     * cluster.
+     * Finally, an entry is added to the project's global metadata indicating
+     * which CIDR range the cluster is using.
+     * 
+ */ + public void createCluster( + com.google.container.v1beta1.CreateClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the settings for a specific cluster.
+     * 
+ */ + public void updateCluster( + com.google.container.v1beta1.UpdateClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the version and/or image type of a specific node pool.
+     * 
+ */ + public void updateNodePool( + com.google.container.v1beta1.UpdateNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateNodePoolMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Sets the autoscaling settings of a specific node pool.
+     * 
+ */ + public void setNodePoolAutoscaling( + com.google.container.v1beta1.SetNodePoolAutoscalingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetNodePoolAutoscalingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Sets the logging service for a specific cluster.
+     * 
+ */ + public void setLoggingService( + com.google.container.v1beta1.SetLoggingServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetLoggingServiceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Sets the monitoring service for a specific cluster.
+     * 
+ */ + public void setMonitoringService( + com.google.container.v1beta1.SetMonitoringServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetMonitoringServiceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Sets the addons for a specific cluster.
+     * 
+ */ + public void setAddonsConfig( + com.google.container.v1beta1.SetAddonsConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetAddonsConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Sets the locations for a specific cluster.
+     * Deprecated. Use
+     * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters/update)
+     * instead.
+     * 
+ */ + @java.lang.Deprecated + public void setLocations( + com.google.container.v1beta1.SetLocationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetLocationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the master for a specific cluster.
+     * 
+ */ + public void updateMaster( + com.google.container.v1beta1.UpdateMasterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateMasterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Sets master auth materials. Currently supports changing the admin password
+     * or a specific cluster, either via password generation or explicitly setting
+     * the password.
+     * 
+ */ + public void setMasterAuth( + com.google.container.v1beta1.SetMasterAuthRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetMasterAuthMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the cluster, including the Kubernetes endpoint and all worker
+     * nodes.
+     * Firewalls and routes that were configured during cluster creation
+     * are also deleted.
+     * Other Google Compute Engine resources that might be in use by the cluster,
+     * such as load balancer resources, are not deleted if they weren't present
+     * when the cluster was initially created.
+     * 
+ */ + public void deleteCluster( + com.google.container.v1beta1.DeleteClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all operations in a project in the specified zone or all zones.
+     * 
+ */ + public void listOperations( + com.google.container.v1beta1.ListOperationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListOperationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the specified operation.
+     * 
+ */ + public void getOperation( + com.google.container.v1beta1.GetOperationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetOperationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Cancels the specified operation.
+     * 
+ */ + public void cancelOperation( + com.google.container.v1beta1.CancelOperationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCancelOperationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns configuration info about the Google Kubernetes Engine service.
+     * 
+ */ + public void getServerConfig( + com.google.container.v1beta1.GetServerConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetServerConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists the node pools for a cluster.
+     * 
+ */ + public void listNodePools( + com.google.container.v1beta1.ListNodePoolsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNodePoolsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the public component of the cluster signing keys in
+     * JSON Web Key format.
+     * This API is not yet intended for general use, and is not available for all
+     * clusters.
+     * 
+ */ + public void getJSONWebKeys( + com.google.container.v1beta1.GetJSONWebKeysRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetJSONWebKeysMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves the requested node pool.
+     * 
+ */ + public void getNodePool( + com.google.container.v1beta1.GetNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNodePoolMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a node pool for a cluster.
+     * 
+ */ + public void createNodePool( + com.google.container.v1beta1.CreateNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateNodePoolMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a node pool from a cluster.
+     * 
+ */ + public void deleteNodePool( + com.google.container.v1beta1.DeleteNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteNodePoolMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * 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); + } + + /** + * + * + *
+     * Fetches locations that offer Google Kubernetes Engine.
+     * 
+ */ + public void listLocations( + com.google.container.v1beta1.ListLocationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListLocationsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Google Kubernetes Engine Cluster Manager v1beta1
+   * 
+ */ + public static final class ClusterManagerBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ClusterManagerBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ClusterManagerBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ClusterManagerBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists all clusters owned by a project in either the specified zone or all
+     * zones.
+     * 
+ */ + public com.google.container.v1beta1.ListClustersResponse listClusters( + com.google.container.v1beta1.ListClustersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListClustersMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the details for a specific cluster.
+     * 
+ */ + public com.google.container.v1beta1.Cluster getCluster( + com.google.container.v1beta1.GetClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a cluster, consisting of the specified number and type of Google
+     * Compute Engine instances.
+     * By default, the cluster is created in the project's
+     * [default
+     * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks).
+     * One firewall is added for the cluster. After cluster creation,
+     * the Kubelet creates routes for each node to allow the containers
+     * on that node to communicate with all other instances in the
+     * cluster.
+     * Finally, an entry is added to the project's global metadata indicating
+     * which CIDR range the cluster is using.
+     * 
+ */ + public com.google.container.v1beta1.Operation createCluster( + com.google.container.v1beta1.CreateClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the settings for a specific cluster.
+     * 
+ */ + public com.google.container.v1beta1.Operation updateCluster( + com.google.container.v1beta1.UpdateClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the version and/or image type of a specific node pool.
+     * 
+ */ + public com.google.container.v1beta1.Operation updateNodePool( + com.google.container.v1beta1.UpdateNodePoolRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateNodePoolMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets the autoscaling settings of a specific node pool.
+     * 
+ */ + public com.google.container.v1beta1.Operation setNodePoolAutoscaling( + com.google.container.v1beta1.SetNodePoolAutoscalingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetNodePoolAutoscalingMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets the logging service for a specific cluster.
+     * 
+ */ + public com.google.container.v1beta1.Operation setLoggingService( + com.google.container.v1beta1.SetLoggingServiceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetLoggingServiceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets the monitoring service for a specific cluster.
+     * 
+ */ + public com.google.container.v1beta1.Operation setMonitoringService( + com.google.container.v1beta1.SetMonitoringServiceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetMonitoringServiceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets the addons for a specific cluster.
+     * 
+ */ + public com.google.container.v1beta1.Operation setAddonsConfig( + com.google.container.v1beta1.SetAddonsConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetAddonsConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets the locations for a specific cluster.
+     * Deprecated. Use
+     * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters/update)
+     * instead.
+     * 
+ */ + @java.lang.Deprecated + public com.google.container.v1beta1.Operation setLocations( + com.google.container.v1beta1.SetLocationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetLocationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the master for a specific cluster.
+     * 
+ */ + public com.google.container.v1beta1.Operation updateMaster( + com.google.container.v1beta1.UpdateMasterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateMasterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets master auth materials. Currently supports changing the admin password
+     * or a specific cluster, either via password generation or explicitly setting
+     * the password.
+     * 
+ */ + public com.google.container.v1beta1.Operation setMasterAuth( + com.google.container.v1beta1.SetMasterAuthRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetMasterAuthMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the cluster, including the Kubernetes endpoint and all worker
+     * nodes.
+     * Firewalls and routes that were configured during cluster creation
+     * are also deleted.
+     * Other Google Compute Engine resources that might be in use by the cluster,
+     * such as load balancer resources, are not deleted if they weren't present
+     * when the cluster was initially created.
+     * 
+ */ + public com.google.container.v1beta1.Operation deleteCluster( + com.google.container.v1beta1.DeleteClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all operations in a project in the specified zone or all zones.
+     * 
+ */ + public com.google.container.v1beta1.ListOperationsResponse listOperations( + com.google.container.v1beta1.ListOperationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListOperationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the specified operation.
+     * 
+ */ + public com.google.container.v1beta1.Operation getOperation( + com.google.container.v1beta1.GetOperationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetOperationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Cancels the specified operation.
+     * 
+ */ + public com.google.protobuf.Empty cancelOperation( + com.google.container.v1beta1.CancelOperationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCancelOperationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns configuration info about the Google Kubernetes Engine service.
+     * 
+ */ + public com.google.container.v1beta1.ServerConfig getServerConfig( + com.google.container.v1beta1.GetServerConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetServerConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the node pools for a cluster.
+     * 
+ */ + public com.google.container.v1beta1.ListNodePoolsResponse listNodePools( + com.google.container.v1beta1.ListNodePoolsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNodePoolsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the public component of the cluster signing keys in
+     * JSON Web Key format.
+     * This API is not yet intended for general use, and is not available for all
+     * clusters.
+     * 
+ */ + public com.google.container.v1beta1.GetJSONWebKeysResponse getJSONWebKeys( + com.google.container.v1beta1.GetJSONWebKeysRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetJSONWebKeysMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves the requested node pool.
+     * 
+ */ + public com.google.container.v1beta1.NodePool getNodePool( + com.google.container.v1beta1.GetNodePoolRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNodePoolMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a node pool for a cluster.
+     * 
+ */ + public com.google.container.v1beta1.Operation createNodePool( + com.google.container.v1beta1.CreateNodePoolRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateNodePoolMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a node pool from a cluster.
+     * 
+ */ + public com.google.container.v1beta1.Operation deleteNodePool( + com.google.container.v1beta1.DeleteNodePoolRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteNodePoolMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * 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); + } + + /** + * + * + *
+     * Fetches locations that offer Google Kubernetes Engine.
+     * 
+ */ + public com.google.container.v1beta1.ListLocationsResponse listLocations( + com.google.container.v1beta1.ListLocationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListLocationsMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Google Kubernetes Engine Cluster Manager v1beta1
+   * 
+ */ + public static final class ClusterManagerFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ClusterManagerFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ClusterManagerFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ClusterManagerFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists all clusters owned by a project in either the specified zone or all
+     * zones.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.ListClustersResponse> + listClusters(com.google.container.v1beta1.ListClustersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListClustersMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the details for a specific cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getCluster(com.google.container.v1beta1.GetClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a cluster, consisting of the specified number and type of Google
+     * Compute Engine instances.
+     * By default, the cluster is created in the project's
+     * [default
+     * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks).
+     * One firewall is added for the cluster. After cluster creation,
+     * the Kubelet creates routes for each node to allow the containers
+     * on that node to communicate with all other instances in the
+     * cluster.
+     * Finally, an entry is added to the project's global metadata indicating
+     * which CIDR range the cluster is using.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + createCluster(com.google.container.v1beta1.CreateClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the settings for a specific cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + updateCluster(com.google.container.v1beta1.UpdateClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the version and/or image type of a specific node pool.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + updateNodePool(com.google.container.v1beta1.UpdateNodePoolRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateNodePoolMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Sets the autoscaling settings of a specific node pool.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + setNodePoolAutoscaling(com.google.container.v1beta1.SetNodePoolAutoscalingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetNodePoolAutoscalingMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Sets the logging service for a specific cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + setLoggingService(com.google.container.v1beta1.SetLoggingServiceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetLoggingServiceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Sets the monitoring service for a specific cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + setMonitoringService(com.google.container.v1beta1.SetMonitoringServiceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetMonitoringServiceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Sets the addons for a specific cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + setAddonsConfig(com.google.container.v1beta1.SetAddonsConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetAddonsConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Sets the locations for a specific cluster.
+     * Deprecated. Use
+     * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters/update)
+     * instead.
+     * 
+ */ + @java.lang.Deprecated + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + setLocations(com.google.container.v1beta1.SetLocationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetLocationsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the master for a specific cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + updateMaster(com.google.container.v1beta1.UpdateMasterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateMasterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Sets master auth materials. Currently supports changing the admin password
+     * or a specific cluster, either via password generation or explicitly setting
+     * the password.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + setMasterAuth(com.google.container.v1beta1.SetMasterAuthRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetMasterAuthMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the cluster, including the Kubernetes endpoint and all worker
+     * nodes.
+     * Firewalls and routes that were configured during cluster creation
+     * are also deleted.
+     * Other Google Compute Engine resources that might be in use by the cluster,
+     * such as load balancer resources, are not deleted if they weren't present
+     * when the cluster was initially created.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + deleteCluster(com.google.container.v1beta1.DeleteClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists all operations in a project in the specified zone or all zones.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.ListOperationsResponse> + listOperations(com.google.container.v1beta1.ListOperationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListOperationsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the specified operation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + getOperation(com.google.container.v1beta1.GetOperationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetOperationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Cancels the specified operation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + cancelOperation(com.google.container.v1beta1.CancelOperationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCancelOperationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns configuration info about the Google Kubernetes Engine service.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.ServerConfig> + getServerConfig(com.google.container.v1beta1.GetServerConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetServerConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists the node pools for a cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.ListNodePoolsResponse> + listNodePools(com.google.container.v1beta1.ListNodePoolsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNodePoolsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the public component of the cluster signing keys in
+     * JSON Web Key format.
+     * This API is not yet intended for general use, and is not available for all
+     * clusters.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.GetJSONWebKeysResponse> + getJSONWebKeys(com.google.container.v1beta1.GetJSONWebKeysRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetJSONWebKeysMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves the requested node pool.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getNodePool(com.google.container.v1beta1.GetNodePoolRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetNodePoolMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a node pool for a cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + createNodePool(com.google.container.v1beta1.CreateNodePoolRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateNodePoolMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a node pool from a cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + deleteNodePool(com.google.container.v1beta1.DeleteNodePoolRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteNodePoolMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * 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); + } + + /** + * + * + *
+     * Fetches locations that offer Google Kubernetes Engine.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.ListLocationsResponse> + listLocations(com.google.container.v1beta1.ListLocationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListLocationsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_CLUSTERS = 0; + private static final int METHODID_GET_CLUSTER = 1; + private static final int METHODID_CREATE_CLUSTER = 2; + private static final int METHODID_UPDATE_CLUSTER = 3; + private static final int METHODID_UPDATE_NODE_POOL = 4; + private static final int METHODID_SET_NODE_POOL_AUTOSCALING = 5; + private static final int METHODID_SET_LOGGING_SERVICE = 6; + private static final int METHODID_SET_MONITORING_SERVICE = 7; + private static final int METHODID_SET_ADDONS_CONFIG = 8; + private static final int METHODID_SET_LOCATIONS = 9; + private static final int METHODID_UPDATE_MASTER = 10; + private static final int METHODID_SET_MASTER_AUTH = 11; + private static final int METHODID_DELETE_CLUSTER = 12; + private static final int METHODID_LIST_OPERATIONS = 13; + private static final int METHODID_GET_OPERATION = 14; + private static final int METHODID_CANCEL_OPERATION = 15; + private static final int METHODID_GET_SERVER_CONFIG = 16; + private static final int METHODID_LIST_NODE_POOLS = 17; + private static final int METHODID_GET_JSONWEB_KEYS = 18; + private static final int METHODID_GET_NODE_POOL = 19; + private static final int METHODID_CREATE_NODE_POOL = 20; + private static final int METHODID_DELETE_NODE_POOL = 21; + private static final int METHODID_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_LIST_LOCATIONS = 33; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final ClusterManagerImplBase serviceImpl; + private final int methodId; + + MethodHandlers(ClusterManagerImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_CLUSTERS: + serviceImpl.listClusters( + (com.google.container.v1beta1.ListClustersRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_CLUSTER: + serviceImpl.getCluster( + (com.google.container.v1beta1.GetClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CLUSTER: + serviceImpl.createCluster( + (com.google.container.v1beta1.CreateClusterRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_CLUSTER: + serviceImpl.updateCluster( + (com.google.container.v1beta1.UpdateClusterRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_NODE_POOL: + serviceImpl.updateNodePool( + (com.google.container.v1beta1.UpdateNodePoolRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SET_NODE_POOL_AUTOSCALING: + serviceImpl.setNodePoolAutoscaling( + (com.google.container.v1beta1.SetNodePoolAutoscalingRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SET_LOGGING_SERVICE: + serviceImpl.setLoggingService( + (com.google.container.v1beta1.SetLoggingServiceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SET_MONITORING_SERVICE: + serviceImpl.setMonitoringService( + (com.google.container.v1beta1.SetMonitoringServiceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SET_ADDONS_CONFIG: + serviceImpl.setAddonsConfig( + (com.google.container.v1beta1.SetAddonsConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SET_LOCATIONS: + serviceImpl.setLocations( + (com.google.container.v1beta1.SetLocationsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_MASTER: + serviceImpl.updateMaster( + (com.google.container.v1beta1.UpdateMasterRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SET_MASTER_AUTH: + serviceImpl.setMasterAuth( + (com.google.container.v1beta1.SetMasterAuthRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_CLUSTER: + serviceImpl.deleteCluster( + (com.google.container.v1beta1.DeleteClusterRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_OPERATIONS: + serviceImpl.listOperations( + (com.google.container.v1beta1.ListOperationsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_OPERATION: + serviceImpl.getOperation( + (com.google.container.v1beta1.GetOperationRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CANCEL_OPERATION: + serviceImpl.cancelOperation( + (com.google.container.v1beta1.CancelOperationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SERVER_CONFIG: + serviceImpl.getServerConfig( + (com.google.container.v1beta1.GetServerConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_NODE_POOLS: + serviceImpl.listNodePools( + (com.google.container.v1beta1.ListNodePoolsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_JSONWEB_KEYS: + serviceImpl.getJSONWebKeys( + (com.google.container.v1beta1.GetJSONWebKeysRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_NODE_POOL: + serviceImpl.getNodePool( + (com.google.container.v1beta1.GetNodePoolRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_NODE_POOL: + serviceImpl.createNodePool( + (com.google.container.v1beta1.CreateNodePoolRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_NODE_POOL: + serviceImpl.deleteNodePool( + (com.google.container.v1beta1.DeleteNodePoolRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_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_LIST_LOCATIONS: + serviceImpl.listLocations( + (com.google.container.v1beta1.ListLocationsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class ClusterManagerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ClusterManagerBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ClusterManager"); + } + } + + private static final class ClusterManagerFileDescriptorSupplier + extends ClusterManagerBaseDescriptorSupplier { + ClusterManagerFileDescriptorSupplier() {} + } + + private static final class ClusterManagerMethodDescriptorSupplier + extends ClusterManagerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ClusterManagerMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (ClusterManagerGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ClusterManagerFileDescriptorSupplier()) + .addMethod(getListClustersMethod()) + .addMethod(getGetClusterMethod()) + .addMethod(getCreateClusterMethod()) + .addMethod(getUpdateClusterMethod()) + .addMethod(getUpdateNodePoolMethod()) + .addMethod(getSetNodePoolAutoscalingMethod()) + .addMethod(getSetLoggingServiceMethod()) + .addMethod(getSetMonitoringServiceMethod()) + .addMethod(getSetAddonsConfigMethod()) + .addMethod(getSetLocationsMethod()) + .addMethod(getUpdateMasterMethod()) + .addMethod(getSetMasterAuthMethod()) + .addMethod(getDeleteClusterMethod()) + .addMethod(getListOperationsMethod()) + .addMethod(getGetOperationMethod()) + .addMethod(getCancelOperationMethod()) + .addMethod(getGetServerConfigMethod()) + .addMethod(getListNodePoolsMethod()) + .addMethod(getGetJSONWebKeysMethod()) + .addMethod(getGetNodePoolMethod()) + .addMethod(getCreateNodePoolMethod()) + .addMethod(getDeleteNodePoolMethod()) + .addMethod(getCompleteNodePoolUpgradeMethod()) + .addMethod(getRollbackNodePoolUpgradeMethod()) + .addMethod(getSetNodePoolManagementMethod()) + .addMethod(getSetLabelsMethod()) + .addMethod(getSetLegacyAbacMethod()) + .addMethod(getStartIPRotationMethod()) + .addMethod(getCompleteIPRotationMethod()) + .addMethod(getSetNodePoolSizeMethod()) + .addMethod(getSetNetworkPolicyMethod()) + .addMethod(getSetMaintenancePolicyMethod()) + .addMethod(getListUsableSubnetworksMethod()) + .addMethod(getListLocationsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/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 new file mode 100644 index 000000000000..cbdf37bb58ae --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfig.java @@ -0,0 +1,1194 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * The number of the accelerator cards exposed to an instance.
+   * 
+ * + * int64 accelerator_count = 1; + * + * @return The acceleratorCount. + */ + @java.lang.Override + public long getAcceleratorCount() { + return acceleratorCount_; + } + + public static final int ACCELERATOR_TYPE_FIELD_NUMBER = 2; + private volatile java.lang.Object acceleratorType_; + /** + * + * + *
+   * The accelerator type resource name. List of supported accelerators
+   * [here](https://cloud.google.com/compute/docs/gpus)
+   * 
+ * + * string accelerator_type = 2; + * + * @return The acceleratorType. + */ + @java.lang.Override + public java.lang.String getAcceleratorType() { + java.lang.Object ref = acceleratorType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + acceleratorType_ = s; + return s; + } + } + /** + * + * + *
+   * The accelerator type resource name. List of supported accelerators
+   * [here](https://cloud.google.com/compute/docs/gpus)
+   * 
+ * + * string accelerator_type = 2; + * + * @return The bytes for acceleratorType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAcceleratorTypeBytes() { + java.lang.Object ref = acceleratorType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + acceleratorType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GPU_PARTITION_SIZE_FIELD_NUMBER = 3; + private volatile java.lang.Object gpuPartitionSize_; + /** + * + * + *
+   * Size of partitions to create on the GPU. Valid values are described in the
+   * NVIDIA [mig user
+   * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+   * 
+ * + * string gpu_partition_size = 3; + * + * @return The gpuPartitionSize. + */ + @java.lang.Override + public java.lang.String getGpuPartitionSize() { + java.lang.Object ref = gpuPartitionSize_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gpuPartitionSize_ = s; + return s; + } + } + /** + * + * + *
+   * Size of partitions to create on the GPU. Valid values are described in the
+   * NVIDIA [mig user
+   * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+   * 
+ * + * string gpu_partition_size = 3; + * + * @return The bytes for gpuPartitionSize. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGpuPartitionSizeBytes() { + java.lang.Object ref = gpuPartitionSize_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gpuPartitionSize_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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()); + } + 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()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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(); + } + 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(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + acceleratorCount_ = 0L; + + acceleratorType_ = ""; + + gpuPartitionSize_ = ""; + + if (gpuSharingConfigBuilder_ == null) { + gpuSharingConfig_ = null; + } else { + gpuSharingConfigBuilder_.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_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); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.acceleratorCount_ = acceleratorCount_; + result.acceleratorType_ = acceleratorType_; + result.gpuPartitionSize_ = gpuPartitionSize_; + if (((from_bitField0_ & 0x00000001) != 0)) { + if (gpuSharingConfigBuilder_ == null) { + result.gpuSharingConfig_ = gpuSharingConfig_; + } else { + result.gpuSharingConfig_ = gpuSharingConfigBuilder_.build(); + } + to_bitField0_ |= 0x00000001; + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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_; + onChanged(); + } + if (!other.getGpuPartitionSize().isEmpty()) { + gpuPartitionSize_ = other.gpuPartitionSize_; + onChanged(); + } + if (other.hasGpuSharingConfig()) { + mergeGpuSharingConfig(other.getGpuSharingConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 8 + case 18: + { + acceleratorType_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + gpuPartitionSize_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 42: + { + input.readMessage( + getGpuSharingConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + 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 long acceleratorCount_; + /** + * + * + *
+     * The number of the accelerator cards exposed to an instance.
+     * 
+ * + * int64 accelerator_count = 1; + * + * @return The acceleratorCount. + */ + @java.lang.Override + public long getAcceleratorCount() { + return acceleratorCount_; + } + /** + * + * + *
+     * The number of the accelerator cards exposed to an instance.
+     * 
+ * + * int64 accelerator_count = 1; + * + * @param value The acceleratorCount to set. + * @return This builder for chaining. + */ + public Builder setAcceleratorCount(long value) { + + acceleratorCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of the accelerator cards exposed to an instance.
+     * 
+ * + * int64 accelerator_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearAcceleratorCount() { + + acceleratorCount_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object acceleratorType_ = ""; + /** + * + * + *
+     * The accelerator type resource name. List of supported accelerators
+     * [here](https://cloud.google.com/compute/docs/gpus)
+     * 
+ * + * string accelerator_type = 2; + * + * @return The acceleratorType. + */ + public java.lang.String getAcceleratorType() { + java.lang.Object ref = acceleratorType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + acceleratorType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The accelerator type resource name. List of supported accelerators
+     * [here](https://cloud.google.com/compute/docs/gpus)
+     * 
+ * + * string accelerator_type = 2; + * + * @return The bytes for acceleratorType. + */ + public com.google.protobuf.ByteString getAcceleratorTypeBytes() { + java.lang.Object ref = acceleratorType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + acceleratorType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The accelerator type resource name. List of supported accelerators
+     * [here](https://cloud.google.com/compute/docs/gpus)
+     * 
+ * + * string accelerator_type = 2; + * + * @param value The acceleratorType to set. + * @return This builder for chaining. + */ + public Builder setAcceleratorType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + acceleratorType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The accelerator type resource name. List of supported accelerators
+     * [here](https://cloud.google.com/compute/docs/gpus)
+     * 
+ * + * string accelerator_type = 2; + * + * @return This builder for chaining. + */ + public Builder clearAcceleratorType() { + + acceleratorType_ = getDefaultInstance().getAcceleratorType(); + onChanged(); + return this; + } + /** + * + * + *
+     * The accelerator type resource name. List of supported accelerators
+     * [here](https://cloud.google.com/compute/docs/gpus)
+     * 
+ * + * string accelerator_type = 2; + * + * @param value The bytes for acceleratorType to set. + * @return This builder for chaining. + */ + public Builder setAcceleratorTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + acceleratorType_ = value; + onChanged(); + return this; + } + + private java.lang.Object gpuPartitionSize_ = ""; + /** + * + * + *
+     * Size of partitions to create on the GPU. Valid values are described in the
+     * NVIDIA [mig user
+     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+     * 
+ * + * string gpu_partition_size = 3; + * + * @return The gpuPartitionSize. + */ + public java.lang.String getGpuPartitionSize() { + java.lang.Object ref = gpuPartitionSize_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gpuPartitionSize_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Size of partitions to create on the GPU. Valid values are described in the
+     * NVIDIA [mig user
+     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+     * 
+ * + * string gpu_partition_size = 3; + * + * @return The bytes for gpuPartitionSize. + */ + public com.google.protobuf.ByteString getGpuPartitionSizeBytes() { + java.lang.Object ref = gpuPartitionSize_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gpuPartitionSize_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Size of partitions to create on the GPU. Valid values are described in the
+     * NVIDIA [mig user
+     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+     * 
+ * + * string gpu_partition_size = 3; + * + * @param value The gpuPartitionSize to set. + * @return This builder for chaining. + */ + public Builder setGpuPartitionSize(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + gpuPartitionSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Size of partitions to create on the GPU. Valid values are described in the
+     * NVIDIA [mig user
+     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+     * 
+ * + * string gpu_partition_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearGpuPartitionSize() { + + gpuPartitionSize_ = getDefaultInstance().getGpuPartitionSize(); + onChanged(); + return this; + } + /** + * + * + *
+     * Size of partitions to create on the GPU. Valid values are described in the
+     * NVIDIA [mig user
+     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+     * 
+ * + * string gpu_partition_size = 3; + * + * @param value The bytes for gpuPartitionSize to set. + * @return This builder for chaining. + */ + public Builder setGpuPartitionSizeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + gpuPartitionSize_ = value; + onChanged(); + return this; + } + + 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_ & 0x00000001) != 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; + onChanged(); + } else { + gpuSharingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + 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(); + onChanged(); + } else { + gpuSharingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + 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_ & 0x00000001) != 0) + && gpuSharingConfig_ != null + && gpuSharingConfig_ != com.google.container.v1.GPUSharingConfig.getDefaultInstance()) { + gpuSharingConfig_ = + com.google.container.v1.GPUSharingConfig.newBuilder(gpuSharingConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + gpuSharingConfig_ = value; + } + onChanged(); + } else { + gpuSharingConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + * + * + *
+     * The configuration for GPU sharing options.
+     * 
+ * + * optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; + */ + public Builder clearGpuSharingConfig() { + if (gpuSharingConfigBuilder_ == null) { + gpuSharingConfig_ = null; + onChanged(); + } else { + gpuSharingConfigBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + 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_ |= 0x00000001; + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..429f89ea9c26 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfigOrBuilder.java @@ -0,0 +1,129 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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(); +} 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 new file mode 100644 index 000000000000..7c80365b9e67 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java @@ -0,0 +1,3358 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Configuration for the 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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); + } + + 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 httpLoadBalancing_ != null; + } + /** + * + * + *
+   * Configuration for the HTTP (L7) load balancing controller addon, which
+   * makes it easy to set up HTTP load balancers for services in a cluster.
+   * 
+ * + * .google.container.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 getHttpLoadBalancing(); + } + + 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 horizontalPodAutoscaling_ != null; + } + /** + * + * + *
+   * Configuration for the horizontal pod autoscaling feature, which
+   * increases or decreases the number of replica pods a replication controller
+   * has based on the resource usage of the existing pods.
+   * 
+ * + * .google.container.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 getHorizontalPodAutoscaling(); + } + + 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=1043 + * @return Whether the kubernetesDashboard field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasKubernetesDashboard() { + return kubernetesDashboard_ != null; + } + /** + * + * + *
+   * Configuration for the Kubernetes Dashboard.
+   * This addon is deprecated, and will be disabled in 1.15. It is recommended
+   * to use the Cloud Console to manage and monitor your Kubernetes clusters,
+   * workloads and applications. For more information, see:
+   * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
+   * 
+ * + * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + * + * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See + * google/container/v1/cluster_service.proto;l=1043 + * @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 getKubernetesDashboard(); + } + + 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 networkPolicyConfig_ != null; + } + /** + * + * + *
+   * Configuration for NetworkPolicy. This only tracks whether the addon
+   * is enabled or not on the Master, it does not track whether network policy
+   * is enabled for the nodes.
+   * 
+ * + * .google.container.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 getNetworkPolicyConfig(); + } + + 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 cloudRunConfig_ != null; + } + /** + * + * + *
+   * 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 getCloudRunConfig(); + } + + public static final int DNS_CACHE_CONFIG_FIELD_NUMBER = 8; + private com.google.container.v1.DnsCacheConfig dnsCacheConfig_; + /** + * + * + *
+   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+   * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + * + * @return Whether the dnsCacheConfig field is set. + */ + @java.lang.Override + public boolean hasDnsCacheConfig() { + return dnsCacheConfig_ != null; + } + /** + * + * + *
+   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+   * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + * + * @return The dnsCacheConfig. + */ + @java.lang.Override + public com.google.container.v1.DnsCacheConfig getDnsCacheConfig() { + return dnsCacheConfig_ == null + ? com.google.container.v1.DnsCacheConfig.getDefaultInstance() + : dnsCacheConfig_; + } + /** + * + * + *
+   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+   * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + */ + @java.lang.Override + public com.google.container.v1.DnsCacheConfigOrBuilder getDnsCacheConfigOrBuilder() { + return getDnsCacheConfig(); + } + + public static final int CONFIG_CONNECTOR_CONFIG_FIELD_NUMBER = 10; + private com.google.container.v1.ConfigConnectorConfig configConnectorConfig_; + /** + * + * + *
+   * Configuration for the ConfigConnector add-on, a Kubernetes
+   * extension to manage hosted GCP services through the Kubernetes API
+   * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + * + * @return Whether the configConnectorConfig field is set. + */ + @java.lang.Override + public boolean hasConfigConnectorConfig() { + return configConnectorConfig_ != null; + } + /** + * + * + *
+   * Configuration for the ConfigConnector add-on, a Kubernetes
+   * extension to manage hosted GCP services through the Kubernetes API
+   * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + * + * @return The configConnectorConfig. + */ + @java.lang.Override + public com.google.container.v1.ConfigConnectorConfig getConfigConnectorConfig() { + return configConnectorConfig_ == null + ? com.google.container.v1.ConfigConnectorConfig.getDefaultInstance() + : configConnectorConfig_; + } + /** + * + * + *
+   * Configuration for the ConfigConnector add-on, a Kubernetes
+   * extension to manage hosted GCP services through the Kubernetes API
+   * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + */ + @java.lang.Override + public com.google.container.v1.ConfigConnectorConfigOrBuilder + getConfigConnectorConfigOrBuilder() { + return getConfigConnectorConfig(); + } + + public static final int GCE_PERSISTENT_DISK_CSI_DRIVER_CONFIG_FIELD_NUMBER = 11; + private com.google.container.v1.GcePersistentDiskCsiDriverConfig + gcePersistentDiskCsiDriverConfig_; + /** + * + * + *
+   * Configuration for the Compute Engine Persistent Disk CSI driver.
+   * 
+ * + * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + * + * @return Whether the gcePersistentDiskCsiDriverConfig field is set. + */ + @java.lang.Override + public boolean hasGcePersistentDiskCsiDriverConfig() { + return gcePersistentDiskCsiDriverConfig_ != null; + } + /** + * + * + *
+   * Configuration for the Compute Engine Persistent Disk CSI driver.
+   * 
+ * + * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + * + * @return The gcePersistentDiskCsiDriverConfig. + */ + @java.lang.Override + public com.google.container.v1.GcePersistentDiskCsiDriverConfig + getGcePersistentDiskCsiDriverConfig() { + return gcePersistentDiskCsiDriverConfig_ == null + ? com.google.container.v1.GcePersistentDiskCsiDriverConfig.getDefaultInstance() + : gcePersistentDiskCsiDriverConfig_; + } + /** + * + * + *
+   * Configuration for the Compute Engine Persistent Disk CSI driver.
+   * 
+ * + * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + */ + @java.lang.Override + public com.google.container.v1.GcePersistentDiskCsiDriverConfigOrBuilder + getGcePersistentDiskCsiDriverConfigOrBuilder() { + return getGcePersistentDiskCsiDriverConfig(); + } + + public static final int GCP_FILESTORE_CSI_DRIVER_CONFIG_FIELD_NUMBER = 14; + private com.google.container.v1.GcpFilestoreCsiDriverConfig gcpFilestoreCsiDriverConfig_; + /** + * + * + *
+   * Configuration for the GCP Filestore CSI driver.
+   * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + * + * @return Whether the gcpFilestoreCsiDriverConfig field is set. + */ + @java.lang.Override + public boolean hasGcpFilestoreCsiDriverConfig() { + return gcpFilestoreCsiDriverConfig_ != null; + } + /** + * + * + *
+   * Configuration for the GCP Filestore CSI driver.
+   * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + * + * @return The gcpFilestoreCsiDriverConfig. + */ + @java.lang.Override + public com.google.container.v1.GcpFilestoreCsiDriverConfig getGcpFilestoreCsiDriverConfig() { + return gcpFilestoreCsiDriverConfig_ == null + ? com.google.container.v1.GcpFilestoreCsiDriverConfig.getDefaultInstance() + : gcpFilestoreCsiDriverConfig_; + } + /** + * + * + *
+   * Configuration for the GCP Filestore CSI driver.
+   * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + */ + @java.lang.Override + public com.google.container.v1.GcpFilestoreCsiDriverConfigOrBuilder + getGcpFilestoreCsiDriverConfigOrBuilder() { + return getGcpFilestoreCsiDriverConfig(); + } + + 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 gkeBackupAgentConfig_ != null; + } + /** + * + * + *
+   * 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 getGkeBackupAgentConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (httpLoadBalancing_ != null) { + output.writeMessage(1, getHttpLoadBalancing()); + } + if (horizontalPodAutoscaling_ != null) { + output.writeMessage(2, getHorizontalPodAutoscaling()); + } + if (kubernetesDashboard_ != null) { + output.writeMessage(3, getKubernetesDashboard()); + } + if (networkPolicyConfig_ != null) { + output.writeMessage(4, getNetworkPolicyConfig()); + } + if (cloudRunConfig_ != null) { + output.writeMessage(7, getCloudRunConfig()); + } + if (dnsCacheConfig_ != null) { + output.writeMessage(8, getDnsCacheConfig()); + } + if (configConnectorConfig_ != null) { + output.writeMessage(10, getConfigConnectorConfig()); + } + if (gcePersistentDiskCsiDriverConfig_ != null) { + output.writeMessage(11, getGcePersistentDiskCsiDriverConfig()); + } + if (gcpFilestoreCsiDriverConfig_ != null) { + output.writeMessage(14, getGcpFilestoreCsiDriverConfig()); + } + if (gkeBackupAgentConfig_ != null) { + output.writeMessage(16, getGkeBackupAgentConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (httpLoadBalancing_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getHttpLoadBalancing()); + } + if (horizontalPodAutoscaling_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getHorizontalPodAutoscaling()); + } + if (kubernetesDashboard_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getKubernetesDashboard()); + } + if (networkPolicyConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getNetworkPolicyConfig()); + } + if (cloudRunConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCloudRunConfig()); + } + if (dnsCacheConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDnsCacheConfig()); + } + if (configConnectorConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, getConfigConnectorConfig()); + } + if (gcePersistentDiskCsiDriverConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, getGcePersistentDiskCsiDriverConfig()); + } + if (gcpFilestoreCsiDriverConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, getGcpFilestoreCsiDriverConfig()); + } + if (gkeBackupAgentConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(16, getGkeBackupAgentConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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 (!getUnknownFields().equals(other.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(); + } + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (httpLoadBalancingBuilder_ == null) { + httpLoadBalancing_ = null; + } else { + httpLoadBalancing_ = null; + httpLoadBalancingBuilder_ = null; + } + if (horizontalPodAutoscalingBuilder_ == null) { + horizontalPodAutoscaling_ = null; + } else { + horizontalPodAutoscaling_ = null; + horizontalPodAutoscalingBuilder_ = null; + } + if (kubernetesDashboardBuilder_ == null) { + kubernetesDashboard_ = null; + } else { + kubernetesDashboard_ = null; + kubernetesDashboardBuilder_ = null; + } + if (networkPolicyConfigBuilder_ == null) { + networkPolicyConfig_ = null; + } else { + networkPolicyConfig_ = null; + networkPolicyConfigBuilder_ = null; + } + if (cloudRunConfigBuilder_ == null) { + cloudRunConfig_ = null; + } else { + cloudRunConfig_ = null; + cloudRunConfigBuilder_ = null; + } + if (dnsCacheConfigBuilder_ == null) { + dnsCacheConfig_ = null; + } else { + dnsCacheConfig_ = null; + dnsCacheConfigBuilder_ = null; + } + if (configConnectorConfigBuilder_ == null) { + configConnectorConfig_ = null; + } else { + configConnectorConfig_ = null; + configConnectorConfigBuilder_ = null; + } + if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { + gcePersistentDiskCsiDriverConfig_ = null; + } else { + gcePersistentDiskCsiDriverConfig_ = null; + gcePersistentDiskCsiDriverConfigBuilder_ = null; + } + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + gcpFilestoreCsiDriverConfig_ = null; + } else { + gcpFilestoreCsiDriverConfig_ = null; + gcpFilestoreCsiDriverConfigBuilder_ = null; + } + if (gkeBackupAgentConfigBuilder_ == null) { + gkeBackupAgentConfig_ = null; + } else { + gkeBackupAgentConfig_ = null; + gkeBackupAgentConfigBuilder_ = 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 (httpLoadBalancingBuilder_ == null) { + result.httpLoadBalancing_ = httpLoadBalancing_; + } else { + result.httpLoadBalancing_ = httpLoadBalancingBuilder_.build(); + } + if (horizontalPodAutoscalingBuilder_ == null) { + result.horizontalPodAutoscaling_ = horizontalPodAutoscaling_; + } else { + result.horizontalPodAutoscaling_ = horizontalPodAutoscalingBuilder_.build(); + } + if (kubernetesDashboardBuilder_ == null) { + result.kubernetesDashboard_ = kubernetesDashboard_; + } else { + result.kubernetesDashboard_ = kubernetesDashboardBuilder_.build(); + } + if (networkPolicyConfigBuilder_ == null) { + result.networkPolicyConfig_ = networkPolicyConfig_; + } else { + result.networkPolicyConfig_ = networkPolicyConfigBuilder_.build(); + } + if (cloudRunConfigBuilder_ == null) { + result.cloudRunConfig_ = cloudRunConfig_; + } else { + result.cloudRunConfig_ = cloudRunConfigBuilder_.build(); + } + if (dnsCacheConfigBuilder_ == null) { + result.dnsCacheConfig_ = dnsCacheConfig_; + } else { + result.dnsCacheConfig_ = dnsCacheConfigBuilder_.build(); + } + if (configConnectorConfigBuilder_ == null) { + result.configConnectorConfig_ = configConnectorConfig_; + } else { + result.configConnectorConfig_ = configConnectorConfigBuilder_.build(); + } + if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { + result.gcePersistentDiskCsiDriverConfig_ = gcePersistentDiskCsiDriverConfig_; + } else { + result.gcePersistentDiskCsiDriverConfig_ = gcePersistentDiskCsiDriverConfigBuilder_.build(); + } + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + result.gcpFilestoreCsiDriverConfig_ = gcpFilestoreCsiDriverConfig_; + } else { + result.gcpFilestoreCsiDriverConfig_ = gcpFilestoreCsiDriverConfigBuilder_.build(); + } + if (gkeBackupAgentConfigBuilder_ == null) { + result.gkeBackupAgentConfig_ = gkeBackupAgentConfig_; + } else { + result.gkeBackupAgentConfig_ = gkeBackupAgentConfigBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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); + + break; + } // case 10 + case 18: + { + input.readMessage( + getHorizontalPodAutoscalingFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + input.readMessage( + getKubernetesDashboardFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + input.readMessage( + getNetworkPolicyConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 58: + { + input.readMessage(getCloudRunConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 58 + case 66: + { + input.readMessage(getDnsCacheConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 66 + case 82: + { + input.readMessage( + getConfigConnectorConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 82 + case 90: + { + input.readMessage( + getGcePersistentDiskCsiDriverConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 90 + case 114: + { + input.readMessage( + getGcpFilestoreCsiDriverConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 114 + case 130: + { + input.readMessage( + getGkeBackupAgentConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 130 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + 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 httpLoadBalancingBuilder_ != null || httpLoadBalancing_ != null; + } + /** + * + * + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.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; + onChanged(); + } else { + httpLoadBalancingBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1.HttpLoadBalancing http_load_balancing = 1; + */ + public Builder setHttpLoadBalancing( + com.google.container.v1.HttpLoadBalancing.Builder builderForValue) { + if (httpLoadBalancingBuilder_ == null) { + httpLoadBalancing_ = builderForValue.build(); + onChanged(); + } else { + httpLoadBalancingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1.HttpLoadBalancing http_load_balancing = 1; + */ + public Builder mergeHttpLoadBalancing(com.google.container.v1.HttpLoadBalancing value) { + if (httpLoadBalancingBuilder_ == null) { + if (httpLoadBalancing_ != null) { + httpLoadBalancing_ = + com.google.container.v1.HttpLoadBalancing.newBuilder(httpLoadBalancing_) + .mergeFrom(value) + .buildPartial(); + } else { + httpLoadBalancing_ = value; + } + onChanged(); + } else { + httpLoadBalancingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1.HttpLoadBalancing http_load_balancing = 1; + */ + public Builder clearHttpLoadBalancing() { + if (httpLoadBalancingBuilder_ == null) { + httpLoadBalancing_ = null; + onChanged(); + } else { + httpLoadBalancing_ = null; + httpLoadBalancingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1.HttpLoadBalancing http_load_balancing = 1; + */ + public com.google.container.v1.HttpLoadBalancing.Builder getHttpLoadBalancingBuilder() { + + onChanged(); + return getHttpLoadBalancingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.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 horizontalPodAutoscalingBuilder_ != null || horizontalPodAutoscaling_ != null; + } + /** + * + * + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.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; + onChanged(); + } else { + horizontalPodAutoscalingBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + public Builder setHorizontalPodAutoscaling( + com.google.container.v1.HorizontalPodAutoscaling.Builder builderForValue) { + if (horizontalPodAutoscalingBuilder_ == null) { + horizontalPodAutoscaling_ = builderForValue.build(); + onChanged(); + } else { + horizontalPodAutoscalingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + public Builder mergeHorizontalPodAutoscaling( + com.google.container.v1.HorizontalPodAutoscaling value) { + if (horizontalPodAutoscalingBuilder_ == null) { + if (horizontalPodAutoscaling_ != null) { + horizontalPodAutoscaling_ = + com.google.container.v1.HorizontalPodAutoscaling.newBuilder(horizontalPodAutoscaling_) + .mergeFrom(value) + .buildPartial(); + } else { + horizontalPodAutoscaling_ = value; + } + onChanged(); + } else { + horizontalPodAutoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + public Builder clearHorizontalPodAutoscaling() { + if (horizontalPodAutoscalingBuilder_ == null) { + horizontalPodAutoscaling_ = null; + onChanged(); + } else { + horizontalPodAutoscaling_ = null; + horizontalPodAutoscalingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + public com.google.container.v1.HorizontalPodAutoscaling.Builder + getHorizontalPodAutoscalingBuilder() { + + onChanged(); + return getHorizontalPodAutoscalingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.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=1043 + * @return Whether the kubernetesDashboard field is set. + */ + @java.lang.Deprecated + public boolean hasKubernetesDashboard() { + return kubernetesDashboardBuilder_ != null || kubernetesDashboard_ != null; + } + /** + * + * + *
+     * Configuration for the Kubernetes Dashboard.
+     * This addon is deprecated, and will be disabled in 1.15. It is recommended
+     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
+     * workloads and applications. For more information, see:
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
+     * 
+ * + * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + * + * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See + * google/container/v1/cluster_service.proto;l=1043 + * @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; + onChanged(); + } else { + kubernetesDashboardBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the Kubernetes Dashboard.
+     * This addon is deprecated, and will be disabled in 1.15. It is recommended
+     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
+     * workloads and applications. For more information, see:
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
+     * 
+ * + * .google.container.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(); + onChanged(); + } else { + kubernetesDashboardBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for the Kubernetes Dashboard.
+     * This addon is deprecated, and will be disabled in 1.15. It is recommended
+     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
+     * workloads and applications. For more information, see:
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
+     * 
+ * + * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder mergeKubernetesDashboard(com.google.container.v1.KubernetesDashboard value) { + if (kubernetesDashboardBuilder_ == null) { + if (kubernetesDashboard_ != null) { + kubernetesDashboard_ = + com.google.container.v1.KubernetesDashboard.newBuilder(kubernetesDashboard_) + .mergeFrom(value) + .buildPartial(); + } else { + kubernetesDashboard_ = value; + } + onChanged(); + } else { + kubernetesDashboardBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the Kubernetes Dashboard.
+     * This addon is deprecated, and will be disabled in 1.15. It is recommended
+     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
+     * workloads and applications. For more information, see:
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
+     * 
+ * + * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder clearKubernetesDashboard() { + if (kubernetesDashboardBuilder_ == null) { + kubernetesDashboard_ = null; + onChanged(); + } else { + kubernetesDashboard_ = null; + kubernetesDashboardBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for the Kubernetes Dashboard.
+     * This addon is deprecated, and will be disabled in 1.15. It is recommended
+     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
+     * workloads and applications. For more information, see:
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
+     * 
+ * + * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.container.v1.KubernetesDashboard.Builder getKubernetesDashboardBuilder() { + + onChanged(); + return getKubernetesDashboardFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for the Kubernetes Dashboard.
+     * This addon is deprecated, and will be disabled in 1.15. It is recommended
+     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
+     * workloads and applications. For more information, see:
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
+     * 
+ * + * .google.container.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 networkPolicyConfigBuilder_ != null || networkPolicyConfig_ != null; + } + /** + * + * + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.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; + onChanged(); + } else { + networkPolicyConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1.NetworkPolicyConfig network_policy_config = 4; + */ + public Builder setNetworkPolicyConfig( + com.google.container.v1.NetworkPolicyConfig.Builder builderForValue) { + if (networkPolicyConfigBuilder_ == null) { + networkPolicyConfig_ = builderForValue.build(); + onChanged(); + } else { + networkPolicyConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1.NetworkPolicyConfig network_policy_config = 4; + */ + public Builder mergeNetworkPolicyConfig(com.google.container.v1.NetworkPolicyConfig value) { + if (networkPolicyConfigBuilder_ == null) { + if (networkPolicyConfig_ != null) { + networkPolicyConfig_ = + com.google.container.v1.NetworkPolicyConfig.newBuilder(networkPolicyConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + networkPolicyConfig_ = value; + } + onChanged(); + } else { + networkPolicyConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1.NetworkPolicyConfig network_policy_config = 4; + */ + public Builder clearNetworkPolicyConfig() { + if (networkPolicyConfigBuilder_ == null) { + networkPolicyConfig_ = null; + onChanged(); + } else { + networkPolicyConfig_ = null; + networkPolicyConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1.NetworkPolicyConfig network_policy_config = 4; + */ + public com.google.container.v1.NetworkPolicyConfig.Builder getNetworkPolicyConfigBuilder() { + + onChanged(); + return getNetworkPolicyConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.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 cloudRunConfigBuilder_ != null || cloudRunConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + cloudRunConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + cloudRunConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (cloudRunConfig_ != null) { + cloudRunConfig_ = + com.google.container.v1.CloudRunConfig.newBuilder(cloudRunConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + cloudRunConfig_ = value; + } + onChanged(); + } else { + cloudRunConfigBuilder_.mergeFrom(value); + } + + 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() { + if (cloudRunConfigBuilder_ == null) { + cloudRunConfig_ = null; + onChanged(); + } else { + cloudRunConfig_ = null; + cloudRunConfigBuilder_ = null; + } + + 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() { + + 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 dnsCacheConfigBuilder_ != null || dnsCacheConfig_ != null; + } + /** + * + * + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + * + * @return The dnsCacheConfig. + */ + public com.google.container.v1.DnsCacheConfig getDnsCacheConfig() { + if (dnsCacheConfigBuilder_ == null) { + return dnsCacheConfig_ == null + ? com.google.container.v1.DnsCacheConfig.getDefaultInstance() + : dnsCacheConfig_; + } else { + return dnsCacheConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + */ + public Builder setDnsCacheConfig(com.google.container.v1.DnsCacheConfig value) { + if (dnsCacheConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dnsCacheConfig_ = value; + onChanged(); + } else { + dnsCacheConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + */ + public Builder setDnsCacheConfig( + com.google.container.v1.DnsCacheConfig.Builder builderForValue) { + if (dnsCacheConfigBuilder_ == null) { + dnsCacheConfig_ = builderForValue.build(); + onChanged(); + } else { + dnsCacheConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + */ + public Builder mergeDnsCacheConfig(com.google.container.v1.DnsCacheConfig value) { + if (dnsCacheConfigBuilder_ == null) { + if (dnsCacheConfig_ != null) { + dnsCacheConfig_ = + com.google.container.v1.DnsCacheConfig.newBuilder(dnsCacheConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + dnsCacheConfig_ = value; + } + onChanged(); + } else { + dnsCacheConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + */ + public Builder clearDnsCacheConfig() { + if (dnsCacheConfigBuilder_ == null) { + dnsCacheConfig_ = null; + onChanged(); + } else { + dnsCacheConfig_ = null; + dnsCacheConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + */ + public com.google.container.v1.DnsCacheConfig.Builder getDnsCacheConfigBuilder() { + + onChanged(); + return getDnsCacheConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + */ + public com.google.container.v1.DnsCacheConfigOrBuilder getDnsCacheConfigOrBuilder() { + if (dnsCacheConfigBuilder_ != null) { + return dnsCacheConfigBuilder_.getMessageOrBuilder(); + } else { + return dnsCacheConfig_ == null + ? com.google.container.v1.DnsCacheConfig.getDefaultInstance() + : dnsCacheConfig_; + } + } + /** + * + * + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DnsCacheConfig, + com.google.container.v1.DnsCacheConfig.Builder, + com.google.container.v1.DnsCacheConfigOrBuilder> + getDnsCacheConfigFieldBuilder() { + if (dnsCacheConfigBuilder_ == null) { + dnsCacheConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DnsCacheConfig, + com.google.container.v1.DnsCacheConfig.Builder, + com.google.container.v1.DnsCacheConfigOrBuilder>( + getDnsCacheConfig(), getParentForChildren(), isClean()); + dnsCacheConfig_ = null; + } + return dnsCacheConfigBuilder_; + } + + private com.google.container.v1.ConfigConnectorConfig configConnectorConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ConfigConnectorConfig, + com.google.container.v1.ConfigConnectorConfig.Builder, + com.google.container.v1.ConfigConnectorConfigOrBuilder> + configConnectorConfigBuilder_; + /** + * + * + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + * + * @return Whether the configConnectorConfig field is set. + */ + public boolean hasConfigConnectorConfig() { + return configConnectorConfigBuilder_ != null || configConnectorConfig_ != null; + } + /** + * + * + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + * + * @return The configConnectorConfig. + */ + public com.google.container.v1.ConfigConnectorConfig getConfigConnectorConfig() { + if (configConnectorConfigBuilder_ == null) { + return configConnectorConfig_ == null + ? com.google.container.v1.ConfigConnectorConfig.getDefaultInstance() + : configConnectorConfig_; + } else { + return configConnectorConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + */ + public Builder setConfigConnectorConfig(com.google.container.v1.ConfigConnectorConfig value) { + if (configConnectorConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + configConnectorConfig_ = value; + onChanged(); + } else { + configConnectorConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + */ + public Builder setConfigConnectorConfig( + com.google.container.v1.ConfigConnectorConfig.Builder builderForValue) { + if (configConnectorConfigBuilder_ == null) { + configConnectorConfig_ = builderForValue.build(); + onChanged(); + } else { + configConnectorConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + */ + public Builder mergeConfigConnectorConfig(com.google.container.v1.ConfigConnectorConfig value) { + if (configConnectorConfigBuilder_ == null) { + if (configConnectorConfig_ != null) { + configConnectorConfig_ = + com.google.container.v1.ConfigConnectorConfig.newBuilder(configConnectorConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + configConnectorConfig_ = value; + } + onChanged(); + } else { + configConnectorConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + */ + public Builder clearConfigConnectorConfig() { + if (configConnectorConfigBuilder_ == null) { + configConnectorConfig_ = null; + onChanged(); + } else { + configConnectorConfig_ = null; + configConnectorConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + */ + public com.google.container.v1.ConfigConnectorConfig.Builder getConfigConnectorConfigBuilder() { + + onChanged(); + return getConfigConnectorConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + */ + public com.google.container.v1.ConfigConnectorConfigOrBuilder + getConfigConnectorConfigOrBuilder() { + if (configConnectorConfigBuilder_ != null) { + return configConnectorConfigBuilder_.getMessageOrBuilder(); + } else { + return configConnectorConfig_ == null + ? com.google.container.v1.ConfigConnectorConfig.getDefaultInstance() + : configConnectorConfig_; + } + } + /** + * + * + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ConfigConnectorConfig, + com.google.container.v1.ConfigConnectorConfig.Builder, + com.google.container.v1.ConfigConnectorConfigOrBuilder> + getConfigConnectorConfigFieldBuilder() { + if (configConnectorConfigBuilder_ == null) { + configConnectorConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ConfigConnectorConfig, + com.google.container.v1.ConfigConnectorConfig.Builder, + com.google.container.v1.ConfigConnectorConfigOrBuilder>( + getConfigConnectorConfig(), getParentForChildren(), isClean()); + configConnectorConfig_ = null; + } + return configConnectorConfigBuilder_; + } + + private com.google.container.v1.GcePersistentDiskCsiDriverConfig + gcePersistentDiskCsiDriverConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcePersistentDiskCsiDriverConfig, + com.google.container.v1.GcePersistentDiskCsiDriverConfig.Builder, + com.google.container.v1.GcePersistentDiskCsiDriverConfigOrBuilder> + gcePersistentDiskCsiDriverConfigBuilder_; + /** + * + * + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + * + * @return Whether the gcePersistentDiskCsiDriverConfig field is set. + */ + public boolean hasGcePersistentDiskCsiDriverConfig() { + return gcePersistentDiskCsiDriverConfigBuilder_ != null + || gcePersistentDiskCsiDriverConfig_ != null; + } + /** + * + * + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + * + * @return The gcePersistentDiskCsiDriverConfig. + */ + public com.google.container.v1.GcePersistentDiskCsiDriverConfig + getGcePersistentDiskCsiDriverConfig() { + if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { + return gcePersistentDiskCsiDriverConfig_ == null + ? com.google.container.v1.GcePersistentDiskCsiDriverConfig.getDefaultInstance() + : gcePersistentDiskCsiDriverConfig_; + } else { + return gcePersistentDiskCsiDriverConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + */ + public Builder setGcePersistentDiskCsiDriverConfig( + com.google.container.v1.GcePersistentDiskCsiDriverConfig value) { + if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcePersistentDiskCsiDriverConfig_ = value; + onChanged(); + } else { + gcePersistentDiskCsiDriverConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + */ + public Builder setGcePersistentDiskCsiDriverConfig( + com.google.container.v1.GcePersistentDiskCsiDriverConfig.Builder builderForValue) { + if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { + gcePersistentDiskCsiDriverConfig_ = builderForValue.build(); + onChanged(); + } else { + gcePersistentDiskCsiDriverConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + */ + public Builder mergeGcePersistentDiskCsiDriverConfig( + com.google.container.v1.GcePersistentDiskCsiDriverConfig value) { + if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { + if (gcePersistentDiskCsiDriverConfig_ != null) { + gcePersistentDiskCsiDriverConfig_ = + com.google.container.v1.GcePersistentDiskCsiDriverConfig.newBuilder( + gcePersistentDiskCsiDriverConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + gcePersistentDiskCsiDriverConfig_ = value; + } + onChanged(); + } else { + gcePersistentDiskCsiDriverConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + */ + public Builder clearGcePersistentDiskCsiDriverConfig() { + if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { + gcePersistentDiskCsiDriverConfig_ = null; + onChanged(); + } else { + gcePersistentDiskCsiDriverConfig_ = null; + gcePersistentDiskCsiDriverConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + */ + public com.google.container.v1.GcePersistentDiskCsiDriverConfig.Builder + getGcePersistentDiskCsiDriverConfigBuilder() { + + onChanged(); + return getGcePersistentDiskCsiDriverConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + */ + public com.google.container.v1.GcePersistentDiskCsiDriverConfigOrBuilder + getGcePersistentDiskCsiDriverConfigOrBuilder() { + if (gcePersistentDiskCsiDriverConfigBuilder_ != null) { + return gcePersistentDiskCsiDriverConfigBuilder_.getMessageOrBuilder(); + } else { + return gcePersistentDiskCsiDriverConfig_ == null + ? com.google.container.v1.GcePersistentDiskCsiDriverConfig.getDefaultInstance() + : gcePersistentDiskCsiDriverConfig_; + } + } + /** + * + * + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcePersistentDiskCsiDriverConfig, + com.google.container.v1.GcePersistentDiskCsiDriverConfig.Builder, + com.google.container.v1.GcePersistentDiskCsiDriverConfigOrBuilder> + getGcePersistentDiskCsiDriverConfigFieldBuilder() { + if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { + gcePersistentDiskCsiDriverConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcePersistentDiskCsiDriverConfig, + com.google.container.v1.GcePersistentDiskCsiDriverConfig.Builder, + com.google.container.v1.GcePersistentDiskCsiDriverConfigOrBuilder>( + getGcePersistentDiskCsiDriverConfig(), getParentForChildren(), isClean()); + gcePersistentDiskCsiDriverConfig_ = null; + } + return gcePersistentDiskCsiDriverConfigBuilder_; + } + + private com.google.container.v1.GcpFilestoreCsiDriverConfig gcpFilestoreCsiDriverConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcpFilestoreCsiDriverConfig, + com.google.container.v1.GcpFilestoreCsiDriverConfig.Builder, + com.google.container.v1.GcpFilestoreCsiDriverConfigOrBuilder> + gcpFilestoreCsiDriverConfigBuilder_; + /** + * + * + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + * + * @return Whether the gcpFilestoreCsiDriverConfig field is set. + */ + public boolean hasGcpFilestoreCsiDriverConfig() { + return gcpFilestoreCsiDriverConfigBuilder_ != null || gcpFilestoreCsiDriverConfig_ != null; + } + /** + * + * + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + * + * @return The gcpFilestoreCsiDriverConfig. + */ + public com.google.container.v1.GcpFilestoreCsiDriverConfig getGcpFilestoreCsiDriverConfig() { + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + return gcpFilestoreCsiDriverConfig_ == null + ? com.google.container.v1.GcpFilestoreCsiDriverConfig.getDefaultInstance() + : gcpFilestoreCsiDriverConfig_; + } else { + return gcpFilestoreCsiDriverConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + */ + public Builder setGcpFilestoreCsiDriverConfig( + com.google.container.v1.GcpFilestoreCsiDriverConfig value) { + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcpFilestoreCsiDriverConfig_ = value; + onChanged(); + } else { + gcpFilestoreCsiDriverConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + */ + public Builder setGcpFilestoreCsiDriverConfig( + com.google.container.v1.GcpFilestoreCsiDriverConfig.Builder builderForValue) { + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + gcpFilestoreCsiDriverConfig_ = builderForValue.build(); + onChanged(); + } else { + gcpFilestoreCsiDriverConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + */ + public Builder mergeGcpFilestoreCsiDriverConfig( + com.google.container.v1.GcpFilestoreCsiDriverConfig value) { + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + if (gcpFilestoreCsiDriverConfig_ != null) { + gcpFilestoreCsiDriverConfig_ = + com.google.container.v1.GcpFilestoreCsiDriverConfig.newBuilder( + gcpFilestoreCsiDriverConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + gcpFilestoreCsiDriverConfig_ = value; + } + onChanged(); + } else { + gcpFilestoreCsiDriverConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + */ + public Builder clearGcpFilestoreCsiDriverConfig() { + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + gcpFilestoreCsiDriverConfig_ = null; + onChanged(); + } else { + gcpFilestoreCsiDriverConfig_ = null; + gcpFilestoreCsiDriverConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + */ + public com.google.container.v1.GcpFilestoreCsiDriverConfig.Builder + getGcpFilestoreCsiDriverConfigBuilder() { + + onChanged(); + return getGcpFilestoreCsiDriverConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + */ + public com.google.container.v1.GcpFilestoreCsiDriverConfigOrBuilder + getGcpFilestoreCsiDriverConfigOrBuilder() { + if (gcpFilestoreCsiDriverConfigBuilder_ != null) { + return gcpFilestoreCsiDriverConfigBuilder_.getMessageOrBuilder(); + } else { + return gcpFilestoreCsiDriverConfig_ == null + ? com.google.container.v1.GcpFilestoreCsiDriverConfig.getDefaultInstance() + : gcpFilestoreCsiDriverConfig_; + } + } + /** + * + * + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcpFilestoreCsiDriverConfig, + com.google.container.v1.GcpFilestoreCsiDriverConfig.Builder, + com.google.container.v1.GcpFilestoreCsiDriverConfigOrBuilder> + getGcpFilestoreCsiDriverConfigFieldBuilder() { + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + gcpFilestoreCsiDriverConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcpFilestoreCsiDriverConfig, + com.google.container.v1.GcpFilestoreCsiDriverConfig.Builder, + com.google.container.v1.GcpFilestoreCsiDriverConfigOrBuilder>( + getGcpFilestoreCsiDriverConfig(), getParentForChildren(), isClean()); + gcpFilestoreCsiDriverConfig_ = null; + } + return gcpFilestoreCsiDriverConfigBuilder_; + } + + 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 gkeBackupAgentConfigBuilder_ != null || gkeBackupAgentConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + gkeBackupAgentConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + gkeBackupAgentConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (gkeBackupAgentConfig_ != null) { + gkeBackupAgentConfig_ = + com.google.container.v1.GkeBackupAgentConfig.newBuilder(gkeBackupAgentConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + gkeBackupAgentConfig_ = value; + } + onChanged(); + } else { + gkeBackupAgentConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + public Builder clearGkeBackupAgentConfig() { + if (gkeBackupAgentConfigBuilder_ == null) { + gkeBackupAgentConfig_ = null; + onChanged(); + } else { + gkeBackupAgentConfig_ = null; + gkeBackupAgentConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + public com.google.container.v1.GkeBackupAgentConfig.Builder getGkeBackupAgentConfigBuilder() { + + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..57175d7621a6 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java @@ -0,0 +1,429 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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=1043 + * @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=1043 + * @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(); +} 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 new file mode 100644 index 000000000000..56c11e6f6c81 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedMachineFeatures.java @@ -0,0 +1,583 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Specifies options for controlling advanced machine features.
+ * 
+ * + * Protobuf type {@code google.container.v1.AdvancedMachineFeatures} + */ +public final class AdvancedMachineFeatures extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.AdvancedMachineFeatures) + AdvancedMachineFeaturesOrBuilder { + private static final long serialVersionUID = 0L; + // Use AdvancedMachineFeatures.newBuilder() to construct. + private AdvancedMachineFeatures(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AdvancedMachineFeatures() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AdvancedMachineFeatures(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_AdvancedMachineFeatures_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_AdvancedMachineFeatures_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.AdvancedMachineFeatures.class, + com.google.container.v1.AdvancedMachineFeatures.Builder.class); + } + + private int bitField0_; + public static final int THREADS_PER_CORE_FIELD_NUMBER = 1; + private long threadsPerCore_; + /** + * + * + *
+   * The number of threads per physical core. To disable simultaneous
+   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+   * supported per core by the underlying processor is assumed.
+   * 
+ * + * optional int64 threads_per_core = 1; + * + * @return Whether the threadsPerCore field is set. + */ + @java.lang.Override + public boolean hasThreadsPerCore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * The number of threads per physical core. To disable simultaneous
+   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+   * supported per core by the underlying processor is assumed.
+   * 
+ * + * optional int64 threads_per_core = 1; + * + * @return The threadsPerCore. + */ + @java.lang.Override + public long getThreadsPerCore() { + return threadsPerCore_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt64(1, threadsPerCore_); + } + 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(); + threadsPerCore_ = 0L; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_AdvancedMachineFeatures_descriptor; + } + + @java.lang.Override + public com.google.container.v1.AdvancedMachineFeatures getDefaultInstanceForType() { + return com.google.container.v1.AdvancedMachineFeatures.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.AdvancedMachineFeatures build() { + com.google.container.v1.AdvancedMachineFeatures result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.AdvancedMachineFeatures buildPartial() { + com.google.container.v1.AdvancedMachineFeatures result = + new com.google.container.v1.AdvancedMachineFeatures(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.threadsPerCore_ = threadsPerCore_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.AdvancedMachineFeatures) { + return mergeFrom((com.google.container.v1.AdvancedMachineFeatures) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.AdvancedMachineFeatures other) { + if (other == com.google.container.v1.AdvancedMachineFeatures.getDefaultInstance()) + return this; + if (other.hasThreadsPerCore()) { + setThreadsPerCore(other.getThreadsPerCore()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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) { + bitField0_ |= 0x00000001; + threadsPerCore_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of threads per physical core. To disable simultaneous
+     * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+     * supported per core by the underlying processor is assumed.
+     * 
+ * + * optional int64 threads_per_core = 1; + * + * @return This builder for chaining. + */ + public Builder clearThreadsPerCore() { + bitField0_ = (bitField0_ & ~0x00000001); + threadsPerCore_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.AdvancedMachineFeatures) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.AdvancedMachineFeatures) + private static final com.google.container.v1.AdvancedMachineFeatures DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.AdvancedMachineFeatures(); + } + + public static com.google.container.v1.AdvancedMachineFeatures getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdvancedMachineFeatures parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..afd7ee39003d --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedMachineFeaturesOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface AdvancedMachineFeaturesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.AdvancedMachineFeatures) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The number of threads per physical core. To disable simultaneous
+   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+   * supported per core by the underlying processor is assumed.
+   * 
+ * + * optional int64 threads_per_core = 1; + * + * @return Whether the threadsPerCore field is set. + */ + boolean hasThreadsPerCore(); + /** + * + * + *
+   * The number of threads per physical core. To disable simultaneous
+   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+   * supported per core by the underlying processor is assumed.
+   * 
+ * + * optional int64 threads_per_core = 1; + * + * @return The threadsPerCore. + */ + long getThreadsPerCore(); +} diff --git a/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 new file mode 100644 index 000000000000..09860cbd78fa --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AuthenticatorGroupsConfig.java @@ -0,0 +1,717 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Configuration for 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * Whether this cluster should return group membership lookups
+   * during authentication using a group of security groups.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int SECURITY_GROUP_FIELD_NUMBER = 2; + private volatile java.lang.Object securityGroup_; + /** + * + * + *
+   * The name of the security group-of-groups to be used. Only relevant
+   * if enabled = true.
+   * 
+ * + * string security_group = 2; + * + * @return The securityGroup. + */ + @java.lang.Override + public java.lang.String getSecurityGroup() { + java.lang.Object ref = securityGroup_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + securityGroup_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the security group-of-groups to be used. Only relevant
+   * if enabled = true.
+   * 
+ * + * string security_group = 2; + * + * @return The bytes for securityGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSecurityGroupBytes() { + java.lang.Object ref = securityGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + securityGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + if (!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(); + 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); + result.enabled_ = enabled_; + result.securityGroup_ = securityGroup_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 8 + case 18: + { + securityGroup_ = input.readStringRequireUtf8(); + + 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 boolean enabled_; + /** + * + * + *
+     * Whether this cluster should return group membership lookups
+     * during authentication using a group of security groups.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether this cluster should return group membership lookups
+     * during authentication using a group of security groups.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether this cluster should return group membership lookups
+     * during authentication using a group of security groups.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + private java.lang.Object securityGroup_ = ""; + /** + * + * + *
+     * The name of the security group-of-groups to be used. Only relevant
+     * if enabled = true.
+     * 
+ * + * string security_group = 2; + * + * @return The securityGroup. + */ + public java.lang.String getSecurityGroup() { + java.lang.Object ref = securityGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + securityGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the security group-of-groups to be used. Only relevant
+     * if enabled = true.
+     * 
+ * + * string security_group = 2; + * + * @return The bytes for securityGroup. + */ + public com.google.protobuf.ByteString getSecurityGroupBytes() { + java.lang.Object ref = securityGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + securityGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the security group-of-groups to be used. Only relevant
+     * if enabled = true.
+     * 
+ * + * string security_group = 2; + * + * @param value The securityGroup to set. + * @return This builder for chaining. + */ + public Builder setSecurityGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + securityGroup_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the security group-of-groups to be used. Only relevant
+     * if enabled = true.
+     * 
+ * + * string security_group = 2; + * + * @return This builder for chaining. + */ + public Builder clearSecurityGroup() { + + securityGroup_ = getDefaultInstance().getSecurityGroup(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the security group-of-groups to be used. Only relevant
+     * if enabled = true.
+     * 
+ * + * string security_group = 2; + * + * @param value The bytes for securityGroup to set. + * @return This builder for chaining. + */ + public Builder setSecurityGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + securityGroup_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..2335da047486 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AuthenticatorGroupsConfigOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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 new file mode 100644 index 000000000000..a5356f5e628d --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptions.java @@ -0,0 +1,815 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + private volatile java.lang.Object autoUpgradeStartTime_; + /** + * + * + *
+   * [Output only] This field is set when upgrades are about to commence
+   * with the approximate start time for the upgrades, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string auto_upgrade_start_time = 1; + * + * @return The autoUpgradeStartTime. + */ + @java.lang.Override + public java.lang.String getAutoUpgradeStartTime() { + java.lang.Object ref = autoUpgradeStartTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + autoUpgradeStartTime_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] This field is set when upgrades are about to commence
+   * with the approximate start time for the upgrades, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string auto_upgrade_start_time = 1; + * + * @return The bytes for autoUpgradeStartTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAutoUpgradeStartTimeBytes() { + java.lang.Object ref = autoUpgradeStartTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + autoUpgradeStartTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + private volatile java.lang.Object description_; + /** + * + * + *
+   * [Output only] This field is set when upgrades are about to commence
+   * with the description of the upgrade.
+   * 
+ * + * string description = 2; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] This field is set when upgrades are about to commence
+   * with the description of the upgrade.
+   * 
+ * + * string description = 2; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + 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); + result.autoUpgradeStartTime_ = autoUpgradeStartTime_; + result.description_ = description_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + + 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 java.lang.Object autoUpgradeStartTime_ = ""; + /** + * + * + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the approximate start time for the upgrades, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string auto_upgrade_start_time = 1; + * + * @return The autoUpgradeStartTime. + */ + public java.lang.String getAutoUpgradeStartTime() { + java.lang.Object ref = autoUpgradeStartTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + autoUpgradeStartTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the approximate start time for the upgrades, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string auto_upgrade_start_time = 1; + * + * @return The bytes for autoUpgradeStartTime. + */ + public com.google.protobuf.ByteString getAutoUpgradeStartTimeBytes() { + java.lang.Object ref = autoUpgradeStartTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + autoUpgradeStartTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the approximate start time for the upgrades, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string auto_upgrade_start_time = 1; + * + * @param value The autoUpgradeStartTime to set. + * @return This builder for chaining. + */ + public Builder setAutoUpgradeStartTime(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + autoUpgradeStartTime_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the approximate start time for the upgrades, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string auto_upgrade_start_time = 1; + * + * @return This builder for chaining. + */ + public Builder clearAutoUpgradeStartTime() { + + autoUpgradeStartTime_ = getDefaultInstance().getAutoUpgradeStartTime(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the approximate start time for the upgrades, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string auto_upgrade_start_time = 1; + * + * @param value The bytes for autoUpgradeStartTime to set. + * @return This builder for chaining. + */ + public Builder setAutoUpgradeStartTimeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + autoUpgradeStartTime_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the description of the upgrade.
+     * 
+ * + * string description = 2; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the description of the upgrade.
+     * 
+ * + * string description = 2; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the description of the upgrade.
+     * 
+ * + * string description = 2; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the description of the upgrade.
+     * 
+ * + * string description = 2; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the description of the upgrade.
+     * 
+ * + * string description = 2; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..28a3e058c08d --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptionsOrBuilder.java @@ -0,0 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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 new file mode 100644 index 000000000000..c82710001b6d --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Autopilot.java @@ -0,0 +1,523 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Autopilot is the configuration for Autopilot settings on the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.Autopilot} + */ +public final class Autopilot extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.Autopilot) + AutopilotOrBuilder { + private static final long serialVersionUID = 0L; + // Use Autopilot.newBuilder() to construct. + private Autopilot(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Autopilot() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Autopilot(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_Autopilot_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_Autopilot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.Autopilot.class, + com.google.container.v1.Autopilot.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Enable Autopilot
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + 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.Autopilot)) { + return super.equals(obj); + } + com.google.container.v1.Autopilot other = (com.google.container.v1.Autopilot) 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.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_Autopilot_descriptor; + } + + @java.lang.Override + public com.google.container.v1.Autopilot getDefaultInstanceForType() { + return com.google.container.v1.Autopilot.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.Autopilot build() { + com.google.container.v1.Autopilot result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.Autopilot buildPartial() { + com.google.container.v1.Autopilot result = new com.google.container.v1.Autopilot(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.Autopilot) { + return mergeFrom((com.google.container.v1.Autopilot) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.Autopilot other) { + if (other == com.google.container.v1.Autopilot.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 boolean enabled_; + /** + * + * + *
+     * Enable Autopilot
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Enable Autopilot
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Enable Autopilot
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.Autopilot) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.Autopilot) + private static final com.google.container.v1.Autopilot DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.Autopilot(); + } + + public static com.google.container.v1.Autopilot getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Autopilot parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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/AutopilotOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutopilotOrBuilder.java new file mode 100644 index 000000000000..8a90c260da0f --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutopilotOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface AutopilotOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.Autopilot) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Enable Autopilot
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/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 new file mode 100644 index 000000000000..6503b69b1c74 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java @@ -0,0 +1,2659 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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.EMPTY; + serviceAccount_ = ""; + minCpuPlatform_ = ""; + diskType_ = ""; + bootDiskKmsKey_ = ""; + imageType_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AutoprovisioningNodePoolDefaults(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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); + } + + public static final int OAUTH_SCOPES_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList oauthScopes_; + /** + * + * + *
+   * 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; + 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 upgradeSettings_ != null; + } + /** + * + * + *
+   * Specifies the upgrade settings for NAP created node pools
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + * + * @return The upgradeSettings. + */ + @java.lang.Override + public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { + return upgradeSettings_ == null + ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() + : upgradeSettings_; + } + /** + * + * + *
+   * Specifies the upgrade settings for NAP created node pools
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + @java.lang.Override + public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { + return getUpgradeSettings(); + } + + public static final int MANAGEMENT_FIELD_NUMBER = 4; + private com.google.container.v1.NodeManagement management_; + /** + * + * + *
+   * Specifies the node management options for NAP created node-pools.
+   * 
+ * + * .google.container.v1.NodeManagement management = 4; + * + * @return Whether the management field is set. + */ + @java.lang.Override + public boolean hasManagement() { + return management_ != null; + } + /** + * + * + *
+   * Specifies the node management options for NAP created node-pools.
+   * 
+ * + * .google.container.v1.NodeManagement management = 4; + * + * @return The management. + */ + @java.lang.Override + public com.google.container.v1.NodeManagement getManagement() { + return management_ == null + ? com.google.container.v1.NodeManagement.getDefaultInstance() + : management_; + } + /** + * + * + *
+   * Specifies the node management options for NAP created node-pools.
+   * 
+ * + * .google.container.v1.NodeManagement management = 4; + */ + @java.lang.Override + public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() { + return getManagement(); + } + + public static final int MIN_CPU_PLATFORM_FIELD_NUMBER = 5; + private volatile java.lang.Object minCpuPlatform_; + /** + * + * + *
+   * 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
+   * https://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=3398 + * @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
+   * https://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=3398 + * @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_; + /** + * + * + *
+   * Size of the disk attached to each node, specified in GB.
+   * The smallest allowed disk size is 10GB.
+   * If unspecified, the default disk size is 100GB.
+   * 
+ * + * int32 disk_size_gb = 6; + * + * @return The diskSizeGb. + */ + @java.lang.Override + public int getDiskSizeGb() { + return diskSizeGb_; + } + + public static final int DISK_TYPE_FIELD_NUMBER = 7; + private volatile java.lang.Object diskType_; + /** + * + * + *
+   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+   * 'pd-balanced')
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 7; + * + * @return The diskType. + */ + @java.lang.Override + public java.lang.String getDiskType() { + java.lang.Object ref = diskType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diskType_ = s; + return s; + } + } + /** + * + * + *
+   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+   * 'pd-balanced')
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 7; + * + * @return The bytes for diskType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDiskTypeBytes() { + java.lang.Object ref = diskType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + diskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 8; + private com.google.container.v1.ShieldedInstanceConfig shieldedInstanceConfig_; + /** + * + * + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + * + * @return Whether the shieldedInstanceConfig field is set. + */ + @java.lang.Override + public boolean hasShieldedInstanceConfig() { + return shieldedInstanceConfig_ != null; + } + /** + * + * + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + * + * @return The shieldedInstanceConfig. + */ + @java.lang.Override + public com.google.container.v1.ShieldedInstanceConfig getShieldedInstanceConfig() { + return shieldedInstanceConfig_ == null + ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; + } + /** + * + * + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + @java.lang.Override + public com.google.container.v1.ShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { + return getShieldedInstanceConfig(); + } + + public static final int BOOT_DISK_KMS_KEY_FIELD_NUMBER = 9; + private volatile java.lang.Object bootDiskKmsKey_; + /** + * + * + *
+   * The Customer Managed Encryption Key used to encrypt the boot disk attached
+   * to each node in the node pool. This should be of the form
+   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+   * For more information about protecting resources with Cloud KMS Keys please
+   * see:
+   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+   * 
+ * + * string boot_disk_kms_key = 9; + * + * @return The bootDiskKmsKey. + */ + @java.lang.Override + public java.lang.String getBootDiskKmsKey() { + java.lang.Object ref = bootDiskKmsKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bootDiskKmsKey_ = s; + return s; + } + } + /** + * + * + *
+   * The Customer Managed Encryption Key used to encrypt the boot disk attached
+   * to each node in the node pool. This should be of the form
+   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+   * For more information about protecting resources with Cloud KMS Keys please
+   * see:
+   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+   * 
+ * + * string boot_disk_kms_key = 9; + * + * @return The bytes for bootDiskKmsKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBootDiskKmsKeyBytes() { + java.lang.Object ref = bootDiskKmsKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bootDiskKmsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IMAGE_TYPE_FIELD_NUMBER = 10; + private volatile java.lang.Object imageType_; + /** + * + * + *
+   * The image type to use for NAP created node.
+   * 
+ * + * 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.
+   * 
+ * + * string image_type = 10; + * + * @return The bytes for imageType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getImageTypeBytes() { + java.lang.Object ref = imageType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < oauthScopes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, oauthScopes_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceAccount_); + } + if (upgradeSettings_ != null) { + output.writeMessage(3, getUpgradeSettings()); + } + if (management_ != null) { + 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 (shieldedInstanceConfig_ != null) { + 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_); + } + 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 (upgradeSettings_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpgradeSettings()); + } + if (management_ != null) { + 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 (shieldedInstanceConfig_ != null) { + 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_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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 (!getUnknownFields().equals(other.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(); + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + serviceAccount_ = ""; + + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = null; + } else { + upgradeSettings_ = null; + upgradeSettingsBuilder_ = null; + } + if (managementBuilder_ == null) { + management_ = null; + } else { + management_ = null; + managementBuilder_ = null; + } + minCpuPlatform_ = ""; + + diskSizeGb_ = 0; + + diskType_ = ""; + + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfig_ = null; + } else { + shieldedInstanceConfig_ = null; + shieldedInstanceConfigBuilder_ = null; + } + bootDiskKmsKey_ = ""; + + imageType_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.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); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + oauthScopes_ = oauthScopes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.oauthScopes_ = oauthScopes_; + result.serviceAccount_ = serviceAccount_; + if (upgradeSettingsBuilder_ == null) { + result.upgradeSettings_ = upgradeSettings_; + } else { + result.upgradeSettings_ = upgradeSettingsBuilder_.build(); + } + if (managementBuilder_ == null) { + result.management_ = management_; + } else { + result.management_ = managementBuilder_.build(); + } + result.minCpuPlatform_ = minCpuPlatform_; + result.diskSizeGb_ = diskSizeGb_; + result.diskType_ = diskType_; + if (shieldedInstanceConfigBuilder_ == null) { + result.shieldedInstanceConfig_ = shieldedInstanceConfig_; + } else { + result.shieldedInstanceConfig_ = shieldedInstanceConfigBuilder_.build(); + } + result.bootDiskKmsKey_ = bootDiskKmsKey_; + result.imageType_ = imageType_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_ = (bitField0_ & ~0x00000001); + } else { + ensureOauthScopesIsMutable(); + oauthScopes_.addAll(other.oauthScopes_); + } + onChanged(); + } + if (!other.getServiceAccount().isEmpty()) { + serviceAccount_ = other.serviceAccount_; + onChanged(); + } + if (other.hasUpgradeSettings()) { + mergeUpgradeSettings(other.getUpgradeSettings()); + } + if (other.hasManagement()) { + mergeManagement(other.getManagement()); + } + if (!other.getMinCpuPlatform().isEmpty()) { + minCpuPlatform_ = other.minCpuPlatform_; + onChanged(); + } + if (other.getDiskSizeGb() != 0) { + setDiskSizeGb(other.getDiskSizeGb()); + } + if (!other.getDiskType().isEmpty()) { + diskType_ = other.diskType_; + onChanged(); + } + if (other.hasShieldedInstanceConfig()) { + mergeShieldedInstanceConfig(other.getShieldedInstanceConfig()); + } + if (!other.getBootDiskKmsKey().isEmpty()) { + bootDiskKmsKey_ = other.bootDiskKmsKey_; + onChanged(); + } + if (!other.getImageType().isEmpty()) { + imageType_ = other.imageType_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 18 + case 26: + { + input.readMessage(getUpgradeSettingsFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + input.readMessage(getManagementFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + minCpuPlatform_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 48: + { + diskSizeGb_ = input.readInt32(); + + break; + } // case 48 + case 58: + { + diskType_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + input.readMessage( + getShieldedInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 66 + case 74: + { + bootDiskKmsKey_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 82: + { + imageType_ = input.readStringRequireUtf8(); + + 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 com.google.protobuf.LazyStringList oauthScopes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureOauthScopesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + oauthScopes_ = new com.google.protobuf.LazyStringArrayList(oauthScopes_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * 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_.getUnmodifiableView(); + } + /** + * + * + *
+     * 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); + 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); + 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_); + 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.EMPTY; + 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); + 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; + 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(); + 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; + 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 upgradeSettingsBuilder_ != null || upgradeSettings_ != null; + } + /** + * + * + *
+     * Specifies the upgrade settings for NAP created node pools
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + * + * @return The upgradeSettings. + */ + public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { + if (upgradeSettingsBuilder_ == null) { + return upgradeSettings_ == null + ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() + : upgradeSettings_; + } else { + return upgradeSettingsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Specifies the upgrade settings for NAP created node pools
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + public Builder setUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { + if (upgradeSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + upgradeSettings_ = value; + onChanged(); + } else { + upgradeSettingsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Specifies the upgrade settings for NAP created node pools
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + public Builder setUpgradeSettings( + com.google.container.v1.NodePool.UpgradeSettings.Builder builderForValue) { + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = builderForValue.build(); + onChanged(); + } else { + upgradeSettingsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Specifies the upgrade settings for NAP created node pools
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + public Builder mergeUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { + if (upgradeSettingsBuilder_ == null) { + if (upgradeSettings_ != null) { + upgradeSettings_ = + com.google.container.v1.NodePool.UpgradeSettings.newBuilder(upgradeSettings_) + .mergeFrom(value) + .buildPartial(); + } else { + upgradeSettings_ = value; + } + onChanged(); + } else { + upgradeSettingsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Specifies the upgrade settings for NAP created node pools
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + public Builder clearUpgradeSettings() { + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = null; + onChanged(); + } else { + upgradeSettings_ = null; + upgradeSettingsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Specifies the upgrade settings for NAP created node pools
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + public com.google.container.v1.NodePool.UpgradeSettings.Builder getUpgradeSettingsBuilder() { + + onChanged(); + return getUpgradeSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Specifies the upgrade settings for NAP created node pools
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { + if (upgradeSettingsBuilder_ != null) { + return upgradeSettingsBuilder_.getMessageOrBuilder(); + } else { + return upgradeSettings_ == null + ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() + : upgradeSettings_; + } + } + /** + * + * + *
+     * Specifies the upgrade settings for NAP created node pools
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.UpgradeSettings, + com.google.container.v1.NodePool.UpgradeSettings.Builder, + com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> + getUpgradeSettingsFieldBuilder() { + if (upgradeSettingsBuilder_ == null) { + upgradeSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.UpgradeSettings, + com.google.container.v1.NodePool.UpgradeSettings.Builder, + com.google.container.v1.NodePool.UpgradeSettingsOrBuilder>( + getUpgradeSettings(), getParentForChildren(), isClean()); + upgradeSettings_ = null; + } + return upgradeSettingsBuilder_; + } + + private com.google.container.v1.NodeManagement management_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeManagement, + com.google.container.v1.NodeManagement.Builder, + com.google.container.v1.NodeManagementOrBuilder> + managementBuilder_; + /** + * + * + *
+     * Specifies the node management options for NAP created node-pools.
+     * 
+ * + * .google.container.v1.NodeManagement management = 4; + * + * @return Whether the management field is set. + */ + public boolean hasManagement() { + return managementBuilder_ != null || management_ != null; + } + /** + * + * + *
+     * Specifies the node management options for NAP created node-pools.
+     * 
+ * + * .google.container.v1.NodeManagement management = 4; + * + * @return The management. + */ + public com.google.container.v1.NodeManagement getManagement() { + if (managementBuilder_ == null) { + return management_ == null + ? com.google.container.v1.NodeManagement.getDefaultInstance() + : management_; + } else { + return managementBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Specifies the node management options for NAP created node-pools.
+     * 
+ * + * .google.container.v1.NodeManagement management = 4; + */ + public Builder setManagement(com.google.container.v1.NodeManagement value) { + if (managementBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + management_ = value; + onChanged(); + } else { + managementBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Specifies the node management options for NAP created node-pools.
+     * 
+ * + * .google.container.v1.NodeManagement management = 4; + */ + public Builder setManagement(com.google.container.v1.NodeManagement.Builder builderForValue) { + if (managementBuilder_ == null) { + management_ = builderForValue.build(); + onChanged(); + } else { + managementBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Specifies the node management options for NAP created node-pools.
+     * 
+ * + * .google.container.v1.NodeManagement management = 4; + */ + public Builder mergeManagement(com.google.container.v1.NodeManagement value) { + if (managementBuilder_ == null) { + if (management_ != null) { + management_ = + com.google.container.v1.NodeManagement.newBuilder(management_) + .mergeFrom(value) + .buildPartial(); + } else { + management_ = value; + } + onChanged(); + } else { + managementBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Specifies the node management options for NAP created node-pools.
+     * 
+ * + * .google.container.v1.NodeManagement management = 4; + */ + public Builder clearManagement() { + if (managementBuilder_ == null) { + management_ = null; + onChanged(); + } else { + management_ = null; + managementBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Specifies the node management options for NAP created node-pools.
+     * 
+ * + * .google.container.v1.NodeManagement management = 4; + */ + public com.google.container.v1.NodeManagement.Builder getManagementBuilder() { + + onChanged(); + return getManagementFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Specifies the node management options for NAP created node-pools.
+     * 
+ * + * .google.container.v1.NodeManagement management = 4; + */ + public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() { + if (managementBuilder_ != null) { + return managementBuilder_.getMessageOrBuilder(); + } else { + return management_ == null + ? com.google.container.v1.NodeManagement.getDefaultInstance() + : management_; + } + } + /** + * + * + *
+     * Specifies the node management options for NAP created node-pools.
+     * 
+ * + * .google.container.v1.NodeManagement management = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeManagement, + com.google.container.v1.NodeManagement.Builder, + com.google.container.v1.NodeManagementOrBuilder> + getManagementFieldBuilder() { + if (managementBuilder_ == null) { + managementBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeManagement, + com.google.container.v1.NodeManagement.Builder, + com.google.container.v1.NodeManagementOrBuilder>( + getManagement(), getParentForChildren(), isClean()); + management_ = null; + } + return managementBuilder_; + } + + private java.lang.Object minCpuPlatform_ = ""; + /** + * + * + *
+     * 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
+     * https://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=3398 + * @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
+     * https://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=3398 + * @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
+     * https://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=3398 + * @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; + 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
+     * https://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=3398 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearMinCpuPlatform() { + + minCpuPlatform_ = getDefaultInstance().getMinCpuPlatform(); + 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
+     * https://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=3398 + * @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; + onChanged(); + return this; + } + + private int diskSizeGb_; + /** + * + * + *
+     * Size of the disk attached to each node, specified in GB.
+     * The smallest allowed disk size is 10GB.
+     * If unspecified, the default disk size is 100GB.
+     * 
+ * + * int32 disk_size_gb = 6; + * + * @return The diskSizeGb. + */ + @java.lang.Override + public int getDiskSizeGb() { + return diskSizeGb_; + } + /** + * + * + *
+     * Size of the disk attached to each node, specified in GB.
+     * The smallest allowed disk size is 10GB.
+     * If unspecified, the default disk size is 100GB.
+     * 
+ * + * int32 disk_size_gb = 6; + * + * @param value The diskSizeGb to set. + * @return This builder for chaining. + */ + public Builder setDiskSizeGb(int value) { + + diskSizeGb_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Size of the disk attached to each node, specified in GB.
+     * The smallest allowed disk size is 10GB.
+     * If unspecified, the default disk size is 100GB.
+     * 
+ * + * int32 disk_size_gb = 6; + * + * @return This builder for chaining. + */ + public Builder clearDiskSizeGb() { + + diskSizeGb_ = 0; + onChanged(); + return this; + } + + private java.lang.Object diskType_ = ""; + /** + * + * + *
+     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 7; + * + * @return The diskType. + */ + public java.lang.String getDiskType() { + java.lang.Object ref = diskType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diskType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 7; + * + * @return The bytes for diskType. + */ + public com.google.protobuf.ByteString getDiskTypeBytes() { + java.lang.Object ref = diskType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + diskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 7; + * + * @param value The diskType to set. + * @return This builder for chaining. + */ + public Builder setDiskType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + diskType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 7; + * + * @return This builder for chaining. + */ + public Builder clearDiskType() { + + diskType_ = getDefaultInstance().getDiskType(); + onChanged(); + return this; + } + /** + * + * + *
+     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 7; + * + * @param value The bytes for diskType to set. + * @return This builder for chaining. + */ + public Builder setDiskTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + diskType_ = value; + onChanged(); + return this; + } + + private com.google.container.v1.ShieldedInstanceConfig shieldedInstanceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ShieldedInstanceConfig, + com.google.container.v1.ShieldedInstanceConfig.Builder, + com.google.container.v1.ShieldedInstanceConfigOrBuilder> + shieldedInstanceConfigBuilder_; + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + * + * @return Whether the shieldedInstanceConfig field is set. + */ + public boolean hasShieldedInstanceConfig() { + return shieldedInstanceConfigBuilder_ != null || shieldedInstanceConfig_ != null; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + * + * @return The shieldedInstanceConfig. + */ + public com.google.container.v1.ShieldedInstanceConfig getShieldedInstanceConfig() { + if (shieldedInstanceConfigBuilder_ == null) { + return shieldedInstanceConfig_ == null + ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; + } else { + return shieldedInstanceConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + public Builder setShieldedInstanceConfig(com.google.container.v1.ShieldedInstanceConfig value) { + if (shieldedInstanceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + shieldedInstanceConfig_ = value; + onChanged(); + } else { + shieldedInstanceConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + public Builder setShieldedInstanceConfig( + com.google.container.v1.ShieldedInstanceConfig.Builder builderForValue) { + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfig_ = builderForValue.build(); + onChanged(); + } else { + shieldedInstanceConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + public Builder mergeShieldedInstanceConfig( + com.google.container.v1.ShieldedInstanceConfig value) { + if (shieldedInstanceConfigBuilder_ == null) { + if (shieldedInstanceConfig_ != null) { + shieldedInstanceConfig_ = + com.google.container.v1.ShieldedInstanceConfig.newBuilder(shieldedInstanceConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + shieldedInstanceConfig_ = value; + } + onChanged(); + } else { + shieldedInstanceConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + public Builder clearShieldedInstanceConfig() { + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfig_ = null; + onChanged(); + } else { + shieldedInstanceConfig_ = null; + shieldedInstanceConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + public com.google.container.v1.ShieldedInstanceConfig.Builder + getShieldedInstanceConfigBuilder() { + + onChanged(); + return getShieldedInstanceConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + public com.google.container.v1.ShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { + if (shieldedInstanceConfigBuilder_ != null) { + return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); + } else { + return shieldedInstanceConfig_ == null + ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; + } + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ShieldedInstanceConfig, + com.google.container.v1.ShieldedInstanceConfig.Builder, + com.google.container.v1.ShieldedInstanceConfigOrBuilder> + getShieldedInstanceConfigFieldBuilder() { + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ShieldedInstanceConfig, + com.google.container.v1.ShieldedInstanceConfig.Builder, + com.google.container.v1.ShieldedInstanceConfigOrBuilder>( + getShieldedInstanceConfig(), getParentForChildren(), isClean()); + shieldedInstanceConfig_ = null; + } + return shieldedInstanceConfigBuilder_; + } + + private java.lang.Object bootDiskKmsKey_ = ""; + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 9; + * + * @return The bootDiskKmsKey. + */ + public java.lang.String getBootDiskKmsKey() { + java.lang.Object ref = bootDiskKmsKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bootDiskKmsKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 9; + * + * @return The bytes for bootDiskKmsKey. + */ + public com.google.protobuf.ByteString getBootDiskKmsKeyBytes() { + java.lang.Object ref = bootDiskKmsKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bootDiskKmsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 9; + * + * @param value The bootDiskKmsKey to set. + * @return This builder for chaining. + */ + public Builder setBootDiskKmsKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + bootDiskKmsKey_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 9; + * + * @return This builder for chaining. + */ + public Builder clearBootDiskKmsKey() { + + bootDiskKmsKey_ = getDefaultInstance().getBootDiskKmsKey(); + onChanged(); + return this; + } + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 9; + * + * @param value The bytes for bootDiskKmsKey to set. + * @return This builder for chaining. + */ + public Builder setBootDiskKmsKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bootDiskKmsKey_ = value; + onChanged(); + return this; + } + + private java.lang.Object imageType_ = ""; + /** + * + * + *
+     * The image type to use for NAP created node.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * string image_type = 10; + * + * @param value The imageType to set. + * @return This builder for chaining. + */ + public Builder setImageType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + imageType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The image type to use for NAP created node.
+     * 
+ * + * string image_type = 10; + * + * @return This builder for chaining. + */ + public Builder clearImageType() { + + imageType_ = getDefaultInstance().getImageType(); + onChanged(); + return this; + } + /** + * + * + *
+     * The image type to use for NAP created node.
+     * 
+ * + * string image_type = 10; + * + * @param value The bytes for imageType to set. + * @return This builder for chaining. + */ + public Builder setImageTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + imageType_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..8f749d2b39ff --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java @@ -0,0 +1,363 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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
+   * https://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=3398 + * @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
+   * https://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=3398 + * @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.
+   * 
+ * + * string image_type = 10; + * + * @return The imageType. + */ + java.lang.String getImageType(); + /** + * + * + *
+   * The image type to use for NAP created node.
+   * 
+ * + * string image_type = 10; + * + * @return The bytes for imageType. + */ + com.google.protobuf.ByteString getImageTypeBytes(); +} 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 new file mode 100644 index 000000000000..1b366d5b5292 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorization.java @@ -0,0 +1,880 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Configuration for 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * 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=1278 + * @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_; + /** + * + * + *
+   * Mode of operation for binauthz policy evaluation. Currently the only
+   * options are equivalent to enable/disable. 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. Currently the only
+   * options are equivalent to enable/disable. 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() { + @SuppressWarnings("deprecation") + com.google.container.v1.BinaryAuthorization.EvaluationMode result = + com.google.container.v1.BinaryAuthorization.EvaluationMode.valueOf(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(); + 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); + result.enabled_ = enabled_; + result.evaluationMode_ = evaluationMode_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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(); + + break; + } // case 8 + case 16: + { + evaluationMode_ = input.readEnum(); + + 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 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=1278 + * @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=1278 + * @param value The enabled to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setEnabled(boolean value) { + + enabled_ = value; + 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=1278 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + private int evaluationMode_ = 0; + /** + * + * + *
+     * Mode of operation for binauthz policy evaluation. Currently the only
+     * options are equivalent to enable/disable. 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. Currently the only
+     * options are equivalent to enable/disable. 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Mode of operation for binauthz policy evaluation. Currently the only
+     * options are equivalent to enable/disable. 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() { + @SuppressWarnings("deprecation") + com.google.container.v1.BinaryAuthorization.EvaluationMode result = + com.google.container.v1.BinaryAuthorization.EvaluationMode.valueOf(evaluationMode_); + return result == null + ? com.google.container.v1.BinaryAuthorization.EvaluationMode.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Mode of operation for binauthz policy evaluation. Currently the only
+     * options are equivalent to enable/disable. 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(); + } + + evaluationMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Mode of operation for binauthz policy evaluation. Currently the only
+     * options are equivalent to enable/disable. If unspecified, defaults to
+     * DISABLED.
+     * 
+ * + * .google.container.v1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; + * + * @return This builder for chaining. + */ + public Builder clearEvaluationMode() { + + 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 new file mode 100644 index 000000000000..9091d671d166 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorizationOrBuilder.java @@ -0,0 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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=1278 + * @return The enabled. + */ + @java.lang.Deprecated + boolean getEnabled(); + + /** + * + * + *
+   * Mode of operation for binauthz policy evaluation. Currently the only
+   * options are equivalent to enable/disable. 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. Currently the only
+   * options are equivalent to enable/disable. 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 new file mode 100644 index 000000000000..254152b0357a --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BlueGreenSettings.java @@ -0,0 +1,2312 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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(); + + public 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + 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(); + if (batchSoakDurationBuilder_ == null) { + batchSoakDuration_ = null; + } else { + batchSoakDurationBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + 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); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (updateBatchSizeCase_ == 1) { + result.updateBatchSize_ = updateBatchSize_; + } + if (updateBatchSizeCase_ == 2) { + result.updateBatchSize_ = updateBatchSize_; + } + if (((from_bitField0_ & 0x00000001) != 0)) { + if (batchSoakDurationBuilder_ == null) { + result.batchSoakDuration_ = batchSoakDuration_; + } else { + result.batchSoakDuration_ = batchSoakDurationBuilder_.build(); + } + to_bitField0_ |= 0x00000001; + } + result.bitField0_ = to_bitField0_; + result.updateBatchSizeCase_ = updateBatchSizeCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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_ |= 0x00000001; + 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_ & 0x00000001) != 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; + onChanged(); + } else { + batchSoakDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + 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(); + onChanged(); + } else { + batchSoakDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + 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_ & 0x00000001) != 0) + && batchSoakDuration_ != null + && batchSoakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + batchSoakDuration_ = + com.google.protobuf.Duration.newBuilder(batchSoakDuration_) + .mergeFrom(value) + .buildPartial(); + } else { + batchSoakDuration_ = value; + } + onChanged(); + } else { + batchSoakDurationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + * + * + *
+       * Soak time after each batch gets drained. Default to zero.
+       * 
+ * + * optional .google.protobuf.Duration batch_soak_duration = 3; + */ + public Builder clearBatchSoakDuration() { + if (batchSoakDurationBuilder_ == null) { + batchSoakDuration_ = null; + onChanged(); + } else { + batchSoakDurationBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + 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_ |= 0x00000001; + 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; + 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(); + if (standardRolloutPolicyBuilder_ != null) { + standardRolloutPolicyBuilder_.clear(); + } + if (nodePoolSoakDurationBuilder_ == null) { + nodePoolSoakDuration_ = null; + } else { + nodePoolSoakDurationBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + 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); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (rolloutPolicyCase_ == 1) { + if (standardRolloutPolicyBuilder_ == null) { + result.rolloutPolicy_ = rolloutPolicy_; + } else { + result.rolloutPolicy_ = standardRolloutPolicyBuilder_.build(); + } + } + if (((from_bitField0_ & 0x00000001) != 0)) { + if (nodePoolSoakDurationBuilder_ == null) { + result.nodePoolSoakDuration_ = nodePoolSoakDuration_; + } else { + result.nodePoolSoakDuration_ = nodePoolSoakDurationBuilder_.build(); + } + to_bitField0_ |= 0x00000001; + } + result.bitField0_ = to_bitField0_; + result.rolloutPolicyCase_ = rolloutPolicyCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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_ |= 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 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_ & 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. + */ + 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; + onChanged(); + } else { + nodePoolSoakDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + 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(); + onChanged(); + } else { + nodePoolSoakDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + 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_ & 0x00000001) != 0) + && nodePoolSoakDuration_ != null + && nodePoolSoakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + nodePoolSoakDuration_ = + com.google.protobuf.Duration.newBuilder(nodePoolSoakDuration_) + .mergeFrom(value) + .buildPartial(); + } else { + nodePoolSoakDuration_ = value; + } + onChanged(); + } else { + nodePoolSoakDurationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + 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() { + if (nodePoolSoakDurationBuilder_ == null) { + nodePoolSoakDuration_ = null; + onChanged(); + } else { + nodePoolSoakDurationBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + 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_ |= 0x00000001; + 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 new file mode 100644 index 000000000000..486ad17f4e63 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BlueGreenSettingsOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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(); + + public 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 new file mode 100644 index 000000000000..183191695c08 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java @@ -0,0 +1,1260 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + 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=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.CancelOperationRequest.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; + 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=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
+   * 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=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 OPERATION_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object operationId_; + /** + * + * + *
+   * Deprecated. The server-assigned `name` of the operation.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string operation_id = 3 [deprecated = true]; + * + * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See + * google/container/v1/cluster_service.proto;l=2639 + * @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=2639 + * @return The bytes for operationId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getOperationIdBytes() { + java.lang.Object ref = operationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, operation id) of the operation to cancel.
+   * Specified in the format `projects/*/locations/*/operations/*`.
+   * 
+ * + * string name = 4; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, operation id) of the operation to cancel.
+   * Specified in the format `projects/*/locations/*/operations/*`.
+   * 
+ * + * string name = 4; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + 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); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.operationId_ = operationId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getOperationId().isEmpty()) { + operationId_ = other.operationId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + operationId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + name_ = input.readStringRequireUtf8(); + + 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 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=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.CancelOperationRequest.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.CancelOperationRequest.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; + 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=2629 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + 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=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; + 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=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
+     * 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=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
+     * 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=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; + 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=2635 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + 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=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; + 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=2639 + * @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=2639 + * @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=2639 + * @param value The operationId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setOperationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + operationId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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=2639 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearOperationId() { + + operationId_ = getDefaultInstance().getOperationId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string operation_id = 3 [deprecated = true]; + * + * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See + * google/container/v1/cluster_service.proto;l=2639 + * @param value The bytes for operationId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setOperationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + operationId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, operation id) of the operation to cancel.
+     * Specified in the format `projects/*/locations/*/operations/*`.
+     * 
+ * + * string name = 4; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, operation id) of the operation to cancel.
+     * Specified in the format `projects/*/locations/*/operations/*`.
+     * 
+ * + * string name = 4; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, operation id) of the operation to cancel.
+     * Specified in the format `projects/*/locations/*/operations/*`.
+     * 
+ * + * string name = 4; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, operation id) of the operation to cancel.
+     * Specified in the format `projects/*/locations/*/operations/*`.
+     * 
+ * + * string name = 4; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, operation id) of the operation to cancel.
+     * Specified in the format `projects/*/locations/*/operations/*`.
+     * 
+ * + * string name = 4; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..3425c9e38a87 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java @@ -0,0 +1,157 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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=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.CancelOperationRequest.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
+   * 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=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
+   * 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=2635 + * @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=2639 + * @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=2639 + * @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/ClientCertificateConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClientCertificateConfig.java new file mode 100644 index 000000000000..812e0924e960 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClientCertificateConfig.java @@ -0,0 +1,527 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Configuration for 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * 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(); + 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); + result.issueClientCertificate_ = issueClientCertificate_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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(); + + 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 boolean issueClientCertificate_; + /** + * + * + *
+     * Issue a client certificate.
+     * 
+ * + * bool issue_client_certificate = 1; + * + * @return The issueClientCertificate. + */ + @java.lang.Override + public boolean getIssueClientCertificate() { + return issueClientCertificate_; + } + /** + * + * + *
+     * Issue a client certificate.
+     * 
+ * + * bool issue_client_certificate = 1; + * + * @param value The issueClientCertificate to set. + * @return This builder for chaining. + */ + public Builder setIssueClientCertificate(boolean value) { + + issueClientCertificate_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Issue a client certificate.
+     * 
+ * + * bool issue_client_certificate = 1; + * + * @return This builder for chaining. + */ + public Builder clearIssueClientCertificate() { + + issueClientCertificate_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..b4144311d851 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClientCertificateConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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 new file mode 100644 index 000000000000..d29c5c085499 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfig.java @@ -0,0 +1,843 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Configuration options for the 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * Whether Cloud Run addon is enabled for this cluster.
+   * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + + public static final int LOAD_BALANCER_TYPE_FIELD_NUMBER = 3; + private int loadBalancerType_; + /** + * + * + *
+   * Which load balancer type is installed for Cloud Run.
+   * 
+ * + * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * + * @return The enum numeric value on the wire for loadBalancerType. + */ + @java.lang.Override + public int getLoadBalancerTypeValue() { + return loadBalancerType_; + } + /** + * + * + *
+   * Which load balancer type is installed for Cloud Run.
+   * 
+ * + * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * + * @return The loadBalancerType. + */ + @java.lang.Override + public com.google.container.v1.CloudRunConfig.LoadBalancerType getLoadBalancerType() { + @SuppressWarnings("deprecation") + com.google.container.v1.CloudRunConfig.LoadBalancerType result = + com.google.container.v1.CloudRunConfig.LoadBalancerType.valueOf(loadBalancerType_); + return result == null + ? com.google.container.v1.CloudRunConfig.LoadBalancerType.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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(); + 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); + result.disabled_ = disabled_; + result.loadBalancerType_ = loadBalancerType_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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(); + + break; + } // case 8 + case 24: + { + loadBalancerType_ = input.readEnum(); + + 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 boolean disabled_; + /** + * + * + *
+     * Whether Cloud Run addon is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + /** + * + * + *
+     * Whether Cloud Run addon is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * + * @param value The disabled to set. + * @return This builder for chaining. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether Cloud Run addon is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisabled() { + + disabled_ = false; + onChanged(); + return this; + } + + private int loadBalancerType_ = 0; + /** + * + * + *
+     * Which load balancer type is installed for Cloud Run.
+     * 
+ * + * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * + * @return The enum numeric value on the wire for loadBalancerType. + */ + @java.lang.Override + public int getLoadBalancerTypeValue() { + return loadBalancerType_; + } + /** + * + * + *
+     * Which load balancer type is installed for Cloud Run.
+     * 
+ * + * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * + * @param value The enum numeric value on the wire for loadBalancerType to set. + * @return This builder for chaining. + */ + public Builder setLoadBalancerTypeValue(int value) { + + loadBalancerType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Which load balancer type is installed for Cloud Run.
+     * 
+ * + * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * + * @return The loadBalancerType. + */ + @java.lang.Override + public com.google.container.v1.CloudRunConfig.LoadBalancerType getLoadBalancerType() { + @SuppressWarnings("deprecation") + com.google.container.v1.CloudRunConfig.LoadBalancerType result = + com.google.container.v1.CloudRunConfig.LoadBalancerType.valueOf(loadBalancerType_); + return result == null + ? com.google.container.v1.CloudRunConfig.LoadBalancerType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Which load balancer type is installed for Cloud Run.
+     * 
+ * + * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * + * @param value The loadBalancerType to set. + * @return This builder for chaining. + */ + public Builder setLoadBalancerType( + com.google.container.v1.CloudRunConfig.LoadBalancerType value) { + if (value == null) { + throw new NullPointerException(); + } + + loadBalancerType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Which load balancer type is installed for Cloud Run.
+     * 
+ * + * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * + * @return This builder for chaining. + */ + public Builder clearLoadBalancerType() { + + loadBalancerType_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..7a70eb9844ca --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfigOrBuilder.java @@ -0,0 +1,63 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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 new file mode 100644 index 000000000000..84cd1662ca8b --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java @@ -0,0 +1,16088 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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.EMPTY; + labelFingerprint_ = ""; + selfLink_ = ""; + zone_ = ""; + endpoint_ = ""; + initialClusterVersion_ = ""; + currentMasterVersion_ = ""; + currentNodeVersion_ = ""; + createTime_ = ""; + status_ = 0; + statusMessage_ = ""; + servicesIpv4Cidr_ = ""; + instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + expireTime_ = ""; + location_ = ""; + tpuIpv4CidrBlock_ = ""; + conditions_ = java.util.Collections.emptyList(); + id_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Cluster(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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.MapField internalGetMapField(int number) { + switch (number) { + case 15: + return internalGetResourceLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.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_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name of this cluster. The name must be unique within this project
+   * and location (e.g. zone or region), and can be up to 40 characters with
+   * the following restrictions:
+   * * Lowercase letters, numbers, and hyphens only.
+   * * Must start with a letter.
+   * * Must end with a number or a letter.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name of this cluster. The name must be unique within this project
+   * and location (e.g. zone or region), and can be up to 40 characters with
+   * the following restrictions:
+   * * Lowercase letters, numbers, and hyphens only.
+   * * Must start with a letter.
+   * * Must end with a number or a letter.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + private volatile java.lang.Object description_; + /** + * + * + *
+   * An optional description of this cluster.
+   * 
+ * + * string description = 2; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * An optional description of this cluster.
+   * 
+ * + * string description = 2; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INITIAL_NODE_COUNT_FIELD_NUMBER = 3; + private int initialNodeCount_; + /** + * + * + *
+   * The number of nodes to create in this cluster. You must ensure that your
+   * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
+   * is sufficient for this number of instances. You must also have available
+   * firewall and routes quota.
+   * For requests, this field should only be used in lieu of a
+   * "node_pool" object, since this configuration (along with the
+   * "node_config") will be used to create a "NodePool" object with an
+   * auto-generated name. Do not use this and a node_pool at the same time.
+   * This field is deprecated, use node_pool.initial_node_count instead.
+   * 
+ * + * int32 initial_node_count = 3 [deprecated = true]; + * + * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. See + * google/container/v1/cluster_service.proto;l=1464 + * @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=1477 + * @return Whether the nodeConfig field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasNodeConfig() { + return nodeConfig_ != null; + } + /** + * + * + *
+   * Parameters used in creating the cluster's nodes.
+   * For requests, this field should only be used in lieu of a
+   * "node_pool" object, since this configuration (along with the
+   * "initial_node_count") will be used to create a "NodePool" object with an
+   * auto-generated name. Do not use this and a node_pool at the same time.
+   * For responses, this field will be populated with the node configuration of
+   * the first node pool. (For configuration of each node pool, see
+   * `node_pool.config`)
+   * If unspecified, the defaults are used.
+   * This field is deprecated, use node_pool.config instead.
+   * 
+ * + * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; + * + * @deprecated google.container.v1.Cluster.node_config is deprecated. See + * google/container/v1/cluster_service.proto;l=1477 + * @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 getNodeConfig(); + } + + 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 masterAuth_ != null; + } + /** + * + * + *
+   * The authentication information for accessing the master endpoint.
+   * If unspecified, the defaults are used:
+   * For clusters before v1.12, if master_auth is unspecified, `username` will
+   * be set to "admin", a random password will be generated, and a client
+   * certificate will be issued.
+   * 
+ * + * .google.container.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 getMasterAuth(); + } + + public static final int LOGGING_SERVICE_FIELD_NUMBER = 6; + private volatile java.lang.Object loggingService_; + /** + * + * + *
+   * The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
+   * * `none` - no logs will be exported from the cluster.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+   * 
+ * + * string logging_service = 6; + * + * @return The loggingService. + */ + @java.lang.Override + public java.lang.String getLoggingService() { + java.lang.Object ref = loggingService_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + loggingService_ = s; + return s; + } + } + /** + * + * + *
+   * The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
+   * * `none` - no logs will be exported from the cluster.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+   * 
+ * + * string logging_service = 6; + * + * @return The bytes for loggingService. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLoggingServiceBytes() { + java.lang.Object ref = loggingService_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + loggingService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MONITORING_SERVICE_FIELD_NUMBER = 7; + private volatile java.lang.Object monitoringService_; + /** + * + * + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+   * 
+ * + * string monitoring_service = 7; + * + * @return The monitoringService. + */ + @java.lang.Override + public java.lang.String getMonitoringService() { + java.lang.Object ref = monitoringService_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + monitoringService_ = s; + return s; + } + } + /** + * + * + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+   * 
+ * + * string monitoring_service = 7; + * + * @return The bytes for monitoringService. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMonitoringServiceBytes() { + java.lang.Object ref = monitoringService_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + monitoringService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_FIELD_NUMBER = 8; + private volatile java.lang.Object network_; + /** + * + * + *
+   * The name of the Google Compute Engine
+   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * to which the cluster is connected. If left unspecified, the `default`
+   * network will be used.
+   * 
+ * + * 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; + 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 addonsConfig_ != null; + } + /** + * + * + *
+   * 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 getAddonsConfig(); + } + + public static final int SUBNETWORK_FIELD_NUMBER = 11; + private volatile java.lang.Object subnetwork_; + /** + * + * + *
+   * The name of the Google Compute Engine
+   * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
+   * the cluster is connected.
+   * 
+ * + * 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; + 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; + private com.google.protobuf.LazyStringList locations_; + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This field provides a default value if
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * are not specified during node pool creation.
+   * Warning: changing cluster locations will update the
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * of all node pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return A list containing the locations. + */ + public com.google.protobuf.ProtocolStringList getLocationsList() { + return locations_; + } + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This field provides a default value if
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * are not specified during node pool creation.
+   * Warning: changing cluster locations will update the
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * of all node pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return The count of locations. + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This field provides a default value if
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * are not specified during node pool creation.
+   * Warning: changing cluster locations will update the
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * of all node pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This field provides a default value if
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * are not specified during node pool creation.
+   * Warning: changing cluster locations will update the
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * of all node pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + public com.google.protobuf.ByteString getLocationsBytes(int index) { + return locations_.getByteString(index); + } + + public static final int ENABLE_KUBERNETES_ALPHA_FIELD_NUMBER = 14; + private boolean enableKubernetesAlpha_; + /** + * + * + *
+   * Kubernetes alpha features are enabled on this cluster. This includes alpha
+   * API groups (e.g. 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, + ""); + } + + 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 java.lang.String getResourceLabelsOrDefault( + java.lang.String key, 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; + 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 legacyAbac_ != null; + } + /** + * + * + *
+   * 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 getLegacyAbac(); + } + + 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 networkPolicy_ != null; + } + /** + * + * + *
+   * 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 getNetworkPolicy(); + } + + 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 ipAllocationPolicy_ != null; + } + /** + * + * + *
+   * 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 getIpAllocationPolicy(); + } + + 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 masterAuthorizedNetworksConfig_ != null; + } + /** + * + * + *
+   * 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 getMasterAuthorizedNetworksConfig(); + } + + 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 maintenancePolicy_ != null; + } + /** + * + * + *
+   * 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 getMaintenancePolicy(); + } + + 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 binaryAuthorization_ != null; + } + /** + * + * + *
+   * 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 getBinaryAuthorization(); + } + + 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 autoscaling_ != null; + } + /** + * + * + *
+   * 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 getAutoscaling(); + } + + 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 networkConfig_ != null; + } + /** + * + * + *
+   * 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 getNetworkConfig(); + } + + 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 defaultMaxPodsConstraint_ != null; + } + /** + * + * + *
+   * The default constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool of this cluster. Only honored
+   * if cluster created with IP Alias support.
+   * 
+ * + * .google.container.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 getDefaultMaxPodsConstraint(); + } + + 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 resourceUsageExportConfig_ != null; + } + /** + * + * + *
+   * 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 getResourceUsageExportConfig(); + } + + 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 authenticatorGroupsConfig_ != null; + } + /** + * + * + *
+   * 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 getAuthenticatorGroupsConfig(); + } + + 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 privateClusterConfig_ != null; + } + /** + * + * + *
+   * 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 getPrivateClusterConfig(); + } + + 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 databaseEncryption_ != null; + } + /** + * + * + *
+   * 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 getDatabaseEncryption(); + } + + 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 verticalPodAutoscaling_ != null; + } + /** + * + * + *
+   * 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 getVerticalPodAutoscaling(); + } + + public static final int SHIELDED_NODES_FIELD_NUMBER = 40; + private com.google.container.v1.ShieldedNodes shieldedNodes_; + /** + * + * + *
+   * Shielded Nodes configuration.
+   * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + * + * @return Whether the shieldedNodes field is set. + */ + @java.lang.Override + public boolean hasShieldedNodes() { + return shieldedNodes_ != null; + } + /** + * + * + *
+   * Shielded Nodes configuration.
+   * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + * + * @return The shieldedNodes. + */ + @java.lang.Override + public com.google.container.v1.ShieldedNodes getShieldedNodes() { + return shieldedNodes_ == null + ? com.google.container.v1.ShieldedNodes.getDefaultInstance() + : shieldedNodes_; + } + /** + * + * + *
+   * Shielded Nodes configuration.
+   * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + */ + @java.lang.Override + public com.google.container.v1.ShieldedNodesOrBuilder getShieldedNodesOrBuilder() { + return getShieldedNodes(); + } + + public static final int RELEASE_CHANNEL_FIELD_NUMBER = 41; + private com.google.container.v1.ReleaseChannel releaseChannel_; + /** + * + * + *
+   * Release channel configuration.
+   * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + * + * @return Whether the releaseChannel field is set. + */ + @java.lang.Override + public boolean hasReleaseChannel() { + return releaseChannel_ != null; + } + /** + * + * + *
+   * Release channel configuration.
+   * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + * + * @return The releaseChannel. + */ + @java.lang.Override + public com.google.container.v1.ReleaseChannel getReleaseChannel() { + return releaseChannel_ == null + ? com.google.container.v1.ReleaseChannel.getDefaultInstance() + : releaseChannel_; + } + /** + * + * + *
+   * Release channel configuration.
+   * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + */ + @java.lang.Override + public com.google.container.v1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder() { + return getReleaseChannel(); + } + + public static final int WORKLOAD_IDENTITY_CONFIG_FIELD_NUMBER = 43; + private com.google.container.v1.WorkloadIdentityConfig workloadIdentityConfig_; + /** + * + * + *
+   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+   * policies.
+   * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + * + * @return Whether the workloadIdentityConfig field is set. + */ + @java.lang.Override + public boolean hasWorkloadIdentityConfig() { + return workloadIdentityConfig_ != null; + } + /** + * + * + *
+   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+   * policies.
+   * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + * + * @return The workloadIdentityConfig. + */ + @java.lang.Override + public com.google.container.v1.WorkloadIdentityConfig getWorkloadIdentityConfig() { + return workloadIdentityConfig_ == null + ? com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() + : workloadIdentityConfig_; + } + /** + * + * + *
+   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+   * policies.
+   * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + */ + @java.lang.Override + public com.google.container.v1.WorkloadIdentityConfigOrBuilder + getWorkloadIdentityConfigOrBuilder() { + return getWorkloadIdentityConfig(); + } + + public static final int MESH_CERTIFICATES_FIELD_NUMBER = 67; + private com.google.container.v1.MeshCertificates meshCertificates_; + /** + * + * + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1.MeshCertificates mesh_certificates = 67; + * + * @return Whether the meshCertificates field is set. + */ + @java.lang.Override + public boolean hasMeshCertificates() { + return meshCertificates_ != null; + } + /** + * + * + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1.MeshCertificates mesh_certificates = 67; + * + * @return The meshCertificates. + */ + @java.lang.Override + public com.google.container.v1.MeshCertificates getMeshCertificates() { + return meshCertificates_ == null + ? com.google.container.v1.MeshCertificates.getDefaultInstance() + : meshCertificates_; + } + /** + * + * + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1.MeshCertificates mesh_certificates = 67; + */ + @java.lang.Override + public com.google.container.v1.MeshCertificatesOrBuilder getMeshCertificatesOrBuilder() { + return getMeshCertificates(); + } + + public static final int 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 costManagementConfig_ != null; + } + /** + * + * + *
+   * 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 getCostManagementConfig(); + } + + public static final int NOTIFICATION_CONFIG_FIELD_NUMBER = 49; + private com.google.container.v1.NotificationConfig notificationConfig_; + /** + * + * + *
+   * Notification configuration of the cluster.
+   * 
+ * + * .google.container.v1.NotificationConfig notification_config = 49; + * + * @return Whether the notificationConfig field is set. + */ + @java.lang.Override + public boolean hasNotificationConfig() { + return notificationConfig_ != null; + } + /** + * + * + *
+   * Notification configuration of the cluster.
+   * 
+ * + * .google.container.v1.NotificationConfig notification_config = 49; + * + * @return The notificationConfig. + */ + @java.lang.Override + public com.google.container.v1.NotificationConfig getNotificationConfig() { + return notificationConfig_ == null + ? com.google.container.v1.NotificationConfig.getDefaultInstance() + : notificationConfig_; + } + /** + * + * + *
+   * Notification configuration of the cluster.
+   * 
+ * + * .google.container.v1.NotificationConfig notification_config = 49; + */ + @java.lang.Override + public com.google.container.v1.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { + return getNotificationConfig(); + } + + public static final int CONFIDENTIAL_NODES_FIELD_NUMBER = 50; + private com.google.container.v1.ConfidentialNodes confidentialNodes_; + /** + * + * + *
+   * Configuration of Confidential Nodes.
+   * 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 confidentialNodes_ != null; + } + /** + * + * + *
+   * 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 getConfidentialNodes(); + } + + 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 identityServiceConfig_ != null; + } + /** + * + * + *
+   * 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 getIdentityServiceConfig(); + } + + public static final int SELF_LINK_FIELD_NUMBER = 100; + private volatile java.lang.Object selfLink_; + /** + * + * + *
+   * [Output only] Server-defined URL for the resource.
+   * 
+ * + * string self_link = 100; + * + * @return The selfLink. + */ + @java.lang.Override + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] Server-defined URL for the resource.
+   * 
+ * + * string self_link = 100; + * + * @return The bytes for selfLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 101; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field is deprecated, use location instead.
+   * 
+ * + * string zone = 101 [deprecated = true]; + * + * @deprecated google.container.v1.Cluster.zone is deprecated. See + * google/container/v1/cluster_service.proto;l=1643 + * @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=1643 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENDPOINT_FIELD_NUMBER = 102; + private volatile java.lang.Object endpoint_; + /** + * + * + *
+   * [Output only] The IP address of this cluster's master endpoint.
+   * The endpoint can be accessed from the internet at
+   * `https://username:password@endpoint/`.
+   * See the `masterAuth` property of this resource for username and
+   * password information.
+   * 
+ * + * string endpoint = 102; + * + * @return The endpoint. + */ + @java.lang.Override + public java.lang.String getEndpoint() { + java.lang.Object ref = endpoint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endpoint_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] The IP address of this cluster's master endpoint.
+   * The endpoint can be accessed from the internet at
+   * `https://username:password@endpoint/`.
+   * See the `masterAuth` property of this resource for username and
+   * password information.
+   * 
+ * + * string endpoint = 102; + * + * @return The bytes for endpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEndpointBytes() { + java.lang.Object ref = endpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INITIAL_CLUSTER_VERSION_FIELD_NUMBER = 103; + private volatile java.lang.Object initialClusterVersion_; + /** + * + * + *
+   * The initial Kubernetes version for this cluster.  Valid versions are those
+   * found in validMasterVersions returned by getServerConfig.  The version can
+   * be upgraded over time; such upgrades are reflected in
+   * currentMasterVersion and currentNodeVersion.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "","-": picks the default Kubernetes version
+   * 
+ * + * string initial_cluster_version = 103; + * + * @return The initialClusterVersion. + */ + @java.lang.Override + public java.lang.String getInitialClusterVersion() { + java.lang.Object ref = initialClusterVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + initialClusterVersion_ = s; + return s; + } + } + /** + * + * + *
+   * The initial Kubernetes version for this cluster.  Valid versions are those
+   * found in validMasterVersions returned by getServerConfig.  The version can
+   * be upgraded over time; such upgrades are reflected in
+   * currentMasterVersion and currentNodeVersion.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "","-": picks the default Kubernetes version
+   * 
+ * + * string initial_cluster_version = 103; + * + * @return The bytes for initialClusterVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInitialClusterVersionBytes() { + java.lang.Object ref = initialClusterVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + initialClusterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CURRENT_MASTER_VERSION_FIELD_NUMBER = 104; + private volatile java.lang.Object currentMasterVersion_; + /** + * + * + *
+   * [Output only] The current software version of the master endpoint.
+   * 
+ * + * string current_master_version = 104; + * + * @return The currentMasterVersion. + */ + @java.lang.Override + public java.lang.String getCurrentMasterVersion() { + java.lang.Object ref = currentMasterVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentMasterVersion_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] The current software version of the master endpoint.
+   * 
+ * + * string current_master_version = 104; + * + * @return The bytes for currentMasterVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCurrentMasterVersionBytes() { + java.lang.Object ref = currentMasterVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + currentMasterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CURRENT_NODE_VERSION_FIELD_NUMBER = 105; + private volatile java.lang.Object currentNodeVersion_; + /** + * + * + *
+   * [Output only] Deprecated, use
+   * [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=1676 + * @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=1676 + * @return The bytes for currentNodeVersion. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getCurrentNodeVersionBytes() { + java.lang.Object ref = currentNodeVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + currentNodeVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 106; + private volatile java.lang.Object createTime_; + /** + * + * + *
+   * [Output only] The time the cluster was created, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string create_time = 106; + * + * @return The createTime. + */ + @java.lang.Override + public java.lang.String getCreateTime() { + java.lang.Object ref = createTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + createTime_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] The time the cluster was created, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string create_time = 106; + * + * @return The bytes for createTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCreateTimeBytes() { + java.lang.Object ref = createTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + createTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 107; + private int status_; + /** + * + * + *
+   * [Output only] The current status of this cluster.
+   * 
+ * + * .google.container.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() { + @SuppressWarnings("deprecation") + com.google.container.v1.Cluster.Status result = + com.google.container.v1.Cluster.Status.valueOf(status_); + return result == null ? com.google.container.v1.Cluster.Status.UNRECOGNIZED : result; + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 108; + private volatile java.lang.Object statusMessage_; + /** + * + * + *
+   * [Output only] Deprecated. Use conditions instead.
+   * Additional information about the current status of this
+   * cluster, if available.
+   * 
+ * + * string status_message = 108 [deprecated = true]; + * + * @deprecated google.container.v1.Cluster.status_message is deprecated. See + * google/container/v1/cluster_service.proto;l=1688 + * @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=1688 + * @return The bytes for statusMessage. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_IPV4_CIDR_SIZE_FIELD_NUMBER = 109; + private int nodeIpv4CidrSize_; + /** + * + * + *
+   * [Output only] The size of the address space on each node for hosting
+   * containers. This is provisioned from within the `container_ipv4_cidr`
+   * range. This field will only be set when cluster is in route-based network
+   * mode.
+   * 
+ * + * int32 node_ipv4_cidr_size = 109; + * + * @return The nodeIpv4CidrSize. + */ + @java.lang.Override + public int getNodeIpv4CidrSize() { + return nodeIpv4CidrSize_; + } + + public static final int SERVICES_IPV4_CIDR_FIELD_NUMBER = 110; + private volatile java.lang.Object servicesIpv4Cidr_; + /** + * + * + *
+   * [Output only] The IP address range of the Kubernetes services in
+   * this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `1.2.3.4/29`). Service addresses are
+   * typically put in the last `/16` from the container CIDR.
+   * 
+ * + * string services_ipv4_cidr = 110; + * + * @return The servicesIpv4Cidr. + */ + @java.lang.Override + public java.lang.String getServicesIpv4Cidr() { + java.lang.Object ref = servicesIpv4Cidr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesIpv4Cidr_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] The IP address range of the Kubernetes services in
+   * this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `1.2.3.4/29`). Service addresses are
+   * typically put in the last `/16` from the container CIDR.
+   * 
+ * + * string services_ipv4_cidr = 110; + * + * @return The bytes for servicesIpv4Cidr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { + java.lang.Object ref = servicesIpv4Cidr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servicesIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTANCE_GROUP_URLS_FIELD_NUMBER = 111; + private com.google.protobuf.LazyStringList instanceGroupUrls_; + /** + * + * + *
+   * Deprecated. Use node_pools.instance_group_urls.
+   * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See + * google/container/v1/cluster_service.proto;l=1704 + * @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=1704 + * @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=1704 + * @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=1704 + * @param index The index of the value to return. + * @return The bytes of the instanceGroupUrls at the given index. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { + return instanceGroupUrls_.getByteString(index); + } + + public static final int CURRENT_NODE_COUNT_FIELD_NUMBER = 112; + private int currentNodeCount_; + /** + * + * + *
+   * [Output only]  The number of nodes currently in the cluster. Deprecated.
+   * Call Kubernetes API directly to retrieve node information.
+   * 
+ * + * int32 current_node_count = 112 [deprecated = true]; + * + * @deprecated google.container.v1.Cluster.current_node_count is deprecated. See + * google/container/v1/cluster_service.proto;l=1708 + * @return The currentNodeCount. + */ + @java.lang.Override + @java.lang.Deprecated + public int getCurrentNodeCount() { + return currentNodeCount_; + } + + public static final int EXPIRE_TIME_FIELD_NUMBER = 113; + private volatile java.lang.Object expireTime_; + /** + * + * + *
+   * [Output only] The time the cluster will be automatically
+   * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string expire_time = 113; + * + * @return The expireTime. + */ + @java.lang.Override + public java.lang.String getExpireTime() { + java.lang.Object ref = expireTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + expireTime_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] The time the cluster will be automatically
+   * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string expire_time = 113; + * + * @return The bytes for expireTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExpireTimeBytes() { + java.lang.Object ref = expireTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + expireTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATION_FIELD_NUMBER = 114; + private volatile java.lang.Object location_; + /** + * + * + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * or
+   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * in which the cluster resides.
+   * 
+ * + * string location = 114; + * + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * or
+   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * in which the cluster resides.
+   * 
+ * + * string location = 114; + * + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENABLE_TPU_FIELD_NUMBER = 115; + private boolean enableTpu_; + /** + * + * + *
+   * Enable the ability to use Cloud TPUs in this cluster.
+   * 
+ * + * bool enable_tpu = 115; + * + * @return The enableTpu. + */ + @java.lang.Override + public boolean getEnableTpu() { + return enableTpu_; + } + + public static final int TPU_IPV4_CIDR_BLOCK_FIELD_NUMBER = 116; + private volatile java.lang.Object tpuIpv4CidrBlock_; + /** + * + * + *
+   * [Output only] The IP address range of the Cloud TPUs in this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `1.2.3.4/29`).
+   * 
+ * + * string tpu_ipv4_cidr_block = 116; + * + * @return The tpuIpv4CidrBlock. + */ + @java.lang.Override + public java.lang.String getTpuIpv4CidrBlock() { + java.lang.Object ref = tpuIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tpuIpv4CidrBlock_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] The IP address range of the Cloud TPUs in this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `1.2.3.4/29`).
+   * 
+ * + * string tpu_ipv4_cidr_block = 116; + * + * @return The bytes for tpuIpv4CidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTpuIpv4CidrBlockBytes() { + java.lang.Object ref = tpuIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tpuIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONDITIONS_FIELD_NUMBER = 118; + 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 autopilot_ != null; + } + /** + * + * + *
+   * Autopilot configuration for the cluster.
+   * 
+ * + * .google.container.v1.Autopilot autopilot = 128; + * + * @return The autopilot. + */ + @java.lang.Override + public com.google.container.v1.Autopilot getAutopilot() { + return autopilot_ == null ? com.google.container.v1.Autopilot.getDefaultInstance() : autopilot_; + } + /** + * + * + *
+   * Autopilot configuration for the cluster.
+   * 
+ * + * .google.container.v1.Autopilot autopilot = 128; + */ + @java.lang.Override + public com.google.container.v1.AutopilotOrBuilder getAutopilotOrBuilder() { + return getAutopilot(); + } + + public static final int ID_FIELD_NUMBER = 129; + private volatile java.lang.Object id_; + /** + * + * + *
+   * Output only. Unique id for the cluster.
+   * 
+ * + * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The id. + */ + @java.lang.Override + public 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_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Default NodePool settings for the entire cluster. These settings are
+   * overridden if specified on the specific NodePool object.
+   * 
+ * + * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; + * + * @return The nodePoolDefaults. + */ + @java.lang.Override + public com.google.container.v1.NodePoolDefaults getNodePoolDefaults() { + return nodePoolDefaults_ == null + ? com.google.container.v1.NodePoolDefaults.getDefaultInstance() + : nodePoolDefaults_; + } + /** + * + * + *
+   * Default NodePool settings for the entire cluster. These settings are
+   * overridden if specified on the specific NodePool object.
+   * 
+ * + * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; + */ + @java.lang.Override + public com.google.container.v1.NodePoolDefaultsOrBuilder getNodePoolDefaultsOrBuilder() { + return nodePoolDefaults_ == null + ? com.google.container.v1.NodePoolDefaults.getDefaultInstance() + : nodePoolDefaults_; + } + + public static final int LOGGING_CONFIG_FIELD_NUMBER = 132; + private com.google.container.v1.LoggingConfig loggingConfig_; + /** + * + * + *
+   * Logging configuration for the cluster.
+   * 
+ * + * .google.container.v1.LoggingConfig logging_config = 132; + * + * @return Whether the loggingConfig field is set. + */ + @java.lang.Override + public boolean hasLoggingConfig() { + return loggingConfig_ != null; + } + /** + * + * + *
+   * Logging configuration for the cluster.
+   * 
+ * + * .google.container.v1.LoggingConfig logging_config = 132; + * + * @return The loggingConfig. + */ + @java.lang.Override + public com.google.container.v1.LoggingConfig getLoggingConfig() { + return loggingConfig_ == null + ? com.google.container.v1.LoggingConfig.getDefaultInstance() + : loggingConfig_; + } + /** + * + * + *
+   * Logging configuration for the cluster.
+   * 
+ * + * .google.container.v1.LoggingConfig logging_config = 132; + */ + @java.lang.Override + public com.google.container.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { + return getLoggingConfig(); + } + + public static final int MONITORING_CONFIG_FIELD_NUMBER = 133; + private com.google.container.v1.MonitoringConfig monitoringConfig_; + /** + * + * + *
+   * Monitoring configuration for the cluster.
+   * 
+ * + * .google.container.v1.MonitoringConfig monitoring_config = 133; + * + * @return Whether the monitoringConfig field is set. + */ + @java.lang.Override + public boolean hasMonitoringConfig() { + return monitoringConfig_ != null; + } + /** + * + * + *
+   * Monitoring configuration for the cluster.
+   * 
+ * + * .google.container.v1.MonitoringConfig monitoring_config = 133; + * + * @return The monitoringConfig. + */ + @java.lang.Override + public com.google.container.v1.MonitoringConfig getMonitoringConfig() { + return monitoringConfig_ == null + ? com.google.container.v1.MonitoringConfig.getDefaultInstance() + : monitoringConfig_; + } + /** + * + * + *
+   * Monitoring configuration for the cluster.
+   * 
+ * + * .google.container.v1.MonitoringConfig monitoring_config = 133; + */ + @java.lang.Override + public com.google.container.v1.MonitoringConfigOrBuilder getMonitoringConfigOrBuilder() { + return getMonitoringConfig(); + } + + 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 nodePoolAutoConfig_ != null; + } + /** + * + * + *
+   * 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 getNodePoolAutoConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + if (initialNodeCount_ != 0) { + output.writeInt32(3, initialNodeCount_); + } + if (nodeConfig_ != null) { + output.writeMessage(4, getNodeConfig()); + } + if (masterAuth_ != null) { + output.writeMessage(5, getMasterAuth()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loggingService_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, loggingService_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(monitoringService_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, monitoringService_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterIpv4Cidr_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, clusterIpv4Cidr_); + } + if (addonsConfig_ != null) { + output.writeMessage(10, getAddonsConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, subnetwork_); + } + for (int i = 0; i < nodePools_.size(); i++) { + output.writeMessage(12, nodePools_.get(i)); + } + for (int i = 0; i < locations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, locations_.getRaw(i)); + } + if (enableKubernetesAlpha_ != false) { + output.writeBool(14, enableKubernetesAlpha_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetResourceLabels(), ResourceLabelsDefaultEntryHolder.defaultEntry, 15); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(labelFingerprint_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, labelFingerprint_); + } + if (legacyAbac_ != null) { + output.writeMessage(18, getLegacyAbac()); + } + if (networkPolicy_ != null) { + output.writeMessage(19, getNetworkPolicy()); + } + if (ipAllocationPolicy_ != null) { + output.writeMessage(20, getIpAllocationPolicy()); + } + if (masterAuthorizedNetworksConfig_ != null) { + output.writeMessage(22, getMasterAuthorizedNetworksConfig()); + } + if (maintenancePolicy_ != null) { + output.writeMessage(23, getMaintenancePolicy()); + } + if (binaryAuthorization_ != null) { + output.writeMessage(24, getBinaryAuthorization()); + } + if (autoscaling_ != null) { + output.writeMessage(26, getAutoscaling()); + } + if (networkConfig_ != null) { + output.writeMessage(27, getNetworkConfig()); + } + if (defaultMaxPodsConstraint_ != null) { + output.writeMessage(30, getDefaultMaxPodsConstraint()); + } + if (resourceUsageExportConfig_ != null) { + output.writeMessage(33, getResourceUsageExportConfig()); + } + if (authenticatorGroupsConfig_ != null) { + output.writeMessage(34, getAuthenticatorGroupsConfig()); + } + if (privateClusterConfig_ != null) { + output.writeMessage(37, getPrivateClusterConfig()); + } + if (databaseEncryption_ != null) { + output.writeMessage(38, getDatabaseEncryption()); + } + if (verticalPodAutoscaling_ != null) { + output.writeMessage(39, getVerticalPodAutoscaling()); + } + if (shieldedNodes_ != null) { + output.writeMessage(40, getShieldedNodes()); + } + if (releaseChannel_ != null) { + output.writeMessage(41, getReleaseChannel()); + } + if (workloadIdentityConfig_ != null) { + output.writeMessage(43, getWorkloadIdentityConfig()); + } + if (costManagementConfig_ != null) { + output.writeMessage(45, getCostManagementConfig()); + } + if (notificationConfig_ != null) { + output.writeMessage(49, getNotificationConfig()); + } + if (confidentialNodes_ != null) { + output.writeMessage(50, getConfidentialNodes()); + } + if (identityServiceConfig_ != null) { + output.writeMessage(54, getIdentityServiceConfig()); + } + if (meshCertificates_ != null) { + output.writeMessage(67, getMeshCertificates()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, selfLink_); + } + 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 (autopilot_ != null) { + output.writeMessage(128, getAutopilot()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 129, id_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(131, getNodePoolDefaults()); + } + if (loggingConfig_ != null) { + output.writeMessage(132, getLoggingConfig()); + } + if (monitoringConfig_ != null) { + output.writeMessage(133, getMonitoringConfig()); + } + if (nodePoolAutoConfig_ != null) { + output.writeMessage(136, getNodePoolAutoConfig()); + } + getUnknownFields().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 (nodeConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getNodeConfig()); + } + if (masterAuth_ != null) { + 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 (addonsConfig_ != null) { + 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 (legacyAbac_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getLegacyAbac()); + } + if (networkPolicy_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getNetworkPolicy()); + } + if (ipAllocationPolicy_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getIpAllocationPolicy()); + } + if (masterAuthorizedNetworksConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 22, getMasterAuthorizedNetworksConfig()); + } + if (maintenancePolicy_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getMaintenancePolicy()); + } + if (binaryAuthorization_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(24, getBinaryAuthorization()); + } + if (autoscaling_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getAutoscaling()); + } + if (networkConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, getNetworkConfig()); + } + if (defaultMaxPodsConstraint_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 30, getDefaultMaxPodsConstraint()); + } + if (resourceUsageExportConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 33, getResourceUsageExportConfig()); + } + if (authenticatorGroupsConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 34, getAuthenticatorGroupsConfig()); + } + if (privateClusterConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(37, getPrivateClusterConfig()); + } + if (databaseEncryption_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(38, getDatabaseEncryption()); + } + if (verticalPodAutoscaling_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(39, getVerticalPodAutoscaling()); + } + if (shieldedNodes_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(40, getShieldedNodes()); + } + if (releaseChannel_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(41, getReleaseChannel()); + } + if (workloadIdentityConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(43, getWorkloadIdentityConfig()); + } + if (costManagementConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(45, getCostManagementConfig()); + } + if (notificationConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(49, getNotificationConfig()); + } + if (confidentialNodes_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(50, getConfidentialNodes()); + } + if (identityServiceConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(54, getIdentityServiceConfig()); + } + if (meshCertificates_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(67, getMeshCertificates()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, selfLink_); + } + 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 (autopilot_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(128, getAutopilot()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(129, id_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(131, getNodePoolDefaults()); + } + if (loggingConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(132, getLoggingConfig()); + } + if (monitoringConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(133, getMonitoringConfig()); + } + if (nodePoolAutoConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(136, getNodePoolAutoConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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 = (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.MapField internalGetMapField(int number) { + switch (number) { + case 15: + return internalGetResourceLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 15: + return internalGetMutableResourceLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.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) { + getNodePoolsFieldBuilder(); + getConditionsFieldBuilder(); + getNodePoolDefaultsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + description_ = ""; + + initialNodeCount_ = 0; + + if (nodeConfigBuilder_ == null) { + nodeConfig_ = null; + } else { + nodeConfig_ = null; + nodeConfigBuilder_ = null; + } + if (masterAuthBuilder_ == null) { + masterAuth_ = null; + } else { + masterAuth_ = null; + masterAuthBuilder_ = null; + } + loggingService_ = ""; + + monitoringService_ = ""; + + network_ = ""; + + clusterIpv4Cidr_ = ""; + + if (addonsConfigBuilder_ == null) { + addonsConfig_ = null; + } else { + addonsConfig_ = null; + addonsConfigBuilder_ = null; + } + subnetwork_ = ""; + + if (nodePoolsBuilder_ == null) { + nodePools_ = java.util.Collections.emptyList(); + } else { + nodePools_ = null; + nodePoolsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + enableKubernetesAlpha_ = false; + + internalGetMutableResourceLabels().clear(); + labelFingerprint_ = ""; + + if (legacyAbacBuilder_ == null) { + legacyAbac_ = null; + } else { + legacyAbac_ = null; + legacyAbacBuilder_ = null; + } + if (networkPolicyBuilder_ == null) { + networkPolicy_ = null; + } else { + networkPolicy_ = null; + networkPolicyBuilder_ = null; + } + if (ipAllocationPolicyBuilder_ == null) { + ipAllocationPolicy_ = null; + } else { + ipAllocationPolicy_ = null; + ipAllocationPolicyBuilder_ = null; + } + if (masterAuthorizedNetworksConfigBuilder_ == null) { + masterAuthorizedNetworksConfig_ = null; + } else { + masterAuthorizedNetworksConfig_ = null; + masterAuthorizedNetworksConfigBuilder_ = null; + } + if (maintenancePolicyBuilder_ == null) { + maintenancePolicy_ = null; + } else { + maintenancePolicy_ = null; + maintenancePolicyBuilder_ = null; + } + if (binaryAuthorizationBuilder_ == null) { + binaryAuthorization_ = null; + } else { + binaryAuthorization_ = null; + binaryAuthorizationBuilder_ = null; + } + if (autoscalingBuilder_ == null) { + autoscaling_ = null; + } else { + autoscaling_ = null; + autoscalingBuilder_ = null; + } + if (networkConfigBuilder_ == null) { + networkConfig_ = null; + } else { + networkConfig_ = null; + networkConfigBuilder_ = null; + } + if (defaultMaxPodsConstraintBuilder_ == null) { + defaultMaxPodsConstraint_ = null; + } else { + defaultMaxPodsConstraint_ = null; + defaultMaxPodsConstraintBuilder_ = null; + } + if (resourceUsageExportConfigBuilder_ == null) { + resourceUsageExportConfig_ = null; + } else { + resourceUsageExportConfig_ = null; + resourceUsageExportConfigBuilder_ = null; + } + if (authenticatorGroupsConfigBuilder_ == null) { + authenticatorGroupsConfig_ = null; + } else { + authenticatorGroupsConfig_ = null; + authenticatorGroupsConfigBuilder_ = null; + } + if (privateClusterConfigBuilder_ == null) { + privateClusterConfig_ = null; + } else { + privateClusterConfig_ = null; + privateClusterConfigBuilder_ = null; + } + if (databaseEncryptionBuilder_ == null) { + databaseEncryption_ = null; + } else { + databaseEncryption_ = null; + databaseEncryptionBuilder_ = null; + } + if (verticalPodAutoscalingBuilder_ == null) { + verticalPodAutoscaling_ = null; + } else { + verticalPodAutoscaling_ = null; + verticalPodAutoscalingBuilder_ = null; + } + if (shieldedNodesBuilder_ == null) { + shieldedNodes_ = null; + } else { + shieldedNodes_ = null; + shieldedNodesBuilder_ = null; + } + if (releaseChannelBuilder_ == null) { + releaseChannel_ = null; + } else { + releaseChannel_ = null; + releaseChannelBuilder_ = null; + } + if (workloadIdentityConfigBuilder_ == null) { + workloadIdentityConfig_ = null; + } else { + workloadIdentityConfig_ = null; + workloadIdentityConfigBuilder_ = null; + } + if (meshCertificatesBuilder_ == null) { + meshCertificates_ = null; + } else { + meshCertificates_ = null; + meshCertificatesBuilder_ = null; + } + if (costManagementConfigBuilder_ == null) { + costManagementConfig_ = null; + } else { + costManagementConfig_ = null; + costManagementConfigBuilder_ = null; + } + if (notificationConfigBuilder_ == null) { + notificationConfig_ = null; + } else { + notificationConfig_ = null; + notificationConfigBuilder_ = null; + } + if (confidentialNodesBuilder_ == null) { + confidentialNodes_ = null; + } else { + confidentialNodes_ = null; + confidentialNodesBuilder_ = null; + } + if (identityServiceConfigBuilder_ == null) { + identityServiceConfig_ = null; + } else { + identityServiceConfig_ = null; + identityServiceConfigBuilder_ = null; + } + selfLink_ = ""; + + zone_ = ""; + + endpoint_ = ""; + + initialClusterVersion_ = ""; + + currentMasterVersion_ = ""; + + currentNodeVersion_ = ""; + + createTime_ = ""; + + status_ = 0; + + statusMessage_ = ""; + + nodeIpv4CidrSize_ = 0; + + servicesIpv4Cidr_ = ""; + + instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + currentNodeCount_ = 0; + + expireTime_ = ""; + + location_ = ""; + + enableTpu_ = false; + + tpuIpv4CidrBlock_ = ""; + + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + } else { + conditions_ = null; + conditionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (autopilotBuilder_ == null) { + autopilot_ = null; + } else { + autopilot_ = null; + autopilotBuilder_ = null; + } + id_ = ""; + + if (nodePoolDefaultsBuilder_ == null) { + nodePoolDefaults_ = null; + } else { + nodePoolDefaultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + if (loggingConfigBuilder_ == null) { + loggingConfig_ = null; + } else { + loggingConfig_ = null; + loggingConfigBuilder_ = null; + } + if (monitoringConfigBuilder_ == null) { + monitoringConfig_ = null; + } else { + monitoringConfig_ = null; + monitoringConfigBuilder_ = null; + } + if (nodePoolAutoConfigBuilder_ == null) { + nodePoolAutoConfig_ = null; + } else { + nodePoolAutoConfig_ = null; + nodePoolAutoConfigBuilder_ = 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); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + result.description_ = description_; + result.initialNodeCount_ = initialNodeCount_; + if (nodeConfigBuilder_ == null) { + result.nodeConfig_ = nodeConfig_; + } else { + result.nodeConfig_ = nodeConfigBuilder_.build(); + } + if (masterAuthBuilder_ == null) { + result.masterAuth_ = masterAuth_; + } else { + result.masterAuth_ = masterAuthBuilder_.build(); + } + result.loggingService_ = loggingService_; + result.monitoringService_ = monitoringService_; + result.network_ = network_; + result.clusterIpv4Cidr_ = clusterIpv4Cidr_; + if (addonsConfigBuilder_ == null) { + result.addonsConfig_ = addonsConfig_; + } else { + result.addonsConfig_ = addonsConfigBuilder_.build(); + } + result.subnetwork_ = subnetwork_; + if (nodePoolsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + nodePools_ = java.util.Collections.unmodifiableList(nodePools_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.nodePools_ = nodePools_; + } else { + result.nodePools_ = nodePoolsBuilder_.build(); + } + if (((bitField0_ & 0x00000002) != 0)) { + locations_ = locations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.locations_ = locations_; + result.enableKubernetesAlpha_ = enableKubernetesAlpha_; + result.resourceLabels_ = internalGetResourceLabels(); + result.resourceLabels_.makeImmutable(); + result.labelFingerprint_ = labelFingerprint_; + if (legacyAbacBuilder_ == null) { + result.legacyAbac_ = legacyAbac_; + } else { + result.legacyAbac_ = legacyAbacBuilder_.build(); + } + if (networkPolicyBuilder_ == null) { + result.networkPolicy_ = networkPolicy_; + } else { + result.networkPolicy_ = networkPolicyBuilder_.build(); + } + if (ipAllocationPolicyBuilder_ == null) { + result.ipAllocationPolicy_ = ipAllocationPolicy_; + } else { + result.ipAllocationPolicy_ = ipAllocationPolicyBuilder_.build(); + } + if (masterAuthorizedNetworksConfigBuilder_ == null) { + result.masterAuthorizedNetworksConfig_ = masterAuthorizedNetworksConfig_; + } else { + result.masterAuthorizedNetworksConfig_ = masterAuthorizedNetworksConfigBuilder_.build(); + } + if (maintenancePolicyBuilder_ == null) { + result.maintenancePolicy_ = maintenancePolicy_; + } else { + result.maintenancePolicy_ = maintenancePolicyBuilder_.build(); + } + if (binaryAuthorizationBuilder_ == null) { + result.binaryAuthorization_ = binaryAuthorization_; + } else { + result.binaryAuthorization_ = binaryAuthorizationBuilder_.build(); + } + if (autoscalingBuilder_ == null) { + result.autoscaling_ = autoscaling_; + } else { + result.autoscaling_ = autoscalingBuilder_.build(); + } + if (networkConfigBuilder_ == null) { + result.networkConfig_ = networkConfig_; + } else { + result.networkConfig_ = networkConfigBuilder_.build(); + } + if (defaultMaxPodsConstraintBuilder_ == null) { + result.defaultMaxPodsConstraint_ = defaultMaxPodsConstraint_; + } else { + result.defaultMaxPodsConstraint_ = defaultMaxPodsConstraintBuilder_.build(); + } + if (resourceUsageExportConfigBuilder_ == null) { + result.resourceUsageExportConfig_ = resourceUsageExportConfig_; + } else { + result.resourceUsageExportConfig_ = resourceUsageExportConfigBuilder_.build(); + } + if (authenticatorGroupsConfigBuilder_ == null) { + result.authenticatorGroupsConfig_ = authenticatorGroupsConfig_; + } else { + result.authenticatorGroupsConfig_ = authenticatorGroupsConfigBuilder_.build(); + } + if (privateClusterConfigBuilder_ == null) { + result.privateClusterConfig_ = privateClusterConfig_; + } else { + result.privateClusterConfig_ = privateClusterConfigBuilder_.build(); + } + if (databaseEncryptionBuilder_ == null) { + result.databaseEncryption_ = databaseEncryption_; + } else { + result.databaseEncryption_ = databaseEncryptionBuilder_.build(); + } + if (verticalPodAutoscalingBuilder_ == null) { + result.verticalPodAutoscaling_ = verticalPodAutoscaling_; + } else { + result.verticalPodAutoscaling_ = verticalPodAutoscalingBuilder_.build(); + } + if (shieldedNodesBuilder_ == null) { + result.shieldedNodes_ = shieldedNodes_; + } else { + result.shieldedNodes_ = shieldedNodesBuilder_.build(); + } + if (releaseChannelBuilder_ == null) { + result.releaseChannel_ = releaseChannel_; + } else { + result.releaseChannel_ = releaseChannelBuilder_.build(); + } + if (workloadIdentityConfigBuilder_ == null) { + result.workloadIdentityConfig_ = workloadIdentityConfig_; + } else { + result.workloadIdentityConfig_ = workloadIdentityConfigBuilder_.build(); + } + if (meshCertificatesBuilder_ == null) { + result.meshCertificates_ = meshCertificates_; + } else { + result.meshCertificates_ = meshCertificatesBuilder_.build(); + } + if (costManagementConfigBuilder_ == null) { + result.costManagementConfig_ = costManagementConfig_; + } else { + result.costManagementConfig_ = costManagementConfigBuilder_.build(); + } + if (notificationConfigBuilder_ == null) { + result.notificationConfig_ = notificationConfig_; + } else { + result.notificationConfig_ = notificationConfigBuilder_.build(); + } + if (confidentialNodesBuilder_ == null) { + result.confidentialNodes_ = confidentialNodes_; + } else { + result.confidentialNodes_ = confidentialNodesBuilder_.build(); + } + if (identityServiceConfigBuilder_ == null) { + result.identityServiceConfig_ = identityServiceConfig_; + } else { + result.identityServiceConfig_ = identityServiceConfigBuilder_.build(); + } + result.selfLink_ = selfLink_; + result.zone_ = zone_; + result.endpoint_ = endpoint_; + result.initialClusterVersion_ = initialClusterVersion_; + result.currentMasterVersion_ = currentMasterVersion_; + result.currentNodeVersion_ = currentNodeVersion_; + result.createTime_ = createTime_; + result.status_ = status_; + result.statusMessage_ = statusMessage_; + result.nodeIpv4CidrSize_ = nodeIpv4CidrSize_; + result.servicesIpv4Cidr_ = servicesIpv4Cidr_; + if (((bitField0_ & 0x00000008) != 0)) { + instanceGroupUrls_ = instanceGroupUrls_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.instanceGroupUrls_ = instanceGroupUrls_; + result.currentNodeCount_ = currentNodeCount_; + result.expireTime_ = expireTime_; + result.location_ = location_; + result.enableTpu_ = enableTpu_; + result.tpuIpv4CidrBlock_ = tpuIpv4CidrBlock_; + if (conditionsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.conditions_ = conditions_; + } else { + result.conditions_ = conditionsBuilder_.build(); + } + if (autopilotBuilder_ == null) { + result.autopilot_ = autopilot_; + } else { + result.autopilot_ = autopilotBuilder_.build(); + } + result.id_ = id_; + if (((from_bitField0_ & 0x00000020) != 0)) { + if (nodePoolDefaultsBuilder_ == null) { + result.nodePoolDefaults_ = nodePoolDefaults_; + } else { + result.nodePoolDefaults_ = nodePoolDefaultsBuilder_.build(); + } + to_bitField0_ |= 0x00000001; + } + if (loggingConfigBuilder_ == null) { + result.loggingConfig_ = loggingConfig_; + } else { + result.loggingConfig_ = loggingConfigBuilder_.build(); + } + if (monitoringConfigBuilder_ == null) { + result.monitoringConfig_ = monitoringConfig_; + } else { + result.monitoringConfig_ = monitoringConfigBuilder_.build(); + } + if (nodePoolAutoConfigBuilder_ == null) { + result.nodePoolAutoConfig_ = nodePoolAutoConfig_; + } else { + result.nodePoolAutoConfig_ = nodePoolAutoConfigBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.getInitialNodeCount() != 0) { + setInitialNodeCount(other.getInitialNodeCount()); + } + if (other.hasNodeConfig()) { + mergeNodeConfig(other.getNodeConfig()); + } + if (other.hasMasterAuth()) { + mergeMasterAuth(other.getMasterAuth()); + } + if (!other.getLoggingService().isEmpty()) { + loggingService_ = other.loggingService_; + onChanged(); + } + if (!other.getMonitoringService().isEmpty()) { + monitoringService_ = other.monitoringService_; + onChanged(); + } + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + onChanged(); + } + if (!other.getClusterIpv4Cidr().isEmpty()) { + clusterIpv4Cidr_ = other.clusterIpv4Cidr_; + onChanged(); + } + if (other.hasAddonsConfig()) { + mergeAddonsConfig(other.getAddonsConfig()); + } + if (!other.getSubnetwork().isEmpty()) { + subnetwork_ = other.subnetwork_; + onChanged(); + } + if (nodePoolsBuilder_ == null) { + if (!other.nodePools_.isEmpty()) { + if (nodePools_.isEmpty()) { + nodePools_ = other.nodePools_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNodePoolsIsMutable(); + nodePools_.addAll(other.nodePools_); + } + onChanged(); + } + } else { + if (!other.nodePools_.isEmpty()) { + if (nodePoolsBuilder_.isEmpty()) { + nodePoolsBuilder_.dispose(); + nodePoolsBuilder_ = null; + nodePools_ = other.nodePools_; + bitField0_ = (bitField0_ & ~0x00000001); + nodePoolsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNodePoolsFieldBuilder() + : null; + } else { + nodePoolsBuilder_.addAllMessages(other.nodePools_); + } + } + } + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + if (other.getEnableKubernetesAlpha() != false) { + setEnableKubernetesAlpha(other.getEnableKubernetesAlpha()); + } + internalGetMutableResourceLabels().mergeFrom(other.internalGetResourceLabels()); + if (!other.getLabelFingerprint().isEmpty()) { + labelFingerprint_ = other.labelFingerprint_; + onChanged(); + } + if (other.hasLegacyAbac()) { + mergeLegacyAbac(other.getLegacyAbac()); + } + if (other.hasNetworkPolicy()) { + mergeNetworkPolicy(other.getNetworkPolicy()); + } + if (other.hasIpAllocationPolicy()) { + mergeIpAllocationPolicy(other.getIpAllocationPolicy()); + } + if (other.hasMasterAuthorizedNetworksConfig()) { + mergeMasterAuthorizedNetworksConfig(other.getMasterAuthorizedNetworksConfig()); + } + if (other.hasMaintenancePolicy()) { + mergeMaintenancePolicy(other.getMaintenancePolicy()); + } + if (other.hasBinaryAuthorization()) { + mergeBinaryAuthorization(other.getBinaryAuthorization()); + } + if (other.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_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getEndpoint().isEmpty()) { + endpoint_ = other.endpoint_; + onChanged(); + } + if (!other.getInitialClusterVersion().isEmpty()) { + initialClusterVersion_ = other.initialClusterVersion_; + onChanged(); + } + if (!other.getCurrentMasterVersion().isEmpty()) { + currentMasterVersion_ = other.currentMasterVersion_; + onChanged(); + } + if (!other.getCurrentNodeVersion().isEmpty()) { + currentNodeVersion_ = other.currentNodeVersion_; + onChanged(); + } + if (!other.getCreateTime().isEmpty()) { + createTime_ = other.createTime_; + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + onChanged(); + } + if (other.getNodeIpv4CidrSize() != 0) { + setNodeIpv4CidrSize(other.getNodeIpv4CidrSize()); + } + if (!other.getServicesIpv4Cidr().isEmpty()) { + servicesIpv4Cidr_ = other.servicesIpv4Cidr_; + onChanged(); + } + if (!other.instanceGroupUrls_.isEmpty()) { + if (instanceGroupUrls_.isEmpty()) { + instanceGroupUrls_ = other.instanceGroupUrls_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.addAll(other.instanceGroupUrls_); + } + onChanged(); + } + if (other.getCurrentNodeCount() != 0) { + setCurrentNodeCount(other.getCurrentNodeCount()); + } + if (!other.getExpireTime().isEmpty()) { + expireTime_ = other.expireTime_; + onChanged(); + } + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + onChanged(); + } + if (other.getEnableTpu() != false) { + setEnableTpu(other.getEnableTpu()); + } + if (!other.getTpuIpv4CidrBlock().isEmpty()) { + tpuIpv4CidrBlock_ = other.tpuIpv4CidrBlock_; + onChanged(); + } + if (conditionsBuilder_ == null) { + if (!other.conditions_.isEmpty()) { + if (conditions_.isEmpty()) { + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureConditionsIsMutable(); + conditions_.addAll(other.conditions_); + } + onChanged(); + } + } else { + if (!other.conditions_.isEmpty()) { + if (conditionsBuilder_.isEmpty()) { + conditionsBuilder_.dispose(); + conditionsBuilder_ = null; + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000010); + conditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getConditionsFieldBuilder() + : null; + } else { + conditionsBuilder_.addAllMessages(other.conditions_); + } + } + } + if (other.hasAutopilot()) { + mergeAutopilot(other.getAutopilot()); + } + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (other.hasNodePoolDefaults()) { + mergeNodePoolDefaults(other.getNodePoolDefaults()); + } + if (other.hasLoggingConfig()) { + mergeLoggingConfig(other.getLoggingConfig()); + } + if (other.hasMonitoringConfig()) { + mergeMonitoringConfig(other.getMonitoringConfig()); + } + if (other.hasNodePoolAutoConfig()) { + mergeNodePoolAutoConfig(other.getNodePoolAutoConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + initialNodeCount_ = input.readInt32(); + + break; + } // case 24 + case 34: + { + input.readMessage(getNodeConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + input.readMessage(getMasterAuthFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 50: + { + loggingService_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: + { + monitoringService_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + network_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: + { + clusterIpv4Cidr_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 82: + { + input.readMessage(getAddonsConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 82 + case 90: + { + subnetwork_ = input.readStringRequireUtf8(); + + 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(); + + break; + } // case 112 + case 122: + { + com.google.protobuf.MapEntry resourceLabels__ = + input.readMessage( + ResourceLabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableResourceLabels() + .getMutableMap() + .put(resourceLabels__.getKey(), resourceLabels__.getValue()); + break; + } // case 122 + case 130: + { + labelFingerprint_ = input.readStringRequireUtf8(); + + break; + } // case 130 + case 146: + { + input.readMessage(getLegacyAbacFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 146 + case 154: + { + input.readMessage(getNetworkPolicyFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 154 + case 162: + { + input.readMessage( + getIpAllocationPolicyFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 162 + case 178: + { + input.readMessage( + getMasterAuthorizedNetworksConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 178 + case 186: + { + input.readMessage( + getMaintenancePolicyFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 186 + case 194: + { + input.readMessage( + getBinaryAuthorizationFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 194 + case 210: + { + input.readMessage(getAutoscalingFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 210 + case 218: + { + input.readMessage(getNetworkConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 218 + case 242: + { + input.readMessage( + getDefaultMaxPodsConstraintFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 242 + case 266: + { + input.readMessage( + getResourceUsageExportConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 266 + case 274: + { + input.readMessage( + getAuthenticatorGroupsConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 274 + case 298: + { + input.readMessage( + getPrivateClusterConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 298 + case 306: + { + input.readMessage( + getDatabaseEncryptionFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 306 + case 314: + { + input.readMessage( + getVerticalPodAutoscalingFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 314 + case 322: + { + input.readMessage(getShieldedNodesFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 322 + case 330: + { + input.readMessage(getReleaseChannelFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 330 + case 346: + { + input.readMessage( + getWorkloadIdentityConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 346 + case 362: + { + input.readMessage( + getCostManagementConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 362 + case 394: + { + input.readMessage( + getNotificationConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 394 + case 402: + { + input.readMessage( + getConfidentialNodesFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 402 + case 434: + { + input.readMessage( + getIdentityServiceConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 434 + case 538: + { + input.readMessage( + getMeshCertificatesFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 538 + case 802: + { + selfLink_ = input.readStringRequireUtf8(); + + break; + } // case 802 + case 810: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 810 + case 818: + { + endpoint_ = input.readStringRequireUtf8(); + + break; + } // case 818 + case 826: + { + initialClusterVersion_ = input.readStringRequireUtf8(); + + break; + } // case 826 + case 834: + { + currentMasterVersion_ = input.readStringRequireUtf8(); + + break; + } // case 834 + case 842: + { + currentNodeVersion_ = input.readStringRequireUtf8(); + + break; + } // case 842 + case 850: + { + createTime_ = input.readStringRequireUtf8(); + + break; + } // case 850 + case 856: + { + status_ = input.readEnum(); + + break; + } // case 856 + case 866: + { + statusMessage_ = input.readStringRequireUtf8(); + + break; + } // case 866 + case 872: + { + nodeIpv4CidrSize_ = input.readInt32(); + + break; + } // case 872 + case 882: + { + servicesIpv4Cidr_ = input.readStringRequireUtf8(); + + break; + } // case 882 + case 890: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.add(s); + break; + } // case 890 + case 896: + { + currentNodeCount_ = input.readInt32(); + + break; + } // case 896 + case 906: + { + expireTime_ = input.readStringRequireUtf8(); + + break; + } // case 906 + case 914: + { + location_ = input.readStringRequireUtf8(); + + break; + } // case 914 + case 920: + { + enableTpu_ = input.readBool(); + + break; + } // case 920 + case 930: + { + tpuIpv4CidrBlock_ = input.readStringRequireUtf8(); + + 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); + + break; + } // case 1026 + case 1034: + { + id_ = input.readStringRequireUtf8(); + + break; + } // case 1034 + case 1050: + { + input.readMessage( + getNodePoolDefaultsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 1050 + case 1058: + { + input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 1058 + case 1066: + { + input.readMessage( + getMonitoringConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 1066 + case 1090: + { + input.readMessage( + getNodePoolAutoConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 1090 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // 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 this cluster. The name must be unique within this project
+     * and location (e.g. zone or region), and can be up to 40 characters with
+     * the following restrictions:
+     * * Lowercase letters, numbers, and hyphens only.
+     * * Must start with a letter.
+     * * Must end with a number or a letter.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of this cluster. The name must be unique within this project
+     * and location (e.g. zone or region), and can be up to 40 characters with
+     * the following restrictions:
+     * * Lowercase letters, numbers, and hyphens only.
+     * * Must start with a letter.
+     * * Must end with a number or a letter.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of this cluster. The name must be unique within this project
+     * and location (e.g. zone or region), and can be up to 40 characters with
+     * the following restrictions:
+     * * Lowercase letters, numbers, and hyphens only.
+     * * Must start with a letter.
+     * * Must end with a number or a letter.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of this cluster. The name must be unique within this project
+     * and location (e.g. zone or region), and can be up to 40 characters with
+     * the following restrictions:
+     * * Lowercase letters, numbers, and hyphens only.
+     * * Must start with a letter.
+     * * Must end with a number or a letter.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of this cluster. The name must be unique within this project
+     * and location (e.g. zone or region), and can be up to 40 characters with
+     * the following restrictions:
+     * * Lowercase letters, numbers, and hyphens only.
+     * * Must start with a letter.
+     * * Must end with a number or a letter.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * An optional description of this cluster.
+     * 
+ * + * string description = 2; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * An optional description of this cluster.
+     * 
+ * + * string description = 2; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * An optional description of this cluster.
+     * 
+ * + * string description = 2; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * An optional description of this cluster.
+     * 
+ * + * string description = 2; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * An optional description of this cluster.
+     * 
+ * + * string description = 2; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private int initialNodeCount_; + /** + * + * + *
+     * The number of nodes to create in this cluster. You must ensure that your
+     * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
+     * is sufficient for this number of instances. You must also have available
+     * firewall and routes quota.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "node_config") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * This field is deprecated, use node_pool.initial_node_count instead.
+     * 
+ * + * int32 initial_node_count = 3 [deprecated = true]; + * + * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. See + * google/container/v1/cluster_service.proto;l=1464 + * @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=1464 + * @param value The initialNodeCount to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setInitialNodeCount(int value) { + + initialNodeCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of nodes to create in this cluster. You must ensure that your
+     * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
+     * is sufficient for this number of instances. You must also have available
+     * firewall and routes quota.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "node_config") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * This field is deprecated, use node_pool.initial_node_count instead.
+     * 
+ * + * int32 initial_node_count = 3 [deprecated = true]; + * + * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. See + * google/container/v1/cluster_service.proto;l=1464 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearInitialNodeCount() { + + 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=1477 + * @return Whether the nodeConfig field is set. + */ + @java.lang.Deprecated + public boolean hasNodeConfig() { + return nodeConfigBuilder_ != null || nodeConfig_ != null; + } + /** + * + * + *
+     * Parameters used in creating the cluster's nodes.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool. (For configuration of each node pool, see
+     * `node_pool.config`)
+     * If unspecified, the defaults are used.
+     * This field is deprecated, use node_pool.config instead.
+     * 
+ * + * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; + * + * @deprecated google.container.v1.Cluster.node_config is deprecated. See + * google/container/v1/cluster_service.proto;l=1477 + * @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; + onChanged(); + } else { + nodeConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Parameters used in creating the cluster's nodes.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool. (For configuration of each node pool, see
+     * `node_pool.config`)
+     * If unspecified, the defaults are used.
+     * This field is deprecated, use node_pool.config instead.
+     * 
+ * + * .google.container.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(); + onChanged(); + } else { + nodeConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Parameters used in creating the cluster's nodes.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool. (For configuration of each node pool, see
+     * `node_pool.config`)
+     * If unspecified, the defaults are used.
+     * This field is deprecated, use node_pool.config instead.
+     * 
+ * + * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; + */ + @java.lang.Deprecated + public Builder mergeNodeConfig(com.google.container.v1.NodeConfig value) { + if (nodeConfigBuilder_ == null) { + if (nodeConfig_ != null) { + nodeConfig_ = + com.google.container.v1.NodeConfig.newBuilder(nodeConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + nodeConfig_ = value; + } + onChanged(); + } else { + nodeConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Parameters used in creating the cluster's nodes.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool. (For configuration of each node pool, see
+     * `node_pool.config`)
+     * If unspecified, the defaults are used.
+     * This field is deprecated, use node_pool.config instead.
+     * 
+ * + * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; + */ + @java.lang.Deprecated + public Builder clearNodeConfig() { + if (nodeConfigBuilder_ == null) { + nodeConfig_ = null; + onChanged(); + } else { + nodeConfig_ = null; + nodeConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Parameters used in creating the cluster's nodes.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool. (For configuration of each node pool, see
+     * `node_pool.config`)
+     * If unspecified, the defaults are used.
+     * This field is deprecated, use node_pool.config instead.
+     * 
+ * + * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; + */ + @java.lang.Deprecated + public com.google.container.v1.NodeConfig.Builder getNodeConfigBuilder() { + + onChanged(); + return getNodeConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Parameters used in creating the cluster's nodes.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool. (For configuration of each node pool, see
+     * `node_pool.config`)
+     * If unspecified, the defaults are used.
+     * This field is deprecated, use node_pool.config instead.
+     * 
+ * + * .google.container.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 masterAuthBuilder_ != null || masterAuth_ != null; + } + /** + * + * + *
+     * The authentication information for accessing the master endpoint.
+     * If unspecified, the defaults are used:
+     * For clusters before v1.12, if master_auth is unspecified, `username` will
+     * be set to "admin", a random password will be generated, and a client
+     * certificate will be issued.
+     * 
+ * + * .google.container.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; + onChanged(); + } else { + masterAuthBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The authentication information for accessing the master endpoint.
+     * If unspecified, the defaults are used:
+     * For clusters before v1.12, if master_auth is unspecified, `username` will
+     * be set to "admin", a random password will be generated, and a client
+     * certificate will be issued.
+     * 
+ * + * .google.container.v1.MasterAuth master_auth = 5; + */ + public Builder setMasterAuth(com.google.container.v1.MasterAuth.Builder builderForValue) { + if (masterAuthBuilder_ == null) { + masterAuth_ = builderForValue.build(); + onChanged(); + } else { + masterAuthBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The authentication information for accessing the master endpoint.
+     * If unspecified, the defaults are used:
+     * For clusters before v1.12, if master_auth is unspecified, `username` will
+     * be set to "admin", a random password will be generated, and a client
+     * certificate will be issued.
+     * 
+ * + * .google.container.v1.MasterAuth master_auth = 5; + */ + public Builder mergeMasterAuth(com.google.container.v1.MasterAuth value) { + if (masterAuthBuilder_ == null) { + if (masterAuth_ != null) { + masterAuth_ = + com.google.container.v1.MasterAuth.newBuilder(masterAuth_) + .mergeFrom(value) + .buildPartial(); + } else { + masterAuth_ = value; + } + onChanged(); + } else { + masterAuthBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The authentication information for accessing the master endpoint.
+     * If unspecified, the defaults are used:
+     * For clusters before v1.12, if master_auth is unspecified, `username` will
+     * be set to "admin", a random password will be generated, and a client
+     * certificate will be issued.
+     * 
+ * + * .google.container.v1.MasterAuth master_auth = 5; + */ + public Builder clearMasterAuth() { + if (masterAuthBuilder_ == null) { + masterAuth_ = null; + onChanged(); + } else { + masterAuth_ = null; + masterAuthBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The authentication information for accessing the master endpoint.
+     * If unspecified, the defaults are used:
+     * For clusters before v1.12, if master_auth is unspecified, `username` will
+     * be set to "admin", a random password will be generated, and a client
+     * certificate will be issued.
+     * 
+ * + * .google.container.v1.MasterAuth master_auth = 5; + */ + public com.google.container.v1.MasterAuth.Builder getMasterAuthBuilder() { + + onChanged(); + return getMasterAuthFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The authentication information for accessing the master endpoint.
+     * If unspecified, the defaults are used:
+     * For clusters before v1.12, if master_auth is unspecified, `username` will
+     * be set to "admin", a random password will be generated, and a client
+     * certificate will be issued.
+     * 
+ * + * .google.container.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; + onChanged(); + return this; + } + /** + * + * + *
+     * The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string logging_service = 6; + * + * @return This builder for chaining. + */ + public Builder clearLoggingService() { + + loggingService_ = getDefaultInstance().getLoggingService(); + onChanged(); + return this; + } + /** + * + * + *
+     * The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string logging_service = 6; + * + * @param value The bytes for loggingService to set. + * @return This builder for chaining. + */ + public Builder setLoggingServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + loggingService_ = value; + onChanged(); + return this; + } + + private java.lang.Object monitoringService_ = ""; + /** + * + * + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string monitoring_service = 7; + * + * @return The monitoringService. + */ + public java.lang.String getMonitoringService() { + java.lang.Object ref = monitoringService_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + monitoringService_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string monitoring_service = 7; + * + * @return The bytes for monitoringService. + */ + public com.google.protobuf.ByteString getMonitoringServiceBytes() { + java.lang.Object ref = monitoringService_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + monitoringService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string monitoring_service = 7; + * + * @param value The monitoringService to set. + * @return This builder for chaining. + */ + public Builder setMonitoringService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + monitoringService_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string monitoring_service = 7; + * + * @return This builder for chaining. + */ + public Builder clearMonitoringService() { + + monitoringService_ = getDefaultInstance().getMonitoringService(); + onChanged(); + return this; + } + /** + * + * + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string monitoring_service = 7; + * + * @param value The bytes for monitoringService to set. + * @return This builder for chaining. + */ + public Builder setMonitoringServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + monitoringService_ = value; + onChanged(); + return this; + } + + private java.lang.Object network_ = ""; + /** + * + * + *
+     * The name of the Google Compute Engine
+     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the cluster is connected. If left unspecified, the `default`
+     * network will be used.
+     * 
+ * + * 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; + 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(); + 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; + onChanged(); + return this; + } + + private java.lang.Object clusterIpv4Cidr_ = ""; + /** + * + * + *
+     * The IP address range of the container pods in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`). Leave blank to have
+     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+     * 
+ * + * string cluster_ipv4_cidr = 9; + * + * @return The clusterIpv4Cidr. + */ + public java.lang.String getClusterIpv4Cidr() { + java.lang.Object ref = clusterIpv4Cidr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterIpv4Cidr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The IP address range of the container pods in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`). Leave blank to have
+     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+     * 
+ * + * string cluster_ipv4_cidr = 9; + * + * @return The bytes for clusterIpv4Cidr. + */ + public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { + java.lang.Object ref = clusterIpv4Cidr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The IP address range of the container pods in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`). Leave blank to have
+     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+     * 
+ * + * string cluster_ipv4_cidr = 9; + * + * @param value The clusterIpv4Cidr to set. + * @return This builder for chaining. + */ + public Builder setClusterIpv4Cidr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterIpv4Cidr_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address range of the container pods in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`). Leave blank to have
+     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+     * 
+ * + * string cluster_ipv4_cidr = 9; + * + * @return This builder for chaining. + */ + public Builder clearClusterIpv4Cidr() { + + clusterIpv4Cidr_ = getDefaultInstance().getClusterIpv4Cidr(); + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address range of the container pods in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`). Leave blank to have
+     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+     * 
+ * + * string cluster_ipv4_cidr = 9; + * + * @param value The bytes for clusterIpv4Cidr to set. + * @return This builder for chaining. + */ + public Builder setClusterIpv4CidrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterIpv4Cidr_ = value; + onChanged(); + return this; + } + + private com.google.container.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 addonsConfigBuilder_ != null || addonsConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + addonsConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + addonsConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (addonsConfig_ != null) { + addonsConfig_ = + com.google.container.v1.AddonsConfig.newBuilder(addonsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + addonsConfig_ = value; + } + onChanged(); + } else { + addonsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1.AddonsConfig addons_config = 10; + */ + public Builder clearAddonsConfig() { + if (addonsConfigBuilder_ == null) { + addonsConfig_ = null; + onChanged(); + } else { + addonsConfig_ = null; + addonsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1.AddonsConfig addons_config = 10; + */ + public com.google.container.v1.AddonsConfig.Builder getAddonsConfigBuilder() { + + 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; + 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(); + 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; + onChanged(); + return this; + } + + private java.util.List nodePools_ = + java.util.Collections.emptyList(); + + private void ensureNodePoolsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + nodePools_ = new java.util.ArrayList(nodePools_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.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_ & ~0x00000001); + onChanged(); + } else { + nodePoolsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.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_ & 0x00000001) != 0), getParentForChildren(), isClean()); + nodePools_ = null; + } + return nodePoolsBuilder_; + } + + private com.google.protobuf.LazyStringList locations_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureLocationsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + locations_ = new com.google.protobuf.LazyStringArrayList(locations_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This field provides a default value if
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * are not specified during node pool creation.
+     * Warning: changing cluster locations will update the
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * of all node pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @return A list containing the locations. + */ + public com.google.protobuf.ProtocolStringList getLocationsList() { + return locations_.getUnmodifiableView(); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This field provides a default value if
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * are not specified during node pool creation.
+     * Warning: changing cluster locations will update the
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * of all node pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @return The count of locations. + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This field provides a default value if
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * are not specified during node pool creation.
+     * Warning: changing cluster locations will update the
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * of all node pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This field provides a default value if
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * are not specified during node pool creation.
+     * Warning: changing cluster locations will update the
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * of all node pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + public com.google.protobuf.ByteString getLocationsBytes(int index) { + return locations_.getByteString(index); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This field provides a default value if
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * are not specified during node pool creation.
+     * Warning: changing cluster locations will update the
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * of all node pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param index The index to set the value at. + * @param value The locations to set. + * @return This builder for chaining. + */ + public Builder setLocations(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This field provides a default value if
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * are not specified during node pool creation.
+     * Warning: changing cluster locations will update the
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * of all node pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param value The locations to add. + * @return This builder for chaining. + */ + public Builder addLocations(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This field provides a default value if
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * are not specified during node pool creation.
+     * Warning: changing cluster locations will update the
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * of all node pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param values The locations to add. + * @return This builder for chaining. + */ + public Builder addAllLocations(java.lang.Iterable values) { + ensureLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This field provides a default value if
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * are not specified during node pool creation.
+     * Warning: changing cluster locations will update the
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * of all node pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @return This builder for chaining. + */ + public Builder clearLocations() { + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This field provides a default value if
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * are not specified during node pool creation.
+     * Warning: changing cluster locations will update the
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * of all node pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param value The bytes of the locations to add. + * @return This builder for chaining. + */ + public Builder addLocationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + return this; + } + + private boolean enableKubernetesAlpha_; + /** + * + * + *
+     * Kubernetes alpha features are enabled on this cluster. This includes alpha
+     * API groups (e.g. 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; + 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() { + + enableKubernetesAlpha_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.MapField resourceLabels_; + + private com.google.protobuf.MapField + internalGetResourceLabels() { + if (resourceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + return resourceLabels_; + } + + private com.google.protobuf.MapField + internalGetMutableResourceLabels() { + onChanged(); + ; + if (resourceLabels_ == null) { + resourceLabels_ = + com.google.protobuf.MapField.newMapField(ResourceLabelsDefaultEntryHolder.defaultEntry); + } + if (!resourceLabels_.isMutable()) { + resourceLabels_ = resourceLabels_.copy(); + } + return resourceLabels_; + } + + public int getResourceLabelsCount() { + return internalGetResourceLabels().getMap().size(); + } + /** + * + * + *
+     * The resource labels for the cluster to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * map<string, string> resource_labels = 15; + */ + @java.lang.Override + public boolean containsResourceLabels(java.lang.String key) { + if (key == null) { + throw new 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 java.lang.String getResourceLabelsOrDefault( + java.lang.String key, 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() { + 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() { + 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); + return this; + } + /** + * + * + *
+     * The resource labels for the cluster to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * map<string, string> resource_labels = 15; + */ + public Builder putAllResourceLabels(java.util.Map values) { + internalGetMutableResourceLabels().getMutableMap().putAll(values); + return this; + } + + private java.lang.Object labelFingerprint_ = ""; + /** + * + * + *
+     * The fingerprint of the set of labels for this cluster.
+     * 
+ * + * string label_fingerprint = 16; + * + * @return The labelFingerprint. + */ + public java.lang.String getLabelFingerprint() { + java.lang.Object ref = labelFingerprint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + labelFingerprint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The fingerprint of the set of labels for this cluster.
+     * 
+ * + * string label_fingerprint = 16; + * + * @return The bytes for labelFingerprint. + */ + public com.google.protobuf.ByteString getLabelFingerprintBytes() { + java.lang.Object ref = labelFingerprint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + labelFingerprint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The fingerprint of the set of labels for this cluster.
+     * 
+ * + * string label_fingerprint = 16; + * + * @param value The labelFingerprint to set. + * @return This builder for chaining. + */ + public Builder setLabelFingerprint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + labelFingerprint_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The fingerprint of the set of labels for this cluster.
+     * 
+ * + * string label_fingerprint = 16; + * + * @return This builder for chaining. + */ + public Builder clearLabelFingerprint() { + + labelFingerprint_ = getDefaultInstance().getLabelFingerprint(); + onChanged(); + return this; + } + /** + * + * + *
+     * The fingerprint of the set of labels for this cluster.
+     * 
+ * + * string label_fingerprint = 16; + * + * @param value The bytes for labelFingerprint to set. + * @return This builder for chaining. + */ + public Builder setLabelFingerprintBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + labelFingerprint_ = value; + onChanged(); + return this; + } + + private com.google.container.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 legacyAbacBuilder_ != null || legacyAbac_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + legacyAbacBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + legacyAbacBuilder_.setMessage(builderForValue.build()); + } + + 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 (legacyAbac_ != null) { + legacyAbac_ = + com.google.container.v1.LegacyAbac.newBuilder(legacyAbac_) + .mergeFrom(value) + .buildPartial(); + } else { + legacyAbac_ = value; + } + onChanged(); + } else { + legacyAbacBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1.LegacyAbac legacy_abac = 18; + */ + public Builder clearLegacyAbac() { + if (legacyAbacBuilder_ == null) { + legacyAbac_ = null; + onChanged(); + } else { + legacyAbac_ = null; + legacyAbacBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1.LegacyAbac legacy_abac = 18; + */ + public com.google.container.v1.LegacyAbac.Builder getLegacyAbacBuilder() { + + 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 networkPolicyBuilder_ != null || networkPolicy_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + networkPolicyBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + networkPolicyBuilder_.setMessage(builderForValue.build()); + } + + 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 (networkPolicy_ != null) { + networkPolicy_ = + com.google.container.v1.NetworkPolicy.newBuilder(networkPolicy_) + .mergeFrom(value) + .buildPartial(); + } else { + networkPolicy_ = value; + } + onChanged(); + } else { + networkPolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1.NetworkPolicy network_policy = 19; + */ + public Builder clearNetworkPolicy() { + if (networkPolicyBuilder_ == null) { + networkPolicy_ = null; + onChanged(); + } else { + networkPolicy_ = null; + networkPolicyBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1.NetworkPolicy network_policy = 19; + */ + public com.google.container.v1.NetworkPolicy.Builder getNetworkPolicyBuilder() { + + 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 ipAllocationPolicyBuilder_ != null || ipAllocationPolicy_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + ipAllocationPolicyBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + ipAllocationPolicyBuilder_.setMessage(builderForValue.build()); + } + + 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 (ipAllocationPolicy_ != null) { + ipAllocationPolicy_ = + com.google.container.v1.IPAllocationPolicy.newBuilder(ipAllocationPolicy_) + .mergeFrom(value) + .buildPartial(); + } else { + ipAllocationPolicy_ = value; + } + onChanged(); + } else { + ipAllocationPolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public Builder clearIpAllocationPolicy() { + if (ipAllocationPolicyBuilder_ == null) { + ipAllocationPolicy_ = null; + onChanged(); + } else { + ipAllocationPolicy_ = null; + ipAllocationPolicyBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public com.google.container.v1.IPAllocationPolicy.Builder getIpAllocationPolicyBuilder() { + + 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 masterAuthorizedNetworksConfigBuilder_ != null + || masterAuthorizedNetworksConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + masterAuthorizedNetworksConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + masterAuthorizedNetworksConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (masterAuthorizedNetworksConfig_ != null) { + masterAuthorizedNetworksConfig_ = + com.google.container.v1.MasterAuthorizedNetworksConfig.newBuilder( + masterAuthorizedNetworksConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + masterAuthorizedNetworksConfig_ = value; + } + onChanged(); + } else { + masterAuthorizedNetworksConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * + */ + public Builder clearMasterAuthorizedNetworksConfig() { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + masterAuthorizedNetworksConfig_ = null; + onChanged(); + } else { + masterAuthorizedNetworksConfig_ = null; + masterAuthorizedNetworksConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * + */ + public com.google.container.v1.MasterAuthorizedNetworksConfig.Builder + getMasterAuthorizedNetworksConfigBuilder() { + + 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 maintenancePolicyBuilder_ != null || maintenancePolicy_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + maintenancePolicyBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + maintenancePolicyBuilder_.setMessage(builderForValue.build()); + } + + 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 (maintenancePolicy_ != null) { + maintenancePolicy_ = + com.google.container.v1.MaintenancePolicy.newBuilder(maintenancePolicy_) + .mergeFrom(value) + .buildPartial(); + } else { + maintenancePolicy_ = value; + } + onChanged(); + } else { + maintenancePolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1.MaintenancePolicy maintenance_policy = 23; + */ + public Builder clearMaintenancePolicy() { + if (maintenancePolicyBuilder_ == null) { + maintenancePolicy_ = null; + onChanged(); + } else { + maintenancePolicy_ = null; + maintenancePolicyBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1.MaintenancePolicy maintenance_policy = 23; + */ + public com.google.container.v1.MaintenancePolicy.Builder getMaintenancePolicyBuilder() { + + 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 binaryAuthorizationBuilder_ != null || binaryAuthorization_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + binaryAuthorizationBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + binaryAuthorizationBuilder_.setMessage(builderForValue.build()); + } + + 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 (binaryAuthorization_ != null) { + binaryAuthorization_ = + com.google.container.v1.BinaryAuthorization.newBuilder(binaryAuthorization_) + .mergeFrom(value) + .buildPartial(); + } else { + binaryAuthorization_ = value; + } + onChanged(); + } else { + binaryAuthorizationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1.BinaryAuthorization binary_authorization = 24; + */ + public Builder clearBinaryAuthorization() { + if (binaryAuthorizationBuilder_ == null) { + binaryAuthorization_ = null; + onChanged(); + } else { + binaryAuthorization_ = null; + binaryAuthorizationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1.BinaryAuthorization binary_authorization = 24; + */ + public com.google.container.v1.BinaryAuthorization.Builder getBinaryAuthorizationBuilder() { + + 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 autoscalingBuilder_ != null || autoscaling_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + autoscalingBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + autoscalingBuilder_.setMessage(builderForValue.build()); + } + + 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 (autoscaling_ != null) { + autoscaling_ = + com.google.container.v1.ClusterAutoscaling.newBuilder(autoscaling_) + .mergeFrom(value) + .buildPartial(); + } else { + autoscaling_ = value; + } + onChanged(); + } else { + autoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1.ClusterAutoscaling autoscaling = 26; + */ + public Builder clearAutoscaling() { + if (autoscalingBuilder_ == null) { + autoscaling_ = null; + onChanged(); + } else { + autoscaling_ = null; + autoscalingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1.ClusterAutoscaling autoscaling = 26; + */ + public com.google.container.v1.ClusterAutoscaling.Builder getAutoscalingBuilder() { + + 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 networkConfigBuilder_ != null || networkConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + networkConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1.NetworkConfig network_config = 27; + */ + public Builder setNetworkConfig(com.google.container.v1.NetworkConfig.Builder builderForValue) { + if (networkConfigBuilder_ == null) { + networkConfig_ = builderForValue.build(); + onChanged(); + } else { + networkConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1.NetworkConfig network_config = 27; + */ + public Builder mergeNetworkConfig(com.google.container.v1.NetworkConfig value) { + if (networkConfigBuilder_ == null) { + if (networkConfig_ != null) { + networkConfig_ = + com.google.container.v1.NetworkConfig.newBuilder(networkConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + networkConfig_ = value; + } + onChanged(); + } else { + networkConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1.NetworkConfig network_config = 27; + */ + public Builder clearNetworkConfig() { + if (networkConfigBuilder_ == null) { + networkConfig_ = null; + onChanged(); + } else { + networkConfig_ = null; + networkConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1.NetworkConfig network_config = 27; + */ + public com.google.container.v1.NetworkConfig.Builder getNetworkConfigBuilder() { + + onChanged(); + return getNetworkConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1.NetworkConfig network_config = 27; + */ + public com.google.container.v1.NetworkConfigOrBuilder getNetworkConfigOrBuilder() { + if (networkConfigBuilder_ != null) { + return networkConfigBuilder_.getMessageOrBuilder(); + } else { + return networkConfig_ == null + ? com.google.container.v1.NetworkConfig.getDefaultInstance() + : networkConfig_; + } + } + /** + * + * + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1.NetworkConfig network_config = 27; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkConfig, + com.google.container.v1.NetworkConfig.Builder, + com.google.container.v1.NetworkConfigOrBuilder> + getNetworkConfigFieldBuilder() { + if (networkConfigBuilder_ == null) { + networkConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkConfig, + com.google.container.v1.NetworkConfig.Builder, + com.google.container.v1.NetworkConfigOrBuilder>( + getNetworkConfig(), getParentForChildren(), isClean()); + networkConfig_ = null; + } + return networkConfigBuilder_; + } + + private 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 defaultMaxPodsConstraintBuilder_ != null || defaultMaxPodsConstraint_ != null; + } + /** + * + * + *
+     * The default constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool of this cluster. Only honored
+     * if cluster created with IP Alias support.
+     * 
+ * + * .google.container.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; + onChanged(); + } else { + defaultMaxPodsConstraintBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The default constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool of this cluster. Only honored
+     * if cluster created with IP Alias support.
+     * 
+ * + * .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + public Builder setDefaultMaxPodsConstraint( + com.google.container.v1.MaxPodsConstraint.Builder builderForValue) { + if (defaultMaxPodsConstraintBuilder_ == null) { + defaultMaxPodsConstraint_ = builderForValue.build(); + onChanged(); + } else { + defaultMaxPodsConstraintBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The default constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool of this cluster. Only honored
+     * if cluster created with IP Alias support.
+     * 
+ * + * .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + public Builder mergeDefaultMaxPodsConstraint(com.google.container.v1.MaxPodsConstraint value) { + if (defaultMaxPodsConstraintBuilder_ == null) { + if (defaultMaxPodsConstraint_ != null) { + defaultMaxPodsConstraint_ = + com.google.container.v1.MaxPodsConstraint.newBuilder(defaultMaxPodsConstraint_) + .mergeFrom(value) + .buildPartial(); + } else { + defaultMaxPodsConstraint_ = value; + } + onChanged(); + } else { + defaultMaxPodsConstraintBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The default constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool of this cluster. Only honored
+     * if cluster created with IP Alias support.
+     * 
+ * + * .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + public Builder clearDefaultMaxPodsConstraint() { + if (defaultMaxPodsConstraintBuilder_ == null) { + defaultMaxPodsConstraint_ = null; + onChanged(); + } else { + defaultMaxPodsConstraint_ = null; + defaultMaxPodsConstraintBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The default constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool of this cluster. Only honored
+     * if cluster created with IP Alias support.
+     * 
+ * + * .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + public com.google.container.v1.MaxPodsConstraint.Builder getDefaultMaxPodsConstraintBuilder() { + + onChanged(); + return getDefaultMaxPodsConstraintFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The default constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool of this cluster. Only honored
+     * if cluster created with IP Alias support.
+     * 
+ * + * .google.container.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 resourceUsageExportConfigBuilder_ != null || resourceUsageExportConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + resourceUsageExportConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + resourceUsageExportConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (resourceUsageExportConfig_ != null) { + resourceUsageExportConfig_ = + com.google.container.v1.ResourceUsageExportConfig.newBuilder( + resourceUsageExportConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + resourceUsageExportConfig_ = value; + } + onChanged(); + } else { + resourceUsageExportConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for exporting resource usages. Resource usage export is
+     * disabled when this config is unspecified.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; + * + */ + public Builder clearResourceUsageExportConfig() { + if (resourceUsageExportConfigBuilder_ == null) { + resourceUsageExportConfig_ = null; + onChanged(); + } else { + resourceUsageExportConfig_ = null; + resourceUsageExportConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for exporting resource usages. Resource usage export is
+     * disabled when this config is unspecified.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; + * + */ + public com.google.container.v1.ResourceUsageExportConfig.Builder + getResourceUsageExportConfigBuilder() { + + 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 authenticatorGroupsConfigBuilder_ != null || authenticatorGroupsConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + authenticatorGroupsConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + authenticatorGroupsConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (authenticatorGroupsConfig_ != null) { + authenticatorGroupsConfig_ = + com.google.container.v1.AuthenticatorGroupsConfig.newBuilder( + authenticatorGroupsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + authenticatorGroupsConfig_ = value; + } + onChanged(); + } else { + authenticatorGroupsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration controlling RBAC group membership information.
+     * 
+ * + * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + */ + public Builder clearAuthenticatorGroupsConfig() { + if (authenticatorGroupsConfigBuilder_ == null) { + authenticatorGroupsConfig_ = null; + onChanged(); + } else { + authenticatorGroupsConfig_ = null; + authenticatorGroupsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration controlling RBAC group membership information.
+     * 
+ * + * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + */ + public com.google.container.v1.AuthenticatorGroupsConfig.Builder + getAuthenticatorGroupsConfigBuilder() { + + 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 privateClusterConfigBuilder_ != null || privateClusterConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + privateClusterConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + privateClusterConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (privateClusterConfig_ != null) { + privateClusterConfig_ = + com.google.container.v1.PrivateClusterConfig.newBuilder(privateClusterConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + privateClusterConfig_ = value; + } + onChanged(); + } else { + privateClusterConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; + */ + public Builder clearPrivateClusterConfig() { + if (privateClusterConfigBuilder_ == null) { + privateClusterConfig_ = null; + onChanged(); + } else { + privateClusterConfig_ = null; + privateClusterConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; + */ + public com.google.container.v1.PrivateClusterConfig.Builder getPrivateClusterConfigBuilder() { + + 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 databaseEncryptionBuilder_ != null || databaseEncryption_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + databaseEncryptionBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + databaseEncryptionBuilder_.setMessage(builderForValue.build()); + } + + 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 (databaseEncryption_ != null) { + databaseEncryption_ = + com.google.container.v1.DatabaseEncryption.newBuilder(databaseEncryption_) + .mergeFrom(value) + .buildPartial(); + } else { + databaseEncryption_ = value; + } + onChanged(); + } else { + databaseEncryptionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1.DatabaseEncryption database_encryption = 38; + */ + public Builder clearDatabaseEncryption() { + if (databaseEncryptionBuilder_ == null) { + databaseEncryption_ = null; + onChanged(); + } else { + databaseEncryption_ = null; + databaseEncryptionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1.DatabaseEncryption database_encryption = 38; + */ + public com.google.container.v1.DatabaseEncryption.Builder getDatabaseEncryptionBuilder() { + + 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 verticalPodAutoscalingBuilder_ != null || verticalPodAutoscaling_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + verticalPodAutoscalingBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + verticalPodAutoscalingBuilder_.setMessage(builderForValue.build()); + } + + 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 (verticalPodAutoscaling_ != null) { + verticalPodAutoscaling_ = + com.google.container.v1.VerticalPodAutoscaling.newBuilder(verticalPodAutoscaling_) + .mergeFrom(value) + .buildPartial(); + } else { + verticalPodAutoscaling_ = value; + } + onChanged(); + } else { + verticalPodAutoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + */ + public Builder clearVerticalPodAutoscaling() { + if (verticalPodAutoscalingBuilder_ == null) { + verticalPodAutoscaling_ = null; + onChanged(); + } else { + verticalPodAutoscaling_ = null; + verticalPodAutoscalingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + */ + public com.google.container.v1.VerticalPodAutoscaling.Builder + getVerticalPodAutoscalingBuilder() { + + 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 shieldedNodesBuilder_ != null || shieldedNodes_ != null; + } + /** + * + * + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + * + * @return The shieldedNodes. + */ + public com.google.container.v1.ShieldedNodes getShieldedNodes() { + if (shieldedNodesBuilder_ == null) { + return shieldedNodes_ == null + ? com.google.container.v1.ShieldedNodes.getDefaultInstance() + : shieldedNodes_; + } else { + return shieldedNodesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + */ + public Builder setShieldedNodes(com.google.container.v1.ShieldedNodes value) { + if (shieldedNodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + shieldedNodes_ = value; + onChanged(); + } else { + shieldedNodesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + */ + public Builder setShieldedNodes(com.google.container.v1.ShieldedNodes.Builder builderForValue) { + if (shieldedNodesBuilder_ == null) { + shieldedNodes_ = builderForValue.build(); + onChanged(); + } else { + shieldedNodesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + */ + public Builder mergeShieldedNodes(com.google.container.v1.ShieldedNodes value) { + if (shieldedNodesBuilder_ == null) { + if (shieldedNodes_ != null) { + shieldedNodes_ = + com.google.container.v1.ShieldedNodes.newBuilder(shieldedNodes_) + .mergeFrom(value) + .buildPartial(); + } else { + shieldedNodes_ = value; + } + onChanged(); + } else { + shieldedNodesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + */ + public Builder clearShieldedNodes() { + if (shieldedNodesBuilder_ == null) { + shieldedNodes_ = null; + onChanged(); + } else { + shieldedNodes_ = null; + shieldedNodesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + */ + public com.google.container.v1.ShieldedNodes.Builder getShieldedNodesBuilder() { + + onChanged(); + return getShieldedNodesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + */ + public com.google.container.v1.ShieldedNodesOrBuilder getShieldedNodesOrBuilder() { + if (shieldedNodesBuilder_ != null) { + return shieldedNodesBuilder_.getMessageOrBuilder(); + } else { + return shieldedNodes_ == null + ? com.google.container.v1.ShieldedNodes.getDefaultInstance() + : shieldedNodes_; + } + } + /** + * + * + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ShieldedNodes, + com.google.container.v1.ShieldedNodes.Builder, + com.google.container.v1.ShieldedNodesOrBuilder> + getShieldedNodesFieldBuilder() { + if (shieldedNodesBuilder_ == null) { + shieldedNodesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ShieldedNodes, + com.google.container.v1.ShieldedNodes.Builder, + com.google.container.v1.ShieldedNodesOrBuilder>( + getShieldedNodes(), getParentForChildren(), isClean()); + shieldedNodes_ = null; + } + return shieldedNodesBuilder_; + } + + private com.google.container.v1.ReleaseChannel releaseChannel_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ReleaseChannel, + com.google.container.v1.ReleaseChannel.Builder, + com.google.container.v1.ReleaseChannelOrBuilder> + releaseChannelBuilder_; + /** + * + * + *
+     * Release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + * + * @return Whether the releaseChannel field is set. + */ + public boolean hasReleaseChannel() { + return releaseChannelBuilder_ != null || releaseChannel_ != null; + } + /** + * + * + *
+     * Release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + * + * @return The releaseChannel. + */ + public com.google.container.v1.ReleaseChannel getReleaseChannel() { + if (releaseChannelBuilder_ == null) { + return releaseChannel_ == null + ? com.google.container.v1.ReleaseChannel.getDefaultInstance() + : releaseChannel_; + } else { + return releaseChannelBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + */ + public Builder setReleaseChannel(com.google.container.v1.ReleaseChannel value) { + if (releaseChannelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + releaseChannel_ = value; + onChanged(); + } else { + releaseChannelBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + */ + public Builder setReleaseChannel( + com.google.container.v1.ReleaseChannel.Builder builderForValue) { + if (releaseChannelBuilder_ == null) { + releaseChannel_ = builderForValue.build(); + onChanged(); + } else { + releaseChannelBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + */ + public Builder mergeReleaseChannel(com.google.container.v1.ReleaseChannel value) { + if (releaseChannelBuilder_ == null) { + if (releaseChannel_ != null) { + releaseChannel_ = + com.google.container.v1.ReleaseChannel.newBuilder(releaseChannel_) + .mergeFrom(value) + .buildPartial(); + } else { + releaseChannel_ = value; + } + onChanged(); + } else { + releaseChannelBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + */ + public Builder clearReleaseChannel() { + if (releaseChannelBuilder_ == null) { + releaseChannel_ = null; + onChanged(); + } else { + releaseChannel_ = null; + releaseChannelBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + */ + public com.google.container.v1.ReleaseChannel.Builder getReleaseChannelBuilder() { + + onChanged(); + return getReleaseChannelFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + */ + public com.google.container.v1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder() { + if (releaseChannelBuilder_ != null) { + return releaseChannelBuilder_.getMessageOrBuilder(); + } else { + return releaseChannel_ == null + ? com.google.container.v1.ReleaseChannel.getDefaultInstance() + : releaseChannel_; + } + } + /** + * + * + *
+     * Release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ReleaseChannel, + com.google.container.v1.ReleaseChannel.Builder, + com.google.container.v1.ReleaseChannelOrBuilder> + getReleaseChannelFieldBuilder() { + if (releaseChannelBuilder_ == null) { + releaseChannelBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ReleaseChannel, + com.google.container.v1.ReleaseChannel.Builder, + com.google.container.v1.ReleaseChannelOrBuilder>( + getReleaseChannel(), getParentForChildren(), isClean()); + releaseChannel_ = null; + } + return releaseChannelBuilder_; + } + + private com.google.container.v1.WorkloadIdentityConfig workloadIdentityConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadIdentityConfig, + com.google.container.v1.WorkloadIdentityConfig.Builder, + com.google.container.v1.WorkloadIdentityConfigOrBuilder> + workloadIdentityConfigBuilder_; + /** + * + * + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + * + * @return Whether the workloadIdentityConfig field is set. + */ + public boolean hasWorkloadIdentityConfig() { + return workloadIdentityConfigBuilder_ != null || workloadIdentityConfig_ != null; + } + /** + * + * + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + * + * @return The workloadIdentityConfig. + */ + public com.google.container.v1.WorkloadIdentityConfig getWorkloadIdentityConfig() { + if (workloadIdentityConfigBuilder_ == null) { + return workloadIdentityConfig_ == null + ? com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() + : workloadIdentityConfig_; + } else { + return workloadIdentityConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + */ + public Builder setWorkloadIdentityConfig(com.google.container.v1.WorkloadIdentityConfig value) { + if (workloadIdentityConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workloadIdentityConfig_ = value; + onChanged(); + } else { + workloadIdentityConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + */ + public Builder setWorkloadIdentityConfig( + com.google.container.v1.WorkloadIdentityConfig.Builder builderForValue) { + if (workloadIdentityConfigBuilder_ == null) { + workloadIdentityConfig_ = builderForValue.build(); + onChanged(); + } else { + workloadIdentityConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + */ + public Builder mergeWorkloadIdentityConfig( + com.google.container.v1.WorkloadIdentityConfig value) { + if (workloadIdentityConfigBuilder_ == null) { + if (workloadIdentityConfig_ != null) { + workloadIdentityConfig_ = + com.google.container.v1.WorkloadIdentityConfig.newBuilder(workloadIdentityConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + workloadIdentityConfig_ = value; + } + onChanged(); + } else { + workloadIdentityConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + */ + public Builder clearWorkloadIdentityConfig() { + if (workloadIdentityConfigBuilder_ == null) { + workloadIdentityConfig_ = null; + onChanged(); + } else { + workloadIdentityConfig_ = null; + workloadIdentityConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + */ + public com.google.container.v1.WorkloadIdentityConfig.Builder + getWorkloadIdentityConfigBuilder() { + + onChanged(); + return getWorkloadIdentityConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + */ + public com.google.container.v1.WorkloadIdentityConfigOrBuilder + getWorkloadIdentityConfigOrBuilder() { + if (workloadIdentityConfigBuilder_ != null) { + return workloadIdentityConfigBuilder_.getMessageOrBuilder(); + } else { + return workloadIdentityConfig_ == null + ? com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() + : workloadIdentityConfig_; + } + } + /** + * + * + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadIdentityConfig, + com.google.container.v1.WorkloadIdentityConfig.Builder, + com.google.container.v1.WorkloadIdentityConfigOrBuilder> + getWorkloadIdentityConfigFieldBuilder() { + if (workloadIdentityConfigBuilder_ == null) { + workloadIdentityConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadIdentityConfig, + com.google.container.v1.WorkloadIdentityConfig.Builder, + com.google.container.v1.WorkloadIdentityConfigOrBuilder>( + getWorkloadIdentityConfig(), getParentForChildren(), isClean()); + workloadIdentityConfig_ = null; + } + return workloadIdentityConfigBuilder_; + } + + private 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 meshCertificatesBuilder_ != null || meshCertificates_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + meshCertificatesBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + meshCertificatesBuilder_.setMessage(builderForValue.build()); + } + + 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 (meshCertificates_ != null) { + meshCertificates_ = + com.google.container.v1.MeshCertificates.newBuilder(meshCertificates_) + .mergeFrom(value) + .buildPartial(); + } else { + meshCertificates_ = value; + } + onChanged(); + } else { + meshCertificatesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1.MeshCertificates mesh_certificates = 67; + */ + public Builder clearMeshCertificates() { + if (meshCertificatesBuilder_ == null) { + meshCertificates_ = null; + onChanged(); + } else { + meshCertificates_ = null; + meshCertificatesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1.MeshCertificates mesh_certificates = 67; + */ + public com.google.container.v1.MeshCertificates.Builder getMeshCertificatesBuilder() { + + 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 costManagementConfigBuilder_ != null || costManagementConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + costManagementConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + costManagementConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (costManagementConfig_ != null) { + costManagementConfig_ = + com.google.container.v1.CostManagementConfig.newBuilder(costManagementConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + costManagementConfig_ = value; + } + onChanged(); + } else { + costManagementConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1.CostManagementConfig cost_management_config = 45; + */ + public Builder clearCostManagementConfig() { + if (costManagementConfigBuilder_ == null) { + costManagementConfig_ = null; + onChanged(); + } else { + costManagementConfig_ = null; + costManagementConfigBuilder_ = null; + } + + 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() { + + 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 notificationConfigBuilder_ != null || notificationConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + notificationConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + notificationConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (notificationConfig_ != null) { + notificationConfig_ = + com.google.container.v1.NotificationConfig.newBuilder(notificationConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + notificationConfig_ = value; + } + onChanged(); + } else { + notificationConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Notification configuration of the cluster.
+     * 
+ * + * .google.container.v1.NotificationConfig notification_config = 49; + */ + public Builder clearNotificationConfig() { + if (notificationConfigBuilder_ == null) { + notificationConfig_ = null; + onChanged(); + } else { + notificationConfig_ = null; + notificationConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Notification configuration of the cluster.
+     * 
+ * + * .google.container.v1.NotificationConfig notification_config = 49; + */ + public com.google.container.v1.NotificationConfig.Builder getNotificationConfigBuilder() { + + 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 confidentialNodesBuilder_ != null || confidentialNodes_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + confidentialNodesBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + confidentialNodesBuilder_.setMessage(builderForValue.build()); + } + + 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 (confidentialNodes_ != null) { + confidentialNodes_ = + com.google.container.v1.ConfidentialNodes.newBuilder(confidentialNodes_) + .mergeFrom(value) + .buildPartial(); + } else { + confidentialNodes_ = value; + } + onChanged(); + } else { + confidentialNodesBuilder_.mergeFrom(value); + } + + 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() { + if (confidentialNodesBuilder_ == null) { + confidentialNodes_ = null; + onChanged(); + } else { + confidentialNodes_ = null; + confidentialNodesBuilder_ = null; + } + + 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() { + + 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 identityServiceConfigBuilder_ != null || identityServiceConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + identityServiceConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + identityServiceConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (identityServiceConfig_ != null) { + identityServiceConfig_ = + com.google.container.v1.IdentityServiceConfig.newBuilder(identityServiceConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + identityServiceConfig_ = value; + } + onChanged(); + } else { + identityServiceConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for Identity Service component.
+     * 
+ * + * .google.container.v1.IdentityServiceConfig identity_service_config = 54; + */ + public Builder clearIdentityServiceConfig() { + if (identityServiceConfigBuilder_ == null) { + identityServiceConfig_ = null; + onChanged(); + } else { + identityServiceConfig_ = null; + identityServiceConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for Identity Service component.
+     * 
+ * + * .google.container.v1.IdentityServiceConfig identity_service_config = 54; + */ + public com.google.container.v1.IdentityServiceConfig.Builder getIdentityServiceConfigBuilder() { + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + * + * @return This builder for chaining. + */ + public Builder clearSelfLink() { + + selfLink_ = getDefaultInstance().getSelfLink(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + * + * @param value The bytes for selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + selfLink_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field is deprecated, use location instead.
+     * 
+ * + * string zone = 101 [deprecated = true]; + * + * @deprecated google.container.v1.Cluster.zone is deprecated. See + * google/container/v1/cluster_service.proto;l=1643 + * @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=1643 + * @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=1643 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field is deprecated, use location instead.
+     * 
+ * + * string zone = 101 [deprecated = true]; + * + * @deprecated google.container.v1.Cluster.zone is deprecated. See + * google/container/v1/cluster_service.proto;l=1643 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field is deprecated, use location instead.
+     * 
+ * + * string zone = 101 [deprecated = true]; + * + * @deprecated google.container.v1.Cluster.zone is deprecated. See + * google/container/v1/cluster_service.proto;l=1643 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object endpoint_ = ""; + /** + * + * + *
+     * [Output only] The IP address of this cluster's master endpoint.
+     * The endpoint can be accessed from the internet at
+     * `https://username:password@endpoint/`.
+     * See the `masterAuth` property of this resource for username and
+     * password information.
+     * 
+ * + * string endpoint = 102; + * + * @return The endpoint. + */ + public java.lang.String getEndpoint() { + java.lang.Object ref = endpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] The IP address of this cluster's master endpoint.
+     * The endpoint can be accessed from the internet at
+     * `https://username:password@endpoint/`.
+     * See the `masterAuth` property of this resource for username and
+     * password information.
+     * 
+ * + * string endpoint = 102; + * + * @return The bytes for endpoint. + */ + public com.google.protobuf.ByteString getEndpointBytes() { + java.lang.Object ref = endpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] The IP address of this cluster's master endpoint.
+     * The endpoint can be accessed from the internet at
+     * `https://username:password@endpoint/`.
+     * See the `masterAuth` property of this resource for username and
+     * password information.
+     * 
+ * + * string endpoint = 102; + * + * @param value The endpoint to set. + * @return This builder for chaining. + */ + public Builder setEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + endpoint_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The IP address of this cluster's master endpoint.
+     * The endpoint can be accessed from the internet at
+     * `https://username:password@endpoint/`.
+     * See the `masterAuth` property of this resource for username and
+     * password information.
+     * 
+ * + * string endpoint = 102; + * + * @return This builder for chaining. + */ + public Builder clearEndpoint() { + + endpoint_ = getDefaultInstance().getEndpoint(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The IP address of this cluster's master endpoint.
+     * The endpoint can be accessed from the internet at
+     * `https://username:password@endpoint/`.
+     * See the `masterAuth` property of this resource for username and
+     * password information.
+     * 
+ * + * string endpoint = 102; + * + * @param value The bytes for endpoint to set. + * @return This builder for chaining. + */ + public Builder setEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + endpoint_ = value; + onChanged(); + return this; + } + + private java.lang.Object initialClusterVersion_ = ""; + /** + * + * + *
+     * The initial Kubernetes version for this cluster.  Valid versions are those
+     * found in validMasterVersions returned by getServerConfig.  The version can
+     * be upgraded over time; such upgrades are reflected in
+     * currentMasterVersion and currentNodeVersion.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "","-": picks the default Kubernetes version
+     * 
+ * + * string initial_cluster_version = 103; + * + * @return The initialClusterVersion. + */ + public java.lang.String getInitialClusterVersion() { + java.lang.Object ref = initialClusterVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + initialClusterVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The initial Kubernetes version for this cluster.  Valid versions are those
+     * found in validMasterVersions returned by getServerConfig.  The version can
+     * be upgraded over time; such upgrades are reflected in
+     * currentMasterVersion and currentNodeVersion.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "","-": picks the default Kubernetes version
+     * 
+ * + * string initial_cluster_version = 103; + * + * @return The bytes for initialClusterVersion. + */ + public com.google.protobuf.ByteString getInitialClusterVersionBytes() { + java.lang.Object ref = initialClusterVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + initialClusterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The initial Kubernetes version for this cluster.  Valid versions are those
+     * found in validMasterVersions returned by getServerConfig.  The version can
+     * be upgraded over time; such upgrades are reflected in
+     * currentMasterVersion and currentNodeVersion.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "","-": picks the default Kubernetes version
+     * 
+ * + * string initial_cluster_version = 103; + * + * @param value The initialClusterVersion to set. + * @return This builder for chaining. + */ + public Builder setInitialClusterVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + initialClusterVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The initial Kubernetes version for this cluster.  Valid versions are those
+     * found in validMasterVersions returned by getServerConfig.  The version can
+     * be upgraded over time; such upgrades are reflected in
+     * currentMasterVersion and currentNodeVersion.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "","-": picks the default Kubernetes version
+     * 
+ * + * string initial_cluster_version = 103; + * + * @return This builder for chaining. + */ + public Builder clearInitialClusterVersion() { + + initialClusterVersion_ = getDefaultInstance().getInitialClusterVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * The initial Kubernetes version for this cluster.  Valid versions are those
+     * found in validMasterVersions returned by getServerConfig.  The version can
+     * be upgraded over time; such upgrades are reflected in
+     * currentMasterVersion and currentNodeVersion.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "","-": picks the default Kubernetes version
+     * 
+ * + * string initial_cluster_version = 103; + * + * @param value The bytes for initialClusterVersion to set. + * @return This builder for chaining. + */ + public Builder setInitialClusterVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + initialClusterVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object currentMasterVersion_ = ""; + /** + * + * + *
+     * [Output only] The current software version of the master endpoint.
+     * 
+ * + * string current_master_version = 104; + * + * @return The currentMasterVersion. + */ + public java.lang.String getCurrentMasterVersion() { + java.lang.Object ref = currentMasterVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentMasterVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] The current software version of the master endpoint.
+     * 
+ * + * string current_master_version = 104; + * + * @return The bytes for currentMasterVersion. + */ + public com.google.protobuf.ByteString getCurrentMasterVersionBytes() { + java.lang.Object ref = currentMasterVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + currentMasterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] The current software version of the master endpoint.
+     * 
+ * + * string current_master_version = 104; + * + * @param value The currentMasterVersion to set. + * @return This builder for chaining. + */ + public Builder setCurrentMasterVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + currentMasterVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The current software version of the master endpoint.
+     * 
+ * + * string current_master_version = 104; + * + * @return This builder for chaining. + */ + public Builder clearCurrentMasterVersion() { + + currentMasterVersion_ = getDefaultInstance().getCurrentMasterVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The current software version of the master endpoint.
+     * 
+ * + * string current_master_version = 104; + * + * @param value The bytes for currentMasterVersion to set. + * @return This builder for chaining. + */ + public Builder setCurrentMasterVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + currentMasterVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object currentNodeVersion_ = ""; + /** + * + * + *
+     * [Output only] Deprecated, use
+     * [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=1676 + * @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=1676 + * @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=1676 + * @param value The currentNodeVersion to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setCurrentNodeVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + currentNodeVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Deprecated, use
+     * [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=1676 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearCurrentNodeVersion() { + + currentNodeVersion_ = getDefaultInstance().getCurrentNodeVersion(); + 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=1676 + * @param value The bytes for currentNodeVersion to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setCurrentNodeVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + currentNodeVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object createTime_ = ""; + /** + * + * + *
+     * [Output only] The time the cluster was created, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string create_time = 106; + * + * @return The createTime. + */ + public java.lang.String getCreateTime() { + java.lang.Object ref = createTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + createTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] The time the cluster was created, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string create_time = 106; + * + * @return The bytes for createTime. + */ + public com.google.protobuf.ByteString getCreateTimeBytes() { + java.lang.Object ref = createTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + createTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] The time the cluster was created, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string create_time = 106; + * + * @param value The createTime to set. + * @return This builder for chaining. + */ + public Builder setCreateTime(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + createTime_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The time the cluster was created, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string create_time = 106; + * + * @return This builder for chaining. + */ + public Builder clearCreateTime() { + + createTime_ = getDefaultInstance().getCreateTime(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The time the cluster was created, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string create_time = 106; + * + * @param value The bytes for createTime to set. + * @return This builder for chaining. + */ + public Builder setCreateTimeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + createTime_ = value; + onChanged(); + return this; + } + + private int status_ = 0; + /** + * + * + *
+     * [Output only] The current status of this cluster.
+     * 
+ * + * .google.container.v1.Cluster.Status status = 107; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + /** + * + * + *
+     * [Output only] The current status of this cluster.
+     * 
+ * + * .google.container.v1.Cluster.Status status = 107; + * + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + + status_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [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() { + @SuppressWarnings("deprecation") + com.google.container.v1.Cluster.Status result = + com.google.container.v1.Cluster.Status.valueOf(status_); + return result == null ? com.google.container.v1.Cluster.Status.UNRECOGNIZED : result; + } + /** + * + * + *
+     * [Output only] The current status of this cluster.
+     * 
+ * + * .google.container.v1.Cluster.Status status = 107; + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(com.google.container.v1.Cluster.Status value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The current status of this cluster.
+     * 
+ * + * .google.container.v1.Cluster.Status status = 107; + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + + status_ = 0; + onChanged(); + return this; + } + + private java.lang.Object statusMessage_ = ""; + /** + * + * + *
+     * [Output only] Deprecated. Use conditions instead.
+     * Additional information about the current status of this
+     * cluster, if available.
+     * 
+ * + * string status_message = 108 [deprecated = true]; + * + * @deprecated google.container.v1.Cluster.status_message is deprecated. See + * google/container/v1/cluster_service.proto;l=1688 + * @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=1688 + * @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=1688 + * @param value The statusMessage to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setStatusMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + statusMessage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Deprecated. Use conditions instead.
+     * Additional information about the current status of this
+     * cluster, if available.
+     * 
+ * + * string status_message = 108 [deprecated = true]; + * + * @deprecated google.container.v1.Cluster.status_message is deprecated. See + * google/container/v1/cluster_service.proto;l=1688 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearStatusMessage() { + + statusMessage_ = getDefaultInstance().getStatusMessage(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Deprecated. Use conditions instead.
+     * Additional information about the current status of this
+     * cluster, if available.
+     * 
+ * + * string status_message = 108 [deprecated = true]; + * + * @deprecated google.container.v1.Cluster.status_message is deprecated. See + * google/container/v1/cluster_service.proto;l=1688 + * @param value The bytes for statusMessage to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + statusMessage_ = value; + onChanged(); + return this; + } + + private int nodeIpv4CidrSize_; + /** + * + * + *
+     * [Output only] The size of the address space on each node for hosting
+     * containers. This is provisioned from within the `container_ipv4_cidr`
+     * range. This field will only be set when cluster is in route-based network
+     * mode.
+     * 
+ * + * int32 node_ipv4_cidr_size = 109; + * + * @return The nodeIpv4CidrSize. + */ + @java.lang.Override + public int getNodeIpv4CidrSize() { + return nodeIpv4CidrSize_; + } + /** + * + * + *
+     * [Output only] The size of the address space on each node for hosting
+     * containers. This is provisioned from within the `container_ipv4_cidr`
+     * range. This field will only be set when cluster is in route-based network
+     * mode.
+     * 
+ * + * int32 node_ipv4_cidr_size = 109; + * + * @param value The nodeIpv4CidrSize to set. + * @return This builder for chaining. + */ + public Builder setNodeIpv4CidrSize(int value) { + + nodeIpv4CidrSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The size of the address space on each node for hosting
+     * containers. This is provisioned from within the `container_ipv4_cidr`
+     * range. This field will only be set when cluster is in route-based network
+     * mode.
+     * 
+ * + * int32 node_ipv4_cidr_size = 109; + * + * @return This builder for chaining. + */ + public Builder clearNodeIpv4CidrSize() { + + nodeIpv4CidrSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object servicesIpv4Cidr_ = ""; + /** + * + * + *
+     * [Output only] The IP address range of the Kubernetes services in
+     * this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`). Service addresses are
+     * typically put in the last `/16` from the container CIDR.
+     * 
+ * + * string services_ipv4_cidr = 110; + * + * @return The servicesIpv4Cidr. + */ + public java.lang.String getServicesIpv4Cidr() { + java.lang.Object ref = servicesIpv4Cidr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesIpv4Cidr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] The IP address range of the Kubernetes services in
+     * this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`). Service addresses are
+     * typically put in the last `/16` from the container CIDR.
+     * 
+ * + * string services_ipv4_cidr = 110; + * + * @return The bytes for servicesIpv4Cidr. + */ + public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { + java.lang.Object ref = servicesIpv4Cidr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servicesIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] The IP address range of the Kubernetes services in
+     * this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`). Service addresses are
+     * typically put in the last `/16` from the container CIDR.
+     * 
+ * + * string services_ipv4_cidr = 110; + * + * @param value The servicesIpv4Cidr to set. + * @return This builder for chaining. + */ + public Builder setServicesIpv4Cidr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + servicesIpv4Cidr_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The IP address range of the Kubernetes services in
+     * this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`). Service addresses are
+     * typically put in the last `/16` from the container CIDR.
+     * 
+ * + * string services_ipv4_cidr = 110; + * + * @return This builder for chaining. + */ + public Builder clearServicesIpv4Cidr() { + + servicesIpv4Cidr_ = getDefaultInstance().getServicesIpv4Cidr(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The IP address range of the Kubernetes services in
+     * this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`). Service addresses are
+     * typically put in the last `/16` from the container CIDR.
+     * 
+ * + * string services_ipv4_cidr = 110; + * + * @param value The bytes for servicesIpv4Cidr to set. + * @return This builder for chaining. + */ + public Builder setServicesIpv4CidrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + servicesIpv4Cidr_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList instanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureInstanceGroupUrlsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(instanceGroupUrls_); + bitField0_ |= 0x00000008; + } + } + /** + * + * + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See + * google/container/v1/cluster_service.proto;l=1704 + * @return A list containing the instanceGroupUrls. + */ + @java.lang.Deprecated + public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { + return instanceGroupUrls_.getUnmodifiableView(); + } + /** + * + * + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See + * google/container/v1/cluster_service.proto;l=1704 + * @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=1704 + * @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=1704 + * @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=1704 + * @param index The index to set the value at. + * @param value The instanceGroupUrls to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setInstanceGroupUrls(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See + * google/container/v1/cluster_service.proto;l=1704 + * @param value The instanceGroupUrls to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder addInstanceGroupUrls(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See + * google/container/v1/cluster_service.proto;l=1704 + * @param values The instanceGroupUrls to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder addAllInstanceGroupUrls(java.lang.Iterable values) { + ensureInstanceGroupUrlsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instanceGroupUrls_); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See + * google/container/v1/cluster_service.proto;l=1704 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearInstanceGroupUrls() { + instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See + * google/container/v1/cluster_service.proto;l=1704 + * @param value The bytes of the instanceGroupUrls to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder addInstanceGroupUrlsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.add(value); + onChanged(); + return this; + } + + private int currentNodeCount_; + /** + * + * + *
+     * [Output only]  The number of nodes currently in the cluster. Deprecated.
+     * Call Kubernetes API directly to retrieve node information.
+     * 
+ * + * int32 current_node_count = 112 [deprecated = true]; + * + * @deprecated google.container.v1.Cluster.current_node_count is deprecated. See + * google/container/v1/cluster_service.proto;l=1708 + * @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=1708 + * @param value The currentNodeCount to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setCurrentNodeCount(int value) { + + currentNodeCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only]  The number of nodes currently in the cluster. Deprecated.
+     * Call Kubernetes API directly to retrieve node information.
+     * 
+ * + * int32 current_node_count = 112 [deprecated = true]; + * + * @deprecated google.container.v1.Cluster.current_node_count is deprecated. See + * google/container/v1/cluster_service.proto;l=1708 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearCurrentNodeCount() { + + currentNodeCount_ = 0; + onChanged(); + return this; + } + + private java.lang.Object expireTime_ = ""; + /** + * + * + *
+     * [Output only] The time the cluster will be automatically
+     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string expire_time = 113; + * + * @return The expireTime. + */ + public java.lang.String getExpireTime() { + java.lang.Object ref = expireTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + expireTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] The time the cluster will be automatically
+     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string expire_time = 113; + * + * @return The bytes for expireTime. + */ + public com.google.protobuf.ByteString getExpireTimeBytes() { + java.lang.Object ref = expireTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + expireTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] The time the cluster will be automatically
+     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string expire_time = 113; + * + * @param value The expireTime to set. + * @return This builder for chaining. + */ + public Builder setExpireTime(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + expireTime_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The time the cluster will be automatically
+     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string expire_time = 113; + * + * @return This builder for chaining. + */ + public Builder clearExpireTime() { + + expireTime_ = getDefaultInstance().getExpireTime(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The time the cluster will be automatically
+     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string expire_time = 113; + * + * @param value The bytes for expireTime to set. + * @return This builder for chaining. + */ + public Builder setExpireTimeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + expireTime_ = value; + onChanged(); + return this; + } + + private java.lang.Object location_ = ""; + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * or
+     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * in which the cluster resides.
+     * 
+ * + * string location = 114; + * + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * or
+     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * in which the cluster resides.
+     * 
+ * + * string location = 114; + * + * @return The bytes for location. + */ + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * or
+     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * in which the cluster resides.
+     * 
+ * + * string location = 114; + * + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + location_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * or
+     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * in which the cluster resides.
+     * 
+ * + * string location = 114; + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + + location_ = getDefaultInstance().getLocation(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * or
+     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * in which the cluster resides.
+     * 
+ * + * string location = 114; + * + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + location_ = value; + onChanged(); + return this; + } + + private boolean enableTpu_; + /** + * + * + *
+     * Enable the ability to use Cloud TPUs in this cluster.
+     * 
+ * + * bool enable_tpu = 115; + * + * @return The enableTpu. + */ + @java.lang.Override + public boolean getEnableTpu() { + return enableTpu_; + } + /** + * + * + *
+     * Enable the ability to use Cloud TPUs in this cluster.
+     * 
+ * + * bool enable_tpu = 115; + * + * @param value The enableTpu to set. + * @return This builder for chaining. + */ + public Builder setEnableTpu(boolean value) { + + enableTpu_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Enable the ability to use Cloud TPUs in this cluster.
+     * 
+ * + * bool enable_tpu = 115; + * + * @return This builder for chaining. + */ + public Builder clearEnableTpu() { + + enableTpu_ = false; + onChanged(); + return this; + } + + private java.lang.Object tpuIpv4CidrBlock_ = ""; + /** + * + * + *
+     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`).
+     * 
+ * + * string tpu_ipv4_cidr_block = 116; + * + * @return The tpuIpv4CidrBlock. + */ + public java.lang.String getTpuIpv4CidrBlock() { + java.lang.Object ref = tpuIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tpuIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`).
+     * 
+ * + * string tpu_ipv4_cidr_block = 116; + * + * @return The bytes for tpuIpv4CidrBlock. + */ + public com.google.protobuf.ByteString getTpuIpv4CidrBlockBytes() { + java.lang.Object ref = tpuIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tpuIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`).
+     * 
+ * + * string tpu_ipv4_cidr_block = 116; + * + * @param value The tpuIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setTpuIpv4CidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tpuIpv4CidrBlock_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`).
+     * 
+ * + * string tpu_ipv4_cidr_block = 116; + * + * @return This builder for chaining. + */ + public Builder clearTpuIpv4CidrBlock() { + + tpuIpv4CidrBlock_ = getDefaultInstance().getTpuIpv4CidrBlock(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`).
+     * 
+ * + * string tpu_ipv4_cidr_block = 116; + * + * @param value The bytes for tpuIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setTpuIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tpuIpv4CidrBlock_ = value; + onChanged(); + return this; + } + + private java.util.List conditions_ = + java.util.Collections.emptyList(); + + private void ensureConditionsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + conditions_ = new java.util.ArrayList(conditions_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.StatusCondition, + com.google.container.v1.StatusCondition.Builder, + com.google.container.v1.StatusConditionOrBuilder> + conditionsBuilder_; + + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public java.util.List getConditionsList() { + if (conditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conditions_); + } else { + return conditionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public int getConditionsCount() { + if (conditionsBuilder_ == null) { + return conditions_.size(); + } else { + return conditionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public com.google.container.v1.StatusCondition getConditions(int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public Builder setConditions(int index, com.google.container.v1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.set(index, value); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public Builder setConditions( + int index, com.google.container.v1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.set(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public Builder addConditions(com.google.container.v1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(value); + onChanged(); + } else { + conditionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public Builder addConditions(int index, com.google.container.v1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(index, value); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public Builder addConditions(com.google.container.v1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public Builder addConditions( + int index, com.google.container.v1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public Builder addAllConditions( + java.lang.Iterable values) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); + onChanged(); + } else { + conditionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public Builder clearConditions() { + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + conditionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public Builder removeConditions(int index) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.remove(index); + onChanged(); + } else { + conditionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public com.google.container.v1.StatusCondition.Builder getConditionsBuilder(int index) { + return getConditionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public com.google.container.v1.StatusConditionOrBuilder getConditionsOrBuilder(int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public java.util.List + getConditionsOrBuilderList() { + if (conditionsBuilder_ != null) { + return conditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conditions_); + } + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public com.google.container.v1.StatusCondition.Builder addConditionsBuilder() { + return getConditionsFieldBuilder() + .addBuilder(com.google.container.v1.StatusCondition.getDefaultInstance()); + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public com.google.container.v1.StatusCondition.Builder addConditionsBuilder(int index) { + return getConditionsFieldBuilder() + .addBuilder(index, com.google.container.v1.StatusCondition.getDefaultInstance()); + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public java.util.List + getConditionsBuilderList() { + return getConditionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.StatusCondition, + com.google.container.v1.StatusCondition.Builder, + com.google.container.v1.StatusConditionOrBuilder> + getConditionsFieldBuilder() { + if (conditionsBuilder_ == null) { + conditionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.StatusCondition, + com.google.container.v1.StatusCondition.Builder, + com.google.container.v1.StatusConditionOrBuilder>( + conditions_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + conditions_ = null; + } + return conditionsBuilder_; + } + + private com.google.container.v1.Autopilot autopilot_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.Autopilot, + com.google.container.v1.Autopilot.Builder, + com.google.container.v1.AutopilotOrBuilder> + autopilotBuilder_; + /** + * + * + *
+     * Autopilot configuration for the cluster.
+     * 
+ * + * .google.container.v1.Autopilot autopilot = 128; + * + * @return Whether the autopilot field is set. + */ + public boolean hasAutopilot() { + return autopilotBuilder_ != null || autopilot_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + autopilotBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + autopilotBuilder_.setMessage(builderForValue.build()); + } + + 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 (autopilot_ != null) { + autopilot_ = + com.google.container.v1.Autopilot.newBuilder(autopilot_) + .mergeFrom(value) + .buildPartial(); + } else { + autopilot_ = value; + } + onChanged(); + } else { + autopilotBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Autopilot configuration for the cluster.
+     * 
+ * + * .google.container.v1.Autopilot autopilot = 128; + */ + public Builder clearAutopilot() { + if (autopilotBuilder_ == null) { + autopilot_ = null; + onChanged(); + } else { + autopilot_ = null; + autopilotBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Autopilot configuration for the cluster.
+     * 
+ * + * .google.container.v1.Autopilot autopilot = 128; + */ + public com.google.container.v1.Autopilot.Builder getAutopilotBuilder() { + + 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; + 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(); + 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; + 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 ((bitField0_ & 0x00000020) != 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; + onChanged(); + } else { + nodePoolDefaultsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + 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(); + onChanged(); + } else { + nodePoolDefaultsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + 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 (((bitField0_ & 0x00000020) != 0) + && nodePoolDefaults_ != null + && nodePoolDefaults_ != com.google.container.v1.NodePoolDefaults.getDefaultInstance()) { + nodePoolDefaults_ = + com.google.container.v1.NodePoolDefaults.newBuilder(nodePoolDefaults_) + .mergeFrom(value) + .buildPartial(); + } else { + nodePoolDefaults_ = value; + } + onChanged(); + } else { + nodePoolDefaultsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + 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() { + if (nodePoolDefaultsBuilder_ == null) { + nodePoolDefaults_ = null; + onChanged(); + } else { + nodePoolDefaultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + 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() { + bitField0_ |= 0x00000020; + 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 loggingConfigBuilder_ != null || loggingConfig_ != null; + } + /** + * + * + *
+     * Logging configuration for the cluster.
+     * 
+ * + * .google.container.v1.LoggingConfig logging_config = 132; + * + * @return The loggingConfig. + */ + public com.google.container.v1.LoggingConfig getLoggingConfig() { + if (loggingConfigBuilder_ == null) { + return loggingConfig_ == null + ? com.google.container.v1.LoggingConfig.getDefaultInstance() + : loggingConfig_; + } else { + return 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; + onChanged(); + } else { + loggingConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + loggingConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (loggingConfig_ != null) { + loggingConfig_ = + com.google.container.v1.LoggingConfig.newBuilder(loggingConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + loggingConfig_ = value; + } + onChanged(); + } else { + loggingConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Logging configuration for the cluster.
+     * 
+ * + * .google.container.v1.LoggingConfig logging_config = 132; + */ + public Builder clearLoggingConfig() { + if (loggingConfigBuilder_ == null) { + loggingConfig_ = null; + onChanged(); + } else { + loggingConfig_ = null; + loggingConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Logging configuration for the cluster.
+     * 
+ * + * .google.container.v1.LoggingConfig logging_config = 132; + */ + public com.google.container.v1.LoggingConfig.Builder getLoggingConfigBuilder() { + + 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 monitoringConfigBuilder_ != null || monitoringConfig_ != null; + } + /** + * + * + *
+     * Monitoring configuration for the cluster.
+     * 
+ * + * .google.container.v1.MonitoringConfig monitoring_config = 133; + * + * @return The monitoringConfig. + */ + public com.google.container.v1.MonitoringConfig getMonitoringConfig() { + if (monitoringConfigBuilder_ == null) { + return monitoringConfig_ == null + ? com.google.container.v1.MonitoringConfig.getDefaultInstance() + : monitoringConfig_; + } else { + 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; + onChanged(); + } else { + monitoringConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + monitoringConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (monitoringConfig_ != null) { + monitoringConfig_ = + com.google.container.v1.MonitoringConfig.newBuilder(monitoringConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + monitoringConfig_ = value; + } + onChanged(); + } else { + monitoringConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Monitoring configuration for the cluster.
+     * 
+ * + * .google.container.v1.MonitoringConfig monitoring_config = 133; + */ + public Builder clearMonitoringConfig() { + if (monitoringConfigBuilder_ == null) { + monitoringConfig_ = null; + onChanged(); + } else { + monitoringConfig_ = null; + monitoringConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Monitoring configuration for the cluster.
+     * 
+ * + * .google.container.v1.MonitoringConfig monitoring_config = 133; + */ + public com.google.container.v1.MonitoringConfig.Builder getMonitoringConfigBuilder() { + + 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 nodePoolAutoConfigBuilder_ != null || nodePoolAutoConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + nodePoolAutoConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + nodePoolAutoConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (nodePoolAutoConfig_ != null) { + nodePoolAutoConfig_ = + com.google.container.v1.NodePoolAutoConfig.newBuilder(nodePoolAutoConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + nodePoolAutoConfig_ = value; + } + onChanged(); + } else { + nodePoolAutoConfigBuilder_.mergeFrom(value); + } + + 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() { + if (nodePoolAutoConfigBuilder_ == null) { + nodePoolAutoConfig_ = null; + onChanged(); + } else { + nodePoolAutoConfig_ = null; + nodePoolAutoConfigBuilder_ = null; + } + + 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() { + + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..e3ebb0ddc033 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscaling.java @@ -0,0 +1,1996 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ClusterAutoscaling(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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) + } + + public static final int ENABLE_NODE_AUTOPROVISIONING_FIELD_NUMBER = 1; + private boolean enableNodeAutoprovisioning_; + /** + * + * + *
+   * Enables automatic node pool creation and deletion.
+   * 
+ * + * bool enable_node_autoprovisioning = 1; + * + * @return The enableNodeAutoprovisioning. + */ + @java.lang.Override + public boolean getEnableNodeAutoprovisioning() { + return enableNodeAutoprovisioning_; + } + + public static final int RESOURCE_LIMITS_FIELD_NUMBER = 2; + private java.util.List resourceLimits_; + /** + * + * + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.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_; + /** + * + * + *
+   * Defines autoscaling behaviour.
+   * 
+ * + * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * + * + * @return The enum numeric value on the wire for autoscalingProfile. + */ + @java.lang.Override + public int getAutoscalingProfileValue() { + return autoscalingProfile_; + } + /** + * + * + *
+   * Defines autoscaling behaviour.
+   * 
+ * + * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * + * + * @return The autoscalingProfile. + */ + @java.lang.Override + public com.google.container.v1.ClusterAutoscaling.AutoscalingProfile getAutoscalingProfile() { + @SuppressWarnings("deprecation") + com.google.container.v1.ClusterAutoscaling.AutoscalingProfile result = + com.google.container.v1.ClusterAutoscaling.AutoscalingProfile.valueOf(autoscalingProfile_); + return result == null + ? com.google.container.v1.ClusterAutoscaling.AutoscalingProfile.UNRECOGNIZED + : result; + } + + public static final int AUTOPROVISIONING_NODE_POOL_DEFAULTS_FIELD_NUMBER = 4; + private com.google.container.v1.AutoprovisioningNodePoolDefaults + autoprovisioningNodePoolDefaults_; + /** + * + * + *
+   * 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 autoprovisioningNodePoolDefaults_ != null; + } + /** + * + * + *
+   * 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 getAutoprovisioningNodePoolDefaults(); + } + + public static final int AUTOPROVISIONING_LOCATIONS_FIELD_NUMBER = 5; + private com.google.protobuf.LazyStringList autoprovisioningLocations_; + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes can be created by NAP.
+   * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @return A list containing the autoprovisioningLocations. + */ + public com.google.protobuf.ProtocolStringList getAutoprovisioningLocationsList() { + return autoprovisioningLocations_; + } + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes can be created by NAP.
+   * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @return The count of autoprovisioningLocations. + */ + public int getAutoprovisioningLocationsCount() { + return autoprovisioningLocations_.size(); + } + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes can be created by NAP.
+   * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @param index The index of the element to return. + * @return The autoprovisioningLocations at the given index. + */ + public java.lang.String getAutoprovisioningLocations(int index) { + return autoprovisioningLocations_.get(index); + } + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes can be created by NAP.
+   * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @param index The index of the value to return. + * @return The bytes of the autoprovisioningLocations at the given index. + */ + public com.google.protobuf.ByteString getAutoprovisioningLocationsBytes(int index) { + return autoprovisioningLocations_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enableNodeAutoprovisioning_ != false) { + output.writeBool(1, enableNodeAutoprovisioning_); + } + for (int i = 0; i < resourceLimits_.size(); i++) { + output.writeMessage(2, resourceLimits_.get(i)); + } + if (autoscalingProfile_ + != com.google.container.v1.ClusterAutoscaling.AutoscalingProfile.PROFILE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, autoscalingProfile_); + } + if (autoprovisioningNodePoolDefaults_ != null) { + output.writeMessage(4, getAutoprovisioningNodePoolDefaults()); + } + for (int i = 0; i < autoprovisioningLocations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 5, autoprovisioningLocations_.getRaw(i)); + } + 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 (autoprovisioningNodePoolDefaults_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getAutoprovisioningNodePoolDefaults()); + } + { + int dataSize = 0; + for (int i = 0; i < autoprovisioningLocations_.size(); i++) { + dataSize += computeStringSizeNoTag(autoprovisioningLocations_.getRaw(i)); + } + size += dataSize; + size += 1 * getAutoprovisioningLocationsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enableNodeAutoprovisioning_ = false; + + if (resourceLimitsBuilder_ == null) { + resourceLimits_ = java.util.Collections.emptyList(); + } else { + resourceLimits_ = null; + resourceLimitsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + autoscalingProfile_ = 0; + + if (autoprovisioningNodePoolDefaultsBuilder_ == null) { + autoprovisioningNodePoolDefaults_ = null; + } else { + autoprovisioningNodePoolDefaults_ = null; + autoprovisioningNodePoolDefaultsBuilder_ = null; + } + autoprovisioningLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.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); + int from_bitField0_ = bitField0_; + result.enableNodeAutoprovisioning_ = enableNodeAutoprovisioning_; + if (resourceLimitsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + resourceLimits_ = java.util.Collections.unmodifiableList(resourceLimits_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.resourceLimits_ = resourceLimits_; + } else { + result.resourceLimits_ = resourceLimitsBuilder_.build(); + } + result.autoscalingProfile_ = autoscalingProfile_; + if (autoprovisioningNodePoolDefaultsBuilder_ == null) { + result.autoprovisioningNodePoolDefaults_ = autoprovisioningNodePoolDefaults_; + } else { + result.autoprovisioningNodePoolDefaults_ = autoprovisioningNodePoolDefaultsBuilder_.build(); + } + if (((bitField0_ & 0x00000002) != 0)) { + autoprovisioningLocations_ = autoprovisioningLocations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.autoprovisioningLocations_ = autoprovisioningLocations_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_ & ~0x00000001); + } else { + ensureResourceLimitsIsMutable(); + resourceLimits_.addAll(other.resourceLimits_); + } + onChanged(); + } + } else { + if (!other.resourceLimits_.isEmpty()) { + if (resourceLimitsBuilder_.isEmpty()) { + resourceLimitsBuilder_.dispose(); + resourceLimitsBuilder_ = null; + resourceLimits_ = other.resourceLimits_; + bitField0_ = (bitField0_ & ~0x00000001); + resourceLimitsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResourceLimitsFieldBuilder() + : null; + } else { + resourceLimitsBuilder_.addAllMessages(other.resourceLimits_); + } + } + } + if (other.autoscalingProfile_ != 0) { + setAutoscalingProfileValue(other.getAutoscalingProfileValue()); + } + if (other.hasAutoprovisioningNodePoolDefaults()) { + mergeAutoprovisioningNodePoolDefaults(other.getAutoprovisioningNodePoolDefaults()); + } + if (!other.autoprovisioningLocations_.isEmpty()) { + if (autoprovisioningLocations_.isEmpty()) { + autoprovisioningLocations_ = other.autoprovisioningLocations_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAutoprovisioningLocationsIsMutable(); + autoprovisioningLocations_.addAll(other.autoprovisioningLocations_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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(); + + break; + } // case 24 + case 34: + { + input.readMessage( + getAutoprovisioningNodePoolDefaultsFieldBuilder().getBuilder(), + extensionRegistry); + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Enables automatic node pool creation and deletion.
+     * 
+ * + * bool enable_node_autoprovisioning = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnableNodeAutoprovisioning() { + + enableNodeAutoprovisioning_ = false; + onChanged(); + return this; + } + + private java.util.List resourceLimits_ = + java.util.Collections.emptyList(); + + private void ensureResourceLimitsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + resourceLimits_ = + new java.util.ArrayList(resourceLimits_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.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_ & ~0x00000001); + 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_ & 0x00000001) != 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Defines autoscaling behaviour.
+     * 
+ * + * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * + * + * @return The autoscalingProfile. + */ + @java.lang.Override + public com.google.container.v1.ClusterAutoscaling.AutoscalingProfile getAutoscalingProfile() { + @SuppressWarnings("deprecation") + com.google.container.v1.ClusterAutoscaling.AutoscalingProfile result = + com.google.container.v1.ClusterAutoscaling.AutoscalingProfile.valueOf( + autoscalingProfile_); + return result == null + ? com.google.container.v1.ClusterAutoscaling.AutoscalingProfile.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Defines autoscaling behaviour.
+     * 
+ * + * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * + * + * @param value The autoscalingProfile to set. + * @return This builder for chaining. + */ + public Builder setAutoscalingProfile( + com.google.container.v1.ClusterAutoscaling.AutoscalingProfile value) { + if (value == null) { + throw new NullPointerException(); + } + + autoscalingProfile_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Defines autoscaling behaviour.
+     * 
+ * + * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * + * + * @return This builder for chaining. + */ + public Builder clearAutoscalingProfile() { + + autoscalingProfile_ = 0; + onChanged(); + return this; + } + + private com.google.container.v1.AutoprovisioningNodePoolDefaults + autoprovisioningNodePoolDefaults_; + private com.google.protobuf.SingleFieldBuilderV3< + 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 autoprovisioningNodePoolDefaultsBuilder_ != null + || autoprovisioningNodePoolDefaults_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + autoprovisioningNodePoolDefaultsBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + autoprovisioningNodePoolDefaultsBuilder_.setMessage(builderForValue.build()); + } + + 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 (autoprovisioningNodePoolDefaults_ != null) { + autoprovisioningNodePoolDefaults_ = + com.google.container.v1.AutoprovisioningNodePoolDefaults.newBuilder( + autoprovisioningNodePoolDefaults_) + .mergeFrom(value) + .buildPartial(); + } else { + autoprovisioningNodePoolDefaults_ = value; + } + onChanged(); + } else { + autoprovisioningNodePoolDefaultsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+     * created by NAP.
+     * 
+ * + * + * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * + */ + public Builder clearAutoprovisioningNodePoolDefaults() { + if (autoprovisioningNodePoolDefaultsBuilder_ == null) { + autoprovisioningNodePoolDefaults_ = null; + onChanged(); + } else { + autoprovisioningNodePoolDefaults_ = null; + autoprovisioningNodePoolDefaultsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+     * created by NAP.
+     * 
+ * + * + * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * + */ + public com.google.container.v1.AutoprovisioningNodePoolDefaults.Builder + getAutoprovisioningNodePoolDefaultsBuilder() { + + 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.LazyStringList autoprovisioningLocations_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAutoprovisioningLocationsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + autoprovisioningLocations_ = + new com.google.protobuf.LazyStringArrayList(autoprovisioningLocations_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes can be created by NAP.
+     * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @return A list containing the autoprovisioningLocations. + */ + public com.google.protobuf.ProtocolStringList getAutoprovisioningLocationsList() { + return autoprovisioningLocations_.getUnmodifiableView(); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes can be created by NAP.
+     * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @return The count of autoprovisioningLocations. + */ + public int getAutoprovisioningLocationsCount() { + return autoprovisioningLocations_.size(); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes can be created by NAP.
+     * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @param index The index of the element to return. + * @return The autoprovisioningLocations at the given index. + */ + public java.lang.String getAutoprovisioningLocations(int index) { + return autoprovisioningLocations_.get(index); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes can be created by NAP.
+     * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @param index The index of the value to return. + * @return The bytes of the autoprovisioningLocations at the given index. + */ + public com.google.protobuf.ByteString getAutoprovisioningLocationsBytes(int index) { + return autoprovisioningLocations_.getByteString(index); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes can be created by NAP.
+     * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @param index The index to set the value at. + * @param value The autoprovisioningLocations to set. + * @return This builder for chaining. + */ + public Builder setAutoprovisioningLocations(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAutoprovisioningLocationsIsMutable(); + autoprovisioningLocations_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes can be created by NAP.
+     * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @param value The autoprovisioningLocations to add. + * @return This builder for chaining. + */ + public Builder addAutoprovisioningLocations(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAutoprovisioningLocationsIsMutable(); + autoprovisioningLocations_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes can be created by NAP.
+     * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @param values The autoprovisioningLocations to add. + * @return This builder for chaining. + */ + public Builder addAllAutoprovisioningLocations(java.lang.Iterable values) { + ensureAutoprovisioningLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, autoprovisioningLocations_); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes can be created by NAP.
+     * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @return This builder for chaining. + */ + public Builder clearAutoprovisioningLocations() { + autoprovisioningLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes can be created by NAP.
+     * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @param value The bytes of the autoprovisioningLocations to add. + * @return This builder for chaining. + */ + public Builder addAutoprovisioningLocationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAutoprovisioningLocationsIsMutable(); + autoprovisioningLocations_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..21b42e123253 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscalingOrBuilder.java @@ -0,0 +1,226 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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 new file mode 100644 index 000000000000..2349b43a22b4 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java @@ -0,0 +1,2259 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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=1464 + * @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=1477 + * @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=1477 + * @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.
+   * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + * + * @return Whether the releaseChannel field is set. + */ + boolean hasReleaseChannel(); + /** + * + * + *
+   * Release channel configuration.
+   * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + * + * @return The releaseChannel. + */ + com.google.container.v1.ReleaseChannel getReleaseChannel(); + /** + * + * + *
+   * Release channel configuration.
+   * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + */ + com.google.container.v1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder(); + + /** + * + * + *
+   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+   * policies.
+   * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + * + * @return Whether the workloadIdentityConfig field is set. + */ + boolean hasWorkloadIdentityConfig(); + /** + * + * + *
+   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+   * policies.
+   * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + * + * @return The workloadIdentityConfig. + */ + com.google.container.v1.WorkloadIdentityConfig getWorkloadIdentityConfig(); + /** + * + * + *
+   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+   * policies.
+   * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + */ + com.google.container.v1.WorkloadIdentityConfigOrBuilder getWorkloadIdentityConfigOrBuilder(); + + /** + * + * + *
+   * 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=1643 + * @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=1643 + * @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=1676 + * @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=1676 + * @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=1688 + * @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=1688 + * @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=1704 + * @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=1704 + * @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=1704 + * @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=1704 + * @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=1708 + * @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(); +} 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 new file mode 100644 index 000000000000..ca43182be390 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java @@ -0,0 +1,3296 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public 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_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_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_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_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_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_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_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_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_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_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_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_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_NotificationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NotificationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NotificationConfig_PubSub_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NotificationConfig_PubSub_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NotificationConfig_Filter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NotificationConfig_Filter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ConfidentialNodes_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ConfidentialNodes_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_UpgradeEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_UpgradeEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_UpgradeAvailableEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_UpgradeAvailableEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_SecurityBulletinEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_SecurityBulletinEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_Autopilot_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_Autopilot_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_LoggingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_LoggingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_LoggingComponentConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_LoggingComponentConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_MonitoringConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_MonitoringConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_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; + + 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\"\230\001\n\021NodeKubeletConfig\022\032\n\022cpu_manager_" + + "policy\030\001 \001(\t\0221\n\rcpu_cfs_quota\030\002 \001(\0132\032.go" + + "ogle.protobuf.BoolValue\022\034\n\024cpu_cfs_quota" + + "_period\030\003 \001(\t\022\026\n\016pod_pids_limit\030\004 \001(\003\"\324\013" + + "\n\nNodeConfig\022\024\n\014machine_type\030\001 \001(\t\022\024\n\014di" + + "sk_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(" + + "\0132-.google.container.v1.NodeConfig.Metad" + + "ataEntry\022\022\n\nimage_type\030\005 \001(\t\022;\n\006labels\030\006" + + " \003(\0132+.google.container.v1.NodeConfig.La" + + "belsEntry\022\027\n\017local_ssd_count\030\007 \001(\005\022\014\n\004ta" + + "gs\030\010 \003(\t\022\023\n\013preemptible\030\n \001(\010\022<\n\014acceler" + + "ators\030\013 \003(\0132&.google.container.v1.Accele" + + "ratorConfig\022\021\n\tdisk_type\030\014 \001(\t\022\030\n\020min_cp" + + "u_platform\030\r \001(\t\022M\n\030workload_metadata_co" + + "nfig\030\016 \001(\0132+.google.container.v1.Workloa" + + "dMetadataConfig\022.\n\006taints\030\017 \003(\0132\036.google" + + ".container.v1.NodeTaint\022:\n\016sandbox_confi" + + "g\030\021 \001(\0132\".google.container.v1.SandboxCon" + + "fig\022\022\n\nnode_group\030\022 \001(\t\022F\n\024reservation_a" + + "ffinity\030\023 \001(\0132(.google.container.v1.Rese" + + "rvationAffinity\022M\n\030shielded_instance_con" + + "fig\030\024 \001(\0132+.google.container.v1.Shielded" + + "InstanceConfig\022?\n\021linux_node_config\030\025 \001(" + + "\0132$.google.container.v1.LinuxNodeConfig\022" + + ">\n\016kubelet_config\030\026 \001(\0132&.google.contain" + + "er.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_mac" + + "hine_features\030\032 \001(\0132,.google.container.v" + + "1.AdvancedMachineFeatures\022.\n\005gvnic\030\035 \001(\013" + + "2\037.google.container.v1.VirtualNIC\022\014\n\004spo" + + "t\030 \001(\010\022B\n\022confidential_nodes\030# \001(\0132&.go" + + "ogle.container.v1.ConfidentialNodes\022L\n\017r" + + "esource_labels\030% \003(\01323.google.container." + + "v1.NodeConfig.ResourceLabelsEntry\022B\n\016log" + + "ging_config\030& \001(\0132*.google.container.v1." + + "NodePoolLoggingConfig\032/\n\rMetadataEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013Labels" + + "Entry\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\005val" + + "ue\030\002 \001(\t:\0028\001\"M\n\027AdvancedMachineFeatures\022" + + "\035\n\020threads_per_core\030\001 \001(\003H\000\210\001\001B\023\n\021_threa" + + "ds_per_core\"\376\003\n\021NodeNetworkConfig\022\035\n\020cre" + + "ate_pod_range\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\024enab" + + "le_private_nodes\030\t \001(\010H\000\210\001\001\022h\n\032network_p" + + "erformance_config\030\013 \001(\0132?.google.contain" + + "er.v1.NodeNetworkConfig.NetworkPerforman" + + "ceConfigH\001\210\001\001\032\324\001\n\030NetworkPerformanceConf" + + "ig\022n\n\033total_egress_bandwidth_tier\030\001 \001(\0162" + + "D.google.container.v1.NodeNetworkConfig." + + "NetworkPerformanceConfig.TierH\000\210\001\001\"(\n\004Ti" + + "er\022\024\n\020TIER_UNSPECIFIED\020\000\022\n\n\006TIER_1\020\001B\036\n\034" + + "_total_egress_bandwidth_tierB\027\n\025_enable_" + + "private_nodesB\035\n\033_network_performance_co" + + "nfig\"Y\n\026ShieldedInstanceConfig\022\032\n\022enable" + + "_secure_boot\030\001 \001(\010\022#\n\033enable_integrity_m" + + "onitoring\030\002 \001(\010\"k\n\rSandboxConfig\0225\n\004type" + + "\030\002 \001(\0162\'.google.container.v1.SandboxConf" + + "ig.Type\"#\n\004Type\022\017\n\013UNSPECIFIED\020\000\022\n\n\006GVIS" + + "OR\020\001\"\035\n\nGcfsConfig\022\017\n\007enabled\030\001 \001(\010\"\337\001\n\023" + + "ReservationAffinity\022O\n\030consume_reservati" + + "on_type\030\001 \001(\0162-.google.container.v1.Rese" + + "rvationAffinity.Type\022\013\n\003key\030\002 \001(\t\022\016\n\006val" + + "ues\030\003 \003(\t\"Z\n\004Type\022\017\n\013UNSPECIFIED\020\000\022\022\n\016NO" + + "_RESERVATION\020\001\022\023\n\017ANY_RESERVATION\020\002\022\030\n\024S" + + "PECIFIC_RESERVATION\020\003\"\271\001\n\tNodeTaint\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\0225\n\006effect\030\003 \001(\0162" + + "%.google.container.v1.NodeTaint.Effect\"Y" + + "\n\006Effect\022\026\n\022EFFECT_UNSPECIFIED\020\000\022\017\n\013NO_S" + + "CHEDULE\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.NodeTaint\"x\n\nNodeL" + + "abels\022;\n\006labels\030\001 \003(\0132+.google.container" + + ".v1.NodeLabels.LabelsEntry\032-\n\013LabelsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\016Re" + + "sourceLabels\022?\n\006labels\030\001 \003(\0132/.google.co" + + "ntainer.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\004tags\030\001 \003(\t\"\331\001\n\nMa" + + "sterAuth\022\024\n\010username\030\001 \001(\tB\002\030\001\022\024\n\010passwo" + + "rd\030\002 \001(\tB\002\030\001\022O\n\031client_certificate_confi" + + "g\030\003 \001(\0132,.google.container.v1.ClientCert" + + "ificateConfig\022\036\n\026cluster_ca_certificate\030" + + "d \001(\t\022\032\n\022client_certificate\030e \001(\t\022\022\n\ncli" + + "ent_key\030f \001(\t\";\n\027ClientCertificateConfig" + + "\022 \n\030issue_client_certificate\030\001 \001(\010\"\223\006\n\014A" + + "ddonsConfig\022C\n\023http_load_balancing\030\001 \001(\013" + + "2&.google.container.v1.HttpLoadBalancing" + + "\022Q\n\032horizontal_pod_autoscaling\030\002 \001(\0132-.g" + + "oogle.container.v1.HorizontalPodAutoscal" + + "ing\022J\n\024kubernetes_dashboard\030\003 \001(\0132(.goog" + + "le.container.v1.KubernetesDashboardB\002\030\001\022" + + "G\n\025network_policy_config\030\004 \001(\0132(.google." + + "container.v1.NetworkPolicyConfig\022=\n\020clou" + + "d_run_config\030\007 \001(\0132#.google.container.v1" + + ".CloudRunConfig\022=\n\020dns_cache_config\030\010 \001(" + + "\0132#.google.container.v1.DnsCacheConfig\022K" + + "\n\027config_connector_config\030\n \001(\0132*.google" + + ".container.v1.ConfigConnectorConfig\022d\n%g" + + "ce_persistent_disk_csi_driver_config\030\013 \001" + + "(\01325.google.container.v1.GcePersistentDi" + + "skCsiDriverConfig\022Y\n\037gcp_filestore_csi_d" + + "river_config\030\016 \001(\01320.google.container.v1" + + ".GcpFilestoreCsiDriverConfig\022J\n\027gke_back" + + "up_agent_config\030\020 \001(\0132).google.container" + + ".v1.GkeBackupAgentConfig\"%\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\"9\n&PrivateClu" + + "sterMasterGlobalAccessConfig\022\017\n\007enabled\030" + + "\001 \001(\010\"\305\002\n\024PrivateClusterConfig\022\034\n\024enable" + + "_private_nodes\030\001 \001(\010\022\037\n\027enable_private_e" + + "ndpoint\030\002 \001(\010\022\036\n\026master_ipv4_cidr_block\030" + + "\003 \001(\t\022\030\n\020private_endpoint\030\004 \001(\t\022\027\n\017publi" + + "c_endpoint\030\005 \001(\t\022\024\n\014peering_name\030\007 \001(\t\022`" + + "\n\033master_global_access_config\030\010 \001(\0132;.go" + + "ogle.container.v1.PrivateClusterMasterGl" + + "obalAccessConfig\022#\n\033private_endpoint_sub" + + "network\030\n \001(\t\"D\n\031AuthenticatorGroupsConf" + + "ig\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.co" + + "ntainer.v1.CloudRunConfig.LoadBalancerTy" + + "pe\"x\n\020LoadBalancerType\022\"\n\036LOAD_BALANCER_" + + "TYPE_UNSPECIFIED\020\000\022\037\n\033LOAD_BALANCER_TYPE" + + "_EXTERNAL\020\001\022\037\n\033LOAD_BALANCER_TYPE_INTERN" + + "AL\020\002\"(\n\025ConfigConnectorConfig\022\017\n\007enabled" + + "\030\001 \001(\010\"3\n GcePersistentDiskCsiDriverConf" + + "ig\022\017\n\007enabled\030\001 \001(\010\".\n\033GcpFilestoreCsiDr" + + "iverConfig\022\017\n\007enabled\030\001 \001(\010\"\'\n\024GkeBackup" + + "AgentConfig\022\017\n\007enabled\030\001 \001(\010\"\216\002\n\036MasterA" + + "uthorizedNetworksConfig\022\017\n\007enabled\030\001 \001(\010" + + "\022R\n\013cidr_blocks\030\002 \003(\0132=.google.container" + + ".v1.MasterAuthorizedNetworksConfig.CidrB" + + "lock\022,\n\037gcp_public_cidrs_access_enabled\030" + + "\003 \001(\010H\000\210\001\001\0325\n\tCidrBlock\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\007e" + + "nabled\030\001 \001(\010\"\221\001\n\rNetworkPolicy\022=\n\010provid" + + "er\030\001 \001(\0162+.google.container.v1.NetworkPo" + + "licy.Provider\022\017\n\007enabled\030\002 \001(\010\"0\n\010Provid" + + "er\022\030\n\024PROVIDER_UNSPECIFIED\020\000\022\n\n\006CALICO\020\001" + + "\"\343\001\n\023BinaryAuthorization\022\023\n\007enabled\030\001 \001(" + + "\010B\002\030\001\022P\n\017evaluation_mode\030\002 \001(\01627.google." + + "container.v1.BinaryAuthorization.Evaluat" + + "ionMode\"e\n\016EvaluationMode\022\037\n\033EVALUATION_" + + "MODE_UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022$\n PROJ" + + "ECT_SINGLETON_POLICY_ENFORCE\020\002\"\215\004\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\023tp" + + "u_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.contain" + + "er.v1.StackType\022=\n\020ipv6_access_type\030\021 \001(" + + "\0162#.google.container.v1.IPv6AccessType\"\207" + + "\031\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" + + "\013node_config\030\004 \001(\0132\037.google.container.v1" + + ".NodeConfigB\002\030\001\0224\n\013master_auth\030\005 \001(\0132\037.g" + + "oogle.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.c" + + "ontainer.v1.AddonsConfig\022\022\n\nsubnetwork\030\013" + + " \001(\t\0221\n\nnode_pools\030\014 \003(\0132\035.google.contai" + + "ner.v1.NodePool\022\021\n\tlocations\030\r \003(\t\022\037\n\027en" + + "able_kubernetes_alpha\030\016 \001(\010\022I\n\017resource_" + + "labels\030\017 \003(\01320.google.container.v1.Clust" + + "er.ResourceLabelsEntry\022\031\n\021label_fingerpr" + + "int\030\020 \001(\t\0224\n\013legacy_abac\030\022 \001(\0132\037.google." + + "container.v1.LegacyAbac\022:\n\016network_polic" + + "y\030\023 \001(\0132\".google.container.v1.NetworkPol" + + "icy\022E\n\024ip_allocation_policy\030\024 \001(\0132\'.goog" + + "le.container.v1.IPAllocationPolicy\022^\n!ma" + + "ster_authorized_networks_config\030\026 \001(\01323." + + "google.container.v1.MasterAuthorizedNetw" + + "orksConfig\022B\n\022maintenance_policy\030\027 \001(\0132&" + + ".google.container.v1.MaintenancePolicy\022F" + + "\n\024binary_authorization\030\030 \001(\0132(.google.co" + + "ntainer.v1.BinaryAuthorization\022<\n\013autosc" + + "aling\030\032 \001(\0132\'.google.container.v1.Cluste" + + "rAutoscaling\022:\n\016network_config\030\033 \001(\0132\".g" + + "oogle.container.v1.NetworkConfig\022K\n\033defa" + + "ult_max_pods_constraint\030\036 \001(\0132&.google.c" + + "ontainer.v1.MaxPodsConstraint\022T\n\034resourc" + + "e_usage_export_config\030! \001(\0132..google.con" + + "tainer.v1.ResourceUsageExportConfig\022S\n\033a" + + "uthenticator_groups_config\030\" \001(\0132..googl" + + "e.container.v1.AuthenticatorGroupsConfig" + + "\022I\n\026private_cluster_config\030% \001(\0132).googl" + + "e.container.v1.PrivateClusterConfig\022D\n\023d" + + "atabase_encryption\030& \001(\0132\'.google.contai" + + "ner.v1.DatabaseEncryption\022M\n\030vertical_po" + + "d_autoscaling\030\' \001(\0132+.google.container.v" + + "1.VerticalPodAutoscaling\022:\n\016shielded_nod" + + "es\030( \001(\0132\".google.container.v1.ShieldedN" + + "odes\022<\n\017release_channel\030) \001(\0132#.google.c" + + "ontainer.v1.ReleaseChannel\022M\n\030workload_i" + + "dentity_config\030+ \001(\0132+.google.container." + + "v1.WorkloadIdentityConfig\022@\n\021mesh_certif" + + "icates\030C \001(\0132%.google.container.v1.MeshC" + + "ertificates\022I\n\026cost_management_config\030- " + + "\001(\0132).google.container.v1.CostManagement" + + "Config\022D\n\023notification_config\0301 \001(\0132\'.go" + + "ogle.container.v1.NotificationConfig\022B\n\022" + + "confidential_nodes\0302 \001(\0132&.google.contai" + + "ner.v1.ConfidentialNodes\022K\n\027identity_ser" + + "vice_config\0306 \001(\0132*.google.container.v1." + + "IdentityServiceConfig\022\021\n\tself_link\030d \001(\t" + + "\022\020\n\004zone\030e \001(\tB\002\030\001\022\020\n\010endpoint\030f \001(\t\022\037\n\027" + + "initial_cluster_version\030g \001(\t\022\036\n\026current" + + "_master_version\030h \001(\t\022 \n\024current_node_ve" + + "rsion\030i \001(\tB\002\030\001\022\023\n\013create_time\030j \001(\t\0223\n\006" + + "status\030k \001(\0162#.google.container.v1.Clust" + + "er.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_i" + + "pv4_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_bloc" + + "k\030t \001(\t\0228\n\nconditions\030v \003(\0132$.google.con" + + "tainer.v1.StatusCondition\0222\n\tautopilot\030\200" + + "\001 \001(\0132\036.google.container.v1.Autopilot\022\020\n" + + "\002id\030\201\001 \001(\tB\003\340A\003\022G\n\022node_pool_defaults\030\203\001" + + " \001(\0132%.google.container.v1.NodePoolDefau" + + "ltsH\000\210\001\001\022;\n\016logging_config\030\204\001 \001(\0132\".goog" + + "le.container.v1.LoggingConfig\022A\n\021monitor" + + "ing_config\030\205\001 \001(\0132%.google.container.v1." + + "MonitoringConfig\022G\n\025node_pool_auto_confi" + + "g\030\210\001 \001(\0132\'.google.container.v1.NodePoolA" + + "utoConfig\0325\n\023ResourceLabelsEntry\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"w\n\006Status\022\026\n\022ST" + + "ATUS_UNSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007" + + "RUNNING\020\002\022\017\n\013RECONCILING\020\003\022\014\n\010STOPPING\020\004" + + "\022\t\n\005ERROR\020\005\022\014\n\010DEGRADED\020\006B\025\n\023_node_pool_" + + "defaults\"L\n\022NodePoolAutoConfig\0226\n\014networ" + + "k_tags\030\001 \001(\0132 .google.container.v1.Netwo" + + "rkTags\"Y\n\020NodePoolDefaults\022E\n\024node_confi" + + "g_defaults\030\001 \001(\0132\'.google.container.v1.N" + + "odeConfigDefaults\"\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.container.v1.NodePoolLoggingConf" + + "ig\"\243\025\n\rClusterUpdate\022\034\n\024desired_node_ver" + + "sion\030\004 \001(\t\022\"\n\032desired_monitoring_service" + + "\030\005 \001(\t\022@\n\025desired_addons_config\030\006 \001(\0132!." + + "google.container.v1.AddonsConfig\022\034\n\024desi" + + "red_node_pool_id\030\007 \001(\t\022\032\n\022desired_image_" + + "type\030\010 \001(\t\022L\n\033desired_database_encryptio" + + "n\030. \001(\0132\'.google.container.v1.DatabaseEn" + + "cryption\022U\n desired_workload_identity_co" + + "nfig\030/ \001(\0132+.google.container.v1.Workloa" + + "dIdentityConfig\022H\n\031desired_mesh_certific" + + "ates\030C \001(\0132%.google.container.v1.MeshCer" + + "tificates\022B\n\026desired_shielded_nodes\0300 \001(" + + "\0132\".google.container.v1.ShieldedNodes\022Q\n" + + "\036desired_cost_management_config\0301 \001(\0132)." + + "google.container.v1.CostManagementConfig" + + "\022:\n\022desired_dns_config\0305 \001(\0132\036.google.co" + + "ntainer.v1.DNSConfig\022O\n\035desired_node_poo" + + "l_autoscaling\030\t \001(\0132(.google.container.v" + + "1.NodePoolAutoscaling\022\031\n\021desired_locatio" + + "ns\030\n \003(\t\022f\n)desired_master_authorized_ne" + + "tworks_config\030\014 \001(\01323.google.container.v" + + "1.MasterAuthorizedNetworksConfig\022L\n\033desi" + + "red_cluster_autoscaling\030\017 \001(\0132\'.google.c" + + "ontainer.v1.ClusterAutoscaling\022N\n\034desire" + + "d_binary_authorization\030\020 \001(\0132(.google.co" + + "ntainer.v1.BinaryAuthorization\022\037\n\027desire" + + "d_logging_service\030\023 \001(\t\022\\\n$desired_resou" + + "rce_usage_export_config\030\025 \001(\0132..google.c" + + "ontainer.v1.ResourceUsageExportConfig\022U\n" + + " desired_vertical_pod_autoscaling\030\026 \001(\0132" + + "+.google.container.v1.VerticalPodAutosca" + + "ling\022Q\n\036desired_private_cluster_config\030\031" + + " \001(\0132).google.container.v1.PrivateCluste" + + "rConfig\022\\\n$desired_intra_node_visibility" + + "_config\030\032 \001(\0132..google.container.v1.Intr" + + "aNodeVisibilityConfig\022K\n\033desired_default" + + "_snat_status\030\034 \001(\0132&.google.container.v1" + + ".DefaultSnatStatus\022D\n\027desired_release_ch" + + "annel\030\037 \001(\0132#.google.container.v1.Releas" + + "eChannel\022Q\n\037desired_l4ilb_subsetting_con" + + "fig\030\' \001(\0132(.google.container.v1.ILBSubse" + + "ttingConfig\022H\n\031desired_datapath_provider" + + "\0302 \001(\0162%.google.container.v1.DatapathPro" + + "vider\022X\n\"desired_private_ipv6_google_acc" + + "ess\0303 \001(\0162,.google.container.v1.PrivateI" + + "Pv6GoogleAccess\022L\n\033desired_notification_" + + "config\0307 \001(\0132\'.google.container.v1.Notif" + + "icationConfig\022[\n#desired_authenticator_g" + + "roups_config\030? \001(\0132..google.container.v1" + + ".AuthenticatorGroupsConfig\022B\n\026desired_lo" + + "gging_config\030@ \001(\0132\".google.container.v1" + + ".LoggingConfig\022H\n\031desired_monitoring_con" + + "fig\030A \001(\0132%.google.container.v1.Monitori" + + "ngConfig\022S\n\037desired_identity_service_con" + + "fig\030B \001(\0132*.google.container.v1.Identity" + + "ServiceConfig\022Z\n#desired_service_externa" + + "l_ips_config\030< \001(\0132-.google.container.v1" + + ".ServiceExternalIPsConfig\022,\n\037desired_ena" + + "ble_private_endpoint\030G \001(\010H\000\210\001\001\022\036\n\026desir" + + "ed_master_version\030d \001(\t\022<\n\023desired_gcfs_" + + "config\030m \001(\0132\037.google.container.v1.GcfsC" + + "onfig\022T\n*desired_node_pool_auto_config_n" + + "etwork_tags\030n \001(\0132 .google.container.v1." + + "NetworkTags\022I\n\032desired_gateway_api_confi" + + "g\030r \001(\0132%.google.container.v1.GatewayAPI" + + "Config\022T\n desired_node_pool_logging_conf" + + "ig\030t \001(\0132*.google.container.v1.NodePoolL" + + "oggingConfigB\"\n _desired_enable_private_" + + "endpoint\"\361\007\n\tOperation\022\014\n\004name\030\001 \001(\t\022\020\n\004" + + "zone\030\002 \001(\tB\002\030\001\022;\n\016operation_type\030\003 \001(\0162#" + + ".google.container.v1.Operation.Type\0225\n\006s" + + "tatus\030\004 \001(\0162%.google.container.v1.Operat" + + "ion.Status\022\016\n\006detail\030\010 \001(\t\022\035\n\016status_mes" + + "sage\030\005 \001(\tB\005\030\001\340A\003\022\021\n\tself_link\030\006 \001(\t\022\023\n\013" + + "target_link\030\007 \001(\t\022\020\n\010location\030\t \001(\t\022\022\n\ns" + + "tart_time\030\n \001(\t\022\020\n\010end_time\030\013 \001(\t\022=\n\010pro" + + "gress\030\014 \001(\0132&.google.container.v1.Operat" + + "ionProgressB\003\340A\003\022D\n\022cluster_conditions\030\r" + + " \003(\0132$.google.container.v1.StatusConditi" + + "onB\002\030\001\022E\n\023nodepool_conditions\030\016 \003(\0132$.go" + + "ogle.container.v1.StatusConditionB\002\030\001\022!\n" + + "\005error\030\017 \001(\0132\022.google.rpc.Status\"R\n\006Stat" + + "us\022\026\n\022STATUS_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022" + + "\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\022\014\n\010ABORTING\020\004\"\375\002\n" + + "\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n\016CREATE_CL" + + "USTER\020\001\022\022\n\016DELETE_CLUSTER\020\002\022\022\n\016UPGRADE_M" + + "ASTER\020\003\022\021\n\rUPGRADE_NODES\020\004\022\022\n\016REPAIR_CLU" + + "STER\020\005\022\022\n\016UPDATE_CLUSTER\020\006\022\024\n\020CREATE_NOD" + + "E_POOL\020\007\022\024\n\020DELETE_NODE_POOL\020\010\022\034\n\030SET_NO" + + "DE_POOL_MANAGEMENT\020\t\022\025\n\021AUTO_REPAIR_NODE" + + "S\020\n\022\026\n\022AUTO_UPGRADE_NODES\020\013\022\016\n\nSET_LABEL" + + "S\020\014\022\023\n\017SET_MASTER_AUTH\020\r\022\026\n\022SET_NODE_POO" + + "L_SIZE\020\016\022\026\n\022SET_NETWORK_POLICY\020\017\022\032\n\026SET_" + + "MAINTENANCE_POLICY\020\020\"\273\002\n\021OperationProgre" + + "ss\022\014\n\004name\030\001 \001(\t\0225\n\006status\030\002 \001(\0162%.googl" + + "e.container.v1.Operation.Status\022>\n\007metri" + + "cs\030\003 \003(\0132-.google.container.v1.Operation" + + "Progress.Metric\0226\n\006stages\030\004 \003(\0132&.google" + + ".container.v1.OperationProgress\032i\n\006Metri" + + "c\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\tint_value\030\002 \001(\003H" + + "\000\022\026\n\014double_value\030\003 \001(\001H\000\022\026\n\014string_valu" + + "e\030\004 \001(\tH\000B\007\n\005value\"\204\001\n\024CreateClusterRequ" + + "est\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.containe" + + "r.v1.ClusterB\003\340A\002\022\016\n\006parent\030\005 \001(\t\"c\n\021Get" + + "ClusterRequest\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\340" + + "A\002\022\014\n\004name\030\005 \001(\t\"\344\007\n\025UpdateNodePoolReque" + + "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\030\n\014node_poo" + + "l_id\030\004 \001(\tB\002\030\001\022\031\n\014node_version\030\005 \001(\tB\003\340A" + + "\002\022\027\n\nimage_type\030\006 \001(\tB\003\340A\002\022\014\n\004name\030\010 \001(\t" + + "\022\021\n\tlocations\030\r \003(\t\022M\n\030workload_metadata" + + "_config\030\016 \001(\0132+.google.container.v1.Work" + + "loadMetadataConfig\022G\n\020upgrade_settings\030\017" + + " \001(\0132-.google.container.v1.NodePool.Upgr" + + "adeSettings\022.\n\004tags\030\020 \001(\0132 .google.conta" + + "iner.v1.NetworkTags\022/\n\006taints\030\021 \001(\0132\037.go" + + "ogle.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.contai" + + "ner.v1.LinuxNodeConfig\022>\n\016kubelet_config" + + "\030\024 \001(\0132&.google.container.v1.NodeKubelet" + + "Config\022C\n\023node_network_config\030\025 \001(\0132&.go" + + "ogle.container.v1.NodeNetworkConfig\0224\n\013g" + + "cfs_config\030\026 \001(\0132\037.google.container.v1.G" + + "cfsConfig\022B\n\022confidential_nodes\030\027 \001(\0132&.", + "google.container.v1.ConfidentialNodes\022.\n" + + "\005gvnic\030\035 \001(\0132\037.google.container.v1.Virtu" + + "alNIC\022B\n\016logging_config\030 \001(\0132*.google.c" + + "ontainer.v1.NodePoolLoggingConfig\022<\n\017res" + + "ource_labels\030! \001(\0132#.google.container.v1" + + ".ResourceLabels\"\315\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\022B\n\013autoscaling\030\005 \001" + + "(\0132(.google.container.v1.NodePoolAutosca" + + "lingB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\210\001\n\030SetLoggingSe" + + "rviceRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004" + + "zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\034" + + "\n\017logging_service\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\005 \001" + + "(\t\"\216\001\n\033SetMonitoringServiceRequest\022\026\n\npr" + + "oject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\n" + + "cluster_id\030\003 \001(\tB\002\030\001\022\037\n\022monitoring_servi" + + "ce\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\247\001\n\026SetAddon" + + "sConfigRequest\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.contain" + + "er.v1.AddonsConfigB\003\340A\002\022\014\n\004name\030\006 \001(\t\"}\n" + + "\023SetLocationsRequest\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\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\ncluste" + + "r_id\030\003 \001(\tB\002\030\001\022\033\n\016master_version\030\004 \001(\tB\003" + + "\340A\002\022\014\n\004name\030\007 \001(\t\"\265\002\n\024SetMasterAuthReque" + + "st\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\t" + + "B\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022E\n\006action\030\004" + + " \001(\01620.google.container.v1.SetMasterAuth" + + "Request.ActionB\003\340A\002\0224\n\006update\030\005 \001(\0132\037.go" + + "ogle.container.v1.MasterAuthB\003\340A\002\022\014\n\004nam" + + "e\030\007 \001(\t\"P\n\006Action\022\013\n\007UNKNOWN\020\000\022\020\n\014SET_PA" + + "SSWORD\020\001\022\025\n\021GENERATE_PASSWORD\020\002\022\020\n\014SET_U" + + "SERNAME\020\003\"f\n\024DeleteClusterRequest\022\026\n\npro" + + "ject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nc" + + "luster_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\004 \001(\t\"O\n\023Lis" + + "tClustersRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001" + + "\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\016\n\006parent\030\004 \001(\t\"]\n\024Li" + + "stClustersResponse\022.\n\010clusters\030\001 \003(\0132\034.g" + + "oogle.container.v1.Cluster\022\025\n\rmissing_zo" + + "nes\030\002 \003(\t\"g\n\023GetOperationRequest\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\005 \001(\t\"Q\n\025Li" + + "stOperationsRequest\022\026\n\nproject_id\030\001 \001(\tB" + + "\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\016\n\006parent\030\004 \001(\t\"j\n" + + "\026CancelOperationRequest\022\026\n\nproject_id\030\001 " + + "\001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\030\n\014operation_i" + + "d\030\003 \001(\tB\002\030\001\022\014\n\004name\030\004 \001(\t\"c\n\026ListOperati" + + "onsResponse\0222\n\noperations\030\001 \003(\0132\036.google" + + ".container.v1.Operation\022\025\n\rmissing_zones" + + "\030\002 \003(\t\"P\n\026GetServerConfigRequest\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\014\n\004na" + + "me\030\004 \001(\t\"\364\002\n\014ServerConfig\022\037\n\027default_clu" + + "ster_version\030\001 \001(\t\022\033\n\023valid_node_version" + + "s\030\003 \003(\t\022\032\n\022default_image_type\030\004 \001(\t\022\031\n\021v" + + "alid_image_types\030\005 \003(\t\022\035\n\025valid_master_v" + + "ersions\030\006 \003(\t\022H\n\010channels\030\t \003(\01326.google" + + ".container.v1.ServerConfig.ReleaseChanne" + + "lConfig\032\205\001\n\024ReleaseChannelConfig\022<\n\007chan" + + "nel\030\001 \001(\0162+.google.container.v1.ReleaseC" + + "hannel.Channel\022\027\n\017default_version\030\002 \001(\t\022" + + "\026\n\016valid_versions\030\004 \003(\t\"\240\001\n\025CreateNodePo" + + "olRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zon" + + "e\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\0225\n\tn" + + "ode_pool\030\004 \001(\0132\035.google.container.v1.Nod" + + "ePoolB\003\340A\002\022\016\n\006parent\030\006 \001(\t\"\201\001\n\025DeleteNod" + + "ePoolRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004" + + "zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\030" + + "\n\014node_pool_id\030\004 \001(\tB\002\030\001\022\014\n\004name\030\006 \001(\t\"h" + + "\n\024ListNodePoolsRequest\022\026\n\nproject_id\030\001 \001" + + "(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003" + + " \001(\tB\002\030\001\022\016\n\006parent\030\005 \001(\t\"~\n\022GetNodePoolR" + + "equest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002" + + " \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\030\n\014node" + + "_pool_id\030\004 \001(\tB\002\030\001\022\014\n\004name\030\006 \001(\t\"\237\003\n\021Blu" + + "eGreenSettings\022_\n\027standard_rollout_polic" + + "y\030\001 \001(\0132<.google.container.v1.BlueGreenS" + + "ettings.StandardRolloutPolicyH\000\022?\n\027node_" + + "pool_soak_duration\030\002 \001(\0132\031.google.protob" + + "uf.DurationH\001\210\001\001\032\271\001\n\025StandardRolloutPoli" + + "cy\022\032\n\020batch_percentage\030\001 \001(\002H\000\022\032\n\020batch_" + + "node_count\030\002 \001(\005H\000\022;\n\023batch_soak_duratio" + + "n\030\003 \001(\0132\031.google.protobuf.DurationH\001\210\001\001B" + + "\023\n\021update_batch_sizeB\026\n\024_batch_soak_dura" + + "tionB\020\n\016rollout_policyB\032\n\030_node_pool_soa" + + "k_duration\"\355\014\n\010NodePool\022\014\n\004name\030\001 \001(\t\022/\n" + + "\006config\030\002 \001(\0132\037.google.container.v1.Node" + + "Config\022\032\n\022initial_node_count\030\003 \001(\005\022\021\n\tlo" + + "cations\030\r \003(\t\022>\n\016network_config\030\016 \001(\0132&." + + "google.container.v1.NodeNetworkConfig\022\021\n" + + "\tself_link\030d \001(\t\022\017\n\007version\030e \001(\t\022\033\n\023ins" + + "tance_group_urls\030f \003(\t\0224\n\006status\030g \001(\0162$" + + ".google.container.v1.NodePool.Status\022\032\n\016" + + "status_message\030h \001(\tB\002\030\001\022=\n\013autoscaling\030" + + "\004 \001(\0132(.google.container.v1.NodePoolAuto" + + "scaling\0227\n\nmanagement\030\005 \001(\0132#.google.con" + + "tainer.v1.NodeManagement\022C\n\023max_pods_con" + + "straint\030\006 \001(\0132&.google.container.v1.MaxP" + + "odsConstraint\0228\n\nconditions\030i \003(\0132$.goog" + + "le.container.v1.StatusCondition\022\032\n\022pod_i" + + "pv4_cidr_size\030\007 \001(\005\022G\n\020upgrade_settings\030" + + "k \001(\0132-.google.container.v1.NodePool.Upg" + + "radeSettings\022B\n\013update_info\030m \001(\0132(.goog" + + "le.container.v1.NodePool.UpdateInfoB\003\340A\003" + + "\032\360\001\n\017UpgradeSettings\022\021\n\tmax_surge\030\001 \001(\005\022" + + "\027\n\017max_unavailable\030\002 \001(\005\022B\n\010strategy\030\003 \001" + + "(\0162+.google.container.v1.NodePoolUpdateS" + + "trategyH\000\210\001\001\022H\n\023blue_green_settings\030\004 \001(" + + "\0132&.google.container.v1.BlueGreenSetting" + + "sH\001\210\001\001B\013\n\t_strategyB\026\n\024_blue_green_setti" + + "ngs\032\210\004\n\nUpdateInfo\022O\n\017blue_green_info\030\001 " + + "\001(\01326.google.container.v1.NodePool.Updat" + + "eInfo.BlueGreenInfo\032\250\003\n\rBlueGreenInfo\022K\n" + + "\005phase\030\001 \001(\0162<.google.container.v1.NodeP" + + "ool.UpdateInfo.BlueGreenInfo.Phase\022 \n\030bl" + + "ue_instance_group_urls\030\002 \003(\t\022!\n\031green_in" + + "stance_group_urls\030\003 \003(\t\022%\n\035blue_pool_del" + + "etion_start_time\030\004 \001(\t\022\032\n\022green_pool_ver" + + "sion\030\005 \001(\t\"\301\001\n\005Phase\022\025\n\021PHASE_UNSPECIFIE" + + "D\020\000\022\022\n\016UPDATE_STARTED\020\001\022\027\n\023CREATING_GREE" + + "N_POOL\020\002\022\027\n\023CORDONING_BLUE_POOL\020\003\022\026\n\022DRA" + + "INING_BLUE_POOL\020\004\022\025\n\021NODE_POOL_SOAKING\020\005" + + "\022\026\n\022DELETING_BLUE_POOL\020\006\022\024\n\020ROLLBACK_STA" + + "RTED\020\007\"\201\001\n\006Status\022\026\n\022STATUS_UNSPECIFIED\020" + + "\000\022\020\n\014PROVISIONING\020\001\022\013\n\007RUNNING\020\002\022\026\n\022RUNN" + + "ING_WITH_ERROR\020\003\022\017\n\013RECONCILING\020\004\022\014\n\010STO" + + "PPING\020\005\022\t\n\005ERROR\020\006\"}\n\016NodeManagement\022\024\n\014" + + "auto_upgrade\030\001 \001(\010\022\023\n\013auto_repair\030\002 \001(\010\022" + + "@\n\017upgrade_options\030\n \001(\0132\'.google.contai" + + "ner.v1.AutoUpgradeOptions\"J\n\022AutoUpgrade" + + "Options\022\037\n\027auto_upgrade_start_time\030\001 \001(\t" + + "\022\023\n\013description\030\002 \001(\t\"e\n\021MaintenancePoli" + + "cy\0226\n\006window\030\001 \001(\0132&.google.container.v1" + + ".MaintenanceWindow\022\030\n\020resource_version\030\003" + + " \001(\t\"\366\002\n\021MaintenanceWindow\022O\n\030daily_main" + + "tenance_window\030\002 \001(\0132+.google.container." + + "v1.DailyMaintenanceWindowH\000\022D\n\020recurring" + + "_window\030\003 \001(\0132(.google.container.v1.Recu" + + "rringTimeWindowH\000\022a\n\026maintenance_exclusi" + + "ons\030\004 \003(\0132A.google.container.v1.Maintena" + + "nceWindow.MaintenanceExclusionsEntry\032]\n\032" + + "MaintenanceExclusionsEntry\022\013\n\003key\030\001 \001(\t\022" + + ".\n\005value\030\002 \001(\0132\037.google.container.v1.Tim" + + "eWindow:\0028\001B\010\n\006policy\"\320\001\n\nTimeWindow\022Y\n\035" + + "maintenance_exclusion_options\030\003 \001(\01320.go" + + "ogle.container.v1.MaintenanceExclusionOp" + + "tionsH\000\022.\n\nstart_time\030\001 \001(\0132\032.google.pro" + + "tobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.goog" + + "le.protobuf.TimestampB\t\n\007options\"\264\001\n\033Mai" + + "ntenanceExclusionOptions\022E\n\005scope\030\001 \001(\0162" + + "6.google.container.v1.MaintenanceExclusi" + + "onOptions.Scope\"N\n\005Scope\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\"Z\n\023RecurringTimeWindow\022/" + + "\n\006window\030\001 \001(\0132\037.google.container.v1.Tim" + + "eWindow\022\022\n\nrecurrence\030\002 \001(\t\">\n\026DailyMain" + + "tenanceWindow\022\022\n\nstart_time\030\002 \001(\t\022\020\n\010dur" + + "ation\030\003 \001(\t\"\306\001\n\034SetNodePoolManagementReq" + + "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\030\n\014node_p" + + "ool_id\030\004 \001(\tB\002\030\001\022<\n\nmanagement\030\005 \001(\0132#.g" + + "oogle.container.v1.NodeManagementB\003\340A\002\022\014" + + "\n\004name\030\007 \001(\t\"\233\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_i" + + "d\030\004 \001(\tB\002\030\001\022\027\n\nnode_count\030\005 \001(\005B\003\340A\002\022\014\n\004" + + "name\030\007 \001(\t\".\n\036CompleteNodePoolUpgradeReq" + + "uest\022\014\n\004name\030\001 \001(\t\"\237\001\n\036RollbackNodePoolU" + + "pgradeRequest\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\022" + + "\023\n\013respect_pdb\030\007 \001(\010\"J\n\025ListNodePoolsRes" + + "ponse\0221\n\nnode_pools\030\001 \003(\0132\035.google.conta" + + "iner.v1.NodePool\"\257\003\n\022ClusterAutoscaling\022" + + "$\n\034enable_node_autoprovisioning\030\001 \001(\010\022;\n" + + "\017resource_limits\030\002 \003(\0132\".google.containe" + + "r.v1.ResourceLimit\022W\n\023autoscaling_profil" + + "e\030\003 \001(\0162:.google.container.v1.ClusterAut" + + "oscaling.AutoscalingProfile\022b\n#autoprovi" + + "sioning_node_pool_defaults\030\004 \001(\01325.googl" + + "e.container.v1.AutoprovisioningNodePoolD" + + "efaults\022\"\n\032autoprovisioning_locations\030\005 " + + "\003(\t\"U\n\022AutoscalingProfile\022\027\n\023PROFILE_UNS" + + "PECIFIED\020\000\022\030\n\024OPTIMIZE_UTILIZATION\020\001\022\014\n\010" + + "BALANCED\020\002\"\230\003\n AutoprovisioningNodePoolD" + + "efaults\022\024\n\014oauth_scopes\030\001 \003(\t\022\027\n\017service" + + "_account\030\002 \001(\t\022G\n\020upgrade_settings\030\003 \001(\013" + + "2-.google.container.v1.NodePool.UpgradeS" + + "ettings\0227\n\nmanagement\030\004 \001(\0132#.google.con" + + "tainer.v1.NodeManagement\022\034\n\020min_cpu_plat" + + "form\030\005 \001(\tB\002\030\001\022\024\n\014disk_size_gb\030\006 \001(\005\022\021\n\t" + + "disk_type\030\007 \001(\t\022M\n\030shielded_instance_con" + + "fig\030\010 \001(\0132+.google.container.v1.Shielded" + + "InstanceConfig\022\031\n\021boot_disk_kms_key\030\t \001(" + + "\t\022\022\n\nimage_type\030\n \001(\t\"H\n\rResourceLimit\022\025" + + "\n\rresource_type\030\001 \001(\t\022\017\n\007minimum\030\002 \001(\003\022\017" + + "\n\007maximum\030\003 \001(\003\"\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\017autoprovisio" + + "ned\030\004 \001(\010\022P\n\017location_policy\030\005 \001(\01627.goo" + + "gle.container.v1.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\"\222\002\n\020SetLabelsR" + + "equest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002" + + " \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022W\n\017reso" + + "urce_labels\030\004 \003(\01329.google.container.v1." + + "SetLabelsRequest.ResourceLabelsEntryB\003\340A" + + "\002\022\036\n\021label_fingerprint\030\005 \001(\tB\003\340A\002\022\014\n\004nam" + + "e\030\007 \001(\t\0325\n\023ResourceLabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"|\n\024SetLegacyAbacR" + + "equest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002" + + " \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\024\n\007enab" + + "led\030\004 \001(\010B\003\340A\002\022\014\n\004name\030\006 \001(\t\"\204\001\n\026StartIP" + + "RotationRequest\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\nproj" + + "ect_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncl" + + "uster_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\007 \001(\t\"\303\001\n\021Acc" + + "eleratorConfig\022\031\n\021accelerator_count\030\001 \001(" + + "\003\022\030\n\020accelerator_type\030\002 \001(\t\022\032\n\022gpu_parti" + + "tion_size\030\003 \001(\t\022F\n\022gpu_sharing_config\030\005 " + + "\001(\0132%.google.container.v1.GPUSharingConf" + + "igH\000\210\001\001B\025\n\023_gpu_sharing_config\"\372\001\n\020GPUSh" + + "aringConfig\022\"\n\032max_shared_clients_per_gp" + + "u\030\001 \001(\003\022[\n\024gpu_sharing_strategy\030\002 \001(\01628." + + "google.container.v1.GPUSharingConfig.GPU" + + "SharingStrategyH\000\210\001\001\"L\n\022GPUSharingStrate" + + "gy\022$\n GPU_SHARING_STRATEGY_UNSPECIFIED\020\000" + + "\022\020\n\014TIME_SHARING\020\001B\027\n\025_gpu_sharing_strat" + + "egy\"\232\001\n\026WorkloadMetadataConfig\022>\n\004mode\030\002" + + " \001(\01620.google.container.v1.WorkloadMetad" + + "ataConfig.Mode\"@\n\004Mode\022\024\n\020MODE_UNSPECIFI" + + "ED\020\000\022\020\n\014GCE_METADATA\020\001\022\020\n\014GKE_METADATA\020\002" + + "\"\252\001\n\027SetNetworkPolicyRequest\022\026\n\nproject_" + + "id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluste" + + "r_id\030\003 \001(\tB\002\030\001\022?\n\016network_policy\030\004 \001(\0132\"" + + ".google.container.v1.NetworkPolicyB\003\340A\002\022" + + "\014\n\004name\030\006 \001(\t\"\271\001\n\033SetMaintenancePolicyRe" + + "quest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\021\n\004zone\030\002" + + " \001(\tB\003\340A\002\022\027\n\ncluster_id\030\003 \001(\tB\003\340A\002\022G\n\022ma" + + "intenance_policy\030\004 \001(\0132&.google.containe" + + "r.v1.MaintenancePolicyB\003\340A\002\022\014\n\004name\030\005 \001(" + + "\t\"\251\002\n\017StatusCondition\022;\n\004code\030\001 \001(\0162).go" + + "ogle.container.v1.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\"\235\001\n\004Code\022\013\n\007UNKNOW" + + "N\020\000\022\020\n\014GCE_STOCKOUT\020\001\022\037\n\033GKE_SERVICE_ACC" + + "OUNT_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_ERR" + + "OR\020\007\022\017\n\013CA_EXPIRING\020\t\"\237\004\n\rNetworkConfig\022" + + "\017\n\007network\030\001 \001(\t\022\022\n\nsubnetwork\030\002 \001(\t\022$\n\034" + + "enable_intra_node_visibility\030\005 \001(\010\022C\n\023de" + + "fault_snat_status\030\007 \001(\0132&.google.contain" + + "er.v1.DefaultSnatStatus\022\037\n\027enable_l4ilb_" + + "subsetting\030\n \001(\010\022@\n\021datapath_provider\030\013 " + + "\001(\0162%.google.container.v1.DatapathProvid" + + "er\022P\n\032private_ipv6_google_access\030\014 \001(\0162," + + ".google.container.v1.PrivateIPv6GoogleAc" + + "cess\0222\n\ndns_config\030\r \001(\0132\036.google.contai" + + "ner.v1.DNSConfig\022R\n\033service_external_ips" + + "_config\030\017 \001(\0132-.google.container.v1.Serv" + + "iceExternalIPsConfig\022A\n\022gateway_api_conf" + + "ig\030\020 \001(\0132%.google.container.v1.GatewayAP" + + "IConfig\"\274\001\n\020GatewayAPIConfig\022>\n\007channel\030" + + "\001 \001(\0162-.google.container.v1.GatewayAPICo" + + "nfig.Channel\"h\n\007Channel\022\027\n\023CHANNEL_UNSPE" + + "CIFIED\020\000\022\024\n\020CHANNEL_DISABLED\020\001\022\030\n\024CHANNE" + + "L_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\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\"@\n\026GetJSONWebK" + + "eysResponse\022&\n\004keys\030\001 \003(\0132\030.google.conta" + + "iner.v1.Jwk\"\216\001\n\016ReleaseChannel\022<\n\007channe" + + "l\030\001 \001(\0162+.google.container.v1.ReleaseCha" + + "nnel.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\024" + + "CostManagementConfig\022\017\n\007enabled\030\001 \001(\010\",\n" + + "\031IntraNodeVisibilityConfig\022\017\n\007enabled\030\001 " + + "\001(\010\"&\n\023ILBSubsettingConfig\022\017\n\007enabled\030\001 " + + "\001(\010\"\252\002\n\tDNSConfig\022<\n\013cluster_dns\030\001 \001(\0162\'" + + ".google.container.v1.DNSConfig.Provider\022" + + "B\n\021cluster_dns_scope\030\002 \001(\0162\'.google.cont" + + "ainer.v1.DNSConfig.DNSScope\022\032\n\022cluster_d" + + "ns_domain\030\003 \001(\t\"I\n\010Provider\022\030\n\024PROVIDER_" + + "UNSPECIFIED\020\000\022\024\n\020PLATFORM_DEFAULT\020\001\022\r\n\tC" + + "LOUD_DNS\020\002\"4\n\010DNSScope\022\031\n\025DNS_SCOPE_UNSP" + + "ECIFIED\020\000\022\r\n\tVPC_SCOPE\020\002\".\n\021MaxPodsConst" + + "raint\022\031\n\021max_pods_per_node\030\001 \001(\003\"/\n\026Work" + + "loadIdentityConfig\022\025\n\rworkload_pool\030\002 \001(" + + "\t\"(\n\025IdentityServiceConfig\022\017\n\007enabled\030\001 " + + "\001(\010\"K\n\020MeshCertificates\0227\n\023enable_certif" + + "icates\030\001 \001(\0132\032.google.protobuf.BoolValue" + + "\"\230\001\n\022DatabaseEncryption\022<\n\005state\030\002 \001(\0162-" + + ".google.container.v1.DatabaseEncryption." + + "State\022\020\n\010key_name\030\001 \001(\t\"2\n\005State\022\013\n\007UNKN" + + "OWN\020\000\022\r\n\tENCRYPTED\020\001\022\r\n\tDECRYPTED\020\002\"e\n\034L" + + "istUsableSubnetworksRequest\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\035ListUsableSubnetwo" + + "rksResponse\022:\n\013subnetworks\030\001 \003(\0132%.googl" + + "e.container.v1.UsableSubnetwork\022\027\n\017next_" + + "page_token\030\002 \001(\t\"\200\002\n\036UsableSubnetworkSec" + + "ondaryRange\022\022\n\nrange_name\030\001 \001(\t\022\025\n\rip_ci" + + "dr_range\030\002 \001(\t\022J\n\006status\030\003 \001(\0162:.google." + + "container.v1.UsableSubnetworkSecondaryRa" + + "nge.Status\"g\n\006Status\022\013\n\007UNKNOWN\020\000\022\n\n\006UNU" + + "SED\020\001\022\022\n\016IN_USE_SERVICE\020\002\022\030\n\024IN_USE_SHAR" + + "EABLE_POD\020\003\022\026\n\022IN_USE_MANAGED_POD\020\004\"\270\001\n\020" + + "UsableSubnetwork\022\022\n\nsubnetwork\030\001 \001(\t\022\017\n\007" + + "network\030\002 \001(\t\022\025\n\rip_cidr_range\030\003 \001(\t\022P\n\023" + + "secondary_ip_ranges\030\004 \003(\01323.google.conta" + + "iner.v1.UsableSubnetworkSecondaryRange\022\026" + + "\n\016status_message\030\005 \001(\t\"\355\002\n\031ResourceUsage" + + "ExportConfig\022`\n\024bigquery_destination\030\001 \001" + + "(\0132B.google.container.v1.ResourceUsageEx" + + "portConfig.BigQueryDestination\022&\n\036enable" + + "_network_egress_metering\030\002 \001(\010\022m\n\033consum" + + "ption_metering_config\030\003 \001(\0132H.google.con" + + "tainer.v1.ResourceUsageExportConfig.Cons" + + "umptionMeteringConfig\032)\n\023BigQueryDestina" + + "tion\022\022\n\ndataset_id\030\001 \001(\t\032,\n\031ConsumptionM" + + "eteringConfig\022\017\n\007enabled\030\001 \001(\010\")\n\026Vertic" + + "alPodAutoscaling\022\017\n\007enabled\030\001 \001(\010\"%\n\021Def" + + "aultSnatStatus\022\020\n\010disabled\030\001 \001(\010\" \n\rShie" + + "ldedNodes\022\017\n\007enabled\030\001 \001(\010\"\035\n\nVirtualNIC" + + "\022\017\n\007enabled\030\001 \001(\010\"\250\003\n\022NotificationConfig" + + "\022>\n\006pubsub\030\001 \001(\0132..google.container.v1.N" + + "otificationConfig.PubSub\032\212\001\n\006PubSub\022\017\n\007e" + + "nabled\030\001 \001(\010\022/\n\005topic\030\002 \001(\tB \372A\035\n\033pubsub" + + ".googleapis.com/Topic\022>\n\006filter\030\003 \001(\0132.." + + "google.container.v1.NotificationConfig.F" + + "ilter\032O\n\006Filter\022E\n\nevent_type\030\001 \003(\01621.go" + + "ogle.container.v1.NotificationConfig.Eve" + + "ntType\"t\n\tEventType\022\032\n\026EVENT_TYPE_UNSPEC" + + "IFIED\020\000\022\033\n\027UPGRADE_AVAILABLE_EVENT\020\001\022\021\n\r" + + "UPGRADE_EVENT\020\002\022\033\n\027SECURITY_BULLETIN_EVE" + + "NT\020\003\"$\n\021ConfidentialNodes\022\017\n\007enabled\030\001 \001" + + "(\010\"\337\001\n\014UpgradeEvent\022?\n\rresource_type\030\001 \001" + + "(\0162(.google.container.v1.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\"\271\001\n\025Upgrade" + + "AvailableEvent\022\017\n\007version\030\001 \001(\t\022?\n\rresou" + + "rce_type\030\002 \001(\0162(.google.container.v1.Upg" + + "radeResourceType\022<\n\017release_channel\030\003 \001(" + + "\0132#.google.container.v1.ReleaseChannel\022\020" + + "\n\010resource\030\004 \001(\t\"\236\002\n\025SecurityBulletinEve" + + "nt\022\036\n\026resource_type_affected\030\001 \001(\t\022\023\n\013bu" + + "lletin_id\030\002 \001(\t\022\017\n\007cve_ids\030\003 \003(\t\022\020\n\010seve" + + "rity\030\004 \001(\t\022\024\n\014bulletin_uri\030\005 \001(\t\022\031\n\021brie" + + "f_description\030\006 \001(\t\022!\n\031affected_supporte" + + "d_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\025ma" + + "nual_steps_required\030\n \001(\010\"\034\n\tAutopilot\022\017" + + "\n\007enabled\030\001 \001(\010\"V\n\rLoggingConfig\022E\n\020comp" + + "onent_config\030\001 \001(\0132+.google.container.v1" + + ".LoggingComponentConfig\"\357\001\n\026LoggingCompo" + + "nentConfig\022P\n\021enable_components\030\001 \003(\01625." + + "google.container.v1.LoggingComponentConf" + + "ig.Component\"\202\001\n\tComponent\022\031\n\025COMPONENT_" + + "UNSPECIFIED\020\000\022\025\n\021SYSTEM_COMPONENTS\020\001\022\r\n\t" + + "WORKLOADS\020\002\022\r\n\tAPISERVER\020\003\022\r\n\tSCHEDULER\020" + + "\004\022\026\n\022CONTROLLER_MANAGER\020\005\"\255\001\n\020Monitoring" + + "Config\022H\n\020component_config\030\001 \001(\0132..googl" + + "e.container.v1.MonitoringComponentConfig" + + "\022O\n\031managed_prometheus_config\030\002 \001(\0132,.go" + + "ogle.container.v1.ManagedPrometheusConfi" + + "g\"Z\n\025NodePoolLoggingConfig\022A\n\016variant_co" + + "nfig\030\001 \001(\0132).google.container.v1.Logging" + + "VariantConfig\"\237\001\n\024LoggingVariantConfig\022B" + + "\n\007variant\030\001 \001(\01621.google.container.v1.Lo" + + "ggingVariantConfig.Variant\"C\n\007Variant\022\027\n" + + "\023VARIANT_UNSPECIFIED\020\000\022\013\n\007DEFAULT\020\001\022\022\n\016M" + + "AX_THROUGHPUT\020\002\"\345\001\n\031MonitoringComponentC" + + "onfig\022S\n\021enable_components\030\001 \003(\01628.googl" + + "e.container.v1.MonitoringComponentConfig" + + ".Component\"s\n\tComponent\022\031\n\025COMPONENT_UNS" + + "PECIFIED\020\000\022\025\n\021SYSTEM_COMPONENTS\020\001\022\r\n\tAPI" + + "SERVER\020\003\022\r\n\tSCHEDULER\020\004\022\026\n\022CONTROLLER_MA" + + "NAGER\020\005\"*\n\027ManagedPrometheusConfig\022\017\n\007en" + + "abled\030\001 \001(\010*\306\001\n\027PrivateIPv6GoogleAccess\022" + + "*\n&PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIE" + + "D\020\000\022\'\n#PRIVATE_IPV6_GOOGLE_ACCESS_DISABL" + + "ED\020\001\022(\n$PRIVATE_IPV6_GOOGLE_ACCESS_TO_GO", + "OGLE\020\002\022,\n(PRIVATE_IPV6_GOOGLE_ACCESS_BID" + + "IRECTIONAL\020\003*W\n\023UpgradeResourceType\022%\n!U" + + "PGRADE_RESOURCE_TYPE_UNSPECIFIED\020\000\022\n\n\006MA" + + "STER\020\001\022\r\n\tNODE_POOL\020\002*a\n\020DatapathProvide" + + "r\022!\n\035DATAPATH_PROVIDER_UNSPECIFIED\020\000\022\023\n\017" + + "LEGACY_DATAPATH\020\001\022\025\n\021ADVANCED_DATAPATH\020\002" + + "*^\n\026NodePoolUpdateStrategy\022)\n%NODE_POOL_" + + "UPDATE_STRATEGY_UNSPECIFIED\020\000\022\016\n\nBLUE_GR" + + "EEN\020\002\022\t\n\005SURGE\020\003*@\n\tStackType\022\032\n\026STACK_T" + + "YPE_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\010EXTERNAL" + + "\020\0022\303G\n\016ClusterManager\022\350\001\n\014ListClusters\022(" + + ".google.container.v1.ListClustersRequest" + + "\032).google.container.v1.ListClustersRespo" + + "nse\"\202\001\202\323\344\223\002a\022,/v1/{parent=projects/*/loc" + + "ations/*}/clustersZ1\022//v1/projects/{proj" + + "ect_id}/zones/{zone}/clusters\332A\017project_" + + "id,zone\332A\006parent\022\355\001\n\nGetCluster\022&.google" + + ".container.v1.GetClusterRequest\032\034.google" + + ".container.v1.Cluster\"\230\001\202\323\344\223\002n\022,/v1/{nam" + + "e=projects/*/locations/*/clusters/*}Z>\022<" + + "/v1/projects/{project_id}/zones/{zone}/c" + + "lusters/{cluster_id}\332A\032project_id,zone,c" + + "luster_id\332A\004name\022\365\001\n\rCreateCluster\022).goo" + + "gle.container.v1.CreateClusterRequest\032\036." + + "google.container.v1.Operation\"\230\001\202\323\344\223\002g\"," + + "/v1/{parent=projects/*/locations/*}/clus" + + "ters:\001*Z4\"//v1/projects/{project_id}/zon" + + "es/{zone}/clusters:\001*\332A\027project_id,zone," + + "cluster\332A\016parent,cluster\022\211\002\n\rUpdateClust" + + "er\022).google.container.v1.UpdateClusterRe" + + "quest\032\036.google.container.v1.Operation\"\254\001" + + "\202\323\344\223\002t\032,/v1/{name=projects/*/locations/*" + + "/clusters/*}:\001*ZA\032*/v1/{name=projec" + + "ts/*/locations/*/clusters/*}:setResource" + + "Labels:\001*ZP\"K/v1/projects/{project_id}/z" + + "ones/{zone}/clusters/{cluster_id}/resour" + + "ceLabels:\001*\022\245\002\n\rSetLegacyAbac\022).google.c" + + "ontainer.v1.SetLegacyAbacRequest\032\036.googl" + + "e.container.v1.Operation\"\310\001\202\323\344\223\002\215\001\":/v1/" + + "{name=projects/*/locations/*/clusters/*}" + + ":setLegacyAbac:\001*ZL\"G/v1/projects/{proje" + + "ct_id}/zones/{zone}/clusters/{cluster_id" + + "}/legacyAbac:\001*\332A\"project_id,zone,cluste" + + "r_id,enabled\332A\014name,enabled\022\240\002\n\017StartIPR" + + "otation\022+.google.container.v1.StartIPRot" + + "ationRequest\032\036.google.container.v1.Opera" + + "tion\"\277\001\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.EMPTY; + desiredLoggingService_ = ""; + desiredDatapathProvider_ = 0; + desiredPrivateIpv6GoogleAccess_ = 0; + desiredMasterVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ClusterUpdate(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + public static final int DESIRED_NODE_VERSION_FIELD_NUMBER = 4; + private volatile java.lang.Object desiredNodeVersion_; + /** + * + * + *
+   * The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string desired_node_version = 4; + * + * @return The desiredNodeVersion. + */ + @java.lang.Override + public java.lang.String getDesiredNodeVersion() { + java.lang.Object ref = desiredNodeVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredNodeVersion_ = s; + return s; + } + } + /** + * + * + *
+   * The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string desired_node_version = 4; + * + * @return The bytes for desiredNodeVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDesiredNodeVersionBytes() { + java.lang.Object ref = desiredNodeVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + desiredNodeVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESIRED_MONITORING_SERVICE_FIELD_NUMBER = 5; + private volatile java.lang.Object desiredMonitoringService_; + /** + * + * + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+   * 
+ * + * string desired_monitoring_service = 5; + * + * @return The desiredMonitoringService. + */ + @java.lang.Override + public java.lang.String getDesiredMonitoringService() { + java.lang.Object ref = desiredMonitoringService_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredMonitoringService_ = s; + return s; + } + } + /** + * + * + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+   * 
+ * + * string desired_monitoring_service = 5; + * + * @return The bytes for desiredMonitoringService. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDesiredMonitoringServiceBytes() { + java.lang.Object ref = desiredMonitoringService_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + desiredMonitoringService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESIRED_ADDONS_CONFIG_FIELD_NUMBER = 6; + private com.google.container.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 desiredAddonsConfig_ != null; + } + /** + * + * + *
+   * 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 getDesiredAddonsConfig(); + } + + public static final int DESIRED_NODE_POOL_ID_FIELD_NUMBER = 7; + private volatile java.lang.Object desiredNodePoolId_; + /** + * + * + *
+   * The node pool to be upgraded. This field is mandatory if
+   * "desired_node_version", "desired_image_family" or
+   * "desired_node_pool_autoscaling" is specified and there is more than one
+   * node pool on the cluster.
+   * 
+ * + * string desired_node_pool_id = 7; + * + * @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; + 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 desiredDatabaseEncryption_ != null; + } + /** + * + * + *
+   * 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 getDesiredDatabaseEncryption(); + } + + public static final int DESIRED_WORKLOAD_IDENTITY_CONFIG_FIELD_NUMBER = 47; + private com.google.container.v1.WorkloadIdentityConfig desiredWorkloadIdentityConfig_; + /** + * + * + *
+   * Configuration for Workload Identity.
+   * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + * @return Whether the desiredWorkloadIdentityConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredWorkloadIdentityConfig() { + return desiredWorkloadIdentityConfig_ != null; + } + /** + * + * + *
+   * Configuration for Workload Identity.
+   * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + * @return The desiredWorkloadIdentityConfig. + */ + @java.lang.Override + public com.google.container.v1.WorkloadIdentityConfig getDesiredWorkloadIdentityConfig() { + return desiredWorkloadIdentityConfig_ == null + ? com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() + : desiredWorkloadIdentityConfig_; + } + /** + * + * + *
+   * Configuration for Workload Identity.
+   * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + */ + @java.lang.Override + public com.google.container.v1.WorkloadIdentityConfigOrBuilder + getDesiredWorkloadIdentityConfigOrBuilder() { + return getDesiredWorkloadIdentityConfig(); + } + + public static final int DESIRED_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 desiredMeshCertificates_ != null; + } + /** + * + * + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + * + * @return The desiredMeshCertificates. + */ + @java.lang.Override + public com.google.container.v1.MeshCertificates getDesiredMeshCertificates() { + return desiredMeshCertificates_ == null + ? com.google.container.v1.MeshCertificates.getDefaultInstance() + : desiredMeshCertificates_; + } + /** + * + * + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + */ + @java.lang.Override + public com.google.container.v1.MeshCertificatesOrBuilder getDesiredMeshCertificatesOrBuilder() { + return getDesiredMeshCertificates(); + } + + public static final int DESIRED_SHIELDED_NODES_FIELD_NUMBER = 48; + private com.google.container.v1.ShieldedNodes desiredShieldedNodes_; + /** + * + * + *
+   * Configuration for Shielded Nodes.
+   * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + * + * @return Whether the desiredShieldedNodes field is set. + */ + @java.lang.Override + public boolean hasDesiredShieldedNodes() { + return desiredShieldedNodes_ != null; + } + /** + * + * + *
+   * Configuration for Shielded Nodes.
+   * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + * + * @return The desiredShieldedNodes. + */ + @java.lang.Override + public com.google.container.v1.ShieldedNodes getDesiredShieldedNodes() { + return desiredShieldedNodes_ == null + ? com.google.container.v1.ShieldedNodes.getDefaultInstance() + : desiredShieldedNodes_; + } + /** + * + * + *
+   * Configuration for Shielded Nodes.
+   * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + */ + @java.lang.Override + public com.google.container.v1.ShieldedNodesOrBuilder getDesiredShieldedNodesOrBuilder() { + return getDesiredShieldedNodes(); + } + + public static final int DESIRED_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 desiredCostManagementConfig_ != null; + } + /** + * + * + *
+   * 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 getDesiredCostManagementConfig(); + } + + public static final int DESIRED_DNS_CONFIG_FIELD_NUMBER = 53; + private com.google.container.v1.DNSConfig desiredDnsConfig_; + /** + * + * + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + * + * @return Whether the desiredDnsConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredDnsConfig() { + return desiredDnsConfig_ != null; + } + /** + * + * + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + * + * @return The desiredDnsConfig. + */ + @java.lang.Override + public com.google.container.v1.DNSConfig getDesiredDnsConfig() { + return desiredDnsConfig_ == null + ? com.google.container.v1.DNSConfig.getDefaultInstance() + : desiredDnsConfig_; + } + /** + * + * + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + */ + @java.lang.Override + public com.google.container.v1.DNSConfigOrBuilder getDesiredDnsConfigOrBuilder() { + return getDesiredDnsConfig(); + } + + public static final int DESIRED_NODE_POOL_AUTOSCALING_FIELD_NUMBER = 9; + private com.google.container.v1.NodePoolAutoscaling desiredNodePoolAutoscaling_; + /** + * + * + *
+   * 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 desiredNodePoolAutoscaling_ != null; + } + /** + * + * + *
+   * Autoscaler configuration for the node pool specified in
+   * desired_node_pool_id. If there is only one pool in the
+   * cluster and desired_node_pool_id is not provided then
+   * the change applies to that single node pool.
+   * 
+ * + * .google.container.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 getDesiredNodePoolAutoscaling(); + } + + public static final int DESIRED_LOCATIONS_FIELD_NUMBER = 10; + private com.google.protobuf.LazyStringList desiredLocations_; + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This list must always include the cluster's primary zone.
+   * Warning: changing cluster locations will update the locations of all node
+   * pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string desired_locations = 10; + * + * @return A list containing the desiredLocations. + */ + public com.google.protobuf.ProtocolStringList getDesiredLocationsList() { + return desiredLocations_; + } + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This list must always include the cluster's primary zone.
+   * Warning: changing cluster locations will update the locations of all node
+   * pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string desired_locations = 10; + * + * @return The count of desiredLocations. + */ + public int getDesiredLocationsCount() { + return desiredLocations_.size(); + } + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This list must always include the cluster's primary zone.
+   * Warning: changing cluster locations will update the locations of all node
+   * pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string desired_locations = 10; + * + * @param index The index of the element to return. + * @return The desiredLocations at the given index. + */ + public java.lang.String getDesiredLocations(int index) { + return desiredLocations_.get(index); + } + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This list must always include the cluster's primary zone.
+   * Warning: changing cluster locations will update the locations of all node
+   * pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string desired_locations = 10; + * + * @param index The index of the value to return. + * @return The bytes of the desiredLocations at the given index. + */ + public com.google.protobuf.ByteString getDesiredLocationsBytes(int index) { + return desiredLocations_.getByteString(index); + } + + public static final int DESIRED_MASTER_AUTHORIZED_NETWORKS_CONFIG_FIELD_NUMBER = 12; + private com.google.container.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 desiredMasterAuthorizedNetworksConfig_ != null; + } + /** + * + * + *
+   * 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 getDesiredMasterAuthorizedNetworksConfig(); + } + + 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 desiredClusterAutoscaling_ != null; + } + /** + * + * + *
+   * 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 getDesiredClusterAutoscaling(); + } + + 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 desiredBinaryAuthorization_ != null; + } + /** + * + * + *
+   * 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 getDesiredBinaryAuthorization(); + } + + public static final int DESIRED_LOGGING_SERVICE_FIELD_NUMBER = 19; + private volatile java.lang.Object desiredLoggingService_; + /** + * + * + *
+   * The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
+   * * `none` - no logs will be exported from the cluster.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+   * 
+ * + * string desired_logging_service = 19; + * + * @return The desiredLoggingService. + */ + @java.lang.Override + public java.lang.String getDesiredLoggingService() { + java.lang.Object ref = desiredLoggingService_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredLoggingService_ = s; + return s; + } + } + /** + * + * + *
+   * The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
+   * * `none` - no logs will be exported from the cluster.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+   * 
+ * + * string desired_logging_service = 19; + * + * @return The bytes for desiredLoggingService. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDesiredLoggingServiceBytes() { + java.lang.Object ref = desiredLoggingService_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + desiredLoggingService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESIRED_RESOURCE_USAGE_EXPORT_CONFIG_FIELD_NUMBER = 21; + private com.google.container.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 desiredResourceUsageExportConfig_ != null; + } + /** + * + * + *
+   * 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 getDesiredResourceUsageExportConfig(); + } + + 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 desiredVerticalPodAutoscaling_ != null; + } + /** + * + * + *
+   * 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 getDesiredVerticalPodAutoscaling(); + } + + public static final int DESIRED_PRIVATE_CLUSTER_CONFIG_FIELD_NUMBER = 25; + private com.google.container.v1.PrivateClusterConfig desiredPrivateClusterConfig_; + /** + * + * + *
+   * The desired private cluster configuration.
+   * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + * + * @return Whether the desiredPrivateClusterConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredPrivateClusterConfig() { + return desiredPrivateClusterConfig_ != null; + } + /** + * + * + *
+   * The desired private cluster configuration.
+   * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + * + * @return The desiredPrivateClusterConfig. + */ + @java.lang.Override + public com.google.container.v1.PrivateClusterConfig getDesiredPrivateClusterConfig() { + return desiredPrivateClusterConfig_ == null + ? com.google.container.v1.PrivateClusterConfig.getDefaultInstance() + : desiredPrivateClusterConfig_; + } + /** + * + * + *
+   * The desired private cluster configuration.
+   * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + */ + @java.lang.Override + public com.google.container.v1.PrivateClusterConfigOrBuilder + getDesiredPrivateClusterConfigOrBuilder() { + return getDesiredPrivateClusterConfig(); + } + + public static final int DESIRED_INTRA_NODE_VISIBILITY_CONFIG_FIELD_NUMBER = 26; + private com.google.container.v1.IntraNodeVisibilityConfig desiredIntraNodeVisibilityConfig_; + /** + * + * + *
+   * 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 desiredIntraNodeVisibilityConfig_ != null; + } + /** + * + * + *
+   * 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 getDesiredIntraNodeVisibilityConfig(); + } + + public static final int DESIRED_DEFAULT_SNAT_STATUS_FIELD_NUMBER = 28; + private com.google.container.v1.DefaultSnatStatus desiredDefaultSnatStatus_; + /** + * + * + *
+   * The desired status of whether to disable default sNAT for this cluster.
+   * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + * + * @return Whether the desiredDefaultSnatStatus field is set. + */ + @java.lang.Override + public boolean hasDesiredDefaultSnatStatus() { + return desiredDefaultSnatStatus_ != null; + } + /** + * + * + *
+   * The desired status of whether to disable default sNAT for this cluster.
+   * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + * + * @return The desiredDefaultSnatStatus. + */ + @java.lang.Override + public com.google.container.v1.DefaultSnatStatus getDesiredDefaultSnatStatus() { + return desiredDefaultSnatStatus_ == null + ? com.google.container.v1.DefaultSnatStatus.getDefaultInstance() + : desiredDefaultSnatStatus_; + } + /** + * + * + *
+   * The desired status of whether to disable default sNAT for this cluster.
+   * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + */ + @java.lang.Override + public com.google.container.v1.DefaultSnatStatusOrBuilder getDesiredDefaultSnatStatusOrBuilder() { + return getDesiredDefaultSnatStatus(); + } + + public static final int DESIRED_RELEASE_CHANNEL_FIELD_NUMBER = 31; + private com.google.container.v1.ReleaseChannel desiredReleaseChannel_; + /** + * + * + *
+   * The desired release channel configuration.
+   * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + * + * @return Whether the desiredReleaseChannel field is set. + */ + @java.lang.Override + public boolean hasDesiredReleaseChannel() { + return desiredReleaseChannel_ != null; + } + /** + * + * + *
+   * The desired release channel configuration.
+   * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + * + * @return The desiredReleaseChannel. + */ + @java.lang.Override + public com.google.container.v1.ReleaseChannel getDesiredReleaseChannel() { + return desiredReleaseChannel_ == null + ? com.google.container.v1.ReleaseChannel.getDefaultInstance() + : desiredReleaseChannel_; + } + /** + * + * + *
+   * The desired release channel configuration.
+   * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + */ + @java.lang.Override + public com.google.container.v1.ReleaseChannelOrBuilder getDesiredReleaseChannelOrBuilder() { + return getDesiredReleaseChannel(); + } + + public static final int DESIRED_L4ILB_SUBSETTING_CONFIG_FIELD_NUMBER = 39; + private com.google.container.v1.ILBSubsettingConfig desiredL4IlbSubsettingConfig_; + /** + * + * + *
+   * The desired L4 Internal Load Balancer Subsetting configuration.
+   * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + * + * @return Whether the desiredL4ilbSubsettingConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredL4IlbSubsettingConfig() { + return desiredL4IlbSubsettingConfig_ != null; + } + /** + * + * + *
+   * The desired L4 Internal Load Balancer Subsetting configuration.
+   * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + * + * @return The desiredL4ilbSubsettingConfig. + */ + @java.lang.Override + public com.google.container.v1.ILBSubsettingConfig getDesiredL4IlbSubsettingConfig() { + return desiredL4IlbSubsettingConfig_ == null + ? com.google.container.v1.ILBSubsettingConfig.getDefaultInstance() + : desiredL4IlbSubsettingConfig_; + } + /** + * + * + *
+   * The desired L4 Internal Load Balancer Subsetting configuration.
+   * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + */ + @java.lang.Override + public com.google.container.v1.ILBSubsettingConfigOrBuilder + getDesiredL4IlbSubsettingConfigOrBuilder() { + return getDesiredL4IlbSubsettingConfig(); + } + + public static final int DESIRED_DATAPATH_PROVIDER_FIELD_NUMBER = 50; + private int desiredDatapathProvider_; + /** + * + * + *
+   * The desired datapath provider for the cluster.
+   * 
+ * + * .google.container.v1.DatapathProvider desired_datapath_provider = 50; + * + * @return The enum numeric value on the wire for desiredDatapathProvider. + */ + @java.lang.Override + public int getDesiredDatapathProviderValue() { + return desiredDatapathProvider_; + } + /** + * + * + *
+   * The desired datapath provider for the cluster.
+   * 
+ * + * .google.container.v1.DatapathProvider desired_datapath_provider = 50; + * + * @return The desiredDatapathProvider. + */ + @java.lang.Override + public com.google.container.v1.DatapathProvider getDesiredDatapathProvider() { + @SuppressWarnings("deprecation") + com.google.container.v1.DatapathProvider result = + com.google.container.v1.DatapathProvider.valueOf(desiredDatapathProvider_); + return result == null ? com.google.container.v1.DatapathProvider.UNRECOGNIZED : result; + } + + public static final int DESIRED_PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER = 51; + private int desiredPrivateIpv6GoogleAccess_; + /** + * + * + *
+   * The desired state of IPv6 connectivity to Google Services.
+   * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * + * + * @return The enum numeric value on the wire for desiredPrivateIpv6GoogleAccess. + */ + @java.lang.Override + public int getDesiredPrivateIpv6GoogleAccessValue() { + return desiredPrivateIpv6GoogleAccess_; + } + /** + * + * + *
+   * The desired state of IPv6 connectivity to Google Services.
+   * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * + * + * @return The desiredPrivateIpv6GoogleAccess. + */ + @java.lang.Override + public com.google.container.v1.PrivateIPv6GoogleAccess getDesiredPrivateIpv6GoogleAccess() { + @SuppressWarnings("deprecation") + com.google.container.v1.PrivateIPv6GoogleAccess result = + com.google.container.v1.PrivateIPv6GoogleAccess.valueOf(desiredPrivateIpv6GoogleAccess_); + return result == null ? com.google.container.v1.PrivateIPv6GoogleAccess.UNRECOGNIZED : result; + } + + public static final int DESIRED_NOTIFICATION_CONFIG_FIELD_NUMBER = 55; + private com.google.container.v1.NotificationConfig desiredNotificationConfig_; + /** + * + * + *
+   * The desired notification configuration.
+   * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + * + * @return Whether the desiredNotificationConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredNotificationConfig() { + return desiredNotificationConfig_ != null; + } + /** + * + * + *
+   * The desired notification configuration.
+   * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + * + * @return The desiredNotificationConfig. + */ + @java.lang.Override + public com.google.container.v1.NotificationConfig getDesiredNotificationConfig() { + return desiredNotificationConfig_ == null + ? com.google.container.v1.NotificationConfig.getDefaultInstance() + : desiredNotificationConfig_; + } + /** + * + * + *
+   * The desired notification configuration.
+   * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + */ + @java.lang.Override + public com.google.container.v1.NotificationConfigOrBuilder + getDesiredNotificationConfigOrBuilder() { + return getDesiredNotificationConfig(); + } + + public static final int DESIRED_AUTHENTICATOR_GROUPS_CONFIG_FIELD_NUMBER = 63; + private com.google.container.v1.AuthenticatorGroupsConfig desiredAuthenticatorGroupsConfig_; + /** + * + * + *
+   * 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 desiredAuthenticatorGroupsConfig_ != null; + } + /** + * + * + *
+   * 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 getDesiredAuthenticatorGroupsConfig(); + } + + 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 desiredLoggingConfig_ != null; + } + /** + * + * + *
+   * The desired logging configuration.
+   * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + * + * @return The desiredLoggingConfig. + */ + @java.lang.Override + public com.google.container.v1.LoggingConfig getDesiredLoggingConfig() { + return desiredLoggingConfig_ == null + ? com.google.container.v1.LoggingConfig.getDefaultInstance() + : desiredLoggingConfig_; + } + /** + * + * + *
+   * The desired logging configuration.
+   * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + */ + @java.lang.Override + public com.google.container.v1.LoggingConfigOrBuilder getDesiredLoggingConfigOrBuilder() { + return getDesiredLoggingConfig(); + } + + public static final int DESIRED_MONITORING_CONFIG_FIELD_NUMBER = 65; + private com.google.container.v1.MonitoringConfig desiredMonitoringConfig_; + /** + * + * + *
+   * The desired monitoring configuration.
+   * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + * + * @return Whether the desiredMonitoringConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredMonitoringConfig() { + return desiredMonitoringConfig_ != null; + } + /** + * + * + *
+   * The desired monitoring configuration.
+   * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + * + * @return The desiredMonitoringConfig. + */ + @java.lang.Override + public com.google.container.v1.MonitoringConfig getDesiredMonitoringConfig() { + return desiredMonitoringConfig_ == null + ? com.google.container.v1.MonitoringConfig.getDefaultInstance() + : desiredMonitoringConfig_; + } + /** + * + * + *
+   * The desired monitoring configuration.
+   * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + */ + @java.lang.Override + public com.google.container.v1.MonitoringConfigOrBuilder getDesiredMonitoringConfigOrBuilder() { + return getDesiredMonitoringConfig(); + } + + public static final int DESIRED_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 desiredIdentityServiceConfig_ != null; + } + /** + * + * + *
+   * 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 getDesiredIdentityServiceConfig(); + } + + public static final int DESIRED_SERVICE_EXTERNAL_IPS_CONFIG_FIELD_NUMBER = 60; + private com.google.container.v1.ServiceExternalIPsConfig desiredServiceExternalIpsConfig_; + /** + * + * + *
+   * ServiceExternalIPsConfig specifies the config for the use of Services with
+   * ExternalIPs field.
+   * 
+ * + * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + * + * + * @return Whether the desiredServiceExternalIpsConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredServiceExternalIpsConfig() { + return desiredServiceExternalIpsConfig_ != null; + } + /** + * + * + *
+   * ServiceExternalIPsConfig specifies the config for the use of Services with
+   * ExternalIPs field.
+   * 
+ * + * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + * + * + * @return The desiredServiceExternalIpsConfig. + */ + @java.lang.Override + public com.google.container.v1.ServiceExternalIPsConfig getDesiredServiceExternalIpsConfig() { + return desiredServiceExternalIpsConfig_ == null + ? com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance() + : desiredServiceExternalIpsConfig_; + } + /** + * + * + *
+   * ServiceExternalIPsConfig specifies the config for the use of Services with
+   * ExternalIPs field.
+   * 
+ * + * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + * + */ + @java.lang.Override + public com.google.container.v1.ServiceExternalIPsConfigOrBuilder + getDesiredServiceExternalIpsConfigOrBuilder() { + return getDesiredServiceExternalIpsConfig(); + } + + public static final int DESIRED_ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER = 71; + 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 ((bitField0_ & 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_; + } + + public static final int DESIRED_MASTER_VERSION_FIELD_NUMBER = 100; + private volatile java.lang.Object desiredMasterVersion_; + /** + * + * + *
+   * The Kubernetes version to change the master to.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
+   * 
+ * + * string desired_master_version = 100; + * + * @return The desiredMasterVersion. + */ + @java.lang.Override + public java.lang.String getDesiredMasterVersion() { + java.lang.Object ref = desiredMasterVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredMasterVersion_ = s; + return s; + } + } + /** + * + * + *
+   * 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 desiredGcfsConfig_ != null; + } + /** + * + * + *
+   * The desired GCFS config for the cluster
+   * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + * + * @return The desiredGcfsConfig. + */ + @java.lang.Override + public com.google.container.v1.GcfsConfig getDesiredGcfsConfig() { + return desiredGcfsConfig_ == null + ? com.google.container.v1.GcfsConfig.getDefaultInstance() + : desiredGcfsConfig_; + } + /** + * + * + *
+   * The desired GCFS config for the cluster
+   * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + */ + @java.lang.Override + public com.google.container.v1.GcfsConfigOrBuilder getDesiredGcfsConfigOrBuilder() { + return getDesiredGcfsConfig(); + } + + 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 desiredNodePoolAutoConfigNetworkTags_ != null; + } + /** + * + * + *
+   * 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 getDesiredNodePoolAutoConfigNetworkTags(); + } + + 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 desiredGatewayApiConfig_ != null; + } + /** + * + * + *
+   * 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 getDesiredGatewayApiConfig(); + } + + 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 desiredNodePoolLoggingConfig_ != null; + } + /** + * + * + *
+   * 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 getDesiredNodePoolLoggingConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 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 (desiredAddonsConfig_ != null) { + 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 (desiredNodePoolAutoscaling_ != null) { + output.writeMessage(9, getDesiredNodePoolAutoscaling()); + } + for (int i = 0; i < desiredLocations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, desiredLocations_.getRaw(i)); + } + if (desiredMasterAuthorizedNetworksConfig_ != null) { + output.writeMessage(12, getDesiredMasterAuthorizedNetworksConfig()); + } + if (desiredClusterAutoscaling_ != null) { + output.writeMessage(15, getDesiredClusterAutoscaling()); + } + if (desiredBinaryAuthorization_ != null) { + output.writeMessage(16, getDesiredBinaryAuthorization()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredLoggingService_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 19, desiredLoggingService_); + } + if (desiredResourceUsageExportConfig_ != null) { + output.writeMessage(21, getDesiredResourceUsageExportConfig()); + } + if (desiredVerticalPodAutoscaling_ != null) { + output.writeMessage(22, getDesiredVerticalPodAutoscaling()); + } + if (desiredPrivateClusterConfig_ != null) { + output.writeMessage(25, getDesiredPrivateClusterConfig()); + } + if (desiredIntraNodeVisibilityConfig_ != null) { + output.writeMessage(26, getDesiredIntraNodeVisibilityConfig()); + } + if (desiredDefaultSnatStatus_ != null) { + output.writeMessage(28, getDesiredDefaultSnatStatus()); + } + if (desiredReleaseChannel_ != null) { + output.writeMessage(31, getDesiredReleaseChannel()); + } + if (desiredL4IlbSubsettingConfig_ != null) { + output.writeMessage(39, getDesiredL4IlbSubsettingConfig()); + } + if (desiredDatabaseEncryption_ != null) { + output.writeMessage(46, getDesiredDatabaseEncryption()); + } + if (desiredWorkloadIdentityConfig_ != null) { + output.writeMessage(47, getDesiredWorkloadIdentityConfig()); + } + if (desiredShieldedNodes_ != null) { + output.writeMessage(48, getDesiredShieldedNodes()); + } + if (desiredCostManagementConfig_ != null) { + 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 (desiredDnsConfig_ != null) { + output.writeMessage(53, getDesiredDnsConfig()); + } + if (desiredNotificationConfig_ != null) { + output.writeMessage(55, getDesiredNotificationConfig()); + } + if (desiredServiceExternalIpsConfig_ != null) { + output.writeMessage(60, getDesiredServiceExternalIpsConfig()); + } + if (desiredAuthenticatorGroupsConfig_ != null) { + output.writeMessage(63, getDesiredAuthenticatorGroupsConfig()); + } + if (desiredLoggingConfig_ != null) { + output.writeMessage(64, getDesiredLoggingConfig()); + } + if (desiredMonitoringConfig_ != null) { + output.writeMessage(65, getDesiredMonitoringConfig()); + } + if (desiredIdentityServiceConfig_ != null) { + output.writeMessage(66, getDesiredIdentityServiceConfig()); + } + if (desiredMeshCertificates_ != null) { + output.writeMessage(67, getDesiredMeshCertificates()); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(71, desiredEnablePrivateEndpoint_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredMasterVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, desiredMasterVersion_); + } + if (desiredGcfsConfig_ != null) { + output.writeMessage(109, getDesiredGcfsConfig()); + } + if (desiredNodePoolAutoConfigNetworkTags_ != null) { + output.writeMessage(110, getDesiredNodePoolAutoConfigNetworkTags()); + } + if (desiredGatewayApiConfig_ != null) { + output.writeMessage(114, getDesiredGatewayApiConfig()); + } + if (desiredNodePoolLoggingConfig_ != null) { + output.writeMessage(116, getDesiredNodePoolLoggingConfig()); + } + getUnknownFields().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 (desiredAddonsConfig_ != null) { + 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 (desiredNodePoolAutoscaling_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, getDesiredNodePoolAutoscaling()); + } + { + int dataSize = 0; + for (int i = 0; i < desiredLocations_.size(); i++) { + dataSize += computeStringSizeNoTag(desiredLocations_.getRaw(i)); + } + size += dataSize; + size += 1 * getDesiredLocationsList().size(); + } + if (desiredMasterAuthorizedNetworksConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, getDesiredMasterAuthorizedNetworksConfig()); + } + if (desiredClusterAutoscaling_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 15, getDesiredClusterAutoscaling()); + } + if (desiredBinaryAuthorization_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 16, getDesiredBinaryAuthorization()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredLoggingService_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, desiredLoggingService_); + } + if (desiredResourceUsageExportConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 21, getDesiredResourceUsageExportConfig()); + } + if (desiredVerticalPodAutoscaling_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 22, getDesiredVerticalPodAutoscaling()); + } + if (desiredPrivateClusterConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 25, getDesiredPrivateClusterConfig()); + } + if (desiredIntraNodeVisibilityConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 26, getDesiredIntraNodeVisibilityConfig()); + } + if (desiredDefaultSnatStatus_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 28, getDesiredDefaultSnatStatus()); + } + if (desiredReleaseChannel_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(31, getDesiredReleaseChannel()); + } + if (desiredL4IlbSubsettingConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 39, getDesiredL4IlbSubsettingConfig()); + } + if (desiredDatabaseEncryption_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 46, getDesiredDatabaseEncryption()); + } + if (desiredWorkloadIdentityConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 47, getDesiredWorkloadIdentityConfig()); + } + if (desiredShieldedNodes_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(48, getDesiredShieldedNodes()); + } + if (desiredCostManagementConfig_ != null) { + 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 (desiredDnsConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(53, getDesiredDnsConfig()); + } + if (desiredNotificationConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 55, getDesiredNotificationConfig()); + } + if (desiredServiceExternalIpsConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 60, getDesiredServiceExternalIpsConfig()); + } + if (desiredAuthenticatorGroupsConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 63, getDesiredAuthenticatorGroupsConfig()); + } + if (desiredLoggingConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(64, getDesiredLoggingConfig()); + } + if (desiredMonitoringConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 65, getDesiredMonitoringConfig()); + } + if (desiredIdentityServiceConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 66, getDesiredIdentityServiceConfig()); + } + if (desiredMeshCertificates_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 67, getDesiredMeshCertificates()); + } + if (((bitField0_ & 0x00000001) != 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 (desiredGcfsConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(109, getDesiredGcfsConfig()); + } + if (desiredNodePoolAutoConfigNetworkTags_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 110, getDesiredNodePoolAutoConfigNetworkTags()); + } + if (desiredGatewayApiConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 114, getDesiredGatewayApiConfig()); + } + if (desiredNodePoolLoggingConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 116, getDesiredNodePoolLoggingConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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 (hasDesiredNodePoolLoggingConfig() != other.hasDesiredNodePoolLoggingConfig()) return false; + if (hasDesiredNodePoolLoggingConfig()) { + if (!getDesiredNodePoolLoggingConfig().equals(other.getDesiredNodePoolLoggingConfig())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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(); + } + if (hasDesiredNodePoolLoggingConfig()) { + hash = (37 * hash) + DESIRED_NODE_POOL_LOGGING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredNodePoolLoggingConfig().hashCode(); + } + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + desiredNodeVersion_ = ""; + + desiredMonitoringService_ = ""; + + if (desiredAddonsConfigBuilder_ == null) { + desiredAddonsConfig_ = null; + } else { + desiredAddonsConfig_ = null; + desiredAddonsConfigBuilder_ = null; + } + desiredNodePoolId_ = ""; + + desiredImageType_ = ""; + + if (desiredDatabaseEncryptionBuilder_ == null) { + desiredDatabaseEncryption_ = null; + } else { + desiredDatabaseEncryption_ = null; + desiredDatabaseEncryptionBuilder_ = null; + } + if (desiredWorkloadIdentityConfigBuilder_ == null) { + desiredWorkloadIdentityConfig_ = null; + } else { + desiredWorkloadIdentityConfig_ = null; + desiredWorkloadIdentityConfigBuilder_ = null; + } + if (desiredMeshCertificatesBuilder_ == null) { + desiredMeshCertificates_ = null; + } else { + desiredMeshCertificates_ = null; + desiredMeshCertificatesBuilder_ = null; + } + if (desiredShieldedNodesBuilder_ == null) { + desiredShieldedNodes_ = null; + } else { + desiredShieldedNodes_ = null; + desiredShieldedNodesBuilder_ = null; + } + if (desiredCostManagementConfigBuilder_ == null) { + desiredCostManagementConfig_ = null; + } else { + desiredCostManagementConfig_ = null; + desiredCostManagementConfigBuilder_ = null; + } + if (desiredDnsConfigBuilder_ == null) { + desiredDnsConfig_ = null; + } else { + desiredDnsConfig_ = null; + desiredDnsConfigBuilder_ = null; + } + if (desiredNodePoolAutoscalingBuilder_ == null) { + desiredNodePoolAutoscaling_ = null; + } else { + desiredNodePoolAutoscaling_ = null; + desiredNodePoolAutoscalingBuilder_ = null; + } + desiredLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + desiredMasterAuthorizedNetworksConfig_ = null; + } else { + desiredMasterAuthorizedNetworksConfig_ = null; + desiredMasterAuthorizedNetworksConfigBuilder_ = null; + } + if (desiredClusterAutoscalingBuilder_ == null) { + desiredClusterAutoscaling_ = null; + } else { + desiredClusterAutoscaling_ = null; + desiredClusterAutoscalingBuilder_ = null; + } + if (desiredBinaryAuthorizationBuilder_ == null) { + desiredBinaryAuthorization_ = null; + } else { + desiredBinaryAuthorization_ = null; + desiredBinaryAuthorizationBuilder_ = null; + } + desiredLoggingService_ = ""; + + if (desiredResourceUsageExportConfigBuilder_ == null) { + desiredResourceUsageExportConfig_ = null; + } else { + desiredResourceUsageExportConfig_ = null; + desiredResourceUsageExportConfigBuilder_ = null; + } + if (desiredVerticalPodAutoscalingBuilder_ == null) { + desiredVerticalPodAutoscaling_ = null; + } else { + desiredVerticalPodAutoscaling_ = null; + desiredVerticalPodAutoscalingBuilder_ = null; + } + if (desiredPrivateClusterConfigBuilder_ == null) { + desiredPrivateClusterConfig_ = null; + } else { + desiredPrivateClusterConfig_ = null; + desiredPrivateClusterConfigBuilder_ = null; + } + if (desiredIntraNodeVisibilityConfigBuilder_ == null) { + desiredIntraNodeVisibilityConfig_ = null; + } else { + desiredIntraNodeVisibilityConfig_ = null; + desiredIntraNodeVisibilityConfigBuilder_ = null; + } + if (desiredDefaultSnatStatusBuilder_ == null) { + desiredDefaultSnatStatus_ = null; + } else { + desiredDefaultSnatStatus_ = null; + desiredDefaultSnatStatusBuilder_ = null; + } + if (desiredReleaseChannelBuilder_ == null) { + desiredReleaseChannel_ = null; + } else { + desiredReleaseChannel_ = null; + desiredReleaseChannelBuilder_ = null; + } + if (desiredL4IlbSubsettingConfigBuilder_ == null) { + desiredL4IlbSubsettingConfig_ = null; + } else { + desiredL4IlbSubsettingConfig_ = null; + desiredL4IlbSubsettingConfigBuilder_ = null; + } + desiredDatapathProvider_ = 0; + + desiredPrivateIpv6GoogleAccess_ = 0; + + if (desiredNotificationConfigBuilder_ == null) { + desiredNotificationConfig_ = null; + } else { + desiredNotificationConfig_ = null; + desiredNotificationConfigBuilder_ = null; + } + if (desiredAuthenticatorGroupsConfigBuilder_ == null) { + desiredAuthenticatorGroupsConfig_ = null; + } else { + desiredAuthenticatorGroupsConfig_ = null; + desiredAuthenticatorGroupsConfigBuilder_ = null; + } + if (desiredLoggingConfigBuilder_ == null) { + desiredLoggingConfig_ = null; + } else { + desiredLoggingConfig_ = null; + desiredLoggingConfigBuilder_ = null; + } + if (desiredMonitoringConfigBuilder_ == null) { + desiredMonitoringConfig_ = null; + } else { + desiredMonitoringConfig_ = null; + desiredMonitoringConfigBuilder_ = null; + } + if (desiredIdentityServiceConfigBuilder_ == null) { + desiredIdentityServiceConfig_ = null; + } else { + desiredIdentityServiceConfig_ = null; + desiredIdentityServiceConfigBuilder_ = null; + } + if (desiredServiceExternalIpsConfigBuilder_ == null) { + desiredServiceExternalIpsConfig_ = null; + } else { + desiredServiceExternalIpsConfig_ = null; + desiredServiceExternalIpsConfigBuilder_ = null; + } + desiredEnablePrivateEndpoint_ = false; + bitField0_ = (bitField0_ & ~0x00000002); + desiredMasterVersion_ = ""; + + if (desiredGcfsConfigBuilder_ == null) { + desiredGcfsConfig_ = null; + } else { + desiredGcfsConfig_ = null; + desiredGcfsConfigBuilder_ = null; + } + if (desiredNodePoolAutoConfigNetworkTagsBuilder_ == null) { + desiredNodePoolAutoConfigNetworkTags_ = null; + } else { + desiredNodePoolAutoConfigNetworkTags_ = null; + desiredNodePoolAutoConfigNetworkTagsBuilder_ = null; + } + if (desiredGatewayApiConfigBuilder_ == null) { + desiredGatewayApiConfig_ = null; + } else { + desiredGatewayApiConfig_ = null; + desiredGatewayApiConfigBuilder_ = null; + } + if (desiredNodePoolLoggingConfigBuilder_ == null) { + desiredNodePoolLoggingConfig_ = null; + } else { + desiredNodePoolLoggingConfig_ = null; + desiredNodePoolLoggingConfigBuilder_ = null; + } + 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); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.desiredNodeVersion_ = desiredNodeVersion_; + result.desiredMonitoringService_ = desiredMonitoringService_; + if (desiredAddonsConfigBuilder_ == null) { + result.desiredAddonsConfig_ = desiredAddonsConfig_; + } else { + result.desiredAddonsConfig_ = desiredAddonsConfigBuilder_.build(); + } + result.desiredNodePoolId_ = desiredNodePoolId_; + result.desiredImageType_ = desiredImageType_; + if (desiredDatabaseEncryptionBuilder_ == null) { + result.desiredDatabaseEncryption_ = desiredDatabaseEncryption_; + } else { + result.desiredDatabaseEncryption_ = desiredDatabaseEncryptionBuilder_.build(); + } + if (desiredWorkloadIdentityConfigBuilder_ == null) { + result.desiredWorkloadIdentityConfig_ = desiredWorkloadIdentityConfig_; + } else { + result.desiredWorkloadIdentityConfig_ = desiredWorkloadIdentityConfigBuilder_.build(); + } + if (desiredMeshCertificatesBuilder_ == null) { + result.desiredMeshCertificates_ = desiredMeshCertificates_; + } else { + result.desiredMeshCertificates_ = desiredMeshCertificatesBuilder_.build(); + } + if (desiredShieldedNodesBuilder_ == null) { + result.desiredShieldedNodes_ = desiredShieldedNodes_; + } else { + result.desiredShieldedNodes_ = desiredShieldedNodesBuilder_.build(); + } + if (desiredCostManagementConfigBuilder_ == null) { + result.desiredCostManagementConfig_ = desiredCostManagementConfig_; + } else { + result.desiredCostManagementConfig_ = desiredCostManagementConfigBuilder_.build(); + } + if (desiredDnsConfigBuilder_ == null) { + result.desiredDnsConfig_ = desiredDnsConfig_; + } else { + result.desiredDnsConfig_ = desiredDnsConfigBuilder_.build(); + } + if (desiredNodePoolAutoscalingBuilder_ == null) { + result.desiredNodePoolAutoscaling_ = desiredNodePoolAutoscaling_; + } else { + result.desiredNodePoolAutoscaling_ = desiredNodePoolAutoscalingBuilder_.build(); + } + if (((bitField0_ & 0x00000001) != 0)) { + desiredLocations_ = desiredLocations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.desiredLocations_ = desiredLocations_; + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + result.desiredMasterAuthorizedNetworksConfig_ = desiredMasterAuthorizedNetworksConfig_; + } else { + result.desiredMasterAuthorizedNetworksConfig_ = + desiredMasterAuthorizedNetworksConfigBuilder_.build(); + } + if (desiredClusterAutoscalingBuilder_ == null) { + result.desiredClusterAutoscaling_ = desiredClusterAutoscaling_; + } else { + result.desiredClusterAutoscaling_ = desiredClusterAutoscalingBuilder_.build(); + } + if (desiredBinaryAuthorizationBuilder_ == null) { + result.desiredBinaryAuthorization_ = desiredBinaryAuthorization_; + } else { + result.desiredBinaryAuthorization_ = desiredBinaryAuthorizationBuilder_.build(); + } + result.desiredLoggingService_ = desiredLoggingService_; + if (desiredResourceUsageExportConfigBuilder_ == null) { + result.desiredResourceUsageExportConfig_ = desiredResourceUsageExportConfig_; + } else { + result.desiredResourceUsageExportConfig_ = desiredResourceUsageExportConfigBuilder_.build(); + } + if (desiredVerticalPodAutoscalingBuilder_ == null) { + result.desiredVerticalPodAutoscaling_ = desiredVerticalPodAutoscaling_; + } else { + result.desiredVerticalPodAutoscaling_ = desiredVerticalPodAutoscalingBuilder_.build(); + } + if (desiredPrivateClusterConfigBuilder_ == null) { + result.desiredPrivateClusterConfig_ = desiredPrivateClusterConfig_; + } else { + result.desiredPrivateClusterConfig_ = desiredPrivateClusterConfigBuilder_.build(); + } + if (desiredIntraNodeVisibilityConfigBuilder_ == null) { + result.desiredIntraNodeVisibilityConfig_ = desiredIntraNodeVisibilityConfig_; + } else { + result.desiredIntraNodeVisibilityConfig_ = desiredIntraNodeVisibilityConfigBuilder_.build(); + } + if (desiredDefaultSnatStatusBuilder_ == null) { + result.desiredDefaultSnatStatus_ = desiredDefaultSnatStatus_; + } else { + result.desiredDefaultSnatStatus_ = desiredDefaultSnatStatusBuilder_.build(); + } + if (desiredReleaseChannelBuilder_ == null) { + result.desiredReleaseChannel_ = desiredReleaseChannel_; + } else { + result.desiredReleaseChannel_ = desiredReleaseChannelBuilder_.build(); + } + if (desiredL4IlbSubsettingConfigBuilder_ == null) { + result.desiredL4IlbSubsettingConfig_ = desiredL4IlbSubsettingConfig_; + } else { + result.desiredL4IlbSubsettingConfig_ = desiredL4IlbSubsettingConfigBuilder_.build(); + } + result.desiredDatapathProvider_ = desiredDatapathProvider_; + result.desiredPrivateIpv6GoogleAccess_ = desiredPrivateIpv6GoogleAccess_; + if (desiredNotificationConfigBuilder_ == null) { + result.desiredNotificationConfig_ = desiredNotificationConfig_; + } else { + result.desiredNotificationConfig_ = desiredNotificationConfigBuilder_.build(); + } + if (desiredAuthenticatorGroupsConfigBuilder_ == null) { + result.desiredAuthenticatorGroupsConfig_ = desiredAuthenticatorGroupsConfig_; + } else { + result.desiredAuthenticatorGroupsConfig_ = desiredAuthenticatorGroupsConfigBuilder_.build(); + } + if (desiredLoggingConfigBuilder_ == null) { + result.desiredLoggingConfig_ = desiredLoggingConfig_; + } else { + result.desiredLoggingConfig_ = desiredLoggingConfigBuilder_.build(); + } + if (desiredMonitoringConfigBuilder_ == null) { + result.desiredMonitoringConfig_ = desiredMonitoringConfig_; + } else { + result.desiredMonitoringConfig_ = desiredMonitoringConfigBuilder_.build(); + } + if (desiredIdentityServiceConfigBuilder_ == null) { + result.desiredIdentityServiceConfig_ = desiredIdentityServiceConfig_; + } else { + result.desiredIdentityServiceConfig_ = desiredIdentityServiceConfigBuilder_.build(); + } + if (desiredServiceExternalIpsConfigBuilder_ == null) { + result.desiredServiceExternalIpsConfig_ = desiredServiceExternalIpsConfig_; + } else { + result.desiredServiceExternalIpsConfig_ = desiredServiceExternalIpsConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.desiredEnablePrivateEndpoint_ = desiredEnablePrivateEndpoint_; + to_bitField0_ |= 0x00000001; + } + result.desiredMasterVersion_ = desiredMasterVersion_; + if (desiredGcfsConfigBuilder_ == null) { + result.desiredGcfsConfig_ = desiredGcfsConfig_; + } else { + result.desiredGcfsConfig_ = desiredGcfsConfigBuilder_.build(); + } + if (desiredNodePoolAutoConfigNetworkTagsBuilder_ == null) { + result.desiredNodePoolAutoConfigNetworkTags_ = desiredNodePoolAutoConfigNetworkTags_; + } else { + result.desiredNodePoolAutoConfigNetworkTags_ = + desiredNodePoolAutoConfigNetworkTagsBuilder_.build(); + } + if (desiredGatewayApiConfigBuilder_ == null) { + result.desiredGatewayApiConfig_ = desiredGatewayApiConfig_; + } else { + result.desiredGatewayApiConfig_ = desiredGatewayApiConfigBuilder_.build(); + } + if (desiredNodePoolLoggingConfigBuilder_ == null) { + result.desiredNodePoolLoggingConfig_ = desiredNodePoolLoggingConfig_; + } else { + result.desiredNodePoolLoggingConfig_ = desiredNodePoolLoggingConfigBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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_; + onChanged(); + } + if (!other.getDesiredMonitoringService().isEmpty()) { + desiredMonitoringService_ = other.desiredMonitoringService_; + onChanged(); + } + if (other.hasDesiredAddonsConfig()) { + mergeDesiredAddonsConfig(other.getDesiredAddonsConfig()); + } + if (!other.getDesiredNodePoolId().isEmpty()) { + desiredNodePoolId_ = other.desiredNodePoolId_; + onChanged(); + } + if (!other.getDesiredImageType().isEmpty()) { + desiredImageType_ = other.desiredImageType_; + onChanged(); + } + if (other.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_ = (bitField0_ & ~0x00000001); + } 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_; + 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_; + onChanged(); + } + if (other.hasDesiredGcfsConfig()) { + mergeDesiredGcfsConfig(other.getDesiredGcfsConfig()); + } + if (other.hasDesiredNodePoolAutoConfigNetworkTags()) { + mergeDesiredNodePoolAutoConfigNetworkTags(other.getDesiredNodePoolAutoConfigNetworkTags()); + } + if (other.hasDesiredGatewayApiConfig()) { + mergeDesiredGatewayApiConfig(other.getDesiredGatewayApiConfig()); + } + if (other.hasDesiredNodePoolLoggingConfig()) { + mergeDesiredNodePoolLoggingConfig(other.getDesiredNodePoolLoggingConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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(); + + break; + } // case 34 + case 42: + { + desiredMonitoringService_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + input.readMessage( + getDesiredAddonsConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 58: + { + desiredNodePoolId_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + desiredImageType_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: + { + input.readMessage( + getDesiredNodePoolAutoscalingFieldBuilder().getBuilder(), extensionRegistry); + + 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); + + break; + } // case 98 + case 122: + { + input.readMessage( + getDesiredClusterAutoscalingFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 122 + case 130: + { + input.readMessage( + getDesiredBinaryAuthorizationFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 130 + case 154: + { + desiredLoggingService_ = input.readStringRequireUtf8(); + + break; + } // case 154 + case 170: + { + input.readMessage( + getDesiredResourceUsageExportConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 170 + case 178: + { + input.readMessage( + getDesiredVerticalPodAutoscalingFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 178 + case 202: + { + input.readMessage( + getDesiredPrivateClusterConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 202 + case 210: + { + input.readMessage( + getDesiredIntraNodeVisibilityConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 210 + case 226: + { + input.readMessage( + getDesiredDefaultSnatStatusFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 226 + case 250: + { + input.readMessage( + getDesiredReleaseChannelFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 250 + case 314: + { + input.readMessage( + getDesiredL4IlbSubsettingConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 314 + case 370: + { + input.readMessage( + getDesiredDatabaseEncryptionFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 370 + case 378: + { + input.readMessage( + getDesiredWorkloadIdentityConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 378 + case 386: + { + input.readMessage( + getDesiredShieldedNodesFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 386 + case 394: + { + input.readMessage( + getDesiredCostManagementConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 394 + case 400: + { + desiredDatapathProvider_ = input.readEnum(); + + break; + } // case 400 + case 408: + { + desiredPrivateIpv6GoogleAccess_ = input.readEnum(); + + break; + } // case 408 + case 426: + { + input.readMessage( + getDesiredDnsConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 426 + case 442: + { + input.readMessage( + getDesiredNotificationConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 442 + case 482: + { + input.readMessage( + getDesiredServiceExternalIpsConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 482 + case 506: + { + input.readMessage( + getDesiredAuthenticatorGroupsConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 506 + case 514: + { + input.readMessage( + getDesiredLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 514 + case 522: + { + input.readMessage( + getDesiredMonitoringConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 522 + case 530: + { + input.readMessage( + getDesiredIdentityServiceConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 530 + case 538: + { + input.readMessage( + getDesiredMeshCertificatesFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 538 + case 568: + { + desiredEnablePrivateEndpoint_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 568 + case 802: + { + desiredMasterVersion_ = input.readStringRequireUtf8(); + + break; + } // case 802 + case 874: + { + input.readMessage( + getDesiredGcfsConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 874 + case 882: + { + input.readMessage( + getDesiredNodePoolAutoConfigNetworkTagsFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 882 + case 914: + { + input.readMessage( + getDesiredGatewayApiConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 914 + case 930: + { + input.readMessage( + getDesiredNodePoolLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 930 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // 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 desiredNodeVersion_ = ""; + /** + * + * + *
+     * The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string desired_node_version = 4; + * + * @return The desiredNodeVersion. + */ + public java.lang.String getDesiredNodeVersion() { + java.lang.Object ref = desiredNodeVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredNodeVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string desired_node_version = 4; + * + * @return The bytes for desiredNodeVersion. + */ + public com.google.protobuf.ByteString getDesiredNodeVersionBytes() { + java.lang.Object ref = desiredNodeVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + desiredNodeVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string desired_node_version = 4; + * + * @param value The desiredNodeVersion to set. + * @return This builder for chaining. + */ + public Builder setDesiredNodeVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + desiredNodeVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string desired_node_version = 4; + * + * @return This builder for chaining. + */ + public Builder clearDesiredNodeVersion() { + + desiredNodeVersion_ = getDefaultInstance().getDesiredNodeVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string desired_node_version = 4; + * + * @param value The bytes for desiredNodeVersion to set. + * @return This builder for chaining. + */ + public Builder setDesiredNodeVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + desiredNodeVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object desiredMonitoringService_ = ""; + /** + * + * + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string desired_monitoring_service = 5; + * + * @return The desiredMonitoringService. + */ + public java.lang.String getDesiredMonitoringService() { + java.lang.Object ref = desiredMonitoringService_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredMonitoringService_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string desired_monitoring_service = 5; + * + * @return The bytes for desiredMonitoringService. + */ + public com.google.protobuf.ByteString getDesiredMonitoringServiceBytes() { + java.lang.Object ref = desiredMonitoringService_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + desiredMonitoringService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string desired_monitoring_service = 5; + * + * @param value The desiredMonitoringService to set. + * @return This builder for chaining. + */ + public Builder setDesiredMonitoringService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + desiredMonitoringService_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string desired_monitoring_service = 5; + * + * @return This builder for chaining. + */ + public Builder clearDesiredMonitoringService() { + + desiredMonitoringService_ = getDefaultInstance().getDesiredMonitoringService(); + onChanged(); + return this; + } + /** + * + * + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string desired_monitoring_service = 5; + * + * @param value The bytes for desiredMonitoringService to set. + * @return This builder for chaining. + */ + public Builder setDesiredMonitoringServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + desiredMonitoringService_ = value; + onChanged(); + return this; + } + + private com.google.container.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 desiredAddonsConfigBuilder_ != null || desiredAddonsConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + desiredAddonsConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + desiredAddonsConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (desiredAddonsConfig_ != null) { + desiredAddonsConfig_ = + com.google.container.v1.AddonsConfig.newBuilder(desiredAddonsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredAddonsConfig_ = value; + } + onChanged(); + } else { + desiredAddonsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1.AddonsConfig desired_addons_config = 6; + */ + public Builder clearDesiredAddonsConfig() { + if (desiredAddonsConfigBuilder_ == null) { + desiredAddonsConfig_ = null; + onChanged(); + } else { + desiredAddonsConfig_ = null; + desiredAddonsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1.AddonsConfig desired_addons_config = 6; + */ + public com.google.container.v1.AddonsConfig.Builder getDesiredAddonsConfigBuilder() { + + 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; + 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(); + 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; + onChanged(); + return this; + } + + private java.lang.Object desiredImageType_ = ""; + /** + * + * + *
+     * The desired image type for the node pool.
+     * NOTE: Set the "desired_node_pool" field as well.
+     * 
+ * + * string desired_image_type = 8; + * + * @return The desiredImageType. + */ + public java.lang.String getDesiredImageType() { + java.lang.Object ref = desiredImageType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredImageType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The desired image type for the node pool.
+     * NOTE: Set the "desired_node_pool" field as well.
+     * 
+ * + * string desired_image_type = 8; + * + * @return The bytes for desiredImageType. + */ + public com.google.protobuf.ByteString getDesiredImageTypeBytes() { + java.lang.Object ref = desiredImageType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + desiredImageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The desired image type for the node pool.
+     * NOTE: Set the "desired_node_pool" field as well.
+     * 
+ * + * string desired_image_type = 8; + * + * @param value The desiredImageType to set. + * @return This builder for chaining. + */ + public Builder setDesiredImageType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + desiredImageType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The desired image type for the node pool.
+     * NOTE: Set the "desired_node_pool" field as well.
+     * 
+ * + * string desired_image_type = 8; + * + * @return This builder for chaining. + */ + public Builder clearDesiredImageType() { + + desiredImageType_ = getDefaultInstance().getDesiredImageType(); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired image type for the node pool.
+     * NOTE: Set the "desired_node_pool" field as well.
+     * 
+ * + * string desired_image_type = 8; + * + * @param value The bytes for desiredImageType to set. + * @return This builder for chaining. + */ + public Builder setDesiredImageTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + desiredImageType_ = value; + onChanged(); + return this; + } + + private com.google.container.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 desiredDatabaseEncryptionBuilder_ != null || desiredDatabaseEncryption_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + desiredDatabaseEncryptionBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + desiredDatabaseEncryptionBuilder_.setMessage(builderForValue.build()); + } + + 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 (desiredDatabaseEncryption_ != null) { + desiredDatabaseEncryption_ = + com.google.container.v1.DatabaseEncryption.newBuilder(desiredDatabaseEncryption_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredDatabaseEncryption_ = value; + } + onChanged(); + } else { + desiredDatabaseEncryptionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; + */ + public Builder clearDesiredDatabaseEncryption() { + if (desiredDatabaseEncryptionBuilder_ == null) { + desiredDatabaseEncryption_ = null; + onChanged(); + } else { + desiredDatabaseEncryption_ = null; + desiredDatabaseEncryptionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; + */ + public com.google.container.v1.DatabaseEncryption.Builder + getDesiredDatabaseEncryptionBuilder() { + + 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 desiredWorkloadIdentityConfigBuilder_ != null + || desiredWorkloadIdentityConfig_ != null; + } + /** + * + * + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + * + * @return The desiredWorkloadIdentityConfig. + */ + public com.google.container.v1.WorkloadIdentityConfig getDesiredWorkloadIdentityConfig() { + if (desiredWorkloadIdentityConfigBuilder_ == null) { + return desiredWorkloadIdentityConfig_ == null + ? com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() + : desiredWorkloadIdentityConfig_; + } else { + return desiredWorkloadIdentityConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + */ + public Builder setDesiredWorkloadIdentityConfig( + com.google.container.v1.WorkloadIdentityConfig value) { + if (desiredWorkloadIdentityConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredWorkloadIdentityConfig_ = value; + onChanged(); + } else { + desiredWorkloadIdentityConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + */ + public Builder setDesiredWorkloadIdentityConfig( + com.google.container.v1.WorkloadIdentityConfig.Builder builderForValue) { + if (desiredWorkloadIdentityConfigBuilder_ == null) { + desiredWorkloadIdentityConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredWorkloadIdentityConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + */ + public Builder mergeDesiredWorkloadIdentityConfig( + com.google.container.v1.WorkloadIdentityConfig value) { + if (desiredWorkloadIdentityConfigBuilder_ == null) { + if (desiredWorkloadIdentityConfig_ != null) { + desiredWorkloadIdentityConfig_ = + com.google.container.v1.WorkloadIdentityConfig.newBuilder( + desiredWorkloadIdentityConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredWorkloadIdentityConfig_ = value; + } + onChanged(); + } else { + desiredWorkloadIdentityConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + */ + public Builder clearDesiredWorkloadIdentityConfig() { + if (desiredWorkloadIdentityConfigBuilder_ == null) { + desiredWorkloadIdentityConfig_ = null; + onChanged(); + } else { + desiredWorkloadIdentityConfig_ = null; + desiredWorkloadIdentityConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + */ + public com.google.container.v1.WorkloadIdentityConfig.Builder + getDesiredWorkloadIdentityConfigBuilder() { + + onChanged(); + return getDesiredWorkloadIdentityConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + */ + public com.google.container.v1.WorkloadIdentityConfigOrBuilder + getDesiredWorkloadIdentityConfigOrBuilder() { + if (desiredWorkloadIdentityConfigBuilder_ != null) { + return desiredWorkloadIdentityConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredWorkloadIdentityConfig_ == null + ? com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() + : desiredWorkloadIdentityConfig_; + } + } + /** + * + * + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadIdentityConfig, + com.google.container.v1.WorkloadIdentityConfig.Builder, + com.google.container.v1.WorkloadIdentityConfigOrBuilder> + getDesiredWorkloadIdentityConfigFieldBuilder() { + if (desiredWorkloadIdentityConfigBuilder_ == null) { + desiredWorkloadIdentityConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadIdentityConfig, + com.google.container.v1.WorkloadIdentityConfig.Builder, + com.google.container.v1.WorkloadIdentityConfigOrBuilder>( + getDesiredWorkloadIdentityConfig(), getParentForChildren(), isClean()); + desiredWorkloadIdentityConfig_ = null; + } + return desiredWorkloadIdentityConfigBuilder_; + } + + private com.google.container.v1.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 desiredMeshCertificatesBuilder_ != null || desiredMeshCertificates_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + desiredMeshCertificatesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + */ + public Builder setDesiredMeshCertificates( + com.google.container.v1.MeshCertificates.Builder builderForValue) { + if (desiredMeshCertificatesBuilder_ == null) { + desiredMeshCertificates_ = builderForValue.build(); + onChanged(); + } else { + desiredMeshCertificatesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + */ + public Builder mergeDesiredMeshCertificates(com.google.container.v1.MeshCertificates value) { + if (desiredMeshCertificatesBuilder_ == null) { + if (desiredMeshCertificates_ != null) { + desiredMeshCertificates_ = + com.google.container.v1.MeshCertificates.newBuilder(desiredMeshCertificates_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredMeshCertificates_ = value; + } + onChanged(); + } else { + desiredMeshCertificatesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + */ + public Builder clearDesiredMeshCertificates() { + if (desiredMeshCertificatesBuilder_ == null) { + desiredMeshCertificates_ = null; + onChanged(); + } else { + desiredMeshCertificates_ = null; + desiredMeshCertificatesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + */ + public com.google.container.v1.MeshCertificates.Builder getDesiredMeshCertificatesBuilder() { + + onChanged(); + return getDesiredMeshCertificatesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + */ + public com.google.container.v1.MeshCertificatesOrBuilder getDesiredMeshCertificatesOrBuilder() { + if (desiredMeshCertificatesBuilder_ != null) { + return desiredMeshCertificatesBuilder_.getMessageOrBuilder(); + } else { + return desiredMeshCertificates_ == null + ? com.google.container.v1.MeshCertificates.getDefaultInstance() + : desiredMeshCertificates_; + } + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MeshCertificates, + com.google.container.v1.MeshCertificates.Builder, + com.google.container.v1.MeshCertificatesOrBuilder> + getDesiredMeshCertificatesFieldBuilder() { + if (desiredMeshCertificatesBuilder_ == null) { + desiredMeshCertificatesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MeshCertificates, + com.google.container.v1.MeshCertificates.Builder, + com.google.container.v1.MeshCertificatesOrBuilder>( + getDesiredMeshCertificates(), getParentForChildren(), isClean()); + desiredMeshCertificates_ = null; + } + return desiredMeshCertificatesBuilder_; + } + + private com.google.container.v1.ShieldedNodes desiredShieldedNodes_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ShieldedNodes, + com.google.container.v1.ShieldedNodes.Builder, + com.google.container.v1.ShieldedNodesOrBuilder> + desiredShieldedNodesBuilder_; + /** + * + * + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + * + * @return Whether the desiredShieldedNodes field is set. + */ + public boolean hasDesiredShieldedNodes() { + return desiredShieldedNodesBuilder_ != null || desiredShieldedNodes_ != null; + } + /** + * + * + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + * + * @return The desiredShieldedNodes. + */ + public com.google.container.v1.ShieldedNodes getDesiredShieldedNodes() { + if (desiredShieldedNodesBuilder_ == null) { + return desiredShieldedNodes_ == null + ? com.google.container.v1.ShieldedNodes.getDefaultInstance() + : desiredShieldedNodes_; + } else { + return desiredShieldedNodesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + */ + public Builder setDesiredShieldedNodes(com.google.container.v1.ShieldedNodes value) { + if (desiredShieldedNodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredShieldedNodes_ = value; + onChanged(); + } else { + desiredShieldedNodesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + */ + public Builder setDesiredShieldedNodes( + com.google.container.v1.ShieldedNodes.Builder builderForValue) { + if (desiredShieldedNodesBuilder_ == null) { + desiredShieldedNodes_ = builderForValue.build(); + onChanged(); + } else { + desiredShieldedNodesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + */ + public Builder mergeDesiredShieldedNodes(com.google.container.v1.ShieldedNodes value) { + if (desiredShieldedNodesBuilder_ == null) { + if (desiredShieldedNodes_ != null) { + desiredShieldedNodes_ = + com.google.container.v1.ShieldedNodes.newBuilder(desiredShieldedNodes_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredShieldedNodes_ = value; + } + onChanged(); + } else { + desiredShieldedNodesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + */ + public Builder clearDesiredShieldedNodes() { + if (desiredShieldedNodesBuilder_ == null) { + desiredShieldedNodes_ = null; + onChanged(); + } else { + desiredShieldedNodes_ = null; + desiredShieldedNodesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + */ + public com.google.container.v1.ShieldedNodes.Builder getDesiredShieldedNodesBuilder() { + + onChanged(); + return getDesiredShieldedNodesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + */ + public com.google.container.v1.ShieldedNodesOrBuilder getDesiredShieldedNodesOrBuilder() { + if (desiredShieldedNodesBuilder_ != null) { + return desiredShieldedNodesBuilder_.getMessageOrBuilder(); + } else { + return desiredShieldedNodes_ == null + ? com.google.container.v1.ShieldedNodes.getDefaultInstance() + : desiredShieldedNodes_; + } + } + /** + * + * + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ShieldedNodes, + com.google.container.v1.ShieldedNodes.Builder, + com.google.container.v1.ShieldedNodesOrBuilder> + getDesiredShieldedNodesFieldBuilder() { + if (desiredShieldedNodesBuilder_ == null) { + desiredShieldedNodesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ShieldedNodes, + com.google.container.v1.ShieldedNodes.Builder, + com.google.container.v1.ShieldedNodesOrBuilder>( + getDesiredShieldedNodes(), getParentForChildren(), isClean()); + desiredShieldedNodes_ = null; + } + return desiredShieldedNodesBuilder_; + } + + private com.google.container.v1.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 desiredCostManagementConfigBuilder_ != null || desiredCostManagementConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + desiredCostManagementConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + desiredCostManagementConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (desiredCostManagementConfig_ != null) { + desiredCostManagementConfig_ = + com.google.container.v1.CostManagementConfig.newBuilder(desiredCostManagementConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredCostManagementConfig_ = value; + } + onChanged(); + } else { + desiredCostManagementConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1.CostManagementConfig desired_cost_management_config = 49; + */ + public Builder clearDesiredCostManagementConfig() { + if (desiredCostManagementConfigBuilder_ == null) { + desiredCostManagementConfig_ = null; + onChanged(); + } else { + desiredCostManagementConfig_ = null; + desiredCostManagementConfigBuilder_ = null; + } + + 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() { + + 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 desiredDnsConfigBuilder_ != null || desiredDnsConfig_ != null; + } + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + * + * @return The desiredDnsConfig. + */ + public com.google.container.v1.DNSConfig getDesiredDnsConfig() { + if (desiredDnsConfigBuilder_ == null) { + return desiredDnsConfig_ == null + ? com.google.container.v1.DNSConfig.getDefaultInstance() + : desiredDnsConfig_; + } else { + return desiredDnsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + */ + public Builder setDesiredDnsConfig(com.google.container.v1.DNSConfig value) { + if (desiredDnsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredDnsConfig_ = value; + onChanged(); + } else { + desiredDnsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + */ + public Builder setDesiredDnsConfig(com.google.container.v1.DNSConfig.Builder builderForValue) { + if (desiredDnsConfigBuilder_ == null) { + desiredDnsConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredDnsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + */ + public Builder mergeDesiredDnsConfig(com.google.container.v1.DNSConfig value) { + if (desiredDnsConfigBuilder_ == null) { + if (desiredDnsConfig_ != null) { + desiredDnsConfig_ = + com.google.container.v1.DNSConfig.newBuilder(desiredDnsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredDnsConfig_ = value; + } + onChanged(); + } else { + desiredDnsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + */ + public Builder clearDesiredDnsConfig() { + if (desiredDnsConfigBuilder_ == null) { + desiredDnsConfig_ = null; + onChanged(); + } else { + desiredDnsConfig_ = null; + desiredDnsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + */ + public com.google.container.v1.DNSConfig.Builder getDesiredDnsConfigBuilder() { + + onChanged(); + return getDesiredDnsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + */ + public com.google.container.v1.DNSConfigOrBuilder getDesiredDnsConfigOrBuilder() { + if (desiredDnsConfigBuilder_ != null) { + return desiredDnsConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredDnsConfig_ == null + ? com.google.container.v1.DNSConfig.getDefaultInstance() + : desiredDnsConfig_; + } + } + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DNSConfig, + com.google.container.v1.DNSConfig.Builder, + com.google.container.v1.DNSConfigOrBuilder> + getDesiredDnsConfigFieldBuilder() { + if (desiredDnsConfigBuilder_ == null) { + desiredDnsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DNSConfig, + com.google.container.v1.DNSConfig.Builder, + com.google.container.v1.DNSConfigOrBuilder>( + getDesiredDnsConfig(), getParentForChildren(), isClean()); + desiredDnsConfig_ = null; + } + return desiredDnsConfigBuilder_; + } + + private com.google.container.v1.NodePoolAutoscaling desiredNodePoolAutoscaling_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePoolAutoscaling, + 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 desiredNodePoolAutoscalingBuilder_ != null || desiredNodePoolAutoscaling_ != null; + } + /** + * + * + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.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; + onChanged(); + } else { + desiredNodePoolAutoscalingBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public Builder setDesiredNodePoolAutoscaling( + com.google.container.v1.NodePoolAutoscaling.Builder builderForValue) { + if (desiredNodePoolAutoscalingBuilder_ == null) { + desiredNodePoolAutoscaling_ = builderForValue.build(); + onChanged(); + } else { + desiredNodePoolAutoscalingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public Builder mergeDesiredNodePoolAutoscaling( + com.google.container.v1.NodePoolAutoscaling value) { + if (desiredNodePoolAutoscalingBuilder_ == null) { + if (desiredNodePoolAutoscaling_ != null) { + desiredNodePoolAutoscaling_ = + com.google.container.v1.NodePoolAutoscaling.newBuilder(desiredNodePoolAutoscaling_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredNodePoolAutoscaling_ = value; + } + onChanged(); + } else { + desiredNodePoolAutoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public Builder clearDesiredNodePoolAutoscaling() { + if (desiredNodePoolAutoscalingBuilder_ == null) { + desiredNodePoolAutoscaling_ = null; + onChanged(); + } else { + desiredNodePoolAutoscaling_ = null; + desiredNodePoolAutoscalingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public com.google.container.v1.NodePoolAutoscaling.Builder + getDesiredNodePoolAutoscalingBuilder() { + + onChanged(); + return getDesiredNodePoolAutoscalingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.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.LazyStringList desiredLocations_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureDesiredLocationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + desiredLocations_ = new com.google.protobuf.LazyStringArrayList(desiredLocations_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This list must always include the cluster's primary zone.
+     * Warning: changing cluster locations will update the locations of all node
+     * pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string desired_locations = 10; + * + * @return A list containing the desiredLocations. + */ + public com.google.protobuf.ProtocolStringList getDesiredLocationsList() { + return desiredLocations_.getUnmodifiableView(); + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This list must always include the cluster's primary zone.
+     * Warning: changing cluster locations will update the locations of all node
+     * pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string desired_locations = 10; + * + * @return The count of desiredLocations. + */ + public int getDesiredLocationsCount() { + return desiredLocations_.size(); + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This list must always include the cluster's primary zone.
+     * Warning: changing cluster locations will update the locations of all node
+     * pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string desired_locations = 10; + * + * @param index The index of the element to return. + * @return The desiredLocations at the given index. + */ + public java.lang.String getDesiredLocations(int index) { + return desiredLocations_.get(index); + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This list must always include the cluster's primary zone.
+     * Warning: changing cluster locations will update the locations of all node
+     * pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string desired_locations = 10; + * + * @param index The index of the value to return. + * @return The bytes of the desiredLocations at the given index. + */ + public com.google.protobuf.ByteString getDesiredLocationsBytes(int index) { + return desiredLocations_.getByteString(index); + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This list must always include the cluster's primary zone.
+     * Warning: changing cluster locations will update the locations of all node
+     * pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string desired_locations = 10; + * + * @param index The index to set the value at. + * @param value The desiredLocations to set. + * @return This builder for chaining. + */ + public Builder setDesiredLocations(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDesiredLocationsIsMutable(); + desiredLocations_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This list must always include the cluster's primary zone.
+     * Warning: changing cluster locations will update the locations of all node
+     * pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string desired_locations = 10; + * + * @param value The desiredLocations to add. + * @return This builder for chaining. + */ + public Builder addDesiredLocations(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDesiredLocationsIsMutable(); + desiredLocations_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This list must always include the cluster's primary zone.
+     * Warning: changing cluster locations will update the locations of all node
+     * pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string desired_locations = 10; + * + * @param values The desiredLocations to add. + * @return This builder for chaining. + */ + public Builder addAllDesiredLocations(java.lang.Iterable values) { + ensureDesiredLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, desiredLocations_); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This list must always include the cluster's primary zone.
+     * Warning: changing cluster locations will update the locations of all node
+     * pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string desired_locations = 10; + * + * @return This builder for chaining. + */ + public Builder clearDesiredLocations() { + desiredLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This list must always include the cluster's primary zone.
+     * Warning: changing cluster locations will update the locations of all node
+     * pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string desired_locations = 10; + * + * @param value The bytes of the desiredLocations to add. + * @return This builder for chaining. + */ + public Builder addDesiredLocationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDesiredLocationsIsMutable(); + desiredLocations_.add(value); + onChanged(); + return this; + } + + private com.google.container.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 desiredMasterAuthorizedNetworksConfigBuilder_ != null + || desiredMasterAuthorizedNetworksConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + desiredMasterAuthorizedNetworksConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + desiredMasterAuthorizedNetworksConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (desiredMasterAuthorizedNetworksConfig_ != null) { + desiredMasterAuthorizedNetworksConfig_ = + com.google.container.v1.MasterAuthorizedNetworksConfig.newBuilder( + desiredMasterAuthorizedNetworksConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredMasterAuthorizedNetworksConfig_ = value; + } + onChanged(); + } else { + desiredMasterAuthorizedNetworksConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * + */ + public Builder clearDesiredMasterAuthorizedNetworksConfig() { + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + desiredMasterAuthorizedNetworksConfig_ = null; + onChanged(); + } else { + desiredMasterAuthorizedNetworksConfig_ = null; + desiredMasterAuthorizedNetworksConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * + */ + public com.google.container.v1.MasterAuthorizedNetworksConfig.Builder + getDesiredMasterAuthorizedNetworksConfigBuilder() { + + 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 desiredClusterAutoscalingBuilder_ != null || desiredClusterAutoscaling_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + desiredClusterAutoscalingBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + desiredClusterAutoscalingBuilder_.setMessage(builderForValue.build()); + } + + 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 (desiredClusterAutoscaling_ != null) { + desiredClusterAutoscaling_ = + com.google.container.v1.ClusterAutoscaling.newBuilder(desiredClusterAutoscaling_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredClusterAutoscaling_ = value; + } + onChanged(); + } else { + desiredClusterAutoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public Builder clearDesiredClusterAutoscaling() { + if (desiredClusterAutoscalingBuilder_ == null) { + desiredClusterAutoscaling_ = null; + onChanged(); + } else { + desiredClusterAutoscaling_ = null; + desiredClusterAutoscalingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public com.google.container.v1.ClusterAutoscaling.Builder + getDesiredClusterAutoscalingBuilder() { + + 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 desiredBinaryAuthorizationBuilder_ != null || desiredBinaryAuthorization_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + desiredBinaryAuthorizationBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + desiredBinaryAuthorizationBuilder_.setMessage(builderForValue.build()); + } + + 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 (desiredBinaryAuthorization_ != null) { + desiredBinaryAuthorization_ = + com.google.container.v1.BinaryAuthorization.newBuilder(desiredBinaryAuthorization_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredBinaryAuthorization_ = value; + } + onChanged(); + } else { + desiredBinaryAuthorizationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; + */ + public Builder clearDesiredBinaryAuthorization() { + if (desiredBinaryAuthorizationBuilder_ == null) { + desiredBinaryAuthorization_ = null; + onChanged(); + } else { + desiredBinaryAuthorization_ = null; + desiredBinaryAuthorizationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; + */ + public com.google.container.v1.BinaryAuthorization.Builder + getDesiredBinaryAuthorizationBuilder() { + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string desired_logging_service = 19; + * + * @return This builder for chaining. + */ + public Builder clearDesiredLoggingService() { + + desiredLoggingService_ = getDefaultInstance().getDesiredLoggingService(); + onChanged(); + return this; + } + /** + * + * + *
+     * The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string desired_logging_service = 19; + * + * @param value The bytes for desiredLoggingService to set. + * @return This builder for chaining. + */ + public Builder setDesiredLoggingServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + desiredLoggingService_ = value; + onChanged(); + return this; + } + + private com.google.container.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 desiredResourceUsageExportConfigBuilder_ != null + || desiredResourceUsageExportConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + desiredResourceUsageExportConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + desiredResourceUsageExportConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (desiredResourceUsageExportConfig_ != null) { + desiredResourceUsageExportConfig_ = + com.google.container.v1.ResourceUsageExportConfig.newBuilder( + desiredResourceUsageExportConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredResourceUsageExportConfig_ = value; + } + onChanged(); + } else { + desiredResourceUsageExportConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired configuration for exporting resource usage.
+     * 
+ * + * + * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * + */ + public Builder clearDesiredResourceUsageExportConfig() { + if (desiredResourceUsageExportConfigBuilder_ == null) { + desiredResourceUsageExportConfig_ = null; + onChanged(); + } else { + desiredResourceUsageExportConfig_ = null; + desiredResourceUsageExportConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired configuration for exporting resource usage.
+     * 
+ * + * + * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * + */ + public com.google.container.v1.ResourceUsageExportConfig.Builder + getDesiredResourceUsageExportConfigBuilder() { + + 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 desiredVerticalPodAutoscalingBuilder_ != null + || desiredVerticalPodAutoscaling_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + desiredVerticalPodAutoscalingBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + desiredVerticalPodAutoscalingBuilder_.setMessage(builderForValue.build()); + } + + 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 (desiredVerticalPodAutoscaling_ != null) { + desiredVerticalPodAutoscaling_ = + com.google.container.v1.VerticalPodAutoscaling.newBuilder( + desiredVerticalPodAutoscaling_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredVerticalPodAutoscaling_ = value; + } + onChanged(); + } else { + desiredVerticalPodAutoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * + */ + public Builder clearDesiredVerticalPodAutoscaling() { + if (desiredVerticalPodAutoscalingBuilder_ == null) { + desiredVerticalPodAutoscaling_ = null; + onChanged(); + } else { + desiredVerticalPodAutoscaling_ = null; + desiredVerticalPodAutoscalingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * + */ + public com.google.container.v1.VerticalPodAutoscaling.Builder + getDesiredVerticalPodAutoscalingBuilder() { + + 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 desiredPrivateClusterConfigBuilder_ != null || desiredPrivateClusterConfig_ != null; + } + /** + * + * + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + * + * @return The desiredPrivateClusterConfig. + */ + public com.google.container.v1.PrivateClusterConfig getDesiredPrivateClusterConfig() { + if (desiredPrivateClusterConfigBuilder_ == null) { + return desiredPrivateClusterConfig_ == null + ? com.google.container.v1.PrivateClusterConfig.getDefaultInstance() + : desiredPrivateClusterConfig_; + } else { + return desiredPrivateClusterConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + */ + public Builder setDesiredPrivateClusterConfig( + com.google.container.v1.PrivateClusterConfig value) { + if (desiredPrivateClusterConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredPrivateClusterConfig_ = value; + onChanged(); + } else { + desiredPrivateClusterConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + */ + public Builder setDesiredPrivateClusterConfig( + com.google.container.v1.PrivateClusterConfig.Builder builderForValue) { + if (desiredPrivateClusterConfigBuilder_ == null) { + desiredPrivateClusterConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredPrivateClusterConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + */ + public Builder mergeDesiredPrivateClusterConfig( + com.google.container.v1.PrivateClusterConfig value) { + if (desiredPrivateClusterConfigBuilder_ == null) { + if (desiredPrivateClusterConfig_ != null) { + desiredPrivateClusterConfig_ = + com.google.container.v1.PrivateClusterConfig.newBuilder(desiredPrivateClusterConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredPrivateClusterConfig_ = value; + } + onChanged(); + } else { + desiredPrivateClusterConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + */ + public Builder clearDesiredPrivateClusterConfig() { + if (desiredPrivateClusterConfigBuilder_ == null) { + desiredPrivateClusterConfig_ = null; + onChanged(); + } else { + desiredPrivateClusterConfig_ = null; + desiredPrivateClusterConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + */ + public com.google.container.v1.PrivateClusterConfig.Builder + getDesiredPrivateClusterConfigBuilder() { + + onChanged(); + return getDesiredPrivateClusterConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + */ + public com.google.container.v1.PrivateClusterConfigOrBuilder + getDesiredPrivateClusterConfigOrBuilder() { + if (desiredPrivateClusterConfigBuilder_ != null) { + return desiredPrivateClusterConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredPrivateClusterConfig_ == null + ? com.google.container.v1.PrivateClusterConfig.getDefaultInstance() + : desiredPrivateClusterConfig_; + } + } + /** + * + * + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.PrivateClusterConfig, + com.google.container.v1.PrivateClusterConfig.Builder, + com.google.container.v1.PrivateClusterConfigOrBuilder> + getDesiredPrivateClusterConfigFieldBuilder() { + if (desiredPrivateClusterConfigBuilder_ == null) { + desiredPrivateClusterConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.PrivateClusterConfig, + com.google.container.v1.PrivateClusterConfig.Builder, + com.google.container.v1.PrivateClusterConfigOrBuilder>( + getDesiredPrivateClusterConfig(), getParentForChildren(), isClean()); + desiredPrivateClusterConfig_ = null; + } + return desiredPrivateClusterConfigBuilder_; + } + + private com.google.container.v1.IntraNodeVisibilityConfig desiredIntraNodeVisibilityConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.IntraNodeVisibilityConfig, + com.google.container.v1.IntraNodeVisibilityConfig.Builder, + com.google.container.v1.IntraNodeVisibilityConfigOrBuilder> + desiredIntraNodeVisibilityConfigBuilder_; + /** + * + * + *
+     * The desired config of Intra-node visibility.
+     * 
+ * + * + * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * + * + * @return Whether the desiredIntraNodeVisibilityConfig field is set. + */ + public boolean hasDesiredIntraNodeVisibilityConfig() { + return desiredIntraNodeVisibilityConfigBuilder_ != null + || desiredIntraNodeVisibilityConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + desiredIntraNodeVisibilityConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + desiredIntraNodeVisibilityConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (desiredIntraNodeVisibilityConfig_ != null) { + desiredIntraNodeVisibilityConfig_ = + com.google.container.v1.IntraNodeVisibilityConfig.newBuilder( + desiredIntraNodeVisibilityConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredIntraNodeVisibilityConfig_ = value; + } + onChanged(); + } else { + desiredIntraNodeVisibilityConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired config of Intra-node visibility.
+     * 
+ * + * + * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * + */ + public Builder clearDesiredIntraNodeVisibilityConfig() { + if (desiredIntraNodeVisibilityConfigBuilder_ == null) { + desiredIntraNodeVisibilityConfig_ = null; + onChanged(); + } else { + desiredIntraNodeVisibilityConfig_ = null; + desiredIntraNodeVisibilityConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired config of Intra-node visibility.
+     * 
+ * + * + * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * + */ + public com.google.container.v1.IntraNodeVisibilityConfig.Builder + getDesiredIntraNodeVisibilityConfigBuilder() { + + 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 desiredDefaultSnatStatusBuilder_ != null || desiredDefaultSnatStatus_ != null; + } + /** + * + * + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + * + * @return The desiredDefaultSnatStatus. + */ + public com.google.container.v1.DefaultSnatStatus getDesiredDefaultSnatStatus() { + if (desiredDefaultSnatStatusBuilder_ == null) { + return desiredDefaultSnatStatus_ == null + ? com.google.container.v1.DefaultSnatStatus.getDefaultInstance() + : desiredDefaultSnatStatus_; + } else { + return desiredDefaultSnatStatusBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + */ + public Builder setDesiredDefaultSnatStatus(com.google.container.v1.DefaultSnatStatus value) { + if (desiredDefaultSnatStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredDefaultSnatStatus_ = value; + onChanged(); + } else { + desiredDefaultSnatStatusBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + */ + public Builder setDesiredDefaultSnatStatus( + com.google.container.v1.DefaultSnatStatus.Builder builderForValue) { + if (desiredDefaultSnatStatusBuilder_ == null) { + desiredDefaultSnatStatus_ = builderForValue.build(); + onChanged(); + } else { + desiredDefaultSnatStatusBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + */ + public Builder mergeDesiredDefaultSnatStatus(com.google.container.v1.DefaultSnatStatus value) { + if (desiredDefaultSnatStatusBuilder_ == null) { + if (desiredDefaultSnatStatus_ != null) { + desiredDefaultSnatStatus_ = + com.google.container.v1.DefaultSnatStatus.newBuilder(desiredDefaultSnatStatus_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredDefaultSnatStatus_ = value; + } + onChanged(); + } else { + desiredDefaultSnatStatusBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + */ + public Builder clearDesiredDefaultSnatStatus() { + if (desiredDefaultSnatStatusBuilder_ == null) { + desiredDefaultSnatStatus_ = null; + onChanged(); + } else { + desiredDefaultSnatStatus_ = null; + desiredDefaultSnatStatusBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + */ + public com.google.container.v1.DefaultSnatStatus.Builder getDesiredDefaultSnatStatusBuilder() { + + onChanged(); + return getDesiredDefaultSnatStatusFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + */ + public com.google.container.v1.DefaultSnatStatusOrBuilder + getDesiredDefaultSnatStatusOrBuilder() { + if (desiredDefaultSnatStatusBuilder_ != null) { + return desiredDefaultSnatStatusBuilder_.getMessageOrBuilder(); + } else { + return desiredDefaultSnatStatus_ == null + ? com.google.container.v1.DefaultSnatStatus.getDefaultInstance() + : desiredDefaultSnatStatus_; + } + } + /** + * + * + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DefaultSnatStatus, + com.google.container.v1.DefaultSnatStatus.Builder, + com.google.container.v1.DefaultSnatStatusOrBuilder> + getDesiredDefaultSnatStatusFieldBuilder() { + if (desiredDefaultSnatStatusBuilder_ == null) { + desiredDefaultSnatStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DefaultSnatStatus, + com.google.container.v1.DefaultSnatStatus.Builder, + com.google.container.v1.DefaultSnatStatusOrBuilder>( + getDesiredDefaultSnatStatus(), getParentForChildren(), isClean()); + desiredDefaultSnatStatus_ = null; + } + return desiredDefaultSnatStatusBuilder_; + } + + private com.google.container.v1.ReleaseChannel desiredReleaseChannel_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ReleaseChannel, + com.google.container.v1.ReleaseChannel.Builder, + com.google.container.v1.ReleaseChannelOrBuilder> + desiredReleaseChannelBuilder_; + /** + * + * + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + * + * @return Whether the desiredReleaseChannel field is set. + */ + public boolean hasDesiredReleaseChannel() { + return desiredReleaseChannelBuilder_ != null || desiredReleaseChannel_ != null; + } + /** + * + * + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + * + * @return The desiredReleaseChannel. + */ + public com.google.container.v1.ReleaseChannel getDesiredReleaseChannel() { + if (desiredReleaseChannelBuilder_ == null) { + return desiredReleaseChannel_ == null + ? com.google.container.v1.ReleaseChannel.getDefaultInstance() + : desiredReleaseChannel_; + } else { + return desiredReleaseChannelBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + */ + public Builder setDesiredReleaseChannel(com.google.container.v1.ReleaseChannel value) { + if (desiredReleaseChannelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredReleaseChannel_ = value; + onChanged(); + } else { + desiredReleaseChannelBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + */ + public Builder setDesiredReleaseChannel( + com.google.container.v1.ReleaseChannel.Builder builderForValue) { + if (desiredReleaseChannelBuilder_ == null) { + desiredReleaseChannel_ = builderForValue.build(); + onChanged(); + } else { + desiredReleaseChannelBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + */ + public Builder mergeDesiredReleaseChannel(com.google.container.v1.ReleaseChannel value) { + if (desiredReleaseChannelBuilder_ == null) { + if (desiredReleaseChannel_ != null) { + desiredReleaseChannel_ = + com.google.container.v1.ReleaseChannel.newBuilder(desiredReleaseChannel_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredReleaseChannel_ = value; + } + onChanged(); + } else { + desiredReleaseChannelBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + */ + public Builder clearDesiredReleaseChannel() { + if (desiredReleaseChannelBuilder_ == null) { + desiredReleaseChannel_ = null; + onChanged(); + } else { + desiredReleaseChannel_ = null; + desiredReleaseChannelBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + */ + public com.google.container.v1.ReleaseChannel.Builder getDesiredReleaseChannelBuilder() { + + onChanged(); + return getDesiredReleaseChannelFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + */ + public com.google.container.v1.ReleaseChannelOrBuilder getDesiredReleaseChannelOrBuilder() { + if (desiredReleaseChannelBuilder_ != null) { + return desiredReleaseChannelBuilder_.getMessageOrBuilder(); + } else { + return desiredReleaseChannel_ == null + ? com.google.container.v1.ReleaseChannel.getDefaultInstance() + : desiredReleaseChannel_; + } + } + /** + * + * + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ReleaseChannel, + com.google.container.v1.ReleaseChannel.Builder, + com.google.container.v1.ReleaseChannelOrBuilder> + getDesiredReleaseChannelFieldBuilder() { + if (desiredReleaseChannelBuilder_ == null) { + desiredReleaseChannelBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ReleaseChannel, + com.google.container.v1.ReleaseChannel.Builder, + com.google.container.v1.ReleaseChannelOrBuilder>( + getDesiredReleaseChannel(), getParentForChildren(), isClean()); + desiredReleaseChannel_ = null; + } + return desiredReleaseChannelBuilder_; + } + + private 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 desiredL4IlbSubsettingConfigBuilder_ != null || desiredL4IlbSubsettingConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + desiredL4IlbSubsettingConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired L4 Internal Load Balancer Subsetting configuration.
+     * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + */ + public Builder setDesiredL4IlbSubsettingConfig( + com.google.container.v1.ILBSubsettingConfig.Builder builderForValue) { + if (desiredL4IlbSubsettingConfigBuilder_ == null) { + desiredL4IlbSubsettingConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredL4IlbSubsettingConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired L4 Internal Load Balancer Subsetting configuration.
+     * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + */ + public Builder mergeDesiredL4IlbSubsettingConfig( + com.google.container.v1.ILBSubsettingConfig value) { + if (desiredL4IlbSubsettingConfigBuilder_ == null) { + if (desiredL4IlbSubsettingConfig_ != null) { + desiredL4IlbSubsettingConfig_ = + com.google.container.v1.ILBSubsettingConfig.newBuilder(desiredL4IlbSubsettingConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredL4IlbSubsettingConfig_ = value; + } + onChanged(); + } else { + desiredL4IlbSubsettingConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired L4 Internal Load Balancer Subsetting configuration.
+     * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + */ + public Builder clearDesiredL4IlbSubsettingConfig() { + if (desiredL4IlbSubsettingConfigBuilder_ == null) { + desiredL4IlbSubsettingConfig_ = null; + onChanged(); + } else { + desiredL4IlbSubsettingConfig_ = null; + desiredL4IlbSubsettingConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired L4 Internal Load Balancer Subsetting configuration.
+     * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + */ + public com.google.container.v1.ILBSubsettingConfig.Builder + getDesiredL4IlbSubsettingConfigBuilder() { + + onChanged(); + return getDesiredL4IlbSubsettingConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired L4 Internal Load Balancer Subsetting configuration.
+     * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + */ + public com.google.container.v1.ILBSubsettingConfigOrBuilder + getDesiredL4IlbSubsettingConfigOrBuilder() { + if (desiredL4IlbSubsettingConfigBuilder_ != null) { + return desiredL4IlbSubsettingConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredL4IlbSubsettingConfig_ == null + ? com.google.container.v1.ILBSubsettingConfig.getDefaultInstance() + : desiredL4IlbSubsettingConfig_; + } + } + /** + * + * + *
+     * The desired L4 Internal Load Balancer Subsetting configuration.
+     * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ILBSubsettingConfig, + com.google.container.v1.ILBSubsettingConfig.Builder, + com.google.container.v1.ILBSubsettingConfigOrBuilder> + getDesiredL4IlbSubsettingConfigFieldBuilder() { + if (desiredL4IlbSubsettingConfigBuilder_ == null) { + desiredL4IlbSubsettingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ILBSubsettingConfig, + com.google.container.v1.ILBSubsettingConfig.Builder, + com.google.container.v1.ILBSubsettingConfigOrBuilder>( + getDesiredL4IlbSubsettingConfig(), getParentForChildren(), isClean()); + desiredL4IlbSubsettingConfig_ = null; + } + return desiredL4IlbSubsettingConfigBuilder_; + } + + private int desiredDatapathProvider_ = 0; + /** + * + * + *
+     * The desired datapath provider for the cluster.
+     * 
+ * + * .google.container.v1.DatapathProvider desired_datapath_provider = 50; + * + * @return The enum numeric value on the wire for desiredDatapathProvider. + */ + @java.lang.Override + public int getDesiredDatapathProviderValue() { + return desiredDatapathProvider_; + } + /** + * + * + *
+     * The desired datapath provider for the cluster.
+     * 
+ * + * .google.container.v1.DatapathProvider desired_datapath_provider = 50; + * + * @param value The enum numeric value on the wire for desiredDatapathProvider to set. + * @return This builder for chaining. + */ + public Builder setDesiredDatapathProviderValue(int value) { + + desiredDatapathProvider_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The desired datapath provider for the cluster.
+     * 
+ * + * .google.container.v1.DatapathProvider desired_datapath_provider = 50; + * + * @return The desiredDatapathProvider. + */ + @java.lang.Override + public com.google.container.v1.DatapathProvider getDesiredDatapathProvider() { + @SuppressWarnings("deprecation") + com.google.container.v1.DatapathProvider result = + com.google.container.v1.DatapathProvider.valueOf(desiredDatapathProvider_); + return result == null ? com.google.container.v1.DatapathProvider.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The desired datapath provider for the cluster.
+     * 
+ * + * .google.container.v1.DatapathProvider desired_datapath_provider = 50; + * + * @param value The desiredDatapathProvider to set. + * @return This builder for chaining. + */ + public Builder setDesiredDatapathProvider(com.google.container.v1.DatapathProvider value) { + if (value == null) { + throw new NullPointerException(); + } + + desiredDatapathProvider_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired datapath provider for the cluster.
+     * 
+ * + * .google.container.v1.DatapathProvider desired_datapath_provider = 50; + * + * @return This builder for chaining. + */ + public Builder clearDesiredDatapathProvider() { + + desiredDatapathProvider_ = 0; + onChanged(); + return this; + } + + private int desiredPrivateIpv6GoogleAccess_ = 0; + /** + * + * + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * + * + * @return The enum numeric value on the wire for desiredPrivateIpv6GoogleAccess. + */ + @java.lang.Override + public int getDesiredPrivateIpv6GoogleAccessValue() { + return desiredPrivateIpv6GoogleAccess_; + } + /** + * + * + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * + * + * @param value The enum numeric value on the wire for desiredPrivateIpv6GoogleAccess to set. + * @return This builder for chaining. + */ + public Builder setDesiredPrivateIpv6GoogleAccessValue(int value) { + + desiredPrivateIpv6GoogleAccess_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * + * + * @return The desiredPrivateIpv6GoogleAccess. + */ + @java.lang.Override + public com.google.container.v1.PrivateIPv6GoogleAccess getDesiredPrivateIpv6GoogleAccess() { + @SuppressWarnings("deprecation") + com.google.container.v1.PrivateIPv6GoogleAccess result = + com.google.container.v1.PrivateIPv6GoogleAccess.valueOf(desiredPrivateIpv6GoogleAccess_); + return result == null ? com.google.container.v1.PrivateIPv6GoogleAccess.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * + * + * @param value The desiredPrivateIpv6GoogleAccess to set. + * @return This builder for chaining. + */ + public Builder setDesiredPrivateIpv6GoogleAccess( + com.google.container.v1.PrivateIPv6GoogleAccess value) { + if (value == null) { + throw new NullPointerException(); + } + + desiredPrivateIpv6GoogleAccess_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * + * + * @return This builder for chaining. + */ + public Builder clearDesiredPrivateIpv6GoogleAccess() { + + desiredPrivateIpv6GoogleAccess_ = 0; + onChanged(); + return this; + } + + private com.google.container.v1.NotificationConfig desiredNotificationConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NotificationConfig, + com.google.container.v1.NotificationConfig.Builder, + com.google.container.v1.NotificationConfigOrBuilder> + desiredNotificationConfigBuilder_; + /** + * + * + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + * + * @return Whether the desiredNotificationConfig field is set. + */ + public boolean hasDesiredNotificationConfig() { + return desiredNotificationConfigBuilder_ != null || desiredNotificationConfig_ != null; + } + /** + * + * + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + * + * @return The desiredNotificationConfig. + */ + public com.google.container.v1.NotificationConfig getDesiredNotificationConfig() { + if (desiredNotificationConfigBuilder_ == null) { + return desiredNotificationConfig_ == null + ? com.google.container.v1.NotificationConfig.getDefaultInstance() + : desiredNotificationConfig_; + } else { + return desiredNotificationConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + */ + public Builder setDesiredNotificationConfig(com.google.container.v1.NotificationConfig value) { + if (desiredNotificationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredNotificationConfig_ = value; + onChanged(); + } else { + desiredNotificationConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + */ + public Builder setDesiredNotificationConfig( + com.google.container.v1.NotificationConfig.Builder builderForValue) { + if (desiredNotificationConfigBuilder_ == null) { + desiredNotificationConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredNotificationConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + */ + public Builder mergeDesiredNotificationConfig( + com.google.container.v1.NotificationConfig value) { + if (desiredNotificationConfigBuilder_ == null) { + if (desiredNotificationConfig_ != null) { + desiredNotificationConfig_ = + com.google.container.v1.NotificationConfig.newBuilder(desiredNotificationConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredNotificationConfig_ = value; + } + onChanged(); + } else { + desiredNotificationConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + */ + public Builder clearDesiredNotificationConfig() { + if (desiredNotificationConfigBuilder_ == null) { + desiredNotificationConfig_ = null; + onChanged(); + } else { + desiredNotificationConfig_ = null; + desiredNotificationConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + */ + public com.google.container.v1.NotificationConfig.Builder + getDesiredNotificationConfigBuilder() { + + onChanged(); + return getDesiredNotificationConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + */ + public com.google.container.v1.NotificationConfigOrBuilder + getDesiredNotificationConfigOrBuilder() { + if (desiredNotificationConfigBuilder_ != null) { + return desiredNotificationConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredNotificationConfig_ == null + ? com.google.container.v1.NotificationConfig.getDefaultInstance() + : desiredNotificationConfig_; + } + } + /** + * + * + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NotificationConfig, + com.google.container.v1.NotificationConfig.Builder, + com.google.container.v1.NotificationConfigOrBuilder> + getDesiredNotificationConfigFieldBuilder() { + if (desiredNotificationConfigBuilder_ == null) { + desiredNotificationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NotificationConfig, + com.google.container.v1.NotificationConfig.Builder, + com.google.container.v1.NotificationConfigOrBuilder>( + getDesiredNotificationConfig(), getParentForChildren(), isClean()); + desiredNotificationConfig_ = null; + } + return desiredNotificationConfigBuilder_; + } + + private com.google.container.v1.AuthenticatorGroupsConfig desiredAuthenticatorGroupsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AuthenticatorGroupsConfig, + com.google.container.v1.AuthenticatorGroupsConfig.Builder, + com.google.container.v1.AuthenticatorGroupsConfigOrBuilder> + desiredAuthenticatorGroupsConfigBuilder_; + /** + * + * + *
+     * The desired authenticator groups config for the cluster.
+     * 
+ * + * + * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * + * + * @return Whether the desiredAuthenticatorGroupsConfig field is set. + */ + public boolean hasDesiredAuthenticatorGroupsConfig() { + return desiredAuthenticatorGroupsConfigBuilder_ != null + || desiredAuthenticatorGroupsConfig_ != null; + } + /** + * + * + *
+     * The desired authenticator groups config for the cluster.
+     * 
+ * + * + * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * + * + * @return The desiredAuthenticatorGroupsConfig. + */ + public com.google.container.v1.AuthenticatorGroupsConfig getDesiredAuthenticatorGroupsConfig() { + if (desiredAuthenticatorGroupsConfigBuilder_ == null) { + return desiredAuthenticatorGroupsConfig_ == null + ? com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance() + : desiredAuthenticatorGroupsConfig_; + } else { + return desiredAuthenticatorGroupsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired authenticator groups config for the cluster.
+     * 
+ * + * + * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * + */ + public Builder setDesiredAuthenticatorGroupsConfig( + com.google.container.v1.AuthenticatorGroupsConfig value) { + if (desiredAuthenticatorGroupsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredAuthenticatorGroupsConfig_ = value; + onChanged(); + } else { + desiredAuthenticatorGroupsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired authenticator groups config for the cluster.
+     * 
+ * + * + * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * + */ + public Builder setDesiredAuthenticatorGroupsConfig( + com.google.container.v1.AuthenticatorGroupsConfig.Builder builderForValue) { + if (desiredAuthenticatorGroupsConfigBuilder_ == null) { + desiredAuthenticatorGroupsConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredAuthenticatorGroupsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired authenticator groups config for the cluster.
+     * 
+ * + * + * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * + */ + public Builder mergeDesiredAuthenticatorGroupsConfig( + com.google.container.v1.AuthenticatorGroupsConfig value) { + if (desiredAuthenticatorGroupsConfigBuilder_ == null) { + if (desiredAuthenticatorGroupsConfig_ != null) { + desiredAuthenticatorGroupsConfig_ = + com.google.container.v1.AuthenticatorGroupsConfig.newBuilder( + desiredAuthenticatorGroupsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredAuthenticatorGroupsConfig_ = value; + } + onChanged(); + } else { + desiredAuthenticatorGroupsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired authenticator groups config for the cluster.
+     * 
+ * + * + * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * + */ + public Builder clearDesiredAuthenticatorGroupsConfig() { + if (desiredAuthenticatorGroupsConfigBuilder_ == null) { + desiredAuthenticatorGroupsConfig_ = null; + onChanged(); + } else { + desiredAuthenticatorGroupsConfig_ = null; + desiredAuthenticatorGroupsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired authenticator groups config for the cluster.
+     * 
+ * + * + * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * + */ + public com.google.container.v1.AuthenticatorGroupsConfig.Builder + getDesiredAuthenticatorGroupsConfigBuilder() { + + onChanged(); + return getDesiredAuthenticatorGroupsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired authenticator groups config for the cluster.
+     * 
+ * + * + * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * + */ + public com.google.container.v1.AuthenticatorGroupsConfigOrBuilder + getDesiredAuthenticatorGroupsConfigOrBuilder() { + if (desiredAuthenticatorGroupsConfigBuilder_ != null) { + return desiredAuthenticatorGroupsConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredAuthenticatorGroupsConfig_ == null + ? com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance() + : desiredAuthenticatorGroupsConfig_; + } + } + /** + * + * + *
+     * The desired authenticator groups config for the cluster.
+     * 
+ * + * + * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AuthenticatorGroupsConfig, + com.google.container.v1.AuthenticatorGroupsConfig.Builder, + com.google.container.v1.AuthenticatorGroupsConfigOrBuilder> + getDesiredAuthenticatorGroupsConfigFieldBuilder() { + if (desiredAuthenticatorGroupsConfigBuilder_ == null) { + desiredAuthenticatorGroupsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AuthenticatorGroupsConfig, + com.google.container.v1.AuthenticatorGroupsConfig.Builder, + com.google.container.v1.AuthenticatorGroupsConfigOrBuilder>( + getDesiredAuthenticatorGroupsConfig(), getParentForChildren(), isClean()); + desiredAuthenticatorGroupsConfig_ = null; + } + return desiredAuthenticatorGroupsConfigBuilder_; + } + + private com.google.container.v1.LoggingConfig desiredLoggingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LoggingConfig, + com.google.container.v1.LoggingConfig.Builder, + com.google.container.v1.LoggingConfigOrBuilder> + desiredLoggingConfigBuilder_; + /** + * + * + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + * + * @return Whether the desiredLoggingConfig field is set. + */ + public boolean hasDesiredLoggingConfig() { + return desiredLoggingConfigBuilder_ != null || desiredLoggingConfig_ != null; + } + /** + * + * + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + * + * @return The desiredLoggingConfig. + */ + public com.google.container.v1.LoggingConfig getDesiredLoggingConfig() { + if (desiredLoggingConfigBuilder_ == null) { + return desiredLoggingConfig_ == null + ? com.google.container.v1.LoggingConfig.getDefaultInstance() + : desiredLoggingConfig_; + } else { + return desiredLoggingConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + */ + public Builder setDesiredLoggingConfig(com.google.container.v1.LoggingConfig value) { + if (desiredLoggingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredLoggingConfig_ = value; + onChanged(); + } else { + desiredLoggingConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + */ + public Builder setDesiredLoggingConfig( + com.google.container.v1.LoggingConfig.Builder builderForValue) { + if (desiredLoggingConfigBuilder_ == null) { + desiredLoggingConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredLoggingConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + */ + public Builder mergeDesiredLoggingConfig(com.google.container.v1.LoggingConfig value) { + if (desiredLoggingConfigBuilder_ == null) { + if (desiredLoggingConfig_ != null) { + desiredLoggingConfig_ = + com.google.container.v1.LoggingConfig.newBuilder(desiredLoggingConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredLoggingConfig_ = value; + } + onChanged(); + } else { + desiredLoggingConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + */ + public Builder clearDesiredLoggingConfig() { + if (desiredLoggingConfigBuilder_ == null) { + desiredLoggingConfig_ = null; + onChanged(); + } else { + desiredLoggingConfig_ = null; + desiredLoggingConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + */ + public com.google.container.v1.LoggingConfig.Builder getDesiredLoggingConfigBuilder() { + + onChanged(); + return getDesiredLoggingConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + */ + public com.google.container.v1.LoggingConfigOrBuilder getDesiredLoggingConfigOrBuilder() { + if (desiredLoggingConfigBuilder_ != null) { + return desiredLoggingConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredLoggingConfig_ == null + ? com.google.container.v1.LoggingConfig.getDefaultInstance() + : desiredLoggingConfig_; + } + } + /** + * + * + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LoggingConfig, + com.google.container.v1.LoggingConfig.Builder, + com.google.container.v1.LoggingConfigOrBuilder> + getDesiredLoggingConfigFieldBuilder() { + if (desiredLoggingConfigBuilder_ == null) { + desiredLoggingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LoggingConfig, + com.google.container.v1.LoggingConfig.Builder, + com.google.container.v1.LoggingConfigOrBuilder>( + getDesiredLoggingConfig(), getParentForChildren(), isClean()); + desiredLoggingConfig_ = null; + } + return desiredLoggingConfigBuilder_; + } + + private com.google.container.v1.MonitoringConfig desiredMonitoringConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MonitoringConfig, + com.google.container.v1.MonitoringConfig.Builder, + com.google.container.v1.MonitoringConfigOrBuilder> + desiredMonitoringConfigBuilder_; + /** + * + * + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + * + * @return Whether the desiredMonitoringConfig field is set. + */ + public boolean hasDesiredMonitoringConfig() { + return desiredMonitoringConfigBuilder_ != null || desiredMonitoringConfig_ != null; + } + /** + * + * + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + * + * @return The desiredMonitoringConfig. + */ + public com.google.container.v1.MonitoringConfig getDesiredMonitoringConfig() { + if (desiredMonitoringConfigBuilder_ == null) { + return desiredMonitoringConfig_ == null + ? com.google.container.v1.MonitoringConfig.getDefaultInstance() + : desiredMonitoringConfig_; + } else { + return desiredMonitoringConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + */ + public Builder setDesiredMonitoringConfig(com.google.container.v1.MonitoringConfig value) { + if (desiredMonitoringConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredMonitoringConfig_ = value; + onChanged(); + } else { + desiredMonitoringConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + */ + public Builder setDesiredMonitoringConfig( + com.google.container.v1.MonitoringConfig.Builder builderForValue) { + if (desiredMonitoringConfigBuilder_ == null) { + desiredMonitoringConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredMonitoringConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + */ + public Builder mergeDesiredMonitoringConfig(com.google.container.v1.MonitoringConfig value) { + if (desiredMonitoringConfigBuilder_ == null) { + if (desiredMonitoringConfig_ != null) { + desiredMonitoringConfig_ = + com.google.container.v1.MonitoringConfig.newBuilder(desiredMonitoringConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredMonitoringConfig_ = value; + } + onChanged(); + } else { + desiredMonitoringConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + */ + public Builder clearDesiredMonitoringConfig() { + if (desiredMonitoringConfigBuilder_ == null) { + desiredMonitoringConfig_ = null; + onChanged(); + } else { + desiredMonitoringConfig_ = null; + desiredMonitoringConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + */ + public com.google.container.v1.MonitoringConfig.Builder getDesiredMonitoringConfigBuilder() { + + onChanged(); + return getDesiredMonitoringConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + */ + public com.google.container.v1.MonitoringConfigOrBuilder getDesiredMonitoringConfigOrBuilder() { + if (desiredMonitoringConfigBuilder_ != null) { + return desiredMonitoringConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredMonitoringConfig_ == null + ? com.google.container.v1.MonitoringConfig.getDefaultInstance() + : desiredMonitoringConfig_; + } + } + /** + * + * + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MonitoringConfig, + com.google.container.v1.MonitoringConfig.Builder, + com.google.container.v1.MonitoringConfigOrBuilder> + getDesiredMonitoringConfigFieldBuilder() { + if (desiredMonitoringConfigBuilder_ == null) { + desiredMonitoringConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MonitoringConfig, + com.google.container.v1.MonitoringConfig.Builder, + com.google.container.v1.MonitoringConfigOrBuilder>( + getDesiredMonitoringConfig(), getParentForChildren(), isClean()); + desiredMonitoringConfig_ = null; + } + return desiredMonitoringConfigBuilder_; + } + + private com.google.container.v1.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 desiredIdentityServiceConfigBuilder_ != null || desiredIdentityServiceConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + desiredIdentityServiceConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + desiredIdentityServiceConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (desiredIdentityServiceConfig_ != null) { + desiredIdentityServiceConfig_ = + com.google.container.v1.IdentityServiceConfig.newBuilder( + desiredIdentityServiceConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredIdentityServiceConfig_ = value; + } + onChanged(); + } else { + desiredIdentityServiceConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired Identity Service component configuration.
+     * 
+ * + * .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; + */ + public Builder clearDesiredIdentityServiceConfig() { + if (desiredIdentityServiceConfigBuilder_ == null) { + desiredIdentityServiceConfig_ = null; + onChanged(); + } else { + desiredIdentityServiceConfig_ = null; + desiredIdentityServiceConfigBuilder_ = null; + } + + 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() { + + 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 desiredServiceExternalIpsConfigBuilder_ != null + || desiredServiceExternalIpsConfig_ != null; + } + /** + * + * + *
+     * ServiceExternalIPsConfig specifies the config for the use of Services with
+     * ExternalIPs field.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + * + * + * @return The desiredServiceExternalIpsConfig. + */ + public com.google.container.v1.ServiceExternalIPsConfig getDesiredServiceExternalIpsConfig() { + if (desiredServiceExternalIpsConfigBuilder_ == null) { + return desiredServiceExternalIpsConfig_ == null + ? com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance() + : desiredServiceExternalIpsConfig_; + } else { + return desiredServiceExternalIpsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * ServiceExternalIPsConfig specifies the config for the use of Services with
+     * ExternalIPs field.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + * + */ + public Builder setDesiredServiceExternalIpsConfig( + com.google.container.v1.ServiceExternalIPsConfig value) { + if (desiredServiceExternalIpsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredServiceExternalIpsConfig_ = value; + onChanged(); + } else { + desiredServiceExternalIpsConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + desiredServiceExternalIpsConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (desiredServiceExternalIpsConfig_ != null) { + desiredServiceExternalIpsConfig_ = + com.google.container.v1.ServiceExternalIPsConfig.newBuilder( + desiredServiceExternalIpsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredServiceExternalIpsConfig_ = value; + } + onChanged(); + } else { + desiredServiceExternalIpsConfigBuilder_.mergeFrom(value); + } + + 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() { + if (desiredServiceExternalIpsConfigBuilder_ == null) { + desiredServiceExternalIpsConfig_ = null; + onChanged(); + } else { + desiredServiceExternalIpsConfig_ = null; + desiredServiceExternalIpsConfigBuilder_ = null; + } + + 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() { + + 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 ((bitField0_ & 0x00000002) != 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) { + bitField0_ |= 0x00000002; + desiredEnablePrivateEndpoint_ = value; + 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() { + bitField0_ = (bitField0_ & ~0x00000002); + 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; + 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(); + 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; + 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 desiredGcfsConfigBuilder_ != null || desiredGcfsConfig_ != null; + } + /** + * + * + *
+     * The desired GCFS config for the cluster
+     * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + * + * @return The desiredGcfsConfig. + */ + public com.google.container.v1.GcfsConfig getDesiredGcfsConfig() { + if (desiredGcfsConfigBuilder_ == null) { + return desiredGcfsConfig_ == null + ? com.google.container.v1.GcfsConfig.getDefaultInstance() + : desiredGcfsConfig_; + } else { + return desiredGcfsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired GCFS config for the cluster
+     * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + */ + public Builder setDesiredGcfsConfig(com.google.container.v1.GcfsConfig value) { + if (desiredGcfsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredGcfsConfig_ = value; + onChanged(); + } else { + desiredGcfsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired GCFS config for the cluster
+     * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + */ + public Builder setDesiredGcfsConfig( + com.google.container.v1.GcfsConfig.Builder builderForValue) { + if (desiredGcfsConfigBuilder_ == null) { + desiredGcfsConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredGcfsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired GCFS config for the cluster
+     * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + */ + public Builder mergeDesiredGcfsConfig(com.google.container.v1.GcfsConfig value) { + if (desiredGcfsConfigBuilder_ == null) { + if (desiredGcfsConfig_ != null) { + desiredGcfsConfig_ = + com.google.container.v1.GcfsConfig.newBuilder(desiredGcfsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredGcfsConfig_ = value; + } + onChanged(); + } else { + desiredGcfsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired GCFS config for the cluster
+     * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + */ + public Builder clearDesiredGcfsConfig() { + if (desiredGcfsConfigBuilder_ == null) { + desiredGcfsConfig_ = null; + onChanged(); + } else { + desiredGcfsConfig_ = null; + desiredGcfsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired GCFS config for the cluster
+     * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + */ + public com.google.container.v1.GcfsConfig.Builder getDesiredGcfsConfigBuilder() { + + onChanged(); + return getDesiredGcfsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired GCFS config for the cluster
+     * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + */ + public com.google.container.v1.GcfsConfigOrBuilder getDesiredGcfsConfigOrBuilder() { + if (desiredGcfsConfigBuilder_ != null) { + return desiredGcfsConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredGcfsConfig_ == null + ? com.google.container.v1.GcfsConfig.getDefaultInstance() + : desiredGcfsConfig_; + } + } + /** + * + * + *
+     * The desired GCFS config for the cluster
+     * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcfsConfig, + com.google.container.v1.GcfsConfig.Builder, + com.google.container.v1.GcfsConfigOrBuilder> + getDesiredGcfsConfigFieldBuilder() { + if (desiredGcfsConfigBuilder_ == null) { + desiredGcfsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcfsConfig, + com.google.container.v1.GcfsConfig.Builder, + com.google.container.v1.GcfsConfigOrBuilder>( + getDesiredGcfsConfig(), getParentForChildren(), isClean()); + desiredGcfsConfig_ = null; + } + return desiredGcfsConfigBuilder_; + } + + 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 desiredNodePoolAutoConfigNetworkTagsBuilder_ != null + || desiredNodePoolAutoConfigNetworkTags_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + desiredNodePoolAutoConfigNetworkTagsBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + desiredNodePoolAutoConfigNetworkTagsBuilder_.setMessage(builderForValue.build()); + } + + 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 (desiredNodePoolAutoConfigNetworkTags_ != null) { + desiredNodePoolAutoConfigNetworkTags_ = + com.google.container.v1.NetworkTags.newBuilder(desiredNodePoolAutoConfigNetworkTags_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredNodePoolAutoConfigNetworkTags_ = value; + } + onChanged(); + } else { + desiredNodePoolAutoConfigNetworkTagsBuilder_.mergeFrom(value); + } + + 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() { + if (desiredNodePoolAutoConfigNetworkTagsBuilder_ == null) { + desiredNodePoolAutoConfigNetworkTags_ = null; + onChanged(); + } else { + desiredNodePoolAutoConfigNetworkTags_ = null; + desiredNodePoolAutoConfigNetworkTagsBuilder_ = null; + } + + 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() { + + 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 desiredGatewayApiConfigBuilder_ != null || desiredGatewayApiConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + desiredGatewayApiConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + desiredGatewayApiConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (desiredGatewayApiConfig_ != null) { + desiredGatewayApiConfig_ = + com.google.container.v1.GatewayAPIConfig.newBuilder(desiredGatewayApiConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredGatewayApiConfig_ = value; + } + onChanged(); + } else { + desiredGatewayApiConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired config of Gateway API on this cluster.
+     * 
+ * + * .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; + */ + public Builder clearDesiredGatewayApiConfig() { + if (desiredGatewayApiConfigBuilder_ == null) { + desiredGatewayApiConfig_ = null; + onChanged(); + } else { + desiredGatewayApiConfig_ = null; + desiredGatewayApiConfigBuilder_ = null; + } + + 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() { + + 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 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 desiredNodePoolLoggingConfigBuilder_ != null || desiredNodePoolLoggingConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + desiredNodePoolLoggingConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + desiredNodePoolLoggingConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (desiredNodePoolLoggingConfig_ != null) { + desiredNodePoolLoggingConfig_ = + com.google.container.v1.NodePoolLoggingConfig.newBuilder( + desiredNodePoolLoggingConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredNodePoolLoggingConfig_ = value; + } + onChanged(); + } else { + desiredNodePoolLoggingConfigBuilder_.mergeFrom(value); + } + + 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() { + if (desiredNodePoolLoggingConfigBuilder_ == null) { + desiredNodePoolLoggingConfig_ = null; + onChanged(); + } else { + desiredNodePoolLoggingConfig_ = null; + desiredNodePoolLoggingConfigBuilder_ = null; + } + + 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() { + + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..0c5da93948d9 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java @@ -0,0 +1,1416 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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 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(); +} 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 new file mode 100644 index 000000000000..4b9929e497a6 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java @@ -0,0 +1,1261 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + 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=3579 + * @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=3579 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3585 + * @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=3585 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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=3589 + * @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=3589 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster 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(); + 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); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 58: + { + name_ = input.readStringRequireUtf8(); + + 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 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=3579 + * @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=3579 + * @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=3579 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/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=3579 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + 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=3579 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3585 + * @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=3585 + * @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=3585 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3585 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + 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=3585 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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=3589 + * @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=3589 + * @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=3589 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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=3589 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * + * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See + * google/container/v1/cluster_service.proto;l=3589 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..8b2ac3f0f689 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java @@ -0,0 +1,157 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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=3579 + * @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=3579 + * @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=3585 + * @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=3585 + * @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=3589 + * @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=3589 + * @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 new file mode 100644 index 000000000000..b72144367862 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteNodePoolUpgradeRequest.java @@ -0,0 +1,633 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + 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(); + 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); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..dd70b7346cd8 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteNodePoolUpgradeRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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 new file mode 100644 index 000000000000..6b5eb134720b --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfidentialNodes.java @@ -0,0 +1,528 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * ConfidentialNodes is configuration for the confidential nodes feature, which
+ * makes nodes run on confidential VMs.
+ * 
+ * + * Protobuf type {@code google.container.v1.ConfidentialNodes} + */ +public final class ConfidentialNodes extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.ConfidentialNodes) + ConfidentialNodesOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConfidentialNodes.newBuilder() to construct. + private ConfidentialNodes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConfidentialNodes() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConfidentialNodes(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ConfidentialNodes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ConfidentialNodes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ConfidentialNodes.class, + com.google.container.v1.ConfidentialNodes.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether Confidential Nodes feature is enabled.
+   * 
+ * + * 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(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ConfidentialNodes_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ConfidentialNodes getDefaultInstanceForType() { + return com.google.container.v1.ConfidentialNodes.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ConfidentialNodes build() { + com.google.container.v1.ConfidentialNodes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ConfidentialNodes buildPartial() { + com.google.container.v1.ConfidentialNodes result = + new com.google.container.v1.ConfidentialNodes(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ConfidentialNodes) { + return mergeFrom((com.google.container.v1.ConfidentialNodes) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ConfidentialNodes other) { + if (other == com.google.container.v1.ConfidentialNodes.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether Confidential Nodes feature is enabled.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.ConfidentialNodes) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ConfidentialNodes) + private static final com.google.container.v1.ConfidentialNodes DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.ConfidentialNodes(); + } + + public static com.google.container.v1.ConfidentialNodes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfidentialNodes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..845f4a12dd51 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfidentialNodesOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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 new file mode 100644 index 000000000000..5165b9df4dda --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfigConnectorConfig.java @@ -0,0 +1,526 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Configuration options for the Config Connector add-on.
+ * 
+ * + * Protobuf type {@code google.container.v1.ConfigConnectorConfig} + */ +public final class ConfigConnectorConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.ConfigConnectorConfig) + ConfigConnectorConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConfigConnectorConfig.newBuilder() to construct. + private ConfigConnectorConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConfigConnectorConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConfigConnectorConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ConfigConnectorConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ConfigConnectorConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ConfigConnectorConfig.class, + com.google.container.v1.ConfigConnectorConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether Cloud Connector is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + 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(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ConfigConnectorConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ConfigConnectorConfig getDefaultInstanceForType() { + return com.google.container.v1.ConfigConnectorConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ConfigConnectorConfig build() { + com.google.container.v1.ConfigConnectorConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ConfigConnectorConfig buildPartial() { + com.google.container.v1.ConfigConnectorConfig result = + new com.google.container.v1.ConfigConnectorConfig(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ConfigConnectorConfig) { + return mergeFrom((com.google.container.v1.ConfigConnectorConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ConfigConnectorConfig other) { + if (other == com.google.container.v1.ConfigConnectorConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 boolean enabled_; + /** + * + * + *
+     * Whether Cloud Connector is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether Cloud Connector is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether Cloud Connector is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.ConfigConnectorConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ConfigConnectorConfig) + private static final com.google.container.v1.ConfigConnectorConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.ConfigConnectorConfig(); + } + + public static com.google.container.v1.ConfigConnectorConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfigConnectorConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..c954a4408063 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfigConnectorConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface ConfigConnectorConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ConfigConnectorConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether Cloud Connector is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/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 new file mode 100644 index 000000000000..ac107bad5b93 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CostManagementConfig.java @@ -0,0 +1,526 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Configuration for 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * 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(); + 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); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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(); + + 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 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the feature is enabled or not.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.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 new file mode 100644 index 000000000000..d098c880edac --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CostManagementConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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 new file mode 100644 index 000000000000..92f24ecb00eb --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java @@ -0,0 +1,1337 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://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=2133 + * @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=2133 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Deprecated. The name of the Google Compute 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=2139 + * @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=2139 + * @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 cluster_ != null; + } + /** + * + * + *
+   * 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 getCluster(); + } + + public static final int PARENT_FIELD_NUMBER = 5; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * The parent (project and location) where the cluster will be created.
+   * Specified in the format `projects/*/locations/*`.
+   * 
+ * + * string parent = 5; + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * The parent (project and location) where the cluster will be created.
+   * Specified in the format `projects/*/locations/*`.
+   * 
+ * + * string parent = 5; + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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 (cluster_ != null) { + 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 (cluster_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + if (clusterBuilder_ == null) { + cluster_ = null; + } else { + cluster_ = null; + clusterBuilder_ = null; + } + parent_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.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); + result.projectId_ = projectId_; + result.zone_ = zone_; + if (clusterBuilder_ == null) { + result.cluster_ = cluster_; + } else { + result.cluster_ = clusterBuilder_.build(); + } + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (other.hasCluster()) { + mergeCluster(other.getCluster()); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getClusterFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 42: + { + parent_ = input.readStringRequireUtf8(); + + 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 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=2133 + * @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=2133 + * @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=2133 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The Google Developers Console [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=2133 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + 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=2133 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Deprecated. The name of the Google Compute 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=2139 + * @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=2139 + * @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=2139 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the Google Compute 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=2139 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + 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=2139 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private com.google.container.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 clusterBuilder_ != null || cluster_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + clusterBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + clusterBuilder_.setMessage(builderForValue.build()); + } + + 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 (cluster_ != null) { + cluster_ = + com.google.container.v1.Cluster.newBuilder(cluster_).mergeFrom(value).buildPartial(); + } else { + cluster_ = value; + } + onChanged(); + } else { + clusterBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. A [cluster
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
+     * 
+ * + * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCluster() { + if (clusterBuilder_ == null) { + cluster_ = null; + onChanged(); + } else { + cluster_ = null; + clusterBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. A [cluster
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
+     * 
+ * + * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1.Cluster.Builder getClusterBuilder() { + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * The parent (project and location) where the cluster will be created.
+     * Specified in the format `projects/*/locations/*`.
+     * 
+ * + * string parent = 5; + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * The parent (project and location) where the cluster will be created.
+     * Specified in the format `projects/*/locations/*`.
+     * 
+ * + * string parent = 5; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..650795aa0d60 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java @@ -0,0 +1,165 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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=2133 + * @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=2133 + * @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=2139 + * @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=2139 + * @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 new file mode 100644 index 000000000000..a8732ba23013 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java @@ -0,0 +1,1544 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://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=2712 + * @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=2712 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Deprecated. The name of the Google Compute 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=2718 + * @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=2718 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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=2722 + * @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=2722 + * @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 nodePool_ != null; + } + /** + * + * + *
+   * 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 getNodePool(); + } + + public static final int PARENT_FIELD_NUMBER = 6; + 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 (nodePool_ != null) { + 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 (nodePool_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + if (nodePoolBuilder_ == null) { + nodePool_ = null; + } else { + nodePool_ = null; + nodePoolBuilder_ = null; + } + parent_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.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); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + if (nodePoolBuilder_ == null) { + result.nodePool_ = nodePool_; + } else { + result.nodePool_ = nodePoolBuilder_.build(); + } + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (other.hasNodePool()) { + mergeNodePool(other.getNodePool()); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + input.readMessage(getNodePoolFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 50: + { + parent_ = input.readStringRequireUtf8(); + + 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 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=2712 + * @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=2712 + * @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=2712 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The Google Developers Console [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=2712 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + 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=2712 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Deprecated. The name of the Google Compute 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=2718 + * @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=2718 + * @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=2718 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the Google Compute 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=2718 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + 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=2718 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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=2722 + * @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=2722 + * @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=2722 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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=2722 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * + * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See + * google/container/v1/cluster_service.proto;l=2722 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.container.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 nodePoolBuilder_ != null || nodePool_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + nodePoolBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + nodePoolBuilder_.setMessage(builderForValue.build()); + } + + 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 (nodePool_ != null) { + nodePool_ = + com.google.container.v1.NodePool.newBuilder(nodePool_) + .mergeFrom(value) + .buildPartial(); + } else { + nodePool_ = value; + } + onChanged(); + } else { + nodePoolBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The node pool to create.
+     * 
+ * + * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearNodePool() { + if (nodePoolBuilder_ == null) { + nodePool_ = null; + onChanged(); + } else { + nodePool_ = null; + nodePoolBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The node pool to create.
+     * 
+ * + * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1.NodePool.Builder getNodePoolBuilder() { + + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..fc6e8aa2feac --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java @@ -0,0 +1,197 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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=2712 + * @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=2712 + * @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=2718 + * @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=2718 + * @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=2722 + * @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=2722 + * @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 new file mode 100644 index 000000000000..3a9c3dfb5f6f --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DNSConfig.java @@ -0,0 +1,1205 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * DNSConfig contains the desired set of options for configuring clusterDNS.
+ * 
+ * + * Protobuf type {@code google.container.v1.DNSConfig} + */ +public final class DNSConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.DNSConfig) + DNSConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use DNSConfig.newBuilder() to construct. + private DNSConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DNSConfig() { + clusterDns_ = 0; + clusterDnsScope_ = 0; + clusterDnsDomain_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DNSConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_DNSConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_DNSConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.DNSConfig.class, + com.google.container.v1.DNSConfig.Builder.class); + } + + /** + * + * + *
+   * Provider lists the various in-cluster DNS providers.
+   * 
+ * + * Protobuf enum {@code google.container.v1.DNSConfig.Provider} + */ + public enum Provider implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value
+     * 
+ * + * PROVIDER_UNSPECIFIED = 0; + */ + PROVIDER_UNSPECIFIED(0), + /** + * + * + *
+     * Use GKE default DNS provider(kube-dns) for DNS resolution.
+     * 
+ * + * PLATFORM_DEFAULT = 1; + */ + PLATFORM_DEFAULT(1), + /** + * + * + *
+     * Use CloudDNS for DNS resolution.
+     * 
+ * + * CLOUD_DNS = 2; + */ + CLOUD_DNS(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value
+     * 
+ * + * PROVIDER_UNSPECIFIED = 0; + */ + public static final int PROVIDER_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Use GKE default DNS provider(kube-dns) for DNS resolution.
+     * 
+ * + * PLATFORM_DEFAULT = 1; + */ + public static final int PLATFORM_DEFAULT_VALUE = 1; + /** + * + * + *
+     * Use CloudDNS for DNS resolution.
+     * 
+ * + * CLOUD_DNS = 2; + */ + public static final int CLOUD_DNS_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Provider valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Provider forNumber(int value) { + switch (value) { + case 0: + return PROVIDER_UNSPECIFIED; + case 1: + return PLATFORM_DEFAULT; + case 2: + return CLOUD_DNS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Provider findValueByNumber(int number) { + return Provider.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1.DNSConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final Provider[] VALUES = values(); + + public static Provider valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Provider(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.DNSConfig.Provider) + } + + /** + * + * + *
+   * DNSScope lists the various scopes of access to cluster DNS records.
+   * 
+ * + * Protobuf enum {@code google.container.v1.DNSConfig.DNSScope} + */ + public enum DNSScope implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value, will be inferred as cluster scope.
+     * 
+ * + * DNS_SCOPE_UNSPECIFIED = 0; + */ + DNS_SCOPE_UNSPECIFIED(0), + /** + * + * + *
+     * DNS records are accessible from within the VPC.
+     * 
+ * + * VPC_SCOPE = 2; + */ + VPC_SCOPE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value, will be inferred as cluster scope.
+     * 
+ * + * DNS_SCOPE_UNSPECIFIED = 0; + */ + public static final int DNS_SCOPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * DNS records are accessible from within the VPC.
+     * 
+ * + * VPC_SCOPE = 2; + */ + public static final int VPC_SCOPE_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DNSScope valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DNSScope forNumber(int value) { + switch (value) { + case 0: + return DNS_SCOPE_UNSPECIFIED; + case 2: + return VPC_SCOPE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DNSScope findValueByNumber(int number) { + return DNSScope.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1.DNSConfig.getDescriptor().getEnumTypes().get(1); + } + + private static final DNSScope[] VALUES = values(); + + public static DNSScope valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DNSScope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.DNSConfig.DNSScope) + } + + public static final int CLUSTER_DNS_FIELD_NUMBER = 1; + private int clusterDns_; + /** + * + * + *
+   * cluster_dns indicates which in-cluster DNS provider should be used.
+   * 
+ * + * .google.container.v1.DNSConfig.Provider cluster_dns = 1; + * + * @return The enum numeric value on the wire for clusterDns. + */ + @java.lang.Override + public int getClusterDnsValue() { + return clusterDns_; + } + /** + * + * + *
+   * cluster_dns indicates which in-cluster DNS provider should be used.
+   * 
+ * + * .google.container.v1.DNSConfig.Provider cluster_dns = 1; + * + * @return The clusterDns. + */ + @java.lang.Override + public com.google.container.v1.DNSConfig.Provider getClusterDns() { + @SuppressWarnings("deprecation") + com.google.container.v1.DNSConfig.Provider result = + com.google.container.v1.DNSConfig.Provider.valueOf(clusterDns_); + return result == null ? com.google.container.v1.DNSConfig.Provider.UNRECOGNIZED : result; + } + + public static final int CLUSTER_DNS_SCOPE_FIELD_NUMBER = 2; + private int clusterDnsScope_; + /** + * + * + *
+   * cluster_dns_scope indicates the scope of access to cluster DNS records.
+   * 
+ * + * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; + * + * @return The enum numeric value on the wire for clusterDnsScope. + */ + @java.lang.Override + public int getClusterDnsScopeValue() { + return clusterDnsScope_; + } + /** + * + * + *
+   * cluster_dns_scope indicates the scope of access to cluster DNS records.
+   * 
+ * + * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; + * + * @return The clusterDnsScope. + */ + @java.lang.Override + public com.google.container.v1.DNSConfig.DNSScope getClusterDnsScope() { + @SuppressWarnings("deprecation") + com.google.container.v1.DNSConfig.DNSScope result = + com.google.container.v1.DNSConfig.DNSScope.valueOf(clusterDnsScope_); + return result == null ? com.google.container.v1.DNSConfig.DNSScope.UNRECOGNIZED : result; + } + + public static final int CLUSTER_DNS_DOMAIN_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterDnsDomain_; + /** + * + * + *
+   * cluster_dns_domain is the suffix used for all cluster service records.
+   * 
+ * + * string cluster_dns_domain = 3; + * + * @return The clusterDnsDomain. + */ + @java.lang.Override + public java.lang.String getClusterDnsDomain() { + java.lang.Object ref = clusterDnsDomain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterDnsDomain_ = s; + return s; + } + } + /** + * + * + *
+   * cluster_dns_domain is the suffix used for all cluster service records.
+   * 
+ * + * string cluster_dns_domain = 3; + * + * @return The bytes for clusterDnsDomain. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterDnsDomainBytes() { + java.lang.Object ref = clusterDnsDomain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterDnsDomain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (clusterDns_ + != com.google.container.v1.DNSConfig.Provider.PROVIDER_UNSPECIFIED.getNumber()) { + output.writeEnum(1, clusterDns_); + } + if (clusterDnsScope_ + != com.google.container.v1.DNSConfig.DNSScope.DNS_SCOPE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, clusterDnsScope_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterDnsDomain_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterDnsDomain_); + } + 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(); + clusterDns_ = 0; + + clusterDnsScope_ = 0; + + clusterDnsDomain_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_DNSConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.DNSConfig getDefaultInstanceForType() { + return com.google.container.v1.DNSConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.DNSConfig build() { + com.google.container.v1.DNSConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.DNSConfig buildPartial() { + com.google.container.v1.DNSConfig result = new com.google.container.v1.DNSConfig(this); + result.clusterDns_ = clusterDns_; + result.clusterDnsScope_ = clusterDnsScope_; + result.clusterDnsDomain_ = clusterDnsDomain_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.DNSConfig) { + return mergeFrom((com.google.container.v1.DNSConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.DNSConfig other) { + if (other == com.google.container.v1.DNSConfig.getDefaultInstance()) return this; + if (other.clusterDns_ != 0) { + setClusterDnsValue(other.getClusterDnsValue()); + } + if (other.clusterDnsScope_ != 0) { + setClusterDnsScopeValue(other.getClusterDnsScopeValue()); + } + if (!other.getClusterDnsDomain().isEmpty()) { + clusterDnsDomain_ = other.clusterDnsDomain_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 8 + case 16: + { + clusterDnsScope_ = input.readEnum(); + + break; + } // case 16 + case 26: + { + clusterDnsDomain_ = input.readStringRequireUtf8(); + + 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 clusterDns_ = 0; + /** + * + * + *
+     * cluster_dns indicates which in-cluster DNS provider should be used.
+     * 
+ * + * .google.container.v1.DNSConfig.Provider cluster_dns = 1; + * + * @return The enum numeric value on the wire for clusterDns. + */ + @java.lang.Override + public int getClusterDnsValue() { + return clusterDns_; + } + /** + * + * + *
+     * cluster_dns indicates which in-cluster DNS provider should be used.
+     * 
+ * + * .google.container.v1.DNSConfig.Provider cluster_dns = 1; + * + * @param value The enum numeric value on the wire for clusterDns to set. + * @return This builder for chaining. + */ + public Builder setClusterDnsValue(int value) { + + clusterDns_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * cluster_dns indicates which in-cluster DNS provider should be used.
+     * 
+ * + * .google.container.v1.DNSConfig.Provider cluster_dns = 1; + * + * @return The clusterDns. + */ + @java.lang.Override + public com.google.container.v1.DNSConfig.Provider getClusterDns() { + @SuppressWarnings("deprecation") + com.google.container.v1.DNSConfig.Provider result = + com.google.container.v1.DNSConfig.Provider.valueOf(clusterDns_); + return result == null ? com.google.container.v1.DNSConfig.Provider.UNRECOGNIZED : result; + } + /** + * + * + *
+     * cluster_dns indicates which in-cluster DNS provider should be used.
+     * 
+ * + * .google.container.v1.DNSConfig.Provider cluster_dns = 1; + * + * @param value The clusterDns to set. + * @return This builder for chaining. + */ + public Builder setClusterDns(com.google.container.v1.DNSConfig.Provider value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterDns_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * cluster_dns indicates which in-cluster DNS provider should be used.
+     * 
+ * + * .google.container.v1.DNSConfig.Provider cluster_dns = 1; + * + * @return This builder for chaining. + */ + public Builder clearClusterDns() { + + clusterDns_ = 0; + onChanged(); + return this; + } + + private int clusterDnsScope_ = 0; + /** + * + * + *
+     * cluster_dns_scope indicates the scope of access to cluster DNS records.
+     * 
+ * + * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; + * + * @return The enum numeric value on the wire for clusterDnsScope. + */ + @java.lang.Override + public int getClusterDnsScopeValue() { + return clusterDnsScope_; + } + /** + * + * + *
+     * cluster_dns_scope indicates the scope of access to cluster DNS records.
+     * 
+ * + * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; + * + * @param value The enum numeric value on the wire for clusterDnsScope to set. + * @return This builder for chaining. + */ + public Builder setClusterDnsScopeValue(int value) { + + clusterDnsScope_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * cluster_dns_scope indicates the scope of access to cluster DNS records.
+     * 
+ * + * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; + * + * @return The clusterDnsScope. + */ + @java.lang.Override + public com.google.container.v1.DNSConfig.DNSScope getClusterDnsScope() { + @SuppressWarnings("deprecation") + com.google.container.v1.DNSConfig.DNSScope result = + com.google.container.v1.DNSConfig.DNSScope.valueOf(clusterDnsScope_); + return result == null ? com.google.container.v1.DNSConfig.DNSScope.UNRECOGNIZED : result; + } + /** + * + * + *
+     * cluster_dns_scope indicates the scope of access to cluster DNS records.
+     * 
+ * + * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; + * + * @param value The clusterDnsScope to set. + * @return This builder for chaining. + */ + public Builder setClusterDnsScope(com.google.container.v1.DNSConfig.DNSScope value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterDnsScope_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * cluster_dns_scope indicates the scope of access to cluster DNS records.
+     * 
+ * + * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; + * + * @return This builder for chaining. + */ + public Builder clearClusterDnsScope() { + + clusterDnsScope_ = 0; + onChanged(); + return this; + } + + private java.lang.Object clusterDnsDomain_ = ""; + /** + * + * + *
+     * cluster_dns_domain is the suffix used for all cluster service records.
+     * 
+ * + * string cluster_dns_domain = 3; + * + * @return The clusterDnsDomain. + */ + public java.lang.String getClusterDnsDomain() { + java.lang.Object ref = clusterDnsDomain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterDnsDomain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * cluster_dns_domain is the suffix used for all cluster service records.
+     * 
+ * + * string cluster_dns_domain = 3; + * + * @return The bytes for clusterDnsDomain. + */ + public com.google.protobuf.ByteString getClusterDnsDomainBytes() { + java.lang.Object ref = clusterDnsDomain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterDnsDomain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * cluster_dns_domain is the suffix used for all cluster service records.
+     * 
+ * + * string cluster_dns_domain = 3; + * + * @param value The clusterDnsDomain to set. + * @return This builder for chaining. + */ + public Builder setClusterDnsDomain(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterDnsDomain_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * cluster_dns_domain is the suffix used for all cluster service records.
+     * 
+ * + * string cluster_dns_domain = 3; + * + * @return This builder for chaining. + */ + public Builder clearClusterDnsDomain() { + + clusterDnsDomain_ = getDefaultInstance().getClusterDnsDomain(); + onChanged(); + return this; + } + /** + * + * + *
+     * cluster_dns_domain is the suffix used for all cluster service records.
+     * 
+ * + * string cluster_dns_domain = 3; + * + * @param value The bytes for clusterDnsDomain to set. + * @return This builder for chaining. + */ + public Builder setClusterDnsDomainBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterDnsDomain_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.DNSConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.DNSConfig) + private static final com.google.container.v1.DNSConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.DNSConfig(); + } + + public static com.google.container.v1.DNSConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DNSConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..2e1cf9377c63 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DNSConfigOrBuilder.java @@ -0,0 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface DNSConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.DNSConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * cluster_dns indicates which in-cluster DNS provider should be used.
+   * 
+ * + * .google.container.v1.DNSConfig.Provider cluster_dns = 1; + * + * @return The enum numeric value on the wire for clusterDns. + */ + int getClusterDnsValue(); + /** + * + * + *
+   * cluster_dns indicates which in-cluster DNS provider should be used.
+   * 
+ * + * .google.container.v1.DNSConfig.Provider cluster_dns = 1; + * + * @return The clusterDns. + */ + com.google.container.v1.DNSConfig.Provider getClusterDns(); + + /** + * + * + *
+   * cluster_dns_scope indicates the scope of access to cluster DNS records.
+   * 
+ * + * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; + * + * @return The enum numeric value on the wire for clusterDnsScope. + */ + int getClusterDnsScopeValue(); + /** + * + * + *
+   * cluster_dns_scope indicates the scope of access to cluster DNS records.
+   * 
+ * + * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; + * + * @return The clusterDnsScope. + */ + com.google.container.v1.DNSConfig.DNSScope getClusterDnsScope(); + + /** + * + * + *
+   * cluster_dns_domain is the suffix used for all cluster service records.
+   * 
+ * + * string cluster_dns_domain = 3; + * + * @return The clusterDnsDomain. + */ + java.lang.String getClusterDnsDomain(); + /** + * + * + *
+   * cluster_dns_domain is the suffix used for all cluster service records.
+   * 
+ * + * string cluster_dns_domain = 3; + * + * @return The bytes for clusterDnsDomain. + */ + com.google.protobuf.ByteString getClusterDnsDomainBytes(); +} diff --git a/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 new file mode 100644 index 000000000000..292f14348c1e --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindow.java @@ -0,0 +1,827 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + 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; + 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(); + 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); + result.startTime_ = startTime_; + result.duration_ = duration_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getDuration().isEmpty()) { + duration_ = other.duration_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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(); + + break; + } // case 18 + case 26: + { + duration_ = input.readStringRequireUtf8(); + + 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 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; + 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(); + 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; + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..3367a4edc193 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindowOrBuilder.java @@ -0,0 +1,85 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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 new file mode 100644 index 000000000000..2d51a90b5b11 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatabaseEncryption.java @@ -0,0 +1,931 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Configuration of 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() { + state_ = 0; + keyName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DatabaseEncryption(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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 STATE_FIELD_NUMBER = 2; + private int state_; + /** + * + * + *
+   * Denotes the 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_; + } + /** + * + * + *
+   * Denotes the 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() { + @SuppressWarnings("deprecation") + com.google.container.v1.DatabaseEncryption.State result = + com.google.container.v1.DatabaseEncryption.State.valueOf(state_); + return result == null ? com.google.container.v1.DatabaseEncryption.State.UNRECOGNIZED : result; + } + + public static final int KEY_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object keyName_; + /** + * + * + *
+   * Name of CloudKMS key to use for the encryption of secrets in etcd.
+   * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
+   * 
+ * + * string key_name = 1; + * + * @return The keyName. + */ + @java.lang.Override + public java.lang.String getKeyName() { + java.lang.Object ref = keyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + keyName_ = s; + return s; + } + } + /** + * + * + *
+   * Name of CloudKMS key to use for the encryption of secrets in etcd.
+   * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
+   * 
+ * + * string key_name = 1; + * + * @return The bytes for keyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyNameBytes() { + java.lang.Object ref = keyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + keyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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 (state_ != other.state_) return false; + if (!getKeyName().equals(other.getKeyName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + KEY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getKeyName().hashCode(); + hash = (29 * hash) + 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(); + state_ = 0; + + keyName_ = ""; + + 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); + result.state_ = state_; + result.keyName_ = keyName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getKeyName().isEmpty()) { + keyName_ = other.keyName_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 16: + { + state_ = input.readEnum(); + + 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 state_ = 0; + /** + * + * + *
+     * Denotes the 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_; + } + /** + * + * + *
+     * Denotes the 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Denotes the 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() { + @SuppressWarnings("deprecation") + com.google.container.v1.DatabaseEncryption.State result = + com.google.container.v1.DatabaseEncryption.State.valueOf(state_); + return result == null + ? com.google.container.v1.DatabaseEncryption.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Denotes the 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(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Denotes the state of etcd encryption.
+     * 
+ * + * .google.container.v1.DatabaseEncryption.State state = 2; + * + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object keyName_ = ""; + /** + * + * + *
+     * Name of CloudKMS key to use for the encryption of secrets in etcd.
+     * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
+     * 
+ * + * string key_name = 1; + * + * @return The keyName. + */ + public java.lang.String getKeyName() { + java.lang.Object ref = keyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + keyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Name of CloudKMS key to use for the encryption of secrets in etcd.
+     * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
+     * 
+ * + * string key_name = 1; + * + * @return The bytes for keyName. + */ + public com.google.protobuf.ByteString getKeyNameBytes() { + java.lang.Object ref = keyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + keyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Name of CloudKMS key to use for the encryption of secrets in etcd.
+     * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
+     * 
+ * + * string key_name = 1; + * + * @param value The keyName to set. + * @return This builder for chaining. + */ + public Builder setKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + keyName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Name of CloudKMS key to use for the encryption of secrets in etcd.
+     * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
+     * 
+ * + * string key_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearKeyName() { + + keyName_ = getDefaultInstance().getKeyName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Name of CloudKMS key to use for the encryption of secrets in etcd.
+     * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
+     * 
+ * + * string key_name = 1; + * + * @param value The bytes for keyName to set. + * @return This builder for chaining. + */ + public Builder setKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + keyName_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..ecc94abaec3e --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatabaseEncryptionOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface DatabaseEncryptionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.DatabaseEncryption) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Denotes the state of etcd encryption.
+   * 
+ * + * .google.container.v1.DatabaseEncryption.State state = 2; + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Denotes the state of etcd encryption.
+   * 
+ * + * .google.container.v1.DatabaseEncryption.State state = 2; + * + * @return The state. + */ + com.google.container.v1.DatabaseEncryption.State getState(); + + /** + * + * + *
+   * Name of CloudKMS key to use for the encryption of secrets in etcd.
+   * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
+   * 
+ * + * string key_name = 1; + * + * @return The keyName. + */ + java.lang.String getKeyName(); + /** + * + * + *
+   * Name of CloudKMS key to use for the encryption of secrets in etcd.
+   * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
+   * 
+ * + * string key_name = 1; + * + * @return The bytes for keyName. + */ + com.google.protobuf.ByteString getKeyNameBytes(); +} diff --git a/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 new file mode 100644 index 000000000000..89b85b88b22c --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatapathProvider.java @@ -0,0 +1,183 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * The datapath provider selects the implementation of the Kubernetes networking
+ * model for service resolution and network policy enforcement.
+ * 
+ * + * Protobuf enum {@code google.container.v1.DatapathProvider} + */ +public enum DatapathProvider implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value.
+   * 
+ * + * DATAPATH_PROVIDER_UNSPECIFIED = 0; + */ + DATAPATH_PROVIDER_UNSPECIFIED(0), + /** + * + * + *
+   * Use the IPTables implementation based on kube-proxy.
+   * 
+ * + * LEGACY_DATAPATH = 1; + */ + LEGACY_DATAPATH(1), + /** + * + * + *
+   * Use the eBPF based GKE Dataplane V2 with additional features. See the [GKE
+   * Dataplane V2
+   * documentation](https://cloud.google.com/kubernetes-engine/docs/how-to/dataplane-v2)
+   * for more.
+   * 
+ * + * ADVANCED_DATAPATH = 2; + */ + ADVANCED_DATAPATH(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default value.
+   * 
+ * + * DATAPATH_PROVIDER_UNSPECIFIED = 0; + */ + public static final int DATAPATH_PROVIDER_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Use the IPTables implementation based on kube-proxy.
+   * 
+ * + * LEGACY_DATAPATH = 1; + */ + public static final int LEGACY_DATAPATH_VALUE = 1; + /** + * + * + *
+   * Use the eBPF based GKE Dataplane V2 with additional features. See the [GKE
+   * Dataplane V2
+   * documentation](https://cloud.google.com/kubernetes-engine/docs/how-to/dataplane-v2)
+   * for more.
+   * 
+ * + * ADVANCED_DATAPATH = 2; + */ + public static final int ADVANCED_DATAPATH_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DatapathProvider valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DatapathProvider forNumber(int value) { + switch (value) { + case 0: + return DATAPATH_PROVIDER_UNSPECIFIED; + case 1: + return LEGACY_DATAPATH; + case 2: + return ADVANCED_DATAPATH; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DatapathProvider findValueByNumber(int number) { + return DatapathProvider.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto.getDescriptor().getEnumTypes().get(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 new file mode 100644 index 000000000000..b04914d7f39c --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DefaultSnatStatus.java @@ -0,0 +1,528 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * DefaultSnatStatus contains the desired state of whether default sNAT should
+ * be disabled on the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.DefaultSnatStatus} + */ +public final class DefaultSnatStatus extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.DefaultSnatStatus) + DefaultSnatStatusOrBuilder { + private static final long serialVersionUID = 0L; + // Use DefaultSnatStatus.newBuilder() to construct. + private DefaultSnatStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DefaultSnatStatus() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DefaultSnatStatus(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_DefaultSnatStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_DefaultSnatStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.DefaultSnatStatus.class, + com.google.container.v1.DefaultSnatStatus.Builder.class); + } + + public static final int DISABLED_FIELD_NUMBER = 1; + private boolean disabled_; + /** + * + * + *
+   * Disables cluster default sNAT rules.
+   * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (disabled_ != false) { + output.writeBool(1, disabled_); + } + 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(); + disabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_DefaultSnatStatus_descriptor; + } + + @java.lang.Override + public com.google.container.v1.DefaultSnatStatus getDefaultInstanceForType() { + return com.google.container.v1.DefaultSnatStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.DefaultSnatStatus build() { + com.google.container.v1.DefaultSnatStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.DefaultSnatStatus buildPartial() { + com.google.container.v1.DefaultSnatStatus result = + new com.google.container.v1.DefaultSnatStatus(this); + result.disabled_ = disabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.DefaultSnatStatus) { + return mergeFrom((com.google.container.v1.DefaultSnatStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.DefaultSnatStatus other) { + if (other == com.google.container.v1.DefaultSnatStatus.getDefaultInstance()) return this; + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 boolean disabled_; + /** + * + * + *
+     * Disables cluster default sNAT rules.
+     * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + /** + * + * + *
+     * Disables cluster default sNAT rules.
+     * 
+ * + * bool disabled = 1; + * + * @param value The disabled to set. + * @return This builder for chaining. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Disables cluster default sNAT rules.
+     * 
+ * + * bool disabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisabled() { + + disabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.DefaultSnatStatus) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.DefaultSnatStatus) + private static final com.google.container.v1.DefaultSnatStatus DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.DefaultSnatStatus(); + } + + public static com.google.container.v1.DefaultSnatStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DefaultSnatStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..d6c81209e69c --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DefaultSnatStatusOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface DefaultSnatStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.DefaultSnatStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Disables cluster default sNAT rules.
+   * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + boolean getDisabled(); +} diff --git a/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 new file mode 100644 index 000000000000..9cac358a31e3 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java @@ -0,0 +1,1260 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + 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=2536 + * @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=2536 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2542 + * @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=2542 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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=2546 + * @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=2546 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to delete.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 4; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to delete.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 4; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + 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); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + name_ = input.readStringRequireUtf8(); + + 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 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=2536 + * @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=2536 + * @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=2536 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/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=2536 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + 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=2536 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2542 + * @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=2542 + * @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=2542 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2542 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + 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=2542 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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=2546 + * @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=2546 + * @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=2546 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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=2546 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the cluster to delete.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * + * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See + * google/container/v1/cluster_service.proto;l=2546 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to delete.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 4; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to delete.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 4; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to delete.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 4; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to delete.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 4; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to delete.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 4; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..7854ca3c00e1 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java @@ -0,0 +1,157 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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=2536 + * @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=2536 + * @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=2542 + * @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=2542 + * @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=2546 + * @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=2546 + * @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 new file mode 100644 index 000000000000..00bc92fd819f --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java @@ -0,0 +1,1473 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + 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=2738 + * @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=2738 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2744 + * @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=2744 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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=2748 + * @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=2748 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object nodePoolId_; + /** + * + * + *
+   * 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=2752 + * @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=2752 + * @return The bytes for nodePoolId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * delete. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 6; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * delete. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + 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); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.nodePoolId_ = nodePoolId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + nodePoolId_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 50: + { + name_ = input.readStringRequireUtf8(); + + 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 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=2738 + * @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=2738 + * @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=2738 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/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=2738 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + 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=2738 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2744 + * @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=2744 + * @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=2744 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2744 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + 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=2744 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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=2748 + * @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=2748 + * @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=2748 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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=2748 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * + * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See + * google/container/v1/cluster_service.proto;l=2748 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + * + * + *
+     * 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=2752 + * @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=2752 + * @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=2752 + * @param value The nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodePoolId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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=2752 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearNodePoolId() { + + nodePoolId_ = getDefaultInstance().getNodePoolId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the node pool to delete.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * + * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See + * google/container/v1/cluster_service.proto;l=2752 + * @param value The bytes for nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodePoolId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * delete. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * delete. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * delete. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * delete. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * delete. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..051c5c0601d2 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java @@ -0,0 +1,192 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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=2738 + * @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=2738 + * @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=2744 + * @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=2744 + * @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=2748 + * @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=2748 + * @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=2752 + * @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=2752 + * @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 new file mode 100644 index 000000000000..42d89a27b8ec --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DnsCacheConfig.java @@ -0,0 +1,525 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Configuration for NodeLocal DNSCache
+ * 
+ * + * Protobuf type {@code google.container.v1.DnsCacheConfig} + */ +public final class DnsCacheConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.DnsCacheConfig) + DnsCacheConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use DnsCacheConfig.newBuilder() to construct. + private DnsCacheConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DnsCacheConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DnsCacheConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_DnsCacheConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_DnsCacheConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.DnsCacheConfig.class, + com.google.container.v1.DnsCacheConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether NodeLocal DNSCache is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + 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(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_DnsCacheConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.DnsCacheConfig getDefaultInstanceForType() { + return com.google.container.v1.DnsCacheConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.DnsCacheConfig build() { + com.google.container.v1.DnsCacheConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.DnsCacheConfig buildPartial() { + com.google.container.v1.DnsCacheConfig result = + new com.google.container.v1.DnsCacheConfig(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.DnsCacheConfig) { + return mergeFrom((com.google.container.v1.DnsCacheConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.DnsCacheConfig other) { + if (other == com.google.container.v1.DnsCacheConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 boolean enabled_; + /** + * + * + *
+     * Whether NodeLocal DNSCache is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether NodeLocal DNSCache is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether NodeLocal DNSCache is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.DnsCacheConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.DnsCacheConfig) + private static final com.google.container.v1.DnsCacheConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.DnsCacheConfig(); + } + + public static com.google.container.v1.DnsCacheConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DnsCacheConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..aa30a25d141a --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DnsCacheConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface DnsCacheConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.DnsCacheConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether NodeLocal DNSCache is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/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 new file mode 100644 index 000000000000..78de9c49a70c --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GPUSharingConfig.java @@ -0,0 +1,882 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * 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_; + /** + * + * + *
+   * 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() { + @SuppressWarnings("deprecation") + com.google.container.v1.GPUSharingConfig.GPUSharingStrategy result = + com.google.container.v1.GPUSharingConfig.GPUSharingStrategy.valueOf(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(); + maxSharedClientsPerGpu_ = 0L; + + gpuSharingStrategy_ = 0; + 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_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); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.maxSharedClientsPerGpu_ = maxSharedClientsPerGpu_; + if (((from_bitField0_ & 0x00000001) != 0)) { + to_bitField0_ |= 0x00000001; + } + result.gpuSharingStrategy_ = gpuSharingStrategy_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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(); + + break; + } // case 8 + case 16: + { + gpuSharingStrategy_ = 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 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; + 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() { + + 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_ & 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; + * + * + * @param value The enum numeric value on the wire for gpuSharingStrategy to set. + * @return This builder for chaining. + */ + public Builder setGpuSharingStrategyValue(int value) { + bitField0_ |= 0x00000001; + gpuSharingStrategy_ = value; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1.GPUSharingConfig.GPUSharingStrategy result = + com.google.container.v1.GPUSharingConfig.GPUSharingStrategy.valueOf(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_ |= 0x00000001; + 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_ & ~0x00000001); + 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 new file mode 100644 index 000000000000..b259514e2645 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GPUSharingConfigOrBuilder.java @@ -0,0 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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 new file mode 100644 index 000000000000..cf2a66a6776e --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GatewayAPIConfig.java @@ -0,0 +1,768 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * 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() { + @SuppressWarnings("deprecation") + com.google.container.v1.GatewayAPIConfig.Channel result = + com.google.container.v1.GatewayAPIConfig.Channel.valueOf(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(); + 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); + result.channel_ = channel_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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(); + + 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 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; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1.GatewayAPIConfig.Channel result = + com.google.container.v1.GatewayAPIConfig.Channel.valueOf(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(); + } + + 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() { + + 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 new file mode 100644 index 000000000000..f3c6d01e77ce --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GatewayAPIConfigOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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 new file mode 100644 index 000000000000..dd335385d18c --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcePersistentDiskCsiDriverConfig.java @@ -0,0 +1,529 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Configuration for the Compute Engine PD CSI driver.
+ * 
+ * + * Protobuf type {@code google.container.v1.GcePersistentDiskCsiDriverConfig} + */ +public final class GcePersistentDiskCsiDriverConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.GcePersistentDiskCsiDriverConfig) + GcePersistentDiskCsiDriverConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use GcePersistentDiskCsiDriverConfig.newBuilder() to construct. + private GcePersistentDiskCsiDriverConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GcePersistentDiskCsiDriverConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GcePersistentDiskCsiDriverConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GcePersistentDiskCsiDriverConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GcePersistentDiskCsiDriverConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GcePersistentDiskCsiDriverConfig.class, + com.google.container.v1.GcePersistentDiskCsiDriverConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether the Compute Engine PD CSI driver is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + 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(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GcePersistentDiskCsiDriverConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.GcePersistentDiskCsiDriverConfig getDefaultInstanceForType() { + return com.google.container.v1.GcePersistentDiskCsiDriverConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.GcePersistentDiskCsiDriverConfig build() { + com.google.container.v1.GcePersistentDiskCsiDriverConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.GcePersistentDiskCsiDriverConfig buildPartial() { + com.google.container.v1.GcePersistentDiskCsiDriverConfig result = + new com.google.container.v1.GcePersistentDiskCsiDriverConfig(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.GcePersistentDiskCsiDriverConfig) { + return mergeFrom((com.google.container.v1.GcePersistentDiskCsiDriverConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.GcePersistentDiskCsiDriverConfig other) { + if (other == com.google.container.v1.GcePersistentDiskCsiDriverConfig.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 boolean enabled_; + /** + * + * + *
+     * Whether the Compute Engine PD CSI driver is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether the Compute Engine PD CSI driver is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the Compute Engine PD CSI driver is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.GcePersistentDiskCsiDriverConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.GcePersistentDiskCsiDriverConfig) + private static final com.google.container.v1.GcePersistentDiskCsiDriverConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.GcePersistentDiskCsiDriverConfig(); + } + + public static com.google.container.v1.GcePersistentDiskCsiDriverConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcePersistentDiskCsiDriverConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..9e3e81556c7a --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcePersistentDiskCsiDriverConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface GcePersistentDiskCsiDriverConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.GcePersistentDiskCsiDriverConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether the Compute Engine PD CSI driver is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/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 new file mode 100644 index 000000000000..c8e4473ab13e --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcfsConfig.java @@ -0,0 +1,525 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * GcfsConfig contains configurations of Google Container File System
+ * (image streaming).
+ * 
+ * + * Protobuf type {@code google.container.v1.GcfsConfig} + */ +public final class GcfsConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.GcfsConfig) + GcfsConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use GcfsConfig.newBuilder() to construct. + private GcfsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GcfsConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GcfsConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GcfsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GcfsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GcfsConfig.class, + com.google.container.v1.GcfsConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether to use GCFS.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + 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(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GcfsConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.GcfsConfig getDefaultInstanceForType() { + return com.google.container.v1.GcfsConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.GcfsConfig build() { + com.google.container.v1.GcfsConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.GcfsConfig buildPartial() { + com.google.container.v1.GcfsConfig result = new com.google.container.v1.GcfsConfig(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.GcfsConfig) { + return mergeFrom((com.google.container.v1.GcfsConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.GcfsConfig other) { + if (other == com.google.container.v1.GcfsConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 boolean enabled_; + /** + * + * + *
+     * Whether to use GCFS.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether to use GCFS.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether to use GCFS.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.GcfsConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.GcfsConfig) + private static final com.google.container.v1.GcfsConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.GcfsConfig(); + } + + public static com.google.container.v1.GcfsConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcfsConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..cd3b815cf7f0 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcfsConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface GcfsConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.GcfsConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether to use GCFS.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/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 new file mode 100644 index 000000000000..80e4e8242622 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcpFilestoreCsiDriverConfig.java @@ -0,0 +1,527 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Configuration for the GCP Filestore CSI driver.
+ * 
+ * + * Protobuf type {@code google.container.v1.GcpFilestoreCsiDriverConfig} + */ +public final class GcpFilestoreCsiDriverConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.GcpFilestoreCsiDriverConfig) + GcpFilestoreCsiDriverConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use GcpFilestoreCsiDriverConfig.newBuilder() to construct. + private GcpFilestoreCsiDriverConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GcpFilestoreCsiDriverConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GcpFilestoreCsiDriverConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GcpFilestoreCsiDriverConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GcpFilestoreCsiDriverConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GcpFilestoreCsiDriverConfig.class, + com.google.container.v1.GcpFilestoreCsiDriverConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether the GCP Filestore CSI driver is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + 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(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GcpFilestoreCsiDriverConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.GcpFilestoreCsiDriverConfig getDefaultInstanceForType() { + return com.google.container.v1.GcpFilestoreCsiDriverConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.GcpFilestoreCsiDriverConfig build() { + com.google.container.v1.GcpFilestoreCsiDriverConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.GcpFilestoreCsiDriverConfig buildPartial() { + com.google.container.v1.GcpFilestoreCsiDriverConfig result = + new com.google.container.v1.GcpFilestoreCsiDriverConfig(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.GcpFilestoreCsiDriverConfig) { + return mergeFrom((com.google.container.v1.GcpFilestoreCsiDriverConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.GcpFilestoreCsiDriverConfig other) { + if (other == com.google.container.v1.GcpFilestoreCsiDriverConfig.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 boolean enabled_; + /** + * + * + *
+     * Whether the GCP Filestore CSI driver is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether the GCP Filestore CSI driver is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the GCP Filestore CSI driver is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.GcpFilestoreCsiDriverConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.GcpFilestoreCsiDriverConfig) + private static final com.google.container.v1.GcpFilestoreCsiDriverConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.GcpFilestoreCsiDriverConfig(); + } + + public static com.google.container.v1.GcpFilestoreCsiDriverConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcpFilestoreCsiDriverConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..cb4455a7b753 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcpFilestoreCsiDriverConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface GcpFilestoreCsiDriverConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.GcpFilestoreCsiDriverConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether the GCP Filestore CSI driver is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/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 new file mode 100644 index 000000000000..3676f1685699 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java @@ -0,0 +1,1260 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + 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=2155 + * @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=2155 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2161 + * @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=2161 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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=2165 + * @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=2165 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to retrieve.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 5; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to retrieve.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 5; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + 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); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 42: + { + name_ = input.readStringRequireUtf8(); + + 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 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=2155 + * @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=2155 + * @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=2155 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/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=2155 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + 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=2155 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2161 + * @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=2161 + * @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=2161 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2161 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + 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=2161 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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=2165 + * @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=2165 + * @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=2165 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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=2165 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the cluster to retrieve.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * + * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See + * google/container/v1/cluster_service.proto;l=2165 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..a9ff8f01e643 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java @@ -0,0 +1,157 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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=2155 + * @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=2155 + * @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=2161 + * @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=2161 + * @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=2165 + * @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=2165 + * @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 new file mode 100644 index 000000000000..1c531d01ced4 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysRequest.java @@ -0,0 +1,627 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * GetJSONWebKeysRequest gets the public component of the keys used by the
+ * cluster to sign token requests. This will be the jwks_uri for the discover
+ * document returned by getOpenIDConfig. See the OpenID Connect
+ * Discovery 1.0 specification for details.
+ * 
+ * + * Protobuf type {@code google.container.v1.GetJSONWebKeysRequest} + */ +public final class GetJSONWebKeysRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.GetJSONWebKeysRequest) + GetJSONWebKeysRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetJSONWebKeysRequest.newBuilder() to construct. + private GetJSONWebKeysRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetJSONWebKeysRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetJSONWebKeysRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GetJSONWebKeysRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GetJSONWebKeysRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GetJSONWebKeysRequest.class, + com.google.container.v1.GetJSONWebKeysRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * The cluster (project, location, cluster 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(); + parent_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GetJSONWebKeysRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.GetJSONWebKeysRequest getDefaultInstanceForType() { + return com.google.container.v1.GetJSONWebKeysRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.GetJSONWebKeysRequest build() { + com.google.container.v1.GetJSONWebKeysRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.GetJSONWebKeysRequest buildPartial() { + com.google.container.v1.GetJSONWebKeysRequest result = + new com.google.container.v1.GetJSONWebKeysRequest(this); + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.GetJSONWebKeysRequest) { + return mergeFrom((com.google.container.v1.GetJSONWebKeysRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.GetJSONWebKeysRequest other) { + if (other == com.google.container.v1.GetJSONWebKeysRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..bb47f6a3dd8f --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysRequestOrBuilder.java @@ -0,0 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface GetJSONWebKeysRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.GetJSONWebKeysRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The cluster (project, location, cluster 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 new file mode 100644 index 000000000000..fe085f38f8f2 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysResponse.java @@ -0,0 +1,939 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc 7517
+ * 
+ * + * Protobuf type {@code google.container.v1.GetJSONWebKeysResponse} + */ +public final class GetJSONWebKeysResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.GetJSONWebKeysResponse) + GetJSONWebKeysResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetJSONWebKeysResponse.newBuilder() to construct. + private GetJSONWebKeysResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetJSONWebKeysResponse() { + keys_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetJSONWebKeysResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GetJSONWebKeysResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GetJSONWebKeysResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GetJSONWebKeysResponse.class, + com.google.container.v1.GetJSONWebKeysResponse.Builder.class); + } + + public static final int KEYS_FIELD_NUMBER = 1; + private java.util.List keys_; + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + @java.lang.Override + public java.util.List getKeysList() { + return keys_; + } + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + @java.lang.Override + public java.util.List getKeysOrBuilderList() { + return keys_; + } + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + @java.lang.Override + public int getKeysCount() { + return keys_.size(); + } + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + @java.lang.Override + public com.google.container.v1.Jwk getKeys(int index) { + return keys_.get(index); + } + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + @java.lang.Override + public com.google.container.v1.JwkOrBuilder getKeysOrBuilder(int index) { + return keys_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < keys_.size(); i++) { + output.writeMessage(1, keys_.get(i)); + } + 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(); + 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); + int from_bitField0_ = bitField0_; + if (keysBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + keys_ = java.util.Collections.unmodifiableList(keys_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.keys_ = keys_; + } else { + result.keys_ = keysBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.GetJSONWebKeysResponse) { + return mergeFrom((com.google.container.v1.GetJSONWebKeysResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.GetJSONWebKeysResponse other) { + if (other == com.google.container.v1.GetJSONWebKeysResponse.getDefaultInstance()) return this; + if (keysBuilder_ == null) { + if (!other.keys_.isEmpty()) { + if (keys_.isEmpty()) { + keys_ = other.keys_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureKeysIsMutable(); + keys_.addAll(other.keys_); + } + onChanged(); + } + } else { + if (!other.keys_.isEmpty()) { + if (keysBuilder_.isEmpty()) { + keysBuilder_.dispose(); + keysBuilder_ = null; + keys_ = other.keys_; + bitField0_ = (bitField0_ & ~0x00000001); + keysBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getKeysFieldBuilder() + : null; + } else { + keysBuilder_.addAllMessages(other.keys_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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 new file mode 100644 index 000000000000..dcc6e6f26894 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysResponseOrBuilder.java @@ -0,0 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface GetJSONWebKeysResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.GetJSONWebKeysResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + java.util.List getKeysList(); + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + com.google.container.v1.Jwk getKeys(int index); + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + int getKeysCount(); + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + java.util.List getKeysOrBuilderList(); + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + com.google.container.v1.JwkOrBuilder getKeysOrBuilder(int index); +} diff --git a/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 new file mode 100644 index 000000000000..4df997fcd398 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java @@ -0,0 +1,1473 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + 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=2787 + * @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=2787 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2793 + * @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=2793 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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=2797 + * @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=2797 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object nodePoolId_; + /** + * + * + *
+   * 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=2801 + * @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=2801 + * @return The bytes for nodePoolId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * get. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 6; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * get. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + 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); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.nodePoolId_ = nodePoolId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + nodePoolId_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 50: + { + name_ = input.readStringRequireUtf8(); + + 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 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=2787 + * @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=2787 + * @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=2787 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/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=2787 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + 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=2787 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2793 + * @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=2793 + * @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=2793 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2793 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + 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=2793 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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=2797 + * @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=2797 + * @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=2797 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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=2797 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * + * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See + * google/container/v1/cluster_service.proto;l=2797 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + * + * + *
+     * 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=2801 + * @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=2801 + * @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=2801 + * @param value The nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodePoolId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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=2801 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearNodePoolId() { + + nodePoolId_ = getDefaultInstance().getNodePoolId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the node pool.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * + * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See + * google/container/v1/cluster_service.proto;l=2801 + * @param value The bytes for nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodePoolId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * get. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * get. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * get. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * get. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * get. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..bd14f0a257e1 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java @@ -0,0 +1,192 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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=2787 + * @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=2787 + * @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=2793 + * @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=2793 + * @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=2797 + * @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=2797 + * @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=2801 + * @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=2801 + * @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 new file mode 100644 index 000000000000..4dbfa10daed7 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigRequest.java @@ -0,0 +1,623 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * GetOpenIDConfigRequest gets the OIDC discovery document for the
+ * cluster. See the OpenID Connect Discovery 1.0 specification for details.
+ * 
+ * + * Protobuf type {@code google.container.v1.GetOpenIDConfigRequest} + */ +public final class GetOpenIDConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.GetOpenIDConfigRequest) + GetOpenIDConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetOpenIDConfigRequest.newBuilder() to construct. + private GetOpenIDConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetOpenIDConfigRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetOpenIDConfigRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GetOpenIDConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GetOpenIDConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GetOpenIDConfigRequest.class, + com.google.container.v1.GetOpenIDConfigRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * The cluster (project, location, cluster 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(); + parent_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GetOpenIDConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.GetOpenIDConfigRequest getDefaultInstanceForType() { + return com.google.container.v1.GetOpenIDConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.GetOpenIDConfigRequest build() { + com.google.container.v1.GetOpenIDConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.GetOpenIDConfigRequest buildPartial() { + com.google.container.v1.GetOpenIDConfigRequest result = + new com.google.container.v1.GetOpenIDConfigRequest(this); + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.GetOpenIDConfigRequest) { + return mergeFrom((com.google.container.v1.GetOpenIDConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.GetOpenIDConfigRequest other) { + if (other == com.google.container.v1.GetOpenIDConfigRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..b0e8910cc938 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigRequestOrBuilder.java @@ -0,0 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface GetOpenIDConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.GetOpenIDConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The cluster (project, location, cluster 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 new file mode 100644 index 000000000000..a9dd9a69b02d --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigResponse.java @@ -0,0 +1,2158 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * GetOpenIDConfigResponse is an OIDC discovery document for the cluster.
+ * See the OpenID Connect Discovery 1.0 specification for details.
+ * 
+ * + * Protobuf type {@code google.container.v1.GetOpenIDConfigResponse} + */ +public final class GetOpenIDConfigResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.GetOpenIDConfigResponse) + GetOpenIDConfigResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetOpenIDConfigResponse.newBuilder() to construct. + private GetOpenIDConfigResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetOpenIDConfigResponse() { + issuer_ = ""; + jwksUri_ = ""; + responseTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + subjectTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + idTokenSigningAlgValuesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + claimsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + grantTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetOpenIDConfigResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GetOpenIDConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GetOpenIDConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GetOpenIDConfigResponse.class, + com.google.container.v1.GetOpenIDConfigResponse.Builder.class); + } + + public static final int ISSUER_FIELD_NUMBER = 1; + private volatile java.lang.Object issuer_; + /** + * + * + *
+   * OIDC Issuer.
+   * 
+ * + * string issuer = 1; + * + * @return The issuer. + */ + @java.lang.Override + public java.lang.String getIssuer() { + java.lang.Object ref = issuer_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + issuer_ = s; + return s; + } + } + /** + * + * + *
+   * OIDC Issuer.
+   * 
+ * + * string issuer = 1; + * + * @return The bytes for issuer. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIssuerBytes() { + java.lang.Object ref = issuer_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + issuer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JWKS_URI_FIELD_NUMBER = 2; + private volatile java.lang.Object jwksUri_; + /** + * + * + *
+   * JSON Web Key uri.
+   * 
+ * + * string jwks_uri = 2; + * + * @return The jwksUri. + */ + @java.lang.Override + public java.lang.String getJwksUri() { + java.lang.Object ref = jwksUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jwksUri_ = s; + return s; + } + } + /** + * + * + *
+   * JSON Web Key uri.
+   * 
+ * + * string jwks_uri = 2; + * + * @return The bytes for jwksUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getJwksUriBytes() { + java.lang.Object ref = jwksUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jwksUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESPONSE_TYPES_SUPPORTED_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList responseTypesSupported_; + /** + * + * + *
+   * Supported response types.
+   * 
+ * + * repeated string response_types_supported = 3; + * + * @return A list containing the responseTypesSupported. + */ + public com.google.protobuf.ProtocolStringList getResponseTypesSupportedList() { + return responseTypesSupported_; + } + /** + * + * + *
+   * Supported response types.
+   * 
+ * + * repeated string response_types_supported = 3; + * + * @return The count of responseTypesSupported. + */ + public int getResponseTypesSupportedCount() { + return responseTypesSupported_.size(); + } + /** + * + * + *
+   * Supported response types.
+   * 
+ * + * repeated string response_types_supported = 3; + * + * @param index The index of the element to return. + * @return The responseTypesSupported at the given index. + */ + public java.lang.String getResponseTypesSupported(int index) { + return responseTypesSupported_.get(index); + } + /** + * + * + *
+   * Supported response types.
+   * 
+ * + * repeated string response_types_supported = 3; + * + * @param index The index of the value to return. + * @return The bytes of the responseTypesSupported at the given index. + */ + public com.google.protobuf.ByteString getResponseTypesSupportedBytes(int index) { + return responseTypesSupported_.getByteString(index); + } + + public static final int SUBJECT_TYPES_SUPPORTED_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList subjectTypesSupported_; + /** + * + * + *
+   * Supported subject types.
+   * 
+ * + * repeated string subject_types_supported = 4; + * + * @return A list containing the subjectTypesSupported. + */ + public com.google.protobuf.ProtocolStringList getSubjectTypesSupportedList() { + return subjectTypesSupported_; + } + /** + * + * + *
+   * Supported subject types.
+   * 
+ * + * repeated string subject_types_supported = 4; + * + * @return The count of subjectTypesSupported. + */ + public int getSubjectTypesSupportedCount() { + return subjectTypesSupported_.size(); + } + /** + * + * + *
+   * Supported subject types.
+   * 
+ * + * repeated string subject_types_supported = 4; + * + * @param index The index of the element to return. + * @return The subjectTypesSupported at the given index. + */ + public java.lang.String getSubjectTypesSupported(int index) { + return subjectTypesSupported_.get(index); + } + /** + * + * + *
+   * Supported subject types.
+   * 
+ * + * repeated string subject_types_supported = 4; + * + * @param index The index of the value to return. + * @return The bytes of the subjectTypesSupported at the given index. + */ + public com.google.protobuf.ByteString getSubjectTypesSupportedBytes(int index) { + return subjectTypesSupported_.getByteString(index); + } + + public static final int ID_TOKEN_SIGNING_ALG_VALUES_SUPPORTED_FIELD_NUMBER = 5; + private com.google.protobuf.LazyStringList idTokenSigningAlgValuesSupported_; + /** + * + * + *
+   * supported ID Token signing Algorithms.
+   * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @return A list containing the idTokenSigningAlgValuesSupported. + */ + public com.google.protobuf.ProtocolStringList getIdTokenSigningAlgValuesSupportedList() { + return idTokenSigningAlgValuesSupported_; + } + /** + * + * + *
+   * supported ID Token signing Algorithms.
+   * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @return The count of idTokenSigningAlgValuesSupported. + */ + public int getIdTokenSigningAlgValuesSupportedCount() { + return idTokenSigningAlgValuesSupported_.size(); + } + /** + * + * + *
+   * supported ID Token signing Algorithms.
+   * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param index The index of the element to return. + * @return The idTokenSigningAlgValuesSupported at the given index. + */ + public java.lang.String getIdTokenSigningAlgValuesSupported(int index) { + return idTokenSigningAlgValuesSupported_.get(index); + } + /** + * + * + *
+   * supported ID Token signing Algorithms.
+   * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param index The index of the value to return. + * @return The bytes of the idTokenSigningAlgValuesSupported at the given index. + */ + public com.google.protobuf.ByteString getIdTokenSigningAlgValuesSupportedBytes(int index) { + return idTokenSigningAlgValuesSupported_.getByteString(index); + } + + public static final int CLAIMS_SUPPORTED_FIELD_NUMBER = 6; + private com.google.protobuf.LazyStringList claimsSupported_; + /** + * + * + *
+   * Supported claims.
+   * 
+ * + * repeated string claims_supported = 6; + * + * @return A list containing the claimsSupported. + */ + public com.google.protobuf.ProtocolStringList getClaimsSupportedList() { + return claimsSupported_; + } + /** + * + * + *
+   * Supported claims.
+   * 
+ * + * repeated string claims_supported = 6; + * + * @return The count of claimsSupported. + */ + public int getClaimsSupportedCount() { + return claimsSupported_.size(); + } + /** + * + * + *
+   * Supported claims.
+   * 
+ * + * repeated string claims_supported = 6; + * + * @param index The index of the element to return. + * @return The claimsSupported at the given index. + */ + public java.lang.String getClaimsSupported(int index) { + return claimsSupported_.get(index); + } + /** + * + * + *
+   * Supported claims.
+   * 
+ * + * repeated string claims_supported = 6; + * + * @param index The index of the value to return. + * @return The bytes of the claimsSupported at the given index. + */ + public com.google.protobuf.ByteString getClaimsSupportedBytes(int index) { + return claimsSupported_.getByteString(index); + } + + public static final int GRANT_TYPES_FIELD_NUMBER = 7; + private com.google.protobuf.LazyStringList grantTypes_; + /** + * + * + *
+   * Supported grant types.
+   * 
+ * + * repeated string grant_types = 7; + * + * @return A list containing the grantTypes. + */ + public com.google.protobuf.ProtocolStringList getGrantTypesList() { + return grantTypes_; + } + /** + * + * + *
+   * Supported grant types.
+   * 
+ * + * repeated string grant_types = 7; + * + * @return The count of grantTypes. + */ + public int getGrantTypesCount() { + return grantTypes_.size(); + } + /** + * + * + *
+   * Supported grant types.
+   * 
+ * + * repeated string grant_types = 7; + * + * @param index The index of the element to return. + * @return The grantTypes at the given index. + */ + public java.lang.String getGrantTypes(int index) { + return grantTypes_.get(index); + } + /** + * + * + *
+   * Supported grant types.
+   * 
+ * + * repeated string grant_types = 7; + * + * @param index The index of the value to return. + * @return The bytes of the grantTypes at the given index. + */ + public com.google.protobuf.ByteString getGrantTypesBytes(int index) { + return grantTypes_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + issuer_ = ""; + + jwksUri_ = ""; + + responseTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + subjectTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + idTokenSigningAlgValuesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + claimsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + grantTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GetOpenIDConfigResponse_descriptor; + } + + @java.lang.Override + public com.google.container.v1.GetOpenIDConfigResponse getDefaultInstanceForType() { + return com.google.container.v1.GetOpenIDConfigResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.GetOpenIDConfigResponse build() { + com.google.container.v1.GetOpenIDConfigResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.GetOpenIDConfigResponse buildPartial() { + com.google.container.v1.GetOpenIDConfigResponse result = + new com.google.container.v1.GetOpenIDConfigResponse(this); + int from_bitField0_ = bitField0_; + result.issuer_ = issuer_; + result.jwksUri_ = jwksUri_; + if (((bitField0_ & 0x00000001) != 0)) { + responseTypesSupported_ = responseTypesSupported_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.responseTypesSupported_ = responseTypesSupported_; + if (((bitField0_ & 0x00000002) != 0)) { + subjectTypesSupported_ = subjectTypesSupported_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.subjectTypesSupported_ = subjectTypesSupported_; + if (((bitField0_ & 0x00000004) != 0)) { + idTokenSigningAlgValuesSupported_ = idTokenSigningAlgValuesSupported_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.idTokenSigningAlgValuesSupported_ = idTokenSigningAlgValuesSupported_; + if (((bitField0_ & 0x00000008) != 0)) { + claimsSupported_ = claimsSupported_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.claimsSupported_ = claimsSupported_; + if (((bitField0_ & 0x00000010) != 0)) { + grantTypes_ = grantTypes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.grantTypes_ = grantTypes_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.GetOpenIDConfigResponse) { + return mergeFrom((com.google.container.v1.GetOpenIDConfigResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.GetOpenIDConfigResponse other) { + if (other == com.google.container.v1.GetOpenIDConfigResponse.getDefaultInstance()) + return this; + if (!other.getIssuer().isEmpty()) { + issuer_ = other.issuer_; + onChanged(); + } + if (!other.getJwksUri().isEmpty()) { + jwksUri_ = other.jwksUri_; + onChanged(); + } + if (!other.responseTypesSupported_.isEmpty()) { + if (responseTypesSupported_.isEmpty()) { + responseTypesSupported_ = other.responseTypesSupported_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResponseTypesSupportedIsMutable(); + responseTypesSupported_.addAll(other.responseTypesSupported_); + } + onChanged(); + } + if (!other.subjectTypesSupported_.isEmpty()) { + if (subjectTypesSupported_.isEmpty()) { + subjectTypesSupported_ = other.subjectTypesSupported_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSubjectTypesSupportedIsMutable(); + subjectTypesSupported_.addAll(other.subjectTypesSupported_); + } + onChanged(); + } + if (!other.idTokenSigningAlgValuesSupported_.isEmpty()) { + if (idTokenSigningAlgValuesSupported_.isEmpty()) { + idTokenSigningAlgValuesSupported_ = other.idTokenSigningAlgValuesSupported_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureIdTokenSigningAlgValuesSupportedIsMutable(); + idTokenSigningAlgValuesSupported_.addAll(other.idTokenSigningAlgValuesSupported_); + } + onChanged(); + } + if (!other.claimsSupported_.isEmpty()) { + if (claimsSupported_.isEmpty()) { + claimsSupported_ = other.claimsSupported_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureClaimsSupportedIsMutable(); + claimsSupported_.addAll(other.claimsSupported_); + } + onChanged(); + } + if (!other.grantTypes_.isEmpty()) { + if (grantTypes_.isEmpty()) { + grantTypes_ = other.grantTypes_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureGrantTypesIsMutable(); + grantTypes_.addAll(other.grantTypes_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + jwksUri_ = input.readStringRequireUtf8(); + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * OIDC Issuer.
+     * 
+ * + * string issuer = 1; + * + * @return This builder for chaining. + */ + public Builder clearIssuer() { + + issuer_ = getDefaultInstance().getIssuer(); + onChanged(); + return this; + } + /** + * + * + *
+     * OIDC Issuer.
+     * 
+ * + * string issuer = 1; + * + * @param value The bytes for issuer to set. + * @return This builder for chaining. + */ + public Builder setIssuerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + issuer_ = value; + onChanged(); + return this; + } + + private java.lang.Object jwksUri_ = ""; + /** + * + * + *
+     * JSON Web Key uri.
+     * 
+ * + * string jwks_uri = 2; + * + * @return The jwksUri. + */ + public java.lang.String getJwksUri() { + java.lang.Object ref = jwksUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jwksUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * JSON Web Key uri.
+     * 
+ * + * string jwks_uri = 2; + * + * @return The bytes for jwksUri. + */ + public com.google.protobuf.ByteString getJwksUriBytes() { + java.lang.Object ref = jwksUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jwksUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * JSON Web Key uri.
+     * 
+ * + * string jwks_uri = 2; + * + * @param value The jwksUri to set. + * @return This builder for chaining. + */ + public Builder setJwksUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jwksUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * JSON Web Key uri.
+     * 
+ * + * string jwks_uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearJwksUri() { + + jwksUri_ = getDefaultInstance().getJwksUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * JSON Web Key uri.
+     * 
+ * + * string jwks_uri = 2; + * + * @param value The bytes for jwksUri to set. + * @return This builder for chaining. + */ + public Builder setJwksUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jwksUri_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList responseTypesSupported_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureResponseTypesSupportedIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + responseTypesSupported_ = + new com.google.protobuf.LazyStringArrayList(responseTypesSupported_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * + * @return A list containing the responseTypesSupported. + */ + public com.google.protobuf.ProtocolStringList getResponseTypesSupportedList() { + return responseTypesSupported_.getUnmodifiableView(); + } + /** + * + * + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * + * @return The count of responseTypesSupported. + */ + public int getResponseTypesSupportedCount() { + return responseTypesSupported_.size(); + } + /** + * + * + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * + * @param index The index of the element to return. + * @return The responseTypesSupported at the given index. + */ + public java.lang.String getResponseTypesSupported(int index) { + return responseTypesSupported_.get(index); + } + /** + * + * + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * + * @param index The index of the value to return. + * @return The bytes of the responseTypesSupported at the given index. + */ + public com.google.protobuf.ByteString getResponseTypesSupportedBytes(int index) { + return responseTypesSupported_.getByteString(index); + } + /** + * + * + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * + * @param index The index to set the value at. + * @param value The responseTypesSupported to set. + * @return This builder for chaining. + */ + public Builder setResponseTypesSupported(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponseTypesSupportedIsMutable(); + responseTypesSupported_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * + * @param value The responseTypesSupported to add. + * @return This builder for chaining. + */ + public Builder addResponseTypesSupported(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponseTypesSupportedIsMutable(); + responseTypesSupported_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * + * @param values The responseTypesSupported to add. + * @return This builder for chaining. + */ + public Builder addAllResponseTypesSupported(java.lang.Iterable values) { + ensureResponseTypesSupportedIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responseTypesSupported_); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * + * @return This builder for chaining. + */ + public Builder clearResponseTypesSupported() { + responseTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * + * @param value The bytes of the responseTypesSupported to add. + * @return This builder for chaining. + */ + public Builder addResponseTypesSupportedBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureResponseTypesSupportedIsMutable(); + responseTypesSupported_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList subjectTypesSupported_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureSubjectTypesSupportedIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + subjectTypesSupported_ = + new com.google.protobuf.LazyStringArrayList(subjectTypesSupported_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * + * @return A list containing the subjectTypesSupported. + */ + public com.google.protobuf.ProtocolStringList getSubjectTypesSupportedList() { + return subjectTypesSupported_.getUnmodifiableView(); + } + /** + * + * + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * + * @return The count of subjectTypesSupported. + */ + public int getSubjectTypesSupportedCount() { + return subjectTypesSupported_.size(); + } + /** + * + * + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * + * @param index The index of the element to return. + * @return The subjectTypesSupported at the given index. + */ + public java.lang.String getSubjectTypesSupported(int index) { + return subjectTypesSupported_.get(index); + } + /** + * + * + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * + * @param index The index of the value to return. + * @return The bytes of the subjectTypesSupported at the given index. + */ + public com.google.protobuf.ByteString getSubjectTypesSupportedBytes(int index) { + return subjectTypesSupported_.getByteString(index); + } + /** + * + * + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * + * @param index The index to set the value at. + * @param value The subjectTypesSupported to set. + * @return This builder for chaining. + */ + public Builder setSubjectTypesSupported(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubjectTypesSupportedIsMutable(); + subjectTypesSupported_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * + * @param value The subjectTypesSupported to add. + * @return This builder for chaining. + */ + public Builder addSubjectTypesSupported(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubjectTypesSupportedIsMutable(); + subjectTypesSupported_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * + * @param values The subjectTypesSupported to add. + * @return This builder for chaining. + */ + public Builder addAllSubjectTypesSupported(java.lang.Iterable values) { + ensureSubjectTypesSupportedIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subjectTypesSupported_); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * + * @return This builder for chaining. + */ + public Builder clearSubjectTypesSupported() { + subjectTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * + * @param value The bytes of the subjectTypesSupported to add. + * @return This builder for chaining. + */ + public Builder addSubjectTypesSupportedBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSubjectTypesSupportedIsMutable(); + subjectTypesSupported_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList idTokenSigningAlgValuesSupported_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureIdTokenSigningAlgValuesSupportedIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + idTokenSigningAlgValuesSupported_ = + new com.google.protobuf.LazyStringArrayList(idTokenSigningAlgValuesSupported_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+     * supported ID Token signing Algorithms.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @return A list containing the idTokenSigningAlgValuesSupported. + */ + public com.google.protobuf.ProtocolStringList getIdTokenSigningAlgValuesSupportedList() { + return idTokenSigningAlgValuesSupported_.getUnmodifiableView(); + } + /** + * + * + *
+     * supported ID Token signing Algorithms.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @return The count of idTokenSigningAlgValuesSupported. + */ + public int getIdTokenSigningAlgValuesSupportedCount() { + return idTokenSigningAlgValuesSupported_.size(); + } + /** + * + * + *
+     * supported ID Token signing Algorithms.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param index The index of the element to return. + * @return The idTokenSigningAlgValuesSupported at the given index. + */ + public java.lang.String getIdTokenSigningAlgValuesSupported(int index) { + return idTokenSigningAlgValuesSupported_.get(index); + } + /** + * + * + *
+     * supported ID Token signing Algorithms.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param index The index of the value to return. + * @return The bytes of the idTokenSigningAlgValuesSupported at the given index. + */ + public com.google.protobuf.ByteString getIdTokenSigningAlgValuesSupportedBytes(int index) { + return idTokenSigningAlgValuesSupported_.getByteString(index); + } + /** + * + * + *
+     * supported ID Token signing Algorithms.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param index The index to set the value at. + * @param value The idTokenSigningAlgValuesSupported to set. + * @return This builder for chaining. + */ + public Builder setIdTokenSigningAlgValuesSupported(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdTokenSigningAlgValuesSupportedIsMutable(); + idTokenSigningAlgValuesSupported_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * supported ID Token signing Algorithms.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param value The idTokenSigningAlgValuesSupported to add. + * @return This builder for chaining. + */ + public Builder addIdTokenSigningAlgValuesSupported(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdTokenSigningAlgValuesSupportedIsMutable(); + idTokenSigningAlgValuesSupported_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * supported ID Token signing Algorithms.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param values The idTokenSigningAlgValuesSupported to add. + * @return This builder for chaining. + */ + public Builder addAllIdTokenSigningAlgValuesSupported( + java.lang.Iterable values) { + ensureIdTokenSigningAlgValuesSupportedIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, idTokenSigningAlgValuesSupported_); + onChanged(); + return this; + } + /** + * + * + *
+     * supported ID Token signing Algorithms.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @return This builder for chaining. + */ + public Builder clearIdTokenSigningAlgValuesSupported() { + idTokenSigningAlgValuesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * supported ID Token signing Algorithms.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param value The bytes of the idTokenSigningAlgValuesSupported to add. + * @return This builder for chaining. + */ + public Builder addIdTokenSigningAlgValuesSupportedBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureIdTokenSigningAlgValuesSupportedIsMutable(); + idTokenSigningAlgValuesSupported_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList claimsSupported_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureClaimsSupportedIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + claimsSupported_ = new com.google.protobuf.LazyStringArrayList(claimsSupported_); + bitField0_ |= 0x00000008; + } + } + /** + * + * + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * + * @return A list containing the claimsSupported. + */ + public com.google.protobuf.ProtocolStringList getClaimsSupportedList() { + return claimsSupported_.getUnmodifiableView(); + } + /** + * + * + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * + * @return The count of claimsSupported. + */ + public int getClaimsSupportedCount() { + return claimsSupported_.size(); + } + /** + * + * + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * + * @param index The index of the element to return. + * @return The claimsSupported at the given index. + */ + public java.lang.String getClaimsSupported(int index) { + return claimsSupported_.get(index); + } + /** + * + * + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * + * @param index The index of the value to return. + * @return The bytes of the claimsSupported at the given index. + */ + public com.google.protobuf.ByteString getClaimsSupportedBytes(int index) { + return claimsSupported_.getByteString(index); + } + /** + * + * + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * + * @param index The index to set the value at. + * @param value The claimsSupported to set. + * @return This builder for chaining. + */ + public Builder setClaimsSupported(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureClaimsSupportedIsMutable(); + claimsSupported_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * + * @param value The claimsSupported to add. + * @return This builder for chaining. + */ + public Builder addClaimsSupported(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureClaimsSupportedIsMutable(); + claimsSupported_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * + * @param values The claimsSupported to add. + * @return This builder for chaining. + */ + public Builder addAllClaimsSupported(java.lang.Iterable values) { + ensureClaimsSupportedIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, claimsSupported_); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * + * @return This builder for chaining. + */ + public Builder clearClaimsSupported() { + claimsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * + * @param value The bytes of the claimsSupported to add. + * @return This builder for chaining. + */ + public Builder addClaimsSupportedBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureClaimsSupportedIsMutable(); + claimsSupported_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList grantTypes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureGrantTypesIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + grantTypes_ = new com.google.protobuf.LazyStringArrayList(grantTypes_); + bitField0_ |= 0x00000010; + } + } + /** + * + * + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * + * @return A list containing the grantTypes. + */ + public com.google.protobuf.ProtocolStringList getGrantTypesList() { + return grantTypes_.getUnmodifiableView(); + } + /** + * + * + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * + * @return The count of grantTypes. + */ + public int getGrantTypesCount() { + return grantTypes_.size(); + } + /** + * + * + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * + * @param index The index of the element to return. + * @return The grantTypes at the given index. + */ + public java.lang.String getGrantTypes(int index) { + return grantTypes_.get(index); + } + /** + * + * + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * + * @param index The index of the value to return. + * @return The bytes of the grantTypes at the given index. + */ + public com.google.protobuf.ByteString getGrantTypesBytes(int index) { + return grantTypes_.getByteString(index); + } + /** + * + * + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * + * @param index The index to set the value at. + * @param value The grantTypes to set. + * @return This builder for chaining. + */ + public Builder setGrantTypes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGrantTypesIsMutable(); + grantTypes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * + * @param value The grantTypes to add. + * @return This builder for chaining. + */ + public Builder addGrantTypes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGrantTypesIsMutable(); + grantTypes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * + * @param values The grantTypes to add. + * @return This builder for chaining. + */ + public Builder addAllGrantTypes(java.lang.Iterable values) { + ensureGrantTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, grantTypes_); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * + * @return This builder for chaining. + */ + public Builder clearGrantTypes() { + grantTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * + * @param value The bytes of the grantTypes to add. + * @return This builder for chaining. + */ + public Builder addGrantTypesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureGrantTypesIsMutable(); + grantTypes_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.GetOpenIDConfigResponse) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.GetOpenIDConfigResponse) + private static final com.google.container.v1.GetOpenIDConfigResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.GetOpenIDConfigResponse(); + } + + public static com.google.container.v1.GetOpenIDConfigResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOpenIDConfigResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..4a8530873439 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigResponseOrBuilder.java @@ -0,0 +1,330 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface GetOpenIDConfigResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.GetOpenIDConfigResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * OIDC Issuer.
+   * 
+ * + * string issuer = 1; + * + * @return The issuer. + */ + java.lang.String getIssuer(); + /** + * + * + *
+   * OIDC Issuer.
+   * 
+ * + * string issuer = 1; + * + * @return The bytes for issuer. + */ + com.google.protobuf.ByteString getIssuerBytes(); + + /** + * + * + *
+   * JSON Web Key uri.
+   * 
+ * + * string jwks_uri = 2; + * + * @return The jwksUri. + */ + java.lang.String getJwksUri(); + /** + * + * + *
+   * JSON Web Key uri.
+   * 
+ * + * string jwks_uri = 2; + * + * @return The bytes for jwksUri. + */ + com.google.protobuf.ByteString getJwksUriBytes(); + + /** + * + * + *
+   * Supported response types.
+   * 
+ * + * repeated string response_types_supported = 3; + * + * @return A list containing the responseTypesSupported. + */ + java.util.List getResponseTypesSupportedList(); + /** + * + * + *
+   * Supported response types.
+   * 
+ * + * repeated string response_types_supported = 3; + * + * @return The count of responseTypesSupported. + */ + int getResponseTypesSupportedCount(); + /** + * + * + *
+   * Supported response types.
+   * 
+ * + * repeated string response_types_supported = 3; + * + * @param index The index of the element to return. + * @return The responseTypesSupported at the given index. + */ + java.lang.String getResponseTypesSupported(int index); + /** + * + * + *
+   * Supported response types.
+   * 
+ * + * repeated string response_types_supported = 3; + * + * @param index The index of the value to return. + * @return The bytes of the responseTypesSupported at the given index. + */ + com.google.protobuf.ByteString getResponseTypesSupportedBytes(int index); + + /** + * + * + *
+   * Supported subject types.
+   * 
+ * + * repeated string subject_types_supported = 4; + * + * @return A list containing the subjectTypesSupported. + */ + java.util.List getSubjectTypesSupportedList(); + /** + * + * + *
+   * Supported subject types.
+   * 
+ * + * repeated string subject_types_supported = 4; + * + * @return The count of subjectTypesSupported. + */ + int getSubjectTypesSupportedCount(); + /** + * + * + *
+   * Supported subject types.
+   * 
+ * + * repeated string subject_types_supported = 4; + * + * @param index The index of the element to return. + * @return The subjectTypesSupported at the given index. + */ + java.lang.String getSubjectTypesSupported(int index); + /** + * + * + *
+   * Supported subject types.
+   * 
+ * + * repeated string subject_types_supported = 4; + * + * @param index The index of the value to return. + * @return The bytes of the subjectTypesSupported at the given index. + */ + com.google.protobuf.ByteString getSubjectTypesSupportedBytes(int index); + + /** + * + * + *
+   * supported ID Token signing Algorithms.
+   * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @return A list containing the idTokenSigningAlgValuesSupported. + */ + java.util.List getIdTokenSigningAlgValuesSupportedList(); + /** + * + * + *
+   * supported ID Token signing Algorithms.
+   * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @return The count of idTokenSigningAlgValuesSupported. + */ + int getIdTokenSigningAlgValuesSupportedCount(); + /** + * + * + *
+   * supported ID Token signing Algorithms.
+   * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param index The index of the element to return. + * @return The idTokenSigningAlgValuesSupported at the given index. + */ + java.lang.String getIdTokenSigningAlgValuesSupported(int index); + /** + * + * + *
+   * supported ID Token signing Algorithms.
+   * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param index The index of the value to return. + * @return The bytes of the idTokenSigningAlgValuesSupported at the given index. + */ + com.google.protobuf.ByteString getIdTokenSigningAlgValuesSupportedBytes(int index); + + /** + * + * + *
+   * Supported claims.
+   * 
+ * + * repeated string claims_supported = 6; + * + * @return A list containing the claimsSupported. + */ + java.util.List getClaimsSupportedList(); + /** + * + * + *
+   * Supported claims.
+   * 
+ * + * repeated string claims_supported = 6; + * + * @return The count of claimsSupported. + */ + int getClaimsSupportedCount(); + /** + * + * + *
+   * Supported claims.
+   * 
+ * + * repeated string claims_supported = 6; + * + * @param index The index of the element to return. + * @return The claimsSupported at the given index. + */ + java.lang.String getClaimsSupported(int index); + /** + * + * + *
+   * Supported claims.
+   * 
+ * + * repeated string claims_supported = 6; + * + * @param index The index of the value to return. + * @return The bytes of the claimsSupported at the given index. + */ + com.google.protobuf.ByteString getClaimsSupportedBytes(int index); + + /** + * + * + *
+   * Supported grant types.
+   * 
+ * + * repeated string grant_types = 7; + * + * @return A list containing the grantTypes. + */ + java.util.List getGrantTypesList(); + /** + * + * + *
+   * Supported grant types.
+   * 
+ * + * repeated string grant_types = 7; + * + * @return The count of grantTypes. + */ + int getGrantTypesCount(); + /** + * + * + *
+   * Supported grant types.
+   * 
+ * + * repeated string grant_types = 7; + * + * @param index The index of the element to return. + * @return The grantTypes at the given index. + */ + java.lang.String getGrantTypes(int index); + /** + * + * + *
+   * Supported grant types.
+   * 
+ * + * repeated string grant_types = 7; + * + * @param index The index of the value to return. + * @return The bytes of the grantTypes at the given index. + */ + com.google.protobuf.ByteString getGrantTypesBytes(int index); +} diff --git a/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 new file mode 100644 index 000000000000..af85cdbc17f7 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java @@ -0,0 +1,1260 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + 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=2588 + * @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=2588 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2594 + * @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=2594 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPERATION_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object operationId_; + /** + * + * + *
+   * 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=2598 + * @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=2598 + * @return The bytes for operationId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getOperationIdBytes() { + java.lang.Object ref = operationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, operation id) of the operation to get.
+   * Specified in the format `projects/*/locations/*/operations/*`.
+   * 
+ * + * string name = 5; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, operation id) of the operation to get.
+   * Specified in the format `projects/*/locations/*/operations/*`.
+   * 
+ * + * string name = 5; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + 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); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.operationId_ = operationId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getOperationId().isEmpty()) { + operationId_ = other.operationId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + operationId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 42: + { + name_ = input.readStringRequireUtf8(); + + 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 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=2588 + * @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=2588 + * @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=2588 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/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=2588 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + 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=2588 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2594 + * @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=2594 + * @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=2594 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2594 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + 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=2594 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object operationId_ = ""; + /** + * + * + *
+     * 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=2598 + * @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=2598 + * @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=2598 + * @param value The operationId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setOperationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + operationId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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=2598 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearOperationId() { + + operationId_ = getDefaultInstance().getOperationId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string operation_id = 3 [deprecated = true]; + * + * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See + * google/container/v1/cluster_service.proto;l=2598 + * @param value The bytes for operationId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setOperationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + operationId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, operation id) of the operation to get.
+     * Specified in the format `projects/*/locations/*/operations/*`.
+     * 
+ * + * string name = 5; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, operation id) of the operation to get.
+     * Specified in the format `projects/*/locations/*/operations/*`.
+     * 
+ * + * string name = 5; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, operation id) of the operation to get.
+     * Specified in the format `projects/*/locations/*/operations/*`.
+     * 
+ * + * string name = 5; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, operation id) of the operation to get.
+     * Specified in the format `projects/*/locations/*/operations/*`.
+     * 
+ * + * string name = 5; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, operation id) of the operation to get.
+     * Specified in the format `projects/*/locations/*/operations/*`.
+     * 
+ * + * string name = 5; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..d1a0268c5322 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java @@ -0,0 +1,157 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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=2588 + * @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=2588 + * @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=2594 + * @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=2594 + * @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=2598 + * @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=2598 + * @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 new file mode 100644 index 000000000000..3ca8feab18e1 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java @@ -0,0 +1,1054 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + 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=2661 + * @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=2661 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * 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=2667 + * @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=2667 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project and location) of the server config to get,
+   * specified in the format `projects/*/locations/*`.
+   * 
+ * + * string name = 4; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project and location) of the server config to get,
+   * specified in the format `projects/*/locations/*`.
+   * 
+ * + * string name = 4; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + 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); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 34: + { + name_ = input.readStringRequireUtf8(); + + 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 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=2661 + * @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=2661 + * @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=2661 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/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=2661 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + 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=2661 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * 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=2667 + * @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=2667 + * @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=2667 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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=2667 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + 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=2667 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project and location) of the server config to get,
+     * specified in the format `projects/*/locations/*`.
+     * 
+ * + * string name = 4; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project and location) of the server config to get,
+     * specified in the format `projects/*/locations/*`.
+     * 
+ * + * string name = 4; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project and location) of the server config to get,
+     * specified in the format `projects/*/locations/*`.
+     * 
+ * + * string name = 4; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project and location) of the server config to get,
+     * specified in the format `projects/*/locations/*`.
+     * 
+ * + * string name = 4; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project and location) of the server config to get,
+     * specified in the format `projects/*/locations/*`.
+     * 
+ * + * string name = 4; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..d0062784d114 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java @@ -0,0 +1,124 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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=2661 + * @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=2661 + * @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=2667 + * @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=2667 + * @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 new file mode 100644 index 000000000000..84b8305689e2 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GkeBackupAgentConfig.java @@ -0,0 +1,526 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Configuration for the 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * 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(); + 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); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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(); + + 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 boolean enabled_; + /** + * + * + *
+     * Whether the Backup for GKE agent is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether the Backup for GKE agent is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the Backup for GKE agent is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..ff1cf3b2f186 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GkeBackupAgentConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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 new file mode 100644 index 000000000000..50f19e3a7758 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscaling.java @@ -0,0 +1,539 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Configuration options for the 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * 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(); + 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); + result.disabled_ = disabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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(); + + 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 boolean disabled_; + /** + * + * + *
+     * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
+     * When enabled, it ensures that metrics are collected into Stackdriver
+     * Monitoring.
+     * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + /** + * + * + *
+     * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
+     * When enabled, it ensures that metrics are collected into Stackdriver
+     * Monitoring.
+     * 
+ * + * bool disabled = 1; + * + * @param value The disabled to set. + * @return This builder for chaining. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
+     * When enabled, it ensures that metrics are collected into Stackdriver
+     * Monitoring.
+     * 
+ * + * bool disabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisabled() { + + disabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..435d07170208 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscalingOrBuilder.java @@ -0,0 +1,40 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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 new file mode 100644 index 000000000000..0dcbb366d5d5 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HttpLoadBalancing.java @@ -0,0 +1,536 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Configuration options for the 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * 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(); + 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); + result.disabled_ = disabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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(); + + 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 boolean disabled_; + /** + * + * + *
+     * Whether the HTTP Load Balancing controller is enabled in the cluster.
+     * When enabled, it runs a small pod in the cluster that manages the load
+     * balancers.
+     * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + /** + * + * + *
+     * Whether the HTTP Load Balancing controller is enabled in the cluster.
+     * When enabled, it runs a small pod in the cluster that manages the load
+     * balancers.
+     * 
+ * + * bool disabled = 1; + * + * @param value The disabled to set. + * @return This builder for chaining. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the HTTP Load Balancing controller is enabled in the cluster.
+     * When enabled, it runs a small pod in the cluster that manages the load
+     * balancers.
+     * 
+ * + * bool disabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisabled() { + + disabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..bccec888e5a5 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HttpLoadBalancingOrBuilder.java @@ -0,0 +1,40 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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 new file mode 100644 index 000000000000..e3b12a2f3156 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ILBSubsettingConfig.java @@ -0,0 +1,528 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * ILBSubsettingConfig contains the desired config of L4 Internal LoadBalancer
+ * subsetting on this cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.ILBSubsettingConfig} + */ +public final class ILBSubsettingConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.ILBSubsettingConfig) + ILBSubsettingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ILBSubsettingConfig.newBuilder() to construct. + private ILBSubsettingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ILBSubsettingConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ILBSubsettingConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ILBSubsettingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ILBSubsettingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ILBSubsettingConfig.class, + com.google.container.v1.ILBSubsettingConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Enables l4 ILB subsetting for this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + 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(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ILBSubsettingConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ILBSubsettingConfig getDefaultInstanceForType() { + return com.google.container.v1.ILBSubsettingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ILBSubsettingConfig build() { + com.google.container.v1.ILBSubsettingConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ILBSubsettingConfig buildPartial() { + com.google.container.v1.ILBSubsettingConfig result = + new com.google.container.v1.ILBSubsettingConfig(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ILBSubsettingConfig) { + return mergeFrom((com.google.container.v1.ILBSubsettingConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ILBSubsettingConfig other) { + if (other == com.google.container.v1.ILBSubsettingConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 boolean enabled_; + /** + * + * + *
+     * Enables l4 ILB subsetting for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Enables l4 ILB subsetting for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Enables l4 ILB subsetting for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.ILBSubsettingConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ILBSubsettingConfig) + private static final com.google.container.v1.ILBSubsettingConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.ILBSubsettingConfig(); + } + + public static com.google.container.v1.ILBSubsettingConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ILBSubsettingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..6182c273ffa2 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ILBSubsettingConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface ILBSubsettingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ILBSubsettingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Enables l4 ILB subsetting for this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/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 new file mode 100644 index 000000000000..7fc615a41976 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java @@ -0,0 +1,3240 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Configuration for controlling 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; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IPAllocationPolicy(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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); + } + + public static final int USE_IP_ALIASES_FIELD_NUMBER = 1; + private boolean useIpAliases_; + /** + * + * + *
+   * Whether alias IPs will be used for pod IPs in the cluster.
+   * This is used in conjunction with use_routes. It cannot
+   * be true if use_routes is true. If both use_ip_aliases and use_routes are
+   * false, then the server picks the default IP allocation mode
+   * 
+ * + * bool use_ip_aliases = 1; + * + * @return The useIpAliases. + */ + @java.lang.Override + public boolean getUseIpAliases() { + return useIpAliases_; + } + + public static final int CREATE_SUBNETWORK_FIELD_NUMBER = 2; + private boolean createSubnetwork_; + /** + * + * + *
+   * Whether a new subnetwork will be created automatically for the cluster.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * 
+ * + * bool create_subnetwork = 2; + * + * @return The createSubnetwork. + */ + @java.lang.Override + public boolean getCreateSubnetwork() { + return createSubnetwork_; + } + + public static final int SUBNETWORK_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object subnetworkName_; + /** + * + * + *
+   * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+   * this field is empty, then an automatic name will be chosen for the new
+   * subnetwork.
+   * 
+ * + * string subnetwork_name = 3; + * + * @return The subnetworkName. + */ + @java.lang.Override + public java.lang.String getSubnetworkName() { + java.lang.Object ref = subnetworkName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetworkName_ = s; + return s; + } + } + /** + * + * + *
+   * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+   * this field is empty, then an automatic name will be chosen for the new
+   * subnetwork.
+   * 
+ * + * string subnetwork_name = 3; + * + * @return The bytes for subnetworkName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSubnetworkNameBytes() { + java.lang.Object ref = subnetworkName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnetworkName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_IPV4_CIDR_FIELD_NUMBER = 4; + private volatile java.lang.Object clusterIpv4Cidr_; + /** + * + * + *
+   * This field is deprecated, use cluster_ipv4_cidr_block.
+   * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + * + * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See + * google/container/v1/cluster_service.proto;l=1305 + * @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=1305 + * @return The bytes for clusterIpv4Cidr. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { + java.lang.Object ref = clusterIpv4Cidr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_IPV4_CIDR_FIELD_NUMBER = 5; + private volatile java.lang.Object nodeIpv4Cidr_; + /** + * + * + *
+   * This field is deprecated, use node_ipv4_cidr_block.
+   * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + * + * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See + * google/container/v1/cluster_service.proto;l=1308 + * @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=1308 + * @return The bytes for nodeIpv4Cidr. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getNodeIpv4CidrBytes() { + java.lang.Object ref = nodeIpv4Cidr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICES_IPV4_CIDR_FIELD_NUMBER = 6; + private volatile java.lang.Object servicesIpv4Cidr_; + /** + * + * + *
+   * This field is deprecated, use services_ipv4_cidr_block.
+   * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + * + * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See + * google/container/v1/cluster_service.proto;l=1311 + * @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=1311 + * @return The bytes for servicesIpv4Cidr. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { + java.lang.Object ref = servicesIpv4Cidr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servicesIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_SECONDARY_RANGE_NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object clusterSecondaryRangeName_; + /** + * + * + *
+   * The name of the secondary range to be used for the cluster CIDR
+   * block.  The secondary range will be used for pod IP
+   * addresses. This must be an existing secondary range associated
+   * with the cluster subnetwork.
+   * This field is only applicable with use_ip_aliases 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; + 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; + private volatile java.lang.Object clusterIpv4CidrBlock_; + /** + * + * + *
+   * The IP address range for the cluster pod IPs. If this field is set, then
+   * `cluster.cluster_ipv4_cidr` must be left blank.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string cluster_ipv4_cidr_block = 9; + * + * @return The clusterIpv4CidrBlock. + */ + @java.lang.Override + public java.lang.String getClusterIpv4CidrBlock() { + java.lang.Object ref = clusterIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterIpv4CidrBlock_ = s; + return s; + } + } + /** + * + * + *
+   * The IP address range for the cluster pod IPs. If this field is set, then
+   * `cluster.cluster_ipv4_cidr` must be left blank.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string cluster_ipv4_cidr_block = 9; + * + * @return The bytes for clusterIpv4CidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterIpv4CidrBlockBytes() { + java.lang.Object ref = clusterIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_IPV4_CIDR_BLOCK_FIELD_NUMBER = 10; + private volatile java.lang.Object nodeIpv4CidrBlock_; + /** + * + * + *
+   * The IP address range of the instance IPs in this cluster.
+   * This is applicable only if `create_subnetwork` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string node_ipv4_cidr_block = 10; + * + * @return The nodeIpv4CidrBlock. + */ + @java.lang.Override + public java.lang.String getNodeIpv4CidrBlock() { + java.lang.Object ref = nodeIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeIpv4CidrBlock_ = s; + return s; + } + } + /** + * + * + *
+   * The IP address range of the instance IPs in this cluster.
+   * This is applicable only if `create_subnetwork` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string node_ipv4_cidr_block = 10; + * + * @return The bytes for nodeIpv4CidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNodeIpv4CidrBlockBytes() { + java.lang.Object ref = nodeIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICES_IPV4_CIDR_BLOCK_FIELD_NUMBER = 11; + private volatile java.lang.Object servicesIpv4CidrBlock_; + /** + * + * + *
+   * The IP address range of the services IPs in this cluster. If blank, a range
+   * will be automatically chosen with the default size.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string services_ipv4_cidr_block = 11; + * + * @return The servicesIpv4CidrBlock. + */ + @java.lang.Override + public java.lang.String getServicesIpv4CidrBlock() { + java.lang.Object ref = servicesIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesIpv4CidrBlock_ = s; + return s; + } + } + /** + * + * + *
+   * The IP address range of the services IPs in this cluster. If blank, a range
+   * will be automatically chosen with the default size.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string services_ipv4_cidr_block = 11; + * + * @return The bytes for servicesIpv4CidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServicesIpv4CidrBlockBytes() { + java.lang.Object ref = servicesIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servicesIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TPU_IPV4_CIDR_BLOCK_FIELD_NUMBER = 13; + private volatile java.lang.Object tpuIpv4CidrBlock_; + /** + * + * + *
+   * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
+   * range will be automatically chosen with the default size.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * If unspecified, the range will use the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string tpu_ipv4_cidr_block = 13; + * + * @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_; + /** + * + * + *
+   * 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_; + /** + * + * + *
+   * 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() { + @SuppressWarnings("deprecation") + com.google.container.v1.StackType result = + com.google.container.v1.StackType.valueOf(stackType_); + return result == null ? com.google.container.v1.StackType.UNRECOGNIZED : result; + } + + public static final int IPV6_ACCESS_TYPE_FIELD_NUMBER = 17; + private int ipv6AccessType_; + /** + * + * + *
+   * 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() { + @SuppressWarnings("deprecation") + com.google.container.v1.IPv6AccessType result = + com.google.container.v1.IPv6AccessType.valueOf(ipv6AccessType_); + return result == null ? com.google.container.v1.IPv6AccessType.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 (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_); + } + 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_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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_; + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + useIpAliases_ = false; + + createSubnetwork_ = false; + + subnetworkName_ = ""; + + clusterIpv4Cidr_ = ""; + + nodeIpv4Cidr_ = ""; + + servicesIpv4Cidr_ = ""; + + clusterSecondaryRangeName_ = ""; + + servicesSecondaryRangeName_ = ""; + + clusterIpv4CidrBlock_ = ""; + + nodeIpv4CidrBlock_ = ""; + + servicesIpv4CidrBlock_ = ""; + + tpuIpv4CidrBlock_ = ""; + + useRoutes_ = false; + + stackType_ = 0; + + ipv6AccessType_ = 0; + + 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); + result.useIpAliases_ = useIpAliases_; + result.createSubnetwork_ = createSubnetwork_; + result.subnetworkName_ = subnetworkName_; + result.clusterIpv4Cidr_ = clusterIpv4Cidr_; + result.nodeIpv4Cidr_ = nodeIpv4Cidr_; + result.servicesIpv4Cidr_ = servicesIpv4Cidr_; + result.clusterSecondaryRangeName_ = clusterSecondaryRangeName_; + result.servicesSecondaryRangeName_ = servicesSecondaryRangeName_; + result.clusterIpv4CidrBlock_ = clusterIpv4CidrBlock_; + result.nodeIpv4CidrBlock_ = nodeIpv4CidrBlock_; + result.servicesIpv4CidrBlock_ = servicesIpv4CidrBlock_; + result.tpuIpv4CidrBlock_ = tpuIpv4CidrBlock_; + result.useRoutes_ = useRoutes_; + result.stackType_ = stackType_; + result.ipv6AccessType_ = ipv6AccessType_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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_; + onChanged(); + } + if (!other.getClusterIpv4Cidr().isEmpty()) { + clusterIpv4Cidr_ = other.clusterIpv4Cidr_; + onChanged(); + } + if (!other.getNodeIpv4Cidr().isEmpty()) { + nodeIpv4Cidr_ = other.nodeIpv4Cidr_; + onChanged(); + } + if (!other.getServicesIpv4Cidr().isEmpty()) { + servicesIpv4Cidr_ = other.servicesIpv4Cidr_; + onChanged(); + } + if (!other.getClusterSecondaryRangeName().isEmpty()) { + clusterSecondaryRangeName_ = other.clusterSecondaryRangeName_; + onChanged(); + } + if (!other.getServicesSecondaryRangeName().isEmpty()) { + servicesSecondaryRangeName_ = other.servicesSecondaryRangeName_; + onChanged(); + } + if (!other.getClusterIpv4CidrBlock().isEmpty()) { + clusterIpv4CidrBlock_ = other.clusterIpv4CidrBlock_; + onChanged(); + } + if (!other.getNodeIpv4CidrBlock().isEmpty()) { + nodeIpv4CidrBlock_ = other.nodeIpv4CidrBlock_; + onChanged(); + } + if (!other.getServicesIpv4CidrBlock().isEmpty()) { + servicesIpv4CidrBlock_ = other.servicesIpv4CidrBlock_; + onChanged(); + } + if (!other.getTpuIpv4CidrBlock().isEmpty()) { + tpuIpv4CidrBlock_ = other.tpuIpv4CidrBlock_; + onChanged(); + } + if (other.getUseRoutes() != false) { + setUseRoutes(other.getUseRoutes()); + } + if (other.stackType_ != 0) { + setStackTypeValue(other.getStackTypeValue()); + } + if (other.ipv6AccessType_ != 0) { + setIpv6AccessTypeValue(other.getIpv6AccessTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 8 + case 16: + { + createSubnetwork_ = input.readBool(); + + break; + } // case 16 + case 26: + { + subnetworkName_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + clusterIpv4Cidr_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + nodeIpv4Cidr_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + servicesIpv4Cidr_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: + { + clusterSecondaryRangeName_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + servicesSecondaryRangeName_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: + { + clusterIpv4CidrBlock_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 82: + { + nodeIpv4CidrBlock_ = input.readStringRequireUtf8(); + + break; + } // case 82 + case 90: + { + servicesIpv4CidrBlock_ = input.readStringRequireUtf8(); + + break; + } // case 90 + case 106: + { + tpuIpv4CidrBlock_ = input.readStringRequireUtf8(); + + break; + } // case 106 + case 120: + { + useRoutes_ = input.readBool(); + + break; + } // case 120 + case 128: + { + stackType_ = input.readEnum(); + + break; + } // case 128 + case 136: + { + ipv6AccessType_ = input.readEnum(); + + break; + } // case 136 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private boolean useIpAliases_; + /** + * + * + *
+     * Whether alias IPs will be used for pod IPs in the cluster.
+     * This is used in conjunction with use_routes. It cannot
+     * be true if use_routes is true. If both use_ip_aliases and use_routes are
+     * false, then the server picks the default IP allocation mode
+     * 
+ * + * bool use_ip_aliases = 1; + * + * @return The useIpAliases. + */ + @java.lang.Override + public boolean getUseIpAliases() { + return useIpAliases_; + } + /** + * + * + *
+     * Whether alias IPs will be used for pod IPs in the cluster.
+     * This is used in conjunction with use_routes. It cannot
+     * be true if use_routes is true. If both use_ip_aliases and use_routes are
+     * false, then the server picks the default IP allocation mode
+     * 
+ * + * bool use_ip_aliases = 1; + * + * @param value The useIpAliases to set. + * @return This builder for chaining. + */ + public Builder setUseIpAliases(boolean value) { + + useIpAliases_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether alias IPs will be used for pod IPs in the cluster.
+     * This is used in conjunction with use_routes. It cannot
+     * be true if use_routes is true. If both use_ip_aliases and use_routes are
+     * false, then the server picks the default IP allocation mode
+     * 
+ * + * bool use_ip_aliases = 1; + * + * @return This builder for chaining. + */ + public Builder clearUseIpAliases() { + + useIpAliases_ = false; + onChanged(); + return this; + } + + private boolean createSubnetwork_; + /** + * + * + *
+     * Whether a new subnetwork will be created automatically for the cluster.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * 
+ * + * bool create_subnetwork = 2; + * + * @return The createSubnetwork. + */ + @java.lang.Override + public boolean getCreateSubnetwork() { + return createSubnetwork_; + } + /** + * + * + *
+     * Whether a new subnetwork will be created automatically for the cluster.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * 
+ * + * bool create_subnetwork = 2; + * + * @param value The createSubnetwork to set. + * @return This builder for chaining. + */ + public Builder setCreateSubnetwork(boolean value) { + + createSubnetwork_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether a new subnetwork will be created automatically for the cluster.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * 
+ * + * bool create_subnetwork = 2; + * + * @return This builder for chaining. + */ + public Builder clearCreateSubnetwork() { + + createSubnetwork_ = false; + onChanged(); + return this; + } + + private java.lang.Object subnetworkName_ = ""; + /** + * + * + *
+     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+     * this field is empty, then an automatic name will be chosen for the new
+     * subnetwork.
+     * 
+ * + * string subnetwork_name = 3; + * + * @return The subnetworkName. + */ + public java.lang.String getSubnetworkName() { + java.lang.Object ref = subnetworkName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetworkName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+     * this field is empty, then an automatic name will be chosen for the new
+     * subnetwork.
+     * 
+ * + * string subnetwork_name = 3; + * + * @return The bytes for subnetworkName. + */ + public com.google.protobuf.ByteString getSubnetworkNameBytes() { + java.lang.Object ref = subnetworkName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnetworkName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+     * this field is empty, then an automatic name will be chosen for the new
+     * subnetwork.
+     * 
+ * + * string subnetwork_name = 3; + * + * @param value The subnetworkName to set. + * @return This builder for chaining. + */ + public Builder setSubnetworkName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subnetworkName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+     * this field is empty, then an automatic name will be chosen for the new
+     * subnetwork.
+     * 
+ * + * string subnetwork_name = 3; + * + * @return This builder for chaining. + */ + public Builder clearSubnetworkName() { + + subnetworkName_ = getDefaultInstance().getSubnetworkName(); + onChanged(); + return this; + } + /** + * + * + *
+     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+     * this field is empty, then an automatic name will be chosen for the new
+     * subnetwork.
+     * 
+ * + * string subnetwork_name = 3; + * + * @param value The bytes for subnetworkName to set. + * @return This builder for chaining. + */ + public Builder setSubnetworkNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subnetworkName_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterIpv4Cidr_ = ""; + /** + * + * + *
+     * This field is deprecated, use cluster_ipv4_cidr_block.
+     * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + * + * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See + * google/container/v1/cluster_service.proto;l=1305 + * @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=1305 + * @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=1305 + * @param value The clusterIpv4Cidr to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIpv4Cidr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterIpv4Cidr_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * This field is deprecated, use cluster_ipv4_cidr_block.
+     * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + * + * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See + * google/container/v1/cluster_service.proto;l=1305 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterIpv4Cidr() { + + clusterIpv4Cidr_ = getDefaultInstance().getClusterIpv4Cidr(); + onChanged(); + return this; + } + /** + * + * + *
+     * This field is deprecated, use cluster_ipv4_cidr_block.
+     * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + * + * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See + * google/container/v1/cluster_service.proto;l=1305 + * @param value The bytes for clusterIpv4Cidr to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIpv4CidrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterIpv4Cidr_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodeIpv4Cidr_ = ""; + /** + * + * + *
+     * This field is deprecated, use node_ipv4_cidr_block.
+     * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + * + * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See + * google/container/v1/cluster_service.proto;l=1308 + * @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=1308 + * @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=1308 + * @param value The nodeIpv4Cidr to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodeIpv4Cidr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeIpv4Cidr_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * This field is deprecated, use node_ipv4_cidr_block.
+     * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + * + * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See + * google/container/v1/cluster_service.proto;l=1308 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearNodeIpv4Cidr() { + + nodeIpv4Cidr_ = getDefaultInstance().getNodeIpv4Cidr(); + onChanged(); + return this; + } + /** + * + * + *
+     * This field is deprecated, use node_ipv4_cidr_block.
+     * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + * + * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See + * google/container/v1/cluster_service.proto;l=1308 + * @param value The bytes for nodeIpv4Cidr to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodeIpv4CidrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeIpv4Cidr_ = value; + onChanged(); + return this; + } + + private java.lang.Object servicesIpv4Cidr_ = ""; + /** + * + * + *
+     * This field is deprecated, use services_ipv4_cidr_block.
+     * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + * + * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See + * google/container/v1/cluster_service.proto;l=1311 + * @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=1311 + * @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=1311 + * @param value The servicesIpv4Cidr to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setServicesIpv4Cidr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + servicesIpv4Cidr_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * This field is deprecated, use services_ipv4_cidr_block.
+     * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + * + * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See + * google/container/v1/cluster_service.proto;l=1311 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearServicesIpv4Cidr() { + + servicesIpv4Cidr_ = getDefaultInstance().getServicesIpv4Cidr(); + onChanged(); + return this; + } + /** + * + * + *
+     * This field is deprecated, use services_ipv4_cidr_block.
+     * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + * + * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See + * google/container/v1/cluster_service.proto;l=1311 + * @param value The bytes for servicesIpv4Cidr to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setServicesIpv4CidrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + servicesIpv4Cidr_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterSecondaryRangeName_ = ""; + /** + * + * + *
+     * The name of the secondary range to be used for the cluster CIDR
+     * block.  The secondary range will be used for pod IP
+     * addresses. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable with use_ip_aliases 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; + 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(); + 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; + 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; + 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(); + 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; + onChanged(); + return this; + } + + private java.lang.Object clusterIpv4CidrBlock_ = ""; + /** + * + * + *
+     * The IP address range for the cluster pod IPs. If this field is set, then
+     * `cluster.cluster_ipv4_cidr` must be left blank.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string cluster_ipv4_cidr_block = 9; + * + * @return The clusterIpv4CidrBlock. + */ + public java.lang.String getClusterIpv4CidrBlock() { + java.lang.Object ref = clusterIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The IP address range for the cluster pod IPs. If this field is set, then
+     * `cluster.cluster_ipv4_cidr` must be left blank.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string cluster_ipv4_cidr_block = 9; + * + * @return The bytes for clusterIpv4CidrBlock. + */ + public com.google.protobuf.ByteString getClusterIpv4CidrBlockBytes() { + java.lang.Object ref = clusterIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The IP address range for the cluster pod IPs. If this field is set, then
+     * `cluster.cluster_ipv4_cidr` must be left blank.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string cluster_ipv4_cidr_block = 9; + * + * @param value The clusterIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setClusterIpv4CidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterIpv4CidrBlock_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address range for the cluster pod IPs. If this field is set, then
+     * `cluster.cluster_ipv4_cidr` must be left blank.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string cluster_ipv4_cidr_block = 9; + * + * @return This builder for chaining. + */ + public Builder clearClusterIpv4CidrBlock() { + + clusterIpv4CidrBlock_ = getDefaultInstance().getClusterIpv4CidrBlock(); + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address range for the cluster pod IPs. If this field is set, then
+     * `cluster.cluster_ipv4_cidr` must be left blank.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string cluster_ipv4_cidr_block = 9; + * + * @param value The bytes for clusterIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setClusterIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterIpv4CidrBlock_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodeIpv4CidrBlock_ = ""; + /** + * + * + *
+     * The IP address range of the instance IPs in this cluster.
+     * This is applicable only if `create_subnetwork` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string node_ipv4_cidr_block = 10; + * + * @return The nodeIpv4CidrBlock. + */ + public java.lang.String getNodeIpv4CidrBlock() { + java.lang.Object ref = nodeIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The IP address range of the instance IPs in this cluster.
+     * This is applicable only if `create_subnetwork` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string node_ipv4_cidr_block = 10; + * + * @return The bytes for nodeIpv4CidrBlock. + */ + public com.google.protobuf.ByteString getNodeIpv4CidrBlockBytes() { + java.lang.Object ref = nodeIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The IP address range of the instance IPs in this cluster.
+     * This is applicable only if `create_subnetwork` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string node_ipv4_cidr_block = 10; + * + * @param value The nodeIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setNodeIpv4CidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeIpv4CidrBlock_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address range of the instance IPs in this cluster.
+     * This is applicable only if `create_subnetwork` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string node_ipv4_cidr_block = 10; + * + * @return This builder for chaining. + */ + public Builder clearNodeIpv4CidrBlock() { + + nodeIpv4CidrBlock_ = getDefaultInstance().getNodeIpv4CidrBlock(); + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address range of the instance IPs in this cluster.
+     * This is applicable only if `create_subnetwork` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string node_ipv4_cidr_block = 10; + * + * @param value The bytes for nodeIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setNodeIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeIpv4CidrBlock_ = value; + onChanged(); + return this; + } + + private java.lang.Object servicesIpv4CidrBlock_ = ""; + /** + * + * + *
+     * The IP address range of the services IPs in this cluster. If blank, a range
+     * will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string services_ipv4_cidr_block = 11; + * + * @return The servicesIpv4CidrBlock. + */ + public java.lang.String getServicesIpv4CidrBlock() { + java.lang.Object ref = servicesIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The IP address range of the services IPs in this cluster. If blank, a range
+     * will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string services_ipv4_cidr_block = 11; + * + * @return The bytes for servicesIpv4CidrBlock. + */ + public com.google.protobuf.ByteString getServicesIpv4CidrBlockBytes() { + java.lang.Object ref = servicesIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servicesIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The IP address range of the services IPs in this cluster. If blank, a range
+     * will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string services_ipv4_cidr_block = 11; + * + * @param value The servicesIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setServicesIpv4CidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + servicesIpv4CidrBlock_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address range of the services IPs in this cluster. If blank, a range
+     * will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string services_ipv4_cidr_block = 11; + * + * @return This builder for chaining. + */ + public Builder clearServicesIpv4CidrBlock() { + + servicesIpv4CidrBlock_ = getDefaultInstance().getServicesIpv4CidrBlock(); + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address range of the services IPs in this cluster. If blank, a range
+     * will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string services_ipv4_cidr_block = 11; + * + * @param value The bytes for servicesIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setServicesIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + servicesIpv4CidrBlock_ = value; + onChanged(); + return this; + } + + private 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; + 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(); + 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; + onChanged(); + return this; + } + + private boolean useRoutes_; + /** + * + * + *
+     * Whether routes will be used for pod IPs in the cluster.
+     * This is used in conjunction with use_ip_aliases. It cannot be true if
+     * use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
+     * then the server picks the default IP allocation mode
+     * 
+ * + * bool use_routes = 15; + * + * @return The useRoutes. + */ + @java.lang.Override + public boolean getUseRoutes() { + return useRoutes_; + } + /** + * + * + *
+     * Whether routes will be used for pod IPs in the cluster.
+     * This is used in conjunction with use_ip_aliases. It cannot be true if
+     * use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
+     * then the server picks the default IP allocation mode
+     * 
+ * + * bool use_routes = 15; + * + * @param value The useRoutes to set. + * @return This builder for chaining. + */ + public Builder setUseRoutes(boolean value) { + + useRoutes_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether routes will be used for pod IPs in the cluster.
+     * This is used in conjunction with use_ip_aliases. It cannot be true if
+     * use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
+     * then the server picks the default IP allocation mode
+     * 
+ * + * bool use_routes = 15; + * + * @return This builder for chaining. + */ + public Builder clearUseRoutes() { + + useRoutes_ = false; + onChanged(); + return this; + } + + 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; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1.StackType result = + com.google.container.v1.StackType.valueOf(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(); + } + + 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() { + + 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; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1.IPv6AccessType result = + com.google.container.v1.IPv6AccessType.valueOf(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(); + } + + 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() { + + ipv6AccessType_ = 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.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 new file mode 100644 index 000000000000..24c8ea0d0c3c --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java @@ -0,0 +1,491 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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=1305 + * @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=1305 + * @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=1308 + * @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=1308 + * @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=1311 + * @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=1311 + * @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(); +} 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 new file mode 100644 index 000000000000..7819f8a97459 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPv6AccessType.java @@ -0,0 +1,176 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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 new file mode 100644 index 000000000000..6bd9aa6b74ae --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IdentityServiceConfig.java @@ -0,0 +1,528 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * 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(); + 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); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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(); + + 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 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether to enable the Identity Service component
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.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 new file mode 100644 index 000000000000..7be1d3e9bf67 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IdentityServiceConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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/IntraNodeVisibilityConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IntraNodeVisibilityConfig.java new file mode 100644 index 000000000000..6dc2502d2e6f --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IntraNodeVisibilityConfig.java @@ -0,0 +1,529 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * 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(); + 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); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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(); + + 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 boolean enabled_; + /** + * + * + *
+     * Enables intra node visibility for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Enables intra node visibility for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Enables intra node visibility for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..38e2b812a11d --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IntraNodeVisibilityConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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 new file mode 100644 index 000000000000..2c3404bf6aed --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Jwk.java @@ -0,0 +1,2033 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Jwk is a JSON Web Key as specified in RFC 7517
+ * 
+ * + * Protobuf type {@code google.container.v1.Jwk} + */ +public final class Jwk extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.Jwk) + JwkOrBuilder { + private static final long serialVersionUID = 0L; + // Use Jwk.newBuilder() to construct. + private Jwk(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Jwk() { + kty_ = ""; + alg_ = ""; + use_ = ""; + kid_ = ""; + n_ = ""; + e_ = ""; + x_ = ""; + y_ = ""; + crv_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Jwk(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_Jwk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_Jwk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.Jwk.class, com.google.container.v1.Jwk.Builder.class); + } + + public static final int KTY_FIELD_NUMBER = 1; + private volatile java.lang.Object kty_; + /** + * + * + *
+   * Key Type.
+   * 
+ * + * string kty = 1; + * + * @return The kty. + */ + @java.lang.Override + public java.lang.String getKty() { + java.lang.Object ref = kty_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kty_ = s; + return s; + } + } + /** + * + * + *
+   * Key Type.
+   * 
+ * + * string kty = 1; + * + * @return The bytes for kty. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKtyBytes() { + java.lang.Object ref = kty_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kty_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALG_FIELD_NUMBER = 2; + private volatile java.lang.Object alg_; + /** + * + * + *
+   * Algorithm.
+   * 
+ * + * string alg = 2; + * + * @return The alg. + */ + @java.lang.Override + public java.lang.String getAlg() { + java.lang.Object ref = alg_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alg_ = s; + return s; + } + } + /** + * + * + *
+   * Algorithm.
+   * 
+ * + * string alg = 2; + * + * @return The bytes for alg. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAlgBytes() { + java.lang.Object ref = alg_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + alg_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USE_FIELD_NUMBER = 3; + private volatile java.lang.Object use_; + /** + * + * + *
+   * Permitted uses for the public keys.
+   * 
+ * + * string use = 3; + * + * @return The use. + */ + @java.lang.Override + public java.lang.String getUse() { + java.lang.Object ref = use_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + use_ = s; + return s; + } + } + /** + * + * + *
+   * Permitted uses for the public keys.
+   * 
+ * + * string use = 3; + * + * @return The bytes for use. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUseBytes() { + java.lang.Object ref = use_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + use_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KID_FIELD_NUMBER = 4; + private volatile java.lang.Object kid_; + /** + * + * + *
+   * Key ID.
+   * 
+ * + * string kid = 4; + * + * @return The kid. + */ + @java.lang.Override + public java.lang.String getKid() { + java.lang.Object ref = kid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kid_ = s; + return s; + } + } + /** + * + * + *
+   * Key ID.
+   * 
+ * + * string kid = 4; + * + * @return The bytes for kid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKidBytes() { + java.lang.Object ref = kid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int N_FIELD_NUMBER = 5; + private volatile java.lang.Object n_; + /** + * + * + *
+   * Used for RSA keys.
+   * 
+ * + * string n = 5; + * + * @return The n. + */ + @java.lang.Override + public java.lang.String getN() { + java.lang.Object ref = n_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + n_ = s; + return s; + } + } + /** + * + * + *
+   * Used for RSA keys.
+   * 
+ * + * string n = 5; + * + * @return The bytes for n. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNBytes() { + java.lang.Object ref = n_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + n_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int E_FIELD_NUMBER = 6; + private volatile java.lang.Object e_; + /** + * + * + *
+   * Used for RSA keys.
+   * 
+ * + * string e = 6; + * + * @return The e. + */ + @java.lang.Override + public java.lang.String getE() { + java.lang.Object ref = e_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + e_ = s; + return s; + } + } + /** + * + * + *
+   * Used for RSA keys.
+   * 
+ * + * string e = 6; + * + * @return The bytes for e. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEBytes() { + java.lang.Object ref = e_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + e_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int X_FIELD_NUMBER = 7; + private volatile java.lang.Object x_; + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string x = 7; + * + * @return The x. + */ + @java.lang.Override + public java.lang.String getX() { + java.lang.Object ref = x_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + x_ = s; + return s; + } + } + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string x = 7; + * + * @return The bytes for x. + */ + @java.lang.Override + public com.google.protobuf.ByteString getXBytes() { + java.lang.Object ref = x_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + x_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int Y_FIELD_NUMBER = 8; + private volatile java.lang.Object y_; + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string y = 8; + * + * @return The y. + */ + @java.lang.Override + public java.lang.String getY() { + java.lang.Object ref = y_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + y_ = s; + return s; + } + } + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string y = 8; + * + * @return The bytes for y. + */ + @java.lang.Override + public com.google.protobuf.ByteString getYBytes() { + java.lang.Object ref = y_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + y_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CRV_FIELD_NUMBER = 9; + private volatile java.lang.Object crv_; + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string crv = 9; + * + * @return The crv. + */ + @java.lang.Override + public java.lang.String getCrv() { + java.lang.Object ref = crv_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + crv_ = s; + return s; + } + } + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string crv = 9; + * + * @return The bytes for crv. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCrvBytes() { + java.lang.Object ref = crv_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + crv_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + kty_ = ""; + + alg_ = ""; + + use_ = ""; + + kid_ = ""; + + n_ = ""; + + e_ = ""; + + x_ = ""; + + y_ = ""; + + crv_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_Jwk_descriptor; + } + + @java.lang.Override + public com.google.container.v1.Jwk getDefaultInstanceForType() { + return com.google.container.v1.Jwk.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.Jwk build() { + com.google.container.v1.Jwk result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.Jwk buildPartial() { + com.google.container.v1.Jwk result = new com.google.container.v1.Jwk(this); + result.kty_ = kty_; + result.alg_ = alg_; + result.use_ = use_; + result.kid_ = kid_; + result.n_ = n_; + result.e_ = e_; + result.x_ = x_; + result.y_ = y_; + result.crv_ = crv_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.Jwk) { + return mergeFrom((com.google.container.v1.Jwk) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.Jwk other) { + if (other == com.google.container.v1.Jwk.getDefaultInstance()) return this; + if (!other.getKty().isEmpty()) { + kty_ = other.kty_; + onChanged(); + } + if (!other.getAlg().isEmpty()) { + alg_ = other.alg_; + onChanged(); + } + if (!other.getUse().isEmpty()) { + use_ = other.use_; + onChanged(); + } + if (!other.getKid().isEmpty()) { + kid_ = other.kid_; + onChanged(); + } + if (!other.getN().isEmpty()) { + n_ = other.n_; + onChanged(); + } + if (!other.getE().isEmpty()) { + e_ = other.e_; + onChanged(); + } + if (!other.getX().isEmpty()) { + x_ = other.x_; + onChanged(); + } + if (!other.getY().isEmpty()) { + y_ = other.y_; + onChanged(); + } + if (!other.getCrv().isEmpty()) { + crv_ = other.crv_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + alg_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + use_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + kid_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + n_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + e_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: + { + x_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + y_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: + { + crv_ = input.readStringRequireUtf8(); + + 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 java.lang.Object kty_ = ""; + /** + * + * + *
+     * Key Type.
+     * 
+ * + * string kty = 1; + * + * @return The kty. + */ + public java.lang.String getKty() { + java.lang.Object ref = kty_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kty_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Key Type.
+     * 
+ * + * string kty = 1; + * + * @return The bytes for kty. + */ + public com.google.protobuf.ByteString getKtyBytes() { + java.lang.Object ref = kty_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kty_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Key Type.
+     * 
+ * + * string kty = 1; + * + * @param value The kty to set. + * @return This builder for chaining. + */ + public Builder setKty(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + kty_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Key Type.
+     * 
+ * + * string kty = 1; + * + * @return This builder for chaining. + */ + public Builder clearKty() { + + kty_ = getDefaultInstance().getKty(); + onChanged(); + return this; + } + /** + * + * + *
+     * Key Type.
+     * 
+ * + * string kty = 1; + * + * @param value The bytes for kty to set. + * @return This builder for chaining. + */ + public Builder setKtyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + kty_ = value; + onChanged(); + return this; + } + + private java.lang.Object alg_ = ""; + /** + * + * + *
+     * Algorithm.
+     * 
+ * + * string alg = 2; + * + * @return The alg. + */ + public java.lang.String getAlg() { + java.lang.Object ref = alg_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alg_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Algorithm.
+     * 
+ * + * string alg = 2; + * + * @return The bytes for alg. + */ + public com.google.protobuf.ByteString getAlgBytes() { + java.lang.Object ref = alg_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + alg_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Algorithm.
+     * 
+ * + * string alg = 2; + * + * @param value The alg to set. + * @return This builder for chaining. + */ + public Builder setAlg(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + alg_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Algorithm.
+     * 
+ * + * string alg = 2; + * + * @return This builder for chaining. + */ + public Builder clearAlg() { + + alg_ = getDefaultInstance().getAlg(); + onChanged(); + return this; + } + /** + * + * + *
+     * Algorithm.
+     * 
+ * + * string alg = 2; + * + * @param value The bytes for alg to set. + * @return This builder for chaining. + */ + public Builder setAlgBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + alg_ = value; + onChanged(); + return this; + } + + private java.lang.Object use_ = ""; + /** + * + * + *
+     * Permitted uses for the public keys.
+     * 
+ * + * string use = 3; + * + * @return The use. + */ + public java.lang.String getUse() { + java.lang.Object ref = use_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + use_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Permitted uses for the public keys.
+     * 
+ * + * string use = 3; + * + * @return The bytes for use. + */ + public com.google.protobuf.ByteString getUseBytes() { + java.lang.Object ref = use_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + use_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Permitted uses for the public keys.
+     * 
+ * + * string use = 3; + * + * @param value The use to set. + * @return This builder for chaining. + */ + public Builder setUse(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + use_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Permitted uses for the public keys.
+     * 
+ * + * string use = 3; + * + * @return This builder for chaining. + */ + public Builder clearUse() { + + use_ = getDefaultInstance().getUse(); + onChanged(); + return this; + } + /** + * + * + *
+     * Permitted uses for the public keys.
+     * 
+ * + * string use = 3; + * + * @param value The bytes for use to set. + * @return This builder for chaining. + */ + public Builder setUseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + use_ = value; + onChanged(); + return this; + } + + private java.lang.Object kid_ = ""; + /** + * + * + *
+     * Key ID.
+     * 
+ * + * string kid = 4; + * + * @return The kid. + */ + public java.lang.String getKid() { + java.lang.Object ref = kid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Key ID.
+     * 
+ * + * string kid = 4; + * + * @return The bytes for kid. + */ + public com.google.protobuf.ByteString getKidBytes() { + java.lang.Object ref = kid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Key ID.
+     * 
+ * + * string kid = 4; + * + * @param value The kid to set. + * @return This builder for chaining. + */ + public Builder setKid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + kid_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Key ID.
+     * 
+ * + * string kid = 4; + * + * @return This builder for chaining. + */ + public Builder clearKid() { + + kid_ = getDefaultInstance().getKid(); + onChanged(); + return this; + } + /** + * + * + *
+     * Key ID.
+     * 
+ * + * string kid = 4; + * + * @param value The bytes for kid to set. + * @return This builder for chaining. + */ + public Builder setKidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + kid_ = value; + onChanged(); + return this; + } + + private java.lang.Object n_ = ""; + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string n = 5; + * + * @return The n. + */ + public java.lang.String getN() { + java.lang.Object ref = n_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + n_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string n = 5; + * + * @return The bytes for n. + */ + public com.google.protobuf.ByteString getNBytes() { + java.lang.Object ref = n_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + n_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string n = 5; + * + * @param value The n to set. + * @return This builder for chaining. + */ + public Builder setN(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + n_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string n = 5; + * + * @return This builder for chaining. + */ + public Builder clearN() { + + n_ = getDefaultInstance().getN(); + onChanged(); + return this; + } + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string n = 5; + * + * @param value The bytes for n to set. + * @return This builder for chaining. + */ + public Builder setNBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + n_ = value; + onChanged(); + return this; + } + + private java.lang.Object e_ = ""; + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string e = 6; + * + * @return The e. + */ + public java.lang.String getE() { + java.lang.Object ref = e_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + e_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string e = 6; + * + * @return The bytes for e. + */ + public com.google.protobuf.ByteString getEBytes() { + java.lang.Object ref = e_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + e_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string e = 6; + * + * @param value The e to set. + * @return This builder for chaining. + */ + public Builder setE(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + e_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string e = 6; + * + * @return This builder for chaining. + */ + public Builder clearE() { + + e_ = getDefaultInstance().getE(); + onChanged(); + return this; + } + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string e = 6; + * + * @param value The bytes for e to set. + * @return This builder for chaining. + */ + public Builder setEBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + e_ = value; + onChanged(); + return this; + } + + private java.lang.Object x_ = ""; + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string x = 7; + * + * @return The x. + */ + public java.lang.String getX() { + java.lang.Object ref = x_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + x_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string x = 7; + * + * @return The bytes for x. + */ + public com.google.protobuf.ByteString getXBytes() { + java.lang.Object ref = x_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + x_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string x = 7; + * + * @param value The x to set. + * @return This builder for chaining. + */ + public Builder setX(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + x_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string x = 7; + * + * @return This builder for chaining. + */ + public Builder clearX() { + + x_ = getDefaultInstance().getX(); + onChanged(); + return this; + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string x = 7; + * + * @param value The bytes for x to set. + * @return This builder for chaining. + */ + public Builder setXBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + x_ = value; + onChanged(); + return this; + } + + private java.lang.Object y_ = ""; + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string y = 8; + * + * @return The y. + */ + public java.lang.String getY() { + java.lang.Object ref = y_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + y_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string y = 8; + * + * @return The bytes for y. + */ + public com.google.protobuf.ByteString getYBytes() { + java.lang.Object ref = y_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + y_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string y = 8; + * + * @param value The y to set. + * @return This builder for chaining. + */ + public Builder setY(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + y_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string y = 8; + * + * @return This builder for chaining. + */ + public Builder clearY() { + + y_ = getDefaultInstance().getY(); + onChanged(); + return this; + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string y = 8; + * + * @param value The bytes for y to set. + * @return This builder for chaining. + */ + public Builder setYBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + y_ = value; + onChanged(); + return this; + } + + private java.lang.Object crv_ = ""; + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string crv = 9; + * + * @return The crv. + */ + public java.lang.String getCrv() { + java.lang.Object ref = crv_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + crv_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string crv = 9; + * + * @return The bytes for crv. + */ + public com.google.protobuf.ByteString getCrvBytes() { + java.lang.Object ref = crv_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + crv_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string crv = 9; + * + * @param value The crv to set. + * @return This builder for chaining. + */ + public Builder setCrv(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + crv_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string crv = 9; + * + * @return This builder for chaining. + */ + public Builder clearCrv() { + + crv_ = getDefaultInstance().getCrv(); + onChanged(); + return this; + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string crv = 9; + * + * @param value The bytes for crv to set. + * @return This builder for chaining. + */ + public Builder setCrvBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + crv_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.Jwk) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.Jwk) + private static final com.google.container.v1.Jwk DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.Jwk(); + } + + public static com.google.container.v1.Jwk getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Jwk parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..1a1d84d21012 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/JwkOrBuilder.java @@ -0,0 +1,250 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface JwkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.Jwk) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Key Type.
+   * 
+ * + * string kty = 1; + * + * @return The kty. + */ + java.lang.String getKty(); + /** + * + * + *
+   * Key Type.
+   * 
+ * + * string kty = 1; + * + * @return The bytes for kty. + */ + com.google.protobuf.ByteString getKtyBytes(); + + /** + * + * + *
+   * Algorithm.
+   * 
+ * + * string alg = 2; + * + * @return The alg. + */ + java.lang.String getAlg(); + /** + * + * + *
+   * Algorithm.
+   * 
+ * + * string alg = 2; + * + * @return The bytes for alg. + */ + com.google.protobuf.ByteString getAlgBytes(); + + /** + * + * + *
+   * Permitted uses for the public keys.
+   * 
+ * + * string use = 3; + * + * @return The use. + */ + java.lang.String getUse(); + /** + * + * + *
+   * Permitted uses for the public keys.
+   * 
+ * + * string use = 3; + * + * @return The bytes for use. + */ + com.google.protobuf.ByteString getUseBytes(); + + /** + * + * + *
+   * Key ID.
+   * 
+ * + * string kid = 4; + * + * @return The kid. + */ + java.lang.String getKid(); + /** + * + * + *
+   * Key ID.
+   * 
+ * + * string kid = 4; + * + * @return The bytes for kid. + */ + com.google.protobuf.ByteString getKidBytes(); + + /** + * + * + *
+   * Used for RSA keys.
+   * 
+ * + * string n = 5; + * + * @return The n. + */ + java.lang.String getN(); + /** + * + * + *
+   * Used for RSA keys.
+   * 
+ * + * string n = 5; + * + * @return The bytes for n. + */ + com.google.protobuf.ByteString getNBytes(); + + /** + * + * + *
+   * Used for RSA keys.
+   * 
+ * + * string e = 6; + * + * @return The e. + */ + java.lang.String getE(); + /** + * + * + *
+   * Used for RSA keys.
+   * 
+ * + * string e = 6; + * + * @return The bytes for e. + */ + com.google.protobuf.ByteString getEBytes(); + + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string x = 7; + * + * @return The x. + */ + java.lang.String getX(); + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string x = 7; + * + * @return The bytes for x. + */ + com.google.protobuf.ByteString getXBytes(); + + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string y = 8; + * + * @return The y. + */ + java.lang.String getY(); + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string y = 8; + * + * @return The bytes for y. + */ + com.google.protobuf.ByteString getYBytes(); + + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string crv = 9; + * + * @return The crv. + */ + java.lang.String getCrv(); + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string crv = 9; + * + * @return The bytes for crv. + */ + com.google.protobuf.ByteString getCrvBytes(); +} diff --git a/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 new file mode 100644 index 000000000000..3a1ff1c90d4a --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/KubernetesDashboard.java @@ -0,0 +1,526 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Configuration for the 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * 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(); + 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); + result.disabled_ = disabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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(); + + 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 boolean disabled_; + /** + * + * + *
+     * Whether the Kubernetes Dashboard is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + /** + * + * + *
+     * Whether the Kubernetes Dashboard is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * + * @param value The disabled to set. + * @return This builder for chaining. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the Kubernetes Dashboard is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisabled() { + + disabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..3132e05c1074 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/KubernetesDashboardOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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 new file mode 100644 index 000000000000..b329e6a30734 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LegacyAbac.java @@ -0,0 +1,537 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Configuration for the 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * 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(); + 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); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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(); + + 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 boolean enabled_; + /** + * + * + *
+     * Whether the ABAC authorizer is enabled for this cluster. When enabled,
+     * identities in the system, including service accounts, nodes, and
+     * controllers, will have statically granted permissions beyond those
+     * provided by the RBAC configuration or IAM.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether the ABAC authorizer is enabled for this cluster. When enabled,
+     * identities in the system, including service accounts, nodes, and
+     * controllers, will have statically granted permissions beyond those
+     * provided by the RBAC configuration or IAM.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the ABAC authorizer is enabled for this cluster. When enabled,
+     * identities in the system, including service accounts, nodes, and
+     * controllers, will have statically granted permissions beyond those
+     * provided by the RBAC configuration or IAM.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..373ff779c46c --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LegacyAbacOrBuilder.java @@ -0,0 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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 new file mode 100644 index 000000000000..bf260f7ea241 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfig.java @@ -0,0 +1,1218 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Parameters that can be configured on Linux nodes.
+ * 
+ * + * Protobuf type {@code google.container.v1.LinuxNodeConfig} + */ +public final class LinuxNodeConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.LinuxNodeConfig) + LinuxNodeConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use LinuxNodeConfig.newBuilder() to construct. + private LinuxNodeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LinuxNodeConfig() { + cgroupMode_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LinuxNodeConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_LinuxNodeConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetSysctls(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_LinuxNodeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.LinuxNodeConfig.class, + com.google.container.v1.LinuxNodeConfig.Builder.class); + } + + /** + * + * + *
+   * 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, + ""); + } + + 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 java.lang.String getSysctlsOrDefault(java.lang.String key, 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_; + /** + * + * + *
+   * 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() { + @SuppressWarnings("deprecation") + com.google.container.v1.LinuxNodeConfig.CgroupMode result = + com.google.container.v1.LinuxNodeConfig.CgroupMode.valueOf(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.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetSysctls(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 1: + return internalGetMutableSysctls(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_LinuxNodeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.LinuxNodeConfig.class, + com.google.container.v1.LinuxNodeConfig.Builder.class); + } + + // Construct using com.google.container.v1.LinuxNodeConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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); + int from_bitField0_ = bitField0_; + result.sysctls_ = internalGetSysctls(); + result.sysctls_.makeImmutable(); + result.cgroupMode_ = cgroupMode_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.LinuxNodeConfig) { + return mergeFrom((com.google.container.v1.LinuxNodeConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.LinuxNodeConfig other) { + if (other == com.google.container.v1.LinuxNodeConfig.getDefaultInstance()) return this; + internalGetMutableSysctls().mergeFrom(other.internalGetSysctls()); + 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()); + break; + } // case 10 + case 16: + { + cgroupMode_ = input.readEnum(); + + 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() { + onChanged(); + ; + if (sysctls_ == null) { + sysctls_ = com.google.protobuf.MapField.newMapField(SysctlsDefaultEntryHolder.defaultEntry); + } + if (!sysctls_.isMutable()) { + sysctls_ = sysctls_.copy(); + } + return sysctls_; + } + + public int getSysctlsCount() { + return internalGetSysctls().getMap().size(); + } + /** + * + * + *
+     * The Linux kernel parameters to be applied to the nodes and all pods running
+     * on the nodes.
+     * The following parameters are supported.
+     * net.core.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 java.lang.String getSysctlsOrDefault( + java.lang.String key, 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() { + 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() { + 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); + 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); + 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; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1.LinuxNodeConfig.CgroupMode result = + com.google.container.v1.LinuxNodeConfig.CgroupMode.valueOf(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(); + } + + 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() { + + 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 new file mode 100644 index 000000000000..4e74478d4ab7 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfigOrBuilder.java @@ -0,0 +1,174 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface LinuxNodeConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.LinuxNodeConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Linux kernel parameters to be applied to the nodes and all pods running
+   * on the nodes.
+   * The following parameters are supported.
+   * net.core.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 new file mode 100644 index 000000000000..a40ed4bbec17 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java @@ -0,0 +1,1061 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + 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=2558 + * @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=2558 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * 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=2564 + * @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=2564 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARENT_FIELD_NUMBER = 4; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * The parent (project and location) where the clusters will be listed.
+   * Specified in the format `projects/*/locations/*`.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * The parent (project and location) where the clusters will be listed.
+   * Specified in the format `projects/*/locations/*`.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + 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); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 34: + { + parent_ = input.readStringRequireUtf8(); + + 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 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=2558 + * @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=2558 + * @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=2558 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The Google Developers Console [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=2558 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + 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=2558 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * 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=2564 + * @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=2564 + * @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=2564 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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=2564 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + 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=2564 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * The parent (project and location) where the clusters will be listed.
+     * Specified in the format `projects/*/locations/*`.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The parent (project and location) where the clusters will be listed.
+     * Specified in the format `projects/*/locations/*`.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The parent (project and location) where the clusters will be listed.
+     * Specified in the format `projects/*/locations/*`.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The parent (project and location) where the clusters will be listed.
+     * Specified in the format `projects/*/locations/*`.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * The parent (project and location) where the clusters will be listed.
+     * Specified in the format `projects/*/locations/*`.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..c3656477a04b --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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=2558 + * @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=2558 + * @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=2564 + * @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=2564 + * @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 new file mode 100644 index 000000000000..ad359a581ef1 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersResponse.java @@ -0,0 +1,1227 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListClustersResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + 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; + private com.google.protobuf.LazyStringList missingZones_; + /** + * + * + *
+   * If any zones are listed here, the list of clusters returned
+   * may be missing those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @return A list containing the missingZones. + */ + public com.google.protobuf.ProtocolStringList getMissingZonesList() { + return missingZones_; + } + /** + * + * + *
+   * If any zones are listed here, the list of clusters returned
+   * may be missing those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @return The count of missingZones. + */ + public int getMissingZonesCount() { + return missingZones_.size(); + } + /** + * + * + *
+   * If any zones are listed here, the list of clusters returned
+   * may be missing those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index of the element to return. + * @return The missingZones at the given index. + */ + public java.lang.String getMissingZones(int index) { + return missingZones_.get(index); + } + /** + * + * + *
+   * If any zones are listed here, the list of clusters returned
+   * may be missing those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index of the value to return. + * @return The bytes of the missingZones at the given index. + */ + public com.google.protobuf.ByteString getMissingZonesBytes(int index) { + return missingZones_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < clusters_.size(); i++) { + output.writeMessage(1, clusters_.get(i)); + } + for (int i = 0; i < missingZones_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, missingZones_.getRaw(i)); + } + 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(); + if (clustersBuilder_ == null) { + clusters_ = java.util.Collections.emptyList(); + } else { + clusters_ = null; + clustersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.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); + int from_bitField0_ = bitField0_; + if (clustersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + clusters_ = java.util.Collections.unmodifiableList(clusters_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.clusters_ = clusters_; + } else { + result.clusters_ = clustersBuilder_.build(); + } + if (((bitField0_ & 0x00000002) != 0)) { + missingZones_ = missingZones_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.missingZones_ = missingZones_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_ = (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.LazyStringList missingZones_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureMissingZonesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + missingZones_ = new com.google.protobuf.LazyStringArrayList(missingZones_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @return A list containing the missingZones. + */ + public com.google.protobuf.ProtocolStringList getMissingZonesList() { + return missingZones_.getUnmodifiableView(); + } + /** + * + * + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @return The count of missingZones. + */ + public int getMissingZonesCount() { + return missingZones_.size(); + } + /** + * + * + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index of the element to return. + * @return The missingZones at the given index. + */ + public java.lang.String getMissingZones(int index) { + return missingZones_.get(index); + } + /** + * + * + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index of the value to return. + * @return The bytes of the missingZones at the given index. + */ + public com.google.protobuf.ByteString getMissingZonesBytes(int index) { + return missingZones_.getByteString(index); + } + /** + * + * + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index to set the value at. + * @param value The missingZones to set. + * @return This builder for chaining. + */ + public Builder setMissingZones(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMissingZonesIsMutable(); + missingZones_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @param value The missingZones to add. + * @return This builder for chaining. + */ + public Builder addMissingZones(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMissingZonesIsMutable(); + missingZones_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @param values The missingZones to add. + * @return This builder for chaining. + */ + public Builder addAllMissingZones(java.lang.Iterable values) { + ensureMissingZonesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, missingZones_); + onChanged(); + return this; + } + /** + * + * + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @return This builder for chaining. + */ + public Builder clearMissingZones() { + missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @param value The bytes of the missingZones to add. + * @return This builder for chaining. + */ + public Builder addMissingZonesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureMissingZonesIsMutable(); + missingZones_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..e50ec4c0dd1e --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersResponseOrBuilder.java @@ -0,0 +1,136 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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 new file mode 100644 index 000000000000..e8d0e9360443 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java @@ -0,0 +1,1260 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + 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=2765 + * @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=2765 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Deprecated. The name of the Google Compute 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=2771 + * @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=2771 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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=2775 + * @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=2775 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARENT_FIELD_NUMBER = 5; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * The parent (project, location, cluster 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(); + 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); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 42: + { + parent_ = input.readStringRequireUtf8(); + + 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 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=2765 + * @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=2765 + * @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=2765 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The Google Developers Console [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=2765 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + 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=2765 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Deprecated. The name of the Google Compute 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=2771 + * @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=2771 + * @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=2771 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the Google Compute 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=2771 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + 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=2771 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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=2775 + * @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=2775 + * @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=2775 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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=2775 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * + * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See + * google/container/v1/cluster_service.proto;l=2775 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * The parent (project, location, cluster 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..34038d3208fa --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java @@ -0,0 +1,157 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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=2765 + * @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=2765 + * @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=2771 + * @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=2771 + * @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=2775 + * @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=2775 + * @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 new file mode 100644 index 000000000000..01e7e3989fe2 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsResponse.java @@ -0,0 +1,923 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + 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(); + 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); + int from_bitField0_ = bitField0_; + if (nodePoolsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + nodePools_ = java.util.Collections.unmodifiableList(nodePools_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.nodePools_ = nodePools_; + } else { + result.nodePools_ = nodePoolsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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 new file mode 100644 index 000000000000..ce1bc174c7cd --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsResponseOrBuilder.java @@ -0,0 +1,76 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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 new file mode 100644 index 000000000000..62e82bdf05d9 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java @@ -0,0 +1,1061 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + 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=2610 + * @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=2610 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * 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=2616 + * @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=2616 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARENT_FIELD_NUMBER = 4; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * The parent (project and location) where the operations will be listed.
+   * Specified in the format `projects/*/locations/*`.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * The parent (project and location) where the operations will be listed.
+   * Specified in the format `projects/*/locations/*`.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + 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); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 34: + { + parent_ = input.readStringRequireUtf8(); + + 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 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=2610 + * @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=2610 + * @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=2610 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The Google Developers Console [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=2610 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + 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=2610 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * 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=2616 + * @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=2616 + * @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=2616 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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=2616 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + 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=2616 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * The parent (project and location) where the operations will be listed.
+     * Specified in the format `projects/*/locations/*`.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The parent (project and location) where the operations will be listed.
+     * Specified in the format `projects/*/locations/*`.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The parent (project and location) where the operations will be listed.
+     * Specified in the format `projects/*/locations/*`.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The parent (project and location) where the operations will be listed.
+     * Specified in the format `projects/*/locations/*`.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * The parent (project and location) where the operations will be listed.
+     * Specified in the format `projects/*/locations/*`.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..c697dbea26e7 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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=2610 + * @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=2610 + * @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=2616 + * @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=2616 + * @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 new file mode 100644 index 000000000000..3cf7a437b96c --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsResponse.java @@ -0,0 +1,1207 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListOperationsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + 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; + private com.google.protobuf.LazyStringList missingZones_; + /** + * + * + *
+   * If any zones are listed here, the list of operations returned
+   * may be missing the operations from those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @return A list containing the missingZones. + */ + public com.google.protobuf.ProtocolStringList getMissingZonesList() { + return missingZones_; + } + /** + * + * + *
+   * If any zones are listed here, the list of operations returned
+   * may be missing the operations from those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @return The count of missingZones. + */ + public int getMissingZonesCount() { + return missingZones_.size(); + } + /** + * + * + *
+   * If any zones are listed here, the list of operations returned
+   * may be missing the operations from those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index of the element to return. + * @return The missingZones at the given index. + */ + public java.lang.String getMissingZones(int index) { + return missingZones_.get(index); + } + /** + * + * + *
+   * If any zones are listed here, the list of operations returned
+   * may be missing the operations from those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index of the value to return. + * @return The bytes of the missingZones at the given index. + */ + public com.google.protobuf.ByteString getMissingZonesBytes(int index) { + return missingZones_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < operations_.size(); i++) { + output.writeMessage(1, operations_.get(i)); + } + for (int i = 0; i < missingZones_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, missingZones_.getRaw(i)); + } + 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(); + if (operationsBuilder_ == null) { + operations_ = java.util.Collections.emptyList(); + } else { + operations_ = null; + operationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.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); + int from_bitField0_ = bitField0_; + if (operationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + operations_ = java.util.Collections.unmodifiableList(operations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.operations_ = operations_; + } else { + result.operations_ = operationsBuilder_.build(); + } + if (((bitField0_ & 0x00000002) != 0)) { + missingZones_ = missingZones_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.missingZones_ = missingZones_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_ = (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.LazyStringList missingZones_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureMissingZonesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + missingZones_ = new com.google.protobuf.LazyStringArrayList(missingZones_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @return A list containing the missingZones. + */ + public com.google.protobuf.ProtocolStringList getMissingZonesList() { + return missingZones_.getUnmodifiableView(); + } + /** + * + * + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @return The count of missingZones. + */ + public int getMissingZonesCount() { + return missingZones_.size(); + } + /** + * + * + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index of the element to return. + * @return The missingZones at the given index. + */ + public java.lang.String getMissingZones(int index) { + return missingZones_.get(index); + } + /** + * + * + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index of the value to return. + * @return The bytes of the missingZones at the given index. + */ + public com.google.protobuf.ByteString getMissingZonesBytes(int index) { + return missingZones_.getByteString(index); + } + /** + * + * + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index to set the value at. + * @param value The missingZones to set. + * @return This builder for chaining. + */ + public Builder setMissingZones(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMissingZonesIsMutable(); + missingZones_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @param value The missingZones to add. + * @return This builder for chaining. + */ + public Builder addMissingZones(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMissingZonesIsMutable(); + missingZones_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @param values The missingZones to add. + * @return This builder for chaining. + */ + public Builder addAllMissingZones(java.lang.Iterable values) { + ensureMissingZonesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, missingZones_); + onChanged(); + return this; + } + /** + * + * + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @return This builder for chaining. + */ + public Builder clearMissingZones() { + missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @param value The bytes of the missingZones to add. + * @return This builder for chaining. + */ + public Builder addMissingZonesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureMissingZonesIsMutable(); + missingZones_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..7ca207bd42d4 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsResponseOrBuilder.java @@ -0,0 +1,131 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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 new file mode 100644 index 000000000000..7361cff73884 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksRequest.java @@ -0,0 +1,1111 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + 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; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * Filtering currently only supports equality on the networkProjectId and must
+   * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+   * is the project which owns the listed subnetworks. This defaults to the
+   * parent project ID.
+   * 
+ * + * string filter = 2; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Filtering currently only supports equality on the networkProjectId and must
+   * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+   * is the project which owns the listed subnetworks. This defaults to the
+   * parent project ID.
+   * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_; + /** + * + * + *
+   * The max number of results per page that should be returned. If the number
+   * of available results is larger than `page_size`, a `next_page_token` is
+   * returned which can be used to get the next page of results in subsequent
+   * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
+   * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * Specifies a page token to use. Set this to the nextPageToken returned by
+   * previous list requests to get the next page of results.
+   * 
+ * + * string page_token = 4; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Specifies a page token to use. Set this to the nextPageToken returned by
+   * previous list requests to get the next page of results.
+   * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + 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); + result.parent_ = parent_; + result.filter_ = filter_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + filter_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + + 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 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; + 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(); + 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; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Filtering currently only supports equality on the networkProjectId and must
+     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+     * is the project which owns the listed subnetworks. This defaults to the
+     * parent project ID.
+     * 
+ * + * string filter = 2; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Filtering currently only supports equality on the networkProjectId and must
+     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+     * is the project which owns the listed subnetworks. This defaults to the
+     * parent project ID.
+     * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Filtering currently only supports equality on the networkProjectId and must
+     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+     * is the project which owns the listed subnetworks. This defaults to the
+     * parent project ID.
+     * 
+ * + * string filter = 2; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Filtering currently only supports equality on the networkProjectId and must
+     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+     * is the project which owns the listed subnetworks. This defaults to the
+     * parent project ID.
+     * 
+ * + * string filter = 2; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Filtering currently only supports equality on the networkProjectId and must
+     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+     * is the project which owns the listed subnetworks. This defaults to the
+     * parent project ID.
+     * 
+ * + * string filter = 2; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The max number of results per page that should be returned. If the number
+     * of available results is larger than `page_size`, a `next_page_token` is
+     * returned which can be used to get the next page of results in subsequent
+     * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
+     * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The max number of results per page that should be returned. If the number
+     * of available results is larger than `page_size`, a `next_page_token` is
+     * returned which can be used to get the next page of results in subsequent
+     * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
+     * 
+ * + * int32 page_size = 3; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The max number of results per page that should be returned. If the number
+     * of available results is larger than `page_size`, a `next_page_token` is
+     * returned which can be used to get the next page of results in subsequent
+     * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
+     * 
+ * + * int32 page_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Specifies a page token to use. Set this to the nextPageToken returned by
+     * previous list requests to get the next page of results.
+     * 
+ * + * string page_token = 4; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Specifies a page token to use. Set this to the nextPageToken returned by
+     * previous list requests to get the next page of results.
+     * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Specifies a page token to use. Set this to the nextPageToken returned by
+     * previous list requests to get the next page of results.
+     * 
+ * + * string page_token = 4; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies a page token to use. Set this to the nextPageToken returned by
+     * previous list requests to get the next page of results.
+     * 
+ * + * string page_token = 4; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies a page token to use. Set this to the nextPageToken returned by
+     * previous list requests to get the next page of results.
+     * 
+ * + * string page_token = 4; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..35ff092caa2f --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksRequestOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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 new file mode 100644 index 000000000000..2aba78b94eb1 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksResponse.java @@ -0,0 +1,1130 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + 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; + 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(); + 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); + int from_bitField0_ = bitField0_; + if (subnetworksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + subnetworks_ = java.util.Collections.unmodifiableList(subnetworks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.subnetworks_ = subnetworks_; + } else { + result.subnetworks_ = subnetworksBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * This token allows you to get the next page of results for list requests.
+     * If the number of results is larger than `page_size`, use the
+     * `next_page_token` as a value for the query parameter `page_token` in the
+     * next request. The value will become empty when there are no more pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * This token allows you to get the next page of results for list requests.
+     * If the number of results is larger than `page_size`, use the
+     * `next_page_token` as a value for the query parameter `page_token` in the
+     * next request. The value will become empty when there are no more pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..6eb2bb2bf0d6 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksResponseOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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/LoggingComponentConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingComponentConfig.java new file mode 100644 index 000000000000..548aba5887b3 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingComponentConfig.java @@ -0,0 +1,1067 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * LoggingComponentConfig is cluster logging component configuration.
+ * 
+ * + * Protobuf type {@code google.container.v1.LoggingComponentConfig} + */ +public final class LoggingComponentConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.LoggingComponentConfig) + LoggingComponentConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use LoggingComponentConfig.newBuilder() to construct. + private LoggingComponentConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LoggingComponentConfig() { + enableComponents_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LoggingComponentConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + private java.util.List enableComponents_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.container.v1.LoggingComponentConfig.Component> + enableComponents_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.container.v1.LoggingComponentConfig.Component>() { + public com.google.container.v1.LoggingComponentConfig.Component convert( + java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.container.v1.LoggingComponentConfig.Component result = + com.google.container.v1.LoggingComponentConfig.Component.valueOf(from); + return result == null + ? com.google.container.v1.LoggingComponentConfig.Component.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * + * + * @return A list containing the enableComponents. + */ + @java.lang.Override + public java.util.List + getEnableComponentsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.container.v1.LoggingComponentConfig.Component>( + enableComponents_, enableComponents_converter_); + } + /** + * + * + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * + * + * @return The count of enableComponents. + */ + @java.lang.Override + public int getEnableComponentsCount() { + return enableComponents_.size(); + } + /** + * + * + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * + * + * @param index The index of the element to return. + * @return The enableComponents at the given index. + */ + @java.lang.Override + public com.google.container.v1.LoggingComponentConfig.Component getEnableComponents(int index) { + return enableComponents_converter_.convert(enableComponents_.get(index)); + } + /** + * + * + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * + * + * @return A list containing the enum numeric values on the wire for enableComponents. + */ + @java.lang.Override + public java.util.List getEnableComponentsValueList() { + return enableComponents_; + } + /** + * + * + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of enableComponents at the given index. + */ + @java.lang.Override + public int getEnableComponentsValue(int index) { + return enableComponents_.get(index); + } + + private int enableComponentsMemoizedSerializedSize; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (getEnableComponentsList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(enableComponentsMemoizedSerializedSize); + } + for (int i = 0; i < enableComponents_.size(); i++) { + output.writeEnumNoTag(enableComponents_.get(i)); + } + 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(); + enableComponents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_LoggingComponentConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.LoggingComponentConfig getDefaultInstanceForType() { + return com.google.container.v1.LoggingComponentConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.LoggingComponentConfig build() { + com.google.container.v1.LoggingComponentConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.LoggingComponentConfig buildPartial() { + com.google.container.v1.LoggingComponentConfig result = + new com.google.container.v1.LoggingComponentConfig(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + enableComponents_ = java.util.Collections.unmodifiableList(enableComponents_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.enableComponents_ = enableComponents_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.LoggingComponentConfig) { + return mergeFrom((com.google.container.v1.LoggingComponentConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.LoggingComponentConfig other) { + if (other == com.google.container.v1.LoggingComponentConfig.getDefaultInstance()) return this; + if (!other.enableComponents_.isEmpty()) { + if (enableComponents_.isEmpty()) { + enableComponents_ = other.enableComponents_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEnableComponentsIsMutable(); + enableComponents_.addAll(other.enableComponents_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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 new file mode 100644 index 000000000000..aaf90da84840 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingComponentConfigOrBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface LoggingComponentConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.LoggingComponentConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * + * + * @return A list containing the enableComponents. + */ + java.util.List + getEnableComponentsList(); + /** + * + * + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * + * + * @return The count of enableComponents. + */ + int getEnableComponentsCount(); + /** + * + * + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * + * + * @param index The index of the element to return. + * @return The enableComponents at the given index. + */ + com.google.container.v1.LoggingComponentConfig.Component getEnableComponents(int index); + /** + * + * + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * + * + * @return A list containing the enum numeric values on the wire for enableComponents. + */ + java.util.List getEnableComponentsValueList(); + /** + * + * + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of enableComponents at the given index. + */ + int getEnableComponentsValue(int index); +} diff --git a/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 new file mode 100644 index 000000000000..c855dd259d77 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingConfig.java @@ -0,0 +1,701 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * LoggingConfig is cluster logging configuration.
+ * 
+ * + * Protobuf type {@code google.container.v1.LoggingConfig} + */ +public final class LoggingConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.LoggingConfig) + LoggingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use LoggingConfig.newBuilder() to construct. + private LoggingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LoggingConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LoggingConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_LoggingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_LoggingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.LoggingConfig.class, + com.google.container.v1.LoggingConfig.Builder.class); + } + + public static final int COMPONENT_CONFIG_FIELD_NUMBER = 1; + private com.google.container.v1.LoggingComponentConfig componentConfig_; + /** + * + * + *
+   * Logging components configuration
+   * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + * + * @return Whether the componentConfig field is set. + */ + @java.lang.Override + public boolean hasComponentConfig() { + return componentConfig_ != null; + } + /** + * + * + *
+   * Logging components configuration
+   * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + * + * @return The componentConfig. + */ + @java.lang.Override + public com.google.container.v1.LoggingComponentConfig getComponentConfig() { + return componentConfig_ == null + ? com.google.container.v1.LoggingComponentConfig.getDefaultInstance() + : componentConfig_; + } + /** + * + * + *
+   * Logging components configuration
+   * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + */ + @java.lang.Override + public com.google.container.v1.LoggingComponentConfigOrBuilder getComponentConfigOrBuilder() { + return getComponentConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (componentConfig_ != null) { + output.writeMessage(1, getComponentConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (componentConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getComponentConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (componentConfigBuilder_ == null) { + componentConfig_ = null; + } else { + componentConfig_ = null; + componentConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_LoggingConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.LoggingConfig getDefaultInstanceForType() { + return com.google.container.v1.LoggingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.LoggingConfig build() { + com.google.container.v1.LoggingConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.LoggingConfig buildPartial() { + com.google.container.v1.LoggingConfig result = + new com.google.container.v1.LoggingConfig(this); + if (componentConfigBuilder_ == null) { + result.componentConfig_ = componentConfig_; + } else { + result.componentConfig_ = componentConfigBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.LoggingConfig) { + return mergeFrom((com.google.container.v1.LoggingConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.LoggingConfig other) { + if (other == com.google.container.v1.LoggingConfig.getDefaultInstance()) return this; + if (other.hasComponentConfig()) { + mergeComponentConfig(other.getComponentConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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); + + 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 com.google.container.v1.LoggingComponentConfig componentConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LoggingComponentConfig, + com.google.container.v1.LoggingComponentConfig.Builder, + com.google.container.v1.LoggingComponentConfigOrBuilder> + componentConfigBuilder_; + /** + * + * + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + * + * @return Whether the componentConfig field is set. + */ + public boolean hasComponentConfig() { + return componentConfigBuilder_ != null || componentConfig_ != null; + } + /** + * + * + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + * + * @return The componentConfig. + */ + public com.google.container.v1.LoggingComponentConfig getComponentConfig() { + if (componentConfigBuilder_ == null) { + return componentConfig_ == null + ? com.google.container.v1.LoggingComponentConfig.getDefaultInstance() + : componentConfig_; + } else { + return componentConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + */ + public Builder setComponentConfig(com.google.container.v1.LoggingComponentConfig value) { + if (componentConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + componentConfig_ = value; + onChanged(); + } else { + componentConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + */ + public Builder setComponentConfig( + com.google.container.v1.LoggingComponentConfig.Builder builderForValue) { + if (componentConfigBuilder_ == null) { + componentConfig_ = builderForValue.build(); + onChanged(); + } else { + componentConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + */ + public Builder mergeComponentConfig(com.google.container.v1.LoggingComponentConfig value) { + if (componentConfigBuilder_ == null) { + if (componentConfig_ != null) { + componentConfig_ = + com.google.container.v1.LoggingComponentConfig.newBuilder(componentConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + componentConfig_ = value; + } + onChanged(); + } else { + componentConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + */ + public Builder clearComponentConfig() { + if (componentConfigBuilder_ == null) { + componentConfig_ = null; + onChanged(); + } else { + componentConfig_ = null; + componentConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + */ + public com.google.container.v1.LoggingComponentConfig.Builder getComponentConfigBuilder() { + + onChanged(); + return getComponentConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + */ + public com.google.container.v1.LoggingComponentConfigOrBuilder getComponentConfigOrBuilder() { + if (componentConfigBuilder_ != null) { + return componentConfigBuilder_.getMessageOrBuilder(); + } else { + return componentConfig_ == null + ? com.google.container.v1.LoggingComponentConfig.getDefaultInstance() + : componentConfig_; + } + } + /** + * + * + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LoggingComponentConfig, + com.google.container.v1.LoggingComponentConfig.Builder, + com.google.container.v1.LoggingComponentConfigOrBuilder> + getComponentConfigFieldBuilder() { + if (componentConfigBuilder_ == null) { + componentConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LoggingComponentConfig, + com.google.container.v1.LoggingComponentConfig.Builder, + com.google.container.v1.LoggingComponentConfigOrBuilder>( + getComponentConfig(), getParentForChildren(), isClean()); + componentConfig_ = null; + } + return componentConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.LoggingConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.LoggingConfig) + private static final com.google.container.v1.LoggingConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.LoggingConfig(); + } + + public static com.google.container.v1.LoggingConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LoggingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..3f338b9fc591 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingConfigOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface LoggingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.LoggingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Logging components configuration
+   * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + * + * @return Whether the componentConfig field is set. + */ + boolean hasComponentConfig(); + /** + * + * + *
+   * Logging components configuration
+   * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + * + * @return The componentConfig. + */ + com.google.container.v1.LoggingComponentConfig getComponentConfig(); + /** + * + * + *
+   * Logging components configuration
+   * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + */ + com.google.container.v1.LoggingComponentConfigOrBuilder getComponentConfigOrBuilder(); +} diff --git a/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 new file mode 100644 index 000000000000..79051db12c08 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingVariantConfig.java @@ -0,0 +1,748 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * 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() { + @SuppressWarnings("deprecation") + com.google.container.v1.LoggingVariantConfig.Variant result = + com.google.container.v1.LoggingVariantConfig.Variant.valueOf(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(); + 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); + result.variant_ = variant_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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(); + + 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 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; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1.LoggingVariantConfig.Variant result = + com.google.container.v1.LoggingVariantConfig.Variant.valueOf(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(); + } + + 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() { + + 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 new file mode 100644 index 000000000000..a32f194be8fc --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingVariantConfigOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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 new file mode 100644 index 000000000000..2bedf6fc4c23 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceExclusionOptions.java @@ -0,0 +1,768 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Represents the Maintenance exclusion option.
+ * 
+ * + * Protobuf type {@code google.container.v1.MaintenanceExclusionOptions} + */ +public final class MaintenanceExclusionOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.MaintenanceExclusionOptions) + MaintenanceExclusionOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use MaintenanceExclusionOptions.newBuilder() to construct. + private MaintenanceExclusionOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MaintenanceExclusionOptions() { + scope_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MaintenanceExclusionOptions(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_MaintenanceExclusionOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_MaintenanceExclusionOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.MaintenanceExclusionOptions.class, + com.google.container.v1.MaintenanceExclusionOptions.Builder.class); + } + + /** + * + * + *
+   * Scope of exclusion.
+   * 
+ * + * Protobuf enum {@code google.container.v1.MaintenanceExclusionOptions.Scope} + */ + public enum Scope implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * NO_UPGRADES excludes all upgrades, including patch upgrades and minor
+     * upgrades across control planes and nodes. This is the default exclusion
+     * behavior.
+     * 
+ * + * NO_UPGRADES = 0; + */ + NO_UPGRADES(0), + /** + * + * + *
+     * NO_MINOR_UPGRADES excludes all minor upgrades for the cluster, only
+     * patches are allowed.
+     * 
+ * + * NO_MINOR_UPGRADES = 1; + */ + NO_MINOR_UPGRADES(1), + /** + * + * + *
+     * NO_MINOR_OR_NODE_UPGRADES excludes all minor upgrades for the cluster,
+     * and also exclude all node pool upgrades. Only control
+     * plane patches are allowed.
+     * 
+ * + * NO_MINOR_OR_NODE_UPGRADES = 2; + */ + NO_MINOR_OR_NODE_UPGRADES(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * NO_UPGRADES excludes all upgrades, including patch upgrades and minor
+     * upgrades across control planes and nodes. This is the default exclusion
+     * behavior.
+     * 
+ * + * NO_UPGRADES = 0; + */ + public static final int NO_UPGRADES_VALUE = 0; + /** + * + * + *
+     * NO_MINOR_UPGRADES excludes all minor upgrades for the cluster, only
+     * patches are allowed.
+     * 
+ * + * NO_MINOR_UPGRADES = 1; + */ + public static final int NO_MINOR_UPGRADES_VALUE = 1; + /** + * + * + *
+     * NO_MINOR_OR_NODE_UPGRADES excludes all minor upgrades for the cluster,
+     * and also exclude all node pool upgrades. Only control
+     * plane patches are allowed.
+     * 
+ * + * NO_MINOR_OR_NODE_UPGRADES = 2; + */ + public static final int NO_MINOR_OR_NODE_UPGRADES_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Scope valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Scope forNumber(int value) { + switch (value) { + case 0: + return NO_UPGRADES; + case 1: + return NO_MINOR_UPGRADES; + case 2: + return NO_MINOR_OR_NODE_UPGRADES; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Scope findValueByNumber(int number) { + return Scope.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1.MaintenanceExclusionOptions.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Scope[] VALUES = values(); + + public static Scope valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Scope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.MaintenanceExclusionOptions.Scope) + } + + public static final int SCOPE_FIELD_NUMBER = 1; + private int scope_; + /** + * + * + *
+   * Scope specifies the upgrade scope which upgrades are blocked by the
+   * exclusion.
+   * 
+ * + * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+   * Scope specifies the upgrade scope which upgrades are blocked by the
+   * exclusion.
+   * 
+ * + * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; + * + * @return The scope. + */ + @java.lang.Override + public com.google.container.v1.MaintenanceExclusionOptions.Scope getScope() { + @SuppressWarnings("deprecation") + com.google.container.v1.MaintenanceExclusionOptions.Scope result = + com.google.container.v1.MaintenanceExclusionOptions.Scope.valueOf(scope_); + return result == null + ? com.google.container.v1.MaintenanceExclusionOptions.Scope.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (scope_ + != com.google.container.v1.MaintenanceExclusionOptions.Scope.NO_UPGRADES.getNumber()) { + output.writeEnum(1, scope_); + } + 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(); + scope_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_MaintenanceExclusionOptions_descriptor; + } + + @java.lang.Override + public com.google.container.v1.MaintenanceExclusionOptions getDefaultInstanceForType() { + return com.google.container.v1.MaintenanceExclusionOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.MaintenanceExclusionOptions build() { + com.google.container.v1.MaintenanceExclusionOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.MaintenanceExclusionOptions buildPartial() { + com.google.container.v1.MaintenanceExclusionOptions result = + new com.google.container.v1.MaintenanceExclusionOptions(this); + result.scope_ = scope_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.MaintenanceExclusionOptions) { + return mergeFrom((com.google.container.v1.MaintenanceExclusionOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.MaintenanceExclusionOptions other) { + if (other == com.google.container.v1.MaintenanceExclusionOptions.getDefaultInstance()) + return this; + if (other.scope_ != 0) { + setScopeValue(other.getScopeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 scope_ = 0; + /** + * + * + *
+     * Scope specifies the upgrade scope which upgrades are blocked by the
+     * exclusion.
+     * 
+ * + * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+     * Scope specifies the upgrade scope which upgrades are blocked by the
+     * exclusion.
+     * 
+ * + * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; + * + * @param value The enum numeric value on the wire for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeValue(int value) { + + scope_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Scope specifies the upgrade scope which upgrades are blocked by the
+     * exclusion.
+     * 
+ * + * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; + * + * @return The scope. + */ + @java.lang.Override + public com.google.container.v1.MaintenanceExclusionOptions.Scope getScope() { + @SuppressWarnings("deprecation") + com.google.container.v1.MaintenanceExclusionOptions.Scope result = + com.google.container.v1.MaintenanceExclusionOptions.Scope.valueOf(scope_); + return result == null + ? com.google.container.v1.MaintenanceExclusionOptions.Scope.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Scope specifies the upgrade scope which upgrades are blocked by the
+     * exclusion.
+     * 
+ * + * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; + * + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope(com.google.container.v1.MaintenanceExclusionOptions.Scope value) { + if (value == null) { + throw new NullPointerException(); + } + + scope_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Scope specifies the upgrade scope which upgrades are blocked by the
+     * exclusion.
+     * 
+ * + * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; + * + * @return This builder for chaining. + */ + public Builder clearScope() { + + scope_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.MaintenanceExclusionOptions) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.MaintenanceExclusionOptions) + private static final com.google.container.v1.MaintenanceExclusionOptions DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.MaintenanceExclusionOptions(); + } + + public static com.google.container.v1.MaintenanceExclusionOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MaintenanceExclusionOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..b9753b402e8d --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceExclusionOptionsOrBuilder.java @@ -0,0 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface MaintenanceExclusionOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.MaintenanceExclusionOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Scope specifies the upgrade scope which upgrades are blocked by the
+   * exclusion.
+   * 
+ * + * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; + * + * @return The enum numeric value on the wire for scope. + */ + int getScopeValue(); + /** + * + * + *
+   * Scope specifies the upgrade scope which upgrades are blocked by the
+   * exclusion.
+   * 
+ * + * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; + * + * @return The scope. + */ + com.google.container.v1.MaintenanceExclusionOptions.Scope getScope(); +} diff --git a/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 new file mode 100644 index 000000000000..875f44567294 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicy.java @@ -0,0 +1,909 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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); + } + + 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 window_ != null; + } + /** + * + * + *
+   * 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 getWindow(); + } + + public static final int RESOURCE_VERSION_FIELD_NUMBER = 3; + private volatile java.lang.Object resourceVersion_; + /** + * + * + *
+   * A hash identifying the version of this policy, so that updates to fields of
+   * the policy won't accidentally undo intermediate changes (and so that users
+   * of the API unaware of some fields won't accidentally remove other fields).
+   * Make a `get()` request to the cluster to get the current
+   * resource version and include it with requests to set the policy.
+   * 
+ * + * string resource_version = 3; + * + * @return The resourceVersion. + */ + @java.lang.Override + public java.lang.String getResourceVersion() { + java.lang.Object ref = resourceVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceVersion_ = s; + return s; + } + } + /** + * + * + *
+   * A hash identifying the version of this policy, so that updates to fields of
+   * the policy won't accidentally undo intermediate changes (and so that users
+   * of the API unaware of some fields won't accidentally remove other fields).
+   * Make a `get()` request to the cluster to get the current
+   * resource version and include it with requests to set the policy.
+   * 
+ * + * string resource_version = 3; + * + * @return The bytes for resourceVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceVersionBytes() { + java.lang.Object ref = resourceVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (window_ != null) { + output.writeMessage(1, getWindow()); + } + if (!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 (window_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (windowBuilder_ == null) { + window_ = null; + } else { + window_ = null; + windowBuilder_ = null; + } + resourceVersion_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.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 (windowBuilder_ == null) { + result.window_ = window_; + } else { + result.window_ = windowBuilder_.build(); + } + result.resourceVersion_ = resourceVersion_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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); + + break; + } // case 10 + case 26: + { + resourceVersion_ = input.readStringRequireUtf8(); + + 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 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 windowBuilder_ != null || window_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + windowBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + windowBuilder_.setMessage(builderForValue.build()); + } + + 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 (window_ != null) { + window_ = + com.google.container.v1.MaintenanceWindow.newBuilder(window_) + .mergeFrom(value) + .buildPartial(); + } else { + window_ = value; + } + onChanged(); + } else { + windowBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1.MaintenanceWindow window = 1; + */ + public Builder clearWindow() { + if (windowBuilder_ == null) { + window_ = null; + onChanged(); + } else { + window_ = null; + windowBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1.MaintenanceWindow window = 1; + */ + public com.google.container.v1.MaintenanceWindow.Builder getWindowBuilder() { + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * A hash identifying the version of this policy, so that updates to fields of
+     * the policy won't accidentally undo intermediate changes (and so that users
+     * of the API unaware of some fields won't accidentally remove other fields).
+     * Make a `get()` request to the cluster to get the current
+     * resource version and include it with requests to set the policy.
+     * 
+ * + * string resource_version = 3; + * + * @return This builder for chaining. + */ + public Builder clearResourceVersion() { + + resourceVersion_ = getDefaultInstance().getResourceVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * A hash identifying the version of this policy, so that updates to fields of
+     * the policy won't accidentally undo intermediate changes (and so that users
+     * of the API unaware of some fields won't accidentally remove other fields).
+     * Make a `get()` request to the cluster to get the current
+     * resource version and include it with requests to set the policy.
+     * 
+ * + * string resource_version = 3; + * + * @param value The bytes for resourceVersion to set. + * @return This builder for chaining. + */ + public Builder setResourceVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceVersion_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..b021ce8026dd --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicyOrBuilder.java @@ -0,0 +1,93 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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 new file mode 100644 index 000000000000..c0fe9c9155ae --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceWindow.java @@ -0,0 +1,1499 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetMaintenanceExclusions(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.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; + 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()); + } + + 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 com.google.container.v1.TimeWindow getMaintenanceExclusionsOrDefault( + java.lang.String key, 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.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetMaintenanceExclusions(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 4: + return internalGetMutableMaintenanceExclusions(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.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(); + 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); + int from_bitField0_ = bitField0_; + if (policyCase_ == 2) { + if (dailyMaintenanceWindowBuilder_ == null) { + result.policy_ = policy_; + } else { + result.policy_ = dailyMaintenanceWindowBuilder_.build(); + } + } + if (policyCase_ == 3) { + if (recurringWindowBuilder_ == null) { + result.policy_ = policy_; + } else { + result.policy_ = recurringWindowBuilder_.build(); + } + } + result.maintenanceExclusions_ = internalGetMaintenanceExclusions(); + result.maintenanceExclusions_.makeImmutable(); + result.policyCase_ = policyCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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()); + 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() + .getMutableMap() + .put(maintenanceExclusions__.getKey(), maintenanceExclusions__.getValue()); + 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 com.google.protobuf.MapField + maintenanceExclusions_; + + private com.google.protobuf.MapField + internalGetMaintenanceExclusions() { + if (maintenanceExclusions_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MaintenanceExclusionsDefaultEntryHolder.defaultEntry); + } + return maintenanceExclusions_; + } + + private com.google.protobuf.MapField + internalGetMutableMaintenanceExclusions() { + onChanged(); + ; + if (maintenanceExclusions_ == null) { + maintenanceExclusions_ = + com.google.protobuf.MapField.newMapField( + MaintenanceExclusionsDefaultEntryHolder.defaultEntry); + } + if (!maintenanceExclusions_.isMutable()) { + maintenanceExclusions_ = maintenanceExclusions_.copy(); + } + return maintenanceExclusions_; + } + + public int getMaintenanceExclusionsCount() { + return internalGetMaintenanceExclusions().getMap().size(); + } + /** + * + * + *
+     * Exceptions to maintenance window. Non-emergency maintenance should not
+     * occur in these windows.
+     * 
+ * + * map<string, .google.container.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 com.google.container.v1.TimeWindow getMaintenanceExclusionsOrDefault( + java.lang.String key, 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); + } + + public Builder clearMaintenanceExclusions() { + internalGetMutableMaintenanceExclusions().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Exceptions to maintenance window. Non-emergency maintenance should not
+     * occur in these windows.
+     * 
+ * + * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; + */ + public Builder removeMaintenanceExclusions(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableMaintenanceExclusions().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableMaintenanceExclusions() { + return internalGetMutableMaintenanceExclusions().getMutableMap(); + } + /** + * + * + *
+     * Exceptions to maintenance window. Non-emergency maintenance should not
+     * occur in these windows.
+     * 
+ * + * map<string, .google.container.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().getMutableMap().put(key, value); + 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) { + internalGetMutableMaintenanceExclusions().getMutableMap().putAll(values); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..3083d2c8b662 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceWindowOrBuilder.java @@ -0,0 +1,167 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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); + + public 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 new file mode 100644 index 000000000000..b41aabd26bdb --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ManagedPrometheusConfig.java @@ -0,0 +1,529 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * 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(); + 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); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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(); + + 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 boolean enabled_; + /** + * + * + *
+     * Enable Managed Collection.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Enable Managed Collection.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Enable Managed Collection.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..31d5392d9566 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ManagedPrometheusConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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 new file mode 100644 index 000000000000..a59ed6f9de4a --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java @@ -0,0 +1,1780 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * The 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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); + } + + public static final int USERNAME_FIELD_NUMBER = 1; + private volatile java.lang.Object username_; + /** + * + * + *
+   * The username to use for HTTP basic authentication to the master endpoint.
+   * For clusters v1.6.0 and later, basic authentication can be disabled by
+   * leaving username unspecified (or setting it to the empty string).
+   * Warning: basic authentication is deprecated, and will be removed in GKE
+   * control plane versions 1.19 and newer. For a list of recommended
+   * authentication methods, see:
+   * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
+   * 
+ * + * string username = 1 [deprecated = true]; + * + * @deprecated google.container.v1.MasterAuth.username is deprecated. See + * google/container/v1/cluster_service.proto;l=989 + * @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=989 + * @return The bytes for username. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PASSWORD_FIELD_NUMBER = 2; + private volatile java.lang.Object password_; + /** + * + * + *
+   * The password to use for HTTP basic authentication to the master endpoint.
+   * Because the master endpoint is open to the Internet, you should create a
+   * strong password.  If a password is provided for cluster creation, username
+   * must be non-empty.
+   * Warning: basic authentication is deprecated, and will be removed in GKE
+   * control plane versions 1.19 and newer. For a list of recommended
+   * authentication methods, see:
+   * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
+   * 
+ * + * string password = 2 [deprecated = true]; + * + * @deprecated google.container.v1.MasterAuth.password is deprecated. See + * google/container/v1/cluster_service.proto;l=1000 + * @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=1000 + * @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 clientCertificateConfig_ != null; + } + /** + * + * + *
+   * Configuration for client certificate authentication on the cluster. For
+   * clusters before v1.12, if no configuration is specified, a client
+   * certificate is issued.
+   * 
+ * + * .google.container.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 getClientCertificateConfig(); + } + + public static final int CLUSTER_CA_CERTIFICATE_FIELD_NUMBER = 100; + private volatile java.lang.Object clusterCaCertificate_; + /** + * + * + *
+   * [Output only] Base64-encoded public certificate that is the root of
+   * trust for the cluster.
+   * 
+ * + * string cluster_ca_certificate = 100; + * + * @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; + private volatile java.lang.Object clientCertificate_; + /** + * + * + *
+   * [Output only] Base64-encoded public certificate used by clients to
+   * authenticate to the cluster endpoint.
+   * 
+ * + * string client_certificate = 101; + * + * @return The clientCertificate. + */ + @java.lang.Override + public java.lang.String getClientCertificate() { + java.lang.Object ref = clientCertificate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientCertificate_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] Base64-encoded public certificate used by clients to
+   * authenticate to the cluster endpoint.
+   * 
+ * + * string client_certificate = 101; + * + * @return The bytes for clientCertificate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientCertificateBytes() { + java.lang.Object ref = clientCertificate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_KEY_FIELD_NUMBER = 102; + private volatile java.lang.Object clientKey_; + /** + * + * + *
+   * [Output only] Base64-encoded private key used by clients to authenticate
+   * to the cluster endpoint.
+   * 
+ * + * string client_key = 102; + * + * @return The clientKey. + */ + @java.lang.Override + public java.lang.String getClientKey() { + java.lang.Object ref = clientKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientKey_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] Base64-encoded private key used by clients to authenticate
+   * to the cluster endpoint.
+   * 
+ * + * string client_key = 102; + * + * @return The bytes for clientKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientKeyBytes() { + java.lang.Object ref = clientKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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 (clientCertificateConfig_ != null) { + 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 (clientCertificateConfig_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + username_ = ""; + + password_ = ""; + + if (clientCertificateConfigBuilder_ == null) { + clientCertificateConfig_ = null; + } else { + clientCertificateConfig_ = null; + clientCertificateConfigBuilder_ = null; + } + clusterCaCertificate_ = ""; + + clientCertificate_ = ""; + + clientKey_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.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); + result.username_ = username_; + result.password_ = password_; + if (clientCertificateConfigBuilder_ == null) { + result.clientCertificateConfig_ = clientCertificateConfig_; + } else { + result.clientCertificateConfig_ = clientCertificateConfigBuilder_.build(); + } + result.clusterCaCertificate_ = clusterCaCertificate_; + result.clientCertificate_ = clientCertificate_; + result.clientKey_ = clientKey_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + onChanged(); + } + if (other.hasClientCertificateConfig()) { + mergeClientCertificateConfig(other.getClientCertificateConfig()); + } + if (!other.getClusterCaCertificate().isEmpty()) { + clusterCaCertificate_ = other.clusterCaCertificate_; + onChanged(); + } + if (!other.getClientCertificate().isEmpty()) { + clientCertificate_ = other.clientCertificate_; + onChanged(); + } + if (!other.getClientKey().isEmpty()) { + clientKey_ = other.clientKey_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + password_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage( + getClientCertificateConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 802: + { + clusterCaCertificate_ = input.readStringRequireUtf8(); + + break; + } // case 802 + case 810: + { + clientCertificate_ = input.readStringRequireUtf8(); + + break; + } // case 810 + case 818: + { + clientKey_ = input.readStringRequireUtf8(); + + 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 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=989 + * @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=989 + * @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=989 + * @param value The username to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + username_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The username to use for HTTP basic authentication to the master endpoint.
+     * For clusters v1.6.0 and later, basic authentication can be disabled by
+     * leaving username unspecified (or setting it to the empty string).
+     * Warning: basic authentication is deprecated, and will be removed in GKE
+     * control plane versions 1.19 and newer. For a list of recommended
+     * authentication methods, see:
+     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
+     * 
+ * + * string username = 1 [deprecated = true]; + * + * @deprecated google.container.v1.MasterAuth.username is deprecated. See + * google/container/v1/cluster_service.proto;l=989 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearUsername() { + + username_ = getDefaultInstance().getUsername(); + onChanged(); + return this; + } + /** + * + * + *
+     * The username to use for HTTP basic authentication to the master endpoint.
+     * For clusters v1.6.0 and later, basic authentication can be disabled by
+     * leaving username unspecified (or setting it to the empty string).
+     * Warning: basic authentication is deprecated, and will be removed in GKE
+     * control plane versions 1.19 and newer. For a list of recommended
+     * authentication methods, see:
+     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
+     * 
+ * + * string username = 1 [deprecated = true]; + * + * @deprecated google.container.v1.MasterAuth.username is deprecated. See + * google/container/v1/cluster_service.proto;l=989 + * @param value The bytes for username to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + username_ = value; + onChanged(); + return this; + } + + private java.lang.Object password_ = ""; + /** + * + * + *
+     * The password to use for HTTP basic authentication to the master endpoint.
+     * Because the master endpoint is open to the Internet, you should create a
+     * strong password.  If a password is provided for cluster creation, username
+     * must be non-empty.
+     * Warning: basic authentication is deprecated, and will be removed in GKE
+     * control plane versions 1.19 and newer. For a list of recommended
+     * authentication methods, see:
+     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
+     * 
+ * + * string password = 2 [deprecated = true]; + * + * @deprecated google.container.v1.MasterAuth.password is deprecated. See + * google/container/v1/cluster_service.proto;l=1000 + * @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=1000 + * @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=1000 + * @param value The password to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + password_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The password to use for HTTP basic authentication to the master endpoint.
+     * Because the master endpoint is open to the Internet, you should create a
+     * strong password.  If a password is provided for cluster creation, username
+     * must be non-empty.
+     * Warning: basic authentication is deprecated, and will be removed in GKE
+     * control plane versions 1.19 and newer. For a list of recommended
+     * authentication methods, see:
+     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
+     * 
+ * + * string password = 2 [deprecated = true]; + * + * @deprecated google.container.v1.MasterAuth.password is deprecated. See + * google/container/v1/cluster_service.proto;l=1000 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearPassword() { + + password_ = getDefaultInstance().getPassword(); + onChanged(); + return this; + } + /** + * + * + *
+     * The password to use for HTTP basic authentication to the master endpoint.
+     * Because the master endpoint is open to the Internet, you should create a
+     * strong password.  If a password is provided for cluster creation, username
+     * must be non-empty.
+     * Warning: basic authentication is deprecated, and will be removed in GKE
+     * control plane versions 1.19 and newer. For a list of recommended
+     * authentication methods, see:
+     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
+     * 
+ * + * string password = 2 [deprecated = true]; + * + * @deprecated google.container.v1.MasterAuth.password is deprecated. See + * google/container/v1/cluster_service.proto;l=1000 + * @param value The bytes for password to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + password_ = value; + onChanged(); + return this; + } + + private com.google.container.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 clientCertificateConfigBuilder_ != null || clientCertificateConfig_ != null; + } + /** + * + * + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.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; + onChanged(); + } else { + clientCertificateConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; + */ + public Builder setClientCertificateConfig( + com.google.container.v1.ClientCertificateConfig.Builder builderForValue) { + if (clientCertificateConfigBuilder_ == null) { + clientCertificateConfig_ = builderForValue.build(); + onChanged(); + } else { + clientCertificateConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; + */ + public Builder mergeClientCertificateConfig( + com.google.container.v1.ClientCertificateConfig value) { + if (clientCertificateConfigBuilder_ == null) { + if (clientCertificateConfig_ != null) { + clientCertificateConfig_ = + com.google.container.v1.ClientCertificateConfig.newBuilder(clientCertificateConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + clientCertificateConfig_ = value; + } + onChanged(); + } else { + clientCertificateConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; + */ + public Builder clearClientCertificateConfig() { + if (clientCertificateConfigBuilder_ == null) { + clientCertificateConfig_ = null; + onChanged(); + } else { + clientCertificateConfig_ = null; + clientCertificateConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; + */ + public com.google.container.v1.ClientCertificateConfig.Builder + getClientCertificateConfigBuilder() { + + onChanged(); + return getClientCertificateConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.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; + 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(); + 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; + onChanged(); + return this; + } + + private java.lang.Object clientCertificate_ = ""; + /** + * + * + *
+     * [Output only] Base64-encoded public certificate used by clients to
+     * authenticate to the cluster endpoint.
+     * 
+ * + * string client_certificate = 101; + * + * @return The clientCertificate. + */ + public java.lang.String getClientCertificate() { + java.lang.Object ref = clientCertificate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientCertificate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] Base64-encoded public certificate used by clients to
+     * authenticate to the cluster endpoint.
+     * 
+ * + * string client_certificate = 101; + * + * @return The bytes for clientCertificate. + */ + public com.google.protobuf.ByteString getClientCertificateBytes() { + java.lang.Object ref = clientCertificate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] Base64-encoded public certificate used by clients to
+     * authenticate to the cluster endpoint.
+     * 
+ * + * string client_certificate = 101; + * + * @param value The clientCertificate to set. + * @return This builder for chaining. + */ + public Builder setClientCertificate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clientCertificate_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Base64-encoded public certificate used by clients to
+     * authenticate to the cluster endpoint.
+     * 
+ * + * string client_certificate = 101; + * + * @return This builder for chaining. + */ + public Builder clearClientCertificate() { + + clientCertificate_ = getDefaultInstance().getClientCertificate(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Base64-encoded public certificate used by clients to
+     * authenticate to the cluster endpoint.
+     * 
+ * + * string client_certificate = 101; + * + * @param value The bytes for clientCertificate to set. + * @return This builder for chaining. + */ + public Builder setClientCertificateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clientCertificate_ = value; + onChanged(); + return this; + } + + private java.lang.Object clientKey_ = ""; + /** + * + * + *
+     * [Output only] Base64-encoded private key used by clients to authenticate
+     * to the cluster endpoint.
+     * 
+ * + * string client_key = 102; + * + * @return The clientKey. + */ + public java.lang.String getClientKey() { + java.lang.Object ref = clientKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] Base64-encoded private key used by clients to authenticate
+     * to the cluster endpoint.
+     * 
+ * + * string client_key = 102; + * + * @return The bytes for clientKey. + */ + public com.google.protobuf.ByteString getClientKeyBytes() { + java.lang.Object ref = clientKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] Base64-encoded private key used by clients to authenticate
+     * to the cluster endpoint.
+     * 
+ * + * string client_key = 102; + * + * @param value The clientKey to set. + * @return This builder for chaining. + */ + public Builder setClientKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clientKey_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Base64-encoded private key used by clients to authenticate
+     * to the cluster endpoint.
+     * 
+ * + * string client_key = 102; + * + * @return This builder for chaining. + */ + public Builder clearClientKey() { + + clientKey_ = getDefaultInstance().getClientKey(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Base64-encoded private key used by clients to authenticate
+     * to the cluster endpoint.
+     * 
+ * + * string client_key = 102; + * + * @param value The bytes for clientKey to set. + * @return This builder for chaining. + */ + public Builder setClientKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clientKey_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..c81c695c1919 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java @@ -0,0 +1,235 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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=989 + * @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=989 + * @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=1000 + * @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=1000 + * @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 new file mode 100644 index 000000000000..df913d7841f9 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfig.java @@ -0,0 +1,2078 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Configuration options for the 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + private volatile java.lang.Object displayName_; + /** + * + * + *
+     * display_name is an optional field for users to identify CIDR blocks.
+     * 
+ * + * string display_name = 1; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+     * display_name is an optional field for users to identify CIDR blocks.
+     * 
+ * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CIDR_BLOCK_FIELD_NUMBER = 2; + private volatile java.lang.Object cidrBlock_; + /** + * + * + *
+     * cidr_block must be specified in CIDR notation.
+     * 
+ * + * string cidr_block = 2; + * + * @return The cidrBlock. + */ + @java.lang.Override + public java.lang.String getCidrBlock() { + java.lang.Object ref = cidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cidrBlock_ = s; + return s; + } + } + /** + * + * + *
+     * cidr_block must be specified in CIDR notation.
+     * 
+ * + * string cidr_block = 2; + * + * @return The bytes for cidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCidrBlockBytes() { + java.lang.Object ref = cidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + 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); + result.displayName_ = displayName_; + result.cidrBlock_ = cidrBlock_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getCidrBlock().isEmpty()) { + cidrBlock_ = other.cidrBlock_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + cidrBlock_ = input.readStringRequireUtf8(); + + 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 java.lang.Object displayName_ = ""; + /** + * + * + *
+       * display_name is an optional field for users to identify CIDR blocks.
+       * 
+ * + * string display_name = 1; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * display_name is an optional field for users to identify CIDR blocks.
+       * 
+ * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * display_name is an optional field for users to identify CIDR blocks.
+       * 
+ * + * string display_name = 1; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * display_name is an optional field for users to identify CIDR blocks.
+       * 
+ * + * string display_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+       * display_name is an optional field for users to identify CIDR blocks.
+       * 
+ * + * string display_name = 1; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private java.lang.Object cidrBlock_ = ""; + /** + * + * + *
+       * cidr_block must be specified in CIDR notation.
+       * 
+ * + * string cidr_block = 2; + * + * @return The cidrBlock. + */ + public java.lang.String getCidrBlock() { + java.lang.Object ref = cidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * cidr_block must be specified in CIDR notation.
+       * 
+ * + * string cidr_block = 2; + * + * @return The bytes for cidrBlock. + */ + public com.google.protobuf.ByteString getCidrBlockBytes() { + java.lang.Object ref = cidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * cidr_block must be specified in CIDR notation.
+       * 
+ * + * string cidr_block = 2; + * + * @param value The cidrBlock to set. + * @return This builder for chaining. + */ + public Builder setCidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cidrBlock_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * cidr_block must be specified in CIDR notation.
+       * 
+ * + * string cidr_block = 2; + * + * @return This builder for chaining. + */ + public Builder clearCidrBlock() { + + cidrBlock_ = getDefaultInstance().getCidrBlock(); + onChanged(); + return this; + } + /** + * + * + *
+       * cidr_block must be specified in CIDR notation.
+       * 
+ * + * string cidr_block = 2; + * + * @param value The bytes for cidrBlock to set. + * @return This builder for chaining. + */ + public Builder setCidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cidrBlock_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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_; + /** + * + * + *
+   * Whether or not master authorized networks is enabled.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int CIDR_BLOCKS_FIELD_NUMBER = 2; + private java.util.List + cidrBlocks_; + /** + * + * + *
+   * cidr_blocks define up to 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_; + /** + * + * + *
+   * 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(); + enabled_ = false; + + if (cidrBlocksBuilder_ == null) { + cidrBlocks_ = java.util.Collections.emptyList(); + } else { + cidrBlocks_ = null; + cidrBlocksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + gcpPublicCidrsAccessEnabled_ = false; + 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_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); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.enabled_ = enabled_; + if (cidrBlocksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + cidrBlocks_ = java.util.Collections.unmodifiableList(cidrBlocks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.cidrBlocks_ = cidrBlocks_; + } else { + result.cidrBlocks_ = cidrBlocksBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.gcpPublicCidrsAccessEnabled_ = gcpPublicCidrsAccessEnabled_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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_ & ~0x00000001); + } else { + ensureCidrBlocksIsMutable(); + cidrBlocks_.addAll(other.cidrBlocks_); + } + onChanged(); + } + } else { + if (!other.cidrBlocks_.isEmpty()) { + if (cidrBlocksBuilder_.isEmpty()) { + cidrBlocksBuilder_.dispose(); + cidrBlocksBuilder_ = null; + cidrBlocks_ = other.cidrBlocks_; + bitField0_ = (bitField0_ & ~0x00000001); + cidrBlocksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCidrBlocksFieldBuilder() + : null; + } else { + cidrBlocksBuilder_.addAllMessages(other.cidrBlocks_); + } + } + } + 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(); + + 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_ |= 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 enabled_; + /** + * + * + *
+     * Whether or not master authorized networks is enabled.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether or not master authorized networks is enabled.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether or not master authorized networks is enabled.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + private java.util.List + cidrBlocks_ = java.util.Collections.emptyList(); + + private void ensureCidrBlocksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + cidrBlocks_ = + new java.util.ArrayList< + com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock>(cidrBlocks_); + bitField0_ |= 0x00000001; + } + } + + 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_ & ~0x00000001); + 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_ & 0x00000001) != 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_ & 0x00000002) != 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) { + bitField0_ |= 0x00000002; + gcpPublicCidrsAccessEnabled_ = value; + 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_ & ~0x00000002); + 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 new file mode 100644 index 000000000000..3215b76ae0a9 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfigOrBuilder.java @@ -0,0 +1,128 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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 new file mode 100644 index 000000000000..9d6a25f82b1c --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaxPodsConstraint.java @@ -0,0 +1,526 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * 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(); + 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); + result.maxPodsPerNode_ = maxPodsPerNode_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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(); + + 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 long maxPodsPerNode_; + /** + * + * + *
+     * Constraint enforced on the max num of pods per node.
+     * 
+ * + * int64 max_pods_per_node = 1; + * + * @return The maxPodsPerNode. + */ + @java.lang.Override + public long getMaxPodsPerNode() { + return maxPodsPerNode_; + } + /** + * + * + *
+     * Constraint enforced on the max num of pods per node.
+     * 
+ * + * int64 max_pods_per_node = 1; + * + * @param value The maxPodsPerNode to set. + * @return This builder for chaining. + */ + public Builder setMaxPodsPerNode(long value) { + + maxPodsPerNode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Constraint enforced on the max num of pods per node.
+     * 
+ * + * int64 max_pods_per_node = 1; + * + * @return This builder for chaining. + */ + public Builder clearMaxPodsPerNode() { + + maxPodsPerNode_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..4a616a667705 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaxPodsConstraintOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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 new file mode 100644 index 000000000000..bd4bd5dacedd --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MeshCertificates.java @@ -0,0 +1,774 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Configuration for issuance of mTLS keys and certificates to Kubernetes pods.
+ * 
+ * + * Protobuf type {@code google.container.v1.MeshCertificates} + */ +public final class MeshCertificates extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.MeshCertificates) + MeshCertificatesOrBuilder { + private static final long serialVersionUID = 0L; + // Use MeshCertificates.newBuilder() to construct. + private MeshCertificates(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MeshCertificates() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MeshCertificates(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_MeshCertificates_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_MeshCertificates_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.MeshCertificates.class, + com.google.container.v1.MeshCertificates.Builder.class); + } + + public static final int ENABLE_CERTIFICATES_FIELD_NUMBER = 1; + private com.google.protobuf.BoolValue enableCertificates_; + /** + * + * + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * + * @return Whether the enableCertificates field is set. + */ + @java.lang.Override + public boolean hasEnableCertificates() { + return enableCertificates_ != null; + } + /** + * + * + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * + * @return The enableCertificates. + */ + @java.lang.Override + public com.google.protobuf.BoolValue getEnableCertificates() { + return enableCertificates_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : enableCertificates_; + } + /** + * + * + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + @java.lang.Override + public com.google.protobuf.BoolValueOrBuilder getEnableCertificatesOrBuilder() { + return getEnableCertificates(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enableCertificates_ != null) { + output.writeMessage(1, getEnableCertificates()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableCertificates_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEnableCertificates()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (enableCertificatesBuilder_ == null) { + enableCertificates_ = null; + } else { + enableCertificates_ = null; + enableCertificatesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_MeshCertificates_descriptor; + } + + @java.lang.Override + public com.google.container.v1.MeshCertificates getDefaultInstanceForType() { + return com.google.container.v1.MeshCertificates.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.MeshCertificates build() { + com.google.container.v1.MeshCertificates result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.MeshCertificates buildPartial() { + com.google.container.v1.MeshCertificates result = + new com.google.container.v1.MeshCertificates(this); + if (enableCertificatesBuilder_ == null) { + result.enableCertificates_ = enableCertificates_; + } else { + result.enableCertificates_ = enableCertificatesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.MeshCertificates) { + return mergeFrom((com.google.container.v1.MeshCertificates) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.MeshCertificates other) { + if (other == com.google.container.v1.MeshCertificates.getDefaultInstance()) return this; + if (other.hasEnableCertificates()) { + mergeEnableCertificates(other.getEnableCertificates()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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); + + 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 com.google.protobuf.BoolValue enableCertificates_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + enableCertificatesBuilder_; + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * + * @return Whether the enableCertificates field is set. + */ + public boolean hasEnableCertificates() { + return enableCertificatesBuilder_ != null || enableCertificates_ != null; + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * + * @return The enableCertificates. + */ + public com.google.protobuf.BoolValue getEnableCertificates() { + if (enableCertificatesBuilder_ == null) { + return enableCertificates_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : enableCertificates_; + } else { + return enableCertificatesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public Builder setEnableCertificates(com.google.protobuf.BoolValue value) { + if (enableCertificatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + enableCertificates_ = value; + onChanged(); + } else { + enableCertificatesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public Builder setEnableCertificates(com.google.protobuf.BoolValue.Builder builderForValue) { + if (enableCertificatesBuilder_ == null) { + enableCertificates_ = builderForValue.build(); + onChanged(); + } else { + enableCertificatesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public Builder mergeEnableCertificates(com.google.protobuf.BoolValue value) { + if (enableCertificatesBuilder_ == null) { + if (enableCertificates_ != null) { + enableCertificates_ = + com.google.protobuf.BoolValue.newBuilder(enableCertificates_) + .mergeFrom(value) + .buildPartial(); + } else { + enableCertificates_ = value; + } + onChanged(); + } else { + enableCertificatesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public Builder clearEnableCertificates() { + if (enableCertificatesBuilder_ == null) { + enableCertificates_ = null; + onChanged(); + } else { + enableCertificates_ = null; + enableCertificatesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public com.google.protobuf.BoolValue.Builder getEnableCertificatesBuilder() { + + onChanged(); + return getEnableCertificatesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public com.google.protobuf.BoolValueOrBuilder getEnableCertificatesOrBuilder() { + if (enableCertificatesBuilder_ != null) { + return enableCertificatesBuilder_.getMessageOrBuilder(); + } else { + return enableCertificates_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : enableCertificates_; + } + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getEnableCertificatesFieldBuilder() { + if (enableCertificatesBuilder_ == null) { + enableCertificatesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getEnableCertificates(), getParentForChildren(), isClean()); + enableCertificates_ = null; + } + return enableCertificatesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.MeshCertificates) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.MeshCertificates) + private static final com.google.container.v1.MeshCertificates DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.MeshCertificates(); + } + + public static com.google.container.v1.MeshCertificates getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MeshCertificates parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..e89502bb35db --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MeshCertificatesOrBuilder.java @@ -0,0 +1,78 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface MeshCertificatesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.MeshCertificates) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * + * @return Whether the enableCertificates field is set. + */ + boolean hasEnableCertificates(); + /** + * + * + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * + * @return The enableCertificates. + */ + com.google.protobuf.BoolValue getEnableCertificates(); + /** + * + * + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + com.google.protobuf.BoolValueOrBuilder getEnableCertificatesOrBuilder(); +} diff --git a/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 new file mode 100644 index 000000000000..2222b5da005c --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringComponentConfig.java @@ -0,0 +1,1079 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * MonitoringComponentConfig is cluster monitoring component configuration.
+ * 
+ * + * Protobuf type {@code google.container.v1.MonitoringComponentConfig} + */ +public final class MonitoringComponentConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.MonitoringComponentConfig) + MonitoringComponentConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use MonitoringComponentConfig.newBuilder() to construct. + private MonitoringComponentConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MonitoringComponentConfig() { + enableComponents_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MonitoringComponentConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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), + 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; + + 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; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Component findValueByNumber(int number) { + return Component.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1.MonitoringComponentConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Component[] VALUES = values(); + + public static Component valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Component(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.MonitoringComponentConfig.Component) + } + + public static final int ENABLE_COMPONENTS_FIELD_NUMBER = 1; + private java.util.List enableComponents_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.container.v1.MonitoringComponentConfig.Component> + enableComponents_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.container.v1.MonitoringComponentConfig.Component>() { + public com.google.container.v1.MonitoringComponentConfig.Component convert( + java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.container.v1.MonitoringComponentConfig.Component result = + com.google.container.v1.MonitoringComponentConfig.Component.valueOf(from); + return result == null + ? com.google.container.v1.MonitoringComponentConfig.Component.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * + * + * @return A list containing the enableComponents. + */ + @java.lang.Override + public java.util.List + getEnableComponentsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.container.v1.MonitoringComponentConfig.Component>( + enableComponents_, enableComponents_converter_); + } + /** + * + * + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * + * + * @return The count of enableComponents. + */ + @java.lang.Override + public int getEnableComponentsCount() { + return enableComponents_.size(); + } + /** + * + * + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * + * + * @param index The index of the element to return. + * @return The enableComponents at the given index. + */ + @java.lang.Override + public com.google.container.v1.MonitoringComponentConfig.Component getEnableComponents( + int index) { + return enableComponents_converter_.convert(enableComponents_.get(index)); + } + /** + * + * + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * + * + * @return A list containing the enum numeric values on the wire for enableComponents. + */ + @java.lang.Override + public java.util.List getEnableComponentsValueList() { + return enableComponents_; + } + /** + * + * + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of enableComponents at the given index. + */ + @java.lang.Override + public int getEnableComponentsValue(int index) { + return enableComponents_.get(index); + } + + private int enableComponentsMemoizedSerializedSize; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (getEnableComponentsList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(enableComponentsMemoizedSerializedSize); + } + for (int i = 0; i < enableComponents_.size(); i++) { + output.writeEnumNoTag(enableComponents_.get(i)); + } + 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(); + enableComponents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_MonitoringComponentConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.MonitoringComponentConfig getDefaultInstanceForType() { + return com.google.container.v1.MonitoringComponentConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.MonitoringComponentConfig build() { + com.google.container.v1.MonitoringComponentConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.MonitoringComponentConfig buildPartial() { + com.google.container.v1.MonitoringComponentConfig result = + new com.google.container.v1.MonitoringComponentConfig(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + enableComponents_ = java.util.Collections.unmodifiableList(enableComponents_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.enableComponents_ = enableComponents_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.MonitoringComponentConfig) { + return mergeFrom((com.google.container.v1.MonitoringComponentConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.MonitoringComponentConfig other) { + if (other == com.google.container.v1.MonitoringComponentConfig.getDefaultInstance()) + return this; + if (!other.enableComponents_.isEmpty()) { + if (enableComponents_.isEmpty()) { + enableComponents_ = other.enableComponents_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEnableComponentsIsMutable(); + enableComponents_.addAll(other.enableComponents_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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 new file mode 100644 index 000000000000..b2cd819bca9b --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringComponentConfigOrBuilder.java @@ -0,0 +1,99 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface MonitoringComponentConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.MonitoringComponentConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * + * + * @return A list containing the enableComponents. + */ + java.util.List + getEnableComponentsList(); + /** + * + * + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * + * + * @return The count of enableComponents. + */ + int getEnableComponentsCount(); + /** + * + * + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * + * + * @param index The index of the element to return. + * @return The enableComponents at the given index. + */ + com.google.container.v1.MonitoringComponentConfig.Component getEnableComponents(int index); + /** + * + * + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * + * + * @return A list containing the enum numeric values on the wire for enableComponents. + */ + java.util.List getEnableComponentsValueList(); + /** + * + * + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of enableComponents at the given index. + */ + int getEnableComponentsValue(int index); +} diff --git a/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 new file mode 100644 index 000000000000..87689d2ef324 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringConfig.java @@ -0,0 +1,990 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * MonitoringConfig is cluster monitoring configuration.
+ * 
+ * + * Protobuf type {@code google.container.v1.MonitoringConfig} + */ +public final class MonitoringConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.MonitoringConfig) + MonitoringConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use MonitoringConfig.newBuilder() to construct. + private MonitoringConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MonitoringConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MonitoringConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_MonitoringConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_MonitoringConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.MonitoringConfig.class, + com.google.container.v1.MonitoringConfig.Builder.class); + } + + public static final int COMPONENT_CONFIG_FIELD_NUMBER = 1; + private com.google.container.v1.MonitoringComponentConfig componentConfig_; + /** + * + * + *
+   * Monitoring components configuration
+   * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + * + * @return Whether the componentConfig field is set. + */ + @java.lang.Override + public boolean hasComponentConfig() { + return componentConfig_ != null; + } + /** + * + * + *
+   * Monitoring components configuration
+   * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + * + * @return The componentConfig. + */ + @java.lang.Override + public com.google.container.v1.MonitoringComponentConfig getComponentConfig() { + return componentConfig_ == null + ? com.google.container.v1.MonitoringComponentConfig.getDefaultInstance() + : componentConfig_; + } + /** + * + * + *
+   * Monitoring components configuration
+   * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + */ + @java.lang.Override + public com.google.container.v1.MonitoringComponentConfigOrBuilder getComponentConfigOrBuilder() { + return getComponentConfig(); + } + + 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 managedPrometheusConfig_ != null; + } + /** + * + * + *
+   * 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 getManagedPrometheusConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (componentConfig_ != null) { + output.writeMessage(1, getComponentConfig()); + } + if (managedPrometheusConfig_ != null) { + output.writeMessage(2, getManagedPrometheusConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (componentConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getComponentConfig()); + } + if (managedPrometheusConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getManagedPrometheusConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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 (!getUnknownFields().equals(other.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(); + } + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (componentConfigBuilder_ == null) { + componentConfig_ = null; + } else { + componentConfig_ = null; + componentConfigBuilder_ = null; + } + if (managedPrometheusConfigBuilder_ == null) { + managedPrometheusConfig_ = null; + } else { + managedPrometheusConfig_ = null; + managedPrometheusConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_MonitoringConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.MonitoringConfig getDefaultInstanceForType() { + return com.google.container.v1.MonitoringConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.MonitoringConfig build() { + com.google.container.v1.MonitoringConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.MonitoringConfig buildPartial() { + com.google.container.v1.MonitoringConfig result = + new com.google.container.v1.MonitoringConfig(this); + if (componentConfigBuilder_ == null) { + result.componentConfig_ = componentConfig_; + } else { + result.componentConfig_ = componentConfigBuilder_.build(); + } + if (managedPrometheusConfigBuilder_ == null) { + result.managedPrometheusConfig_ = managedPrometheusConfig_; + } else { + result.managedPrometheusConfig_ = managedPrometheusConfigBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.MonitoringConfig) { + return mergeFrom((com.google.container.v1.MonitoringConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.MonitoringConfig other) { + if (other == com.google.container.v1.MonitoringConfig.getDefaultInstance()) return this; + if (other.hasComponentConfig()) { + mergeComponentConfig(other.getComponentConfig()); + } + if (other.hasManagedPrometheusConfig()) { + mergeManagedPrometheusConfig(other.getManagedPrometheusConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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); + + break; + } // case 10 + case 18: + { + input.readMessage( + getManagedPrometheusConfigFieldBuilder().getBuilder(), extensionRegistry); + + 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 com.google.container.v1.MonitoringComponentConfig componentConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MonitoringComponentConfig, + com.google.container.v1.MonitoringComponentConfig.Builder, + com.google.container.v1.MonitoringComponentConfigOrBuilder> + componentConfigBuilder_; + /** + * + * + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + * + * @return Whether the componentConfig field is set. + */ + public boolean hasComponentConfig() { + return componentConfigBuilder_ != null || componentConfig_ != null; + } + /** + * + * + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + * + * @return The componentConfig. + */ + public com.google.container.v1.MonitoringComponentConfig getComponentConfig() { + if (componentConfigBuilder_ == null) { + return componentConfig_ == null + ? com.google.container.v1.MonitoringComponentConfig.getDefaultInstance() + : componentConfig_; + } else { + return componentConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + */ + public Builder setComponentConfig(com.google.container.v1.MonitoringComponentConfig value) { + if (componentConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + componentConfig_ = value; + onChanged(); + } else { + componentConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + */ + public Builder setComponentConfig( + com.google.container.v1.MonitoringComponentConfig.Builder builderForValue) { + if (componentConfigBuilder_ == null) { + componentConfig_ = builderForValue.build(); + onChanged(); + } else { + componentConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + */ + public Builder mergeComponentConfig(com.google.container.v1.MonitoringComponentConfig value) { + if (componentConfigBuilder_ == null) { + if (componentConfig_ != null) { + componentConfig_ = + com.google.container.v1.MonitoringComponentConfig.newBuilder(componentConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + componentConfig_ = value; + } + onChanged(); + } else { + componentConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + */ + public Builder clearComponentConfig() { + if (componentConfigBuilder_ == null) { + componentConfig_ = null; + onChanged(); + } else { + componentConfig_ = null; + componentConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + */ + public com.google.container.v1.MonitoringComponentConfig.Builder getComponentConfigBuilder() { + + onChanged(); + return getComponentConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + */ + public com.google.container.v1.MonitoringComponentConfigOrBuilder + getComponentConfigOrBuilder() { + if (componentConfigBuilder_ != null) { + return componentConfigBuilder_.getMessageOrBuilder(); + } else { + return componentConfig_ == null + ? com.google.container.v1.MonitoringComponentConfig.getDefaultInstance() + : componentConfig_; + } + } + /** + * + * + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MonitoringComponentConfig, + com.google.container.v1.MonitoringComponentConfig.Builder, + com.google.container.v1.MonitoringComponentConfigOrBuilder> + getComponentConfigFieldBuilder() { + if (componentConfigBuilder_ == null) { + componentConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MonitoringComponentConfig, + com.google.container.v1.MonitoringComponentConfig.Builder, + com.google.container.v1.MonitoringComponentConfigOrBuilder>( + getComponentConfig(), getParentForChildren(), isClean()); + componentConfig_ = null; + } + return componentConfigBuilder_; + } + + 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 managedPrometheusConfigBuilder_ != null || managedPrometheusConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + managedPrometheusConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + managedPrometheusConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (managedPrometheusConfig_ != null) { + managedPrometheusConfig_ = + com.google.container.v1.ManagedPrometheusConfig.newBuilder(managedPrometheusConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + managedPrometheusConfig_ = value; + } + onChanged(); + } else { + managedPrometheusConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + public Builder clearManagedPrometheusConfig() { + if (managedPrometheusConfigBuilder_ == null) { + managedPrometheusConfig_ = null; + onChanged(); + } else { + managedPrometheusConfig_ = null; + managedPrometheusConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + public com.google.container.v1.ManagedPrometheusConfig.Builder + getManagedPrometheusConfigBuilder() { + + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..a7987b4fac57 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringConfigOrBuilder.java @@ -0,0 +1,98 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface MonitoringConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.MonitoringConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Monitoring components configuration
+   * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + * + * @return Whether the componentConfig field is set. + */ + boolean hasComponentConfig(); + /** + * + * + *
+   * Monitoring components configuration
+   * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + * + * @return The componentConfig. + */ + com.google.container.v1.MonitoringComponentConfig getComponentConfig(); + /** + * + * + *
+   * Monitoring components configuration
+   * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + */ + com.google.container.v1.MonitoringComponentConfigOrBuilder getComponentConfigOrBuilder(); + + /** + * + * + *
+   * 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(); +} 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 new file mode 100644 index 000000000000..e4d3b2a5647d --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java @@ -0,0 +1,2483 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NetworkConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NetworkConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NetworkConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NetworkConfig.class, + com.google.container.v1.NetworkConfig.Builder.class); + } + + public static final int NETWORK_FIELD_NUMBER = 1; + private volatile java.lang.Object network_; + /** + * + * + *
+   * Output only. The relative name of the Google Compute Engine
+   * [network][google.container.v1.NetworkConfig.network](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; + private volatile java.lang.Object subnetwork_; + /** + * + * + *
+   * Output only. The relative name of the Google Compute Engine
+   * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
+   * cluster is connected. Example:
+   * projects/my-project/regions/us-central1/subnetworks/my-subnet
+   * 
+ * + * string subnetwork = 2; + * + * @return The subnetwork. + */ + @java.lang.Override + public java.lang.String getSubnetwork() { + java.lang.Object ref = subnetwork_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetwork_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The relative name of the Google Compute Engine
+   * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
+   * cluster is connected. Example:
+   * projects/my-project/regions/us-central1/subnetworks/my-subnet
+   * 
+ * + * string subnetwork = 2; + * + * @return The bytes for subnetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSubnetworkBytes() { + java.lang.Object ref = subnetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENABLE_INTRA_NODE_VISIBILITY_FIELD_NUMBER = 5; + private boolean enableIntraNodeVisibility_; + /** + * + * + *
+   * Whether Intra-node visibility is enabled for this cluster.
+   * This makes same node pod to pod traffic visible for VPC network.
+   * 
+ * + * bool enable_intra_node_visibility = 5; + * + * @return The enableIntraNodeVisibility. + */ + @java.lang.Override + public boolean getEnableIntraNodeVisibility() { + return enableIntraNodeVisibility_; + } + + public static final int DEFAULT_SNAT_STATUS_FIELD_NUMBER = 7; + private com.google.container.v1.DefaultSnatStatus defaultSnatStatus_; + /** + * + * + *
+   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+   * will be disabled when default_snat_status is disabled. When disabled is set
+   * to false, default IP masquerade rules will be applied to the nodes to
+   * prevent sNAT on cluster internal traffic.
+   * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + * + * @return Whether the defaultSnatStatus field is set. + */ + @java.lang.Override + public boolean hasDefaultSnatStatus() { + return defaultSnatStatus_ != null; + } + /** + * + * + *
+   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+   * will be disabled when default_snat_status is disabled. When disabled is set
+   * to false, default IP masquerade rules will be applied to the nodes to
+   * prevent sNAT on cluster internal traffic.
+   * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + * + * @return The defaultSnatStatus. + */ + @java.lang.Override + public com.google.container.v1.DefaultSnatStatus getDefaultSnatStatus() { + return defaultSnatStatus_ == null + ? com.google.container.v1.DefaultSnatStatus.getDefaultInstance() + : defaultSnatStatus_; + } + /** + * + * + *
+   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+   * will be disabled when default_snat_status is disabled. When disabled is set
+   * to false, default IP masquerade rules will be applied to the nodes to
+   * prevent sNAT on cluster internal traffic.
+   * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + */ + @java.lang.Override + public com.google.container.v1.DefaultSnatStatusOrBuilder getDefaultSnatStatusOrBuilder() { + return getDefaultSnatStatus(); + } + + public static final int ENABLE_L4ILB_SUBSETTING_FIELD_NUMBER = 10; + private boolean enableL4IlbSubsetting_; + /** + * + * + *
+   * Whether L4ILB Subsetting is enabled for this cluster.
+   * 
+ * + * bool enable_l4ilb_subsetting = 10; + * + * @return The enableL4ilbSubsetting. + */ + @java.lang.Override + public boolean getEnableL4IlbSubsetting() { + return enableL4IlbSubsetting_; + } + + public static final int DATAPATH_PROVIDER_FIELD_NUMBER = 11; + private int datapathProvider_; + /** + * + * + *
+   * The desired datapath provider for this cluster. By default, uses the
+   * IPTables-based kube-proxy implementation.
+   * 
+ * + * .google.container.v1.DatapathProvider datapath_provider = 11; + * + * @return The enum numeric value on the wire for datapathProvider. + */ + @java.lang.Override + public int getDatapathProviderValue() { + return datapathProvider_; + } + /** + * + * + *
+   * The desired datapath provider for this cluster. By default, uses the
+   * IPTables-based kube-proxy implementation.
+   * 
+ * + * .google.container.v1.DatapathProvider datapath_provider = 11; + * + * @return The datapathProvider. + */ + @java.lang.Override + public com.google.container.v1.DatapathProvider getDatapathProvider() { + @SuppressWarnings("deprecation") + com.google.container.v1.DatapathProvider result = + com.google.container.v1.DatapathProvider.valueOf(datapathProvider_); + return result == null ? com.google.container.v1.DatapathProvider.UNRECOGNIZED : result; + } + + public static final int PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER = 12; + private int privateIpv6GoogleAccess_; + /** + * + * + *
+   * The desired state of IPv6 connectivity to Google Services.
+   * By default, no private IPv6 access to or from Google Services (all access
+   * will be via IPv4)
+   * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * + * @return The enum numeric value on the wire for privateIpv6GoogleAccess. + */ + @java.lang.Override + public int getPrivateIpv6GoogleAccessValue() { + return privateIpv6GoogleAccess_; + } + /** + * + * + *
+   * The desired state of IPv6 connectivity to Google Services.
+   * By default, no private IPv6 access to or from Google Services (all access
+   * will be via IPv4)
+   * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * + * @return The privateIpv6GoogleAccess. + */ + @java.lang.Override + public com.google.container.v1.PrivateIPv6GoogleAccess getPrivateIpv6GoogleAccess() { + @SuppressWarnings("deprecation") + com.google.container.v1.PrivateIPv6GoogleAccess result = + com.google.container.v1.PrivateIPv6GoogleAccess.valueOf(privateIpv6GoogleAccess_); + return result == null ? com.google.container.v1.PrivateIPv6GoogleAccess.UNRECOGNIZED : result; + } + + public static final int DNS_CONFIG_FIELD_NUMBER = 13; + private com.google.container.v1.DNSConfig dnsConfig_; + /** + * + * + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + * + * @return Whether the dnsConfig field is set. + */ + @java.lang.Override + public boolean hasDnsConfig() { + return dnsConfig_ != null; + } + /** + * + * + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + * + * @return The dnsConfig. + */ + @java.lang.Override + public com.google.container.v1.DNSConfig getDnsConfig() { + return dnsConfig_ == null ? com.google.container.v1.DNSConfig.getDefaultInstance() : dnsConfig_; + } + /** + * + * + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + */ + @java.lang.Override + public com.google.container.v1.DNSConfigOrBuilder getDnsConfigOrBuilder() { + return getDnsConfig(); + } + + public static final int SERVICE_EXTERNAL_IPS_CONFIG_FIELD_NUMBER = 15; + private com.google.container.v1.ServiceExternalIPsConfig serviceExternalIpsConfig_; + /** + * + * + *
+   * ServiceExternalIPsConfig specifies if services with externalIPs field are
+   * blocked or not.
+   * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + * + * @return Whether the serviceExternalIpsConfig field is set. + */ + @java.lang.Override + public boolean hasServiceExternalIpsConfig() { + return serviceExternalIpsConfig_ != null; + } + /** + * + * + *
+   * ServiceExternalIPsConfig specifies if services with externalIPs field are
+   * blocked or not.
+   * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + * + * @return The serviceExternalIpsConfig. + */ + @java.lang.Override + public com.google.container.v1.ServiceExternalIPsConfig getServiceExternalIpsConfig() { + return serviceExternalIpsConfig_ == null + ? com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance() + : serviceExternalIpsConfig_; + } + /** + * + * + *
+   * ServiceExternalIPsConfig specifies if services with externalIPs field are
+   * blocked or not.
+   * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + @java.lang.Override + public com.google.container.v1.ServiceExternalIPsConfigOrBuilder + getServiceExternalIpsConfigOrBuilder() { + return getServiceExternalIpsConfig(); + } + + 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 gatewayApiConfig_ != null; + } + /** + * + * + *
+   * 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 getGatewayApiConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 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 (defaultSnatStatus_ != null) { + output.writeMessage(7, getDefaultSnatStatus()); + } + if (enableL4IlbSubsetting_ != false) { + output.writeBool(10, enableL4IlbSubsetting_); + } + if (datapathProvider_ + != com.google.container.v1.DatapathProvider.DATAPATH_PROVIDER_UNSPECIFIED.getNumber()) { + output.writeEnum(11, datapathProvider_); + } + if (privateIpv6GoogleAccess_ + != com.google.container.v1.PrivateIPv6GoogleAccess.PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED + .getNumber()) { + output.writeEnum(12, privateIpv6GoogleAccess_); + } + if (dnsConfig_ != null) { + output.writeMessage(13, getDnsConfig()); + } + if (serviceExternalIpsConfig_ != null) { + output.writeMessage(15, getServiceExternalIpsConfig()); + } + if (gatewayApiConfig_ != null) { + output.writeMessage(16, getGatewayApiConfig()); + } + getUnknownFields().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 (defaultSnatStatus_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDefaultSnatStatus()); + } + if (enableL4IlbSubsetting_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, enableL4IlbSubsetting_); + } + if (datapathProvider_ + != com.google.container.v1.DatapathProvider.DATAPATH_PROVIDER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, datapathProvider_); + } + if (privateIpv6GoogleAccess_ + != com.google.container.v1.PrivateIPv6GoogleAccess.PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, privateIpv6GoogleAccess_); + } + if (dnsConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getDnsConfig()); + } + if (serviceExternalIpsConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 15, getServiceExternalIpsConfig()); + } + if (gatewayApiConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getGatewayApiConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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 = (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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + network_ = ""; + + subnetwork_ = ""; + + enableIntraNodeVisibility_ = false; + + if (defaultSnatStatusBuilder_ == null) { + defaultSnatStatus_ = null; + } else { + defaultSnatStatus_ = null; + defaultSnatStatusBuilder_ = null; + } + enableL4IlbSubsetting_ = false; + + datapathProvider_ = 0; + + privateIpv6GoogleAccess_ = 0; + + if (dnsConfigBuilder_ == null) { + dnsConfig_ = null; + } else { + dnsConfig_ = null; + dnsConfigBuilder_ = null; + } + if (serviceExternalIpsConfigBuilder_ == null) { + serviceExternalIpsConfig_ = null; + } else { + serviceExternalIpsConfig_ = null; + serviceExternalIpsConfigBuilder_ = null; + } + if (gatewayApiConfigBuilder_ == null) { + gatewayApiConfig_ = null; + } else { + gatewayApiConfig_ = null; + gatewayApiConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NetworkConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NetworkConfig getDefaultInstanceForType() { + return com.google.container.v1.NetworkConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NetworkConfig build() { + com.google.container.v1.NetworkConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NetworkConfig buildPartial() { + com.google.container.v1.NetworkConfig result = + new com.google.container.v1.NetworkConfig(this); + result.network_ = network_; + result.subnetwork_ = subnetwork_; + result.enableIntraNodeVisibility_ = enableIntraNodeVisibility_; + if (defaultSnatStatusBuilder_ == null) { + result.defaultSnatStatus_ = defaultSnatStatus_; + } else { + result.defaultSnatStatus_ = defaultSnatStatusBuilder_.build(); + } + result.enableL4IlbSubsetting_ = enableL4IlbSubsetting_; + result.datapathProvider_ = datapathProvider_; + result.privateIpv6GoogleAccess_ = privateIpv6GoogleAccess_; + if (dnsConfigBuilder_ == null) { + result.dnsConfig_ = dnsConfig_; + } else { + result.dnsConfig_ = dnsConfigBuilder_.build(); + } + if (serviceExternalIpsConfigBuilder_ == null) { + result.serviceExternalIpsConfig_ = serviceExternalIpsConfig_; + } else { + result.serviceExternalIpsConfig_ = serviceExternalIpsConfigBuilder_.build(); + } + if (gatewayApiConfigBuilder_ == null) { + result.gatewayApiConfig_ = gatewayApiConfig_; + } else { + result.gatewayApiConfig_ = gatewayApiConfigBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NetworkConfig) { + return mergeFrom((com.google.container.v1.NetworkConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NetworkConfig other) { + if (other == com.google.container.v1.NetworkConfig.getDefaultInstance()) return this; + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + onChanged(); + } + if (!other.getSubnetwork().isEmpty()) { + subnetwork_ = other.subnetwork_; + onChanged(); + } + 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()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + subnetwork_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 40: + { + enableIntraNodeVisibility_ = input.readBool(); + + break; + } // case 40 + case 58: + { + input.readMessage( + getDefaultSnatStatusFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 58 + case 80: + { + enableL4IlbSubsetting_ = input.readBool(); + + break; + } // case 80 + case 88: + { + datapathProvider_ = input.readEnum(); + + break; + } // case 88 + case 96: + { + privateIpv6GoogleAccess_ = input.readEnum(); + + break; + } // case 96 + case 106: + { + input.readMessage(getDnsConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 106 + case 122: + { + input.readMessage( + getServiceExternalIpsConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 122 + case 130: + { + input.readMessage( + getGatewayApiConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 130 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + 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; + 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(); + 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; + onChanged(); + return this; + } + + private java.lang.Object subnetwork_ = ""; + /** + * + * + *
+     * Output only. The relative name of the Google Compute Engine
+     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
+     * cluster is connected. Example:
+     * projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 2; + * + * @return The subnetwork. + */ + public java.lang.String getSubnetwork() { + java.lang.Object ref = subnetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The relative name of the Google Compute Engine
+     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
+     * cluster is connected. Example:
+     * projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 2; + * + * @return The bytes for subnetwork. + */ + public com.google.protobuf.ByteString getSubnetworkBytes() { + java.lang.Object ref = subnetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The relative name of the Google Compute Engine
+     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
+     * cluster is connected. Example:
+     * projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 2; + * + * @param value The subnetwork to set. + * @return This builder for chaining. + */ + public Builder setSubnetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subnetwork_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The relative name of the Google Compute Engine
+     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
+     * cluster is connected. Example:
+     * projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 2; + * + * @return This builder for chaining. + */ + public Builder clearSubnetwork() { + + subnetwork_ = getDefaultInstance().getSubnetwork(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The relative name of the Google Compute Engine
+     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
+     * cluster is connected. Example:
+     * projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 2; + * + * @param value The bytes for subnetwork to set. + * @return This builder for chaining. + */ + public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subnetwork_ = value; + onChanged(); + return this; + } + + private boolean enableIntraNodeVisibility_; + /** + * + * + *
+     * Whether Intra-node visibility is enabled for this cluster.
+     * This makes same node pod to pod traffic visible for VPC network.
+     * 
+ * + * bool enable_intra_node_visibility = 5; + * + * @return The enableIntraNodeVisibility. + */ + @java.lang.Override + public boolean getEnableIntraNodeVisibility() { + return enableIntraNodeVisibility_; + } + /** + * + * + *
+     * Whether Intra-node visibility is enabled for this cluster.
+     * This makes same node pod to pod traffic visible for VPC network.
+     * 
+ * + * bool enable_intra_node_visibility = 5; + * + * @param value The enableIntraNodeVisibility to set. + * @return This builder for chaining. + */ + public Builder setEnableIntraNodeVisibility(boolean value) { + + enableIntraNodeVisibility_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether Intra-node visibility is enabled for this cluster.
+     * This makes same node pod to pod traffic visible for VPC network.
+     * 
+ * + * bool enable_intra_node_visibility = 5; + * + * @return This builder for chaining. + */ + public Builder clearEnableIntraNodeVisibility() { + + enableIntraNodeVisibility_ = false; + onChanged(); + return this; + } + + private com.google.container.v1.DefaultSnatStatus defaultSnatStatus_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DefaultSnatStatus, + com.google.container.v1.DefaultSnatStatus.Builder, + com.google.container.v1.DefaultSnatStatusOrBuilder> + defaultSnatStatusBuilder_; + /** + * + * + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + * + * @return Whether the defaultSnatStatus field is set. + */ + public boolean hasDefaultSnatStatus() { + return defaultSnatStatusBuilder_ != null || defaultSnatStatus_ != null; + } + /** + * + * + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + * + * @return The defaultSnatStatus. + */ + public com.google.container.v1.DefaultSnatStatus getDefaultSnatStatus() { + if (defaultSnatStatusBuilder_ == null) { + return defaultSnatStatus_ == null + ? com.google.container.v1.DefaultSnatStatus.getDefaultInstance() + : defaultSnatStatus_; + } else { + return defaultSnatStatusBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + */ + public Builder setDefaultSnatStatus(com.google.container.v1.DefaultSnatStatus value) { + if (defaultSnatStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultSnatStatus_ = value; + onChanged(); + } else { + defaultSnatStatusBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + */ + public Builder setDefaultSnatStatus( + com.google.container.v1.DefaultSnatStatus.Builder builderForValue) { + if (defaultSnatStatusBuilder_ == null) { + defaultSnatStatus_ = builderForValue.build(); + onChanged(); + } else { + defaultSnatStatusBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + */ + public Builder mergeDefaultSnatStatus(com.google.container.v1.DefaultSnatStatus value) { + if (defaultSnatStatusBuilder_ == null) { + if (defaultSnatStatus_ != null) { + defaultSnatStatus_ = + com.google.container.v1.DefaultSnatStatus.newBuilder(defaultSnatStatus_) + .mergeFrom(value) + .buildPartial(); + } else { + defaultSnatStatus_ = value; + } + onChanged(); + } else { + defaultSnatStatusBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + */ + public Builder clearDefaultSnatStatus() { + if (defaultSnatStatusBuilder_ == null) { + defaultSnatStatus_ = null; + onChanged(); + } else { + defaultSnatStatus_ = null; + defaultSnatStatusBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + */ + public com.google.container.v1.DefaultSnatStatus.Builder getDefaultSnatStatusBuilder() { + + onChanged(); + return getDefaultSnatStatusFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + */ + public com.google.container.v1.DefaultSnatStatusOrBuilder getDefaultSnatStatusOrBuilder() { + if (defaultSnatStatusBuilder_ != null) { + return defaultSnatStatusBuilder_.getMessageOrBuilder(); + } else { + return defaultSnatStatus_ == null + ? com.google.container.v1.DefaultSnatStatus.getDefaultInstance() + : defaultSnatStatus_; + } + } + /** + * + * + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DefaultSnatStatus, + com.google.container.v1.DefaultSnatStatus.Builder, + com.google.container.v1.DefaultSnatStatusOrBuilder> + getDefaultSnatStatusFieldBuilder() { + if (defaultSnatStatusBuilder_ == null) { + defaultSnatStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DefaultSnatStatus, + com.google.container.v1.DefaultSnatStatus.Builder, + com.google.container.v1.DefaultSnatStatusOrBuilder>( + getDefaultSnatStatus(), getParentForChildren(), isClean()); + defaultSnatStatus_ = null; + } + return defaultSnatStatusBuilder_; + } + + private boolean enableL4IlbSubsetting_; + /** + * + * + *
+     * Whether L4ILB Subsetting is enabled for this cluster.
+     * 
+ * + * bool enable_l4ilb_subsetting = 10; + * + * @return The enableL4ilbSubsetting. + */ + @java.lang.Override + public boolean getEnableL4IlbSubsetting() { + return enableL4IlbSubsetting_; + } + /** + * + * + *
+     * Whether L4ILB Subsetting is enabled for this cluster.
+     * 
+ * + * bool enable_l4ilb_subsetting = 10; + * + * @param value The enableL4ilbSubsetting to set. + * @return This builder for chaining. + */ + public Builder setEnableL4IlbSubsetting(boolean value) { + + enableL4IlbSubsetting_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether L4ILB Subsetting is enabled for this cluster.
+     * 
+ * + * bool enable_l4ilb_subsetting = 10; + * + * @return This builder for chaining. + */ + public Builder clearEnableL4IlbSubsetting() { + + enableL4IlbSubsetting_ = false; + onChanged(); + return this; + } + + private int datapathProvider_ = 0; + /** + * + * + *
+     * The desired datapath provider for this cluster. By default, uses the
+     * IPTables-based kube-proxy implementation.
+     * 
+ * + * .google.container.v1.DatapathProvider datapath_provider = 11; + * + * @return The enum numeric value on the wire for datapathProvider. + */ + @java.lang.Override + public int getDatapathProviderValue() { + return datapathProvider_; + } + /** + * + * + *
+     * The desired datapath provider for this cluster. By default, uses the
+     * IPTables-based kube-proxy implementation.
+     * 
+ * + * .google.container.v1.DatapathProvider datapath_provider = 11; + * + * @param value The enum numeric value on the wire for datapathProvider to set. + * @return This builder for chaining. + */ + public Builder setDatapathProviderValue(int value) { + + datapathProvider_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The desired datapath provider for this cluster. By default, uses the
+     * IPTables-based kube-proxy implementation.
+     * 
+ * + * .google.container.v1.DatapathProvider datapath_provider = 11; + * + * @return The datapathProvider. + */ + @java.lang.Override + public com.google.container.v1.DatapathProvider getDatapathProvider() { + @SuppressWarnings("deprecation") + com.google.container.v1.DatapathProvider result = + com.google.container.v1.DatapathProvider.valueOf(datapathProvider_); + return result == null ? com.google.container.v1.DatapathProvider.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The desired datapath provider for this cluster. By default, uses the
+     * IPTables-based kube-proxy implementation.
+     * 
+ * + * .google.container.v1.DatapathProvider datapath_provider = 11; + * + * @param value The datapathProvider to set. + * @return This builder for chaining. + */ + public Builder setDatapathProvider(com.google.container.v1.DatapathProvider value) { + if (value == null) { + throw new NullPointerException(); + } + + datapathProvider_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired datapath provider for this cluster. By default, uses the
+     * IPTables-based kube-proxy implementation.
+     * 
+ * + * .google.container.v1.DatapathProvider datapath_provider = 11; + * + * @return This builder for chaining. + */ + public Builder clearDatapathProvider() { + + datapathProvider_ = 0; + onChanged(); + return this; + } + + private int privateIpv6GoogleAccess_ = 0; + /** + * + * + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * By default, no private IPv6 access to or from Google Services (all access
+     * will be via IPv4)
+     * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * + * @return The enum numeric value on the wire for privateIpv6GoogleAccess. + */ + @java.lang.Override + public int getPrivateIpv6GoogleAccessValue() { + return privateIpv6GoogleAccess_; + } + /** + * + * + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * By default, no private IPv6 access to or from Google Services (all access
+     * will be via IPv4)
+     * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * + * @param value The enum numeric value on the wire for privateIpv6GoogleAccess to set. + * @return This builder for chaining. + */ + public Builder setPrivateIpv6GoogleAccessValue(int value) { + + privateIpv6GoogleAccess_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * By default, no private IPv6 access to or from Google Services (all access
+     * will be via IPv4)
+     * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * + * @return The privateIpv6GoogleAccess. + */ + @java.lang.Override + public com.google.container.v1.PrivateIPv6GoogleAccess getPrivateIpv6GoogleAccess() { + @SuppressWarnings("deprecation") + com.google.container.v1.PrivateIPv6GoogleAccess result = + com.google.container.v1.PrivateIPv6GoogleAccess.valueOf(privateIpv6GoogleAccess_); + return result == null ? com.google.container.v1.PrivateIPv6GoogleAccess.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * By default, no private IPv6 access to or from Google Services (all access
+     * will be via IPv4)
+     * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * + * @param value The privateIpv6GoogleAccess to set. + * @return This builder for chaining. + */ + public Builder setPrivateIpv6GoogleAccess( + com.google.container.v1.PrivateIPv6GoogleAccess value) { + if (value == null) { + throw new NullPointerException(); + } + + privateIpv6GoogleAccess_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * By default, no private IPv6 access to or from Google Services (all access
+     * will be via IPv4)
+     * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * + * @return This builder for chaining. + */ + public Builder clearPrivateIpv6GoogleAccess() { + + privateIpv6GoogleAccess_ = 0; + onChanged(); + return this; + } + + private com.google.container.v1.DNSConfig dnsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DNSConfig, + com.google.container.v1.DNSConfig.Builder, + com.google.container.v1.DNSConfigOrBuilder> + dnsConfigBuilder_; + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + * + * @return Whether the dnsConfig field is set. + */ + public boolean hasDnsConfig() { + return dnsConfigBuilder_ != null || dnsConfig_ != null; + } + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + * + * @return The dnsConfig. + */ + public com.google.container.v1.DNSConfig getDnsConfig() { + if (dnsConfigBuilder_ == null) { + return dnsConfig_ == null + ? com.google.container.v1.DNSConfig.getDefaultInstance() + : dnsConfig_; + } else { + return dnsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + */ + public Builder setDnsConfig(com.google.container.v1.DNSConfig value) { + if (dnsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dnsConfig_ = value; + onChanged(); + } else { + dnsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + */ + public Builder setDnsConfig(com.google.container.v1.DNSConfig.Builder builderForValue) { + if (dnsConfigBuilder_ == null) { + dnsConfig_ = builderForValue.build(); + onChanged(); + } else { + dnsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + */ + public Builder mergeDnsConfig(com.google.container.v1.DNSConfig value) { + if (dnsConfigBuilder_ == null) { + if (dnsConfig_ != null) { + dnsConfig_ = + com.google.container.v1.DNSConfig.newBuilder(dnsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + dnsConfig_ = value; + } + onChanged(); + } else { + dnsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + */ + public Builder clearDnsConfig() { + if (dnsConfigBuilder_ == null) { + dnsConfig_ = null; + onChanged(); + } else { + dnsConfig_ = null; + dnsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + */ + public com.google.container.v1.DNSConfig.Builder getDnsConfigBuilder() { + + onChanged(); + return getDnsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + */ + public com.google.container.v1.DNSConfigOrBuilder getDnsConfigOrBuilder() { + if (dnsConfigBuilder_ != null) { + return dnsConfigBuilder_.getMessageOrBuilder(); + } else { + return dnsConfig_ == null + ? com.google.container.v1.DNSConfig.getDefaultInstance() + : dnsConfig_; + } + } + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DNSConfig, + com.google.container.v1.DNSConfig.Builder, + com.google.container.v1.DNSConfigOrBuilder> + getDnsConfigFieldBuilder() { + if (dnsConfigBuilder_ == null) { + dnsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DNSConfig, + com.google.container.v1.DNSConfig.Builder, + com.google.container.v1.DNSConfigOrBuilder>( + getDnsConfig(), getParentForChildren(), isClean()); + dnsConfig_ = null; + } + return dnsConfigBuilder_; + } + + private com.google.container.v1.ServiceExternalIPsConfig serviceExternalIpsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ServiceExternalIPsConfig, + com.google.container.v1.ServiceExternalIPsConfig.Builder, + com.google.container.v1.ServiceExternalIPsConfigOrBuilder> + serviceExternalIpsConfigBuilder_; + /** + * + * + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + * + * @return Whether the serviceExternalIpsConfig field is set. + */ + public boolean hasServiceExternalIpsConfig() { + return serviceExternalIpsConfigBuilder_ != null || serviceExternalIpsConfig_ != null; + } + /** + * + * + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + * + * @return The serviceExternalIpsConfig. + */ + public com.google.container.v1.ServiceExternalIPsConfig getServiceExternalIpsConfig() { + if (serviceExternalIpsConfigBuilder_ == null) { + return serviceExternalIpsConfig_ == null + ? com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance() + : serviceExternalIpsConfig_; + } else { + return serviceExternalIpsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + public Builder setServiceExternalIpsConfig( + com.google.container.v1.ServiceExternalIPsConfig value) { + if (serviceExternalIpsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serviceExternalIpsConfig_ = value; + onChanged(); + } else { + serviceExternalIpsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + public Builder setServiceExternalIpsConfig( + com.google.container.v1.ServiceExternalIPsConfig.Builder builderForValue) { + if (serviceExternalIpsConfigBuilder_ == null) { + serviceExternalIpsConfig_ = builderForValue.build(); + onChanged(); + } else { + serviceExternalIpsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + public Builder mergeServiceExternalIpsConfig( + com.google.container.v1.ServiceExternalIPsConfig value) { + if (serviceExternalIpsConfigBuilder_ == null) { + if (serviceExternalIpsConfig_ != null) { + serviceExternalIpsConfig_ = + com.google.container.v1.ServiceExternalIPsConfig.newBuilder(serviceExternalIpsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + serviceExternalIpsConfig_ = value; + } + onChanged(); + } else { + serviceExternalIpsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + public Builder clearServiceExternalIpsConfig() { + if (serviceExternalIpsConfigBuilder_ == null) { + serviceExternalIpsConfig_ = null; + onChanged(); + } else { + serviceExternalIpsConfig_ = null; + serviceExternalIpsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + public com.google.container.v1.ServiceExternalIPsConfig.Builder + getServiceExternalIpsConfigBuilder() { + + onChanged(); + return getServiceExternalIpsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + public com.google.container.v1.ServiceExternalIPsConfigOrBuilder + getServiceExternalIpsConfigOrBuilder() { + if (serviceExternalIpsConfigBuilder_ != null) { + return serviceExternalIpsConfigBuilder_.getMessageOrBuilder(); + } else { + return serviceExternalIpsConfig_ == null + ? com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance() + : serviceExternalIpsConfig_; + } + } + /** + * + * + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ServiceExternalIPsConfig, + com.google.container.v1.ServiceExternalIPsConfig.Builder, + com.google.container.v1.ServiceExternalIPsConfigOrBuilder> + getServiceExternalIpsConfigFieldBuilder() { + if (serviceExternalIpsConfigBuilder_ == null) { + serviceExternalIpsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ServiceExternalIPsConfig, + com.google.container.v1.ServiceExternalIPsConfig.Builder, + com.google.container.v1.ServiceExternalIPsConfigOrBuilder>( + getServiceExternalIpsConfig(), getParentForChildren(), isClean()); + serviceExternalIpsConfig_ = null; + } + return serviceExternalIpsConfigBuilder_; + } + + 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 gatewayApiConfigBuilder_ != null || gatewayApiConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + gatewayApiConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + gatewayApiConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (gatewayApiConfig_ != null) { + gatewayApiConfig_ = + com.google.container.v1.GatewayAPIConfig.newBuilder(gatewayApiConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + gatewayApiConfig_ = value; + } + onChanged(); + } else { + gatewayApiConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * GatewayAPIConfig contains the desired config of Gateway API on this
+     * cluster.
+     * 
+ * + * .google.container.v1.GatewayAPIConfig gateway_api_config = 16; + */ + public Builder clearGatewayApiConfig() { + if (gatewayApiConfigBuilder_ == null) { + gatewayApiConfig_ = null; + onChanged(); + } else { + gatewayApiConfig_ = null; + gatewayApiConfigBuilder_ = null; + } + + 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() { + + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..bcc3d1d78e8d --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java @@ -0,0 +1,325 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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(); +} 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 new file mode 100644 index 000000000000..ed0a16c42c65 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicy.java @@ -0,0 +1,813 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * 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() { + @SuppressWarnings("deprecation") + com.google.container.v1.NetworkPolicy.Provider result = + com.google.container.v1.NetworkPolicy.Provider.valueOf(provider_); + return result == null ? com.google.container.v1.NetworkPolicy.Provider.UNRECOGNIZED : result; + } + + public static final int ENABLED_FIELD_NUMBER = 2; + private boolean enabled_; + /** + * + * + *
+   * Whether network policy is enabled on the cluster.
+   * 
+ * + * bool enabled = 2; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (provider_ + != com.google.container.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(); + 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); + result.provider_ = provider_; + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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(); + + break; + } // case 8 + case 16: + { + enabled_ = input.readBool(); + + 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 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; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1.NetworkPolicy.Provider result = + com.google.container.v1.NetworkPolicy.Provider.valueOf(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(); + } + + 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() { + + provider_ = 0; + onChanged(); + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Whether network policy is enabled on the cluster.
+     * 
+ * + * bool enabled = 2; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether network policy is enabled on the cluster.
+     * 
+ * + * bool enabled = 2; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether network policy is enabled on the cluster.
+     * 
+ * + * bool enabled = 2; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..f55b87da8498 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyConfig.java @@ -0,0 +1,530 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Configuration for 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * 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(); + 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); + result.disabled_ = disabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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(); + + 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 boolean disabled_; + /** + * + * + *
+     * Whether NetworkPolicy is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + /** + * + * + *
+     * Whether NetworkPolicy is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * + * @param value The disabled to set. + * @return This builder for chaining. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether NetworkPolicy is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisabled() { + + disabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..416b080be4f3 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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 new file mode 100644 index 000000000000..b0040af07147 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyOrBuilder.java @@ -0,0 +1,63 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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 new file mode 100644 index 000000000000..9879837a6cc2 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkTags.java @@ -0,0 +1,708 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NetworkTags(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + private com.google.protobuf.LazyStringList tags_; + /** + * + * + *
+   * 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(); + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_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); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + tags_ = tags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tags_ = tags_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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_ = (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.LazyStringList tags_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureTagsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + 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() { + return tags_.getUnmodifiableView(); + } + /** + * + * + *
+     * 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); + 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); + 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_); + onChanged(); + return this; + } + /** + * + * + *
+     * List of network tags.
+     * 
+ * + * repeated string tags = 1; + * + * @return This builder for chaining. + */ + public Builder clearTags() { + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + 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); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..c31c0a25f76b --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkTagsOrBuilder.java @@ -0,0 +1,76 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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 new file mode 100644 index 000000000000..a630d50050ca --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java @@ -0,0 +1,8330 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Parameters that 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.EMPTY; + serviceAccount_ = ""; + imageType_ = ""; + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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.MapField internalGetMapField(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); + } + + public static final int MACHINE_TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object machineType_; + /** + * + * + *
+   * The name of a Google Compute Engine [machine
+   * type](https://cloud.google.com/compute/docs/machine-types)
+   * If unspecified, the default machine type is `e2-medium`.
+   * 
+ * + * string machine_type = 1; + * + * @return The machineType. + */ + @java.lang.Override + public java.lang.String getMachineType() { + java.lang.Object ref = machineType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + machineType_ = s; + return s; + } + } + /** + * + * + *
+   * The name of a Google Compute Engine [machine
+   * type](https://cloud.google.com/compute/docs/machine-types)
+   * If unspecified, the default machine type is `e2-medium`.
+   * 
+ * + * string machine_type = 1; + * + * @return The bytes for machineType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMachineTypeBytes() { + java.lang.Object ref = machineType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + machineType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISK_SIZE_GB_FIELD_NUMBER = 2; + private int diskSizeGb_; + /** + * + * + *
+   * Size of the disk attached to each node, specified in GB.
+   * The smallest allowed disk size is 10GB.
+   * If unspecified, the default disk size is 100GB.
+   * 
+ * + * int32 disk_size_gb = 2; + * + * @return The diskSizeGb. + */ + @java.lang.Override + public int getDiskSizeGb() { + return diskSizeGb_; + } + + public static final int OAUTH_SCOPES_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList oauthScopes_; + /** + * + * + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container
+   * Registry](https://cloud.google.com/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 3; + * + * @return A list containing the oauthScopes. + */ + public com.google.protobuf.ProtocolStringList getOauthScopesList() { + return oauthScopes_; + } + /** + * + * + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container
+   * Registry](https://cloud.google.com/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 3; + * + * @return The count of oauthScopes. + */ + public int getOauthScopesCount() { + return oauthScopes_.size(); + } + /** + * + * + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container
+   * Registry](https://cloud.google.com/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 3; + * + * @param index The index of the element to return. + * @return The oauthScopes at the given index. + */ + public java.lang.String getOauthScopes(int index) { + return oauthScopes_.get(index); + } + /** + * + * + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container
+   * Registry](https://cloud.google.com/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 3; + * + * @param index The index of the value to return. + * @return The bytes of the oauthScopes at the given index. + */ + public com.google.protobuf.ByteString getOauthScopesBytes(int index) { + return oauthScopes_.getByteString(index); + } + + public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 9; + private volatile java.lang.Object serviceAccount_; + /** + * + * + *
+   * The Google Cloud Platform Service Account to be used by the node VMs.
+   * Specify the email address of the Service Account; otherwise, if no Service
+   * Account is specified, the "default" service account is used.
+   * 
+ * + * string service_account = 9; + * + * @return The serviceAccount. + */ + @java.lang.Override + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } + } + /** + * + * + *
+   * The Google Cloud Platform Service Account to be used by the node VMs.
+   * Specify the email address of the Service Account; otherwise, if no Service
+   * Account is specified, the "default" service account is used.
+   * 
+ * + * string service_account = 9; + * + * @return The bytes for serviceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 4; + + private static final class MetadataDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NodeConfig_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField metadata_; + + private com.google.protobuf.MapField internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + * + * + *
+   * The metadata key/value pairs assigned to instances in the cluster.
+   * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
+   * in length. These are reflected as part of a URL in the metadata server.
+   * Additionally, to avoid ambiguity, keys must not conflict with any other
+   * metadata keys for the project or be one of the reserved keys:
+   *  - "cluster-location"
+   *  - "cluster-name"
+   *  - "cluster-uid"
+   *  - "configure-sh"
+   *  - "containerd-configure-sh"
+   *  - "enable-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 java.lang.String getMetadataOrDefault( + java.lang.String key, 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; + private volatile java.lang.Object imageType_; + /** + * + * + *
+   * The image type to use for this node. Note that for a given image type,
+   * the latest version of it will be used.
+   * 
+ * + * string image_type = 5; + * + * @return The imageType. + */ + @java.lang.Override + public java.lang.String getImageType() { + java.lang.Object ref = imageType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageType_ = s; + return s; + } + } + /** + * + * + *
+   * The image type to use for this node. Note that for a given image type,
+   * the latest version of it will be used.
+   * 
+ * + * string image_type = 5; + * + * @return The bytes for imageType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getImageTypeBytes() { + java.lang.Object ref = imageType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABELS_FIELD_NUMBER = 6; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NodeConfig_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new 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 java.lang.String getLabelsOrDefault(java.lang.String key, 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_; + /** + * + * + *
+   * The number of local SSD disks to be attached to the node.
+   * The limit for this value is dependent upon the maximum number of
+   * disks available on a machine per zone. See:
+   * https://cloud.google.com/compute/docs/disks/local-ssd
+   * for more information.
+   * 
+ * + * int32 local_ssd_count = 7; + * + * @return The localSsdCount. + */ + @java.lang.Override + public int getLocalSsdCount() { + return localSsdCount_; + } + + public static final int TAGS_FIELD_NUMBER = 8; + private com.google.protobuf.LazyStringList tags_; + /** + * + * + *
+   * The list of instance tags applied to all nodes. Tags are used to identify
+   * valid sources or targets for network firewalls and are specified by
+   * the client during cluster or node pool creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * repeated string tags = 8; + * + * @return A list containing the tags. + */ + public com.google.protobuf.ProtocolStringList getTagsList() { + return tags_; + } + /** + * + * + *
+   * The list of instance tags applied to all nodes. Tags are used to identify
+   * valid sources or targets for network firewalls and are specified by
+   * the client during cluster or node pool creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * repeated string tags = 8; + * + * @return The count of tags. + */ + public int getTagsCount() { + return tags_.size(); + } + /** + * + * + *
+   * The list of instance tags applied to all nodes. Tags are used to identify
+   * valid sources or targets for network firewalls and are specified by
+   * the client during cluster or node pool creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * repeated string tags = 8; + * + * @param index The index of the element to return. + * @return The tags at the given index. + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + * + * + *
+   * The list of instance tags applied to all nodes. Tags are used to identify
+   * valid sources or targets for network firewalls and are specified by
+   * the client during cluster or node pool creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * repeated string tags = 8; + * + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + public com.google.protobuf.ByteString getTagsBytes(int index) { + return tags_.getByteString(index); + } + + public static final int PREEMPTIBLE_FIELD_NUMBER = 10; + private boolean preemptible_; + /** + * + * + *
+   * Whether the nodes are created as preemptible VM instances. See:
+   * https://cloud.google.com/compute/docs/instances/preemptible for more
+   * 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; + 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; + private volatile java.lang.Object diskType_; + /** + * + * + *
+   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+   * 'pd-balanced')
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 12; + * + * @return The diskType. + */ + @java.lang.Override + public java.lang.String getDiskType() { + java.lang.Object ref = diskType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diskType_ = s; + return s; + } + } + /** + * + * + *
+   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+   * 'pd-balanced')
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 12; + * + * @return The bytes for diskType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDiskTypeBytes() { + java.lang.Object ref = diskType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + diskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MIN_CPU_PLATFORM_FIELD_NUMBER = 13; + private volatile java.lang.Object minCpuPlatform_; + /** + * + * + *
+   * Minimum CPU platform to be used by this instance. The instance may be
+   * scheduled on the specified or newer CPU platform. Applicable values are the
+   * friendly names of CPU platforms, such as
+   * `minCpuPlatform: "Intel Haswell"` or
+   * `minCpuPlatform: "Intel Sandy Bridge"`. For more
+   * information, read [how to specify min CPU
+   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+   * 
+ * + * string min_cpu_platform = 13; + * + * @return The minCpuPlatform. + */ + @java.lang.Override + public java.lang.String getMinCpuPlatform() { + java.lang.Object ref = minCpuPlatform_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + minCpuPlatform_ = s; + return s; + } + } + /** + * + * + *
+   * Minimum CPU platform to be used by this instance. The instance may be
+   * scheduled on the specified or newer CPU platform. Applicable values are the
+   * friendly names of CPU platforms, such as
+   * `minCpuPlatform: "Intel Haswell"` or
+   * `minCpuPlatform: "Intel Sandy Bridge"`. For more
+   * information, read [how to specify min CPU
+   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+   * 
+ * + * string min_cpu_platform = 13; + * + * @return The bytes for minCpuPlatform. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMinCpuPlatformBytes() { + java.lang.Object ref = minCpuPlatform_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + minCpuPlatform_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKLOAD_METADATA_CONFIG_FIELD_NUMBER = 14; + private com.google.container.v1.WorkloadMetadataConfig workloadMetadataConfig_; + /** + * + * + *
+   * The workload metadata configuration for this node.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return Whether the workloadMetadataConfig field is set. + */ + @java.lang.Override + public boolean hasWorkloadMetadataConfig() { + return workloadMetadataConfig_ != null; + } + /** + * + * + *
+   * The workload metadata configuration for this node.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return The workloadMetadataConfig. + */ + @java.lang.Override + public com.google.container.v1.WorkloadMetadataConfig getWorkloadMetadataConfig() { + return workloadMetadataConfig_ == null + ? com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() + : workloadMetadataConfig_; + } + /** + * + * + *
+   * The workload metadata configuration for this node.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + @java.lang.Override + public com.google.container.v1.WorkloadMetadataConfigOrBuilder + getWorkloadMetadataConfigOrBuilder() { + return getWorkloadMetadataConfig(); + } + + public static final int TAINTS_FIELD_NUMBER = 15; + private java.util.List taints_; + /** + * + * + *
+   * 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 sandboxConfig_ != null; + } + /** + * + * + *
+   * Sandbox configuration for this node.
+   * 
+ * + * .google.container.v1.SandboxConfig sandbox_config = 17; + * + * @return The sandboxConfig. + */ + @java.lang.Override + public com.google.container.v1.SandboxConfig getSandboxConfig() { + return sandboxConfig_ == null + ? com.google.container.v1.SandboxConfig.getDefaultInstance() + : sandboxConfig_; + } + /** + * + * + *
+   * Sandbox configuration for this node.
+   * 
+ * + * .google.container.v1.SandboxConfig sandbox_config = 17; + */ + @java.lang.Override + public com.google.container.v1.SandboxConfigOrBuilder getSandboxConfigOrBuilder() { + return getSandboxConfig(); + } + + public static final int NODE_GROUP_FIELD_NUMBER = 18; + private volatile java.lang.Object nodeGroup_; + /** + * + * + *
+   * Setting this field will assign instances of this
+   * pool to run on the specified node group. This is useful for running
+   * workloads on [sole tenant
+   * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
+   * 
+ * + * string node_group = 18; + * + * @return The nodeGroup. + */ + @java.lang.Override + public java.lang.String getNodeGroup() { + java.lang.Object ref = nodeGroup_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeGroup_ = s; + return s; + } + } + /** + * + * + *
+   * Setting this field will assign instances of this
+   * pool to run on the specified node group. This is useful for running
+   * workloads on [sole tenant
+   * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
+   * 
+ * + * string node_group = 18; + * + * @return The bytes for nodeGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNodeGroupBytes() { + java.lang.Object ref = nodeGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESERVATION_AFFINITY_FIELD_NUMBER = 19; + private com.google.container.v1.ReservationAffinity reservationAffinity_; + /** + * + * + *
+   * The optional reservation affinity. Setting this field will apply
+   * the specified [Zonal Compute
+   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+   * to this node pool.
+   * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + * + * @return Whether the reservationAffinity field is set. + */ + @java.lang.Override + public boolean hasReservationAffinity() { + return reservationAffinity_ != null; + } + /** + * + * + *
+   * The optional reservation affinity. Setting this field will apply
+   * the specified [Zonal Compute
+   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+   * to this node pool.
+   * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + * + * @return The reservationAffinity. + */ + @java.lang.Override + public com.google.container.v1.ReservationAffinity getReservationAffinity() { + return reservationAffinity_ == null + ? com.google.container.v1.ReservationAffinity.getDefaultInstance() + : reservationAffinity_; + } + /** + * + * + *
+   * The optional reservation affinity. Setting this field will apply
+   * the specified [Zonal Compute
+   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+   * to this node pool.
+   * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + */ + @java.lang.Override + public com.google.container.v1.ReservationAffinityOrBuilder getReservationAffinityOrBuilder() { + return getReservationAffinity(); + } + + public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 20; + private com.google.container.v1.ShieldedInstanceConfig shieldedInstanceConfig_; + /** + * + * + *
+   * 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 shieldedInstanceConfig_ != null; + } + /** + * + * + *
+   * 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 getShieldedInstanceConfig(); + } + + public static final int LINUX_NODE_CONFIG_FIELD_NUMBER = 21; + private com.google.container.v1.LinuxNodeConfig linuxNodeConfig_; + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + * + * @return Whether the linuxNodeConfig field is set. + */ + @java.lang.Override + public boolean hasLinuxNodeConfig() { + return linuxNodeConfig_ != null; + } + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + * + * @return The linuxNodeConfig. + */ + @java.lang.Override + public com.google.container.v1.LinuxNodeConfig getLinuxNodeConfig() { + return linuxNodeConfig_ == null + ? com.google.container.v1.LinuxNodeConfig.getDefaultInstance() + : linuxNodeConfig_; + } + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + */ + @java.lang.Override + public com.google.container.v1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder() { + return getLinuxNodeConfig(); + } + + public static final int KUBELET_CONFIG_FIELD_NUMBER = 22; + private com.google.container.v1.NodeKubeletConfig kubeletConfig_; + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + * + * @return Whether the kubeletConfig field is set. + */ + @java.lang.Override + public boolean hasKubeletConfig() { + return kubeletConfig_ != null; + } + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + * + * @return The kubeletConfig. + */ + @java.lang.Override + public com.google.container.v1.NodeKubeletConfig getKubeletConfig() { + return kubeletConfig_ == null + ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() + : kubeletConfig_; + } + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + */ + @java.lang.Override + public com.google.container.v1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder() { + return getKubeletConfig(); + } + + public static final int BOOT_DISK_KMS_KEY_FIELD_NUMBER = 23; + private volatile java.lang.Object bootDiskKmsKey_; + /** + * + * + *
+   * 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 gcfsConfig_ != null; + } + /** + * + * + *
+   * Google Container File System (image streaming) configs.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + * + * @return The gcfsConfig. + */ + @java.lang.Override + public com.google.container.v1.GcfsConfig getGcfsConfig() { + return gcfsConfig_ == null + ? com.google.container.v1.GcfsConfig.getDefaultInstance() + : gcfsConfig_; + } + /** + * + * + *
+   * Google Container File System (image streaming) configs.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + */ + @java.lang.Override + public com.google.container.v1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { + return getGcfsConfig(); + } + + public static final int ADVANCED_MACHINE_FEATURES_FIELD_NUMBER = 26; + private com.google.container.v1.AdvancedMachineFeatures advancedMachineFeatures_; + /** + * + * + *
+   * Advanced features for the Compute Engine VM.
+   * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + * + * @return Whether the advancedMachineFeatures field is set. + */ + @java.lang.Override + public boolean hasAdvancedMachineFeatures() { + return advancedMachineFeatures_ != null; + } + /** + * + * + *
+   * Advanced features for the Compute Engine VM.
+   * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + * + * @return The advancedMachineFeatures. + */ + @java.lang.Override + public com.google.container.v1.AdvancedMachineFeatures getAdvancedMachineFeatures() { + return advancedMachineFeatures_ == null + ? com.google.container.v1.AdvancedMachineFeatures.getDefaultInstance() + : advancedMachineFeatures_; + } + /** + * + * + *
+   * Advanced features for the Compute Engine VM.
+   * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + @java.lang.Override + public com.google.container.v1.AdvancedMachineFeaturesOrBuilder + getAdvancedMachineFeaturesOrBuilder() { + return getAdvancedMachineFeatures(); + } + + public static final int GVNIC_FIELD_NUMBER = 29; + private com.google.container.v1.VirtualNIC gvnic_; + /** + * + * + *
+   * Enable or disable gvnic in the node pool.
+   * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + * + * @return Whether the gvnic field is set. + */ + @java.lang.Override + public boolean hasGvnic() { + return gvnic_ != null; + } + /** + * + * + *
+   * Enable or disable gvnic in the node pool.
+   * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + * + * @return The gvnic. + */ + @java.lang.Override + public com.google.container.v1.VirtualNIC getGvnic() { + return gvnic_ == null ? com.google.container.v1.VirtualNIC.getDefaultInstance() : gvnic_; + } + /** + * + * + *
+   * Enable or disable gvnic in the node pool.
+   * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + @java.lang.Override + public com.google.container.v1.VirtualNICOrBuilder getGvnicOrBuilder() { + return getGvnic(); + } + + public static final int SPOT_FIELD_NUMBER = 32; + private boolean spot_; + /** + * + * + *
+   * Spot flag for enabling Spot VM, which is a rebrand of
+   * the existing preemptible flag.
+   * 
+ * + * bool spot = 32; + * + * @return The spot. + */ + @java.lang.Override + public boolean getSpot() { + return spot_; + } + + 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 confidentialNodes_ != null; + } + /** + * + * + *
+   * 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 getConfidentialNodes(); + } + + 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, + ""); + } + + 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 java.lang.String getResourceLabelsOrDefault( + java.lang.String key, 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 loggingConfig_ != null; + } + /** + * + * + *
+   * 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 getLoggingConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 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 (workloadMetadataConfig_ != null) { + output.writeMessage(14, getWorkloadMetadataConfig()); + } + for (int i = 0; i < taints_.size(); i++) { + output.writeMessage(15, taints_.get(i)); + } + if (sandboxConfig_ != null) { + output.writeMessage(17, getSandboxConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeGroup_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 18, nodeGroup_); + } + if (reservationAffinity_ != null) { + output.writeMessage(19, getReservationAffinity()); + } + if (shieldedInstanceConfig_ != null) { + output.writeMessage(20, getShieldedInstanceConfig()); + } + if (linuxNodeConfig_ != null) { + output.writeMessage(21, getLinuxNodeConfig()); + } + if (kubeletConfig_ != null) { + output.writeMessage(22, getKubeletConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootDiskKmsKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 23, bootDiskKmsKey_); + } + if (gcfsConfig_ != null) { + output.writeMessage(25, getGcfsConfig()); + } + if (advancedMachineFeatures_ != null) { + output.writeMessage(26, getAdvancedMachineFeatures()); + } + if (gvnic_ != null) { + output.writeMessage(29, getGvnic()); + } + if (spot_ != false) { + output.writeBool(32, spot_); + } + if (confidentialNodes_ != null) { + output.writeMessage(35, getConfidentialNodes()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetResourceLabels(), ResourceLabelsDefaultEntryHolder.defaultEntry, 37); + if (loggingConfig_ != null) { + output.writeMessage(38, getLoggingConfig()); + } + getUnknownFields().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 (workloadMetadataConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(14, getWorkloadMetadataConfig()); + } + for (int i = 0; i < taints_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, taints_.get(i)); + } + if (sandboxConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getSandboxConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeGroup_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, nodeGroup_); + } + if (reservationAffinity_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(19, getReservationAffinity()); + } + if (shieldedInstanceConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(20, getShieldedInstanceConfig()); + } + if (linuxNodeConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getLinuxNodeConfig()); + } + if (kubeletConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getKubeletConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootDiskKmsKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, bootDiskKmsKey_); + } + if (gcfsConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getGcfsConfig()); + } + if (advancedMachineFeatures_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 26, getAdvancedMachineFeatures()); + } + if (gvnic_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getGvnic()); + } + if (spot_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(32, spot_); + } + if (confidentialNodes_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(35, getConfidentialNodes()); + } + 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 (loggingConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(38, 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.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 (!internalGetResourceLabels().equals(other.internalGetResourceLabels())) 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(); + 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 (!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(); + } + 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.MapField internalGetMapField(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.MapField internalGetMutableMapField(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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + machineType_ = ""; + + diskSizeGb_ = 0; + + oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + serviceAccount_ = ""; + + internalGetMutableMetadata().clear(); + imageType_ = ""; + + internalGetMutableLabels().clear(); + localSsdCount_ = 0; + + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + preemptible_ = false; + + if (acceleratorsBuilder_ == null) { + accelerators_ = java.util.Collections.emptyList(); + } else { + accelerators_ = null; + acceleratorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + diskType_ = ""; + + minCpuPlatform_ = ""; + + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfig_ = null; + } else { + workloadMetadataConfig_ = null; + workloadMetadataConfigBuilder_ = null; + } + if (taintsBuilder_ == null) { + taints_ = java.util.Collections.emptyList(); + } else { + taints_ = null; + taintsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + if (sandboxConfigBuilder_ == null) { + sandboxConfig_ = null; + } else { + sandboxConfig_ = null; + sandboxConfigBuilder_ = null; + } + nodeGroup_ = ""; + + if (reservationAffinityBuilder_ == null) { + reservationAffinity_ = null; + } else { + reservationAffinity_ = null; + reservationAffinityBuilder_ = null; + } + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfig_ = null; + } else { + shieldedInstanceConfig_ = null; + shieldedInstanceConfigBuilder_ = null; + } + if (linuxNodeConfigBuilder_ == null) { + linuxNodeConfig_ = null; + } else { + linuxNodeConfig_ = null; + linuxNodeConfigBuilder_ = null; + } + if (kubeletConfigBuilder_ == null) { + kubeletConfig_ = null; + } else { + kubeletConfig_ = null; + kubeletConfigBuilder_ = null; + } + bootDiskKmsKey_ = ""; + + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = null; + } else { + gcfsConfig_ = null; + gcfsConfigBuilder_ = null; + } + if (advancedMachineFeaturesBuilder_ == null) { + advancedMachineFeatures_ = null; + } else { + advancedMachineFeatures_ = null; + advancedMachineFeaturesBuilder_ = null; + } + if (gvnicBuilder_ == null) { + gvnic_ = null; + } else { + gvnic_ = null; + gvnicBuilder_ = null; + } + spot_ = false; + + if (confidentialNodesBuilder_ == null) { + confidentialNodes_ = null; + } else { + confidentialNodes_ = null; + confidentialNodesBuilder_ = null; + } + internalGetMutableResourceLabels().clear(); + if (loggingConfigBuilder_ == null) { + loggingConfig_ = null; + } else { + loggingConfig_ = null; + 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_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); + int from_bitField0_ = bitField0_; + result.machineType_ = machineType_; + result.diskSizeGb_ = diskSizeGb_; + if (((bitField0_ & 0x00000001) != 0)) { + oauthScopes_ = oauthScopes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.oauthScopes_ = oauthScopes_; + result.serviceAccount_ = serviceAccount_; + result.metadata_ = internalGetMetadata(); + result.metadata_.makeImmutable(); + result.imageType_ = imageType_; + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + result.localSsdCount_ = localSsdCount_; + if (((bitField0_ & 0x00000008) != 0)) { + tags_ = tags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.tags_ = tags_; + result.preemptible_ = preemptible_; + if (acceleratorsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + accelerators_ = java.util.Collections.unmodifiableList(accelerators_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.accelerators_ = accelerators_; + } else { + result.accelerators_ = acceleratorsBuilder_.build(); + } + result.diskType_ = diskType_; + result.minCpuPlatform_ = minCpuPlatform_; + if (workloadMetadataConfigBuilder_ == null) { + result.workloadMetadataConfig_ = workloadMetadataConfig_; + } else { + result.workloadMetadataConfig_ = workloadMetadataConfigBuilder_.build(); + } + if (taintsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + taints_ = java.util.Collections.unmodifiableList(taints_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.taints_ = taints_; + } else { + result.taints_ = taintsBuilder_.build(); + } + if (sandboxConfigBuilder_ == null) { + result.sandboxConfig_ = sandboxConfig_; + } else { + result.sandboxConfig_ = sandboxConfigBuilder_.build(); + } + result.nodeGroup_ = nodeGroup_; + if (reservationAffinityBuilder_ == null) { + result.reservationAffinity_ = reservationAffinity_; + } else { + result.reservationAffinity_ = reservationAffinityBuilder_.build(); + } + if (shieldedInstanceConfigBuilder_ == null) { + result.shieldedInstanceConfig_ = shieldedInstanceConfig_; + } else { + result.shieldedInstanceConfig_ = shieldedInstanceConfigBuilder_.build(); + } + if (linuxNodeConfigBuilder_ == null) { + result.linuxNodeConfig_ = linuxNodeConfig_; + } else { + result.linuxNodeConfig_ = linuxNodeConfigBuilder_.build(); + } + if (kubeletConfigBuilder_ == null) { + result.kubeletConfig_ = kubeletConfig_; + } else { + result.kubeletConfig_ = kubeletConfigBuilder_.build(); + } + result.bootDiskKmsKey_ = bootDiskKmsKey_; + if (gcfsConfigBuilder_ == null) { + result.gcfsConfig_ = gcfsConfig_; + } else { + result.gcfsConfig_ = gcfsConfigBuilder_.build(); + } + if (advancedMachineFeaturesBuilder_ == null) { + result.advancedMachineFeatures_ = advancedMachineFeatures_; + } else { + result.advancedMachineFeatures_ = advancedMachineFeaturesBuilder_.build(); + } + if (gvnicBuilder_ == null) { + result.gvnic_ = gvnic_; + } else { + result.gvnic_ = gvnicBuilder_.build(); + } + result.spot_ = spot_; + if (confidentialNodesBuilder_ == null) { + result.confidentialNodes_ = confidentialNodes_; + } else { + result.confidentialNodes_ = confidentialNodesBuilder_.build(); + } + result.resourceLabels_ = internalGetResourceLabels(); + result.resourceLabels_.makeImmutable(); + if (loggingConfigBuilder_ == null) { + result.loggingConfig_ = loggingConfig_; + } else { + result.loggingConfig_ = loggingConfigBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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_; + onChanged(); + } + if (other.getDiskSizeGb() != 0) { + setDiskSizeGb(other.getDiskSizeGb()); + } + if (!other.oauthScopes_.isEmpty()) { + if (oauthScopes_.isEmpty()) { + oauthScopes_ = other.oauthScopes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOauthScopesIsMutable(); + oauthScopes_.addAll(other.oauthScopes_); + } + onChanged(); + } + if (!other.getServiceAccount().isEmpty()) { + serviceAccount_ = other.serviceAccount_; + onChanged(); + } + internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); + if (!other.getImageType().isEmpty()) { + imageType_ = other.imageType_; + onChanged(); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + if (other.getLocalSsdCount() != 0) { + setLocalSsdCount(other.getLocalSsdCount()); + } + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + onChanged(); + } + if (other.getPreemptible() != false) { + setPreemptible(other.getPreemptible()); + } + if (acceleratorsBuilder_ == null) { + if (!other.accelerators_.isEmpty()) { + if (accelerators_.isEmpty()) { + accelerators_ = other.accelerators_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureAcceleratorsIsMutable(); + accelerators_.addAll(other.accelerators_); + } + onChanged(); + } + } else { + if (!other.accelerators_.isEmpty()) { + if (acceleratorsBuilder_.isEmpty()) { + acceleratorsBuilder_.dispose(); + acceleratorsBuilder_ = null; + accelerators_ = other.accelerators_; + bitField0_ = (bitField0_ & ~0x00000010); + acceleratorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAcceleratorsFieldBuilder() + : null; + } else { + acceleratorsBuilder_.addAllMessages(other.accelerators_); + } + } + } + if (!other.getDiskType().isEmpty()) { + diskType_ = other.diskType_; + onChanged(); + } + if (!other.getMinCpuPlatform().isEmpty()) { + minCpuPlatform_ = other.minCpuPlatform_; + onChanged(); + } + if (other.hasWorkloadMetadataConfig()) { + mergeWorkloadMetadataConfig(other.getWorkloadMetadataConfig()); + } + if (taintsBuilder_ == null) { + if (!other.taints_.isEmpty()) { + if (taints_.isEmpty()) { + taints_ = other.taints_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureTaintsIsMutable(); + taints_.addAll(other.taints_); + } + onChanged(); + } + } else { + if (!other.taints_.isEmpty()) { + if (taintsBuilder_.isEmpty()) { + taintsBuilder_.dispose(); + taintsBuilder_ = null; + taints_ = other.taints_; + bitField0_ = (bitField0_ & ~0x00000020); + taintsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTaintsFieldBuilder() + : null; + } else { + taintsBuilder_.addAllMessages(other.taints_); + } + } + } + if (other.hasSandboxConfig()) { + mergeSandboxConfig(other.getSandboxConfig()); + } + if (!other.getNodeGroup().isEmpty()) { + nodeGroup_ = other.nodeGroup_; + onChanged(); + } + if (other.hasReservationAffinity()) { + mergeReservationAffinity(other.getReservationAffinity()); + } + if (other.hasShieldedInstanceConfig()) { + mergeShieldedInstanceConfig(other.getShieldedInstanceConfig()); + } + if (other.hasLinuxNodeConfig()) { + mergeLinuxNodeConfig(other.getLinuxNodeConfig()); + } + if (other.hasKubeletConfig()) { + mergeKubeletConfig(other.getKubeletConfig()); + } + if (!other.getBootDiskKmsKey().isEmpty()) { + bootDiskKmsKey_ = other.bootDiskKmsKey_; + onChanged(); + } + if (other.hasGcfsConfig()) { + mergeGcfsConfig(other.getGcfsConfig()); + } + if (other.hasAdvancedMachineFeatures()) { + mergeAdvancedMachineFeatures(other.getAdvancedMachineFeatures()); + } + if (other.hasGvnic()) { + mergeGvnic(other.getGvnic()); + } + if (other.getSpot() != false) { + setSpot(other.getSpot()); + } + if (other.hasConfidentialNodes()) { + mergeConfidentialNodes(other.getConfidentialNodes()); + } + internalGetMutableResourceLabels().mergeFrom(other.internalGetResourceLabels()); + 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: + { + machineType_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + diskSizeGb_ = input.readInt32(); + + 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()); + break; + } // case 34 + case 42: + { + imageType_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 50 + case 56: + { + localSsdCount_ = input.readInt32(); + + break; + } // case 56 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagsIsMutable(); + tags_.add(s); + break; + } // case 66 + case 74: + { + serviceAccount_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 80: + { + preemptible_ = input.readBool(); + + 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(); + + break; + } // case 98 + case 106: + { + minCpuPlatform_ = input.readStringRequireUtf8(); + + break; + } // case 106 + case 114: + { + input.readMessage( + getWorkloadMetadataConfigFieldBuilder().getBuilder(), extensionRegistry); + + 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); + + break; + } // case 138 + case 146: + { + nodeGroup_ = input.readStringRequireUtf8(); + + break; + } // case 146 + case 154: + { + input.readMessage( + getReservationAffinityFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 154 + case 162: + { + input.readMessage( + getShieldedInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 162 + case 170: + { + input.readMessage(getLinuxNodeConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 170 + case 178: + { + input.readMessage(getKubeletConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 178 + case 186: + { + bootDiskKmsKey_ = input.readStringRequireUtf8(); + + break; + } // case 186 + case 202: + { + input.readMessage(getGcfsConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 202 + case 210: + { + input.readMessage( + getAdvancedMachineFeaturesFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 210 + case 234: + { + input.readMessage(getGvnicFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 234 + case 256: + { + spot_ = input.readBool(); + + break; + } // case 256 + case 282: + { + input.readMessage( + getConfidentialNodesFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 282 + case 298: + { + com.google.protobuf.MapEntry resourceLabels__ = + input.readMessage( + ResourceLabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableResourceLabels() + .getMutableMap() + .put(resourceLabels__.getKey(), resourceLabels__.getValue()); + break; + } // case 298 + case 306: + { + input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 306 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // 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 machineType_ = ""; + /** + * + * + *
+     * The name of a Google Compute Engine [machine
+     * type](https://cloud.google.com/compute/docs/machine-types)
+     * If unspecified, the default machine type is `e2-medium`.
+     * 
+ * + * string machine_type = 1; + * + * @return The machineType. + */ + public java.lang.String getMachineType() { + java.lang.Object ref = machineType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + machineType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of a Google Compute Engine [machine
+     * type](https://cloud.google.com/compute/docs/machine-types)
+     * If unspecified, the default machine type is `e2-medium`.
+     * 
+ * + * string machine_type = 1; + * + * @return The bytes for machineType. + */ + public com.google.protobuf.ByteString getMachineTypeBytes() { + java.lang.Object ref = machineType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + machineType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of a Google Compute Engine [machine
+     * type](https://cloud.google.com/compute/docs/machine-types)
+     * If unspecified, the default machine type is `e2-medium`.
+     * 
+ * + * string machine_type = 1; + * + * @param value The machineType to set. + * @return This builder for chaining. + */ + public Builder setMachineType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + machineType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of a Google Compute Engine [machine
+     * type](https://cloud.google.com/compute/docs/machine-types)
+     * If unspecified, the default machine type is `e2-medium`.
+     * 
+ * + * string machine_type = 1; + * + * @return This builder for chaining. + */ + public Builder clearMachineType() { + + machineType_ = getDefaultInstance().getMachineType(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of a Google Compute Engine [machine
+     * type](https://cloud.google.com/compute/docs/machine-types)
+     * If unspecified, the default machine type is `e2-medium`.
+     * 
+ * + * string machine_type = 1; + * + * @param value The bytes for machineType to set. + * @return This builder for chaining. + */ + public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + machineType_ = value; + onChanged(); + return this; + } + + private int diskSizeGb_; + /** + * + * + *
+     * Size of the disk attached to each node, specified in GB.
+     * The smallest allowed disk size is 10GB.
+     * If unspecified, the default disk size is 100GB.
+     * 
+ * + * int32 disk_size_gb = 2; + * + * @return The diskSizeGb. + */ + @java.lang.Override + public int getDiskSizeGb() { + return diskSizeGb_; + } + /** + * + * + *
+     * Size of the disk attached to each node, specified in GB.
+     * The smallest allowed disk size is 10GB.
+     * If unspecified, the default disk size is 100GB.
+     * 
+ * + * int32 disk_size_gb = 2; + * + * @param value The diskSizeGb to set. + * @return This builder for chaining. + */ + public Builder setDiskSizeGb(int value) { + + diskSizeGb_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Size of the disk attached to each node, specified in GB.
+     * The smallest allowed disk size is 10GB.
+     * If unspecified, the default disk size is 100GB.
+     * 
+ * + * int32 disk_size_gb = 2; + * + * @return This builder for chaining. + */ + public Builder clearDiskSizeGb() { + + diskSizeGb_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList oauthScopes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureOauthScopesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + oauthScopes_ = new com.google.protobuf.LazyStringArrayList(oauthScopes_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + * + * @return A list containing the oauthScopes. + */ + public com.google.protobuf.ProtocolStringList getOauthScopesList() { + return oauthScopes_.getUnmodifiableView(); + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + * + * @return The count of oauthScopes. + */ + public int getOauthScopesCount() { + return oauthScopes_.size(); + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + * + * @param index The index of the element to return. + * @return The oauthScopes at the given index. + */ + public java.lang.String getOauthScopes(int index) { + return oauthScopes_.get(index); + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + * + * @param index The index of the value to return. + * @return The bytes of the oauthScopes at the given index. + */ + public com.google.protobuf.ByteString getOauthScopesBytes(int index) { + return oauthScopes_.getByteString(index); + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + * + * @param index The index to set the value at. + * @param value The oauthScopes to set. + * @return This builder for chaining. + */ + public Builder setOauthScopes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOauthScopesIsMutable(); + oauthScopes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + * + * @param value The oauthScopes to add. + * @return This builder for chaining. + */ + public Builder addOauthScopes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOauthScopesIsMutable(); + oauthScopes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + * + * @param values The oauthScopes to add. + * @return This builder for chaining. + */ + public Builder addAllOauthScopes(java.lang.Iterable values) { + ensureOauthScopesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, oauthScopes_); + onChanged(); + return this; + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + * + * @return This builder for chaining. + */ + public Builder clearOauthScopes() { + oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + * + * @param value The bytes of the oauthScopes to add. + * @return This builder for chaining. + */ + public Builder addOauthScopesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureOauthScopesIsMutable(); + oauthScopes_.add(value); + onChanged(); + return this; + } + + private java.lang.Object serviceAccount_ = ""; + /** + * + * + *
+     * The Google Cloud Platform Service Account to be used by the node VMs.
+     * Specify the email address of the Service Account; otherwise, if no Service
+     * Account is specified, the "default" service account is used.
+     * 
+ * + * string service_account = 9; + * + * @return The serviceAccount. + */ + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The Google Cloud Platform Service Account to be used by the node VMs.
+     * Specify the email address of the Service Account; otherwise, if no Service
+     * Account is specified, the "default" service account is used.
+     * 
+ * + * string service_account = 9; + * + * @return The bytes for serviceAccount. + */ + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The Google Cloud Platform Service Account to be used by the node VMs.
+     * Specify the email address of the Service Account; otherwise, if no Service
+     * Account is specified, the "default" service account is used.
+     * 
+ * + * string service_account = 9; + * + * @param value The serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceAccount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The Google Cloud Platform Service Account to be used by the node VMs.
+     * Specify the email address of the Service Account; otherwise, if no Service
+     * Account is specified, the "default" service account is used.
+     * 
+ * + * string service_account = 9; + * + * @return This builder for chaining. + */ + public Builder clearServiceAccount() { + + serviceAccount_ = getDefaultInstance().getServiceAccount(); + onChanged(); + return this; + } + /** + * + * + *
+     * The Google Cloud Platform Service Account to be used by the node VMs.
+     * Specify the email address of the Service Account; otherwise, if no Service
+     * Account is specified, the "default" service account is used.
+     * 
+ * + * string service_account = 9; + * + * @param value The bytes for serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serviceAccount_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField metadata_; + + private com.google.protobuf.MapField internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + + private com.google.protobuf.MapField + internalGetMutableMetadata() { + onChanged(); + ; + if (metadata_ == null) { + metadata_ = + com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry); + } + if (!metadata_.isMutable()) { + metadata_ = metadata_.copy(); + } + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + * + * + *
+     * The metadata key/value pairs assigned to instances in the cluster.
+     * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
+     * in length. These are reflected as part of a URL in the metadata server.
+     * Additionally, to avoid ambiguity, keys must not conflict with any other
+     * metadata keys for the project or be one of the reserved keys:
+     *  - "cluster-location"
+     *  - "cluster-name"
+     *  - "cluster-uid"
+     *  - "configure-sh"
+     *  - "containerd-configure-sh"
+     *  - "enable-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 java.lang.String getMetadataOrDefault( + java.lang.String key, 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() { + 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() { + 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); + 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); + return this; + } + + private java.lang.Object imageType_ = ""; + /** + * + * + *
+     * The image type to use for this node. Note that for a given image type,
+     * the latest version of it will be used.
+     * 
+ * + * string image_type = 5; + * + * @return The imageType. + */ + public java.lang.String getImageType() { + java.lang.Object ref = imageType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The image type to use for this node. Note that for a given image type,
+     * the latest version of it will be used.
+     * 
+ * + * string image_type = 5; + * + * @return The bytes for imageType. + */ + public com.google.protobuf.ByteString getImageTypeBytes() { + java.lang.Object ref = imageType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The image type to use for this node. Note that for a given image type,
+     * the latest version of it will be used.
+     * 
+ * + * string image_type = 5; + * + * @param value The imageType to set. + * @return This builder for chaining. + */ + public Builder setImageType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + imageType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The image type to use for this node. Note that for a given image type,
+     * the latest version of it will be used.
+     * 
+ * + * string image_type = 5; + * + * @return This builder for chaining. + */ + public Builder clearImageType() { + + imageType_ = getDefaultInstance().getImageType(); + onChanged(); + return this; + } + /** + * + * + *
+     * The image type to use for this node. Note that for a given image type,
+     * the latest version of it will be used.
+     * 
+ * + * string image_type = 5; + * + * @param value The bytes for imageType to set. + * @return This builder for chaining. + */ + public Builder setImageTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + imageType_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged(); + ; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+     * These will added in addition to any default label(s) that
+     * Kubernetes may apply to the node.
+     * In case of conflict in label keys, the applied set may differ depending on
+     * the Kubernetes version -- it's best to assume the behavior is undefined
+     * and conflicts should be avoided.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+     * 
+ * + * map<string, string> labels = 6; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new 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 java.lang.String getLabelsOrDefault( + java.lang.String key, 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() { + 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() { + 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); + return this; + } + /** + * + * + *
+     * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+     * These will added in addition to any default label(s) that
+     * Kubernetes may apply to the node.
+     * In case of conflict in label keys, the applied set may differ depending on
+     * the Kubernetes version -- it's best to assume the behavior is undefined
+     * and conflicts should be avoided.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+     * 
+ * + * map<string, string> labels = 6; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + return this; + } + + private int localSsdCount_; + /** + * + * + *
+     * The number of local SSD disks to be attached to the node.
+     * The limit for this value is dependent upon the maximum number of
+     * disks available on a machine per zone. See:
+     * https://cloud.google.com/compute/docs/disks/local-ssd
+     * for more information.
+     * 
+ * + * int32 local_ssd_count = 7; + * + * @return The localSsdCount. + */ + @java.lang.Override + public int getLocalSsdCount() { + return localSsdCount_; + } + /** + * + * + *
+     * The number of local SSD disks to be attached to the node.
+     * The limit for this value is dependent upon the maximum number of
+     * disks available on a machine per zone. See:
+     * https://cloud.google.com/compute/docs/disks/local-ssd
+     * for more information.
+     * 
+ * + * int32 local_ssd_count = 7; + * + * @param value The localSsdCount to set. + * @return This builder for chaining. + */ + public Builder setLocalSsdCount(int value) { + + localSsdCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of local SSD disks to be attached to the node.
+     * The limit for this value is dependent upon the maximum number of
+     * disks available on a machine per zone. See:
+     * https://cloud.google.com/compute/docs/disks/local-ssd
+     * for more information.
+     * 
+ * + * int32 local_ssd_count = 7; + * + * @return This builder for chaining. + */ + public Builder clearLocalSsdCount() { + + localSsdCount_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList tags_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureTagsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + bitField0_ |= 0x00000008; + } + } + /** + * + * + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * + * @return A list containing the tags. + */ + public com.google.protobuf.ProtocolStringList getTagsList() { + return tags_.getUnmodifiableView(); + } + /** + * + * + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * + * @return The count of tags. + */ + public int getTagsCount() { + return tags_.size(); + } + /** + * + * + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * + * @param index The index of the element to return. + * @return The tags at the given index. + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + * + * + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + public com.google.protobuf.ByteString getTagsBytes(int index) { + return tags_.getByteString(index); + } + /** + * + * + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * + * @param index The index to set the value at. + * @param value The tags to set. + * @return This builder for chaining. + */ + public Builder setTags(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * + * @param value The tags to add. + * @return This builder for chaining. + */ + public Builder addTags(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * + * @param values The tags to add. + * @return This builder for chaining. + */ + public Builder addAllTags(java.lang.Iterable values) { + ensureTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * + * @return This builder for chaining. + */ + public Builder clearTags() { + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * + * @param value The bytes of the tags to add. + * @return This builder for chaining. + */ + public Builder addTagsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + + private boolean preemptible_; + /** + * + * + *
+     * Whether the nodes are created as preemptible VM instances. See:
+     * https://cloud.google.com/compute/docs/instances/preemptible for more
+     * 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; + 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() { + + preemptible_ = false; + onChanged(); + return this; + } + + private java.util.List accelerators_ = + java.util.Collections.emptyList(); + + private void ensureAcceleratorsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + accelerators_ = + new java.util.ArrayList(accelerators_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.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_ & ~0x00000010); + onChanged(); + } else { + acceleratorsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.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_ & 0x00000010) != 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 12; + * + * @return This builder for chaining. + */ + public Builder clearDiskType() { + + diskType_ = getDefaultInstance().getDiskType(); + onChanged(); + return this; + } + /** + * + * + *
+     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 12; + * + * @param value The bytes for diskType to set. + * @return This builder for chaining. + */ + public Builder setDiskTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + diskType_ = value; + onChanged(); + return this; + } + + private java.lang.Object minCpuPlatform_ = ""; + /** + * + * + *
+     * Minimum CPU platform to be used by this instance. The instance may be
+     * scheduled on the specified or newer CPU platform. Applicable values are the
+     * friendly names of CPU platforms, such as
+     * `minCpuPlatform: "Intel Haswell"` or
+     * `minCpuPlatform: "Intel Sandy Bridge"`. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+     * 
+ * + * string min_cpu_platform = 13; + * + * @return The minCpuPlatform. + */ + public java.lang.String getMinCpuPlatform() { + java.lang.Object ref = minCpuPlatform_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + minCpuPlatform_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Minimum CPU platform to be used by this instance. The instance may be
+     * scheduled on the specified or newer CPU platform. Applicable values are the
+     * friendly names of CPU platforms, such as
+     * `minCpuPlatform: "Intel Haswell"` or
+     * `minCpuPlatform: "Intel Sandy Bridge"`. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+     * 
+ * + * string min_cpu_platform = 13; + * + * @return The bytes for minCpuPlatform. + */ + public com.google.protobuf.ByteString getMinCpuPlatformBytes() { + java.lang.Object ref = minCpuPlatform_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + minCpuPlatform_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Minimum CPU platform to be used by this instance. The instance may be
+     * scheduled on the specified or newer CPU platform. Applicable values are the
+     * friendly names of CPU platforms, such as
+     * `minCpuPlatform: "Intel Haswell"` or
+     * `minCpuPlatform: "Intel Sandy Bridge"`. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+     * 
+ * + * string min_cpu_platform = 13; + * + * @param value The minCpuPlatform to set. + * @return This builder for chaining. + */ + public Builder setMinCpuPlatform(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + minCpuPlatform_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Minimum CPU platform to be used by this instance. The instance may be
+     * scheduled on the specified or newer CPU platform. Applicable values are the
+     * friendly names of CPU platforms, such as
+     * `minCpuPlatform: "Intel Haswell"` or
+     * `minCpuPlatform: "Intel Sandy Bridge"`. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+     * 
+ * + * string min_cpu_platform = 13; + * + * @return This builder for chaining. + */ + public Builder clearMinCpuPlatform() { + + minCpuPlatform_ = getDefaultInstance().getMinCpuPlatform(); + onChanged(); + return this; + } + /** + * + * + *
+     * Minimum CPU platform to be used by this instance. The instance may be
+     * scheduled on the specified or newer CPU platform. Applicable values are the
+     * friendly names of CPU platforms, such as
+     * `minCpuPlatform: "Intel Haswell"` or
+     * `minCpuPlatform: "Intel Sandy Bridge"`. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+     * 
+ * + * string min_cpu_platform = 13; + * + * @param value The bytes for minCpuPlatform to set. + * @return This builder for chaining. + */ + public Builder setMinCpuPlatformBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + minCpuPlatform_ = value; + onChanged(); + return this; + } + + private com.google.container.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 workloadMetadataConfigBuilder_ != null || workloadMetadataConfig_ != null; + } + /** + * + * + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return The workloadMetadataConfig. + */ + public com.google.container.v1.WorkloadMetadataConfig getWorkloadMetadataConfig() { + if (workloadMetadataConfigBuilder_ == null) { + return workloadMetadataConfig_ == null + ? com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() + : workloadMetadataConfig_; + } else { + return workloadMetadataConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder setWorkloadMetadataConfig(com.google.container.v1.WorkloadMetadataConfig value) { + if (workloadMetadataConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workloadMetadataConfig_ = value; + onChanged(); + } else { + workloadMetadataConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder setWorkloadMetadataConfig( + com.google.container.v1.WorkloadMetadataConfig.Builder builderForValue) { + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfig_ = builderForValue.build(); + onChanged(); + } else { + workloadMetadataConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder mergeWorkloadMetadataConfig( + com.google.container.v1.WorkloadMetadataConfig value) { + if (workloadMetadataConfigBuilder_ == null) { + if (workloadMetadataConfig_ != null) { + workloadMetadataConfig_ = + com.google.container.v1.WorkloadMetadataConfig.newBuilder(workloadMetadataConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + workloadMetadataConfig_ = value; + } + onChanged(); + } else { + workloadMetadataConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder clearWorkloadMetadataConfig() { + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfig_ = null; + onChanged(); + } else { + workloadMetadataConfig_ = null; + workloadMetadataConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public com.google.container.v1.WorkloadMetadataConfig.Builder + getWorkloadMetadataConfigBuilder() { + + onChanged(); + return getWorkloadMetadataConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public com.google.container.v1.WorkloadMetadataConfigOrBuilder + getWorkloadMetadataConfigOrBuilder() { + if (workloadMetadataConfigBuilder_ != null) { + return workloadMetadataConfigBuilder_.getMessageOrBuilder(); + } else { + return workloadMetadataConfig_ == null + ? com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() + : workloadMetadataConfig_; + } + } + /** + * + * + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadMetadataConfig, + com.google.container.v1.WorkloadMetadataConfig.Builder, + com.google.container.v1.WorkloadMetadataConfigOrBuilder> + getWorkloadMetadataConfigFieldBuilder() { + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadMetadataConfig, + com.google.container.v1.WorkloadMetadataConfig.Builder, + com.google.container.v1.WorkloadMetadataConfigOrBuilder>( + getWorkloadMetadataConfig(), getParentForChildren(), isClean()); + workloadMetadataConfig_ = null; + } + return workloadMetadataConfigBuilder_; + } + + private java.util.List taints_ = + java.util.Collections.emptyList(); + + private void ensureTaintsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + taints_ = new java.util.ArrayList(taints_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.NodeTaint, + com.google.container.v1.NodeTaint.Builder, + com.google.container.v1.NodeTaintOrBuilder> + taintsBuilder_; + + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1.NodeTaint taints = 15; + */ + public java.util.List getTaintsList() { + if (taintsBuilder_ == null) { + return java.util.Collections.unmodifiableList(taints_); + } else { + 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_ & ~0x00000020); + onChanged(); + } else { + taintsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.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_ & 0x00000020) != 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 sandboxConfigBuilder_ != null || sandboxConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + sandboxConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + sandboxConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (sandboxConfig_ != null) { + sandboxConfig_ = + com.google.container.v1.SandboxConfig.newBuilder(sandboxConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + sandboxConfig_ = value; + } + onChanged(); + } else { + sandboxConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Sandbox configuration for this node.
+     * 
+ * + * .google.container.v1.SandboxConfig sandbox_config = 17; + */ + public Builder clearSandboxConfig() { + if (sandboxConfigBuilder_ == null) { + sandboxConfig_ = null; + onChanged(); + } else { + sandboxConfig_ = null; + sandboxConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Sandbox configuration for this node.
+     * 
+ * + * .google.container.v1.SandboxConfig sandbox_config = 17; + */ + public com.google.container.v1.SandboxConfig.Builder getSandboxConfigBuilder() { + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Setting this field will assign instances of this
+     * pool to run on the specified node group. This is useful for running
+     * workloads on [sole tenant
+     * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
+     * 
+ * + * string node_group = 18; + * + * @return This builder for chaining. + */ + public Builder clearNodeGroup() { + + nodeGroup_ = getDefaultInstance().getNodeGroup(); + onChanged(); + return this; + } + /** + * + * + *
+     * Setting this field will assign instances of this
+     * pool to run on the specified node group. This is useful for running
+     * workloads on [sole tenant
+     * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
+     * 
+ * + * string node_group = 18; + * + * @param value The bytes for nodeGroup to set. + * @return This builder for chaining. + */ + public Builder setNodeGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeGroup_ = value; + onChanged(); + return this; + } + + private com.google.container.v1.ReservationAffinity reservationAffinity_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ReservationAffinity, + com.google.container.v1.ReservationAffinity.Builder, + com.google.container.v1.ReservationAffinityOrBuilder> + reservationAffinityBuilder_; + /** + * + * + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + * + * @return Whether the reservationAffinity field is set. + */ + public boolean hasReservationAffinity() { + return reservationAffinityBuilder_ != null || reservationAffinity_ != null; + } + /** + * + * + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + * + * @return The reservationAffinity. + */ + public com.google.container.v1.ReservationAffinity getReservationAffinity() { + if (reservationAffinityBuilder_ == null) { + return reservationAffinity_ == null + ? com.google.container.v1.ReservationAffinity.getDefaultInstance() + : reservationAffinity_; + } else { + return reservationAffinityBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + */ + public Builder setReservationAffinity(com.google.container.v1.ReservationAffinity value) { + if (reservationAffinityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reservationAffinity_ = value; + onChanged(); + } else { + reservationAffinityBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + */ + public Builder setReservationAffinity( + com.google.container.v1.ReservationAffinity.Builder builderForValue) { + if (reservationAffinityBuilder_ == null) { + reservationAffinity_ = builderForValue.build(); + onChanged(); + } else { + reservationAffinityBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + */ + public Builder mergeReservationAffinity(com.google.container.v1.ReservationAffinity value) { + if (reservationAffinityBuilder_ == null) { + if (reservationAffinity_ != null) { + reservationAffinity_ = + com.google.container.v1.ReservationAffinity.newBuilder(reservationAffinity_) + .mergeFrom(value) + .buildPartial(); + } else { + reservationAffinity_ = value; + } + onChanged(); + } else { + reservationAffinityBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + */ + public Builder clearReservationAffinity() { + if (reservationAffinityBuilder_ == null) { + reservationAffinity_ = null; + onChanged(); + } else { + reservationAffinity_ = null; + reservationAffinityBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + */ + public com.google.container.v1.ReservationAffinity.Builder getReservationAffinityBuilder() { + + onChanged(); + return getReservationAffinityFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + */ + public com.google.container.v1.ReservationAffinityOrBuilder getReservationAffinityOrBuilder() { + if (reservationAffinityBuilder_ != null) { + return reservationAffinityBuilder_.getMessageOrBuilder(); + } else { + return reservationAffinity_ == null + ? com.google.container.v1.ReservationAffinity.getDefaultInstance() + : reservationAffinity_; + } + } + /** + * + * + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ReservationAffinity, + com.google.container.v1.ReservationAffinity.Builder, + com.google.container.v1.ReservationAffinityOrBuilder> + getReservationAffinityFieldBuilder() { + if (reservationAffinityBuilder_ == null) { + reservationAffinityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ReservationAffinity, + com.google.container.v1.ReservationAffinity.Builder, + com.google.container.v1.ReservationAffinityOrBuilder>( + getReservationAffinity(), getParentForChildren(), isClean()); + reservationAffinity_ = null; + } + return reservationAffinityBuilder_; + } + + private com.google.container.v1.ShieldedInstanceConfig shieldedInstanceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ShieldedInstanceConfig, + com.google.container.v1.ShieldedInstanceConfig.Builder, + com.google.container.v1.ShieldedInstanceConfigOrBuilder> + shieldedInstanceConfigBuilder_; + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + * + * @return Whether the shieldedInstanceConfig field is set. + */ + public boolean hasShieldedInstanceConfig() { + return shieldedInstanceConfigBuilder_ != null || shieldedInstanceConfig_ != null; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + * + * @return The shieldedInstanceConfig. + */ + public com.google.container.v1.ShieldedInstanceConfig getShieldedInstanceConfig() { + if (shieldedInstanceConfigBuilder_ == null) { + return shieldedInstanceConfig_ == null + ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; + } else { + return shieldedInstanceConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + public Builder setShieldedInstanceConfig(com.google.container.v1.ShieldedInstanceConfig value) { + if (shieldedInstanceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + shieldedInstanceConfig_ = value; + onChanged(); + } else { + shieldedInstanceConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + public Builder setShieldedInstanceConfig( + com.google.container.v1.ShieldedInstanceConfig.Builder builderForValue) { + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfig_ = builderForValue.build(); + onChanged(); + } else { + shieldedInstanceConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + public Builder mergeShieldedInstanceConfig( + com.google.container.v1.ShieldedInstanceConfig value) { + if (shieldedInstanceConfigBuilder_ == null) { + if (shieldedInstanceConfig_ != null) { + shieldedInstanceConfig_ = + com.google.container.v1.ShieldedInstanceConfig.newBuilder(shieldedInstanceConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + shieldedInstanceConfig_ = value; + } + onChanged(); + } else { + shieldedInstanceConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + public Builder clearShieldedInstanceConfig() { + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfig_ = null; + onChanged(); + } else { + shieldedInstanceConfig_ = null; + shieldedInstanceConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + public com.google.container.v1.ShieldedInstanceConfig.Builder + getShieldedInstanceConfigBuilder() { + + onChanged(); + return getShieldedInstanceConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + public com.google.container.v1.ShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { + if (shieldedInstanceConfigBuilder_ != null) { + return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); + } else { + return shieldedInstanceConfig_ == null + ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; + } + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ShieldedInstanceConfig, + com.google.container.v1.ShieldedInstanceConfig.Builder, + com.google.container.v1.ShieldedInstanceConfigOrBuilder> + getShieldedInstanceConfigFieldBuilder() { + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ShieldedInstanceConfig, + com.google.container.v1.ShieldedInstanceConfig.Builder, + com.google.container.v1.ShieldedInstanceConfigOrBuilder>( + getShieldedInstanceConfig(), getParentForChildren(), isClean()); + shieldedInstanceConfig_ = null; + } + return shieldedInstanceConfigBuilder_; + } + + private 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 linuxNodeConfigBuilder_ != null || linuxNodeConfig_ != null; + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + * + * @return The linuxNodeConfig. + */ + public com.google.container.v1.LinuxNodeConfig getLinuxNodeConfig() { + if (linuxNodeConfigBuilder_ == null) { + return linuxNodeConfig_ == null + ? com.google.container.v1.LinuxNodeConfig.getDefaultInstance() + : linuxNodeConfig_; + } else { + return linuxNodeConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + */ + public Builder setLinuxNodeConfig(com.google.container.v1.LinuxNodeConfig value) { + if (linuxNodeConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + linuxNodeConfig_ = value; + onChanged(); + } else { + linuxNodeConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + */ + public Builder setLinuxNodeConfig( + com.google.container.v1.LinuxNodeConfig.Builder builderForValue) { + if (linuxNodeConfigBuilder_ == null) { + linuxNodeConfig_ = builderForValue.build(); + onChanged(); + } else { + linuxNodeConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + */ + public Builder mergeLinuxNodeConfig(com.google.container.v1.LinuxNodeConfig value) { + if (linuxNodeConfigBuilder_ == null) { + if (linuxNodeConfig_ != null) { + linuxNodeConfig_ = + com.google.container.v1.LinuxNodeConfig.newBuilder(linuxNodeConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + linuxNodeConfig_ = value; + } + onChanged(); + } else { + linuxNodeConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + */ + public Builder clearLinuxNodeConfig() { + if (linuxNodeConfigBuilder_ == null) { + linuxNodeConfig_ = null; + onChanged(); + } else { + linuxNodeConfig_ = null; + linuxNodeConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + */ + public com.google.container.v1.LinuxNodeConfig.Builder getLinuxNodeConfigBuilder() { + + onChanged(); + return getLinuxNodeConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + */ + public com.google.container.v1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder() { + if (linuxNodeConfigBuilder_ != null) { + return linuxNodeConfigBuilder_.getMessageOrBuilder(); + } else { + return linuxNodeConfig_ == null + ? com.google.container.v1.LinuxNodeConfig.getDefaultInstance() + : linuxNodeConfig_; + } + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LinuxNodeConfig, + com.google.container.v1.LinuxNodeConfig.Builder, + com.google.container.v1.LinuxNodeConfigOrBuilder> + getLinuxNodeConfigFieldBuilder() { + if (linuxNodeConfigBuilder_ == null) { + linuxNodeConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LinuxNodeConfig, + com.google.container.v1.LinuxNodeConfig.Builder, + com.google.container.v1.LinuxNodeConfigOrBuilder>( + getLinuxNodeConfig(), getParentForChildren(), isClean()); + linuxNodeConfig_ = null; + } + return linuxNodeConfigBuilder_; + } + + private com.google.container.v1.NodeKubeletConfig kubeletConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeKubeletConfig, + com.google.container.v1.NodeKubeletConfig.Builder, + com.google.container.v1.NodeKubeletConfigOrBuilder> + kubeletConfigBuilder_; + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + * + * @return Whether the kubeletConfig field is set. + */ + public boolean hasKubeletConfig() { + return kubeletConfigBuilder_ != null || kubeletConfig_ != null; + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + * + * @return The kubeletConfig. + */ + public com.google.container.v1.NodeKubeletConfig getKubeletConfig() { + if (kubeletConfigBuilder_ == null) { + return kubeletConfig_ == null + ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() + : kubeletConfig_; + } else { + return kubeletConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + */ + public Builder setKubeletConfig(com.google.container.v1.NodeKubeletConfig value) { + if (kubeletConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kubeletConfig_ = value; + onChanged(); + } else { + kubeletConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + */ + public Builder setKubeletConfig( + com.google.container.v1.NodeKubeletConfig.Builder builderForValue) { + if (kubeletConfigBuilder_ == null) { + kubeletConfig_ = builderForValue.build(); + onChanged(); + } else { + kubeletConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + */ + public Builder mergeKubeletConfig(com.google.container.v1.NodeKubeletConfig value) { + if (kubeletConfigBuilder_ == null) { + if (kubeletConfig_ != null) { + kubeletConfig_ = + com.google.container.v1.NodeKubeletConfig.newBuilder(kubeletConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + kubeletConfig_ = value; + } + onChanged(); + } else { + kubeletConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + */ + public Builder clearKubeletConfig() { + if (kubeletConfigBuilder_ == null) { + kubeletConfig_ = null; + onChanged(); + } else { + kubeletConfig_ = null; + kubeletConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + */ + public com.google.container.v1.NodeKubeletConfig.Builder getKubeletConfigBuilder() { + + onChanged(); + return getKubeletConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + */ + public com.google.container.v1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder() { + if (kubeletConfigBuilder_ != null) { + return kubeletConfigBuilder_.getMessageOrBuilder(); + } else { + return kubeletConfig_ == null + ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() + : kubeletConfig_; + } + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeKubeletConfig, + com.google.container.v1.NodeKubeletConfig.Builder, + com.google.container.v1.NodeKubeletConfigOrBuilder> + getKubeletConfigFieldBuilder() { + if (kubeletConfigBuilder_ == null) { + kubeletConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeKubeletConfig, + com.google.container.v1.NodeKubeletConfig.Builder, + com.google.container.v1.NodeKubeletConfigOrBuilder>( + getKubeletConfig(), getParentForChildren(), isClean()); + kubeletConfig_ = null; + } + return kubeletConfigBuilder_; + } + + private java.lang.Object bootDiskKmsKey_ = ""; + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 23; + * + * @return The bootDiskKmsKey. + */ + public java.lang.String getBootDiskKmsKey() { + java.lang.Object ref = bootDiskKmsKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bootDiskKmsKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 23; + * + * @return The bytes for bootDiskKmsKey. + */ + public com.google.protobuf.ByteString getBootDiskKmsKeyBytes() { + java.lang.Object ref = bootDiskKmsKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bootDiskKmsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 23; + * + * @param value The bootDiskKmsKey to set. + * @return This builder for chaining. + */ + public Builder setBootDiskKmsKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + bootDiskKmsKey_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 23; + * + * @return This builder for chaining. + */ + public Builder clearBootDiskKmsKey() { + + bootDiskKmsKey_ = getDefaultInstance().getBootDiskKmsKey(); + onChanged(); + return this; + } + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 23; + * + * @param value The bytes for bootDiskKmsKey to set. + * @return This builder for chaining. + */ + public Builder setBootDiskKmsKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bootDiskKmsKey_ = value; + onChanged(); + return this; + } + + private com.google.container.v1.GcfsConfig gcfsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcfsConfig, + com.google.container.v1.GcfsConfig.Builder, + com.google.container.v1.GcfsConfigOrBuilder> + gcfsConfigBuilder_; + /** + * + * + *
+     * Google Container File System (image streaming) configs.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + * + * @return Whether the gcfsConfig field is set. + */ + public boolean hasGcfsConfig() { + return gcfsConfigBuilder_ != null || gcfsConfig_ != null; + } + /** + * + * + *
+     * Google Container File System (image streaming) configs.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + * + * @return The gcfsConfig. + */ + public com.google.container.v1.GcfsConfig getGcfsConfig() { + if (gcfsConfigBuilder_ == null) { + return gcfsConfig_ == null + ? com.google.container.v1.GcfsConfig.getDefaultInstance() + : gcfsConfig_; + } else { + return gcfsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Google Container File System (image streaming) configs.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + */ + public Builder setGcfsConfig(com.google.container.v1.GcfsConfig value) { + if (gcfsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcfsConfig_ = value; + onChanged(); + } else { + gcfsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Google Container File System (image streaming) configs.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + */ + public Builder setGcfsConfig(com.google.container.v1.GcfsConfig.Builder builderForValue) { + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = builderForValue.build(); + onChanged(); + } else { + gcfsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Google Container File System (image streaming) configs.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + */ + public Builder mergeGcfsConfig(com.google.container.v1.GcfsConfig value) { + if (gcfsConfigBuilder_ == null) { + if (gcfsConfig_ != null) { + gcfsConfig_ = + com.google.container.v1.GcfsConfig.newBuilder(gcfsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + gcfsConfig_ = value; + } + onChanged(); + } else { + gcfsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Google Container File System (image streaming) configs.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + */ + public Builder clearGcfsConfig() { + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = null; + onChanged(); + } else { + gcfsConfig_ = null; + gcfsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Google Container File System (image streaming) configs.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + */ + public com.google.container.v1.GcfsConfig.Builder getGcfsConfigBuilder() { + + onChanged(); + return getGcfsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Google Container File System (image streaming) configs.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + */ + public com.google.container.v1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { + if (gcfsConfigBuilder_ != null) { + return gcfsConfigBuilder_.getMessageOrBuilder(); + } else { + return gcfsConfig_ == null + ? com.google.container.v1.GcfsConfig.getDefaultInstance() + : gcfsConfig_; + } + } + /** + * + * + *
+     * Google Container File System (image streaming) configs.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcfsConfig, + com.google.container.v1.GcfsConfig.Builder, + com.google.container.v1.GcfsConfigOrBuilder> + getGcfsConfigFieldBuilder() { + if (gcfsConfigBuilder_ == null) { + gcfsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcfsConfig, + com.google.container.v1.GcfsConfig.Builder, + com.google.container.v1.GcfsConfigOrBuilder>( + getGcfsConfig(), getParentForChildren(), isClean()); + gcfsConfig_ = null; + } + return gcfsConfigBuilder_; + } + + private com.google.container.v1.AdvancedMachineFeatures advancedMachineFeatures_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AdvancedMachineFeatures, + com.google.container.v1.AdvancedMachineFeatures.Builder, + com.google.container.v1.AdvancedMachineFeaturesOrBuilder> + advancedMachineFeaturesBuilder_; + /** + * + * + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + * + * @return Whether the advancedMachineFeatures field is set. + */ + public boolean hasAdvancedMachineFeatures() { + return advancedMachineFeaturesBuilder_ != null || advancedMachineFeatures_ != null; + } + /** + * + * + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + * + * @return The advancedMachineFeatures. + */ + public com.google.container.v1.AdvancedMachineFeatures getAdvancedMachineFeatures() { + if (advancedMachineFeaturesBuilder_ == null) { + return advancedMachineFeatures_ == null + ? com.google.container.v1.AdvancedMachineFeatures.getDefaultInstance() + : advancedMachineFeatures_; + } else { + return advancedMachineFeaturesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + public Builder setAdvancedMachineFeatures( + com.google.container.v1.AdvancedMachineFeatures value) { + if (advancedMachineFeaturesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + advancedMachineFeatures_ = value; + onChanged(); + } else { + advancedMachineFeaturesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + public Builder setAdvancedMachineFeatures( + com.google.container.v1.AdvancedMachineFeatures.Builder builderForValue) { + if (advancedMachineFeaturesBuilder_ == null) { + advancedMachineFeatures_ = builderForValue.build(); + onChanged(); + } else { + advancedMachineFeaturesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + public Builder mergeAdvancedMachineFeatures( + com.google.container.v1.AdvancedMachineFeatures value) { + if (advancedMachineFeaturesBuilder_ == null) { + if (advancedMachineFeatures_ != null) { + advancedMachineFeatures_ = + com.google.container.v1.AdvancedMachineFeatures.newBuilder(advancedMachineFeatures_) + .mergeFrom(value) + .buildPartial(); + } else { + advancedMachineFeatures_ = value; + } + onChanged(); + } else { + advancedMachineFeaturesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + public Builder clearAdvancedMachineFeatures() { + if (advancedMachineFeaturesBuilder_ == null) { + advancedMachineFeatures_ = null; + onChanged(); + } else { + advancedMachineFeatures_ = null; + advancedMachineFeaturesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + public com.google.container.v1.AdvancedMachineFeatures.Builder + getAdvancedMachineFeaturesBuilder() { + + onChanged(); + return getAdvancedMachineFeaturesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + public com.google.container.v1.AdvancedMachineFeaturesOrBuilder + getAdvancedMachineFeaturesOrBuilder() { + if (advancedMachineFeaturesBuilder_ != null) { + return advancedMachineFeaturesBuilder_.getMessageOrBuilder(); + } else { + return advancedMachineFeatures_ == null + ? com.google.container.v1.AdvancedMachineFeatures.getDefaultInstance() + : advancedMachineFeatures_; + } + } + /** + * + * + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AdvancedMachineFeatures, + com.google.container.v1.AdvancedMachineFeatures.Builder, + com.google.container.v1.AdvancedMachineFeaturesOrBuilder> + getAdvancedMachineFeaturesFieldBuilder() { + if (advancedMachineFeaturesBuilder_ == null) { + advancedMachineFeaturesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AdvancedMachineFeatures, + com.google.container.v1.AdvancedMachineFeatures.Builder, + com.google.container.v1.AdvancedMachineFeaturesOrBuilder>( + getAdvancedMachineFeatures(), getParentForChildren(), isClean()); + advancedMachineFeatures_ = null; + } + return advancedMachineFeaturesBuilder_; + } + + private com.google.container.v1.VirtualNIC gvnic_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.VirtualNIC, + com.google.container.v1.VirtualNIC.Builder, + com.google.container.v1.VirtualNICOrBuilder> + gvnicBuilder_; + /** + * + * + *
+     * Enable or disable gvnic in the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + * + * @return Whether the gvnic field is set. + */ + public boolean hasGvnic() { + return gvnicBuilder_ != null || gvnic_ != null; + } + /** + * + * + *
+     * Enable or disable gvnic in the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + * + * @return The gvnic. + */ + public com.google.container.v1.VirtualNIC getGvnic() { + if (gvnicBuilder_ == null) { + return gvnic_ == null ? com.google.container.v1.VirtualNIC.getDefaultInstance() : gvnic_; + } else { + return gvnicBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Enable or disable gvnic in the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + public Builder setGvnic(com.google.container.v1.VirtualNIC value) { + if (gvnicBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gvnic_ = value; + onChanged(); + } else { + gvnicBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Enable or disable gvnic in the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + public Builder setGvnic(com.google.container.v1.VirtualNIC.Builder builderForValue) { + if (gvnicBuilder_ == null) { + gvnic_ = builderForValue.build(); + onChanged(); + } else { + gvnicBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Enable or disable gvnic in the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + public Builder mergeGvnic(com.google.container.v1.VirtualNIC value) { + if (gvnicBuilder_ == null) { + if (gvnic_ != null) { + gvnic_ = + com.google.container.v1.VirtualNIC.newBuilder(gvnic_).mergeFrom(value).buildPartial(); + } else { + gvnic_ = value; + } + onChanged(); + } else { + gvnicBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Enable or disable gvnic in the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + public Builder clearGvnic() { + if (gvnicBuilder_ == null) { + gvnic_ = null; + onChanged(); + } else { + gvnic_ = null; + gvnicBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Enable or disable gvnic in the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + public com.google.container.v1.VirtualNIC.Builder getGvnicBuilder() { + + onChanged(); + return getGvnicFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Enable or disable gvnic in the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + public com.google.container.v1.VirtualNICOrBuilder getGvnicOrBuilder() { + if (gvnicBuilder_ != null) { + return gvnicBuilder_.getMessageOrBuilder(); + } else { + return gvnic_ == null ? com.google.container.v1.VirtualNIC.getDefaultInstance() : gvnic_; + } + } + /** + * + * + *
+     * Enable or disable gvnic in the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.VirtualNIC, + com.google.container.v1.VirtualNIC.Builder, + com.google.container.v1.VirtualNICOrBuilder> + getGvnicFieldBuilder() { + if (gvnicBuilder_ == null) { + gvnicBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.VirtualNIC, + com.google.container.v1.VirtualNIC.Builder, + com.google.container.v1.VirtualNICOrBuilder>( + getGvnic(), getParentForChildren(), isClean()); + gvnic_ = null; + } + return gvnicBuilder_; + } + + private boolean spot_; + /** + * + * + *
+     * Spot flag for enabling Spot VM, which is a rebrand of
+     * the existing preemptible flag.
+     * 
+ * + * bool spot = 32; + * + * @return The spot. + */ + @java.lang.Override + public boolean getSpot() { + return spot_; + } + /** + * + * + *
+     * Spot flag for enabling Spot VM, which is a rebrand of
+     * the existing preemptible flag.
+     * 
+ * + * bool spot = 32; + * + * @param value The spot to set. + * @return This builder for chaining. + */ + public Builder setSpot(boolean value) { + + spot_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Spot flag for enabling Spot VM, which is a rebrand of
+     * the existing preemptible flag.
+     * 
+ * + * bool spot = 32; + * + * @return This builder for chaining. + */ + public Builder clearSpot() { + + spot_ = false; + onChanged(); + return this; + } + + 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 confidentialNodesBuilder_ != null || confidentialNodes_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + confidentialNodesBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + confidentialNodesBuilder_.setMessage(builderForValue.build()); + } + + 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 (confidentialNodes_ != null) { + confidentialNodes_ = + com.google.container.v1.ConfidentialNodes.newBuilder(confidentialNodes_) + .mergeFrom(value) + .buildPartial(); + } else { + confidentialNodes_ = value; + } + onChanged(); + } else { + confidentialNodesBuilder_.mergeFrom(value); + } + + 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() { + if (confidentialNodesBuilder_ == null) { + confidentialNodes_ = null; + onChanged(); + } else { + confidentialNodes_ = null; + confidentialNodesBuilder_ = null; + } + + 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() { + + 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.protobuf.MapField resourceLabels_; + + private com.google.protobuf.MapField + internalGetResourceLabels() { + if (resourceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + return resourceLabels_; + } + + private com.google.protobuf.MapField + internalGetMutableResourceLabels() { + onChanged(); + ; + if (resourceLabels_ == null) { + resourceLabels_ = + com.google.protobuf.MapField.newMapField(ResourceLabelsDefaultEntryHolder.defaultEntry); + } + if (!resourceLabels_.isMutable()) { + resourceLabels_ = resourceLabels_.copy(); + } + return resourceLabels_; + } + + public int getResourceLabelsCount() { + return internalGetResourceLabels().getMap().size(); + } + /** + * + * + *
+     * The resource labels for the 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 java.lang.String getResourceLabelsOrDefault( + java.lang.String key, 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() { + 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() { + 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); + 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); + 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 loggingConfigBuilder_ != null || loggingConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + loggingConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + loggingConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 38; + */ + public Builder mergeLoggingConfig(com.google.container.v1.NodePoolLoggingConfig value) { + if (loggingConfigBuilder_ == null) { + if (loggingConfig_ != null) { + loggingConfig_ = + com.google.container.v1.NodePoolLoggingConfig.newBuilder(loggingConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + loggingConfig_ = value; + } + onChanged(); + } else { + loggingConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 38; + */ + public Builder clearLoggingConfig() { + if (loggingConfigBuilder_ == null) { + loggingConfig_ = null; + onChanged(); + } else { + loggingConfig_ = null; + loggingConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 38; + */ + public com.google.container.v1.NodePoolLoggingConfig.Builder getLoggingConfigBuilder() { + + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..c9b816644861 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigDefaults.java @@ -0,0 +1,970 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Subset of NodeConfig message that has defaults.
+ * 
+ * + * Protobuf type {@code google.container.v1.NodeConfigDefaults} + */ +public final class NodeConfigDefaults extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.NodeConfigDefaults) + NodeConfigDefaultsOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeConfigDefaults.newBuilder() to construct. + private NodeConfigDefaults(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NodeConfigDefaults() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NodeConfigDefaults(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NodeConfigDefaults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NodeConfigDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodeConfigDefaults.class, + com.google.container.v1.NodeConfigDefaults.Builder.class); + } + + public static final int GCFS_CONFIG_FIELD_NUMBER = 1; + private com.google.container.v1.GcfsConfig gcfsConfig_; + /** + * + * + *
+   * GCFS (Google Container File System, 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 gcfsConfig_ != null; + } + /** + * + * + *
+   * 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 getGcfsConfig(); + } + + 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 loggingConfig_ != null; + } + /** + * + * + *
+   * 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 getLoggingConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (gcfsConfig_ != null) { + output.writeMessage(1, getGcfsConfig()); + } + if (loggingConfig_ != null) { + output.writeMessage(3, getLoggingConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (gcfsConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGcfsConfig()); + } + if (loggingConfig_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = null; + } else { + gcfsConfig_ = null; + gcfsConfigBuilder_ = null; + } + if (loggingConfigBuilder_ == null) { + loggingConfig_ = null; + } else { + loggingConfig_ = null; + 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 (gcfsConfigBuilder_ == null) { + result.gcfsConfig_ = gcfsConfig_; + } else { + result.gcfsConfig_ = gcfsConfigBuilder_.build(); + } + if (loggingConfigBuilder_ == null) { + result.loggingConfig_ = loggingConfig_; + } else { + result.loggingConfig_ = loggingConfigBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NodeConfigDefaults) { + return mergeFrom((com.google.container.v1.NodeConfigDefaults) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NodeConfigDefaults other) { + if (other == com.google.container.v1.NodeConfigDefaults.getDefaultInstance()) return this; + if (other.hasGcfsConfig()) { + mergeGcfsConfig(other.getGcfsConfig()); + } + 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); + + break; + } // case 10 + case 26: + { + input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); + + 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 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 gcfsConfigBuilder_ != null || gcfsConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + gcfsConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + gcfsConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (gcfsConfig_ != null) { + gcfsConfig_ = + com.google.container.v1.GcfsConfig.newBuilder(gcfsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + gcfsConfig_ = value; + } + onChanged(); + } else { + gcfsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * GCFS (Google Container File System, also known as Riptide) options.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 1; + */ + public Builder clearGcfsConfig() { + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = null; + onChanged(); + } else { + gcfsConfig_ = null; + gcfsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * GCFS (Google Container File System, also known as Riptide) options.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 1; + */ + public com.google.container.v1.GcfsConfig.Builder getGcfsConfigBuilder() { + + onChanged(); + return getGcfsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * GCFS (Google Container File System, 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 loggingConfigBuilder_ != null || loggingConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + loggingConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + loggingConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (loggingConfig_ != null) { + loggingConfig_ = + com.google.container.v1.NodePoolLoggingConfig.newBuilder(loggingConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + loggingConfig_ = value; + } + onChanged(); + } else { + loggingConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Logging configuration for node pools.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 3; + */ + public Builder clearLoggingConfig() { + if (loggingConfigBuilder_ == null) { + loggingConfig_ = null; + onChanged(); + } else { + loggingConfig_ = null; + loggingConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Logging configuration for node pools.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 3; + */ + public com.google.container.v1.NodePoolLoggingConfig.Builder getLoggingConfigBuilder() { + + 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 new file mode 100644 index 000000000000..8e42bc9a3e8d --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigDefaultsOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface NodeConfigDefaultsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NodeConfigDefaults) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * GCFS (Google Container File System, 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 new file mode 100644 index 000000000000..914c5514890f --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java @@ -0,0 +1,1333 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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.
+   * 
+ * + * string image_type = 5; + * + * @return The imageType. + */ + java.lang.String getImageType(); + /** + * + * + *
+   * The image type to use for this node. Note that for a given image type,
+   * the latest version of it will be used.
+   * 
+ * + * string image_type = 5; + * + * @return The bytes for imageType. + */ + com.google.protobuf.ByteString getImageTypeBytes(); + + /** + * + * + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + int getLabelsCount(); + /** + * + * + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + + /* 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(); + + /** + * + * + *
+   * 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(); +} 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 new file mode 100644 index 000000000000..eebc314010f2 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeKubeletConfig.java @@ -0,0 +1,1321 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Node kubelet configs.
+ * 
+ * + * Protobuf type {@code google.container.v1.NodeKubeletConfig} + */ +public final class NodeKubeletConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.NodeKubeletConfig) + NodeKubeletConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeKubeletConfig.newBuilder() to construct. + private NodeKubeletConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NodeKubeletConfig() { + cpuManagerPolicy_ = ""; + cpuCfsQuotaPeriod_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NodeKubeletConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NodeKubeletConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NodeKubeletConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodeKubeletConfig.class, + com.google.container.v1.NodeKubeletConfig.Builder.class); + } + + public static final int CPU_MANAGER_POLICY_FIELD_NUMBER = 1; + private volatile java.lang.Object cpuManagerPolicy_; + /** + * + * + *
+   * Control the CPU management policy on the node.
+   * See
+   * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
+   * The following values are allowed.
+   * * "none": the default, which represents the existing scheduling behavior.
+   * * "static": allows pods with certain resource characteristics to be granted
+   * increased CPU affinity and exclusivity on the node.
+   * The default value is 'none' if unspecified.
+   * 
+ * + * string cpu_manager_policy = 1; + * + * @return The cpuManagerPolicy. + */ + @java.lang.Override + public java.lang.String getCpuManagerPolicy() { + java.lang.Object ref = cpuManagerPolicy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cpuManagerPolicy_ = s; + return s; + } + } + /** + * + * + *
+   * Control the CPU management policy on the node.
+   * See
+   * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
+   * The following values are allowed.
+   * * "none": the default, which represents the existing scheduling behavior.
+   * * "static": allows pods with certain resource characteristics to be granted
+   * increased CPU affinity and exclusivity on the node.
+   * The default value is 'none' if unspecified.
+   * 
+ * + * string cpu_manager_policy = 1; + * + * @return The bytes for cpuManagerPolicy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCpuManagerPolicyBytes() { + java.lang.Object ref = cpuManagerPolicy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cpuManagerPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CPU_CFS_QUOTA_FIELD_NUMBER = 2; + private com.google.protobuf.BoolValue cpuCfsQuota_; + /** + * + * + *
+   * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+   * This option is enabled by default which makes kubelet use CFS quota
+   * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+   * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+   * all.
+   * Disable this option to mitigate CPU throttling problems while still having
+   * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+   * The default value is 'true' if unspecified.
+   * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + * + * @return Whether the cpuCfsQuota field is set. + */ + @java.lang.Override + public boolean hasCpuCfsQuota() { + return cpuCfsQuota_ != null; + } + /** + * + * + *
+   * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+   * This option is enabled by default which makes kubelet use CFS quota
+   * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+   * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+   * all.
+   * Disable this option to mitigate CPU throttling problems while still having
+   * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+   * The default value is 'true' if unspecified.
+   * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + * + * @return The cpuCfsQuota. + */ + @java.lang.Override + public com.google.protobuf.BoolValue getCpuCfsQuota() { + return cpuCfsQuota_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : cpuCfsQuota_; + } + /** + * + * + *
+   * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+   * This option is enabled by default which makes kubelet use CFS quota
+   * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+   * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+   * all.
+   * Disable this option to mitigate CPU throttling problems while still having
+   * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+   * The default value is 'true' if unspecified.
+   * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + */ + @java.lang.Override + public com.google.protobuf.BoolValueOrBuilder getCpuCfsQuotaOrBuilder() { + return getCpuCfsQuota(); + } + + public static final int CPU_CFS_QUOTA_PERIOD_FIELD_NUMBER = 3; + private volatile java.lang.Object cpuCfsQuotaPeriod_; + /** + * + * + *
+   * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
+   * The string must be a sequence of decimal numbers, each with optional
+   * fraction and a unit suffix, such as "300ms".
+   * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
+   * The value must be a positive duration.
+   * 
+ * + * string cpu_cfs_quota_period = 3; + * + * @return The cpuCfsQuotaPeriod. + */ + @java.lang.Override + public java.lang.String getCpuCfsQuotaPeriod() { + java.lang.Object ref = cpuCfsQuotaPeriod_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cpuCfsQuotaPeriod_ = s; + return s; + } + } + /** + * + * + *
+   * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
+   * The string must be a sequence of decimal numbers, each with optional
+   * fraction and a unit suffix, such as "300ms".
+   * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
+   * The value must be a positive duration.
+   * 
+ * + * string cpu_cfs_quota_period = 3; + * + * @return The bytes for cpuCfsQuotaPeriod. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCpuCfsQuotaPeriodBytes() { + java.lang.Object ref = cpuCfsQuotaPeriod_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cpuCfsQuotaPeriod_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POD_PIDS_LIMIT_FIELD_NUMBER = 4; + 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_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuManagerPolicy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cpuManagerPolicy_); + } + if (cpuCfsQuota_ != null) { + output.writeMessage(2, getCpuCfsQuota()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuCfsQuotaPeriod_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cpuCfsQuotaPeriod_); + } + if (podPidsLimit_ != 0L) { + output.writeInt64(4, podPidsLimit_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuManagerPolicy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cpuManagerPolicy_); + } + if (cpuCfsQuota_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCpuCfsQuota()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuCfsQuotaPeriod_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, cpuCfsQuotaPeriod_); + } + if (podPidsLimit_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, podPidsLimit_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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()); + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + cpuManagerPolicy_ = ""; + + if (cpuCfsQuotaBuilder_ == null) { + cpuCfsQuota_ = null; + } else { + cpuCfsQuota_ = null; + cpuCfsQuotaBuilder_ = null; + } + cpuCfsQuotaPeriod_ = ""; + + podPidsLimit_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NodeKubeletConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NodeKubeletConfig getDefaultInstanceForType() { + return com.google.container.v1.NodeKubeletConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NodeKubeletConfig build() { + com.google.container.v1.NodeKubeletConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NodeKubeletConfig buildPartial() { + com.google.container.v1.NodeKubeletConfig result = + new com.google.container.v1.NodeKubeletConfig(this); + result.cpuManagerPolicy_ = cpuManagerPolicy_; + if (cpuCfsQuotaBuilder_ == null) { + result.cpuCfsQuota_ = cpuCfsQuota_; + } else { + result.cpuCfsQuota_ = cpuCfsQuotaBuilder_.build(); + } + result.cpuCfsQuotaPeriod_ = cpuCfsQuotaPeriod_; + result.podPidsLimit_ = podPidsLimit_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NodeKubeletConfig) { + return mergeFrom((com.google.container.v1.NodeKubeletConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NodeKubeletConfig other) { + if (other == com.google.container.v1.NodeKubeletConfig.getDefaultInstance()) return this; + if (!other.getCpuManagerPolicy().isEmpty()) { + cpuManagerPolicy_ = other.cpuManagerPolicy_; + onChanged(); + } + if (other.hasCpuCfsQuota()) { + mergeCpuCfsQuota(other.getCpuCfsQuota()); + } + if (!other.getCpuCfsQuotaPeriod().isEmpty()) { + cpuCfsQuotaPeriod_ = other.cpuCfsQuotaPeriod_; + onChanged(); + } + if (other.getPodPidsLimit() != 0L) { + setPodPidsLimit(other.getPodPidsLimit()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + input.readMessage(getCpuCfsQuotaFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + cpuCfsQuotaPeriod_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: + { + podPidsLimit_ = input.readInt64(); + + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object cpuManagerPolicy_ = ""; + /** + * + * + *
+     * Control the CPU management policy on the node.
+     * See
+     * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
+     * The following values are allowed.
+     * * "none": the default, which represents the existing scheduling behavior.
+     * * "static": allows pods with certain resource characteristics to be granted
+     * increased CPU affinity and exclusivity on the node.
+     * The default value is 'none' if unspecified.
+     * 
+ * + * string cpu_manager_policy = 1; + * + * @return The cpuManagerPolicy. + */ + public java.lang.String getCpuManagerPolicy() { + java.lang.Object ref = cpuManagerPolicy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cpuManagerPolicy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Control the CPU management policy on the node.
+     * See
+     * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
+     * The following values are allowed.
+     * * "none": the default, which represents the existing scheduling behavior.
+     * * "static": allows pods with certain resource characteristics to be granted
+     * increased CPU affinity and exclusivity on the node.
+     * The default value is 'none' if unspecified.
+     * 
+ * + * string cpu_manager_policy = 1; + * + * @return The bytes for cpuManagerPolicy. + */ + public com.google.protobuf.ByteString getCpuManagerPolicyBytes() { + java.lang.Object ref = cpuManagerPolicy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cpuManagerPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Control the CPU management policy on the node.
+     * See
+     * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
+     * The following values are allowed.
+     * * "none": the default, which represents the existing scheduling behavior.
+     * * "static": allows pods with certain resource characteristics to be granted
+     * increased CPU affinity and exclusivity on the node.
+     * The default value is 'none' if unspecified.
+     * 
+ * + * string cpu_manager_policy = 1; + * + * @param value The cpuManagerPolicy to set. + * @return This builder for chaining. + */ + public Builder setCpuManagerPolicy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cpuManagerPolicy_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Control the CPU management policy on the node.
+     * See
+     * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
+     * The following values are allowed.
+     * * "none": the default, which represents the existing scheduling behavior.
+     * * "static": allows pods with certain resource characteristics to be granted
+     * increased CPU affinity and exclusivity on the node.
+     * The default value is 'none' if unspecified.
+     * 
+ * + * string cpu_manager_policy = 1; + * + * @return This builder for chaining. + */ + public Builder clearCpuManagerPolicy() { + + cpuManagerPolicy_ = getDefaultInstance().getCpuManagerPolicy(); + onChanged(); + return this; + } + /** + * + * + *
+     * Control the CPU management policy on the node.
+     * See
+     * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
+     * The following values are allowed.
+     * * "none": the default, which represents the existing scheduling behavior.
+     * * "static": allows pods with certain resource characteristics to be granted
+     * increased CPU affinity and exclusivity on the node.
+     * The default value is 'none' if unspecified.
+     * 
+ * + * string cpu_manager_policy = 1; + * + * @param value The bytes for cpuManagerPolicy to set. + * @return This builder for chaining. + */ + public Builder setCpuManagerPolicyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cpuManagerPolicy_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.BoolValue cpuCfsQuota_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + cpuCfsQuotaBuilder_; + /** + * + * + *
+     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+     * This option is enabled by default which makes kubelet use CFS quota
+     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+     * all.
+     * Disable this option to mitigate CPU throttling problems while still having
+     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+     * The default value is 'true' if unspecified.
+     * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + * + * @return Whether the cpuCfsQuota field is set. + */ + public boolean hasCpuCfsQuota() { + return cpuCfsQuotaBuilder_ != null || cpuCfsQuota_ != null; + } + /** + * + * + *
+     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+     * This option is enabled by default which makes kubelet use CFS quota
+     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+     * all.
+     * Disable this option to mitigate CPU throttling problems while still having
+     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+     * The default value is 'true' if unspecified.
+     * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + * + * @return The cpuCfsQuota. + */ + public com.google.protobuf.BoolValue getCpuCfsQuota() { + if (cpuCfsQuotaBuilder_ == null) { + return cpuCfsQuota_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : cpuCfsQuota_; + } else { + return cpuCfsQuotaBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+     * This option is enabled by default which makes kubelet use CFS quota
+     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+     * all.
+     * Disable this option to mitigate CPU throttling problems while still having
+     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+     * The default value is 'true' if unspecified.
+     * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + */ + public Builder setCpuCfsQuota(com.google.protobuf.BoolValue value) { + if (cpuCfsQuotaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cpuCfsQuota_ = value; + onChanged(); + } else { + cpuCfsQuotaBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+     * This option is enabled by default which makes kubelet use CFS quota
+     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+     * all.
+     * Disable this option to mitigate CPU throttling problems while still having
+     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+     * The default value is 'true' if unspecified.
+     * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + */ + public Builder setCpuCfsQuota(com.google.protobuf.BoolValue.Builder builderForValue) { + if (cpuCfsQuotaBuilder_ == null) { + cpuCfsQuota_ = builderForValue.build(); + onChanged(); + } else { + cpuCfsQuotaBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+     * This option is enabled by default which makes kubelet use CFS quota
+     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+     * all.
+     * Disable this option to mitigate CPU throttling problems while still having
+     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+     * The default value is 'true' if unspecified.
+     * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + */ + public Builder mergeCpuCfsQuota(com.google.protobuf.BoolValue value) { + if (cpuCfsQuotaBuilder_ == null) { + if (cpuCfsQuota_ != null) { + cpuCfsQuota_ = + com.google.protobuf.BoolValue.newBuilder(cpuCfsQuota_) + .mergeFrom(value) + .buildPartial(); + } else { + cpuCfsQuota_ = value; + } + onChanged(); + } else { + cpuCfsQuotaBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+     * This option is enabled by default which makes kubelet use CFS quota
+     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+     * all.
+     * Disable this option to mitigate CPU throttling problems while still having
+     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+     * The default value is 'true' if unspecified.
+     * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + */ + public Builder clearCpuCfsQuota() { + if (cpuCfsQuotaBuilder_ == null) { + cpuCfsQuota_ = null; + onChanged(); + } else { + cpuCfsQuota_ = null; + cpuCfsQuotaBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+     * This option is enabled by default which makes kubelet use CFS quota
+     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+     * all.
+     * Disable this option to mitigate CPU throttling problems while still having
+     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+     * The default value is 'true' if unspecified.
+     * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + */ + public com.google.protobuf.BoolValue.Builder getCpuCfsQuotaBuilder() { + + onChanged(); + return getCpuCfsQuotaFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+     * This option is enabled by default which makes kubelet use CFS quota
+     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+     * all.
+     * Disable this option to mitigate CPU throttling problems while still having
+     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+     * The default value is 'true' if unspecified.
+     * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + */ + public com.google.protobuf.BoolValueOrBuilder getCpuCfsQuotaOrBuilder() { + if (cpuCfsQuotaBuilder_ != null) { + return cpuCfsQuotaBuilder_.getMessageOrBuilder(); + } else { + return cpuCfsQuota_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : cpuCfsQuota_; + } + } + /** + * + * + *
+     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+     * This option is enabled by default which makes kubelet use CFS quota
+     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+     * all.
+     * Disable this option to mitigate CPU throttling problems while still having
+     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+     * The default value is 'true' if unspecified.
+     * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getCpuCfsQuotaFieldBuilder() { + if (cpuCfsQuotaBuilder_ == null) { + cpuCfsQuotaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getCpuCfsQuota(), getParentForChildren(), isClean()); + cpuCfsQuota_ = null; + } + return cpuCfsQuotaBuilder_; + } + + private java.lang.Object cpuCfsQuotaPeriod_ = ""; + /** + * + * + *
+     * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
+     * The string must be a sequence of decimal numbers, each with optional
+     * fraction and a unit suffix, such as "300ms".
+     * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
+     * The value must be a positive duration.
+     * 
+ * + * string cpu_cfs_quota_period = 3; + * + * @return The cpuCfsQuotaPeriod. + */ + public java.lang.String getCpuCfsQuotaPeriod() { + java.lang.Object ref = cpuCfsQuotaPeriod_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cpuCfsQuotaPeriod_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
+     * The string must be a sequence of decimal numbers, each with optional
+     * fraction and a unit suffix, such as "300ms".
+     * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
+     * The value must be a positive duration.
+     * 
+ * + * string cpu_cfs_quota_period = 3; + * + * @return The bytes for cpuCfsQuotaPeriod. + */ + public com.google.protobuf.ByteString getCpuCfsQuotaPeriodBytes() { + java.lang.Object ref = cpuCfsQuotaPeriod_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cpuCfsQuotaPeriod_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
+     * The string must be a sequence of decimal numbers, each with optional
+     * fraction and a unit suffix, such as "300ms".
+     * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
+     * The value must be a positive duration.
+     * 
+ * + * string cpu_cfs_quota_period = 3; + * + * @param value The cpuCfsQuotaPeriod to set. + * @return This builder for chaining. + */ + public Builder setCpuCfsQuotaPeriod(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cpuCfsQuotaPeriod_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
+     * The string must be a sequence of decimal numbers, each with optional
+     * fraction and a unit suffix, such as "300ms".
+     * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
+     * The value must be a positive duration.
+     * 
+ * + * string cpu_cfs_quota_period = 3; + * + * @return This builder for chaining. + */ + public Builder clearCpuCfsQuotaPeriod() { + + cpuCfsQuotaPeriod_ = getDefaultInstance().getCpuCfsQuotaPeriod(); + onChanged(); + return this; + } + /** + * + * + *
+     * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
+     * The string must be a sequence of decimal numbers, each with optional
+     * fraction and a unit suffix, such as "300ms".
+     * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
+     * The value must be a positive duration.
+     * 
+ * + * string cpu_cfs_quota_period = 3; + * + * @param value The bytes for cpuCfsQuotaPeriod to set. + * @return This builder for chaining. + */ + public Builder setCpuCfsQuotaPeriodBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cpuCfsQuotaPeriod_ = value; + onChanged(); + return this; + } + + 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; + 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() { + + podPidsLimit_ = 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.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 new file mode 100644 index 000000000000..be3530bb1888 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeKubeletConfigOrBuilder.java @@ -0,0 +1,169 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface NodeKubeletConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NodeKubeletConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Control the CPU management policy on the node.
+   * See
+   * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
+   * The following values are allowed.
+   * * "none": the default, which represents the existing scheduling behavior.
+   * * "static": allows pods with certain resource characteristics to be granted
+   * increased CPU affinity and exclusivity on the node.
+   * The default value is 'none' if unspecified.
+   * 
+ * + * string cpu_manager_policy = 1; + * + * @return The cpuManagerPolicy. + */ + java.lang.String getCpuManagerPolicy(); + /** + * + * + *
+   * Control the CPU management policy on the node.
+   * See
+   * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
+   * The following values are allowed.
+   * * "none": the default, which represents the existing scheduling behavior.
+   * * "static": allows pods with certain resource characteristics to be granted
+   * increased CPU affinity and exclusivity on the node.
+   * The default value is 'none' if unspecified.
+   * 
+ * + * string cpu_manager_policy = 1; + * + * @return The bytes for cpuManagerPolicy. + */ + com.google.protobuf.ByteString getCpuManagerPolicyBytes(); + + /** + * + * + *
+   * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+   * This option is enabled by default which makes kubelet use CFS quota
+   * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+   * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+   * all.
+   * Disable this option to mitigate CPU throttling problems while still having
+   * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+   * The default value is 'true' if unspecified.
+   * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + * + * @return Whether the cpuCfsQuota field is set. + */ + boolean hasCpuCfsQuota(); + /** + * + * + *
+   * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+   * This option is enabled by default which makes kubelet use CFS quota
+   * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+   * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+   * all.
+   * Disable this option to mitigate CPU throttling problems while still having
+   * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+   * The default value is 'true' if unspecified.
+   * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + * + * @return The cpuCfsQuota. + */ + com.google.protobuf.BoolValue getCpuCfsQuota(); + /** + * + * + *
+   * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+   * This option is enabled by default which makes kubelet use CFS quota
+   * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+   * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+   * all.
+   * Disable this option to mitigate CPU throttling problems while still having
+   * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+   * The default value is 'true' if unspecified.
+   * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + */ + com.google.protobuf.BoolValueOrBuilder getCpuCfsQuotaOrBuilder(); + + /** + * + * + *
+   * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
+   * The string must be a sequence of decimal numbers, each with optional
+   * fraction and a unit suffix, such as "300ms".
+   * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
+   * The value must be a positive duration.
+   * 
+ * + * string cpu_cfs_quota_period = 3; + * + * @return The cpuCfsQuotaPeriod. + */ + java.lang.String getCpuCfsQuotaPeriod(); + /** + * + * + *
+   * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
+   * The string must be a sequence of decimal numbers, each with optional
+   * fraction and a unit suffix, such as "300ms".
+   * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
+   * The value must be a positive duration.
+   * 
+ * + * string cpu_cfs_quota_period = 3; + * + * @return The bytes for cpuCfsQuotaPeriod. + */ + com.google.protobuf.ByteString getCpuCfsQuotaPeriodBytes(); + + /** + * + * + *
+   * 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(); +} 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 new file mode 100644 index 000000000000..45faf3d07d5c --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeLabels.java @@ -0,0 +1,756 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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.MapField internalGetMapField(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, + ""); + } + + 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 java.lang.String getLabelsOrDefault(java.lang.String key, 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.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(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(); + 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); + int from_bitField0_ = bitField0_; + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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()); + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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()); + 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() { + onChanged(); + ; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * 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 java.lang.String getLabelsOrDefault( + java.lang.String key, 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() { + 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() { + 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); + 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); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..f4310a7fede1 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeLabelsOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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 new file mode 100644 index 000000000000..73d5bde3aa7b --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeManagement.java @@ -0,0 +1,906 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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); + } + + public static final int AUTO_UPGRADE_FIELD_NUMBER = 1; + 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_; + } + + public static final int AUTO_REPAIR_FIELD_NUMBER = 2; + 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_; + } + + 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 upgradeOptions_ != null; + } + /** + * + * + *
+   * 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 getUpgradeOptions(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (autoUpgrade_ != false) { + output.writeBool(1, autoUpgrade_); + } + if (autoRepair_ != false) { + output.writeBool(2, autoRepair_); + } + if (upgradeOptions_ != null) { + output.writeMessage(10, getUpgradeOptions()); + } + 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 (upgradeOptions_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + autoUpgrade_ = false; + + autoRepair_ = false; + + if (upgradeOptionsBuilder_ == null) { + upgradeOptions_ = null; + } else { + upgradeOptions_ = null; + upgradeOptionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.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); + result.autoUpgrade_ = autoUpgrade_; + result.autoRepair_ = autoRepair_; + if (upgradeOptionsBuilder_ == null) { + result.upgradeOptions_ = upgradeOptions_; + } else { + result.upgradeOptions_ = upgradeOptionsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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(); + + break; + } // case 8 + case 16: + { + autoRepair_ = input.readBool(); + + break; + } // case 16 + case 82: + { + input.readMessage(getUpgradeOptionsFieldBuilder().getBuilder(), extensionRegistry); + + 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 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; + 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() { + + 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; + 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() { + + 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 upgradeOptionsBuilder_ != null || upgradeOptions_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + upgradeOptionsBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + upgradeOptionsBuilder_.setMessage(builderForValue.build()); + } + + 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 (upgradeOptions_ != null) { + upgradeOptions_ = + com.google.container.v1.AutoUpgradeOptions.newBuilder(upgradeOptions_) + .mergeFrom(value) + .buildPartial(); + } else { + upgradeOptions_ = value; + } + onChanged(); + } else { + upgradeOptionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; + */ + public Builder clearUpgradeOptions() { + if (upgradeOptionsBuilder_ == null) { + upgradeOptions_ = null; + onChanged(); + } else { + upgradeOptions_ = null; + upgradeOptionsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; + */ + public com.google.container.v1.AutoUpgradeOptions.Builder getUpgradeOptionsBuilder() { + + 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 new file mode 100644 index 000000000000..552c8cccdd4c --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeManagementOrBuilder.java @@ -0,0 +1,91 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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 new file mode 100644 index 000000000000..bb957b6fe6ce --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfig.java @@ -0,0 +1,2322 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Parameters for node pool-level network config.
+ * 
+ * + * Protobuf type {@code google.container.v1.NodeNetworkConfig} + */ +public final class NodeNetworkConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.NodeNetworkConfig) + NodeNetworkConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeNetworkConfig.newBuilder() to construct. + private NodeNetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NodeNetworkConfig() { + podRange_ = ""; + podIpv4CidrBlock_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NodeNetworkConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+     * 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() { + @SuppressWarnings("deprecation") + com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier result = + com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier.valueOf( + 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(); + totalEgressBandwidthTier_ = 0; + 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_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); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + to_bitField0_ |= 0x00000001; + } + result.totalEgressBandwidthTier_ = totalEgressBandwidthTier_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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) { + bitField0_ |= 0x00000001; + totalEgressBandwidthTier_ = value; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier result = + com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier.valueOf( + 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_; + /** + * + * + *
+   * Input only. Whether to create a new range for pod IPs in this node pool.
+   * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
+   * are not specified.
+   * If neither `create_pod_range` or `pod_range` are specified, the
+   * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
+   * used.
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The createPodRange. + */ + @java.lang.Override + public boolean getCreatePodRange() { + return createPodRange_; + } + + public static final int POD_RANGE_FIELD_NUMBER = 5; + private volatile java.lang.Object podRange_; + /** + * + * + *
+   * The ID of the secondary range for pod IPs.
+   * If `create_pod_range` is true, this ID is used for the new range.
+   * If `create_pod_range` is false, uses an existing secondary range with this
+   * ID.
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * string pod_range = 5; + * + * @return The podRange. + */ + @java.lang.Override + public java.lang.String getPodRange() { + java.lang.Object ref = podRange_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + podRange_ = s; + return s; + } + } + /** + * + * + *
+   * The ID of the secondary range for pod IPs.
+   * If `create_pod_range` is true, this ID is used for the new range.
+   * If `create_pod_range` is false, uses an existing secondary range with this
+   * ID.
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * string pod_range = 5; + * + * @return The bytes for podRange. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPodRangeBytes() { + java.lang.Object ref = podRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + podRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POD_IPV4_CIDR_BLOCK_FIELD_NUMBER = 6; + private volatile java.lang.Object podIpv4CidrBlock_; + /** + * + * + *
+   * The IP address range for pod IPs in this node pool.
+   * Only applicable if `create_pod_range` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * string pod_ipv4_cidr_block = 6; + * + * @return The podIpv4CidrBlock. + */ + @java.lang.Override + public java.lang.String getPodIpv4CidrBlock() { + java.lang.Object ref = podIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + podIpv4CidrBlock_ = s; + return s; + } + } + /** + * + * + *
+   * The IP address range for pod IPs in this node pool.
+   * Only applicable if `create_pod_range` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * string pod_ipv4_cidr_block = 6; + * + * @return The bytes for podIpv4CidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPodIpv4CidrBlockBytes() { + java.lang.Object ref = podIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + podIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENABLE_PRIVATE_NODES_FIELD_NUMBER = 9; + 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_ & 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_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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()); + } + 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()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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(); + } + 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(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + createPodRange_ = false; + + podRange_ = ""; + + podIpv4CidrBlock_ = ""; + + enablePrivateNodes_ = false; + bitField0_ = (bitField0_ & ~0x00000001); + if (networkPerformanceConfigBuilder_ == null) { + networkPerformanceConfig_ = null; + } else { + networkPerformanceConfigBuilder_.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_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); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.createPodRange_ = createPodRange_; + result.podRange_ = podRange_; + result.podIpv4CidrBlock_ = podIpv4CidrBlock_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enablePrivateNodes_ = enablePrivateNodes_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + if (networkPerformanceConfigBuilder_ == null) { + result.networkPerformanceConfig_ = networkPerformanceConfig_; + } else { + result.networkPerformanceConfig_ = networkPerformanceConfigBuilder_.build(); + } + to_bitField0_ |= 0x00000002; + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NodeNetworkConfig) { + return mergeFrom((com.google.container.v1.NodeNetworkConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NodeNetworkConfig other) { + if (other == com.google.container.v1.NodeNetworkConfig.getDefaultInstance()) return this; + if (other.getCreatePodRange() != false) { + setCreatePodRange(other.getCreatePodRange()); + } + if (!other.getPodRange().isEmpty()) { + podRange_ = other.podRange_; + onChanged(); + } + if (!other.getPodIpv4CidrBlock().isEmpty()) { + podIpv4CidrBlock_ = other.podIpv4CidrBlock_; + onChanged(); + } + if (other.hasEnablePrivateNodes()) { + setEnablePrivateNodes(other.getEnablePrivateNodes()); + } + if (other.hasNetworkPerformanceConfig()) { + mergeNetworkPerformanceConfig(other.getNetworkPerformanceConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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(); + + break; + } // case 32 + case 42: + { + podRange_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + podIpv4CidrBlock_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 72: + { + enablePrivateNodes_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 72 + case 90: + { + input.readMessage( + getNetworkPerformanceConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 90 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Input only. Whether to create a new range for pod IPs in this node pool.
+     * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
+     * are not specified.
+     * If neither `create_pod_range` or `pod_range` are specified, the
+     * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
+     * used.
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCreatePodRange() { + + createPodRange_ = false; + onChanged(); + return this; + } + + private java.lang.Object podRange_ = ""; + /** + * + * + *
+     * The ID of the secondary range for pod IPs.
+     * If `create_pod_range` is true, this ID is used for the new range.
+     * If `create_pod_range` is false, uses an existing secondary range with this
+     * ID.
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_range = 5; + * + * @return The podRange. + */ + public java.lang.String getPodRange() { + java.lang.Object ref = podRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + podRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The ID of the secondary range for pod IPs.
+     * If `create_pod_range` is true, this ID is used for the new range.
+     * If `create_pod_range` is false, uses an existing secondary range with this
+     * ID.
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_range = 5; + * + * @return The bytes for podRange. + */ + public com.google.protobuf.ByteString getPodRangeBytes() { + java.lang.Object ref = podRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + podRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The ID of the secondary range for pod IPs.
+     * If `create_pod_range` is true, this ID is used for the new range.
+     * If `create_pod_range` is false, uses an existing secondary range with this
+     * ID.
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_range = 5; + * + * @param value The podRange to set. + * @return This builder for chaining. + */ + public Builder setPodRange(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + podRange_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The ID of the secondary range for pod IPs.
+     * If `create_pod_range` is true, this ID is used for the new range.
+     * If `create_pod_range` is false, uses an existing secondary range with this
+     * ID.
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_range = 5; + * + * @return This builder for chaining. + */ + public Builder clearPodRange() { + + podRange_ = getDefaultInstance().getPodRange(); + onChanged(); + return this; + } + /** + * + * + *
+     * The ID of the secondary range for pod IPs.
+     * If `create_pod_range` is true, this ID is used for the new range.
+     * If `create_pod_range` is false, uses an existing secondary range with this
+     * ID.
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_range = 5; + * + * @param value The bytes for podRange to set. + * @return This builder for chaining. + */ + public Builder setPodRangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + podRange_ = value; + onChanged(); + return this; + } + + private java.lang.Object podIpv4CidrBlock_ = ""; + /** + * + * + *
+     * The IP address range for pod IPs in this node pool.
+     * Only applicable if `create_pod_range` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_ipv4_cidr_block = 6; + * + * @return The podIpv4CidrBlock. + */ + public java.lang.String getPodIpv4CidrBlock() { + java.lang.Object ref = podIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + podIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The IP address range for pod IPs in this node pool.
+     * Only applicable if `create_pod_range` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_ipv4_cidr_block = 6; + * + * @return The bytes for podIpv4CidrBlock. + */ + public com.google.protobuf.ByteString getPodIpv4CidrBlockBytes() { + java.lang.Object ref = podIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + podIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The IP address range for pod IPs in this node pool.
+     * Only applicable if `create_pod_range` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_ipv4_cidr_block = 6; + * + * @param value The podIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setPodIpv4CidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + podIpv4CidrBlock_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address range for pod IPs in this node pool.
+     * Only applicable if `create_pod_range` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_ipv4_cidr_block = 6; + * + * @return This builder for chaining. + */ + public Builder clearPodIpv4CidrBlock() { + + podIpv4CidrBlock_ = getDefaultInstance().getPodIpv4CidrBlock(); + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address range for pod IPs in this node pool.
+     * Only applicable if `create_pod_range` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_ipv4_cidr_block = 6; + * + * @param value The bytes for podIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setPodIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + podIpv4CidrBlock_ = value; + onChanged(); + return this; + } + + 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_ & 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_; + } + /** + * + * + *
+     * 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) { + bitField0_ |= 0x00000001; + enablePrivateNodes_ = value; + 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_ & ~0x00000001); + 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_ & 0x00000002) != 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; + onChanged(); + } else { + networkPerformanceConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + 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(); + onChanged(); + } else { + networkPerformanceConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + 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_ & 0x00000002) != 0) + && networkPerformanceConfig_ != null + && networkPerformanceConfig_ + != com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig + .getDefaultInstance()) { + networkPerformanceConfig_ = + com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.newBuilder( + networkPerformanceConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + networkPerformanceConfig_ = value; + } + onChanged(); + } else { + networkPerformanceConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + * + * + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * + * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + * + */ + public Builder clearNetworkPerformanceConfig() { + if (networkPerformanceConfigBuilder_ == null) { + networkPerformanceConfig_ = null; + onChanged(); + } else { + networkPerformanceConfigBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + 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_ |= 0x00000002; + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..989675a008b4 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfigOrBuilder.java @@ -0,0 +1,194 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface NodeNetworkConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NodeNetworkConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Input only. Whether to create a new range for pod IPs in this node pool.
+   * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
+   * are not specified.
+   * If neither `create_pod_range` or `pod_range` are specified, the
+   * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
+   * used.
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The createPodRange. + */ + boolean getCreatePodRange(); + + /** + * + * + *
+   * The ID of the secondary range for pod IPs.
+   * If `create_pod_range` is true, this ID is used for the new range.
+   * If `create_pod_range` is false, uses an existing secondary range with this
+   * ID.
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * string pod_range = 5; + * + * @return The podRange. + */ + java.lang.String getPodRange(); + /** + * + * + *
+   * The ID of the secondary range for pod IPs.
+   * If `create_pod_range` is true, this ID is used for the new range.
+   * If `create_pod_range` is false, uses an existing secondary range with this
+   * ID.
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * string pod_range = 5; + * + * @return The bytes for podRange. + */ + com.google.protobuf.ByteString getPodRangeBytes(); + + /** + * + * + *
+   * The IP address range for pod IPs in this node pool.
+   * Only applicable if `create_pod_range` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * string pod_ipv4_cidr_block = 6; + * + * @return The podIpv4CidrBlock. + */ + java.lang.String getPodIpv4CidrBlock(); + /** + * + * + *
+   * The IP address range for pod IPs in this node pool.
+   * Only applicable if `create_pod_range` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * string pod_ipv4_cidr_block = 6; + * + * @return The bytes for podIpv4CidrBlock. + */ + com.google.protobuf.ByteString getPodIpv4CidrBlockBytes(); + + /** + * + * + *
+   * 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(); +} 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 new file mode 100644 index 000000000000..238cca1ac4f7 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java @@ -0,0 +1,8942 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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.EMPTY; + selfLink_ = ""; + version_ = ""; + instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + status_ = 0; + statusMessage_ = ""; + conditions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NodePool(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+     * The maximum number of nodes that can be created beyond the current size
+     * of the node pool during the upgrade process.
+     * 
+ * + * int32 max_surge = 1; + * + * @return The maxSurge. + */ + @java.lang.Override + public int getMaxSurge() { + return maxSurge_; + } + + public static final int MAX_UNAVAILABLE_FIELD_NUMBER = 2; + private int maxUnavailable_; + /** + * + * + *
+     * The maximum number of nodes that can be simultaneously unavailable during
+     * the upgrade process. A node is considered available if its status is
+     * Ready.
+     * 
+ * + * int32 max_unavailable = 2; + * + * @return The maxUnavailable. + */ + @java.lang.Override + public int getMaxUnavailable() { + return maxUnavailable_; + } + + public static final int STRATEGY_FIELD_NUMBER = 3; + private int strategy_; + /** + * + * + *
+     * 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() { + @SuppressWarnings("deprecation") + com.google.container.v1.NodePoolUpdateStrategy result = + com.google.container.v1.NodePoolUpdateStrategy.valueOf(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(); + maxSurge_ = 0; + + maxUnavailable_ = 0; + + strategy_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + if (blueGreenSettingsBuilder_ == null) { + blueGreenSettings_ = null; + } else { + blueGreenSettingsBuilder_.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_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); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.maxSurge_ = maxSurge_; + result.maxUnavailable_ = maxUnavailable_; + if (((from_bitField0_ & 0x00000001) != 0)) { + to_bitField0_ |= 0x00000001; + } + result.strategy_ = strategy_; + if (((from_bitField0_ & 0x00000002) != 0)) { + if (blueGreenSettingsBuilder_ == null) { + result.blueGreenSettings_ = blueGreenSettings_; + } else { + result.blueGreenSettings_ = blueGreenSettingsBuilder_.build(); + } + to_bitField0_ |= 0x00000002; + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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(); + + break; + } // case 8 + case 16: + { + maxUnavailable_ = input.readInt32(); + + break; + } // case 16 + case 24: + { + strategy_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 24 + case 34: + { + input.readMessage( + getBlueGreenSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + 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; + onChanged(); + return this; + } + /** + * + * + *
+       * The maximum number of nodes that can be created beyond the current size
+       * of the node pool during the upgrade process.
+       * 
+ * + * int32 max_surge = 1; + * + * @return This builder for chaining. + */ + public Builder clearMaxSurge() { + + maxSurge_ = 0; + onChanged(); + return this; + } + + private int maxUnavailable_; + /** + * + * + *
+       * The maximum number of nodes that can be simultaneously unavailable during
+       * the upgrade process. A node is considered available if its status is
+       * Ready.
+       * 
+ * + * int32 max_unavailable = 2; + * + * @return The maxUnavailable. + */ + @java.lang.Override + public int getMaxUnavailable() { + return maxUnavailable_; + } + /** + * + * + *
+       * The maximum number of nodes that can be simultaneously unavailable during
+       * the upgrade process. A node is considered available if its status is
+       * Ready.
+       * 
+ * + * int32 max_unavailable = 2; + * + * @param value The maxUnavailable to set. + * @return This builder for chaining. + */ + public Builder setMaxUnavailable(int value) { + + maxUnavailable_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The maximum number of nodes that can be simultaneously unavailable during
+       * the upgrade process. A node is considered available if its status is
+       * Ready.
+       * 
+ * + * int32 max_unavailable = 2; + * + * @return This builder for chaining. + */ + public Builder clearMaxUnavailable() { + + maxUnavailable_ = 0; + onChanged(); + return this; + } + + 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; + * + * @param value The enum numeric value on the wire for strategy to set. + * @return This builder for chaining. + */ + public Builder setStrategyValue(int value) { + bitField0_ |= 0x00000001; + strategy_ = value; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1.NodePoolUpdateStrategy result = + com.google.container.v1.NodePoolUpdateStrategy.valueOf(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_ |= 0x00000001; + 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_ & ~0x00000001); + 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_ & 0x00000002) != 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; + onChanged(); + } else { + blueGreenSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + 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(); + onChanged(); + } else { + blueGreenSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + 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_ & 0x00000002) != 0) + && blueGreenSettings_ != null + && blueGreenSettings_ + != com.google.container.v1.BlueGreenSettings.getDefaultInstance()) { + blueGreenSettings_ = + com.google.container.v1.BlueGreenSettings.newBuilder(blueGreenSettings_) + .mergeFrom(value) + .buildPartial(); + } else { + blueGreenSettings_ = value; + } + onChanged(); + } else { + blueGreenSettingsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + * + * + *
+       * Settings for blue-green upgrade strategy.
+       * 
+ * + * optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; + */ + public Builder clearBlueGreenSettings() { + if (blueGreenSettingsBuilder_ == null) { + blueGreenSettings_ = null; + onChanged(); + } else { + blueGreenSettingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + 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_ |= 0x00000002; + 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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.EMPTY; + greenInstanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bluePoolDeletionStartTime_ = ""; + greenPoolVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BlueGreenInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+       * 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() { + @SuppressWarnings("deprecation") + com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase result = + com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase.valueOf(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; + private com.google.protobuf.LazyStringList 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 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; + private com.google.protobuf.LazyStringList 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 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; + 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; + 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(); + phase_ = 0; + + blueInstanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + greenInstanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + 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); + int from_bitField0_ = bitField0_; + result.phase_ = phase_; + if (((bitField0_ & 0x00000001) != 0)) { + blueInstanceGroupUrls_ = blueInstanceGroupUrls_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.blueInstanceGroupUrls_ = blueInstanceGroupUrls_; + if (((bitField0_ & 0x00000002) != 0)) { + greenInstanceGroupUrls_ = greenInstanceGroupUrls_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.greenInstanceGroupUrls_ = greenInstanceGroupUrls_; + result.bluePoolDeletionStartTime_ = bluePoolDeletionStartTime_; + result.greenPoolVersion_ = greenPoolVersion_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NodePool.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_ = (bitField0_ & ~0x00000001); + } else { + ensureBlueInstanceGroupUrlsIsMutable(); + blueInstanceGroupUrls_.addAll(other.blueInstanceGroupUrls_); + } + onChanged(); + } + if (!other.greenInstanceGroupUrls_.isEmpty()) { + if (greenInstanceGroupUrls_.isEmpty()) { + greenInstanceGroupUrls_ = other.greenInstanceGroupUrls_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureGreenInstanceGroupUrlsIsMutable(); + greenInstanceGroupUrls_.addAll(other.greenInstanceGroupUrls_); + } + onChanged(); + } + if (!other.getBluePoolDeletionStartTime().isEmpty()) { + bluePoolDeletionStartTime_ = other.bluePoolDeletionStartTime_; + onChanged(); + } + if (!other.getGreenPoolVersion().isEmpty()) { + greenPoolVersion_ = other.greenPoolVersion_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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(); + + break; + } // case 34 + case 42: + { + greenPoolVersion_ = input.readStringRequireUtf8(); + + 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; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase result = + com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase.valueOf(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(); + } + + 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() { + + phase_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList blueInstanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureBlueInstanceGroupUrlsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + blueInstanceGroupUrls_ = + new com.google.protobuf.LazyStringArrayList(blueInstanceGroupUrls_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+         * 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_.getUnmodifiableView(); + } + /** + * + * + *
+         * 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); + 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); + 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_); + 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.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + 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); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList greenInstanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureGreenInstanceGroupUrlsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + greenInstanceGroupUrls_ = + new com.google.protobuf.LazyStringArrayList(greenInstanceGroupUrls_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+         * 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_.getUnmodifiableView(); + } + /** + * + * + *
+         * 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); + 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); + 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_); + 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.EMPTY; + 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 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); + 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; + 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(); + 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; + 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; + onChanged(); + return this; + } + /** + * + * + *
+         * Version of green pool.
+         * 
+ * + * string green_pool_version = 5; + * + * @return This builder for chaining. + */ + public Builder clearGreenPoolVersion() { + + greenPoolVersion_ = getDefaultInstance().getGreenPoolVersion(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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; + } + } + + 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 blueGreenInfo_ != null; + } + /** + * + * + *
+     * 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 getBlueGreenInfo(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (blueGreenInfo_ != null) { + output.writeMessage(1, getBlueGreenInfo()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (blueGreenInfo_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (blueGreenInfoBuilder_ == null) { + blueGreenInfo_ = null; + } else { + blueGreenInfo_ = null; + 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 (blueGreenInfoBuilder_ == null) { + result.blueGreenInfo_ = blueGreenInfo_; + } else { + result.blueGreenInfo_ = blueGreenInfoBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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); + + 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 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 blueGreenInfoBuilder_ != null || blueGreenInfo_ != null; + } + /** + * + * + *
+       * 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; + onChanged(); + } else { + blueGreenInfoBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + blueGreenInfoBuilder_.setMessage(builderForValue.build()); + } + + 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 (blueGreenInfo_ != null) { + blueGreenInfo_ = + com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.newBuilder(blueGreenInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + blueGreenInfo_ = value; + } + onChanged(); + } else { + blueGreenInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Information of a blue-green upgrade.
+       * 
+ * + * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + */ + public Builder clearBlueGreenInfo() { + if (blueGreenInfoBuilder_ == null) { + blueGreenInfo_ = null; + onChanged(); + } else { + blueGreenInfo_ = null; + blueGreenInfoBuilder_ = null; + } + + 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() { + + 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 static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name of the node pool.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the node pool.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONFIG_FIELD_NUMBER = 2; + private com.google.container.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 config_ != null; + } + /** + * + * + *
+   * 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 getConfig(); + } + + public static final int INITIAL_NODE_COUNT_FIELD_NUMBER = 3; + private int initialNodeCount_; + /** + * + * + *
+   * The initial node count for the pool. You must ensure that your
+   * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
+   * is sufficient for this number of instances. You must also have available
+   * firewall and routes quota.
+   * 
+ * + * int32 initial_node_count = 3; + * + * @return The initialNodeCount. + */ + @java.lang.Override + public int getInitialNodeCount() { + return initialNodeCount_; + } + + public static final int LOCATIONS_FIELD_NUMBER = 13; + private com.google.protobuf.LazyStringList locations_; + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes should be located.
+   * If this value is unspecified during node pool creation, the
+   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+   * value will be used, instead.
+   * Warning: changing node pool locations will result in nodes being added
+   * and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return A list containing the locations. + */ + public com.google.protobuf.ProtocolStringList getLocationsList() { + return locations_; + } + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes should be located.
+   * If this value is unspecified during node pool creation, the
+   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+   * value will be used, instead.
+   * Warning: changing node pool locations will result in nodes being added
+   * and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return The count of locations. + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes should be located.
+   * If this value is unspecified during node pool creation, the
+   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+   * value will be used, instead.
+   * Warning: changing node pool locations will result in nodes being added
+   * and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes should be located.
+   * If this value is unspecified during node pool creation, the
+   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+   * value will be used, instead.
+   * Warning: changing node pool locations will result in nodes being added
+   * and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + public com.google.protobuf.ByteString getLocationsBytes(int index) { + return locations_.getByteString(index); + } + + public static final int NETWORK_CONFIG_FIELD_NUMBER = 14; + private com.google.container.v1.NodeNetworkConfig networkConfig_; + /** + * + * + *
+   * Networking configuration for this NodePool. If specified, it overrides the
+   * cluster-level defaults.
+   * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + * + * @return Whether the networkConfig field is set. + */ + @java.lang.Override + public boolean hasNetworkConfig() { + return networkConfig_ != null; + } + /** + * + * + *
+   * Networking configuration for this NodePool. If specified, it overrides the
+   * cluster-level defaults.
+   * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + * + * @return The networkConfig. + */ + @java.lang.Override + public com.google.container.v1.NodeNetworkConfig getNetworkConfig() { + return networkConfig_ == null + ? com.google.container.v1.NodeNetworkConfig.getDefaultInstance() + : networkConfig_; + } + /** + * + * + *
+   * Networking configuration for this NodePool. If specified, it overrides the
+   * cluster-level defaults.
+   * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + */ + @java.lang.Override + public com.google.container.v1.NodeNetworkConfigOrBuilder getNetworkConfigOrBuilder() { + return getNetworkConfig(); + } + + public static final int SELF_LINK_FIELD_NUMBER = 100; + private volatile java.lang.Object selfLink_; + /** + * + * + *
+   * [Output only] Server-defined URL for the resource.
+   * 
+ * + * string self_link = 100; + * + * @return The selfLink. + */ + @java.lang.Override + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] Server-defined URL for the resource.
+   * 
+ * + * string self_link = 100; + * + * @return The bytes for selfLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 101; + private volatile java.lang.Object version_; + /** + * + * + *
+   * The version of the Kubernetes of this node.
+   * 
+ * + * string version = 101; + * + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + * + * + *
+   * The version of the Kubernetes of this node.
+   * 
+ * + * string version = 101; + * + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTANCE_GROUP_URLS_FIELD_NUMBER = 102; + private com.google.protobuf.LazyStringList instanceGroupUrls_; + /** + * + * + *
+   * [Output only] The resource URLs of the [managed instance
+   * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
+   * associated with this node pool.
+   * 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_; + /** + * + * + *
+   * [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() { + @SuppressWarnings("deprecation") + com.google.container.v1.NodePool.Status result = + com.google.container.v1.NodePool.Status.valueOf(status_); + return result == null ? com.google.container.v1.NodePool.Status.UNRECOGNIZED : result; + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 104; + private volatile java.lang.Object statusMessage_; + /** + * + * + *
+   * [Output only] Deprecated. Use conditions instead.
+   * Additional information about the current status of this
+   * node pool instance, if available.
+   * 
+ * + * string status_message = 104 [deprecated = true]; + * + * @deprecated google.container.v1.NodePool.status_message is deprecated. See + * google/container/v1/cluster_service.proto;l=3043 + * @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=3043 + * @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 autoscaling_ != null; + } + /** + * + * + *
+   * 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 getAutoscaling(); + } + + 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 management_ != null; + } + /** + * + * + *
+   * 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 getManagement(); + } + + 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 maxPodsConstraint_ != null; + } + /** + * + * + *
+   * 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 getMaxPodsConstraint(); + } + + public static final int CONDITIONS_FIELD_NUMBER = 105; + private java.util.List conditions_; + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.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_; + /** + * + * + *
+   * [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 upgradeSettings_ != null; + } + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + * + * @return The upgradeSettings. + */ + @java.lang.Override + public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { + return upgradeSettings_ == null + ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() + : upgradeSettings_; + } + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + @java.lang.Override + public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { + return getUpgradeSettings(); + } + + 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 updateInfo_ != null; + } + /** + * + * + *
+   * 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 getUpdateInfo(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 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 (config_ != null) { + output.writeMessage(2, getConfig()); + } + if (initialNodeCount_ != 0) { + output.writeInt32(3, initialNodeCount_); + } + if (autoscaling_ != null) { + output.writeMessage(4, getAutoscaling()); + } + if (management_ != null) { + output.writeMessage(5, getManagement()); + } + if (maxPodsConstraint_ != null) { + output.writeMessage(6, getMaxPodsConstraint()); + } + if (podIpv4CidrSize_ != 0) { + output.writeInt32(7, podIpv4CidrSize_); + } + for (int i = 0; i < locations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, locations_.getRaw(i)); + } + if (networkConfig_ != null) { + 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 (upgradeSettings_ != null) { + output.writeMessage(107, getUpgradeSettings()); + } + if (updateInfo_ != null) { + output.writeMessage(109, getUpdateInfo()); + } + getUnknownFields().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 (config_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConfig()); + } + if (initialNodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, initialNodeCount_); + } + if (autoscaling_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAutoscaling()); + } + if (management_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getManagement()); + } + if (maxPodsConstraint_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getMaxPodsConstraint()); + } + if (podIpv4CidrSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, podIpv4CidrSize_); + } + { + int dataSize = 0; + for (int i = 0; i < locations_.size(); i++) { + dataSize += computeStringSizeNoTag(locations_.getRaw(i)); + } + size += dataSize; + size += 1 * getLocationsList().size(); + } + if (networkConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getNetworkConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, selfLink_); + } + 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 (upgradeSettings_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(107, getUpgradeSettings()); + } + if (updateInfo_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(109, getUpdateInfo()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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 (hasUpdateInfo() != other.hasUpdateInfo()) return false; + if (hasUpdateInfo()) { + if (!getUpdateInfo().equals(other.getUpdateInfo())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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 (hasUpdateInfo()) { + hash = (37 * hash) + UPDATE_INFO_FIELD_NUMBER; + hash = (53 * hash) + getUpdateInfo().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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (configBuilder_ == null) { + config_ = null; + } else { + config_ = null; + configBuilder_ = null; + } + initialNodeCount_ = 0; + + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (networkConfigBuilder_ == null) { + networkConfig_ = null; + } else { + networkConfig_ = null; + networkConfigBuilder_ = null; + } + selfLink_ = ""; + + version_ = ""; + + instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + status_ = 0; + + statusMessage_ = ""; + + if (autoscalingBuilder_ == null) { + autoscaling_ = null; + } else { + autoscaling_ = null; + autoscalingBuilder_ = null; + } + if (managementBuilder_ == null) { + management_ = null; + } else { + management_ = null; + managementBuilder_ = null; + } + if (maxPodsConstraintBuilder_ == null) { + maxPodsConstraint_ = null; + } else { + maxPodsConstraint_ = null; + maxPodsConstraintBuilder_ = null; + } + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + } else { + conditions_ = null; + conditionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + podIpv4CidrSize_ = 0; + + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = null; + } else { + upgradeSettings_ = null; + upgradeSettingsBuilder_ = null; + } + if (updateInfoBuilder_ == null) { + updateInfo_ = null; + } else { + updateInfo_ = null; + updateInfoBuilder_ = 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); + int from_bitField0_ = bitField0_; + result.name_ = name_; + if (configBuilder_ == null) { + result.config_ = config_; + } else { + result.config_ = configBuilder_.build(); + } + result.initialNodeCount_ = initialNodeCount_; + if (((bitField0_ & 0x00000001) != 0)) { + locations_ = locations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.locations_ = locations_; + if (networkConfigBuilder_ == null) { + result.networkConfig_ = networkConfig_; + } else { + result.networkConfig_ = networkConfigBuilder_.build(); + } + result.selfLink_ = selfLink_; + result.version_ = version_; + if (((bitField0_ & 0x00000002) != 0)) { + instanceGroupUrls_ = instanceGroupUrls_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.instanceGroupUrls_ = instanceGroupUrls_; + result.status_ = status_; + result.statusMessage_ = statusMessage_; + if (autoscalingBuilder_ == null) { + result.autoscaling_ = autoscaling_; + } else { + result.autoscaling_ = autoscalingBuilder_.build(); + } + if (managementBuilder_ == null) { + result.management_ = management_; + } else { + result.management_ = managementBuilder_.build(); + } + if (maxPodsConstraintBuilder_ == null) { + result.maxPodsConstraint_ = maxPodsConstraint_; + } else { + result.maxPodsConstraint_ = maxPodsConstraintBuilder_.build(); + } + if (conditionsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.conditions_ = conditions_; + } else { + result.conditions_ = conditionsBuilder_.build(); + } + result.podIpv4CidrSize_ = podIpv4CidrSize_; + if (upgradeSettingsBuilder_ == null) { + result.upgradeSettings_ = upgradeSettings_; + } else { + result.upgradeSettings_ = upgradeSettingsBuilder_.build(); + } + if (updateInfoBuilder_ == null) { + result.updateInfo_ = updateInfo_; + } else { + result.updateInfo_ = updateInfoBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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_; + onChanged(); + } + if (other.hasConfig()) { + mergeConfig(other.getConfig()); + } + if (other.getInitialNodeCount() != 0) { + setInitialNodeCount(other.getInitialNodeCount()); + } + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + if (other.hasNetworkConfig()) { + mergeNetworkConfig(other.getNetworkConfig()); + } + if (!other.getSelfLink().isEmpty()) { + selfLink_ = other.selfLink_; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (!other.instanceGroupUrls_.isEmpty()) { + if (instanceGroupUrls_.isEmpty()) { + instanceGroupUrls_ = other.instanceGroupUrls_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.addAll(other.instanceGroupUrls_); + } + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + onChanged(); + } + if (other.hasAutoscaling()) { + mergeAutoscaling(other.getAutoscaling()); + } + if (other.hasManagement()) { + mergeManagement(other.getManagement()); + } + if (other.hasMaxPodsConstraint()) { + mergeMaxPodsConstraint(other.getMaxPodsConstraint()); + } + if (conditionsBuilder_ == null) { + if (!other.conditions_.isEmpty()) { + if (conditions_.isEmpty()) { + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureConditionsIsMutable(); + conditions_.addAll(other.conditions_); + } + onChanged(); + } + } else { + if (!other.conditions_.isEmpty()) { + if (conditionsBuilder_.isEmpty()) { + conditionsBuilder_.dispose(); + conditionsBuilder_ = null; + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000004); + conditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getConditionsFieldBuilder() + : null; + } else { + conditionsBuilder_.addAllMessages(other.conditions_); + } + } + } + if (other.getPodIpv4CidrSize() != 0) { + setPodIpv4CidrSize(other.getPodIpv4CidrSize()); + } + if (other.hasUpgradeSettings()) { + mergeUpgradeSettings(other.getUpgradeSettings()); + } + if (other.hasUpdateInfo()) { + mergeUpdateInfo(other.getUpdateInfo()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 24: + { + initialNodeCount_ = input.readInt32(); + + break; + } // case 24 + case 34: + { + input.readMessage(getAutoscalingFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + input.readMessage(getManagementFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 50: + { + input.readMessage( + getMaxPodsConstraintFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 56: + { + podIpv4CidrSize_ = input.readInt32(); + + 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); + + break; + } // case 114 + case 802: + { + selfLink_ = input.readStringRequireUtf8(); + + break; + } // case 802 + case 810: + { + version_ = input.readStringRequireUtf8(); + + break; + } // case 810 + case 818: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.add(s); + break; + } // case 818 + case 824: + { + status_ = input.readEnum(); + + break; + } // case 824 + case 834: + { + statusMessage_ = input.readStringRequireUtf8(); + + 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); + + break; + } // case 858 + case 874: + { + input.readMessage(getUpdateInfoFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 874 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // 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; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the node pool.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the node pool.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.container.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 configBuilder_ != null || config_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + configBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + configBuilder_.setMessage(builderForValue.build()); + } + + 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 (config_ != null) { + config_ = + com.google.container.v1.NodeConfig.newBuilder(config_) + .mergeFrom(value) + .buildPartial(); + } else { + config_ = value; + } + onChanged(); + } else { + configBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1.NodeConfig config = 2; + */ + public Builder clearConfig() { + if (configBuilder_ == null) { + config_ = null; + onChanged(); + } else { + config_ = null; + configBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1.NodeConfig config = 2; + */ + public com.google.container.v1.NodeConfig.Builder getConfigBuilder() { + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * The initial node count for the pool. You must ensure that your
+     * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
+     * is sufficient for this number of instances. You must also have available
+     * firewall and routes quota.
+     * 
+ * + * int32 initial_node_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearInitialNodeCount() { + + initialNodeCount_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList locations_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureLocationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + locations_ = new com.google.protobuf.LazyStringArrayList(locations_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes should be located.
+     * If this value is unspecified during node pool creation, the
+     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+     * value will be used, instead.
+     * Warning: changing node pool locations will result in nodes being added
+     * and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @return A list containing the locations. + */ + public com.google.protobuf.ProtocolStringList getLocationsList() { + return locations_.getUnmodifiableView(); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes should be located.
+     * If this value is unspecified during node pool creation, the
+     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+     * value will be used, instead.
+     * Warning: changing node pool locations will result in nodes being added
+     * and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @return The count of locations. + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes should be located.
+     * If this value is unspecified during node pool creation, the
+     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+     * value will be used, instead.
+     * Warning: changing node pool locations will result in nodes being added
+     * and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes should be located.
+     * If this value is unspecified during node pool creation, the
+     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+     * value will be used, instead.
+     * Warning: changing node pool locations will result in nodes being added
+     * and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + public com.google.protobuf.ByteString getLocationsBytes(int index) { + return locations_.getByteString(index); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes should be located.
+     * If this value is unspecified during node pool creation, the
+     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+     * value will be used, instead.
+     * Warning: changing node pool locations will result in nodes being added
+     * and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param index The index to set the value at. + * @param value The locations to set. + * @return This builder for chaining. + */ + public Builder setLocations(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes should be located.
+     * If this value is unspecified during node pool creation, the
+     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+     * value will be used, instead.
+     * Warning: changing node pool locations will result in nodes being added
+     * and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param value The locations to add. + * @return This builder for chaining. + */ + public Builder addLocations(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes should be located.
+     * If this value is unspecified during node pool creation, the
+     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+     * value will be used, instead.
+     * Warning: changing node pool locations will result in nodes being added
+     * and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param values The locations to add. + * @return This builder for chaining. + */ + public Builder addAllLocations(java.lang.Iterable values) { + ensureLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes should be located.
+     * If this value is unspecified during node pool creation, the
+     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+     * value will be used, instead.
+     * Warning: changing node pool locations will result in nodes being added
+     * and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @return This builder for chaining. + */ + public Builder clearLocations() { + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes should be located.
+     * If this value is unspecified during node pool creation, the
+     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+     * value will be used, instead.
+     * Warning: changing node pool locations will result in nodes being added
+     * and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param value The bytes of the locations to add. + * @return This builder for chaining. + */ + public Builder addLocationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + return this; + } + + private com.google.container.v1.NodeNetworkConfig networkConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeNetworkConfig, + com.google.container.v1.NodeNetworkConfig.Builder, + com.google.container.v1.NodeNetworkConfigOrBuilder> + networkConfigBuilder_; + /** + * + * + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + * + * @return Whether the networkConfig field is set. + */ + public boolean hasNetworkConfig() { + return networkConfigBuilder_ != null || networkConfig_ != null; + } + /** + * + * + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + * + * @return The networkConfig. + */ + public com.google.container.v1.NodeNetworkConfig getNetworkConfig() { + if (networkConfigBuilder_ == null) { + return networkConfig_ == null + ? com.google.container.v1.NodeNetworkConfig.getDefaultInstance() + : networkConfig_; + } else { + return networkConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + */ + public Builder setNetworkConfig(com.google.container.v1.NodeNetworkConfig value) { + if (networkConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkConfig_ = value; + onChanged(); + } else { + networkConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + */ + public Builder setNetworkConfig( + com.google.container.v1.NodeNetworkConfig.Builder builderForValue) { + if (networkConfigBuilder_ == null) { + networkConfig_ = builderForValue.build(); + onChanged(); + } else { + networkConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + */ + public Builder mergeNetworkConfig(com.google.container.v1.NodeNetworkConfig value) { + if (networkConfigBuilder_ == null) { + if (networkConfig_ != null) { + networkConfig_ = + com.google.container.v1.NodeNetworkConfig.newBuilder(networkConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + networkConfig_ = value; + } + onChanged(); + } else { + networkConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + */ + public Builder clearNetworkConfig() { + if (networkConfigBuilder_ == null) { + networkConfig_ = null; + onChanged(); + } else { + networkConfig_ = null; + networkConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + */ + public com.google.container.v1.NodeNetworkConfig.Builder getNetworkConfigBuilder() { + + onChanged(); + return getNetworkConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + */ + public com.google.container.v1.NodeNetworkConfigOrBuilder getNetworkConfigOrBuilder() { + if (networkConfigBuilder_ != null) { + return networkConfigBuilder_.getMessageOrBuilder(); + } else { + return networkConfig_ == null + ? com.google.container.v1.NodeNetworkConfig.getDefaultInstance() + : networkConfig_; + } + } + /** + * + * + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeNetworkConfig, + com.google.container.v1.NodeNetworkConfig.Builder, + com.google.container.v1.NodeNetworkConfigOrBuilder> + getNetworkConfigFieldBuilder() { + if (networkConfigBuilder_ == null) { + networkConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeNetworkConfig, + com.google.container.v1.NodeNetworkConfig.Builder, + com.google.container.v1.NodeNetworkConfigOrBuilder>( + getNetworkConfig(), getParentForChildren(), isClean()); + networkConfig_ = null; + } + return networkConfigBuilder_; + } + + private java.lang.Object selfLink_ = ""; + /** + * + * + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + * + * @return The selfLink. + */ + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + * + * @return The bytes for selfLink. + */ + public com.google.protobuf.ByteString getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + * + * @param value The selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + selfLink_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + * + * @return This builder for chaining. + */ + public Builder clearSelfLink() { + + selfLink_ = getDefaultInstance().getSelfLink(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + * + * @param value The bytes for selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + selfLink_ = value; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + /** + * + * + *
+     * The version of the Kubernetes of this node.
+     * 
+ * + * string version = 101; + * + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The version of the Kubernetes of this node.
+     * 
+ * + * string version = 101; + * + * @return The bytes for version. + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The version of the Kubernetes of this node.
+     * 
+ * + * string version = 101; + * + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The version of the Kubernetes of this node.
+     * 
+ * + * string version = 101; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * The version of the Kubernetes of this node.
+     * 
+ * + * string version = 101; + * + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList instanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureInstanceGroupUrlsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(instanceGroupUrls_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * [Output only] The resource URLs of the [managed instance
+     * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
+     * associated with this node pool.
+     * 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_.getUnmodifiableView(); + } + /** + * + * + *
+     * [Output only] The resource URLs of the [managed instance
+     * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
+     * associated with this node pool.
+     * 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); + 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); + 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_); + 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.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The resource URLs of the [managed instance
+     * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
+     * associated with this node pool.
+     * 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); + 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; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1.NodePool.Status result = + com.google.container.v1.NodePool.Status.valueOf(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(); + } + + 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() { + + 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=3043 + * @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=3043 + * @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=3043 + * @param value The statusMessage to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setStatusMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + statusMessage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Deprecated. Use conditions instead.
+     * Additional information about the current status of this
+     * node pool instance, if available.
+     * 
+ * + * string status_message = 104 [deprecated = true]; + * + * @deprecated google.container.v1.NodePool.status_message is deprecated. See + * google/container/v1/cluster_service.proto;l=3043 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearStatusMessage() { + + statusMessage_ = getDefaultInstance().getStatusMessage(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Deprecated. Use conditions instead.
+     * Additional information about the current status of this
+     * node pool instance, if available.
+     * 
+ * + * string status_message = 104 [deprecated = true]; + * + * @deprecated google.container.v1.NodePool.status_message is deprecated. See + * google/container/v1/cluster_service.proto;l=3043 + * @param value The bytes for statusMessage to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + statusMessage_ = value; + onChanged(); + return this; + } + + private com.google.container.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 autoscalingBuilder_ != null || autoscaling_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + autoscalingBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + autoscalingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1.NodePoolAutoscaling autoscaling = 4; + */ + public Builder mergeAutoscaling(com.google.container.v1.NodePoolAutoscaling value) { + if (autoscalingBuilder_ == null) { + if (autoscaling_ != null) { + autoscaling_ = + com.google.container.v1.NodePoolAutoscaling.newBuilder(autoscaling_) + .mergeFrom(value) + .buildPartial(); + } else { + autoscaling_ = value; + } + onChanged(); + } else { + autoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1.NodePoolAutoscaling autoscaling = 4; + */ + public Builder clearAutoscaling() { + if (autoscalingBuilder_ == null) { + autoscaling_ = null; + onChanged(); + } else { + autoscaling_ = null; + autoscalingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1.NodePoolAutoscaling autoscaling = 4; + */ + public com.google.container.v1.NodePoolAutoscaling.Builder getAutoscalingBuilder() { + + 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 managementBuilder_ != null || management_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + managementBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + managementBuilder_.setMessage(builderForValue.build()); + } + + 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 (management_ != null) { + management_ = + com.google.container.v1.NodeManagement.newBuilder(management_) + .mergeFrom(value) + .buildPartial(); + } else { + management_ = value; + } + onChanged(); + } else { + managementBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1.NodeManagement management = 5; + */ + public Builder clearManagement() { + if (managementBuilder_ == null) { + management_ = null; + onChanged(); + } else { + management_ = null; + managementBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1.NodeManagement management = 5; + */ + public com.google.container.v1.NodeManagement.Builder getManagementBuilder() { + + 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 maxPodsConstraintBuilder_ != null || maxPodsConstraint_ != null; + } + /** + * + * + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.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; + onChanged(); + } else { + maxPodsConstraintBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; + */ + public Builder setMaxPodsConstraint( + com.google.container.v1.MaxPodsConstraint.Builder builderForValue) { + if (maxPodsConstraintBuilder_ == null) { + maxPodsConstraint_ = builderForValue.build(); + onChanged(); + } else { + maxPodsConstraintBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; + */ + public Builder mergeMaxPodsConstraint(com.google.container.v1.MaxPodsConstraint value) { + if (maxPodsConstraintBuilder_ == null) { + if (maxPodsConstraint_ != null) { + maxPodsConstraint_ = + com.google.container.v1.MaxPodsConstraint.newBuilder(maxPodsConstraint_) + .mergeFrom(value) + .buildPartial(); + } else { + maxPodsConstraint_ = value; + } + onChanged(); + } else { + maxPodsConstraintBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; + */ + public Builder clearMaxPodsConstraint() { + if (maxPodsConstraintBuilder_ == null) { + maxPodsConstraint_ = null; + onChanged(); + } else { + maxPodsConstraint_ = null; + maxPodsConstraintBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; + */ + public com.google.container.v1.MaxPodsConstraint.Builder getMaxPodsConstraintBuilder() { + + onChanged(); + return getMaxPodsConstraintFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.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_ & 0x00000004) != 0)) { + conditions_ = new java.util.ArrayList(conditions_); + bitField0_ |= 0x00000004; + } + } + + 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_ & ~0x00000004); + 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_ & 0x00000004) != 0), getParentForChildren(), isClean()); + conditions_ = null; + } + return conditionsBuilder_; + } + + private int podIpv4CidrSize_; + /** + * + * + *
+     * [Output only] The pod CIDR block size per node in this node pool.
+     * 
+ * + * int32 pod_ipv4_cidr_size = 7; + * + * @return The podIpv4CidrSize. + */ + @java.lang.Override + public int getPodIpv4CidrSize() { + return podIpv4CidrSize_; + } + /** + * + * + *
+     * [Output only] The pod CIDR block size per node in this node pool.
+     * 
+ * + * int32 pod_ipv4_cidr_size = 7; + * + * @param value The podIpv4CidrSize to set. + * @return This builder for chaining. + */ + public Builder setPodIpv4CidrSize(int value) { + + podIpv4CidrSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The pod CIDR block size per node in this node pool.
+     * 
+ * + * int32 pod_ipv4_cidr_size = 7; + * + * @return This builder for chaining. + */ + public Builder clearPodIpv4CidrSize() { + + podIpv4CidrSize_ = 0; + onChanged(); + return this; + } + + private com.google.container.v1.NodePool.UpgradeSettings upgradeSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.UpgradeSettings, + com.google.container.v1.NodePool.UpgradeSettings.Builder, + com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> + upgradeSettingsBuilder_; + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + * + * @return Whether the upgradeSettings field is set. + */ + public boolean hasUpgradeSettings() { + return upgradeSettingsBuilder_ != null || upgradeSettings_ != null; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + * + * @return The upgradeSettings. + */ + public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { + if (upgradeSettingsBuilder_ == null) { + return upgradeSettings_ == null + ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() + : upgradeSettings_; + } else { + return upgradeSettingsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + public Builder setUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { + if (upgradeSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + upgradeSettings_ = value; + onChanged(); + } else { + upgradeSettingsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + public Builder setUpgradeSettings( + com.google.container.v1.NodePool.UpgradeSettings.Builder builderForValue) { + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = builderForValue.build(); + onChanged(); + } else { + upgradeSettingsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + public Builder mergeUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { + if (upgradeSettingsBuilder_ == null) { + if (upgradeSettings_ != null) { + upgradeSettings_ = + com.google.container.v1.NodePool.UpgradeSettings.newBuilder(upgradeSettings_) + .mergeFrom(value) + .buildPartial(); + } else { + upgradeSettings_ = value; + } + onChanged(); + } else { + upgradeSettingsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + public Builder clearUpgradeSettings() { + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = null; + onChanged(); + } else { + upgradeSettings_ = null; + upgradeSettingsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + public com.google.container.v1.NodePool.UpgradeSettings.Builder getUpgradeSettingsBuilder() { + + onChanged(); + return getUpgradeSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { + if (upgradeSettingsBuilder_ != null) { + return upgradeSettingsBuilder_.getMessageOrBuilder(); + } else { + return upgradeSettings_ == null + ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() + : upgradeSettings_; + } + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.UpgradeSettings, + com.google.container.v1.NodePool.UpgradeSettings.Builder, + com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> + getUpgradeSettingsFieldBuilder() { + if (upgradeSettingsBuilder_ == null) { + upgradeSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.UpgradeSettings, + com.google.container.v1.NodePool.UpgradeSettings.Builder, + com.google.container.v1.NodePool.UpgradeSettingsOrBuilder>( + getUpgradeSettings(), getParentForChildren(), isClean()); + upgradeSettings_ = null; + } + return upgradeSettingsBuilder_; + } + + 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 updateInfoBuilder_ != null || updateInfo_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + updateInfoBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + updateInfoBuilder_.setMessage(builderForValue.build()); + } + + 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 (updateInfo_ != null) { + updateInfo_ = + com.google.container.v1.NodePool.UpdateInfo.newBuilder(updateInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + updateInfo_ = value; + } + onChanged(); + } else { + updateInfoBuilder_.mergeFrom(value); + } + + 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() { + if (updateInfoBuilder_ == null) { + updateInfo_ = null; + onChanged(); + } else { + updateInfo_ = null; + updateInfoBuilder_ = null; + } + + 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() { + + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..7daa3b1553c4 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoConfig.java @@ -0,0 +1,740 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Node 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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); + } + + 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 networkTags_ != null; + } + /** + * + * + *
+   * 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 getNetworkTags(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (networkTags_ != null) { + output.writeMessage(1, getNetworkTags()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (networkTags_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNetworkTags()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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 (!getUnknownFields().equals(other.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(); + } + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (networkTagsBuilder_ == null) { + networkTags_ = null; + } else { + networkTags_ = null; + networkTagsBuilder_ = 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 (networkTagsBuilder_ == null) { + result.networkTags_ = networkTags_; + } else { + result.networkTags_ = networkTagsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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); + + 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 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 networkTagsBuilder_ != null || networkTags_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + networkTagsBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + networkTagsBuilder_.setMessage(builderForValue.build()); + } + + 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 (networkTags_ != null) { + networkTags_ = + com.google.container.v1.NetworkTags.newBuilder(networkTags_) + .mergeFrom(value) + .buildPartial(); + } else { + networkTags_ = value; + } + onChanged(); + } else { + networkTagsBuilder_.mergeFrom(value); + } + + 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() { + if (networkTagsBuilder_ == null) { + networkTags_ = null; + onChanged(); + } else { + networkTags_ = null; + networkTagsBuilder_ = null; + } + + 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() { + + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..0f3dd0c0ed9b --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoConfigOrBuilder.java @@ -0,0 +1,69 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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(); +} 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 new file mode 100644 index 000000000000..5977f2226662 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscaling.java @@ -0,0 +1,1334 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * Is autoscaling enabled for this node pool.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int MIN_NODE_COUNT_FIELD_NUMBER = 2; + private int minNodeCount_; + /** + * + * + *
+   * Minimum number of nodes 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_; + /** + * + * + *
+   * 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_; + /** + * + * + *
+   * 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_; + /** + * + * + *
+   * 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() { + @SuppressWarnings("deprecation") + com.google.container.v1.NodePoolAutoscaling.LocationPolicy result = + com.google.container.v1.NodePoolAutoscaling.LocationPolicy.valueOf(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_; + /** + * + * + *
+   * 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_; + /** + * + * + *
+   * 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(); + 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); + result.enabled_ = enabled_; + result.minNodeCount_ = minNodeCount_; + result.maxNodeCount_ = maxNodeCount_; + result.autoprovisioned_ = autoprovisioned_; + result.locationPolicy_ = locationPolicy_; + result.totalMinNodeCount_ = totalMinNodeCount_; + result.totalMaxNodeCount_ = totalMaxNodeCount_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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(); + + break; + } // case 8 + case 16: + { + minNodeCount_ = input.readInt32(); + + break; + } // case 16 + case 24: + { + maxNodeCount_ = input.readInt32(); + + break; + } // case 24 + case 32: + { + autoprovisioned_ = input.readBool(); + + break; + } // case 32 + case 40: + { + locationPolicy_ = input.readEnum(); + + break; + } // case 40 + case 48: + { + totalMinNodeCount_ = input.readInt32(); + + break; + } // case 48 + case 56: + { + totalMaxNodeCount_ = input.readInt32(); + + 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 boolean enabled_; + /** + * + * + *
+     * Is autoscaling enabled for this node pool.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Is autoscaling enabled for this node pool.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Is autoscaling enabled for this node pool.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + private int minNodeCount_; + /** + * + * + *
+     * Minimum number of nodes 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; + 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() { + + 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; + 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() { + + maxNodeCount_ = 0; + onChanged(); + return this; + } + + private boolean autoprovisioned_; + /** + * + * + *
+     * Can this node pool be deleted automatically.
+     * 
+ * + * bool autoprovisioned = 4; + * + * @return The autoprovisioned. + */ + @java.lang.Override + public boolean getAutoprovisioned() { + return autoprovisioned_; + } + /** + * + * + *
+     * Can this node pool be deleted automatically.
+     * 
+ * + * bool autoprovisioned = 4; + * + * @param value The autoprovisioned to set. + * @return This builder for chaining. + */ + public Builder setAutoprovisioned(boolean value) { + + autoprovisioned_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Can this node pool be deleted automatically.
+     * 
+ * + * bool autoprovisioned = 4; + * + * @return This builder for chaining. + */ + public Builder clearAutoprovisioned() { + + autoprovisioned_ = false; + onChanged(); + return this; + } + + 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; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1.NodePoolAutoscaling.LocationPolicy result = + com.google.container.v1.NodePoolAutoscaling.LocationPolicy.valueOf(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(); + } + + 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() { + + 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; + 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() { + + 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; + 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() { + + 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 new file mode 100644 index 000000000000..49de5039c911 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscalingOrBuilder.java @@ -0,0 +1,136 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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 new file mode 100644 index 000000000000..5c857df3af48 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolDefaults.java @@ -0,0 +1,703 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Subset of Nodepool message that has defaults.
+ * 
+ * + * Protobuf type {@code google.container.v1.NodePoolDefaults} + */ +public final class NodePoolDefaults extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.NodePoolDefaults) + NodePoolDefaultsOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodePoolDefaults.newBuilder() to construct. + private NodePoolDefaults(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NodePoolDefaults() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NodePoolDefaults(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NodePoolDefaults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NodePoolDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodePoolDefaults.class, + com.google.container.v1.NodePoolDefaults.Builder.class); + } + + public static final int NODE_CONFIG_DEFAULTS_FIELD_NUMBER = 1; + private com.google.container.v1.NodeConfigDefaults nodeConfigDefaults_; + /** + * + * + *
+   * Subset of NodeConfig message that has defaults.
+   * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + * + * @return Whether the nodeConfigDefaults field is set. + */ + @java.lang.Override + public boolean hasNodeConfigDefaults() { + return nodeConfigDefaults_ != null; + } + /** + * + * + *
+   * Subset of NodeConfig message that has defaults.
+   * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + * + * @return The nodeConfigDefaults. + */ + @java.lang.Override + public com.google.container.v1.NodeConfigDefaults getNodeConfigDefaults() { + return nodeConfigDefaults_ == null + ? com.google.container.v1.NodeConfigDefaults.getDefaultInstance() + : nodeConfigDefaults_; + } + /** + * + * + *
+   * Subset of NodeConfig message that has defaults.
+   * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + */ + @java.lang.Override + public com.google.container.v1.NodeConfigDefaultsOrBuilder getNodeConfigDefaultsOrBuilder() { + return getNodeConfigDefaults(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (nodeConfigDefaults_ != null) { + output.writeMessage(1, getNodeConfigDefaults()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (nodeConfigDefaults_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNodeConfigDefaults()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (nodeConfigDefaultsBuilder_ == null) { + nodeConfigDefaults_ = null; + } else { + nodeConfigDefaults_ = null; + nodeConfigDefaultsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NodePoolDefaults_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NodePoolDefaults getDefaultInstanceForType() { + return com.google.container.v1.NodePoolDefaults.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NodePoolDefaults build() { + com.google.container.v1.NodePoolDefaults result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NodePoolDefaults buildPartial() { + com.google.container.v1.NodePoolDefaults result = + new com.google.container.v1.NodePoolDefaults(this); + if (nodeConfigDefaultsBuilder_ == null) { + result.nodeConfigDefaults_ = nodeConfigDefaults_; + } else { + result.nodeConfigDefaults_ = nodeConfigDefaultsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NodePoolDefaults) { + return mergeFrom((com.google.container.v1.NodePoolDefaults) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NodePoolDefaults other) { + if (other == com.google.container.v1.NodePoolDefaults.getDefaultInstance()) return this; + if (other.hasNodeConfigDefaults()) { + mergeNodeConfigDefaults(other.getNodeConfigDefaults()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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); + + 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 com.google.container.v1.NodeConfigDefaults nodeConfigDefaults_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeConfigDefaults, + com.google.container.v1.NodeConfigDefaults.Builder, + com.google.container.v1.NodeConfigDefaultsOrBuilder> + nodeConfigDefaultsBuilder_; + /** + * + * + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + * + * @return Whether the nodeConfigDefaults field is set. + */ + public boolean hasNodeConfigDefaults() { + return nodeConfigDefaultsBuilder_ != null || nodeConfigDefaults_ != null; + } + /** + * + * + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + * + * @return The nodeConfigDefaults. + */ + public com.google.container.v1.NodeConfigDefaults getNodeConfigDefaults() { + if (nodeConfigDefaultsBuilder_ == null) { + return nodeConfigDefaults_ == null + ? com.google.container.v1.NodeConfigDefaults.getDefaultInstance() + : nodeConfigDefaults_; + } else { + return nodeConfigDefaultsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + */ + public Builder setNodeConfigDefaults(com.google.container.v1.NodeConfigDefaults value) { + if (nodeConfigDefaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodeConfigDefaults_ = value; + onChanged(); + } else { + nodeConfigDefaultsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + */ + public Builder setNodeConfigDefaults( + com.google.container.v1.NodeConfigDefaults.Builder builderForValue) { + if (nodeConfigDefaultsBuilder_ == null) { + nodeConfigDefaults_ = builderForValue.build(); + onChanged(); + } else { + nodeConfigDefaultsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + */ + public Builder mergeNodeConfigDefaults(com.google.container.v1.NodeConfigDefaults value) { + if (nodeConfigDefaultsBuilder_ == null) { + if (nodeConfigDefaults_ != null) { + nodeConfigDefaults_ = + com.google.container.v1.NodeConfigDefaults.newBuilder(nodeConfigDefaults_) + .mergeFrom(value) + .buildPartial(); + } else { + nodeConfigDefaults_ = value; + } + onChanged(); + } else { + nodeConfigDefaultsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + */ + public Builder clearNodeConfigDefaults() { + if (nodeConfigDefaultsBuilder_ == null) { + nodeConfigDefaults_ = null; + onChanged(); + } else { + nodeConfigDefaults_ = null; + nodeConfigDefaultsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + */ + public com.google.container.v1.NodeConfigDefaults.Builder getNodeConfigDefaultsBuilder() { + + onChanged(); + return getNodeConfigDefaultsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + */ + public com.google.container.v1.NodeConfigDefaultsOrBuilder getNodeConfigDefaultsOrBuilder() { + if (nodeConfigDefaultsBuilder_ != null) { + return nodeConfigDefaultsBuilder_.getMessageOrBuilder(); + } else { + return nodeConfigDefaults_ == null + ? com.google.container.v1.NodeConfigDefaults.getDefaultInstance() + : nodeConfigDefaults_; + } + } + /** + * + * + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeConfigDefaults, + com.google.container.v1.NodeConfigDefaults.Builder, + com.google.container.v1.NodeConfigDefaultsOrBuilder> + getNodeConfigDefaultsFieldBuilder() { + if (nodeConfigDefaultsBuilder_ == null) { + nodeConfigDefaultsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeConfigDefaults, + com.google.container.v1.NodeConfigDefaults.Builder, + com.google.container.v1.NodeConfigDefaultsOrBuilder>( + getNodeConfigDefaults(), getParentForChildren(), isClean()); + nodeConfigDefaults_ = null; + } + return nodeConfigDefaultsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.NodePoolDefaults) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NodePoolDefaults) + private static final com.google.container.v1.NodePoolDefaults DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.NodePoolDefaults(); + } + + public static com.google.container.v1.NodePoolDefaults getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodePoolDefaults parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..bf1825798cb5 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolDefaultsOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface NodePoolDefaultsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NodePoolDefaults) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Subset of NodeConfig message that has defaults.
+   * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + * + * @return Whether the nodeConfigDefaults field is set. + */ + boolean hasNodeConfigDefaults(); + /** + * + * + *
+   * Subset of NodeConfig message that has defaults.
+   * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + * + * @return The nodeConfigDefaults. + */ + com.google.container.v1.NodeConfigDefaults getNodeConfigDefaults(); + /** + * + * + *
+   * Subset of NodeConfig message that has defaults.
+   * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + */ + com.google.container.v1.NodeConfigDefaultsOrBuilder getNodeConfigDefaultsOrBuilder(); +} diff --git a/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 new file mode 100644 index 000000000000..226f775d45ad --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolLoggingConfig.java @@ -0,0 +1,703 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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); + } + + 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 variantConfig_ != null; + } + /** + * + * + *
+   * 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 getVariantConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (variantConfig_ != null) { + output.writeMessage(1, getVariantConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (variantConfig_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (variantConfigBuilder_ == null) { + variantConfig_ = null; + } else { + variantConfig_ = null; + 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 (variantConfigBuilder_ == null) { + result.variantConfig_ = variantConfig_; + } else { + result.variantConfig_ = variantConfigBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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); + + 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 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 variantConfigBuilder_ != null || variantConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + variantConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + variantConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (variantConfig_ != null) { + variantConfig_ = + com.google.container.v1.LoggingVariantConfig.newBuilder(variantConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + variantConfig_ = value; + } + onChanged(); + } else { + variantConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Logging variant configuration.
+     * 
+ * + * .google.container.v1.LoggingVariantConfig variant_config = 1; + */ + public Builder clearVariantConfig() { + if (variantConfigBuilder_ == null) { + variantConfig_ = null; + onChanged(); + } else { + variantConfig_ = null; + variantConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Logging variant configuration.
+     * 
+ * + * .google.container.v1.LoggingVariantConfig variant_config = 1; + */ + public com.google.container.v1.LoggingVariantConfig.Builder getVariantConfigBuilder() { + + 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 new file mode 100644 index 000000000000..db60ea9d0ac4 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolLoggingConfigOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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 new file mode 100644 index 000000000000..390573e36b25 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java @@ -0,0 +1,650 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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 the Kubernetes of this node.
+   * 
+ * + * string version = 101; + * + * @return The version. + */ + java.lang.String getVersion(); + /** + * + * + *
+   * The version of the Kubernetes of this node.
+   * 
+ * + * string version = 101; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); + + /** + * + * + *
+   * [Output only] The resource URLs of the [managed instance
+   * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
+   * associated with this node pool.
+   * 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=3043 + * @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=3043 + * @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(); + + /** + * + * + *
+   * 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(); +} 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 new file mode 100644 index 000000000000..390a302c4ab3 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolUpdateStrategy.java @@ -0,0 +1,181 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Strategy used for node pool update.
+ * 
+ * + * Protobuf enum {@code google.container.v1.NodePoolUpdateStrategy} + */ +public enum NodePoolUpdateStrategy implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value.
+   * 
+ * + * 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.
+   * 
+ * + * 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 new file mode 100644 index 000000000000..1825a43c2b8b --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaint.java @@ -0,0 +1,1125 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Kubernetes taint is comprised of three fields: key, value, and effect. Effect
+ * can only be one of three types:  NoSchedule, PreferNoSchedule or NoExecute.
+ * See
+ * [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
+ * for more information, including usage and the valid values.
+ * 
+ * + * Protobuf type {@code google.container.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + private volatile java.lang.Object key_; + /** + * + * + *
+   * Key for taint.
+   * 
+ * + * string key = 1; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + /** + * + * + *
+   * Key for taint.
+   * 
+ * + * string key = 1; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 2; + private volatile java.lang.Object value_; + /** + * + * + *
+   * Value for taint.
+   * 
+ * + * string value = 2; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + * + * + *
+   * Value for taint.
+   * 
+ * + * string value = 2; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EFFECT_FIELD_NUMBER = 3; + private int effect_; + /** + * + * + *
+   * Effect for taint.
+   * 
+ * + * .google.container.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() { + @SuppressWarnings("deprecation") + com.google.container.v1.NodeTaint.Effect result = + com.google.container.v1.NodeTaint.Effect.valueOf(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 comprised of three fields: key, value, and effect. Effect
+   * can only be one of three types:  NoSchedule, PreferNoSchedule or NoExecute.
+   * See
+   * [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
+   * for more information, including usage and the valid values.
+   * 
+ * + * Protobuf type {@code google.container.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(); + 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); + result.key_ = key_; + result.value_ = value_; + result.effect_ = effect_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + 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(); + + break; + } // case 10 + case 18: + { + value_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + effect_ = input.readEnum(); + + 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 java.lang.Object key_ = ""; + /** + * + * + *
+     * Key for taint.
+     * 
+ * + * string key = 1; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Key for taint.
+     * 
+ * + * string key = 1; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Key for taint.
+     * 
+ * + * string key = 1; + * + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Key for taint.
+     * 
+ * + * string key = 1; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + * + * + *
+     * Key for taint.
+     * 
+ * + * string key = 1; + * + * @param value The bytes for key to set. + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + * + * + *
+     * Value for taint.
+     * 
+ * + * string value = 2; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Value for taint.
+     * 
+ * + * string value = 2; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Value for taint.
+     * 
+ * + * string value = 2; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Value for taint.
+     * 
+ * + * string value = 2; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + * + * + *
+     * Value for taint.
+     * 
+ * + * string value = 2; + * + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; + onChanged(); + return this; + } + + private int effect_ = 0; + /** + * + * + *
+     * Effect for taint.
+     * 
+ * + * .google.container.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; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1.NodeTaint.Effect result = + com.google.container.v1.NodeTaint.Effect.valueOf(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(); + } + + effect_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Effect for taint.
+     * 
+ * + * .google.container.v1.NodeTaint.Effect effect = 3; + * + * @return This builder for chaining. + */ + public Builder clearEffect() { + + effect_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..06b6935b9fbe --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaintOrBuilder.java @@ -0,0 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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 new file mode 100644 index 000000000000..25da01106a51 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaints.java @@ -0,0 +1,921 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + 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(); + 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); + int from_bitField0_ = bitField0_; + if (taintsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + taints_ = java.util.Collections.unmodifiableList(taints_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.taints_ = taints_; + } else { + result.taints_ = taintsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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 new file mode 100644 index 000000000000..a08d04356636 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaintsOrBuilder.java @@ -0,0 +1,76 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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 new file mode 100644 index 000000000000..bfba525118be --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NotificationConfig.java @@ -0,0 +1,2847 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * NotificationConfig is the configuration of notifications.
+ * 
+ * + * Protobuf type {@code google.container.v1.NotificationConfig} + */ +public final class NotificationConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.NotificationConfig) + NotificationConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use NotificationConfig.newBuilder() to construct. + private NotificationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NotificationConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NotificationConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NotificationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NotificationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NotificationConfig.class, + com.google.container.v1.NotificationConfig.Builder.class); + } + + /** + * + * + *
+   * Types of notifications currently supported. Can be used to filter what
+   * notifications are sent.
+   * 
+ * + * Protobuf enum {@code google.container.v1.NotificationConfig.EventType} + */ + public enum EventType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not set, will be ignored.
+     * 
+ * + * EVENT_TYPE_UNSPECIFIED = 0; + */ + EVENT_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Corresponds with UpgradeAvailableEvent.
+     * 
+ * + * UPGRADE_AVAILABLE_EVENT = 1; + */ + UPGRADE_AVAILABLE_EVENT(1), + /** + * + * + *
+     * Corresponds with UpgradeEvent.
+     * 
+ * + * UPGRADE_EVENT = 2; + */ + UPGRADE_EVENT(2), + /** + * + * + *
+     * Corresponds with SecurityBulletinEvent.
+     * 
+ * + * SECURITY_BULLETIN_EVENT = 3; + */ + SECURITY_BULLETIN_EVENT(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not set, will be ignored.
+     * 
+ * + * EVENT_TYPE_UNSPECIFIED = 0; + */ + public static final int EVENT_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Corresponds with UpgradeAvailableEvent.
+     * 
+ * + * UPGRADE_AVAILABLE_EVENT = 1; + */ + public static final int UPGRADE_AVAILABLE_EVENT_VALUE = 1; + /** + * + * + *
+     * Corresponds with UpgradeEvent.
+     * 
+ * + * UPGRADE_EVENT = 2; + */ + public static final int UPGRADE_EVENT_VALUE = 2; + /** + * + * + *
+     * Corresponds with SecurityBulletinEvent.
+     * 
+ * + * SECURITY_BULLETIN_EVENT = 3; + */ + public static final int SECURITY_BULLETIN_EVENT_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EventType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static EventType forNumber(int value) { + switch (value) { + case 0: + return EVENT_TYPE_UNSPECIFIED; + case 1: + return UPGRADE_AVAILABLE_EVENT; + case 2: + return UPGRADE_EVENT; + case 3: + return SECURITY_BULLETIN_EVENT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EventType findValueByNumber(int number) { + return EventType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1.NotificationConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final EventType[] VALUES = values(); + + public static EventType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private EventType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.NotificationConfig.EventType) + } + + public interface PubSubOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NotificationConfig.PubSub) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Enable notifications for Pub/Sub.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); + + /** + * + * + *
+     * The desired Pub/Sub topic to which notifications will be
+     * sent by GKE. Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * @return The topic. + */ + java.lang.String getTopic(); + /** + * + * + *
+     * The desired Pub/Sub topic to which notifications will be
+     * sent by GKE. Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for topic. + */ + com.google.protobuf.ByteString getTopicBytes(); + + /** + * + * + *
+     * Allows filtering to one or more specific event types. If no filter is
+     * specified, or if a filter is specified with no event types, all event
+     * types will be sent
+     * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + * + * @return Whether the filter field is set. + */ + boolean hasFilter(); + /** + * + * + *
+     * Allows filtering to one or more specific event types. If no filter is
+     * specified, or if a filter is specified with no event types, all event
+     * types will be sent
+     * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + * + * @return The filter. + */ + com.google.container.v1.NotificationConfig.Filter getFilter(); + /** + * + * + *
+     * Allows filtering to one or more specific event types. If no filter is
+     * specified, or if a filter is specified with no event types, all event
+     * types will be sent
+     * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + */ + com.google.container.v1.NotificationConfig.FilterOrBuilder getFilterOrBuilder(); + } + /** + * + * + *
+   * Pub/Sub specific notification config.
+   * 
+ * + * Protobuf type {@code google.container.v1.NotificationConfig.PubSub} + */ + public static final class PubSub extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.NotificationConfig.PubSub) + PubSubOrBuilder { + private static final long serialVersionUID = 0L; + // Use PubSub.newBuilder() to construct. + private PubSub(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PubSub() { + topic_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PubSub(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NotificationConfig_PubSub_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NotificationConfig_PubSub_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NotificationConfig.PubSub.class, + com.google.container.v1.NotificationConfig.PubSub.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+     * Enable notifications for Pub/Sub.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int TOPIC_FIELD_NUMBER = 2; + private volatile java.lang.Object topic_; + /** + * + * + *
+     * The desired Pub/Sub topic to which notifications will be
+     * sent by GKE. Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * @return The topic. + */ + @java.lang.Override + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } + } + /** + * + * + *
+     * The desired Pub/Sub topic to which notifications will be
+     * sent by GKE. Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for topic. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 3; + private com.google.container.v1.NotificationConfig.Filter filter_; + /** + * + * + *
+     * Allows filtering to one or more specific event types. If no filter is
+     * specified, or if a filter is specified with no event types, all event
+     * types will be sent
+     * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + * + * @return Whether the filter field is set. + */ + @java.lang.Override + public boolean hasFilter() { + return filter_ != null; + } + /** + * + * + *
+     * Allows filtering to one or more specific event types. If no filter is
+     * specified, or if a filter is specified with no event types, all event
+     * types will be sent
+     * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + * + * @return The filter. + */ + @java.lang.Override + public com.google.container.v1.NotificationConfig.Filter getFilter() { + return filter_ == null + ? com.google.container.v1.NotificationConfig.Filter.getDefaultInstance() + : filter_; + } + /** + * + * + *
+     * Allows filtering to one or more specific event types. If no filter is
+     * specified, or if a filter is specified with no event types, all event
+     * types will be sent
+     * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + */ + @java.lang.Override + public com.google.container.v1.NotificationConfig.FilterOrBuilder getFilterOrBuilder() { + return getFilter(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, topic_); + } + if (filter_ != null) { + output.writeMessage(3, getFilter()); + } + 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 (filter_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enabled_ = false; + + topic_ = ""; + + if (filterBuilder_ == null) { + filter_ = null; + } else { + filter_ = null; + filterBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NotificationConfig_PubSub_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NotificationConfig.PubSub getDefaultInstanceForType() { + return com.google.container.v1.NotificationConfig.PubSub.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NotificationConfig.PubSub build() { + com.google.container.v1.NotificationConfig.PubSub result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NotificationConfig.PubSub buildPartial() { + com.google.container.v1.NotificationConfig.PubSub result = + new com.google.container.v1.NotificationConfig.PubSub(this); + result.enabled_ = enabled_; + result.topic_ = topic_; + if (filterBuilder_ == null) { + result.filter_ = filter_; + } else { + result.filter_ = filterBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NotificationConfig.PubSub) { + return mergeFrom((com.google.container.v1.NotificationConfig.PubSub) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NotificationConfig.PubSub other) { + if (other == com.google.container.v1.NotificationConfig.PubSub.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (!other.getTopic().isEmpty()) { + topic_ = other.topic_; + onChanged(); + } + if (other.hasFilter()) { + mergeFilter(other.getFilter()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 8 + case 18: + { + topic_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getFilterFieldBuilder().getBuilder(), extensionRegistry); + + 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 boolean enabled_; + /** + * + * + *
+       * Enable notifications for Pub/Sub.
+       * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+       * Enable notifications for Pub/Sub.
+       * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Enable notifications for Pub/Sub.
+       * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + private java.lang.Object topic_ = ""; + /** + * + * + *
+       * The desired Pub/Sub topic to which notifications will be
+       * sent by GKE. Format is `projects/{project}/topics/{topic}`.
+       * 
+ * + * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * @return The topic. + */ + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The desired Pub/Sub topic to which notifications will be
+       * sent by GKE. Format is `projects/{project}/topics/{topic}`.
+       * 
+ * + * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for topic. + */ + public com.google.protobuf.ByteString getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The desired Pub/Sub topic to which notifications will be
+       * sent by GKE. Format is `projects/{project}/topics/{topic}`.
+       * 
+ * + * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The topic to set. + * @return This builder for chaining. + */ + public Builder setTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + topic_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The desired Pub/Sub topic to which notifications will be
+       * sent by GKE. Format is `projects/{project}/topics/{topic}`.
+       * 
+ * + * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearTopic() { + + topic_ = getDefaultInstance().getTopic(); + onChanged(); + return this; + } + /** + * + * + *
+       * The desired Pub/Sub topic to which notifications will be
+       * sent by GKE. Format is `projects/{project}/topics/{topic}`.
+       * 
+ * + * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for topic to set. + * @return This builder for chaining. + */ + public Builder setTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + topic_ = value; + onChanged(); + return this; + } + + private com.google.container.v1.NotificationConfig.Filter filter_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NotificationConfig.Filter, + com.google.container.v1.NotificationConfig.Filter.Builder, + com.google.container.v1.NotificationConfig.FilterOrBuilder> + filterBuilder_; + /** + * + * + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + * + * @return Whether the filter field is set. + */ + public boolean hasFilter() { + return filterBuilder_ != null || filter_ != null; + } + /** + * + * + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + * + * @return The filter. + */ + public com.google.container.v1.NotificationConfig.Filter getFilter() { + if (filterBuilder_ == null) { + return filter_ == null + ? com.google.container.v1.NotificationConfig.Filter.getDefaultInstance() + : filter_; + } else { + return filterBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + */ + public Builder setFilter(com.google.container.v1.NotificationConfig.Filter value) { + if (filterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + onChanged(); + } else { + filterBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + */ + public Builder setFilter( + com.google.container.v1.NotificationConfig.Filter.Builder builderForValue) { + if (filterBuilder_ == null) { + filter_ = builderForValue.build(); + onChanged(); + } else { + filterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + */ + public Builder mergeFilter(com.google.container.v1.NotificationConfig.Filter value) { + if (filterBuilder_ == null) { + if (filter_ != null) { + filter_ = + com.google.container.v1.NotificationConfig.Filter.newBuilder(filter_) + .mergeFrom(value) + .buildPartial(); + } else { + filter_ = value; + } + onChanged(); + } else { + filterBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + */ + public Builder clearFilter() { + if (filterBuilder_ == null) { + filter_ = null; + onChanged(); + } else { + filter_ = null; + filterBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + */ + public com.google.container.v1.NotificationConfig.Filter.Builder getFilterBuilder() { + + onChanged(); + return getFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + */ + public com.google.container.v1.NotificationConfig.FilterOrBuilder getFilterOrBuilder() { + if (filterBuilder_ != null) { + return filterBuilder_.getMessageOrBuilder(); + } else { + return filter_ == null + ? com.google.container.v1.NotificationConfig.Filter.getDefaultInstance() + : filter_; + } + } + /** + * + * + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NotificationConfig.Filter, + com.google.container.v1.NotificationConfig.Filter.Builder, + com.google.container.v1.NotificationConfig.FilterOrBuilder> + getFilterFieldBuilder() { + if (filterBuilder_ == null) { + filterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NotificationConfig.Filter, + com.google.container.v1.NotificationConfig.Filter.Builder, + com.google.container.v1.NotificationConfig.FilterOrBuilder>( + getFilter(), getParentForChildren(), isClean()); + filter_ = null; + } + return filterBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.NotificationConfig.PubSub) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NotificationConfig.PubSub) + private static final com.google.container.v1.NotificationConfig.PubSub DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.NotificationConfig.PubSub(); + } + + public static com.google.container.v1.NotificationConfig.PubSub getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PubSub parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.NotificationConfig.PubSub getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface FilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NotificationConfig.Filter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * + * @return A list containing the eventType. + */ + java.util.List getEventTypeList(); + /** + * + * + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * + * @return The count of eventType. + */ + int getEventTypeCount(); + /** + * + * + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * + * @param index The index of the element to return. + * @return The eventType at the given index. + */ + com.google.container.v1.NotificationConfig.EventType getEventType(int index); + /** + * + * + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * + * @return A list containing the enum numeric values on the wire for eventType. + */ + java.util.List getEventTypeValueList(); + /** + * + * + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of eventType at the given index. + */ + int getEventTypeValue(int index); + } + /** + * + * + *
+   * Allows filtering to one or more specific event types. If event types are
+   * present, those and only those event types will be transmitted to the
+   * cluster. Other types will be skipped. If no filter is specified, or no
+   * event types are present, all event types will be sent
+   * 
+ * + * Protobuf type {@code google.container.v1.NotificationConfig.Filter} + */ + public static final class Filter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.NotificationConfig.Filter) + FilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use Filter.newBuilder() to construct. + private Filter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Filter() { + eventType_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Filter(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NotificationConfig_Filter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NotificationConfig_Filter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NotificationConfig.Filter.class, + com.google.container.v1.NotificationConfig.Filter.Builder.class); + } + + public static final int EVENT_TYPE_FIELD_NUMBER = 1; + private java.util.List eventType_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.container.v1.NotificationConfig.EventType> + eventType_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.container.v1.NotificationConfig.EventType>() { + public com.google.container.v1.NotificationConfig.EventType convert( + java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.container.v1.NotificationConfig.EventType result = + com.google.container.v1.NotificationConfig.EventType.valueOf(from); + return result == null + ? com.google.container.v1.NotificationConfig.EventType.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * + * @return A list containing the eventType. + */ + @java.lang.Override + public java.util.List getEventTypeList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.container.v1.NotificationConfig.EventType>( + eventType_, eventType_converter_); + } + /** + * + * + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * + * @return The count of eventType. + */ + @java.lang.Override + public int getEventTypeCount() { + return eventType_.size(); + } + /** + * + * + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * + * @param index The index of the element to return. + * @return The eventType at the given index. + */ + @java.lang.Override + public com.google.container.v1.NotificationConfig.EventType getEventType(int index) { + return eventType_converter_.convert(eventType_.get(index)); + } + /** + * + * + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * + * @return A list containing the enum numeric values on the wire for eventType. + */ + @java.lang.Override + public java.util.List getEventTypeValueList() { + return eventType_; + } + /** + * + * + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of eventType at the given index. + */ + @java.lang.Override + public int getEventTypeValue(int index) { + return eventType_.get(index); + } + + private int eventTypeMemoizedSerializedSize; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (getEventTypeList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(eventTypeMemoizedSerializedSize); + } + for (int i = 0; i < eventType_.size(); i++) { + output.writeEnumNoTag(eventType_.get(i)); + } + 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(); + eventType_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NotificationConfig_Filter_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NotificationConfig.Filter getDefaultInstanceForType() { + return com.google.container.v1.NotificationConfig.Filter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NotificationConfig.Filter build() { + com.google.container.v1.NotificationConfig.Filter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NotificationConfig.Filter buildPartial() { + com.google.container.v1.NotificationConfig.Filter result = + new com.google.container.v1.NotificationConfig.Filter(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + eventType_ = java.util.Collections.unmodifiableList(eventType_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.eventType_ = eventType_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NotificationConfig.Filter) { + return mergeFrom((com.google.container.v1.NotificationConfig.Filter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NotificationConfig.Filter other) { + if (other == com.google.container.v1.NotificationConfig.Filter.getDefaultInstance()) + return this; + if (!other.eventType_.isEmpty()) { + if (eventType_.isEmpty()) { + eventType_ = other.eventType_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEventTypeIsMutable(); + eventType_.addAll(other.eventType_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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; + } + } + + public static final int PUBSUB_FIELD_NUMBER = 1; + private com.google.container.v1.NotificationConfig.PubSub pubsub_; + /** + * + * + *
+   * Notification config for Pub/Sub.
+   * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + * + * @return Whether the pubsub field is set. + */ + @java.lang.Override + public boolean hasPubsub() { + return pubsub_ != null; + } + /** + * + * + *
+   * Notification config for Pub/Sub.
+   * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + * + * @return The pubsub. + */ + @java.lang.Override + public com.google.container.v1.NotificationConfig.PubSub getPubsub() { + return pubsub_ == null + ? com.google.container.v1.NotificationConfig.PubSub.getDefaultInstance() + : pubsub_; + } + /** + * + * + *
+   * Notification config for Pub/Sub.
+   * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + */ + @java.lang.Override + public com.google.container.v1.NotificationConfig.PubSubOrBuilder getPubsubOrBuilder() { + return getPubsub(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (pubsub_ != null) { + output.writeMessage(1, getPubsub()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (pubsub_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPubsub()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (pubsubBuilder_ == null) { + pubsub_ = null; + } else { + pubsub_ = null; + pubsubBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NotificationConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NotificationConfig getDefaultInstanceForType() { + return com.google.container.v1.NotificationConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NotificationConfig build() { + com.google.container.v1.NotificationConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NotificationConfig buildPartial() { + com.google.container.v1.NotificationConfig result = + new com.google.container.v1.NotificationConfig(this); + if (pubsubBuilder_ == null) { + result.pubsub_ = pubsub_; + } else { + result.pubsub_ = pubsubBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NotificationConfig) { + return mergeFrom((com.google.container.v1.NotificationConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NotificationConfig other) { + if (other == com.google.container.v1.NotificationConfig.getDefaultInstance()) return this; + if (other.hasPubsub()) { + mergePubsub(other.getPubsub()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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); + + 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 com.google.container.v1.NotificationConfig.PubSub pubsub_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NotificationConfig.PubSub, + com.google.container.v1.NotificationConfig.PubSub.Builder, + com.google.container.v1.NotificationConfig.PubSubOrBuilder> + pubsubBuilder_; + /** + * + * + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + * + * @return Whether the pubsub field is set. + */ + public boolean hasPubsub() { + return pubsubBuilder_ != null || pubsub_ != null; + } + /** + * + * + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + * + * @return The pubsub. + */ + public com.google.container.v1.NotificationConfig.PubSub getPubsub() { + if (pubsubBuilder_ == null) { + return pubsub_ == null + ? com.google.container.v1.NotificationConfig.PubSub.getDefaultInstance() + : pubsub_; + } else { + return pubsubBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + */ + public Builder setPubsub(com.google.container.v1.NotificationConfig.PubSub value) { + if (pubsubBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pubsub_ = value; + onChanged(); + } else { + pubsubBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + */ + public Builder setPubsub( + com.google.container.v1.NotificationConfig.PubSub.Builder builderForValue) { + if (pubsubBuilder_ == null) { + pubsub_ = builderForValue.build(); + onChanged(); + } else { + pubsubBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + */ + public Builder mergePubsub(com.google.container.v1.NotificationConfig.PubSub value) { + if (pubsubBuilder_ == null) { + if (pubsub_ != null) { + pubsub_ = + com.google.container.v1.NotificationConfig.PubSub.newBuilder(pubsub_) + .mergeFrom(value) + .buildPartial(); + } else { + pubsub_ = value; + } + onChanged(); + } else { + pubsubBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + */ + public Builder clearPubsub() { + if (pubsubBuilder_ == null) { + pubsub_ = null; + onChanged(); + } else { + pubsub_ = null; + pubsubBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + */ + public com.google.container.v1.NotificationConfig.PubSub.Builder getPubsubBuilder() { + + onChanged(); + return getPubsubFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + */ + public com.google.container.v1.NotificationConfig.PubSubOrBuilder getPubsubOrBuilder() { + if (pubsubBuilder_ != null) { + return pubsubBuilder_.getMessageOrBuilder(); + } else { + return pubsub_ == null + ? com.google.container.v1.NotificationConfig.PubSub.getDefaultInstance() + : pubsub_; + } + } + /** + * + * + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NotificationConfig.PubSub, + com.google.container.v1.NotificationConfig.PubSub.Builder, + com.google.container.v1.NotificationConfig.PubSubOrBuilder> + getPubsubFieldBuilder() { + if (pubsubBuilder_ == null) { + pubsubBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NotificationConfig.PubSub, + com.google.container.v1.NotificationConfig.PubSub.Builder, + com.google.container.v1.NotificationConfig.PubSubOrBuilder>( + getPubsub(), getParentForChildren(), isClean()); + pubsub_ = null; + } + return pubsubBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.NotificationConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NotificationConfig) + private static final com.google.container.v1.NotificationConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.NotificationConfig(); + } + + public static com.google.container.v1.NotificationConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NotificationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..dce60f58e538 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NotificationConfigOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface NotificationConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NotificationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Notification config for Pub/Sub.
+   * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + * + * @return Whether the pubsub field is set. + */ + boolean hasPubsub(); + /** + * + * + *
+   * Notification config for Pub/Sub.
+   * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + * + * @return The pubsub. + */ + com.google.container.v1.NotificationConfig.PubSub getPubsub(); + /** + * + * + *
+   * Notification config for Pub/Sub.
+   * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + */ + com.google.container.v1.NotificationConfig.PubSubOrBuilder getPubsubOrBuilder(); +} diff --git a/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 new file mode 100644 index 000000000000..fdf79429590c --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java @@ -0,0 +1,4838 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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.
+   * 
+ * + * Protobuf enum {@code google.container.v1.Operation.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not set.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Cluster create.
+     * 
+ * + * CREATE_CLUSTER = 1; + */ + CREATE_CLUSTER(1), + /** + * + * + *
+     * Cluster delete.
+     * 
+ * + * DELETE_CLUSTER = 2; + */ + DELETE_CLUSTER(2), + /** + * + * + *
+     * A master upgrade.
+     * 
+ * + * UPGRADE_MASTER = 3; + */ + UPGRADE_MASTER(3), + /** + * + * + *
+     * A node upgrade.
+     * 
+ * + * UPGRADE_NODES = 4; + */ + UPGRADE_NODES(4), + /** + * + * + *
+     * Cluster repair.
+     * 
+ * + * REPAIR_CLUSTER = 5; + */ + REPAIR_CLUSTER(5), + /** + * + * + *
+     * Cluster update.
+     * 
+ * + * UPDATE_CLUSTER = 6; + */ + UPDATE_CLUSTER(6), + /** + * + * + *
+     * Node pool create.
+     * 
+ * + * CREATE_NODE_POOL = 7; + */ + CREATE_NODE_POOL(7), + /** + * + * + *
+     * Node pool delete.
+     * 
+ * + * DELETE_NODE_POOL = 8; + */ + DELETE_NODE_POOL(8), + /** + * + * + *
+     * Set node pool management.
+     * 
+ * + * SET_NODE_POOL_MANAGEMENT = 9; + */ + SET_NODE_POOL_MANAGEMENT(9), + /** + * + * + *
+     * Automatic node pool repair.
+     * 
+ * + * AUTO_REPAIR_NODES = 10; + */ + AUTO_REPAIR_NODES(10), + /** + * + * + *
+     * Automatic node upgrade.
+     * 
+ * + * AUTO_UPGRADE_NODES = 11; + */ + AUTO_UPGRADE_NODES(11), + /** + * + * + *
+     * Set labels.
+     * 
+ * + * SET_LABELS = 12; + */ + SET_LABELS(12), + /** + * + * + *
+     * Set/generate master auth materials
+     * 
+ * + * SET_MASTER_AUTH = 13; + */ + SET_MASTER_AUTH(13), + /** + * + * + *
+     * Set node pool size.
+     * 
+ * + * SET_NODE_POOL_SIZE = 14; + */ + SET_NODE_POOL_SIZE(14), + /** + * + * + *
+     * Updates network policy for a cluster.
+     * 
+ * + * SET_NETWORK_POLICY = 15; + */ + SET_NETWORK_POLICY(15), + /** + * + * + *
+     * Set the maintenance policy.
+     * 
+ * + * SET_MAINTENANCE_POLICY = 16; + */ + SET_MAINTENANCE_POLICY(16), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not set.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Cluster create.
+     * 
+ * + * CREATE_CLUSTER = 1; + */ + public static final int CREATE_CLUSTER_VALUE = 1; + /** + * + * + *
+     * Cluster delete.
+     * 
+ * + * DELETE_CLUSTER = 2; + */ + public static final int DELETE_CLUSTER_VALUE = 2; + /** + * + * + *
+     * A master upgrade.
+     * 
+ * + * UPGRADE_MASTER = 3; + */ + public static final int UPGRADE_MASTER_VALUE = 3; + /** + * + * + *
+     * A node upgrade.
+     * 
+ * + * UPGRADE_NODES = 4; + */ + public static final int UPGRADE_NODES_VALUE = 4; + /** + * + * + *
+     * Cluster repair.
+     * 
+ * + * REPAIR_CLUSTER = 5; + */ + public static final int REPAIR_CLUSTER_VALUE = 5; + /** + * + * + *
+     * Cluster update.
+     * 
+ * + * UPDATE_CLUSTER = 6; + */ + public static final int UPDATE_CLUSTER_VALUE = 6; + /** + * + * + *
+     * Node pool create.
+     * 
+ * + * CREATE_NODE_POOL = 7; + */ + public static final int CREATE_NODE_POOL_VALUE = 7; + /** + * + * + *
+     * Node pool delete.
+     * 
+ * + * DELETE_NODE_POOL = 8; + */ + public static final int DELETE_NODE_POOL_VALUE = 8; + /** + * + * + *
+     * Set node pool management.
+     * 
+ * + * SET_NODE_POOL_MANAGEMENT = 9; + */ + public static final int SET_NODE_POOL_MANAGEMENT_VALUE = 9; + /** + * + * + *
+     * Automatic node pool repair.
+     * 
+ * + * AUTO_REPAIR_NODES = 10; + */ + public static final int AUTO_REPAIR_NODES_VALUE = 10; + /** + * + * + *
+     * Automatic node upgrade.
+     * 
+ * + * AUTO_UPGRADE_NODES = 11; + */ + public static final int AUTO_UPGRADE_NODES_VALUE = 11; + /** + * + * + *
+     * Set labels.
+     * 
+ * + * SET_LABELS = 12; + */ + public static final int SET_LABELS_VALUE = 12; + /** + * + * + *
+     * Set/generate master auth materials
+     * 
+ * + * SET_MASTER_AUTH = 13; + */ + public static final int SET_MASTER_AUTH_VALUE = 13; + /** + * + * + *
+     * Set node pool size.
+     * 
+ * + * SET_NODE_POOL_SIZE = 14; + */ + public static final int SET_NODE_POOL_SIZE_VALUE = 14; + /** + * + * + *
+     * Updates network policy for a cluster.
+     * 
+ * + * SET_NETWORK_POLICY = 15; + */ + public static final int SET_NETWORK_POLICY_VALUE = 15; + /** + * + * + *
+     * Set the maintenance policy.
+     * 
+ * + * SET_MAINTENANCE_POLICY = 16; + */ + public static final int SET_MAINTENANCE_POLICY_VALUE = 16; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: + return TYPE_UNSPECIFIED; + case 1: + return CREATE_CLUSTER; + case 2: + return DELETE_CLUSTER; + case 3: + return UPGRADE_MASTER; + case 4: + return UPGRADE_NODES; + case 5: + return REPAIR_CLUSTER; + case 6: + return UPDATE_CLUSTER; + case 7: + return CREATE_NODE_POOL; + case 8: + return DELETE_NODE_POOL; + case 9: + return SET_NODE_POOL_MANAGEMENT; + case 10: + return AUTO_REPAIR_NODES; + case 11: + return AUTO_UPGRADE_NODES; + case 12: + return SET_LABELS; + case 13: + return SET_MASTER_AUTH; + case 14: + return SET_NODE_POOL_SIZE; + case 15: + return SET_NETWORK_POLICY; + case 16: + return SET_MAINTENANCE_POLICY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.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) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The server-assigned ID for the operation.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The server-assigned ID for the operation.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * operation is taking place. This field is deprecated, use location instead.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * + * @deprecated google.container.v1.Operation.zone is deprecated. See + * google/container/v1/cluster_service.proto;l=2034 + * @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=2034 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPERATION_TYPE_FIELD_NUMBER = 3; + private int operationType_; + /** + * + * + *
+   * The operation type.
+   * 
+ * + * .google.container.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() { + @SuppressWarnings("deprecation") + com.google.container.v1.Operation.Type result = + com.google.container.v1.Operation.Type.valueOf(operationType_); + return result == null ? com.google.container.v1.Operation.Type.UNRECOGNIZED : result; + } + + public static final int STATUS_FIELD_NUMBER = 4; + private int status_; + /** + * + * + *
+   * 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() { + @SuppressWarnings("deprecation") + com.google.container.v1.Operation.Status result = + com.google.container.v1.Operation.Status.valueOf(status_); + return result == null ? com.google.container.v1.Operation.Status.UNRECOGNIZED : result; + } + + public static final int DETAIL_FIELD_NUMBER = 8; + private volatile java.lang.Object detail_; + /** + * + * + *
+   * Detailed operation progress, if available.
+   * 
+ * + * string detail = 8; + * + * @return The detail. + */ + @java.lang.Override + public java.lang.String getDetail() { + java.lang.Object ref = detail_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + detail_ = s; + return s; + } + } + /** + * + * + *
+   * Detailed operation progress, if available.
+   * 
+ * + * string detail = 8; + * + * @return The bytes for detail. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDetailBytes() { + java.lang.Object ref = detail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + detail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; + private volatile java.lang.Object statusMessage_; + /** + * + * + *
+   * Output only. If an error has occurred, a textual description of the error.
+   * Deprecated. Use 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=2047 + * @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=2047 + * @return The bytes for statusMessage. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SELF_LINK_FIELD_NUMBER = 6; + private volatile java.lang.Object selfLink_; + /** + * + * + *
+   * Server-defined URL for the resource.
+   * 
+ * + * string self_link = 6; + * + * @return The selfLink. + */ + @java.lang.Override + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } + } + /** + * + * + *
+   * Server-defined URL for the resource.
+   * 
+ * + * string self_link = 6; + * + * @return The bytes for selfLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_LINK_FIELD_NUMBER = 7; + private volatile java.lang.Object targetLink_; + /** + * + * + *
+   * Server-defined URL for the target of the operation.
+   * 
+ * + * string target_link = 7; + * + * @return The targetLink. + */ + @java.lang.Override + public java.lang.String getTargetLink() { + java.lang.Object ref = targetLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetLink_ = s; + return s; + } + } + /** + * + * + *
+   * Server-defined URL for the target of the operation.
+   * 
+ * + * string target_link = 7; + * + * @return The bytes for targetLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetLinkBytes() { + java.lang.Object ref = targetLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATION_FIELD_NUMBER = 9; + private volatile java.lang.Object location_; + /** + * + * + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * or
+   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * in which the cluster resides.
+   * 
+ * + * string location = 9; + * + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * or
+   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * in which the cluster resides.
+   * 
+ * + * string location = 9; + * + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int START_TIME_FIELD_NUMBER = 10; + private volatile java.lang.Object startTime_; + /** + * + * + *
+   * [Output only] The time the operation started, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string start_time = 10; + * + * @return The startTime. + */ + @java.lang.Override + public java.lang.String getStartTime() { + java.lang.Object ref = startTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + startTime_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] The time the operation started, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string start_time = 10; + * + * @return The bytes for startTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStartTimeBytes() { + java.lang.Object ref = startTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + startTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int END_TIME_FIELD_NUMBER = 11; + private volatile java.lang.Object endTime_; + /** + * + * + *
+   * [Output only] The time the operation completed, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string end_time = 11; + * + * @return The endTime. + */ + @java.lang.Override + public java.lang.String getEndTime() { + java.lang.Object ref = endTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endTime_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] The time the operation completed, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string end_time = 11; + * + * @return The bytes for endTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEndTimeBytes() { + java.lang.Object ref = endTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROGRESS_FIELD_NUMBER = 12; + private com.google.container.v1.OperationProgress progress_; + /** + * + * + *
+   * Output only. [Output only] Progress information for an operation.
+   * 
+ * + * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the progress field is set. + */ + @java.lang.Override + public boolean hasProgress() { + return progress_ != null; + } + /** + * + * + *
+   * Output only. [Output only] Progress information for an operation.
+   * 
+ * + * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The progress. + */ + @java.lang.Override + public com.google.container.v1.OperationProgress getProgress() { + return progress_ == null + ? com.google.container.v1.OperationProgress.getDefaultInstance() + : progress_; + } + /** + * + * + *
+   * Output only. [Output only] Progress information for an operation.
+   * 
+ * + * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.container.v1.OperationProgressOrBuilder getProgressOrBuilder() { + return getProgress(); + } + + public static final int CLUSTER_CONDITIONS_FIELD_NUMBER = 13; + private java.util.List clusterConditions_; + /** + * + * + *
+   * 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; + 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 error_ != null; + } + /** + * + * + *
+   * The error result of the operation in case of failure.
+   * 
+ * + * .google.rpc.Status error = 15; + * + * @return The error. + */ + @java.lang.Override + public com.google.rpc.Status getError() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + /** + * + * + *
+   * The error result of the operation in case of failure.
+   * 
+ * + * .google.rpc.Status error = 15; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + return getError(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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 (progress_ != null) { + output.writeMessage(12, getProgress()); + } + for (int i = 0; i < clusterConditions_.size(); i++) { + output.writeMessage(13, clusterConditions_.get(i)); + } + for (int i = 0; i < nodepoolConditions_.size(); i++) { + output.writeMessage(14, nodepoolConditions_.get(i)); + } + if (error_ != null) { + output.writeMessage(15, getError()); + } + getUnknownFields().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 (progress_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getProgress()); + } + for (int i = 0; i < clusterConditions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(13, clusterConditions_.get(i)); + } + for (int i = 0; i < nodepoolConditions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(14, nodepoolConditions_.get(i)); + } + if (error_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getError()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + zone_ = ""; + + operationType_ = 0; + + status_ = 0; + + detail_ = ""; + + statusMessage_ = ""; + + selfLink_ = ""; + + targetLink_ = ""; + + location_ = ""; + + startTime_ = ""; + + endTime_ = ""; + + if (progressBuilder_ == null) { + progress_ = null; + } else { + progress_ = null; + progressBuilder_ = null; + } + if (clusterConditionsBuilder_ == null) { + clusterConditions_ = java.util.Collections.emptyList(); + } else { + clusterConditions_ = null; + clusterConditionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (nodepoolConditionsBuilder_ == null) { + nodepoolConditions_ = java.util.Collections.emptyList(); + } else { + nodepoolConditions_ = null; + nodepoolConditionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (errorBuilder_ == null) { + error_ = null; + } else { + error_ = null; + errorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.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); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.zone_ = zone_; + result.operationType_ = operationType_; + result.status_ = status_; + result.detail_ = detail_; + result.statusMessage_ = statusMessage_; + result.selfLink_ = selfLink_; + result.targetLink_ = targetLink_; + result.location_ = location_; + result.startTime_ = startTime_; + result.endTime_ = endTime_; + if (progressBuilder_ == null) { + result.progress_ = progress_; + } else { + result.progress_ = progressBuilder_.build(); + } + if (clusterConditionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + clusterConditions_ = java.util.Collections.unmodifiableList(clusterConditions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.clusterConditions_ = clusterConditions_; + } else { + result.clusterConditions_ = clusterConditionsBuilder_.build(); + } + if (nodepoolConditionsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + nodepoolConditions_ = java.util.Collections.unmodifiableList(nodepoolConditions_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.nodepoolConditions_ = nodepoolConditions_; + } else { + result.nodepoolConditions_ = nodepoolConditionsBuilder_.build(); + } + if (errorBuilder_ == null) { + result.error_ = error_; + } else { + result.error_ = errorBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (other.operationType_ != 0) { + setOperationTypeValue(other.getOperationTypeValue()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (!other.getDetail().isEmpty()) { + detail_ = other.detail_; + onChanged(); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + onChanged(); + } + if (!other.getSelfLink().isEmpty()) { + selfLink_ = other.selfLink_; + onChanged(); + } + if (!other.getTargetLink().isEmpty()) { + targetLink_ = other.targetLink_; + onChanged(); + } + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + onChanged(); + } + if (!other.getStartTime().isEmpty()) { + startTime_ = other.startTime_; + onChanged(); + } + if (!other.getEndTime().isEmpty()) { + endTime_ = other.endTime_; + onChanged(); + } + if (other.hasProgress()) { + mergeProgress(other.getProgress()); + } + if (clusterConditionsBuilder_ == null) { + if (!other.clusterConditions_.isEmpty()) { + if (clusterConditions_.isEmpty()) { + clusterConditions_ = other.clusterConditions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureClusterConditionsIsMutable(); + clusterConditions_.addAll(other.clusterConditions_); + } + onChanged(); + } + } else { + if (!other.clusterConditions_.isEmpty()) { + if (clusterConditionsBuilder_.isEmpty()) { + clusterConditionsBuilder_.dispose(); + clusterConditionsBuilder_ = null; + clusterConditions_ = other.clusterConditions_; + bitField0_ = (bitField0_ & ~0x00000001); + clusterConditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getClusterConditionsFieldBuilder() + : null; + } else { + clusterConditionsBuilder_.addAllMessages(other.clusterConditions_); + } + } + } + if (nodepoolConditionsBuilder_ == null) { + if (!other.nodepoolConditions_.isEmpty()) { + if (nodepoolConditions_.isEmpty()) { + nodepoolConditions_ = other.nodepoolConditions_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.addAll(other.nodepoolConditions_); + } + onChanged(); + } + } else { + if (!other.nodepoolConditions_.isEmpty()) { + if (nodepoolConditionsBuilder_.isEmpty()) { + nodepoolConditionsBuilder_.dispose(); + nodepoolConditionsBuilder_ = null; + nodepoolConditions_ = other.nodepoolConditions_; + bitField0_ = (bitField0_ & ~0x00000002); + nodepoolConditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNodepoolConditionsFieldBuilder() + : null; + } else { + nodepoolConditionsBuilder_.addAllMessages(other.nodepoolConditions_); + } + } + } + if (other.hasError()) { + mergeError(other.getError()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + operationType_ = input.readEnum(); + + break; + } // case 24 + case 32: + { + status_ = input.readEnum(); + + break; + } // case 32 + case 42: + { + statusMessage_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + selfLink_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: + { + targetLink_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + detail_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: + { + location_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 82: + { + startTime_ = input.readStringRequireUtf8(); + + break; + } // case 82 + case 90: + { + endTime_ = input.readStringRequireUtf8(); + + break; + } // case 90 + case 98: + { + input.readMessage(getProgressFieldBuilder().getBuilder(), extensionRegistry); + + 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); + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * The server-assigned ID for the operation.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The server-assigned ID for the operation.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * operation is taking place. This field is deprecated, use location instead.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * + * @deprecated google.container.v1.Operation.zone is deprecated. See + * google/container/v1/cluster_service.proto;l=2034 + * @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=2034 + * @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=2034 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * operation is taking place. This field is deprecated, use location instead.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * + * @deprecated google.container.v1.Operation.zone is deprecated. See + * google/container/v1/cluster_service.proto;l=2034 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * operation is taking place. This field is deprecated, use location instead.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * + * @deprecated google.container.v1.Operation.zone is deprecated. See + * google/container/v1/cluster_service.proto;l=2034 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private int operationType_ = 0; + /** + * + * + *
+     * The operation type.
+     * 
+ * + * .google.container.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; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1.Operation.Type result = + com.google.container.v1.Operation.Type.valueOf(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(); + } + + 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() { + + 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; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1.Operation.Status result = + com.google.container.v1.Operation.Status.valueOf(status_); + return result == null ? com.google.container.v1.Operation.Status.UNRECOGNIZED : result; + } + /** + * + * + *
+     * 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(); + } + + 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() { + + status_ = 0; + onChanged(); + return this; + } + + private java.lang.Object detail_ = ""; + /** + * + * + *
+     * Detailed operation progress, if available.
+     * 
+ * + * string detail = 8; + * + * @return The detail. + */ + public java.lang.String getDetail() { + java.lang.Object ref = detail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + detail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Detailed operation progress, if available.
+     * 
+ * + * string detail = 8; + * + * @return The bytes for detail. + */ + public com.google.protobuf.ByteString getDetailBytes() { + java.lang.Object ref = detail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + detail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Detailed operation progress, if available.
+     * 
+ * + * string detail = 8; + * + * @param value The detail to set. + * @return This builder for chaining. + */ + public Builder setDetail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + detail_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Detailed operation progress, if available.
+     * 
+ * + * string detail = 8; + * + * @return This builder for chaining. + */ + public Builder clearDetail() { + + detail_ = getDefaultInstance().getDetail(); + onChanged(); + return this; + } + /** + * + * + *
+     * Detailed operation progress, if available.
+     * 
+ * + * string detail = 8; + * + * @param value The bytes for detail to set. + * @return This builder for chaining. + */ + public Builder setDetailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + detail_ = value; + onChanged(); + return this; + } + + private java.lang.Object statusMessage_ = ""; + /** + * + * + *
+     * Output only. If an error has occurred, a textual description of the error.
+     * Deprecated. Use 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=2047 + * @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=2047 + * @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=2047 + * @param value The statusMessage to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setStatusMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + statusMessage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If an error has occurred, a textual description of the error.
+     * Deprecated. Use 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=2047 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearStatusMessage() { + + statusMessage_ = getDefaultInstance().getStatusMessage(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If an error has occurred, a textual description of the error.
+     * Deprecated. Use 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=2047 + * @param value The bytes for statusMessage to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + statusMessage_ = value; + onChanged(); + return this; + } + + private java.lang.Object selfLink_ = ""; + /** + * + * + *
+     * Server-defined URL for the resource.
+     * 
+ * + * string self_link = 6; + * + * @return The selfLink. + */ + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Server-defined URL for the resource.
+     * 
+ * + * string self_link = 6; + * + * @return The bytes for selfLink. + */ + public com.google.protobuf.ByteString getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Server-defined URL for the resource.
+     * 
+ * + * string self_link = 6; + * + * @param value The selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + selfLink_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Server-defined URL for the resource.
+     * 
+ * + * string self_link = 6; + * + * @return This builder for chaining. + */ + public Builder clearSelfLink() { + + selfLink_ = getDefaultInstance().getSelfLink(); + onChanged(); + return this; + } + /** + * + * + *
+     * Server-defined URL for the resource.
+     * 
+ * + * string self_link = 6; + * + * @param value The bytes for selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + selfLink_ = value; + onChanged(); + return this; + } + + private java.lang.Object targetLink_ = ""; + /** + * + * + *
+     * Server-defined URL for the target of the operation.
+     * 
+ * + * string target_link = 7; + * + * @return The targetLink. + */ + public java.lang.String getTargetLink() { + java.lang.Object ref = targetLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Server-defined URL for the target of the operation.
+     * 
+ * + * string target_link = 7; + * + * @return The bytes for targetLink. + */ + public com.google.protobuf.ByteString getTargetLinkBytes() { + java.lang.Object ref = targetLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Server-defined URL for the target of the operation.
+     * 
+ * + * string target_link = 7; + * + * @param value The targetLink to set. + * @return This builder for chaining. + */ + public Builder setTargetLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + targetLink_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Server-defined URL for the target of the operation.
+     * 
+ * + * string target_link = 7; + * + * @return This builder for chaining. + */ + public Builder clearTargetLink() { + + targetLink_ = getDefaultInstance().getTargetLink(); + onChanged(); + return this; + } + /** + * + * + *
+     * Server-defined URL for the target of the operation.
+     * 
+ * + * string target_link = 7; + * + * @param value The bytes for targetLink to set. + * @return This builder for chaining. + */ + public Builder setTargetLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + targetLink_ = value; + onChanged(); + return this; + } + + private java.lang.Object location_ = ""; + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * or
+     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * in which the cluster resides.
+     * 
+ * + * string location = 9; + * + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * or
+     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * in which the cluster resides.
+     * 
+ * + * string location = 9; + * + * @return The bytes for location. + */ + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * or
+     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * in which the cluster resides.
+     * 
+ * + * string location = 9; + * + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + location_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * or
+     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * in which the cluster resides.
+     * 
+ * + * string location = 9; + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + + location_ = getDefaultInstance().getLocation(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * or
+     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * in which the cluster resides.
+     * 
+ * + * string location = 9; + * + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + location_ = value; + onChanged(); + return this; + } + + private java.lang.Object startTime_ = ""; + /** + * + * + *
+     * [Output only] The time the operation started, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string start_time = 10; + * + * @return The startTime. + */ + public java.lang.String getStartTime() { + java.lang.Object ref = startTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + startTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] The time the operation started, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string start_time = 10; + * + * @return The bytes for startTime. + */ + public com.google.protobuf.ByteString getStartTimeBytes() { + java.lang.Object ref = startTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + startTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] The time the operation started, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string start_time = 10; + * + * @param value The startTime to set. + * @return This builder for chaining. + */ + public Builder setStartTime(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + startTime_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The time the operation started, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string start_time = 10; + * + * @return This builder for chaining. + */ + public Builder clearStartTime() { + + startTime_ = getDefaultInstance().getStartTime(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The time the operation started, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string start_time = 10; + * + * @param value The bytes for startTime to set. + * @return This builder for chaining. + */ + public Builder setStartTimeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + startTime_ = value; + onChanged(); + return this; + } + + private java.lang.Object endTime_ = ""; + /** + * + * + *
+     * [Output only] The time the operation completed, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string end_time = 11; + * + * @return The endTime. + */ + public java.lang.String getEndTime() { + java.lang.Object ref = endTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] The time the operation completed, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string end_time = 11; + * + * @return The bytes for endTime. + */ + public com.google.protobuf.ByteString getEndTimeBytes() { + java.lang.Object ref = endTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] The time the operation completed, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string end_time = 11; + * + * @param value The endTime to set. + * @return This builder for chaining. + */ + public Builder setEndTime(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + endTime_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The time the operation completed, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string end_time = 11; + * + * @return This builder for chaining. + */ + public Builder clearEndTime() { + + endTime_ = getDefaultInstance().getEndTime(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The time the operation completed, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string end_time = 11; + * + * @param value The bytes for endTime to set. + * @return This builder for chaining. + */ + public Builder setEndTimeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + endTime_ = value; + onChanged(); + return this; + } + + private com.google.container.v1.OperationProgress progress_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.OperationProgress, + com.google.container.v1.OperationProgress.Builder, + com.google.container.v1.OperationProgressOrBuilder> + progressBuilder_; + /** + * + * + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the progress field is set. + */ + public boolean hasProgress() { + return progressBuilder_ != null || progress_ != null; + } + /** + * + * + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The progress. + */ + public com.google.container.v1.OperationProgress getProgress() { + if (progressBuilder_ == null) { + return progress_ == null + ? com.google.container.v1.OperationProgress.getDefaultInstance() + : progress_; + } else { + return progressBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProgress(com.google.container.v1.OperationProgress value) { + if (progressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + progress_ = value; + onChanged(); + } else { + progressBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProgress(com.google.container.v1.OperationProgress.Builder builderForValue) { + if (progressBuilder_ == null) { + progress_ = builderForValue.build(); + onChanged(); + } else { + progressBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeProgress(com.google.container.v1.OperationProgress value) { + if (progressBuilder_ == null) { + if (progress_ != null) { + progress_ = + com.google.container.v1.OperationProgress.newBuilder(progress_) + .mergeFrom(value) + .buildPartial(); + } else { + progress_ = value; + } + onChanged(); + } else { + progressBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearProgress() { + if (progressBuilder_ == null) { + progress_ = null; + onChanged(); + } else { + progress_ = null; + progressBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.container.v1.OperationProgress.Builder getProgressBuilder() { + + onChanged(); + return getProgressFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.container.v1.OperationProgressOrBuilder getProgressOrBuilder() { + if (progressBuilder_ != null) { + return progressBuilder_.getMessageOrBuilder(); + } else { + return progress_ == null + ? com.google.container.v1.OperationProgress.getDefaultInstance() + : progress_; + } + } + /** + * + * + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.OperationProgress, + com.google.container.v1.OperationProgress.Builder, + com.google.container.v1.OperationProgressOrBuilder> + getProgressFieldBuilder() { + if (progressBuilder_ == null) { + progressBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.OperationProgress, + com.google.container.v1.OperationProgress.Builder, + com.google.container.v1.OperationProgressOrBuilder>( + getProgress(), getParentForChildren(), isClean()); + progress_ = null; + } + return progressBuilder_; + } + + private java.util.List clusterConditions_ = + java.util.Collections.emptyList(); + + private void ensureClusterConditionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + clusterConditions_ = + new java.util.ArrayList(clusterConditions_); + bitField0_ |= 0x00000001; + } + } + + 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_ & ~0x00000001); + 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_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + clusterConditions_ = null; + } + return clusterConditionsBuilder_; + } + + private java.util.List nodepoolConditions_ = + java.util.Collections.emptyList(); + + private void ensureNodepoolConditionsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + nodepoolConditions_ = + new java.util.ArrayList(nodepoolConditions_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.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_ & ~0x00000002); + 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_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + nodepoolConditions_ = null; + } + return nodepoolConditionsBuilder_; + } + + private com.google.rpc.Status error_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; + /** + * + * + *
+     * The error result of the operation in case of failure.
+     * 
+ * + * .google.rpc.Status error = 15; + * + * @return Whether the error field is set. + */ + public boolean hasError() { + return errorBuilder_ != null || error_ != null; + } + /** + * + * + *
+     * The error result of the operation in case of failure.
+     * 
+ * + * .google.rpc.Status error = 15; + * + * @return The error. + */ + public com.google.rpc.Status getError() { + if (errorBuilder_ == null) { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } else { + return errorBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The error result of the operation in case of failure.
+     * 
+ * + * .google.rpc.Status error = 15; + */ + public Builder setError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The error result of the operation in case of failure.
+     * 
+ * + * .google.rpc.Status error = 15; + */ + public Builder setError(com.google.rpc.Status.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The error result of the operation in case of failure.
+     * 
+ * + * .google.rpc.Status error = 15; + */ + public Builder mergeError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (error_ != null) { + error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); + } else { + error_ = value; + } + onChanged(); + } else { + errorBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The error result of the operation in case of failure.
+     * 
+ * + * .google.rpc.Status error = 15; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + error_ = null; + onChanged(); + } else { + error_ = null; + errorBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The error result of the operation in case of failure.
+     * 
+ * + * .google.rpc.Status error = 15; + */ + public com.google.rpc.Status.Builder getErrorBuilder() { + + onChanged(); + return getErrorFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The error result of the operation in case of failure.
+     * 
+ * + * .google.rpc.Status error = 15; + */ + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); + } else { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + } + /** + * + * + *
+     * The error result of the operation in case of failure.
+     * 
+ * + * .google.rpc.Status error = 15; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); + error_ = null; + } + return errorBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..50652b7fe61b --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java @@ -0,0 +1,554 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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=2034 + * @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=2034 + * @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=2047 + * @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=2047 + * @return The bytes for statusMessage. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getStatusMessageBytes(); + + /** + * + * + *
+   * Server-defined URL for the resource.
+   * 
+ * + * string self_link = 6; + * + * @return The selfLink. + */ + java.lang.String getSelfLink(); + /** + * + * + *
+   * Server-defined URL for the resource.
+   * 
+ * + * string self_link = 6; + * + * @return The bytes for selfLink. + */ + com.google.protobuf.ByteString getSelfLinkBytes(); + + /** + * + * + *
+   * Server-defined URL for the target of the operation.
+   * 
+ * + * string target_link = 7; + * + * @return The targetLink. + */ + java.lang.String getTargetLink(); + /** + * + * + *
+   * Server-defined URL for the target of the operation.
+   * 
+ * + * string target_link = 7; + * + * @return The bytes for targetLink. + */ + com.google.protobuf.ByteString getTargetLinkBytes(); + + /** + * + * + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * or
+   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * in which the cluster resides.
+   * 
+ * + * string location = 9; + * + * @return The location. + */ + java.lang.String getLocation(); + /** + * + * + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * or
+   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * in which the cluster resides.
+   * 
+ * + * string location = 9; + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); + + /** + * + * + *
+   * [Output only] The time the operation started, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string start_time = 10; + * + * @return The startTime. + */ + java.lang.String getStartTime(); + /** + * + * + *
+   * [Output only] The time the operation started, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string start_time = 10; + * + * @return The bytes for startTime. + */ + com.google.protobuf.ByteString getStartTimeBytes(); + + /** + * + * + *
+   * [Output only] The time the operation completed, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string end_time = 11; + * + * @return The endTime. + */ + java.lang.String getEndTime(); + /** + * + * + *
+   * [Output only] The time the operation completed, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string end_time = 11; + * + * @return The bytes for endTime. + */ + com.google.protobuf.ByteString getEndTimeBytes(); + + /** + * + * + *
+   * Output only. [Output only] Progress information for an operation.
+   * 
+ * + * + * .google.container.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 new file mode 100644 index 000000000000..a2454a38288c --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationProgress.java @@ -0,0 +1,3178 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Information about operation (or operation stage) progress.
+ * 
+ * + * Protobuf type {@code google.container.v1.OperationProgress} + */ +public final class OperationProgress extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.OperationProgress) + OperationProgressOrBuilder { + private static final long serialVersionUID = 0L; + // Use OperationProgress.newBuilder() to construct. + private OperationProgress(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OperationProgress() { + name_ = ""; + status_ = 0; + metrics_ = java.util.Collections.emptyList(); + stages_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OperationProgress(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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(); + + public com.google.container.v1.OperationProgress.Metric.ValueCase getValueCase(); + } + /** + * + * + *
+   * Progress metric is (string, int|float|string) pair.
+   * 
+ * + * Protobuf type {@code google.container.v1.OperationProgress.Metric} + */ + public static final class Metric extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.OperationProgress.Metric) + MetricOrBuilder { + private static final long serialVersionUID = 0L; + // Use Metric.newBuilder() to construct. + private Metric(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Metric() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Metric(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_OperationProgress_Metric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_OperationProgress_Metric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.OperationProgress.Metric.class, + com.google.container.v1.OperationProgress.Metric.Builder.class); + } + + private int valueCase_ = 0; + private java.lang.Object value_; + + public enum ValueCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + INT_VALUE(2), + DOUBLE_VALUE(3), + STRING_VALUE(4), + VALUE_NOT_SET(0); + private final int value; + + private ValueCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 2: + return INT_VALUE; + case 3: + return DOUBLE_VALUE; + case 4: + return STRING_VALUE; + case 0: + return VALUE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+     * Required. Metric name, e.g., "nodes total", "percent done".
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+     * Required. Metric name, e.g., "nodes total", "percent done".
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INT_VALUE_FIELD_NUMBER = 2; + /** + * + * + *
+     * For metrics with integer value.
+     * 
+ * + * int64 int_value = 2; + * + * @return 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(); + name_ = ""; + + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_OperationProgress_Metric_descriptor; + } + + @java.lang.Override + public com.google.container.v1.OperationProgress.Metric getDefaultInstanceForType() { + return com.google.container.v1.OperationProgress.Metric.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.OperationProgress.Metric build() { + com.google.container.v1.OperationProgress.Metric result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.OperationProgress.Metric buildPartial() { + com.google.container.v1.OperationProgress.Metric result = + new com.google.container.v1.OperationProgress.Metric(this); + result.name_ = name_; + if (valueCase_ == 2) { + result.value_ = value_; + } + if (valueCase_ == 3) { + result.value_ = value_; + } + if (valueCase_ == 4) { + result.value_ = value_; + } + result.valueCase_ = valueCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.OperationProgress.Metric) { + return mergeFrom((com.google.container.v1.OperationProgress.Metric) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.OperationProgress.Metric other) { + if (other == com.google.container.v1.OperationProgress.Metric.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + switch (other.getValueCase()) { + case INT_VALUE: + { + setIntValue(other.getIntValue()); + break; + } + case DOUBLE_VALUE: + { + setDoubleValue(other.getDoubleValue()); + break; + } + case STRING_VALUE: + { + valueCase_ = 4; + value_ = other.value_; + onChanged(); + break; + } + case VALUE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 java.lang.Object name_ = ""; + /** + * + * + *
+       * Required. Metric name, e.g., "nodes total", "percent done".
+       * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. Metric name, e.g., "nodes total", "percent done".
+       * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. Metric name, e.g., "nodes total", "percent done".
+       * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Metric name, e.g., "nodes total", "percent done".
+       * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Metric name, e.g., "nodes total", "percent done".
+       * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+       * For metrics with integer value.
+       * 
+ * + * int64 int_value = 2; + * + * @return Whether the intValue field is set. + */ + public boolean hasIntValue() { + return valueCase_ == 2; + } + /** + * + * + *
+       * For metrics with integer value.
+       * 
+ * + * int64 int_value = 2; + * + * @return The intValue. + */ + public long getIntValue() { + if (valueCase_ == 2) { + return (java.lang.Long) value_; + } + return 0L; + } + /** + * + * + *
+       * For metrics with integer value.
+       * 
+ * + * int64 int_value = 2; + * + * @param value The intValue to set. + * @return This builder for chaining. + */ + public Builder setIntValue(long value) { + valueCase_ = 2; + value_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * For metrics with integer value.
+       * 
+ * + * int64 int_value = 2; + * + * @return This builder for chaining. + */ + public Builder clearIntValue() { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * For metrics with floating point value.
+       * 
+ * + * double double_value = 3; + * + * @return Whether the doubleValue field is set. + */ + public boolean hasDoubleValue() { + return valueCase_ == 3; + } + /** + * + * + *
+       * For metrics with floating point value.
+       * 
+ * + * double double_value = 3; + * + * @return The doubleValue. + */ + public double getDoubleValue() { + if (valueCase_ == 3) { + return (java.lang.Double) value_; + } + return 0D; + } + /** + * + * + *
+       * For metrics with floating point value.
+       * 
+ * + * double double_value = 3; + * + * @param value The doubleValue to set. + * @return This builder for chaining. + */ + public Builder setDoubleValue(double value) { + valueCase_ = 3; + value_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * For metrics with floating point value.
+       * 
+ * + * double double_value = 3; + * + * @return This builder for chaining. + */ + public Builder clearDoubleValue() { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * For metrics with custom values (ratios, visual progress, etc.).
+       * 
+ * + * string string_value = 4; + * + * @return Whether the stringValue field is set. + */ + @java.lang.Override + public boolean hasStringValue() { + return valueCase_ == 4; + } + /** + * + * + *
+       * For metrics with custom values (ratios, visual progress, etc.).
+       * 
+ * + * string string_value = 4; + * + * @return The stringValue. + */ + @java.lang.Override + public java.lang.String getStringValue() { + java.lang.Object ref = ""; + if (valueCase_ == 4) { + ref = value_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (valueCase_ == 4) { + value_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * For metrics with custom values (ratios, visual progress, etc.).
+       * 
+ * + * string string_value = 4; + * + * @return The bytes for stringValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStringValueBytes() { + java.lang.Object ref = ""; + if (valueCase_ == 4) { + ref = value_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (valueCase_ == 4) { + value_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * For metrics with custom values (ratios, visual progress, etc.).
+       * 
+ * + * string string_value = 4; + * + * @param value The stringValue to set. + * @return This builder for chaining. + */ + public Builder setStringValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + valueCase_ = 4; + value_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * For metrics with custom values (ratios, visual progress, etc.).
+       * 
+ * + * string string_value = 4; + * + * @return This builder for chaining. + */ + public Builder clearStringValue() { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+       * For metrics with custom values (ratios, visual progress, etc.).
+       * 
+ * + * string string_value = 4; + * + * @param value The bytes for stringValue to set. + * @return This builder for chaining. + */ + public Builder setStringValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + valueCase_ = 4; + value_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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; + private volatile java.lang.Object name_; + /** + * + * + *
+   * A non-parameterized string describing an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * A non-parameterized string describing an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 2; + private int status_; + /** + * + * + *
+   * Status of an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * .google.container.v1.Operation.Status status = 2; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + /** + * + * + *
+   * Status of an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * .google.container.v1.Operation.Status status = 2; + * + * @return The status. + */ + @java.lang.Override + public com.google.container.v1.Operation.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1.Operation.Status result = + com.google.container.v1.Operation.Status.valueOf(status_); + return result == null ? com.google.container.v1.Operation.Status.UNRECOGNIZED : result; + } + + public static final int METRICS_FIELD_NUMBER = 3; + private java.util.List metrics_; + /** + * + * + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + @java.lang.Override + public java.util.List getMetricsList() { + return metrics_; + } + /** + * + * + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + @java.lang.Override + public java.util.List + getMetricsOrBuilderList() { + return metrics_; + } + /** + * + * + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + @java.lang.Override + public int getMetricsCount() { + return metrics_.size(); + } + /** + * + * + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + @java.lang.Override + public com.google.container.v1.OperationProgress.Metric getMetrics(int index) { + return metrics_.get(index); + } + /** + * + * + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + @java.lang.Override + public com.google.container.v1.OperationProgress.MetricOrBuilder getMetricsOrBuilder(int index) { + return metrics_.get(index); + } + + public static final int STAGES_FIELD_NUMBER = 4; + private java.util.List stages_; + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + @java.lang.Override + public java.util.List getStagesList() { + return stages_; + } + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + @java.lang.Override + public java.util.List + getStagesOrBuilderList() { + return stages_; + } + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + @java.lang.Override + public int getStagesCount() { + return stages_.size(); + } + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + @java.lang.Override + public com.google.container.v1.OperationProgress getStages(int index) { + return stages_.get(index); + } + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + @java.lang.Override + public com.google.container.v1.OperationProgressOrBuilder getStagesOrBuilder(int index) { + return stages_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + name_ = ""; + + status_ = 0; + + if (metricsBuilder_ == null) { + metrics_ = java.util.Collections.emptyList(); + } else { + metrics_ = null; + metricsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (stagesBuilder_ == null) { + stages_ = java.util.Collections.emptyList(); + } else { + stages_ = null; + stagesBuilder_.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_OperationProgress_descriptor; + } + + @java.lang.Override + public com.google.container.v1.OperationProgress getDefaultInstanceForType() { + return com.google.container.v1.OperationProgress.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.OperationProgress build() { + com.google.container.v1.OperationProgress result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.OperationProgress buildPartial() { + com.google.container.v1.OperationProgress result = + new com.google.container.v1.OperationProgress(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.status_ = status_; + if (metricsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + metrics_ = java.util.Collections.unmodifiableList(metrics_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.metrics_ = metrics_; + } else { + result.metrics_ = metricsBuilder_.build(); + } + if (stagesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + stages_ = java.util.Collections.unmodifiableList(stages_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.stages_ = stages_; + } else { + result.stages_ = stagesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.OperationProgress) { + return mergeFrom((com.google.container.v1.OperationProgress) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.OperationProgress other) { + if (other == com.google.container.v1.OperationProgress.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (metricsBuilder_ == null) { + if (!other.metrics_.isEmpty()) { + if (metrics_.isEmpty()) { + metrics_ = other.metrics_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMetricsIsMutable(); + metrics_.addAll(other.metrics_); + } + onChanged(); + } + } else { + if (!other.metrics_.isEmpty()) { + if (metricsBuilder_.isEmpty()) { + metricsBuilder_.dispose(); + metricsBuilder_ = null; + metrics_ = other.metrics_; + bitField0_ = (bitField0_ & ~0x00000001); + metricsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMetricsFieldBuilder() + : null; + } else { + metricsBuilder_.addAllMessages(other.metrics_); + } + } + } + if (stagesBuilder_ == null) { + if (!other.stages_.isEmpty()) { + if (stages_.isEmpty()) { + stages_ = other.stages_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureStagesIsMutable(); + stages_.addAll(other.stages_); + } + onChanged(); + } + } else { + if (!other.stages_.isEmpty()) { + if (stagesBuilder_.isEmpty()) { + stagesBuilder_.dispose(); + stagesBuilder_ = null; + stages_ = other.stages_; + bitField0_ = (bitField0_ & ~0x00000002); + stagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStagesFieldBuilder() + : null; + } else { + stagesBuilder_.addAllMessages(other.stages_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 16: + { + status_ = input.readEnum(); + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * A non-parameterized string describing an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * A non-parameterized string describing an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int status_ = 0; + /** + * + * + *
+     * Status of an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * .google.container.v1.Operation.Status status = 2; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + /** + * + * + *
+     * Status of an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * .google.container.v1.Operation.Status status = 2; + * + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + + status_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Status of an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * .google.container.v1.Operation.Status status = 2; + * + * @return The status. + */ + @java.lang.Override + public com.google.container.v1.Operation.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1.Operation.Status result = + com.google.container.v1.Operation.Status.valueOf(status_); + return result == null ? com.google.container.v1.Operation.Status.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Status of an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * .google.container.v1.Operation.Status status = 2; + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(com.google.container.v1.Operation.Status value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Status of an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * .google.container.v1.Operation.Status status = 2; + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + + status_ = 0; + onChanged(); + return this; + } + + private java.util.List metrics_ = + java.util.Collections.emptyList(); + + private void ensureMetricsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + metrics_ = + new java.util.ArrayList(metrics_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.OperationProgress.Metric, + com.google.container.v1.OperationProgress.Metric.Builder, + com.google.container.v1.OperationProgress.MetricOrBuilder> + metricsBuilder_; + + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + public java.util.List getMetricsList() { + if (metricsBuilder_ == null) { + return java.util.Collections.unmodifiableList(metrics_); + } else { + return metricsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + public int getMetricsCount() { + if (metricsBuilder_ == null) { + return metrics_.size(); + } else { + return metricsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1.OperationProgress.Metric getMetrics(int index) { + if (metricsBuilder_ == null) { + return metrics_.get(index); + } else { + return metricsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + public Builder setMetrics(int index, com.google.container.v1.OperationProgress.Metric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.set(index, value); + onChanged(); + } else { + metricsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + public Builder setMetrics( + int index, com.google.container.v1.OperationProgress.Metric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.set(index, builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + public Builder addMetrics(com.google.container.v1.OperationProgress.Metric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.add(value); + onChanged(); + } else { + metricsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + public Builder addMetrics(int index, com.google.container.v1.OperationProgress.Metric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.add(index, value); + onChanged(); + } else { + metricsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + public Builder addMetrics( + com.google.container.v1.OperationProgress.Metric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + public Builder addMetrics( + int index, com.google.container.v1.OperationProgress.Metric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(index, builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + public Builder addAllMetrics( + java.lang.Iterable values) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_); + onChanged(); + } else { + metricsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + public Builder clearMetrics() { + if (metricsBuilder_ == null) { + metrics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + metricsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + public Builder removeMetrics(int index) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.remove(index); + onChanged(); + } else { + metricsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1.OperationProgress.Metric.Builder getMetricsBuilder(int index) { + return getMetricsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1.OperationProgress.MetricOrBuilder getMetricsOrBuilder( + int index) { + if (metricsBuilder_ == null) { + return metrics_.get(index); + } else { + return metricsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + public java.util.List + getMetricsOrBuilderList() { + if (metricsBuilder_ != null) { + return metricsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metrics_); + } + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1.OperationProgress.Metric.Builder addMetricsBuilder() { + return getMetricsFieldBuilder() + .addBuilder(com.google.container.v1.OperationProgress.Metric.getDefaultInstance()); + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1.OperationProgress.Metric.Builder addMetricsBuilder(int index) { + return getMetricsFieldBuilder() + .addBuilder(index, com.google.container.v1.OperationProgress.Metric.getDefaultInstance()); + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + public java.util.List + getMetricsBuilderList() { + return getMetricsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.OperationProgress.Metric, + com.google.container.v1.OperationProgress.Metric.Builder, + com.google.container.v1.OperationProgress.MetricOrBuilder> + getMetricsFieldBuilder() { + if (metricsBuilder_ == null) { + metricsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.OperationProgress.Metric, + com.google.container.v1.OperationProgress.Metric.Builder, + com.google.container.v1.OperationProgress.MetricOrBuilder>( + metrics_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + metrics_ = null; + } + return metricsBuilder_; + } + + private java.util.List stages_ = + java.util.Collections.emptyList(); + + private void ensureStagesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + stages_ = new java.util.ArrayList(stages_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.OperationProgress, + com.google.container.v1.OperationProgress.Builder, + com.google.container.v1.OperationProgressOrBuilder> + stagesBuilder_; + + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public java.util.List getStagesList() { + if (stagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(stages_); + } else { + return stagesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public int getStagesCount() { + if (stagesBuilder_ == null) { + return stages_.size(); + } else { + return stagesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public com.google.container.v1.OperationProgress getStages(int index) { + if (stagesBuilder_ == null) { + return stages_.get(index); + } else { + return stagesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public Builder setStages(int index, com.google.container.v1.OperationProgress value) { + if (stagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStagesIsMutable(); + stages_.set(index, value); + onChanged(); + } else { + stagesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public Builder setStages( + int index, com.google.container.v1.OperationProgress.Builder builderForValue) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.set(index, builderForValue.build()); + onChanged(); + } else { + stagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public Builder addStages(com.google.container.v1.OperationProgress value) { + if (stagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStagesIsMutable(); + stages_.add(value); + onChanged(); + } else { + stagesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public Builder addStages(int index, com.google.container.v1.OperationProgress value) { + if (stagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStagesIsMutable(); + stages_.add(index, value); + onChanged(); + } else { + stagesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public Builder addStages(com.google.container.v1.OperationProgress.Builder builderForValue) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.add(builderForValue.build()); + onChanged(); + } else { + stagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public Builder addStages( + int index, com.google.container.v1.OperationProgress.Builder builderForValue) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.add(index, builderForValue.build()); + onChanged(); + } else { + stagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public Builder addAllStages( + java.lang.Iterable values) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stages_); + onChanged(); + } else { + stagesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public Builder clearStages() { + if (stagesBuilder_ == null) { + stages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + stagesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public Builder removeStages(int index) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.remove(index); + onChanged(); + } else { + stagesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public com.google.container.v1.OperationProgress.Builder getStagesBuilder(int index) { + return getStagesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public com.google.container.v1.OperationProgressOrBuilder getStagesOrBuilder(int index) { + if (stagesBuilder_ == null) { + return stages_.get(index); + } else { + return stagesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public java.util.List + getStagesOrBuilderList() { + if (stagesBuilder_ != null) { + return stagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(stages_); + } + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public com.google.container.v1.OperationProgress.Builder addStagesBuilder() { + return getStagesFieldBuilder() + .addBuilder(com.google.container.v1.OperationProgress.getDefaultInstance()); + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public com.google.container.v1.OperationProgress.Builder addStagesBuilder(int index) { + return getStagesFieldBuilder() + .addBuilder(index, com.google.container.v1.OperationProgress.getDefaultInstance()); + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public java.util.List + getStagesBuilderList() { + return getStagesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.OperationProgress, + com.google.container.v1.OperationProgress.Builder, + com.google.container.v1.OperationProgressOrBuilder> + getStagesFieldBuilder() { + if (stagesBuilder_ == null) { + stagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.OperationProgress, + com.google.container.v1.OperationProgress.Builder, + com.google.container.v1.OperationProgressOrBuilder>( + stages_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + stages_ = null; + } + return stagesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.OperationProgress) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.OperationProgress) + private static final com.google.container.v1.OperationProgress DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.OperationProgress(); + } + + public static com.google.container.v1.OperationProgress getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationProgress parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..5f11ca8c7760 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationProgressOrBuilder.java @@ -0,0 +1,208 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface OperationProgressOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.OperationProgress) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A non-parameterized string describing an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * A non-parameterized string describing an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Status of an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * .google.container.v1.Operation.Status status = 2; + * + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * + * + *
+   * Status of an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * .google.container.v1.Operation.Status status = 2; + * + * @return The status. + */ + com.google.container.v1.Operation.Status getStatus(); + + /** + * + * + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + java.util.List getMetricsList(); + /** + * + * + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + com.google.container.v1.OperationProgress.Metric getMetrics(int index); + /** + * + * + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + int getMetricsCount(); + /** + * + * + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + java.util.List + getMetricsOrBuilderList(); + /** + * + * + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + com.google.container.v1.OperationProgress.MetricOrBuilder getMetricsOrBuilder(int index); + + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + java.util.List getStagesList(); + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + com.google.container.v1.OperationProgress getStages(int index); + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + int getStagesCount(); + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + java.util.List + getStagesOrBuilderList(); + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + com.google.container.v1.OperationProgressOrBuilder getStagesOrBuilder(int index); +} diff --git a/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 new file mode 100644 index 000000000000..1562d5a7b88e --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfig.java @@ -0,0 +1,1849 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Configuration options for 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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); + } + + public static final int ENABLE_PRIVATE_NODES_FIELD_NUMBER = 1; + private boolean enablePrivateNodes_; + /** + * + * + *
+   * Whether nodes have internal IP addresses only. If enabled, all nodes are
+   * given only RFC 1918 private addresses and communicate with the master via
+   * private networking.
+   * 
+ * + * bool enable_private_nodes = 1; + * + * @return The enablePrivateNodes. + */ + @java.lang.Override + public boolean getEnablePrivateNodes() { + return enablePrivateNodes_; + } + + public static final int ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER = 2; + private boolean enablePrivateEndpoint_; + /** + * + * + *
+   * Whether the master's internal IP address is used as the cluster endpoint.
+   * 
+ * + * bool enable_private_endpoint = 2; + * + * @return The enablePrivateEndpoint. + */ + @java.lang.Override + public boolean getEnablePrivateEndpoint() { + return enablePrivateEndpoint_; + } + + public static final int MASTER_IPV4_CIDR_BLOCK_FIELD_NUMBER = 3; + private volatile java.lang.Object masterIpv4CidrBlock_; + /** + * + * + *
+   * The IP range in CIDR notation to use for the hosted master network. This
+   * range will be used for assigning internal IP addresses to the master or
+   * set of masters, as well as the ILB VIP. This range must not overlap with
+   * any other ranges in use within the cluster's network.
+   * 
+ * + * string master_ipv4_cidr_block = 3; + * + * @return The masterIpv4CidrBlock. + */ + @java.lang.Override + public java.lang.String getMasterIpv4CidrBlock() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + masterIpv4CidrBlock_ = s; + return s; + } + } + /** + * + * + *
+   * The IP range in CIDR notation to use for the hosted master network. This
+   * range will be used for assigning internal IP addresses to the master or
+   * set of masters, as well as the ILB VIP. This range must not overlap with
+   * any other ranges in use within the cluster's network.
+   * 
+ * + * string master_ipv4_cidr_block = 3; + * + * @return The bytes for masterIpv4CidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + masterIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRIVATE_ENDPOINT_FIELD_NUMBER = 4; + private volatile java.lang.Object privateEndpoint_; + /** + * + * + *
+   * Output only. The internal IP address of this cluster's master endpoint.
+   * 
+ * + * string private_endpoint = 4; + * + * @return The privateEndpoint. + */ + @java.lang.Override + public java.lang.String getPrivateEndpoint() { + java.lang.Object ref = privateEndpoint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateEndpoint_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The internal IP address of this cluster's master endpoint.
+   * 
+ * + * string private_endpoint = 4; + * + * @return The bytes for privateEndpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrivateEndpointBytes() { + java.lang.Object ref = privateEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PUBLIC_ENDPOINT_FIELD_NUMBER = 5; + private volatile java.lang.Object publicEndpoint_; + /** + * + * + *
+   * Output only. The external IP address of this cluster's master endpoint.
+   * 
+ * + * string public_endpoint = 5; + * + * @return The publicEndpoint. + */ + @java.lang.Override + public java.lang.String getPublicEndpoint() { + java.lang.Object ref = publicEndpoint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publicEndpoint_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The external IP address of this cluster's master endpoint.
+   * 
+ * + * string public_endpoint = 5; + * + * @return The bytes for publicEndpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPublicEndpointBytes() { + java.lang.Object ref = publicEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publicEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PEERING_NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object peeringName_; + /** + * + * + *
+   * Output only. The peering name in the customer VPC used by this cluster.
+   * 
+ * + * string peering_name = 7; + * + * @return The peeringName. + */ + @java.lang.Override + public java.lang.String getPeeringName() { + java.lang.Object ref = peeringName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + peeringName_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The peering name in the customer VPC used by this cluster.
+   * 
+ * + * string peering_name = 7; + * + * @return The bytes for peeringName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPeeringNameBytes() { + java.lang.Object ref = peeringName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peeringName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MASTER_GLOBAL_ACCESS_CONFIG_FIELD_NUMBER = 8; + private com.google.container.v1.PrivateClusterMasterGlobalAccessConfig masterGlobalAccessConfig_; + /** + * + * + *
+   * Controls master global access settings.
+   * 
+ * + * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + * + * @return Whether the masterGlobalAccessConfig field is set. + */ + @java.lang.Override + public boolean hasMasterGlobalAccessConfig() { + return masterGlobalAccessConfig_ != null; + } + /** + * + * + *
+   * Controls master global access settings.
+   * 
+ * + * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + * + * @return The masterGlobalAccessConfig. + */ + @java.lang.Override + public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig + getMasterGlobalAccessConfig() { + return masterGlobalAccessConfig_ == null + ? com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance() + : masterGlobalAccessConfig_; + } + /** + * + * + *
+   * Controls master global access settings.
+   * 
+ * + * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + */ + @java.lang.Override + public com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder + getMasterGlobalAccessConfigOrBuilder() { + return getMasterGlobalAccessConfig(); + } + + public static final int PRIVATE_ENDPOINT_SUBNETWORK_FIELD_NUMBER = 10; + 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 (masterGlobalAccessConfig_ != null) { + 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 (masterGlobalAccessConfig_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enablePrivateNodes_ = false; + + enablePrivateEndpoint_ = false; + + masterIpv4CidrBlock_ = ""; + + privateEndpoint_ = ""; + + publicEndpoint_ = ""; + + peeringName_ = ""; + + if (masterGlobalAccessConfigBuilder_ == null) { + masterGlobalAccessConfig_ = null; + } else { + masterGlobalAccessConfig_ = null; + masterGlobalAccessConfigBuilder_ = null; + } + 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); + result.enablePrivateNodes_ = enablePrivateNodes_; + result.enablePrivateEndpoint_ = enablePrivateEndpoint_; + result.masterIpv4CidrBlock_ = masterIpv4CidrBlock_; + result.privateEndpoint_ = privateEndpoint_; + result.publicEndpoint_ = publicEndpoint_; + result.peeringName_ = peeringName_; + if (masterGlobalAccessConfigBuilder_ == null) { + result.masterGlobalAccessConfig_ = masterGlobalAccessConfig_; + } else { + result.masterGlobalAccessConfig_ = masterGlobalAccessConfigBuilder_.build(); + } + result.privateEndpointSubnetwork_ = privateEndpointSubnetwork_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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_; + onChanged(); + } + if (!other.getPrivateEndpoint().isEmpty()) { + privateEndpoint_ = other.privateEndpoint_; + onChanged(); + } + if (!other.getPublicEndpoint().isEmpty()) { + publicEndpoint_ = other.publicEndpoint_; + onChanged(); + } + if (!other.getPeeringName().isEmpty()) { + peeringName_ = other.peeringName_; + onChanged(); + } + if (other.hasMasterGlobalAccessConfig()) { + mergeMasterGlobalAccessConfig(other.getMasterGlobalAccessConfig()); + } + if (!other.getPrivateEndpointSubnetwork().isEmpty()) { + privateEndpointSubnetwork_ = other.privateEndpointSubnetwork_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 8 + case 16: + { + enablePrivateEndpoint_ = input.readBool(); + + break; + } // case 16 + case 26: + { + masterIpv4CidrBlock_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + privateEndpoint_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + publicEndpoint_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 58: + { + peeringName_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + input.readMessage( + getMasterGlobalAccessConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 66 + case 82: + { + privateEndpointSubnetwork_ = input.readStringRequireUtf8(); + + 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 boolean enablePrivateNodes_; + /** + * + * + *
+     * Whether nodes have internal IP addresses only. If enabled, all nodes are
+     * given only RFC 1918 private addresses and communicate with the master via
+     * private networking.
+     * 
+ * + * bool enable_private_nodes = 1; + * + * @return The enablePrivateNodes. + */ + @java.lang.Override + public boolean getEnablePrivateNodes() { + return enablePrivateNodes_; + } + /** + * + * + *
+     * Whether nodes have internal IP addresses only. If enabled, all nodes are
+     * given only RFC 1918 private addresses and communicate with the master via
+     * private networking.
+     * 
+ * + * bool enable_private_nodes = 1; + * + * @param value The enablePrivateNodes to set. + * @return This builder for chaining. + */ + public Builder setEnablePrivateNodes(boolean value) { + + enablePrivateNodes_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether nodes have internal IP addresses only. If enabled, all nodes are
+     * given only RFC 1918 private addresses and communicate with the master via
+     * private networking.
+     * 
+ * + * bool enable_private_nodes = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnablePrivateNodes() { + + enablePrivateNodes_ = false; + onChanged(); + return this; + } + + private boolean enablePrivateEndpoint_; + /** + * + * + *
+     * Whether the master's internal IP address is used as the cluster endpoint.
+     * 
+ * + * bool enable_private_endpoint = 2; + * + * @return The enablePrivateEndpoint. + */ + @java.lang.Override + public boolean getEnablePrivateEndpoint() { + return enablePrivateEndpoint_; + } + /** + * + * + *
+     * Whether the master's internal IP address is used as the cluster endpoint.
+     * 
+ * + * bool enable_private_endpoint = 2; + * + * @param value The enablePrivateEndpoint to set. + * @return This builder for chaining. + */ + public Builder setEnablePrivateEndpoint(boolean value) { + + enablePrivateEndpoint_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the master's internal IP address is used as the cluster endpoint.
+     * 
+ * + * bool enable_private_endpoint = 2; + * + * @return This builder for chaining. + */ + public Builder clearEnablePrivateEndpoint() { + + enablePrivateEndpoint_ = false; + onChanged(); + return this; + } + + private java.lang.Object masterIpv4CidrBlock_ = ""; + /** + * + * + *
+     * The IP range in CIDR notation to use for the hosted master network. This
+     * range will be used for assigning internal IP addresses to the master or
+     * set of masters, as well as the ILB VIP. This range must not overlap with
+     * any other ranges in use within the cluster's network.
+     * 
+ * + * string master_ipv4_cidr_block = 3; + * + * @return The masterIpv4CidrBlock. + */ + public java.lang.String getMasterIpv4CidrBlock() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + masterIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The IP range in CIDR notation to use for the hosted master network. This
+     * range will be used for assigning internal IP addresses to the master or
+     * set of masters, as well as the ILB VIP. This range must not overlap with
+     * any other ranges in use within the cluster's network.
+     * 
+ * + * string master_ipv4_cidr_block = 3; + * + * @return The bytes for masterIpv4CidrBlock. + */ + public com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + masterIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The IP range in CIDR notation to use for the hosted master network. This
+     * range will be used for assigning internal IP addresses to the master or
+     * set of masters, as well as the ILB VIP. This range must not overlap with
+     * any other ranges in use within the cluster's network.
+     * 
+ * + * string master_ipv4_cidr_block = 3; + * + * @param value The masterIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setMasterIpv4CidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + masterIpv4CidrBlock_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The IP range in CIDR notation to use for the hosted master network. This
+     * range will be used for assigning internal IP addresses to the master or
+     * set of masters, as well as the ILB VIP. This range must not overlap with
+     * any other ranges in use within the cluster's network.
+     * 
+ * + * string master_ipv4_cidr_block = 3; + * + * @return This builder for chaining. + */ + public Builder clearMasterIpv4CidrBlock() { + + masterIpv4CidrBlock_ = getDefaultInstance().getMasterIpv4CidrBlock(); + onChanged(); + return this; + } + /** + * + * + *
+     * The IP range in CIDR notation to use for the hosted master network. This
+     * range will be used for assigning internal IP addresses to the master or
+     * set of masters, as well as the ILB VIP. This range must not overlap with
+     * any other ranges in use within the cluster's network.
+     * 
+ * + * string master_ipv4_cidr_block = 3; + * + * @param value The bytes for masterIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setMasterIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + masterIpv4CidrBlock_ = value; + onChanged(); + return this; + } + + private java.lang.Object privateEndpoint_ = ""; + /** + * + * + *
+     * Output only. The internal IP address of this cluster's master endpoint.
+     * 
+ * + * string private_endpoint = 4; + * + * @return The privateEndpoint. + */ + public java.lang.String getPrivateEndpoint() { + java.lang.Object ref = privateEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The internal IP address of this cluster's master endpoint.
+     * 
+ * + * string private_endpoint = 4; + * + * @return The bytes for privateEndpoint. + */ + public com.google.protobuf.ByteString getPrivateEndpointBytes() { + java.lang.Object ref = privateEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The internal IP address of this cluster's master endpoint.
+     * 
+ * + * string private_endpoint = 4; + * + * @param value The privateEndpoint to set. + * @return This builder for chaining. + */ + public Builder setPrivateEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + privateEndpoint_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The internal IP address of this cluster's master endpoint.
+     * 
+ * + * string private_endpoint = 4; + * + * @return This builder for chaining. + */ + public Builder clearPrivateEndpoint() { + + privateEndpoint_ = getDefaultInstance().getPrivateEndpoint(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The internal IP address of this cluster's master endpoint.
+     * 
+ * + * string private_endpoint = 4; + * + * @param value The bytes for privateEndpoint to set. + * @return This builder for chaining. + */ + public Builder setPrivateEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + privateEndpoint_ = value; + onChanged(); + return this; + } + + private java.lang.Object publicEndpoint_ = ""; + /** + * + * + *
+     * Output only. The external IP address of this cluster's master endpoint.
+     * 
+ * + * string public_endpoint = 5; + * + * @return The publicEndpoint. + */ + public java.lang.String getPublicEndpoint() { + java.lang.Object ref = publicEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publicEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The external IP address of this cluster's master endpoint.
+     * 
+ * + * string public_endpoint = 5; + * + * @return The bytes for publicEndpoint. + */ + public com.google.protobuf.ByteString getPublicEndpointBytes() { + java.lang.Object ref = publicEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publicEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The external IP address of this cluster's master endpoint.
+     * 
+ * + * string public_endpoint = 5; + * + * @param value The publicEndpoint to set. + * @return This builder for chaining. + */ + public Builder setPublicEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + publicEndpoint_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The external IP address of this cluster's master endpoint.
+     * 
+ * + * string public_endpoint = 5; + * + * @return This builder for chaining. + */ + public Builder clearPublicEndpoint() { + + publicEndpoint_ = getDefaultInstance().getPublicEndpoint(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The external IP address of this cluster's master endpoint.
+     * 
+ * + * string public_endpoint = 5; + * + * @param value The bytes for publicEndpoint to set. + * @return This builder for chaining. + */ + public Builder setPublicEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + publicEndpoint_ = value; + onChanged(); + return this; + } + + private java.lang.Object peeringName_ = ""; + /** + * + * + *
+     * Output only. The peering name in the customer VPC used by this cluster.
+     * 
+ * + * string peering_name = 7; + * + * @return The peeringName. + */ + public java.lang.String getPeeringName() { + java.lang.Object ref = peeringName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + peeringName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The peering name in the customer VPC used by this cluster.
+     * 
+ * + * string peering_name = 7; + * + * @return The bytes for peeringName. + */ + public com.google.protobuf.ByteString getPeeringNameBytes() { + java.lang.Object ref = peeringName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peeringName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The peering name in the customer VPC used by this cluster.
+     * 
+ * + * string peering_name = 7; + * + * @param value The peeringName to set. + * @return This builder for chaining. + */ + public Builder setPeeringName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + peeringName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The peering name in the customer VPC used by this cluster.
+     * 
+ * + * string peering_name = 7; + * + * @return This builder for chaining. + */ + public Builder clearPeeringName() { + + peeringName_ = getDefaultInstance().getPeeringName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The peering name in the customer VPC used by this cluster.
+     * 
+ * + * string peering_name = 7; + * + * @param value The bytes for peeringName to set. + * @return This builder for chaining. + */ + public Builder setPeeringNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + peeringName_ = value; + onChanged(); + return this; + } + + private com.google.container.v1.PrivateClusterMasterGlobalAccessConfig + masterGlobalAccessConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig, + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder, + com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder> + masterGlobalAccessConfigBuilder_; + /** + * + * + *
+     * Controls master global access settings.
+     * 
+ * + * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + * + * @return Whether the masterGlobalAccessConfig field is set. + */ + public boolean hasMasterGlobalAccessConfig() { + return masterGlobalAccessConfigBuilder_ != null || masterGlobalAccessConfig_ != null; + } + /** + * + * + *
+     * Controls master global access settings.
+     * 
+ * + * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + * + * @return The masterGlobalAccessConfig. + */ + public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig + getMasterGlobalAccessConfig() { + if (masterGlobalAccessConfigBuilder_ == null) { + return masterGlobalAccessConfig_ == null + ? com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance() + : masterGlobalAccessConfig_; + } else { + return masterGlobalAccessConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Controls master global access settings.
+     * 
+ * + * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + */ + public Builder setMasterGlobalAccessConfig( + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig value) { + if (masterGlobalAccessConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + masterGlobalAccessConfig_ = value; + onChanged(); + } else { + masterGlobalAccessConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Controls master global access settings.
+     * 
+ * + * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + */ + public Builder setMasterGlobalAccessConfig( + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder builderForValue) { + if (masterGlobalAccessConfigBuilder_ == null) { + masterGlobalAccessConfig_ = builderForValue.build(); + onChanged(); + } else { + masterGlobalAccessConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Controls master global access settings.
+     * 
+ * + * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + */ + public Builder mergeMasterGlobalAccessConfig( + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig value) { + if (masterGlobalAccessConfigBuilder_ == null) { + if (masterGlobalAccessConfig_ != null) { + masterGlobalAccessConfig_ = + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.newBuilder( + masterGlobalAccessConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + masterGlobalAccessConfig_ = value; + } + onChanged(); + } else { + masterGlobalAccessConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Controls master global access settings.
+     * 
+ * + * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + */ + public Builder clearMasterGlobalAccessConfig() { + if (masterGlobalAccessConfigBuilder_ == null) { + masterGlobalAccessConfig_ = null; + onChanged(); + } else { + masterGlobalAccessConfig_ = null; + masterGlobalAccessConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Controls master global access settings.
+     * 
+ * + * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + */ + public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder + getMasterGlobalAccessConfigBuilder() { + + onChanged(); + return getMasterGlobalAccessConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Controls master global access settings.
+     * 
+ * + * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + */ + public com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder + getMasterGlobalAccessConfigOrBuilder() { + if (masterGlobalAccessConfigBuilder_ != null) { + return masterGlobalAccessConfigBuilder_.getMessageOrBuilder(); + } else { + return masterGlobalAccessConfig_ == null + ? com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance() + : masterGlobalAccessConfig_; + } + } + /** + * + * + *
+     * Controls master global access settings.
+     * 
+ * + * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig, + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder, + com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder> + getMasterGlobalAccessConfigFieldBuilder() { + if (masterGlobalAccessConfigBuilder_ == null) { + masterGlobalAccessConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig, + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder, + com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder>( + getMasterGlobalAccessConfig(), getParentForChildren(), isClean()); + masterGlobalAccessConfig_ = null; + } + return masterGlobalAccessConfigBuilder_; + } + + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..48ad74d50dd7 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfigOrBuilder.java @@ -0,0 +1,228 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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 new file mode 100644 index 000000000000..484f60dadbfa --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterMasterGlobalAccessConfig.java @@ -0,0 +1,535 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Configuration for controlling master global access settings.
+ * 
+ * + * Protobuf type {@code google.container.v1.PrivateClusterMasterGlobalAccessConfig} + */ +public final class PrivateClusterMasterGlobalAccessConfig + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.PrivateClusterMasterGlobalAccessConfig) + PrivateClusterMasterGlobalAccessConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use PrivateClusterMasterGlobalAccessConfig.newBuilder() to construct. + private PrivateClusterMasterGlobalAccessConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PrivateClusterMasterGlobalAccessConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PrivateClusterMasterGlobalAccessConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_PrivateClusterMasterGlobalAccessConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_PrivateClusterMasterGlobalAccessConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.class, + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whenever master is accessible globally or not.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + 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(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_PrivateClusterMasterGlobalAccessConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig + getDefaultInstanceForType() { + return com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig build() { + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig buildPartial() { + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig result = + new com.google.container.v1.PrivateClusterMasterGlobalAccessConfig(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.PrivateClusterMasterGlobalAccessConfig) { + return mergeFrom((com.google.container.v1.PrivateClusterMasterGlobalAccessConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.PrivateClusterMasterGlobalAccessConfig other) { + if (other + == com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 boolean enabled_; + /** + * + * + *
+     * Whenever master is accessible globally or not.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whenever master is accessible globally or not.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whenever master is accessible globally or not.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.PrivateClusterMasterGlobalAccessConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.PrivateClusterMasterGlobalAccessConfig) + private static final com.google.container.v1.PrivateClusterMasterGlobalAccessConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.PrivateClusterMasterGlobalAccessConfig(); + } + + public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateClusterMasterGlobalAccessConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..59fcbb68446b --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterMasterGlobalAccessConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface PrivateClusterMasterGlobalAccessConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.PrivateClusterMasterGlobalAccessConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whenever master is accessible globally or not.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/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 new file mode 100644 index 000000000000..44bae8d7d6ef --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateIPv6GoogleAccess.java @@ -0,0 +1,202 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * PrivateIPv6GoogleAccess controls whether and how the pods can communicate
+ * with Google Services through gRPC over IPv6.
+ * 
+ * + * Protobuf enum {@code google.container.v1.PrivateIPv6GoogleAccess} + */ +public enum PrivateIPv6GoogleAccess implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value. Same as DISABLED
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0; + */ + PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED(0), + /** + * + * + *
+   * No private access to or from Google Services
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED = 1; + */ + PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED(1), + /** + * + * + *
+   * Enables private IPv6 access to Google Services from GKE
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE = 2; + */ + PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE(2), + /** + * + * + *
+   * Enables priate IPv6 access to and from Google Services
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL = 3; + */ + PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default value. Same as DISABLED
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0; + */ + public static final int PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * No private access to or from Google Services
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED = 1; + */ + public static final int PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED_VALUE = 1; + /** + * + * + *
+   * Enables private IPv6 access to Google Services from GKE
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE = 2; + */ + public static final int PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE_VALUE = 2; + /** + * + * + *
+   * Enables priate IPv6 access to and from Google Services
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL = 3; + */ + public static final int PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PrivateIPv6GoogleAccess valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static PrivateIPv6GoogleAccess forNumber(int value) { + switch (value) { + case 0: + return PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED; + case 1: + return PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED; + case 2: + return PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE; + case 3: + return PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PrivateIPv6GoogleAccess findValueByNumber(int number) { + return PrivateIPv6GoogleAccess.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto.getDescriptor().getEnumTypes().get(0); + } + + private static final PrivateIPv6GoogleAccess[] VALUES = values(); + + public static PrivateIPv6GoogleAccess valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private PrivateIPv6GoogleAccess(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.PrivateIPv6GoogleAccess) +} diff --git a/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 new file mode 100644 index 000000000000..ec0b2bbec66d --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindow.java @@ -0,0 +1,1050 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Represents 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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); + } + + 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 window_ != null; + } + /** + * + * + *
+   * 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 getWindow(); + } + + public static final int RECURRENCE_FIELD_NUMBER = 2; + private volatile java.lang.Object recurrence_; + /** + * + * + *
+   * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
+   * this window reccurs. They go on for the span of time between the start and
+   * end time.
+   * For example, to have something repeat every weekday, you'd use:
+   * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
+   * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
+   * `FREQ=DAILY`
+   * For the first weekend of every month:
+   * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
+   * This specifies how frequently the window starts. Eg, if you wanted to have
+   * a 9-5 UTC-4 window every weekday, you'd use something like:
+   * ```
+   * start time = 2019-01-01T09:00:00-0400
+   * end time = 2019-01-01T17:00:00-0400
+   * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
+   * ```
+   * Windows can span multiple days. Eg, to make the window encompass every
+   * weekend from midnight Saturday till the last minute of Sunday UTC:
+   * ```
+   * start time = 2019-01-05T00:00:00Z
+   * end time = 2019-01-07T23:59:00Z
+   * recurrence = FREQ=WEEKLY;BYDAY=SA
+   * ```
+   * Note the start and end time's specific dates are largely arbitrary except
+   * to specify duration of the window and when it first starts.
+   * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
+   * 
+ * + * string recurrence = 2; + * + * @return The recurrence. + */ + @java.lang.Override + public java.lang.String getRecurrence() { + java.lang.Object ref = recurrence_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + recurrence_ = s; + return s; + } + } + /** + * + * + *
+   * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
+   * this window reccurs. They go on for the span of time between the start and
+   * end time.
+   * For example, to have something repeat every weekday, you'd use:
+   * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
+   * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
+   * `FREQ=DAILY`
+   * For the first weekend of every month:
+   * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
+   * This specifies how frequently the window starts. Eg, if you wanted to have
+   * a 9-5 UTC-4 window every weekday, you'd use something like:
+   * ```
+   * start time = 2019-01-01T09:00:00-0400
+   * end time = 2019-01-01T17:00:00-0400
+   * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
+   * ```
+   * Windows can span multiple days. Eg, to make the window encompass every
+   * weekend from midnight Saturday till the last minute of Sunday UTC:
+   * ```
+   * start time = 2019-01-05T00:00:00Z
+   * end time = 2019-01-07T23:59:00Z
+   * recurrence = FREQ=WEEKLY;BYDAY=SA
+   * ```
+   * Note the start and end time's specific dates are largely arbitrary except
+   * to specify duration of the window and when it first starts.
+   * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
+   * 
+ * + * string recurrence = 2; + * + * @return The bytes for recurrence. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRecurrenceBytes() { + java.lang.Object ref = recurrence_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + recurrence_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (window_ != null) { + output.writeMessage(1, getWindow()); + } + if (!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 (window_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (windowBuilder_ == null) { + window_ = null; + } else { + window_ = null; + windowBuilder_ = null; + } + recurrence_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.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 (windowBuilder_ == null) { + result.window_ = window_; + } else { + result.window_ = windowBuilder_.build(); + } + result.recurrence_ = recurrence_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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); + + break; + } // case 10 + case 18: + { + recurrence_ = input.readStringRequireUtf8(); + + 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 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 windowBuilder_ != null || window_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + windowBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + windowBuilder_.setMessage(builderForValue.build()); + } + + 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 (window_ != null) { + window_ = + com.google.container.v1.TimeWindow.newBuilder(window_) + .mergeFrom(value) + .buildPartial(); + } else { + window_ = value; + } + onChanged(); + } else { + windowBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The window of the first recurrence.
+     * 
+ * + * .google.container.v1.TimeWindow window = 1; + */ + public Builder clearWindow() { + if (windowBuilder_ == null) { + window_ = null; + onChanged(); + } else { + window_ = null; + windowBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The window of the first recurrence.
+     * 
+ * + * .google.container.v1.TimeWindow window = 1; + */ + public com.google.container.v1.TimeWindow.Builder getWindowBuilder() { + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
+     * this window reccurs. They go on for the span of time between the start and
+     * end time.
+     * For example, to have something repeat every weekday, you'd use:
+     * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
+     * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
+     * `FREQ=DAILY`
+     * For the first weekend of every month:
+     * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
+     * This specifies how frequently the window starts. Eg, if you wanted to have
+     * a 9-5 UTC-4 window every weekday, you'd use something like:
+     * ```
+     * start time = 2019-01-01T09:00:00-0400
+     * end time = 2019-01-01T17:00:00-0400
+     * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
+     * ```
+     * Windows can span multiple days. Eg, to make the window encompass every
+     * weekend from midnight Saturday till the last minute of Sunday UTC:
+     * ```
+     * start time = 2019-01-05T00:00:00Z
+     * end time = 2019-01-07T23:59:00Z
+     * recurrence = FREQ=WEEKLY;BYDAY=SA
+     * ```
+     * Note the start and end time's specific dates are largely arbitrary except
+     * to specify duration of the window and when it first starts.
+     * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
+     * 
+ * + * string recurrence = 2; + * + * @return This builder for chaining. + */ + public Builder clearRecurrence() { + + recurrence_ = getDefaultInstance().getRecurrence(); + onChanged(); + return this; + } + /** + * + * + *
+     * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
+     * this window reccurs. They go on for the span of time between the start and
+     * end time.
+     * For example, to have something repeat every weekday, you'd use:
+     * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
+     * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
+     * `FREQ=DAILY`
+     * For the first weekend of every month:
+     * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
+     * This specifies how frequently the window starts. Eg, if you wanted to have
+     * a 9-5 UTC-4 window every weekday, you'd use something like:
+     * ```
+     * start time = 2019-01-01T09:00:00-0400
+     * end time = 2019-01-01T17:00:00-0400
+     * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
+     * ```
+     * Windows can span multiple days. Eg, to make the window encompass every
+     * weekend from midnight Saturday till the last minute of Sunday UTC:
+     * ```
+     * start time = 2019-01-05T00:00:00Z
+     * end time = 2019-01-07T23:59:00Z
+     * recurrence = FREQ=WEEKLY;BYDAY=SA
+     * ```
+     * Note the start and end time's specific dates are largely arbitrary except
+     * to specify duration of the window and when it first starts.
+     * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
+     * 
+ * + * string recurrence = 2; + * + * @param value The bytes for recurrence to set. + * @return This builder for chaining. + */ + public Builder setRecurrenceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + recurrence_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..c17f3e73de66 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindowOrBuilder.java @@ -0,0 +1,135 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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 new file mode 100644 index 000000000000..fbe78c7a0d2d --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReleaseChannel.java @@ -0,0 +1,785 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * ReleaseChannel indicates which release channel a cluster is
+ * subscribed to. Release channels are arranged in order of risk.
+ * When a cluster is subscribed to a release channel, Google maintains
+ * both the master version and the node version. Node auto-upgrade
+ * defaults to true and cannot be disabled.
+ * 
+ * + * Protobuf type {@code google.container.v1.ReleaseChannel} + */ +public final class ReleaseChannel extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.ReleaseChannel) + ReleaseChannelOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReleaseChannel.newBuilder() to construct. + private ReleaseChannel(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReleaseChannel() { + channel_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReleaseChannel(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ReleaseChannel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ReleaseChannel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ReleaseChannel.class, + com.google.container.v1.ReleaseChannel.Builder.class); + } + + /** + * + * + *
+   * Possible values for 'channel'.
+   * 
+ * + * Protobuf enum {@code google.container.v1.ReleaseChannel.Channel} + */ + public enum Channel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * No channel specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + * + * + *
+     * RAPID channel is offered on an early access basis for customers who want
+     * to test new releases.
+     * WARNING: Versions available in the RAPID Channel may be subject to
+     * unresolved issues with no known workaround and are not subject to any
+     * SLAs.
+     * 
+ * + * RAPID = 1; + */ + RAPID(1), + /** + * + * + *
+     * Clusters subscribed to REGULAR receive versions that are considered GA
+     * quality. REGULAR is intended for production users who want to take
+     * advantage of new features.
+     * 
+ * + * REGULAR = 2; + */ + REGULAR(2), + /** + * + * + *
+     * Clusters subscribed to STABLE receive versions that are known to be
+     * stable and reliable in production.
+     * 
+ * + * STABLE = 3; + */ + STABLE(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * No channel specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * RAPID channel is offered on an early access basis for customers who want
+     * to test new releases.
+     * WARNING: Versions available in the RAPID Channel may be subject to
+     * unresolved issues with no known workaround and are not subject to any
+     * SLAs.
+     * 
+ * + * RAPID = 1; + */ + public static final int RAPID_VALUE = 1; + /** + * + * + *
+     * Clusters subscribed to REGULAR receive versions that are considered GA
+     * quality. REGULAR is intended for production users who want to take
+     * advantage of new features.
+     * 
+ * + * REGULAR = 2; + */ + public static final int REGULAR_VALUE = 2; + /** + * + * + *
+     * Clusters subscribed to STABLE receive versions that are known to be
+     * stable and reliable in production.
+     * 
+ * + * STABLE = 3; + */ + public static final int STABLE_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Channel valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Channel forNumber(int value) { + switch (value) { + case 0: + return UNSPECIFIED; + case 1: + return RAPID; + case 2: + return REGULAR; + case 3: + return STABLE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Channel findValueByNumber(int number) { + return Channel.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1.ReleaseChannel.getDescriptor().getEnumTypes().get(0); + } + + private static final Channel[] VALUES = values(); + + public static Channel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Channel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.ReleaseChannel.Channel) + } + + public static final int CHANNEL_FIELD_NUMBER = 1; + private int channel_; + /** + * + * + *
+   * channel specifies which release channel the cluster is subscribed to.
+   * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * + * @return The enum numeric value on the wire for channel. + */ + @java.lang.Override + public int getChannelValue() { + return channel_; + } + /** + * + * + *
+   * channel specifies which release channel the cluster is subscribed to.
+   * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * + * @return The channel. + */ + @java.lang.Override + public com.google.container.v1.ReleaseChannel.Channel getChannel() { + @SuppressWarnings("deprecation") + com.google.container.v1.ReleaseChannel.Channel result = + com.google.container.v1.ReleaseChannel.Channel.valueOf(channel_); + return result == null ? com.google.container.v1.ReleaseChannel.Channel.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (channel_ != com.google.container.v1.ReleaseChannel.Channel.UNSPECIFIED.getNumber()) { + output.writeEnum(1, channel_); + } + 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(); + channel_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ReleaseChannel_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ReleaseChannel getDefaultInstanceForType() { + return com.google.container.v1.ReleaseChannel.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ReleaseChannel build() { + com.google.container.v1.ReleaseChannel result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ReleaseChannel buildPartial() { + com.google.container.v1.ReleaseChannel result = + new com.google.container.v1.ReleaseChannel(this); + result.channel_ = channel_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ReleaseChannel) { + return mergeFrom((com.google.container.v1.ReleaseChannel) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ReleaseChannel other) { + if (other == com.google.container.v1.ReleaseChannel.getDefaultInstance()) return this; + if (other.channel_ != 0) { + setChannelValue(other.getChannelValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 channel_ = 0; + /** + * + * + *
+     * channel specifies which release channel the cluster is subscribed to.
+     * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * + * @return The enum numeric value on the wire for channel. + */ + @java.lang.Override + public int getChannelValue() { + return channel_; + } + /** + * + * + *
+     * channel specifies which release channel the cluster is subscribed to.
+     * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * + * @param value The enum numeric value on the wire for channel to set. + * @return This builder for chaining. + */ + public Builder setChannelValue(int value) { + + channel_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * channel specifies which release channel the cluster is subscribed to.
+     * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * + * @return The channel. + */ + @java.lang.Override + public com.google.container.v1.ReleaseChannel.Channel getChannel() { + @SuppressWarnings("deprecation") + com.google.container.v1.ReleaseChannel.Channel result = + com.google.container.v1.ReleaseChannel.Channel.valueOf(channel_); + return result == null ? com.google.container.v1.ReleaseChannel.Channel.UNRECOGNIZED : result; + } + /** + * + * + *
+     * channel specifies which release channel the cluster is subscribed to.
+     * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * + * @param value The channel to set. + * @return This builder for chaining. + */ + public Builder setChannel(com.google.container.v1.ReleaseChannel.Channel value) { + if (value == null) { + throw new NullPointerException(); + } + + channel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * channel specifies which release channel the cluster is subscribed to.
+     * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * + * @return This builder for chaining. + */ + public Builder clearChannel() { + + channel_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.ReleaseChannel) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ReleaseChannel) + private static final com.google.container.v1.ReleaseChannel DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.ReleaseChannel(); + } + + public static com.google.container.v1.ReleaseChannel getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReleaseChannel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..f529cad11e9e --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReleaseChannelOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface ReleaseChannelOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ReleaseChannel) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * channel specifies which release channel the cluster is subscribed to.
+   * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * + * @return The enum numeric value on the wire for channel. + */ + int getChannelValue(); + /** + * + * + *
+   * channel specifies which release channel the cluster is subscribed to.
+   * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * + * @return The channel. + */ + com.google.container.v1.ReleaseChannel.Channel getChannel(); +} diff --git a/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 new file mode 100644 index 000000000000..fff30f751e4b --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReservationAffinity.java @@ -0,0 +1,1247 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+ * is the configuration of desired reservation which instances could take
+ * capacity from.
+ * 
+ * + * Protobuf type {@code google.container.v1.ReservationAffinity} + */ +public final class ReservationAffinity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.ReservationAffinity) + ReservationAffinityOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReservationAffinity.newBuilder() to construct. + private ReservationAffinity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReservationAffinity() { + consumeReservationType_ = 0; + key_ = ""; + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReservationAffinity(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ReservationAffinity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ReservationAffinity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ReservationAffinity.class, + com.google.container.v1.ReservationAffinity.Builder.class); + } + + /** + * + * + *
+   * Indicates whether to consume capacity from a reservation or not.
+   * 
+ * + * Protobuf enum {@code google.container.v1.ReservationAffinity.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. This should not be used.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + * + * + *
+     * Do not consume from any reserved capacity.
+     * 
+ * + * NO_RESERVATION = 1; + */ + NO_RESERVATION(1), + /** + * + * + *
+     * Consume any reservation available.
+     * 
+ * + * ANY_RESERVATION = 2; + */ + ANY_RESERVATION(2), + /** + * + * + *
+     * Must consume from a specific reservation. Must specify key value fields
+     * for specifying the reservations.
+     * 
+ * + * SPECIFIC_RESERVATION = 3; + */ + SPECIFIC_RESERVATION(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value. This should not be used.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Do not consume from any reserved capacity.
+     * 
+ * + * NO_RESERVATION = 1; + */ + public static final int NO_RESERVATION_VALUE = 1; + /** + * + * + *
+     * Consume any reservation available.
+     * 
+ * + * ANY_RESERVATION = 2; + */ + public static final int ANY_RESERVATION_VALUE = 2; + /** + * + * + *
+     * Must consume from a specific reservation. Must specify key value fields
+     * for specifying the reservations.
+     * 
+ * + * SPECIFIC_RESERVATION = 3; + */ + public static final int SPECIFIC_RESERVATION_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: + return UNSPECIFIED; + case 1: + return NO_RESERVATION; + case 2: + return ANY_RESERVATION; + case 3: + return SPECIFIC_RESERVATION; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1.ReservationAffinity.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.ReservationAffinity.Type) + } + + public static final int CONSUME_RESERVATION_TYPE_FIELD_NUMBER = 1; + private int consumeReservationType_; + /** + * + * + *
+   * Corresponds to the type of reservation consumption.
+   * 
+ * + * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; + * + * @return The enum numeric value on the wire for consumeReservationType. + */ + @java.lang.Override + public int getConsumeReservationTypeValue() { + return consumeReservationType_; + } + /** + * + * + *
+   * Corresponds to the type of reservation consumption.
+   * 
+ * + * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; + * + * @return The consumeReservationType. + */ + @java.lang.Override + public com.google.container.v1.ReservationAffinity.Type getConsumeReservationType() { + @SuppressWarnings("deprecation") + com.google.container.v1.ReservationAffinity.Type result = + com.google.container.v1.ReservationAffinity.Type.valueOf(consumeReservationType_); + return result == null ? com.google.container.v1.ReservationAffinity.Type.UNRECOGNIZED : result; + } + + public static final int KEY_FIELD_NUMBER = 2; + private volatile java.lang.Object key_; + /** + * + * + *
+   * Corresponds to the label key of a reservation resource. To target a
+   * SPECIFIC_RESERVATION by name, specify
+   * "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; + private com.google.protobuf.LazyStringList values_; + /** + * + * + *
+   * Corresponds to the label value(s) of reservation resource(s).
+   * 
+ * + * repeated string values = 3; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_; + } + /** + * + * + *
+   * Corresponds to the label value(s) of reservation resource(s).
+   * 
+ * + * repeated string values = 3; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+   * Corresponds to the label value(s) of reservation resource(s).
+   * 
+ * + * repeated string values = 3; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+   * Corresponds to the label value(s) of reservation resource(s).
+   * 
+ * + * repeated string values = 3; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (consumeReservationType_ + != com.google.container.v1.ReservationAffinity.Type.UNSPECIFIED.getNumber()) { + output.writeEnum(1, consumeReservationType_); + } + if (!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(); + consumeReservationType_ = 0; + + key_ = ""; + + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ReservationAffinity_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ReservationAffinity getDefaultInstanceForType() { + return com.google.container.v1.ReservationAffinity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ReservationAffinity build() { + com.google.container.v1.ReservationAffinity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ReservationAffinity buildPartial() { + com.google.container.v1.ReservationAffinity result = + new com.google.container.v1.ReservationAffinity(this); + int from_bitField0_ = bitField0_; + result.consumeReservationType_ = consumeReservationType_; + result.key_ = key_; + if (((bitField0_ & 0x00000001) != 0)) { + values_ = values_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.values_ = values_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ReservationAffinity) { + return mergeFrom((com.google.container.v1.ReservationAffinity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ReservationAffinity other) { + if (other == com.google.container.v1.ReservationAffinity.getDefaultInstance()) return this; + if (other.consumeReservationType_ != 0) { + setConsumeReservationTypeValue(other.getConsumeReservationTypeValue()); + } + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 8 + case 18: + { + key_ = input.readStringRequireUtf8(); + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Corresponds to the type of reservation consumption.
+     * 
+ * + * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; + * + * @return The consumeReservationType. + */ + @java.lang.Override + public com.google.container.v1.ReservationAffinity.Type getConsumeReservationType() { + @SuppressWarnings("deprecation") + com.google.container.v1.ReservationAffinity.Type result = + com.google.container.v1.ReservationAffinity.Type.valueOf(consumeReservationType_); + return result == null + ? com.google.container.v1.ReservationAffinity.Type.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Corresponds to the type of reservation consumption.
+     * 
+ * + * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; + * + * @param value The consumeReservationType to set. + * @return This builder for chaining. + */ + public Builder setConsumeReservationType( + com.google.container.v1.ReservationAffinity.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + consumeReservationType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Corresponds to the type of reservation consumption.
+     * 
+ * + * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; + * + * @return This builder for chaining. + */ + public Builder clearConsumeReservationType() { + + consumeReservationType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object key_ = ""; + /** + * + * + *
+     * Corresponds to the label key of a reservation resource. To target a
+     * SPECIFIC_RESERVATION by name, specify
+     * "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; + 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(); + 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; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList values_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Corresponds to the label value(s) of reservation resource(s).
+     * 
+ * + * repeated string values = 3; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_.getUnmodifiableView(); + } + /** + * + * + *
+     * Corresponds to the label value(s) of reservation resource(s).
+     * 
+ * + * repeated string values = 3; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+     * Corresponds to the label value(s) of reservation resource(s).
+     * 
+ * + * repeated string values = 3; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+     * Corresponds to the label value(s) of reservation resource(s).
+     * 
+ * + * repeated string values = 3; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + /** + * + * + *
+     * Corresponds to the label value(s) of reservation resource(s).
+     * 
+ * + * repeated string values = 3; + * + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Corresponds to the label value(s) of reservation resource(s).
+     * 
+ * + * repeated string values = 3; + * + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Corresponds to the label value(s) of reservation resource(s).
+     * 
+ * + * repeated string values = 3; + * + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues(java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + onChanged(); + return this; + } + /** + * + * + *
+     * Corresponds to the label value(s) of reservation resource(s).
+     * 
+ * + * repeated string values = 3; + * + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Corresponds to the label value(s) of reservation resource(s).
+     * 
+ * + * repeated string values = 3; + * + * @param value The bytes of the values to add. + * @return This builder for chaining. + */ + public Builder addValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.ReservationAffinity) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ReservationAffinity) + private static final com.google.container.v1.ReservationAffinity DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.ReservationAffinity(); + } + + public static com.google.container.v1.ReservationAffinity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReservationAffinity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..de90b6ab0983 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReservationAffinityOrBuilder.java @@ -0,0 +1,132 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface ReservationAffinityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ReservationAffinity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Corresponds to the type of reservation consumption.
+   * 
+ * + * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; + * + * @return The enum numeric value on the wire for consumeReservationType. + */ + int getConsumeReservationTypeValue(); + /** + * + * + *
+   * Corresponds to the type of reservation consumption.
+   * 
+ * + * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; + * + * @return The consumeReservationType. + */ + com.google.container.v1.ReservationAffinity.Type getConsumeReservationType(); + + /** + * + * + *
+   * Corresponds to the label key of a reservation resource. To target a
+   * SPECIFIC_RESERVATION by name, specify
+   * "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 new file mode 100644 index 000000000000..74bdba55d122 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLabels.java @@ -0,0 +1,758 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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.MapField internalGetMapField(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, + ""); + } + + 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 java.lang.String getLabelsOrDefault(java.lang.String key, 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.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(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(); + 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); + int from_bitField0_ = bitField0_; + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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()); + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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()); + 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() { + onChanged(); + ; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * 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 java.lang.String getLabelsOrDefault( + java.lang.String key, 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() { + 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() { + 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); + 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); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..5a42f4b5369b --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLabelsOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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 new file mode 100644 index 000000000000..84a7c9b67f01 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLimit.java @@ -0,0 +1,796 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + private volatile java.lang.Object resourceType_; + /** + * + * + *
+   * Resource name "cpu", "memory" or gpu-specific string.
+   * 
+ * + * string resource_type = 1; + * + * @return The resourceType. + */ + @java.lang.Override + public java.lang.String getResourceType() { + java.lang.Object ref = resourceType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceType_ = s; + return s; + } + } + /** + * + * + *
+   * Resource name "cpu", "memory" or gpu-specific string.
+   * 
+ * + * string resource_type = 1; + * + * @return The bytes for resourceType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceTypeBytes() { + java.lang.Object ref = resourceType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MINIMUM_FIELD_NUMBER = 2; + private long minimum_; + /** + * + * + *
+   * Minimum amount of the resource in the cluster.
+   * 
+ * + * int64 minimum = 2; + * + * @return The minimum. + */ + @java.lang.Override + public long getMinimum() { + return minimum_; + } + + public static final int MAXIMUM_FIELD_NUMBER = 3; + private long maximum_; + /** + * + * + *
+   * Maximum amount of the resource in the cluster.
+   * 
+ * + * int64 maximum = 3; + * + * @return The maximum. + */ + @java.lang.Override + public long getMaximum() { + return maximum_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + 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); + result.resourceType_ = resourceType_; + result.minimum_ = minimum_; + result.maximum_ = maximum_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + 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(); + + break; + } // case 10 + case 16: + { + minimum_ = input.readInt64(); + + break; + } // case 16 + case 24: + { + maximum_ = input.readInt64(); + + 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 java.lang.Object resourceType_ = ""; + /** + * + * + *
+     * Resource name "cpu", "memory" or gpu-specific string.
+     * 
+ * + * string resource_type = 1; + * + * @return The resourceType. + */ + public java.lang.String getResourceType() { + java.lang.Object ref = resourceType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Resource name "cpu", "memory" or gpu-specific string.
+     * 
+ * + * string resource_type = 1; + * + * @return The bytes for resourceType. + */ + public com.google.protobuf.ByteString getResourceTypeBytes() { + java.lang.Object ref = resourceType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Resource name "cpu", "memory" or gpu-specific string.
+     * 
+ * + * string resource_type = 1; + * + * @param value The resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name "cpu", "memory" or gpu-specific string.
+     * 
+ * + * string resource_type = 1; + * + * @return This builder for chaining. + */ + public Builder clearResourceType() { + + resourceType_ = getDefaultInstance().getResourceType(); + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name "cpu", "memory" or gpu-specific string.
+     * 
+ * + * string resource_type = 1; + * + * @param value The bytes for resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceType_ = value; + onChanged(); + return this; + } + + private long minimum_; + /** + * + * + *
+     * Minimum amount of the resource in the cluster.
+     * 
+ * + * int64 minimum = 2; + * + * @return The minimum. + */ + @java.lang.Override + public long getMinimum() { + return minimum_; + } + /** + * + * + *
+     * Minimum amount of the resource in the cluster.
+     * 
+ * + * int64 minimum = 2; + * + * @param value The minimum to set. + * @return This builder for chaining. + */ + public Builder setMinimum(long value) { + + minimum_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Minimum amount of the resource in the cluster.
+     * 
+ * + * int64 minimum = 2; + * + * @return This builder for chaining. + */ + public Builder clearMinimum() { + + minimum_ = 0L; + onChanged(); + return this; + } + + private long maximum_; + /** + * + * + *
+     * Maximum amount of the resource in the cluster.
+     * 
+ * + * int64 maximum = 3; + * + * @return The maximum. + */ + @java.lang.Override + public long getMaximum() { + return maximum_; + } + /** + * + * + *
+     * Maximum amount of the resource in the cluster.
+     * 
+ * + * int64 maximum = 3; + * + * @param value The maximum to set. + * @return This builder for chaining. + */ + public Builder setMaximum(long value) { + + maximum_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Maximum amount of the resource in the cluster.
+     * 
+ * + * int64 maximum = 3; + * + * @return This builder for chaining. + */ + public Builder clearMaximum() { + + maximum_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..65a681ae607a --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLimitOrBuilder.java @@ -0,0 +1,76 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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/ResourceUsageExportConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceUsageExportConfig.java new file mode 100644 index 000000000000..73e65f83744e --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceUsageExportConfig.java @@ -0,0 +1,2362 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Configuration for 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + 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(); + 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); + result.datasetId_ = datasetId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.container.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_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 java.lang.Object datasetId_ = ""; + /** + * + * + *
+       * The ID of a BigQuery Dataset.
+       * 
+ * + * string dataset_id = 1; + * + * @return The datasetId. + */ + public java.lang.String getDatasetId() { + java.lang.Object ref = datasetId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + datasetId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The ID of a BigQuery Dataset.
+       * 
+ * + * string dataset_id = 1; + * + * @return The bytes for datasetId. + */ + public com.google.protobuf.ByteString getDatasetIdBytes() { + java.lang.Object ref = datasetId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + datasetId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The ID of a BigQuery Dataset.
+       * 
+ * + * string dataset_id = 1; + * + * @param value The datasetId to set. + * @return This builder for chaining. + */ + public Builder setDatasetId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + datasetId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The ID of a BigQuery Dataset.
+       * 
+ * + * string dataset_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearDatasetId() { + + datasetId_ = getDefaultInstance().getDatasetId(); + onChanged(); + return this; + } + /** + * + * + *
+       * The ID of a BigQuery Dataset.
+       * 
+ * + * string dataset_id = 1; + * + * @param value The bytes for datasetId to set. + * @return This builder for chaining. + */ + public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + datasetId_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+     * 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(); + 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); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.container.v1.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(); + + 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 boolean enabled_; + /** + * + * + *
+       * Whether to enable consumption metering for this cluster. If enabled, a
+       * second BigQuery table will be created to hold resource consumption
+       * records.
+       * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+       * Whether to enable consumption metering for this cluster. If enabled, a
+       * second BigQuery table will be created to hold resource consumption
+       * records.
+       * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Whether to enable consumption metering for this cluster. If enabled, a
+       * second BigQuery table will be created to hold resource consumption
+       * records.
+       * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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; + } + } + + 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 bigqueryDestination_ != null; + } + /** + * + * + *
+   * 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 getBigqueryDestination(); + } + + public static final int ENABLE_NETWORK_EGRESS_METERING_FIELD_NUMBER = 2; + private boolean enableNetworkEgressMetering_; + /** + * + * + *
+   * Whether to enable network egress metering for this cluster. If enabled, a
+   * daemonset will be created in the cluster to meter network egress traffic.
+   * 
+ * + * bool enable_network_egress_metering = 2; + * + * @return The enableNetworkEgressMetering. + */ + @java.lang.Override + public boolean getEnableNetworkEgressMetering() { + return enableNetworkEgressMetering_; + } + + public static final int CONSUMPTION_METERING_CONFIG_FIELD_NUMBER = 3; + private com.google.container.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 consumptionMeteringConfig_ != null; + } + /** + * + * + *
+   * 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 getConsumptionMeteringConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (bigqueryDestination_ != null) { + output.writeMessage(1, getBigqueryDestination()); + } + if (enableNetworkEgressMetering_ != false) { + output.writeBool(2, enableNetworkEgressMetering_); + } + if (consumptionMeteringConfig_ != null) { + output.writeMessage(3, getConsumptionMeteringConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (bigqueryDestination_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBigqueryDestination()); + } + if (enableNetworkEgressMetering_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableNetworkEgressMetering_); + } + if (consumptionMeteringConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getConsumptionMeteringConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (bigqueryDestinationBuilder_ == null) { + bigqueryDestination_ = null; + } else { + bigqueryDestination_ = null; + bigqueryDestinationBuilder_ = null; + } + enableNetworkEgressMetering_ = false; + + if (consumptionMeteringConfigBuilder_ == null) { + consumptionMeteringConfig_ = null; + } else { + consumptionMeteringConfig_ = null; + consumptionMeteringConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.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 (bigqueryDestinationBuilder_ == null) { + result.bigqueryDestination_ = bigqueryDestination_; + } else { + result.bigqueryDestination_ = bigqueryDestinationBuilder_.build(); + } + result.enableNetworkEgressMetering_ = enableNetworkEgressMetering_; + if (consumptionMeteringConfigBuilder_ == null) { + result.consumptionMeteringConfig_ = consumptionMeteringConfig_; + } else { + result.consumptionMeteringConfig_ = consumptionMeteringConfigBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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); + + break; + } // case 10 + case 16: + { + enableNetworkEgressMetering_ = input.readBool(); + + break; + } // case 16 + case 26: + { + input.readMessage( + getConsumptionMeteringConfigFieldBuilder().getBuilder(), extensionRegistry); + + 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 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 bigqueryDestinationBuilder_ != null || bigqueryDestination_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + bigqueryDestinationBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + bigqueryDestinationBuilder_.setMessage(builderForValue.build()); + } + + 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 (bigqueryDestination_ != null) { + bigqueryDestination_ = + com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.newBuilder( + bigqueryDestination_) + .mergeFrom(value) + .buildPartial(); + } else { + bigqueryDestination_ = value; + } + onChanged(); + } else { + bigqueryDestinationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration to use BigQuery as usage export destination.
+     * 
+ * + * + * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * + */ + public Builder clearBigqueryDestination() { + if (bigqueryDestinationBuilder_ == null) { + bigqueryDestination_ = null; + onChanged(); + } else { + bigqueryDestination_ = null; + bigqueryDestinationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration to use BigQuery as usage export destination.
+     * 
+ * + * + * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * + */ + public com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.Builder + getBigqueryDestinationBuilder() { + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether to enable network egress metering for this cluster. If enabled, a
+     * daemonset will be created in the cluster to meter network egress traffic.
+     * 
+ * + * bool enable_network_egress_metering = 2; + * + * @return This builder for chaining. + */ + public Builder clearEnableNetworkEgressMetering() { + + enableNetworkEgressMetering_ = false; + onChanged(); + return this; + } + + private com.google.container.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 consumptionMeteringConfigBuilder_ != null || consumptionMeteringConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + consumptionMeteringConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + consumptionMeteringConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (consumptionMeteringConfig_ != null) { + consumptionMeteringConfig_ = + com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig + .newBuilder(consumptionMeteringConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + consumptionMeteringConfig_ = value; + } + onChanged(); + } else { + consumptionMeteringConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration to enable resource consumption metering.
+     * 
+ * + * + * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * + */ + public Builder clearConsumptionMeteringConfig() { + if (consumptionMeteringConfigBuilder_ == null) { + consumptionMeteringConfig_ = null; + onChanged(); + } else { + consumptionMeteringConfig_ = null; + consumptionMeteringConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration to enable resource consumption metering.
+     * 
+ * + * + * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * + */ + public com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder + getConsumptionMeteringConfigBuilder() { + + 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 new file mode 100644 index 000000000000..9921d1a616bc --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceUsageExportConfigOrBuilder.java @@ -0,0 +1,124 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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 new file mode 100644 index 000000000000..fa0efd9320e8 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java @@ -0,0 +1,1575 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + 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=3302 + * @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=3302 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3308 + * @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=3308 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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=3312 + * @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=3312 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object nodePoolId_; + /** + * + * + *
+   * 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=3316 + * @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=3316 + * @return The bytes for nodePoolId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node poll to
+   * rollback upgrade.
+   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 6; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node poll to
+   * rollback upgrade.
+   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESPECT_PDB_FIELD_NUMBER = 7; + 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_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 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(); + 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); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.nodePoolId_ = nodePoolId_; + result.name_ = name_; + result.respectPdb_ = respectPdb_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + nodePoolId_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 50: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 56: + { + respectPdb_ = input.readBool(); + + 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 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=3302 + * @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=3302 + * @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=3302 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/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=3302 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + 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=3302 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3308 + * @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=3308 + * @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=3308 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3308 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + 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=3308 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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=3312 + * @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=3312 + * @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=3312 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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=3312 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the cluster to rollback.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See + * google/container/v1/cluster_service.proto;l=3312 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + * + * + *
+     * 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=3316 + * @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=3316 + * @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=3316 + * @param value The nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodePoolId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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=3316 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearNodePoolId() { + + nodePoolId_ = getDefaultInstance().getNodePoolId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the node pool to rollback.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3316 + * @param value The bytes for nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodePoolId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node poll to
+     * rollback upgrade.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node poll to
+     * rollback upgrade.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node poll to
+     * rollback upgrade.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node poll to
+     * rollback upgrade.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node poll to
+     * rollback upgrade.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + 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; + 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() { + + 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 new file mode 100644 index 000000000000..7ea36c033b5a --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java @@ -0,0 +1,206 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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=3302 + * @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=3302 + * @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=3308 + * @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=3308 + * @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=3312 + * @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=3312 + * @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=3316 + * @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=3316 + * @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 new file mode 100644 index 000000000000..e0701242c3af --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SandboxConfig.java @@ -0,0 +1,718 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * SandboxConfig contains configurations of the sandbox to use for the node.
+ * 
+ * + * Protobuf type {@code google.container.v1.SandboxConfig} + */ +public final class SandboxConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.SandboxConfig) + SandboxConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use SandboxConfig.newBuilder() to construct. + private SandboxConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SandboxConfig() { + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SandboxConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_SandboxConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_SandboxConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SandboxConfig.class, + com.google.container.v1.SandboxConfig.Builder.class); + } + + /** + * + * + *
+   * Possible types of sandboxes.
+   * 
+ * + * Protobuf enum {@code google.container.v1.SandboxConfig.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. This should not be used.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + * + * + *
+     * Run sandbox using gvisor.
+     * 
+ * + * GVISOR = 1; + */ + GVISOR(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value. This should not be used.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Run sandbox using gvisor.
+     * 
+ * + * GVISOR = 1; + */ + public static final int GVISOR_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: + return UNSPECIFIED; + case 1: + return GVISOR; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1.SandboxConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.SandboxConfig.Type) + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_; + /** + * + * + *
+   * Type of the sandbox to use for the node.
+   * 
+ * + * .google.container.v1.SandboxConfig.Type type = 2; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * Type of the sandbox to use for the node.
+   * 
+ * + * .google.container.v1.SandboxConfig.Type type = 2; + * + * @return The type. + */ + @java.lang.Override + public com.google.container.v1.SandboxConfig.Type getType() { + @SuppressWarnings("deprecation") + com.google.container.v1.SandboxConfig.Type result = + com.google.container.v1.SandboxConfig.Type.valueOf(type_); + return result == null ? com.google.container.v1.SandboxConfig.Type.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (type_ != com.google.container.v1.SandboxConfig.Type.UNSPECIFIED.getNumber()) { + output.writeEnum(2, type_); + } + 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(); + type_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_SandboxConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.SandboxConfig getDefaultInstanceForType() { + return com.google.container.v1.SandboxConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.SandboxConfig build() { + com.google.container.v1.SandboxConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.SandboxConfig buildPartial() { + com.google.container.v1.SandboxConfig result = + new com.google.container.v1.SandboxConfig(this); + result.type_ = type_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.SandboxConfig) { + return mergeFrom((com.google.container.v1.SandboxConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.SandboxConfig other) { + if (other == com.google.container.v1.SandboxConfig.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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(); + + 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 type_ = 0; + /** + * + * + *
+     * Type of the sandbox to use for the node.
+     * 
+ * + * .google.container.v1.SandboxConfig.Type type = 2; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Type of the sandbox to use for the node.
+     * 
+ * + * .google.container.v1.SandboxConfig.Type type = 2; + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Type of the sandbox to use for the node.
+     * 
+ * + * .google.container.v1.SandboxConfig.Type type = 2; + * + * @return The type. + */ + @java.lang.Override + public com.google.container.v1.SandboxConfig.Type getType() { + @SuppressWarnings("deprecation") + com.google.container.v1.SandboxConfig.Type result = + com.google.container.v1.SandboxConfig.Type.valueOf(type_); + return result == null ? com.google.container.v1.SandboxConfig.Type.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Type of the sandbox to use for the node.
+     * 
+ * + * .google.container.v1.SandboxConfig.Type type = 2; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.container.v1.SandboxConfig.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Type of the sandbox to use for the node.
+     * 
+ * + * .google.container.v1.SandboxConfig.Type type = 2; + * + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.SandboxConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.SandboxConfig) + private static final com.google.container.v1.SandboxConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.SandboxConfig(); + } + + public static com.google.container.v1.SandboxConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SandboxConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..14fa5bc23370 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SandboxConfigOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface SandboxConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.SandboxConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Type of the sandbox to use for the node.
+   * 
+ * + * .google.container.v1.SandboxConfig.Type type = 2; + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *
+   * Type of the sandbox to use for the node.
+   * 
+ * + * .google.container.v1.SandboxConfig.Type type = 2; + * + * @return The type. + */ + com.google.container.v1.SandboxConfig.Type getType(); +} diff --git a/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 new file mode 100644 index 000000000000..78488da9ef98 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityBulletinEvent.java @@ -0,0 +1,2466 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * SecurityBulletinEvent is a notification sent to customers when a security
+ * bulletin has been posted that they are vulnerable to.
+ * 
+ * + * Protobuf type {@code google.container.v1.SecurityBulletinEvent} + */ +public final class SecurityBulletinEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.SecurityBulletinEvent) + SecurityBulletinEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use SecurityBulletinEvent.newBuilder() to construct. + private SecurityBulletinEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SecurityBulletinEvent() { + resourceTypeAffected_ = ""; + bulletinId_ = ""; + cveIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + severity_ = ""; + bulletinUri_ = ""; + briefDescription_ = ""; + affectedSupportedMinors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + patchedVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + suggestedUpgradeTarget_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SecurityBulletinEvent(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_SecurityBulletinEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_SecurityBulletinEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SecurityBulletinEvent.class, + com.google.container.v1.SecurityBulletinEvent.Builder.class); + } + + public static final int RESOURCE_TYPE_AFFECTED_FIELD_NUMBER = 1; + private volatile java.lang.Object resourceTypeAffected_; + /** + * + * + *
+   * The resource type (node/control plane) that has the vulnerability. Multiple
+   * notifications (1 notification per resource type) will be sent for a
+   * vulnerability that affects > 1 resource type.
+   * 
+ * + * string resource_type_affected = 1; + * + * @return The resourceTypeAffected. + */ + @java.lang.Override + public java.lang.String getResourceTypeAffected() { + java.lang.Object ref = resourceTypeAffected_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceTypeAffected_ = s; + return s; + } + } + /** + * + * + *
+   * The resource type (node/control plane) that has the vulnerability. Multiple
+   * notifications (1 notification per resource type) will be sent for a
+   * vulnerability that affects > 1 resource type.
+   * 
+ * + * string resource_type_affected = 1; + * + * @return The bytes for resourceTypeAffected. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceTypeAffectedBytes() { + java.lang.Object ref = resourceTypeAffected_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceTypeAffected_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BULLETIN_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object bulletinId_; + /** + * + * + *
+   * The ID of the bulletin corresponding to the vulnerability.
+   * 
+ * + * string bulletin_id = 2; + * + * @return The bulletinId. + */ + @java.lang.Override + public java.lang.String getBulletinId() { + java.lang.Object ref = bulletinId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bulletinId_ = s; + return s; + } + } + /** + * + * + *
+   * The ID of the bulletin corresponding to the vulnerability.
+   * 
+ * + * string bulletin_id = 2; + * + * @return The bytes for bulletinId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBulletinIdBytes() { + java.lang.Object ref = bulletinId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bulletinId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CVE_IDS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList cveIds_; + /** + * + * + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * + * @return A list containing the cveIds. + */ + public com.google.protobuf.ProtocolStringList getCveIdsList() { + return cveIds_; + } + /** + * + * + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * + * @return The count of cveIds. + */ + public int getCveIdsCount() { + return cveIds_.size(); + } + /** + * + * + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * + * @param index The index of the element to return. + * @return The cveIds at the given index. + */ + public java.lang.String getCveIds(int index) { + return cveIds_.get(index); + } + /** + * + * + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * + * @param index The index of the value to return. + * @return The bytes of the cveIds at the given index. + */ + public com.google.protobuf.ByteString getCveIdsBytes(int index) { + return cveIds_.getByteString(index); + } + + public static final int SEVERITY_FIELD_NUMBER = 4; + private volatile java.lang.Object severity_; + /** + * + * + *
+   * The severity of this bulletin as it relates to GKE.
+   * 
+ * + * string severity = 4; + * + * @return The severity. + */ + @java.lang.Override + public java.lang.String getSeverity() { + java.lang.Object ref = severity_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + severity_ = s; + return s; + } + } + /** + * + * + *
+   * The severity of this bulletin as it relates to GKE.
+   * 
+ * + * string severity = 4; + * + * @return The bytes for severity. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSeverityBytes() { + java.lang.Object ref = severity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + severity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BULLETIN_URI_FIELD_NUMBER = 5; + private volatile java.lang.Object bulletinUri_; + /** + * + * + *
+   * The URI link to the bulletin on the website for more information.
+   * 
+ * + * string bulletin_uri = 5; + * + * @return The bulletinUri. + */ + @java.lang.Override + public java.lang.String getBulletinUri() { + java.lang.Object ref = bulletinUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bulletinUri_ = s; + return s; + } + } + /** + * + * + *
+   * The URI link to the bulletin on the website for more information.
+   * 
+ * + * string bulletin_uri = 5; + * + * @return The bytes for bulletinUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBulletinUriBytes() { + java.lang.Object ref = bulletinUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bulletinUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BRIEF_DESCRIPTION_FIELD_NUMBER = 6; + private volatile java.lang.Object briefDescription_; + /** + * + * + *
+   * A brief description of the bulletin. See the bulletin pointed to by the
+   * bulletin_uri field for an expanded description.
+   * 
+ * + * string brief_description = 6; + * + * @return The briefDescription. + */ + @java.lang.Override + public java.lang.String getBriefDescription() { + java.lang.Object ref = briefDescription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + briefDescription_ = s; + return s; + } + } + /** + * + * + *
+   * A brief description of the bulletin. See the bulletin pointed to by the
+   * bulletin_uri field for an expanded description.
+   * 
+ * + * string brief_description = 6; + * + * @return The bytes for briefDescription. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBriefDescriptionBytes() { + java.lang.Object ref = briefDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + briefDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AFFECTED_SUPPORTED_MINORS_FIELD_NUMBER = 7; + private com.google.protobuf.LazyStringList affectedSupportedMinors_; + /** + * + * + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * + * @return A list containing the affectedSupportedMinors. + */ + public com.google.protobuf.ProtocolStringList getAffectedSupportedMinorsList() { + return affectedSupportedMinors_; + } + /** + * + * + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * + * @return The count of affectedSupportedMinors. + */ + public int getAffectedSupportedMinorsCount() { + return affectedSupportedMinors_.size(); + } + /** + * + * + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param index The index of the element to return. + * @return The affectedSupportedMinors at the given index. + */ + public java.lang.String getAffectedSupportedMinors(int index) { + return affectedSupportedMinors_.get(index); + } + /** + * + * + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param index The index of the value to return. + * @return The bytes of the affectedSupportedMinors at the given index. + */ + public com.google.protobuf.ByteString getAffectedSupportedMinorsBytes(int index) { + return affectedSupportedMinors_.getByteString(index); + } + + public static final int PATCHED_VERSIONS_FIELD_NUMBER = 8; + private com.google.protobuf.LazyStringList patchedVersions_; + /** + * + * + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * + * @return A list containing the patchedVersions. + */ + public com.google.protobuf.ProtocolStringList getPatchedVersionsList() { + return patchedVersions_; + } + /** + * + * + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * + * @return The count of patchedVersions. + */ + public int getPatchedVersionsCount() { + return patchedVersions_.size(); + } + /** + * + * + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * + * @param index The index of the element to return. + * @return The patchedVersions at the given index. + */ + public java.lang.String getPatchedVersions(int index) { + return patchedVersions_.get(index); + } + /** + * + * + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * + * @param index The index of the value to return. + * @return The bytes of the patchedVersions at the given index. + */ + public com.google.protobuf.ByteString getPatchedVersionsBytes(int index) { + return patchedVersions_.getByteString(index); + } + + public static final int SUGGESTED_UPGRADE_TARGET_FIELD_NUMBER = 9; + private volatile java.lang.Object suggestedUpgradeTarget_; + /** + * + * + *
+   * This represents a version selected from the patched_versions field that
+   * the cluster receiving this notification should most likely want to upgrade
+   * to based on its current version. Note that if this notification is being
+   * received by a given cluster, it means that this version is currently
+   * available as an upgrade target in that cluster's location.
+   * 
+ * + * string suggested_upgrade_target = 9; + * + * @return The suggestedUpgradeTarget. + */ + @java.lang.Override + public java.lang.String getSuggestedUpgradeTarget() { + java.lang.Object ref = suggestedUpgradeTarget_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + suggestedUpgradeTarget_ = s; + return s; + } + } + /** + * + * + *
+   * This represents a version selected from the patched_versions field that
+   * the cluster receiving this notification should most likely want to upgrade
+   * to based on its current version. Note that if this notification is being
+   * received by a given cluster, it means that this version is currently
+   * available as an upgrade target in that cluster's location.
+   * 
+ * + * string suggested_upgrade_target = 9; + * + * @return The bytes for suggestedUpgradeTarget. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSuggestedUpgradeTargetBytes() { + java.lang.Object ref = suggestedUpgradeTarget_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + suggestedUpgradeTarget_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MANUAL_STEPS_REQUIRED_FIELD_NUMBER = 10; + private boolean manualStepsRequired_; + /** + * + * + *
+   * If this field is specified, it means there are manual steps that the user
+   * must take to make their clusters safe.
+   * 
+ * + * bool manual_steps_required = 10; + * + * @return The manualStepsRequired. + */ + @java.lang.Override + public boolean getManualStepsRequired() { + return manualStepsRequired_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceTypeAffected_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceTypeAffected_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bulletinId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bulletinId_); + } + for (int i = 0; i < cveIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cveIds_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(severity_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, severity_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bulletinUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, bulletinUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(briefDescription_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, briefDescription_); + } + for (int i = 0; i < affectedSupportedMinors_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 7, affectedSupportedMinors_.getRaw(i)); + } + for (int i = 0; i < patchedVersions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, patchedVersions_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(suggestedUpgradeTarget_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, suggestedUpgradeTarget_); + } + if (manualStepsRequired_ != false) { + output.writeBool(10, manualStepsRequired_); + } + getUnknownFields().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(); + resourceTypeAffected_ = ""; + + bulletinId_ = ""; + + cveIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + severity_ = ""; + + bulletinUri_ = ""; + + briefDescription_ = ""; + + affectedSupportedMinors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + patchedVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + suggestedUpgradeTarget_ = ""; + + manualStepsRequired_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_SecurityBulletinEvent_descriptor; + } + + @java.lang.Override + public com.google.container.v1.SecurityBulletinEvent getDefaultInstanceForType() { + return com.google.container.v1.SecurityBulletinEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.SecurityBulletinEvent build() { + com.google.container.v1.SecurityBulletinEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.SecurityBulletinEvent buildPartial() { + com.google.container.v1.SecurityBulletinEvent result = + new com.google.container.v1.SecurityBulletinEvent(this); + int from_bitField0_ = bitField0_; + result.resourceTypeAffected_ = resourceTypeAffected_; + result.bulletinId_ = bulletinId_; + if (((bitField0_ & 0x00000001) != 0)) { + cveIds_ = cveIds_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.cveIds_ = cveIds_; + result.severity_ = severity_; + result.bulletinUri_ = bulletinUri_; + result.briefDescription_ = briefDescription_; + if (((bitField0_ & 0x00000002) != 0)) { + affectedSupportedMinors_ = affectedSupportedMinors_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.affectedSupportedMinors_ = affectedSupportedMinors_; + if (((bitField0_ & 0x00000004) != 0)) { + patchedVersions_ = patchedVersions_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.patchedVersions_ = patchedVersions_; + result.suggestedUpgradeTarget_ = suggestedUpgradeTarget_; + result.manualStepsRequired_ = manualStepsRequired_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.SecurityBulletinEvent) { + return mergeFrom((com.google.container.v1.SecurityBulletinEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.SecurityBulletinEvent other) { + if (other == com.google.container.v1.SecurityBulletinEvent.getDefaultInstance()) return this; + if (!other.getResourceTypeAffected().isEmpty()) { + resourceTypeAffected_ = other.resourceTypeAffected_; + onChanged(); + } + if (!other.getBulletinId().isEmpty()) { + bulletinId_ = other.bulletinId_; + onChanged(); + } + if (!other.cveIds_.isEmpty()) { + if (cveIds_.isEmpty()) { + cveIds_ = other.cveIds_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCveIdsIsMutable(); + cveIds_.addAll(other.cveIds_); + } + onChanged(); + } + if (!other.getSeverity().isEmpty()) { + severity_ = other.severity_; + onChanged(); + } + if (!other.getBulletinUri().isEmpty()) { + bulletinUri_ = other.bulletinUri_; + onChanged(); + } + if (!other.getBriefDescription().isEmpty()) { + briefDescription_ = other.briefDescription_; + onChanged(); + } + if (!other.affectedSupportedMinors_.isEmpty()) { + if (affectedSupportedMinors_.isEmpty()) { + affectedSupportedMinors_ = other.affectedSupportedMinors_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAffectedSupportedMinorsIsMutable(); + affectedSupportedMinors_.addAll(other.affectedSupportedMinors_); + } + onChanged(); + } + if (!other.patchedVersions_.isEmpty()) { + if (patchedVersions_.isEmpty()) { + patchedVersions_ = other.patchedVersions_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensurePatchedVersionsIsMutable(); + patchedVersions_.addAll(other.patchedVersions_); + } + onChanged(); + } + if (!other.getSuggestedUpgradeTarget().isEmpty()) { + suggestedUpgradeTarget_ = other.suggestedUpgradeTarget_; + onChanged(); + } + if (other.getManualStepsRequired() != false) { + setManualStepsRequired(other.getManualStepsRequired()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + bulletinId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureCveIdsIsMutable(); + cveIds_.add(s); + break; + } // case 26 + case 34: + { + severity_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + bulletinUri_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + briefDescription_ = input.readStringRequireUtf8(); + + 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(); + + break; + } // case 74 + case 80: + { + manualStepsRequired_ = input.readBool(); + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource type (node/control plane) that has the vulnerability. Multiple
+     * notifications (1 notification per resource type) will be sent for a
+     * vulnerability that affects > 1 resource type.
+     * 
+ * + * string resource_type_affected = 1; + * + * @return This builder for chaining. + */ + public Builder clearResourceTypeAffected() { + + resourceTypeAffected_ = getDefaultInstance().getResourceTypeAffected(); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource type (node/control plane) that has the vulnerability. Multiple
+     * notifications (1 notification per resource type) will be sent for a
+     * vulnerability that affects > 1 resource type.
+     * 
+ * + * string resource_type_affected = 1; + * + * @param value The bytes for resourceTypeAffected to set. + * @return This builder for chaining. + */ + public Builder setResourceTypeAffectedBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceTypeAffected_ = value; + onChanged(); + return this; + } + + private java.lang.Object bulletinId_ = ""; + /** + * + * + *
+     * The ID of the bulletin corresponding to the vulnerability.
+     * 
+ * + * string bulletin_id = 2; + * + * @return The bulletinId. + */ + public java.lang.String getBulletinId() { + java.lang.Object ref = bulletinId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bulletinId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The ID of the bulletin corresponding to the vulnerability.
+     * 
+ * + * string bulletin_id = 2; + * + * @return The bytes for bulletinId. + */ + public com.google.protobuf.ByteString getBulletinIdBytes() { + java.lang.Object ref = bulletinId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bulletinId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The ID of the bulletin corresponding to the vulnerability.
+     * 
+ * + * string bulletin_id = 2; + * + * @param value The bulletinId to set. + * @return This builder for chaining. + */ + public Builder setBulletinId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + bulletinId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The ID of the bulletin corresponding to the vulnerability.
+     * 
+ * + * string bulletin_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearBulletinId() { + + bulletinId_ = getDefaultInstance().getBulletinId(); + onChanged(); + return this; + } + /** + * + * + *
+     * The ID of the bulletin corresponding to the vulnerability.
+     * 
+ * + * string bulletin_id = 2; + * + * @param value The bytes for bulletinId to set. + * @return This builder for chaining. + */ + public Builder setBulletinIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bulletinId_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList cveIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureCveIdsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + cveIds_ = new com.google.protobuf.LazyStringArrayList(cveIds_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * + * @return A list containing the cveIds. + */ + public com.google.protobuf.ProtocolStringList getCveIdsList() { + return cveIds_.getUnmodifiableView(); + } + /** + * + * + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * + * @return The count of cveIds. + */ + public int getCveIdsCount() { + return cveIds_.size(); + } + /** + * + * + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * + * @param index The index of the element to return. + * @return The cveIds at the given index. + */ + public java.lang.String getCveIds(int index) { + return cveIds_.get(index); + } + /** + * + * + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * + * @param index The index of the value to return. + * @return The bytes of the cveIds at the given index. + */ + public com.google.protobuf.ByteString getCveIdsBytes(int index) { + return cveIds_.getByteString(index); + } + /** + * + * + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * + * @param index The index to set the value at. + * @param value The cveIds to set. + * @return This builder for chaining. + */ + public Builder setCveIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCveIdsIsMutable(); + cveIds_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * + * @param value The cveIds to add. + * @return This builder for chaining. + */ + public Builder addCveIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCveIdsIsMutable(); + cveIds_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * + * @param values The cveIds to add. + * @return This builder for chaining. + */ + public Builder addAllCveIds(java.lang.Iterable values) { + ensureCveIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cveIds_); + onChanged(); + return this; + } + /** + * + * + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * + * @return This builder for chaining. + */ + public Builder clearCveIds() { + cveIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * + * @param value The bytes of the cveIds to add. + * @return This builder for chaining. + */ + public Builder addCveIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCveIdsIsMutable(); + cveIds_.add(value); + onChanged(); + return this; + } + + private java.lang.Object severity_ = ""; + /** + * + * + *
+     * The severity of this bulletin as it relates to GKE.
+     * 
+ * + * string severity = 4; + * + * @return The severity. + */ + public java.lang.String getSeverity() { + java.lang.Object ref = severity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + severity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The severity of this bulletin as it relates to GKE.
+     * 
+ * + * string severity = 4; + * + * @return The bytes for severity. + */ + public com.google.protobuf.ByteString getSeverityBytes() { + java.lang.Object ref = severity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + severity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The severity of this bulletin as it relates to GKE.
+     * 
+ * + * string severity = 4; + * + * @param value The severity to set. + * @return This builder for chaining. + */ + public Builder setSeverity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + severity_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The severity of this bulletin as it relates to GKE.
+     * 
+ * + * string severity = 4; + * + * @return This builder for chaining. + */ + public Builder clearSeverity() { + + severity_ = getDefaultInstance().getSeverity(); + onChanged(); + return this; + } + /** + * + * + *
+     * The severity of this bulletin as it relates to GKE.
+     * 
+ * + * string severity = 4; + * + * @param value The bytes for severity to set. + * @return This builder for chaining. + */ + public Builder setSeverityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + severity_ = value; + onChanged(); + return this; + } + + private java.lang.Object bulletinUri_ = ""; + /** + * + * + *
+     * The URI link to the bulletin on the website for more information.
+     * 
+ * + * string bulletin_uri = 5; + * + * @return The bulletinUri. + */ + public java.lang.String getBulletinUri() { + java.lang.Object ref = bulletinUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bulletinUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The URI link to the bulletin on the website for more information.
+     * 
+ * + * string bulletin_uri = 5; + * + * @return The bytes for bulletinUri. + */ + public com.google.protobuf.ByteString getBulletinUriBytes() { + java.lang.Object ref = bulletinUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bulletinUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The URI link to the bulletin on the website for more information.
+     * 
+ * + * string bulletin_uri = 5; + * + * @param value The bulletinUri to set. + * @return This builder for chaining. + */ + public Builder setBulletinUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + bulletinUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The URI link to the bulletin on the website for more information.
+     * 
+ * + * string bulletin_uri = 5; + * + * @return This builder for chaining. + */ + public Builder clearBulletinUri() { + + bulletinUri_ = getDefaultInstance().getBulletinUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * The URI link to the bulletin on the website for more information.
+     * 
+ * + * string bulletin_uri = 5; + * + * @param value The bytes for bulletinUri to set. + * @return This builder for chaining. + */ + public Builder setBulletinUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bulletinUri_ = value; + onChanged(); + return this; + } + + private java.lang.Object briefDescription_ = ""; + /** + * + * + *
+     * A brief description of the bulletin. See the bulletin pointed to by the
+     * bulletin_uri field for an expanded description.
+     * 
+ * + * string brief_description = 6; + * + * @return The briefDescription. + */ + public java.lang.String getBriefDescription() { + java.lang.Object ref = briefDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + briefDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A brief description of the bulletin. See the bulletin pointed to by the
+     * bulletin_uri field for an expanded description.
+     * 
+ * + * string brief_description = 6; + * + * @return The bytes for briefDescription. + */ + public com.google.protobuf.ByteString getBriefDescriptionBytes() { + java.lang.Object ref = briefDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + briefDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A brief description of the bulletin. See the bulletin pointed to by the
+     * bulletin_uri field for an expanded description.
+     * 
+ * + * string brief_description = 6; + * + * @param value The briefDescription to set. + * @return This builder for chaining. + */ + public Builder setBriefDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + briefDescription_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A brief description of the bulletin. See the bulletin pointed to by the
+     * bulletin_uri field for an expanded description.
+     * 
+ * + * string brief_description = 6; + * + * @return This builder for chaining. + */ + public Builder clearBriefDescription() { + + briefDescription_ = getDefaultInstance().getBriefDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * A brief description of the bulletin. See the bulletin pointed to by the
+     * bulletin_uri field for an expanded description.
+     * 
+ * + * string brief_description = 6; + * + * @param value The bytes for briefDescription to set. + * @return This builder for chaining. + */ + public Builder setBriefDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + briefDescription_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList affectedSupportedMinors_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAffectedSupportedMinorsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + affectedSupportedMinors_ = + new com.google.protobuf.LazyStringArrayList(affectedSupportedMinors_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * + * @return A list containing the affectedSupportedMinors. + */ + public com.google.protobuf.ProtocolStringList getAffectedSupportedMinorsList() { + return affectedSupportedMinors_.getUnmodifiableView(); + } + /** + * + * + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * + * @return The count of affectedSupportedMinors. + */ + public int getAffectedSupportedMinorsCount() { + return affectedSupportedMinors_.size(); + } + /** + * + * + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param index The index of the element to return. + * @return The affectedSupportedMinors at the given index. + */ + public java.lang.String getAffectedSupportedMinors(int index) { + return affectedSupportedMinors_.get(index); + } + /** + * + * + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param index The index of the value to return. + * @return The bytes of the affectedSupportedMinors at the given index. + */ + public com.google.protobuf.ByteString getAffectedSupportedMinorsBytes(int index) { + return affectedSupportedMinors_.getByteString(index); + } + /** + * + * + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param index The index to set the value at. + * @param value The affectedSupportedMinors to set. + * @return This builder for chaining. + */ + public Builder setAffectedSupportedMinors(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAffectedSupportedMinorsIsMutable(); + affectedSupportedMinors_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param value The affectedSupportedMinors to add. + * @return This builder for chaining. + */ + public Builder addAffectedSupportedMinors(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAffectedSupportedMinorsIsMutable(); + affectedSupportedMinors_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param values The affectedSupportedMinors to add. + * @return This builder for chaining. + */ + public Builder addAllAffectedSupportedMinors(java.lang.Iterable values) { + ensureAffectedSupportedMinorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, affectedSupportedMinors_); + onChanged(); + return this; + } + /** + * + * + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * + * @return This builder for chaining. + */ + public Builder clearAffectedSupportedMinors() { + affectedSupportedMinors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param value The bytes of the affectedSupportedMinors to add. + * @return This builder for chaining. + */ + public Builder addAffectedSupportedMinorsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAffectedSupportedMinorsIsMutable(); + affectedSupportedMinors_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList patchedVersions_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensurePatchedVersionsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + patchedVersions_ = new com.google.protobuf.LazyStringArrayList(patchedVersions_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * + * @return A list containing the patchedVersions. + */ + public com.google.protobuf.ProtocolStringList getPatchedVersionsList() { + return patchedVersions_.getUnmodifiableView(); + } + /** + * + * + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * + * @return The count of patchedVersions. + */ + public int getPatchedVersionsCount() { + return patchedVersions_.size(); + } + /** + * + * + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * + * @param index The index of the element to return. + * @return The patchedVersions at the given index. + */ + public java.lang.String getPatchedVersions(int index) { + return patchedVersions_.get(index); + } + /** + * + * + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * + * @param index The index of the value to return. + * @return The bytes of the patchedVersions at the given index. + */ + public com.google.protobuf.ByteString getPatchedVersionsBytes(int index) { + return patchedVersions_.getByteString(index); + } + /** + * + * + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * + * @param index The index to set the value at. + * @param value The patchedVersions to set. + * @return This builder for chaining. + */ + public Builder setPatchedVersions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePatchedVersionsIsMutable(); + patchedVersions_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * + * @param value The patchedVersions to add. + * @return This builder for chaining. + */ + public Builder addPatchedVersions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePatchedVersionsIsMutable(); + patchedVersions_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * + * @param values The patchedVersions to add. + * @return This builder for chaining. + */ + public Builder addAllPatchedVersions(java.lang.Iterable values) { + ensurePatchedVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, patchedVersions_); + onChanged(); + return this; + } + /** + * + * + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * + * @return This builder for chaining. + */ + public Builder clearPatchedVersions() { + patchedVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * + * @param value The bytes of the patchedVersions to add. + * @return This builder for chaining. + */ + public Builder addPatchedVersionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePatchedVersionsIsMutable(); + patchedVersions_.add(value); + onChanged(); + return this; + } + + private java.lang.Object suggestedUpgradeTarget_ = ""; + /** + * + * + *
+     * This represents a version selected from the patched_versions field that
+     * the cluster receiving this notification should most likely want to upgrade
+     * to based on its current version. Note that if this notification is being
+     * received by a given cluster, it means that this version is currently
+     * available as an upgrade target in that cluster's location.
+     * 
+ * + * string suggested_upgrade_target = 9; + * + * @return The suggestedUpgradeTarget. + */ + public java.lang.String getSuggestedUpgradeTarget() { + java.lang.Object ref = suggestedUpgradeTarget_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + suggestedUpgradeTarget_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * This represents a version selected from the patched_versions field that
+     * the cluster receiving this notification should most likely want to upgrade
+     * to based on its current version. Note that if this notification is being
+     * received by a given cluster, it means that this version is currently
+     * available as an upgrade target in that cluster's location.
+     * 
+ * + * string suggested_upgrade_target = 9; + * + * @return The bytes for suggestedUpgradeTarget. + */ + public com.google.protobuf.ByteString getSuggestedUpgradeTargetBytes() { + java.lang.Object ref = suggestedUpgradeTarget_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + suggestedUpgradeTarget_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * This represents a version selected from the patched_versions field that
+     * the cluster receiving this notification should most likely want to upgrade
+     * to based on its current version. Note that if this notification is being
+     * received by a given cluster, it means that this version is currently
+     * available as an upgrade target in that cluster's location.
+     * 
+ * + * string suggested_upgrade_target = 9; + * + * @param value The suggestedUpgradeTarget to set. + * @return This builder for chaining. + */ + public Builder setSuggestedUpgradeTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + suggestedUpgradeTarget_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * This represents a version selected from the patched_versions field that
+     * the cluster receiving this notification should most likely want to upgrade
+     * to based on its current version. Note that if this notification is being
+     * received by a given cluster, it means that this version is currently
+     * available as an upgrade target in that cluster's location.
+     * 
+ * + * string suggested_upgrade_target = 9; + * + * @return This builder for chaining. + */ + public Builder clearSuggestedUpgradeTarget() { + + suggestedUpgradeTarget_ = getDefaultInstance().getSuggestedUpgradeTarget(); + onChanged(); + return this; + } + /** + * + * + *
+     * This represents a version selected from the patched_versions field that
+     * the cluster receiving this notification should most likely want to upgrade
+     * to based on its current version. Note that if this notification is being
+     * received by a given cluster, it means that this version is currently
+     * available as an upgrade target in that cluster's location.
+     * 
+ * + * string suggested_upgrade_target = 9; + * + * @param value The bytes for suggestedUpgradeTarget to set. + * @return This builder for chaining. + */ + public Builder setSuggestedUpgradeTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + suggestedUpgradeTarget_ = value; + onChanged(); + return this; + } + + private boolean manualStepsRequired_; + /** + * + * + *
+     * If this field is specified, it means there are manual steps that the user
+     * must take to make their clusters safe.
+     * 
+ * + * bool manual_steps_required = 10; + * + * @return The manualStepsRequired. + */ + @java.lang.Override + public boolean getManualStepsRequired() { + return manualStepsRequired_; + } + /** + * + * + *
+     * If this field is specified, it means there are manual steps that the user
+     * must take to make their clusters safe.
+     * 
+ * + * bool manual_steps_required = 10; + * + * @param value The manualStepsRequired to set. + * @return This builder for chaining. + */ + public Builder setManualStepsRequired(boolean value) { + + manualStepsRequired_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If this field is specified, it means there are manual steps that the user
+     * must take to make their clusters safe.
+     * 
+ * + * bool manual_steps_required = 10; + * + * @return This builder for chaining. + */ + public Builder clearManualStepsRequired() { + + manualStepsRequired_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.SecurityBulletinEvent) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.SecurityBulletinEvent) + private static final com.google.container.v1.SecurityBulletinEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.SecurityBulletinEvent(); + } + + public static com.google.container.v1.SecurityBulletinEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecurityBulletinEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..315059d85039 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityBulletinEventOrBuilder.java @@ -0,0 +1,356 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface SecurityBulletinEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.SecurityBulletinEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resource type (node/control plane) that has the vulnerability. Multiple
+   * notifications (1 notification per resource type) will be sent for a
+   * vulnerability that affects > 1 resource type.
+   * 
+ * + * string resource_type_affected = 1; + * + * @return The resourceTypeAffected. + */ + java.lang.String getResourceTypeAffected(); + /** + * + * + *
+   * The resource type (node/control plane) that has the vulnerability. Multiple
+   * notifications (1 notification per resource type) will be sent for a
+   * vulnerability that affects > 1 resource type.
+   * 
+ * + * string resource_type_affected = 1; + * + * @return The bytes for resourceTypeAffected. + */ + com.google.protobuf.ByteString getResourceTypeAffectedBytes(); + + /** + * + * + *
+   * The ID of the bulletin corresponding to the vulnerability.
+   * 
+ * + * string bulletin_id = 2; + * + * @return The bulletinId. + */ + java.lang.String getBulletinId(); + /** + * + * + *
+   * The ID of the bulletin corresponding to the vulnerability.
+   * 
+ * + * string bulletin_id = 2; + * + * @return The bytes for bulletinId. + */ + com.google.protobuf.ByteString getBulletinIdBytes(); + + /** + * + * + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * + * @return A list containing the cveIds. + */ + java.util.List getCveIdsList(); + /** + * + * + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * + * @return The count of cveIds. + */ + int getCveIdsCount(); + /** + * + * + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * + * @param index The index of the element to return. + * @return The cveIds at the given index. + */ + java.lang.String getCveIds(int index); + /** + * + * + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * + * @param index The index of the value to return. + * @return The bytes of the cveIds at the given index. + */ + com.google.protobuf.ByteString getCveIdsBytes(int index); + + /** + * + * + *
+   * The severity of this bulletin as it relates to GKE.
+   * 
+ * + * string severity = 4; + * + * @return The severity. + */ + java.lang.String getSeverity(); + /** + * + * + *
+   * The severity of this bulletin as it relates to GKE.
+   * 
+ * + * string severity = 4; + * + * @return The bytes for severity. + */ + com.google.protobuf.ByteString getSeverityBytes(); + + /** + * + * + *
+   * The URI link to the bulletin on the website for more information.
+   * 
+ * + * string bulletin_uri = 5; + * + * @return The bulletinUri. + */ + java.lang.String getBulletinUri(); + /** + * + * + *
+   * The URI link to the bulletin on the website for more information.
+   * 
+ * + * string bulletin_uri = 5; + * + * @return The bytes for bulletinUri. + */ + com.google.protobuf.ByteString getBulletinUriBytes(); + + /** + * + * + *
+   * A brief description of the bulletin. See the bulletin pointed to by the
+   * bulletin_uri field for an expanded description.
+   * 
+ * + * string brief_description = 6; + * + * @return The briefDescription. + */ + java.lang.String getBriefDescription(); + /** + * + * + *
+   * A brief description of the bulletin. See the bulletin pointed to by the
+   * bulletin_uri field for an expanded description.
+   * 
+ * + * string brief_description = 6; + * + * @return The bytes for briefDescription. + */ + com.google.protobuf.ByteString getBriefDescriptionBytes(); + + /** + * + * + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * + * @return A list containing the affectedSupportedMinors. + */ + java.util.List getAffectedSupportedMinorsList(); + /** + * + * + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * + * @return The count of affectedSupportedMinors. + */ + int getAffectedSupportedMinorsCount(); + /** + * + * + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param index The index of the element to return. + * @return The affectedSupportedMinors at the given index. + */ + java.lang.String getAffectedSupportedMinors(int index); + /** + * + * + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param index The index of the value to return. + * @return The bytes of the affectedSupportedMinors at the given index. + */ + com.google.protobuf.ByteString getAffectedSupportedMinorsBytes(int index); + + /** + * + * + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * + * @return A list containing the patchedVersions. + */ + java.util.List getPatchedVersionsList(); + /** + * + * + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * + * @return The count of patchedVersions. + */ + int getPatchedVersionsCount(); + /** + * + * + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * + * @param index The index of the element to return. + * @return The patchedVersions at the given index. + */ + java.lang.String getPatchedVersions(int index); + /** + * + * + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * + * @param index The index of the value to return. + * @return The bytes of the patchedVersions at the given index. + */ + com.google.protobuf.ByteString getPatchedVersionsBytes(int index); + + /** + * + * + *
+   * This represents a version selected from the patched_versions field that
+   * the cluster receiving this notification should most likely want to upgrade
+   * to based on its current version. Note that if this notification is being
+   * received by a given cluster, it means that this version is currently
+   * available as an upgrade target in that cluster's location.
+   * 
+ * + * string suggested_upgrade_target = 9; + * + * @return The suggestedUpgradeTarget. + */ + java.lang.String getSuggestedUpgradeTarget(); + /** + * + * + *
+   * This represents a version selected from the patched_versions field that
+   * the cluster receiving this notification should most likely want to upgrade
+   * to based on its current version. Note that if this notification is being
+   * received by a given cluster, it means that this version is currently
+   * available as an upgrade target in that cluster's location.
+   * 
+ * + * string suggested_upgrade_target = 9; + * + * @return The bytes for suggestedUpgradeTarget. + */ + com.google.protobuf.ByteString getSuggestedUpgradeTargetBytes(); + + /** + * + * + *
+   * If this field is specified, it means there are manual steps that the user
+   * must take to make their clusters safe.
+   * 
+ * + * bool manual_steps_required = 10; + * + * @return The manualStepsRequired. + */ + boolean getManualStepsRequired(); +} diff --git a/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 new file mode 100644 index 000000000000..b2e2ad4ec9e8 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfig.java @@ -0,0 +1,3241 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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.EMPTY; + defaultImageType_ = ""; + validImageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + channels_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ServerConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReleaseChannelConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ServerConfig_ReleaseChannelConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ServerConfig_ReleaseChannelConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ServerConfig.ReleaseChannelConfig.class, + com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder.class); + } + + public static final int CHANNEL_FIELD_NUMBER = 1; + private int channel_; + /** + * + * + *
+     * The release channel this configuration applies to.
+     * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * + * @return The enum numeric value on the wire for channel. + */ + @java.lang.Override + public int getChannelValue() { + return channel_; + } + /** + * + * + *
+     * The release channel this configuration applies to.
+     * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * + * @return The channel. + */ + @java.lang.Override + public com.google.container.v1.ReleaseChannel.Channel getChannel() { + @SuppressWarnings("deprecation") + com.google.container.v1.ReleaseChannel.Channel result = + com.google.container.v1.ReleaseChannel.Channel.valueOf(channel_); + return result == null ? com.google.container.v1.ReleaseChannel.Channel.UNRECOGNIZED : result; + } + + public static final int DEFAULT_VERSION_FIELD_NUMBER = 2; + private volatile java.lang.Object defaultVersion_; + /** + * + * + *
+     * The default version for newly created clusters on the channel.
+     * 
+ * + * string default_version = 2; + * + * @return The defaultVersion. + */ + @java.lang.Override + public java.lang.String getDefaultVersion() { + java.lang.Object ref = defaultVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultVersion_ = s; + return s; + } + } + /** + * + * + *
+     * The default version for newly created clusters on the channel.
+     * 
+ * + * string default_version = 2; + * + * @return The bytes for defaultVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultVersionBytes() { + java.lang.Object ref = defaultVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALID_VERSIONS_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList validVersions_; + /** + * + * + *
+     * List of valid versions for the channel.
+     * 
+ * + * repeated string valid_versions = 4; + * + * @return A list containing the validVersions. + */ + public com.google.protobuf.ProtocolStringList getValidVersionsList() { + return validVersions_; + } + /** + * + * + *
+     * List of valid versions for the channel.
+     * 
+ * + * repeated string valid_versions = 4; + * + * @return The count of validVersions. + */ + public int getValidVersionsCount() { + return validVersions_.size(); + } + /** + * + * + *
+     * List of valid versions for the channel.
+     * 
+ * + * repeated string valid_versions = 4; + * + * @param index The index of the element to return. + * @return The validVersions at the given index. + */ + public java.lang.String getValidVersions(int index) { + return validVersions_.get(index); + } + /** + * + * + *
+     * List of valid versions for the channel.
+     * 
+ * + * repeated string valid_versions = 4; + * + * @param index The index of the value to return. + * @return The bytes of the validVersions at the given index. + */ + public com.google.protobuf.ByteString getValidVersionsBytes(int index) { + return validVersions_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (channel_ != com.google.container.v1.ReleaseChannel.Channel.UNSPECIFIED.getNumber()) { + output.writeEnum(1, channel_); + } + if (!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(); + channel_ = 0; + + defaultVersion_ = ""; + + validVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ServerConfig_ReleaseChannelConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ServerConfig.ReleaseChannelConfig getDefaultInstanceForType() { + return com.google.container.v1.ServerConfig.ReleaseChannelConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ServerConfig.ReleaseChannelConfig build() { + com.google.container.v1.ServerConfig.ReleaseChannelConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ServerConfig.ReleaseChannelConfig buildPartial() { + com.google.container.v1.ServerConfig.ReleaseChannelConfig result = + new com.google.container.v1.ServerConfig.ReleaseChannelConfig(this); + int from_bitField0_ = bitField0_; + result.channel_ = channel_; + result.defaultVersion_ = defaultVersion_; + if (((bitField0_ & 0x00000001) != 0)) { + validVersions_ = validVersions_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.validVersions_ = validVersions_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ServerConfig.ReleaseChannelConfig) { + return mergeFrom((com.google.container.v1.ServerConfig.ReleaseChannelConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ServerConfig.ReleaseChannelConfig other) { + if (other == com.google.container.v1.ServerConfig.ReleaseChannelConfig.getDefaultInstance()) + return this; + if (other.channel_ != 0) { + setChannelValue(other.getChannelValue()); + } + if (!other.getDefaultVersion().isEmpty()) { + defaultVersion_ = other.defaultVersion_; + onChanged(); + } + if (!other.validVersions_.isEmpty()) { + if (validVersions_.isEmpty()) { + validVersions_ = other.validVersions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValidVersionsIsMutable(); + validVersions_.addAll(other.validVersions_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 8 + case 18: + { + defaultVersion_ = input.readStringRequireUtf8(); + + 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; + onChanged(); + return this; + } + /** + * + * + *
+       * The release channel this configuration applies to.
+       * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * + * @return The channel. + */ + @java.lang.Override + public com.google.container.v1.ReleaseChannel.Channel getChannel() { + @SuppressWarnings("deprecation") + com.google.container.v1.ReleaseChannel.Channel result = + com.google.container.v1.ReleaseChannel.Channel.valueOf(channel_); + return result == null + ? com.google.container.v1.ReleaseChannel.Channel.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * The release channel this configuration applies to.
+       * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * + * @param value The channel to set. + * @return This builder for chaining. + */ + public Builder setChannel(com.google.container.v1.ReleaseChannel.Channel value) { + if (value == null) { + throw new NullPointerException(); + } + + channel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * The release channel this configuration applies to.
+       * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * + * @return This builder for chaining. + */ + public Builder clearChannel() { + + channel_ = 0; + onChanged(); + return this; + } + + private java.lang.Object defaultVersion_ = ""; + /** + * + * + *
+       * The default version for newly created clusters on the channel.
+       * 
+ * + * string default_version = 2; + * + * @return The defaultVersion. + */ + public java.lang.String getDefaultVersion() { + java.lang.Object ref = defaultVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The default version for newly created clusters on the channel.
+       * 
+ * + * string default_version = 2; + * + * @return The bytes for defaultVersion. + */ + public com.google.protobuf.ByteString getDefaultVersionBytes() { + java.lang.Object ref = defaultVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The default version for newly created clusters on the channel.
+       * 
+ * + * string default_version = 2; + * + * @param value The defaultVersion to set. + * @return This builder for chaining. + */ + public Builder setDefaultVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + defaultVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The default version for newly created clusters on the channel.
+       * 
+ * + * string default_version = 2; + * + * @return This builder for chaining. + */ + public Builder clearDefaultVersion() { + + defaultVersion_ = getDefaultInstance().getDefaultVersion(); + onChanged(); + return this; + } + /** + * + * + *
+       * The default version for newly created clusters on the channel.
+       * 
+ * + * string default_version = 2; + * + * @param value The bytes for defaultVersion to set. + * @return This builder for chaining. + */ + public Builder setDefaultVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + defaultVersion_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList validVersions_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureValidVersionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + validVersions_ = new com.google.protobuf.LazyStringArrayList(validVersions_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * + * @return A list containing the validVersions. + */ + public com.google.protobuf.ProtocolStringList getValidVersionsList() { + return validVersions_.getUnmodifiableView(); + } + /** + * + * + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * + * @return The count of validVersions. + */ + public int getValidVersionsCount() { + return validVersions_.size(); + } + /** + * + * + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * + * @param index The index of the element to return. + * @return The validVersions at the given index. + */ + public java.lang.String getValidVersions(int index) { + return validVersions_.get(index); + } + /** + * + * + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * + * @param index The index of the value to return. + * @return The bytes of the validVersions at the given index. + */ + public com.google.protobuf.ByteString getValidVersionsBytes(int index) { + return validVersions_.getByteString(index); + } + /** + * + * + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * + * @param index The index to set the value at. + * @param value The validVersions to set. + * @return This builder for chaining. + */ + public Builder setValidVersions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidVersionsIsMutable(); + validVersions_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * + * @param value The validVersions to add. + * @return This builder for chaining. + */ + public Builder addValidVersions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidVersionsIsMutable(); + validVersions_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * + * @param values The validVersions to add. + * @return This builder for chaining. + */ + public Builder addAllValidVersions(java.lang.Iterable values) { + ensureValidVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, validVersions_); + onChanged(); + return this; + } + /** + * + * + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * + * @return This builder for chaining. + */ + public Builder clearValidVersions() { + validVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * + * @param value The bytes of the validVersions to add. + * @return This builder for chaining. + */ + public Builder addValidVersionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValidVersionsIsMutable(); + validVersions_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.ServerConfig.ReleaseChannelConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ServerConfig.ReleaseChannelConfig) + private static final com.google.container.v1.ServerConfig.ReleaseChannelConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.ServerConfig.ReleaseChannelConfig(); + } + + public static com.google.container.v1.ServerConfig.ReleaseChannelConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReleaseChannelConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ServerConfig.ReleaseChannelConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int DEFAULT_CLUSTER_VERSION_FIELD_NUMBER = 1; + private volatile java.lang.Object defaultClusterVersion_; + /** + * + * + *
+   * Version of Kubernetes the service deploys by default.
+   * 
+ * + * string default_cluster_version = 1; + * + * @return The defaultClusterVersion. + */ + @java.lang.Override + public java.lang.String getDefaultClusterVersion() { + java.lang.Object ref = defaultClusterVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultClusterVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Version of Kubernetes the service deploys by default.
+   * 
+ * + * string default_cluster_version = 1; + * + * @return The bytes for defaultClusterVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultClusterVersionBytes() { + java.lang.Object ref = defaultClusterVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultClusterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALID_NODE_VERSIONS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList validNodeVersions_; + /** + * + * + *
+   * List of valid node upgrade target versions, in descending order.
+   * 
+ * + * repeated string valid_node_versions = 3; + * + * @return A list containing the validNodeVersions. + */ + public com.google.protobuf.ProtocolStringList getValidNodeVersionsList() { + return validNodeVersions_; + } + /** + * + * + *
+   * List of valid node upgrade target versions, in descending order.
+   * 
+ * + * repeated string valid_node_versions = 3; + * + * @return The count of validNodeVersions. + */ + public int getValidNodeVersionsCount() { + return validNodeVersions_.size(); + } + /** + * + * + *
+   * List of valid node upgrade target versions, in descending order.
+   * 
+ * + * repeated string valid_node_versions = 3; + * + * @param index The index of the element to return. + * @return The validNodeVersions at the given index. + */ + public java.lang.String getValidNodeVersions(int index) { + return validNodeVersions_.get(index); + } + /** + * + * + *
+   * List of valid node upgrade target versions, in descending order.
+   * 
+ * + * repeated string valid_node_versions = 3; + * + * @param index The index of the value to return. + * @return The bytes of the validNodeVersions at the given index. + */ + public com.google.protobuf.ByteString getValidNodeVersionsBytes(int index) { + return validNodeVersions_.getByteString(index); + } + + public static final int DEFAULT_IMAGE_TYPE_FIELD_NUMBER = 4; + private volatile java.lang.Object defaultImageType_; + /** + * + * + *
+   * Default image type.
+   * 
+ * + * string default_image_type = 4; + * + * @return The defaultImageType. + */ + @java.lang.Override + public java.lang.String getDefaultImageType() { + java.lang.Object ref = defaultImageType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultImageType_ = s; + return s; + } + } + /** + * + * + *
+   * Default image type.
+   * 
+ * + * string default_image_type = 4; + * + * @return The bytes for defaultImageType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultImageTypeBytes() { + java.lang.Object ref = defaultImageType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultImageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALID_IMAGE_TYPES_FIELD_NUMBER = 5; + private com.google.protobuf.LazyStringList validImageTypes_; + /** + * + * + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + * + * @return A list containing the validImageTypes. + */ + public com.google.protobuf.ProtocolStringList getValidImageTypesList() { + return validImageTypes_; + } + /** + * + * + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + * + * @return The count of validImageTypes. + */ + public int getValidImageTypesCount() { + return validImageTypes_.size(); + } + /** + * + * + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + * + * @param index The index of the element to return. + * @return The validImageTypes at the given index. + */ + public java.lang.String getValidImageTypes(int index) { + return validImageTypes_.get(index); + } + /** + * + * + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + * + * @param index The index of the value to return. + * @return The bytes of the validImageTypes at the given index. + */ + public com.google.protobuf.ByteString getValidImageTypesBytes(int index) { + return validImageTypes_.getByteString(index); + } + + public static final int VALID_MASTER_VERSIONS_FIELD_NUMBER = 6; + private com.google.protobuf.LazyStringList validMasterVersions_; + /** + * + * + *
+   * List of valid master versions, in descending order.
+   * 
+ * + * repeated string valid_master_versions = 6; + * + * @return A list containing the validMasterVersions. + */ + public com.google.protobuf.ProtocolStringList getValidMasterVersionsList() { + return validMasterVersions_; + } + /** + * + * + *
+   * List of valid master versions, in descending order.
+   * 
+ * + * repeated string valid_master_versions = 6; + * + * @return The count of validMasterVersions. + */ + public int getValidMasterVersionsCount() { + return validMasterVersions_.size(); + } + /** + * + * + *
+   * List of valid master versions, in descending order.
+   * 
+ * + * repeated string valid_master_versions = 6; + * + * @param index The index of the element to return. + * @return The validMasterVersions at the given index. + */ + public java.lang.String getValidMasterVersions(int index) { + return validMasterVersions_.get(index); + } + /** + * + * + *
+   * List of valid master versions, in descending order.
+   * 
+ * + * repeated string valid_master_versions = 6; + * + * @param index The index of the value to return. + * @return The bytes of the validMasterVersions at the given index. + */ + public com.google.protobuf.ByteString getValidMasterVersionsBytes(int index) { + return validMasterVersions_.getByteString(index); + } + + public static final int CHANNELS_FIELD_NUMBER = 9; + private java.util.List channels_; + /** + * + * + *
+   * List of release channel configurations.
+   * 
+ * + * repeated .google.container.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(); + defaultClusterVersion_ = ""; + + validNodeVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + defaultImageType_ = ""; + + validImageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + if (channelsBuilder_ == null) { + channels_ = java.util.Collections.emptyList(); + } else { + channels_ = null; + channelsBuilder_.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_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); + int from_bitField0_ = bitField0_; + result.defaultClusterVersion_ = defaultClusterVersion_; + if (((bitField0_ & 0x00000001) != 0)) { + validNodeVersions_ = validNodeVersions_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.validNodeVersions_ = validNodeVersions_; + result.defaultImageType_ = defaultImageType_; + if (((bitField0_ & 0x00000002) != 0)) { + validImageTypes_ = validImageTypes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.validImageTypes_ = validImageTypes_; + if (((bitField0_ & 0x00000004) != 0)) { + validMasterVersions_ = validMasterVersions_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.validMasterVersions_ = validMasterVersions_; + if (channelsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + channels_ = java.util.Collections.unmodifiableList(channels_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.channels_ = channels_; + } else { + result.channels_ = channelsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.validNodeVersions_.isEmpty()) { + if (validNodeVersions_.isEmpty()) { + validNodeVersions_ = other.validNodeVersions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValidNodeVersionsIsMutable(); + validNodeVersions_.addAll(other.validNodeVersions_); + } + onChanged(); + } + if (!other.getDefaultImageType().isEmpty()) { + defaultImageType_ = other.defaultImageType_; + onChanged(); + } + if (!other.validImageTypes_.isEmpty()) { + if (validImageTypes_.isEmpty()) { + validImageTypes_ = other.validImageTypes_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureValidImageTypesIsMutable(); + validImageTypes_.addAll(other.validImageTypes_); + } + onChanged(); + } + if (!other.validMasterVersions_.isEmpty()) { + if (validMasterVersions_.isEmpty()) { + validMasterVersions_ = other.validMasterVersions_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureValidMasterVersionsIsMutable(); + validMasterVersions_.addAll(other.validMasterVersions_); + } + onChanged(); + } + if (channelsBuilder_ == null) { + if (!other.channels_.isEmpty()) { + if (channels_.isEmpty()) { + channels_ = other.channels_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureChannelsIsMutable(); + channels_.addAll(other.channels_); + } + onChanged(); + } + } else { + if (!other.channels_.isEmpty()) { + if (channelsBuilder_.isEmpty()) { + channelsBuilder_.dispose(); + channelsBuilder_ = null; + channels_ = other.channels_; + bitField0_ = (bitField0_ & ~0x00000008); + channelsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getChannelsFieldBuilder() + : null; + } else { + channelsBuilder_.addAllMessages(other.channels_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureValidNodeVersionsIsMutable(); + validNodeVersions_.add(s); + break; + } // case 26 + case 34: + { + defaultImageType_ = input.readStringRequireUtf8(); + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Version of Kubernetes the service deploys by default.
+     * 
+ * + * string default_cluster_version = 1; + * + * @return This builder for chaining. + */ + public Builder clearDefaultClusterVersion() { + + defaultClusterVersion_ = getDefaultInstance().getDefaultClusterVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * Version of Kubernetes the service deploys by default.
+     * 
+ * + * string default_cluster_version = 1; + * + * @param value The bytes for defaultClusterVersion to set. + * @return This builder for chaining. + */ + public Builder setDefaultClusterVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + defaultClusterVersion_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList validNodeVersions_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureValidNodeVersionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + validNodeVersions_ = new com.google.protobuf.LazyStringArrayList(validNodeVersions_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * List of valid node upgrade target versions, in descending order.
+     * 
+ * + * repeated string valid_node_versions = 3; + * + * @return A list containing the validNodeVersions. + */ + public com.google.protobuf.ProtocolStringList getValidNodeVersionsList() { + return validNodeVersions_.getUnmodifiableView(); + } + /** + * + * + *
+     * List of valid node upgrade target versions, in descending order.
+     * 
+ * + * repeated string valid_node_versions = 3; + * + * @return The count of validNodeVersions. + */ + public int getValidNodeVersionsCount() { + return validNodeVersions_.size(); + } + /** + * + * + *
+     * List of valid node upgrade target versions, in descending order.
+     * 
+ * + * repeated string valid_node_versions = 3; + * + * @param index The index of the element to return. + * @return The validNodeVersions at the given index. + */ + public java.lang.String getValidNodeVersions(int index) { + return validNodeVersions_.get(index); + } + /** + * + * + *
+     * List of valid node upgrade target versions, in descending order.
+     * 
+ * + * repeated string valid_node_versions = 3; + * + * @param index The index of the value to return. + * @return The bytes of the validNodeVersions at the given index. + */ + public com.google.protobuf.ByteString getValidNodeVersionsBytes(int index) { + return validNodeVersions_.getByteString(index); + } + /** + * + * + *
+     * List of valid node upgrade target versions, in descending order.
+     * 
+ * + * repeated string valid_node_versions = 3; + * + * @param index The index to set the value at. + * @param value The validNodeVersions to set. + * @return This builder for chaining. + */ + public Builder setValidNodeVersions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidNodeVersionsIsMutable(); + validNodeVersions_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of valid node upgrade target versions, in descending order.
+     * 
+ * + * repeated string valid_node_versions = 3; + * + * @param value The validNodeVersions to add. + * @return This builder for chaining. + */ + public Builder addValidNodeVersions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidNodeVersionsIsMutable(); + validNodeVersions_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of valid node upgrade target versions, in descending order.
+     * 
+ * + * repeated string valid_node_versions = 3; + * + * @param values The validNodeVersions to add. + * @return This builder for chaining. + */ + public Builder addAllValidNodeVersions(java.lang.Iterable values) { + ensureValidNodeVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, validNodeVersions_); + onChanged(); + return this; + } + /** + * + * + *
+     * List of valid node upgrade target versions, in descending order.
+     * 
+ * + * repeated string valid_node_versions = 3; + * + * @return This builder for chaining. + */ + public Builder clearValidNodeVersions() { + validNodeVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * List of valid node upgrade target versions, in descending order.
+     * 
+ * + * repeated string valid_node_versions = 3; + * + * @param value The bytes of the validNodeVersions to add. + * @return This builder for chaining. + */ + public Builder addValidNodeVersionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValidNodeVersionsIsMutable(); + validNodeVersions_.add(value); + onChanged(); + return this; + } + + private java.lang.Object defaultImageType_ = ""; + /** + * + * + *
+     * Default image type.
+     * 
+ * + * string default_image_type = 4; + * + * @return The defaultImageType. + */ + public java.lang.String getDefaultImageType() { + java.lang.Object ref = defaultImageType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultImageType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Default image type.
+     * 
+ * + * string default_image_type = 4; + * + * @return The bytes for defaultImageType. + */ + public com.google.protobuf.ByteString getDefaultImageTypeBytes() { + java.lang.Object ref = defaultImageType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultImageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Default image type.
+     * 
+ * + * string default_image_type = 4; + * + * @param value The defaultImageType to set. + * @return This builder for chaining. + */ + public Builder setDefaultImageType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + defaultImageType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Default image type.
+     * 
+ * + * string default_image_type = 4; + * + * @return This builder for chaining. + */ + public Builder clearDefaultImageType() { + + defaultImageType_ = getDefaultInstance().getDefaultImageType(); + onChanged(); + return this; + } + /** + * + * + *
+     * Default image type.
+     * 
+ * + * string default_image_type = 4; + * + * @param value The bytes for defaultImageType to set. + * @return This builder for chaining. + */ + public Builder setDefaultImageTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + defaultImageType_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList validImageTypes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureValidImageTypesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + validImageTypes_ = new com.google.protobuf.LazyStringArrayList(validImageTypes_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + * + * @return A list containing the validImageTypes. + */ + public com.google.protobuf.ProtocolStringList getValidImageTypesList() { + return validImageTypes_.getUnmodifiableView(); + } + /** + * + * + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + * + * @return The count of validImageTypes. + */ + public int getValidImageTypesCount() { + return validImageTypes_.size(); + } + /** + * + * + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + * + * @param index The index of the element to return. + * @return The validImageTypes at the given index. + */ + public java.lang.String getValidImageTypes(int index) { + return validImageTypes_.get(index); + } + /** + * + * + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + * + * @param index The index of the value to return. + * @return The bytes of the validImageTypes at the given index. + */ + public com.google.protobuf.ByteString getValidImageTypesBytes(int index) { + return validImageTypes_.getByteString(index); + } + /** + * + * + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + * + * @param index The index to set the value at. + * @param value The validImageTypes to set. + * @return This builder for chaining. + */ + public Builder setValidImageTypes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidImageTypesIsMutable(); + validImageTypes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + * + * @param value The validImageTypes to add. + * @return This builder for chaining. + */ + public Builder addValidImageTypes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidImageTypesIsMutable(); + validImageTypes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + * + * @param values The validImageTypes to add. + * @return This builder for chaining. + */ + public Builder addAllValidImageTypes(java.lang.Iterable values) { + ensureValidImageTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, validImageTypes_); + onChanged(); + return this; + } + /** + * + * + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + * + * @return This builder for chaining. + */ + public Builder clearValidImageTypes() { + validImageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + * + * @param value The bytes of the validImageTypes to add. + * @return This builder for chaining. + */ + public Builder addValidImageTypesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValidImageTypesIsMutable(); + validImageTypes_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList validMasterVersions_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureValidMasterVersionsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + validMasterVersions_ = new com.google.protobuf.LazyStringArrayList(validMasterVersions_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+     * List of valid master versions, in descending order.
+     * 
+ * + * repeated string valid_master_versions = 6; + * + * @return A list containing the validMasterVersions. + */ + public com.google.protobuf.ProtocolStringList getValidMasterVersionsList() { + return validMasterVersions_.getUnmodifiableView(); + } + /** + * + * + *
+     * List of valid master versions, in descending order.
+     * 
+ * + * repeated string valid_master_versions = 6; + * + * @return The count of validMasterVersions. + */ + public int getValidMasterVersionsCount() { + return validMasterVersions_.size(); + } + /** + * + * + *
+     * List of valid master versions, in descending order.
+     * 
+ * + * repeated string valid_master_versions = 6; + * + * @param index The index of the element to return. + * @return The validMasterVersions at the given index. + */ + public java.lang.String getValidMasterVersions(int index) { + return validMasterVersions_.get(index); + } + /** + * + * + *
+     * List of valid master versions, in descending order.
+     * 
+ * + * repeated string valid_master_versions = 6; + * + * @param index The index of the value to return. + * @return The bytes of the validMasterVersions at the given index. + */ + public com.google.protobuf.ByteString getValidMasterVersionsBytes(int index) { + return validMasterVersions_.getByteString(index); + } + /** + * + * + *
+     * List of valid master versions, in descending order.
+     * 
+ * + * repeated string valid_master_versions = 6; + * + * @param index The index to set the value at. + * @param value The validMasterVersions to set. + * @return This builder for chaining. + */ + public Builder setValidMasterVersions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidMasterVersionsIsMutable(); + validMasterVersions_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of valid master versions, in descending order.
+     * 
+ * + * repeated string valid_master_versions = 6; + * + * @param value The validMasterVersions to add. + * @return This builder for chaining. + */ + public Builder addValidMasterVersions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidMasterVersionsIsMutable(); + validMasterVersions_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of valid master versions, in descending order.
+     * 
+ * + * repeated string valid_master_versions = 6; + * + * @param values The validMasterVersions to add. + * @return This builder for chaining. + */ + public Builder addAllValidMasterVersions(java.lang.Iterable values) { + ensureValidMasterVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, validMasterVersions_); + onChanged(); + return this; + } + /** + * + * + *
+     * List of valid master versions, in descending order.
+     * 
+ * + * repeated string valid_master_versions = 6; + * + * @return This builder for chaining. + */ + public Builder clearValidMasterVersions() { + validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * List of valid master versions, in descending order.
+     * 
+ * + * repeated string valid_master_versions = 6; + * + * @param value The bytes of the validMasterVersions to add. + * @return This builder for chaining. + */ + public Builder addValidMasterVersionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValidMasterVersionsIsMutable(); + validMasterVersions_.add(value); + onChanged(); + return this; + } + + private java.util.List channels_ = + java.util.Collections.emptyList(); + + private void ensureChannelsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + channels_ = + new java.util.ArrayList( + channels_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.ServerConfig.ReleaseChannelConfig, + com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder, + com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder> + channelsBuilder_; + + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public java.util.List + getChannelsList() { + if (channelsBuilder_ == null) { + return java.util.Collections.unmodifiableList(channels_); + } else { + return channelsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public int getChannelsCount() { + if (channelsBuilder_ == null) { + return channels_.size(); + } else { + return channelsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public com.google.container.v1.ServerConfig.ReleaseChannelConfig getChannels(int index) { + if (channelsBuilder_ == null) { + return channels_.get(index); + } else { + return channelsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public Builder setChannels( + int index, com.google.container.v1.ServerConfig.ReleaseChannelConfig value) { + if (channelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChannelsIsMutable(); + channels_.set(index, value); + onChanged(); + } else { + channelsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public Builder setChannels( + int index, + com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder builderForValue) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.set(index, builderForValue.build()); + onChanged(); + } else { + channelsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public Builder addChannels(com.google.container.v1.ServerConfig.ReleaseChannelConfig value) { + if (channelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChannelsIsMutable(); + channels_.add(value); + onChanged(); + } else { + channelsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public Builder addChannels( + int index, com.google.container.v1.ServerConfig.ReleaseChannelConfig value) { + if (channelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChannelsIsMutable(); + channels_.add(index, value); + onChanged(); + } else { + channelsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public Builder addChannels( + com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder builderForValue) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.add(builderForValue.build()); + onChanged(); + } else { + channelsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public Builder addChannels( + int index, + com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder builderForValue) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.add(index, builderForValue.build()); + onChanged(); + } else { + channelsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public Builder addAllChannels( + java.lang.Iterable + values) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, channels_); + onChanged(); + } else { + channelsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public Builder clearChannels() { + if (channelsBuilder_ == null) { + channels_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + channelsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public Builder removeChannels(int index) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.remove(index); + onChanged(); + } else { + channelsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder getChannelsBuilder( + int index) { + return getChannelsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder getChannelsOrBuilder( + int index) { + if (channelsBuilder_ == null) { + return channels_.get(index); + } else { + return channelsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public java.util.List< + ? extends com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder> + getChannelsOrBuilderList() { + if (channelsBuilder_ != null) { + return channelsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(channels_); + } + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder addChannelsBuilder() { + return getChannelsFieldBuilder() + .addBuilder( + com.google.container.v1.ServerConfig.ReleaseChannelConfig.getDefaultInstance()); + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder addChannelsBuilder( + int index) { + return getChannelsFieldBuilder() + .addBuilder( + index, + com.google.container.v1.ServerConfig.ReleaseChannelConfig.getDefaultInstance()); + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public java.util.List + getChannelsBuilderList() { + return getChannelsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.ServerConfig.ReleaseChannelConfig, + com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder, + com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder> + getChannelsFieldBuilder() { + if (channelsBuilder_ == null) { + channelsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.ServerConfig.ReleaseChannelConfig, + com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder, + com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder>( + channels_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + channels_ = null; + } + return channelsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..e9170ae71edc --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfigOrBuilder.java @@ -0,0 +1,281 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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 new file mode 100644 index 000000000000..3c07c3377159 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServiceExternalIPsConfig.java @@ -0,0 +1,527 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Config to block services with externalIPs field.
+ * 
+ * + * Protobuf type {@code google.container.v1.ServiceExternalIPsConfig} + */ +public final class ServiceExternalIPsConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.ServiceExternalIPsConfig) + ServiceExternalIPsConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ServiceExternalIPsConfig.newBuilder() to construct. + private ServiceExternalIPsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ServiceExternalIPsConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ServiceExternalIPsConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ServiceExternalIPsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ServiceExternalIPsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ServiceExternalIPsConfig.class, + com.google.container.v1.ServiceExternalIPsConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether Services with ExternalIPs field are allowed or not.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + 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(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ServiceExternalIPsConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ServiceExternalIPsConfig getDefaultInstanceForType() { + return com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ServiceExternalIPsConfig build() { + com.google.container.v1.ServiceExternalIPsConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ServiceExternalIPsConfig buildPartial() { + com.google.container.v1.ServiceExternalIPsConfig result = + new com.google.container.v1.ServiceExternalIPsConfig(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ServiceExternalIPsConfig) { + return mergeFrom((com.google.container.v1.ServiceExternalIPsConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ServiceExternalIPsConfig other) { + if (other == com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 boolean enabled_; + /** + * + * + *
+     * Whether Services with ExternalIPs field are allowed or not.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether Services with ExternalIPs field are allowed or not.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether Services with ExternalIPs field are allowed or not.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.ServiceExternalIPsConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ServiceExternalIPsConfig) + private static final com.google.container.v1.ServiceExternalIPsConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.ServiceExternalIPsConfig(); + } + + public static com.google.container.v1.ServiceExternalIPsConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceExternalIPsConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..fac6de360d8d --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServiceExternalIPsConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface ServiceExternalIPsConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ServiceExternalIPsConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether Services with ExternalIPs field are allowed or not.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/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 new file mode 100644 index 000000000000..c56116d24e00 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java @@ -0,0 +1,1563 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/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=2399 + * @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=2399 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2405 + * @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=2405 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * Deprecated. 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=2409 + * @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=2409 + * @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 addonsConfig_ != null; + } + /** + * + * + *
+   * 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 getAddonsConfig(); + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set addons.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set addons.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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 (addonsConfig_ != null) { + 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 (addonsConfig_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + if (addonsConfigBuilder_ == null) { + addonsConfig_ = null; + } else { + addonsConfig_ = null; + addonsConfigBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.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); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + if (addonsConfigBuilder_ == null) { + result.addonsConfig_ = addonsConfig_; + } else { + result.addonsConfig_ = addonsConfigBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (other.hasAddonsConfig()) { + mergeAddonsConfig(other.getAddonsConfig()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + input.readMessage(getAddonsConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 50: + { + name_ = input.readStringRequireUtf8(); + + 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 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=2399 + * @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=2399 + * @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=2399 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/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=2399 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + 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=2399 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2405 + * @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=2405 + * @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=2405 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2405 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + 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=2405 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * Deprecated. 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=2409 + * @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=2409 + * @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=2409 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. 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=2409 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * + * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See + * google/container/v1/cluster_service.proto;l=2409 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.container.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 addonsConfigBuilder_ != null || addonsConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + addonsConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + addonsConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (addonsConfig_ != null) { + addonsConfig_ = + com.google.container.v1.AddonsConfig.newBuilder(addonsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + addonsConfig_ = value; + } + onChanged(); + } else { + addonsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * + * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAddonsConfig() { + if (addonsConfigBuilder_ == null) { + addonsConfig_ = null; + onChanged(); + } else { + addonsConfig_ = null; + addonsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * + * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1.AddonsConfig.Builder getAddonsConfigBuilder() { + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set addons.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set addons.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..55a35ef14a08 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java @@ -0,0 +1,201 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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=2399 + * @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=2399 + * @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=2405 + * @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=2405 + * @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=2409 + * @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=2409 + * @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 new file mode 100644 index 000000000000..34c96882efa2 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java @@ -0,0 +1,1822 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetResourceLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.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; + 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=3494 + * @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=3494 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3500 + * @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=3500 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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=3504 + * @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=3504 + * @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, + ""); + } + + 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 java.lang.String getResourceLabelsOrDefault( + java.lang.String key, 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; + private volatile java.lang.Object labelFingerprint_; + /** + * + * + *
+   * Required. The fingerprint of the previous set of labels for this resource,
+   * used to detect conflicts. The fingerprint is initially generated by
+   * Kubernetes Engine and changes after every request to modify or update
+   * labels. You must always provide an up-to-date fingerprint hash when
+   * updating or changing labels. Make a `get()` request to the
+   * resource to get the latest fingerprint.
+   * 
+ * + * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The labelFingerprint. + */ + @java.lang.Override + public java.lang.String getLabelFingerprint() { + java.lang.Object ref = labelFingerprint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + labelFingerprint_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The fingerprint of the previous set of labels for this resource,
+   * used to detect conflicts. The fingerprint is initially generated by
+   * Kubernetes Engine and changes after every request to modify or update
+   * labels. You must always provide an up-to-date fingerprint hash when
+   * updating or changing labels. Make a `get()` request to the
+   * resource to get the latest fingerprint.
+   * 
+ * + * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for labelFingerprint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLabelFingerprintBytes() { + java.lang.Object ref = labelFingerprint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + labelFingerprint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster 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.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetResourceLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 4: + return internalGetMutableResourceLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.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(); + 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); + int from_bitField0_ = bitField0_; + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.resourceLabels_ = internalGetResourceLabels(); + result.resourceLabels_.makeImmutable(); + result.labelFingerprint_ = labelFingerprint_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + internalGetMutableResourceLabels().mergeFrom(other.internalGetResourceLabels()); + if (!other.getLabelFingerprint().isEmpty()) { + labelFingerprint_ = other.labelFingerprint_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry resourceLabels__ = + input.readMessage( + ResourceLabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableResourceLabels() + .getMutableMap() + .put(resourceLabels__.getKey(), resourceLabels__.getValue()); + break; + } // case 34 + case 42: + { + labelFingerprint_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 58: + { + name_ = input.readStringRequireUtf8(); + + 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=3494 + * @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=3494 + * @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=3494 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/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=3494 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + 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=3494 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3500 + * @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=3500 + * @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=3500 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3500 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + 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=3500 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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=3504 + * @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=3504 + * @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=3504 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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=3504 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * + * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See + * google/container/v1/cluster_service.proto;l=3504 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField resourceLabels_; + + private com.google.protobuf.MapField + internalGetResourceLabels() { + if (resourceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + return resourceLabels_; + } + + private com.google.protobuf.MapField + internalGetMutableResourceLabels() { + onChanged(); + ; + if (resourceLabels_ == null) { + resourceLabels_ = + com.google.protobuf.MapField.newMapField(ResourceLabelsDefaultEntryHolder.defaultEntry); + } + if (!resourceLabels_.isMutable()) { + resourceLabels_ = resourceLabels_.copy(); + } + return resourceLabels_; + } + + public int getResourceLabelsCount() { + return internalGetResourceLabels().getMap().size(); + } + /** + * + * + *
+     * Required. The labels to set for that cluster.
+     * 
+ * + * + * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public boolean containsResourceLabels(java.lang.String key) { + if (key == null) { + throw new 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 java.lang.String getResourceLabelsOrDefault( + java.lang.String key, 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() { + 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() { + 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); + return this; + } + /** + * + * + *
+     * Required. The labels to set for that cluster.
+     * 
+ * + * + * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder putAllResourceLabels(java.util.Map values) { + internalGetMutableResourceLabels().getMutableMap().putAll(values); + return this; + } + + private java.lang.Object labelFingerprint_ = ""; + /** + * + * + *
+     * Required. The fingerprint of the previous set of labels for this resource,
+     * used to detect conflicts. The fingerprint is initially generated by
+     * Kubernetes Engine and changes after every request to modify or update
+     * labels. You must always provide an up-to-date fingerprint hash when
+     * updating or changing labels. Make a `get()` request to the
+     * resource to get the latest fingerprint.
+     * 
+ * + * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The labelFingerprint. + */ + public java.lang.String getLabelFingerprint() { + java.lang.Object ref = labelFingerprint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + labelFingerprint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The fingerprint of the previous set of labels for this resource,
+     * used to detect conflicts. The fingerprint is initially generated by
+     * Kubernetes Engine and changes after every request to modify or update
+     * labels. You must always provide an up-to-date fingerprint hash when
+     * updating or changing labels. Make a `get()` request to the
+     * resource to get the latest fingerprint.
+     * 
+ * + * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for labelFingerprint. + */ + public com.google.protobuf.ByteString getLabelFingerprintBytes() { + java.lang.Object ref = labelFingerprint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + labelFingerprint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The fingerprint of the previous set of labels for this resource,
+     * used to detect conflicts. The fingerprint is initially generated by
+     * Kubernetes Engine and changes after every request to modify or update
+     * labels. You must always provide an up-to-date fingerprint hash when
+     * updating or changing labels. Make a `get()` request to the
+     * resource to get the latest fingerprint.
+     * 
+ * + * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The labelFingerprint to set. + * @return This builder for chaining. + */ + public Builder setLabelFingerprint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + labelFingerprint_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The fingerprint of the previous set of labels for this resource,
+     * used to detect conflicts. The fingerprint is initially generated by
+     * Kubernetes Engine and changes after every request to modify or update
+     * labels. You must always provide an up-to-date fingerprint hash when
+     * updating or changing labels. Make a `get()` request to the
+     * resource to get the latest fingerprint.
+     * 
+ * + * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearLabelFingerprint() { + + labelFingerprint_ = getDefaultInstance().getLabelFingerprint(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The fingerprint of the previous set of labels for this resource,
+     * used to detect conflicts. The fingerprint is initially generated by
+     * Kubernetes Engine and changes after every request to modify or update
+     * labels. You must always provide an up-to-date fingerprint hash when
+     * updating or changing labels. Make a `get()` request to the
+     * resource to get the latest fingerprint.
+     * 
+ * + * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for labelFingerprint to set. + * @return This builder for chaining. + */ + public Builder setLabelFingerprintBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + labelFingerprint_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..16210ec9a66c --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java @@ -0,0 +1,256 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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=3494 + * @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=3494 + * @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=3500 + * @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=3500 + * @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=3504 + * @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=3504 + * @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 new file mode 100644 index 000000000000..4857d33251d8 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java @@ -0,0 +1,1353 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + 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=3528 + * @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=3528 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3534 + * @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=3534 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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=3538 + * @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=3538 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENABLED_FIELD_NUMBER = 4; + private boolean enabled_; + /** + * + * + *
+   * Required. Whether ABAC authorization will be enabled in the cluster.
+   * 
+ * + * bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster 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(); + 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); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.enabled_ = enabled_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: + { + enabled_ = input.readBool(); + + break; + } // case 32 + case 50: + { + name_ = input.readStringRequireUtf8(); + + 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 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=3528 + * @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=3528 + * @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=3528 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/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=3528 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + 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=3528 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3534 + * @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=3534 + * @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=3534 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3534 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + 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=3534 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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=3538 + * @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=3538 + * @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=3538 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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=3538 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * + * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See + * google/container/v1/cluster_service.proto;l=3538 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Required. Whether ABAC authorization will be enabled in the cluster.
+     * 
+ * + * bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Required. Whether ABAC authorization will be enabled in the cluster.
+     * 
+ * + * bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Whether ABAC authorization will be enabled in the cluster.
+     * 
+ * + * bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..8deb79fcc83a --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java @@ -0,0 +1,170 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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=3528 + * @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=3528 + * @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=3534 + * @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=3534 + * @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=3538 + * @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=3538 + * @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 new file mode 100644 index 000000000000..8f882801490c --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java @@ -0,0 +1,1598 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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.EMPTY; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SetLocationsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + 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=2425 + * @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=2425 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2431 + * @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=2431 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * Deprecated. 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=2435 + * @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=2435 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATIONS_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList locations_; + /** + * + * + *
+   * Required. The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located. Changing the locations a cluster is in
+   * will result in nodes being either created or removed from the cluster,
+   * depending on whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the locations. + */ + public com.google.protobuf.ProtocolStringList getLocationsList() { + return locations_; + } + /** + * + * + *
+   * Required. The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located. Changing the locations a cluster is in
+   * will result in nodes being either created or removed from the cluster,
+   * depending on whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of locations. + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + * + * + *
+   * Required. The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located. Changing the locations a cluster is in
+   * will result in nodes being either created or removed from the cluster,
+   * depending on whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + * + * + *
+   * Required. The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located. Changing the locations a cluster is in
+   * will result in nodes being either created or removed from the cluster,
+   * depending on whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + public com.google.protobuf.ByteString getLocationsBytes(int index) { + return locations_.getByteString(index); + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set locations.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set locations.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.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); + int from_bitField0_ = bitField0_; + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + if (((bitField0_ & 0x00000001) != 0)) { + locations_ = locations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.locations_ = locations_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureLocationsIsMutable(); + locations_.add(s); + break; + } // case 34 + case 50: + { + name_ = input.readStringRequireUtf8(); + + 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=2425 + * @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=2425 + * @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=2425 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/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=2425 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + 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=2425 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2431 + * @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=2431 + * @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=2431 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2431 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + 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=2431 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * Deprecated. 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=2435 + * @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=2435 + * @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=2435 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. 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=2435 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * + * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See + * google/container/v1/cluster_service.proto;l=2435 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList locations_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureLocationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + locations_ = new com.google.protobuf.LazyStringArrayList(locations_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Required. The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located. Changing the locations a cluster is in
+     * will result in nodes being either created or removed from the cluster,
+     * depending on whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the locations. + */ + public com.google.protobuf.ProtocolStringList getLocationsList() { + return locations_.getUnmodifiableView(); + } + /** + * + * + *
+     * Required. The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located. Changing the locations a cluster is in
+     * will result in nodes being either created or removed from the cluster,
+     * depending on whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of locations. + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + * + * + *
+     * Required. The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located. Changing the locations a cluster is in
+     * will result in nodes being either created or removed from the cluster,
+     * depending on whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + * + * + *
+     * Required. The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located. Changing the locations a cluster is in
+     * will result in nodes being either created or removed from the cluster,
+     * depending on whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + public com.google.protobuf.ByteString getLocationsBytes(int index) { + return locations_.getByteString(index); + } + /** + * + * + *
+     * Required. The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located. Changing the locations a cluster is in
+     * will result in nodes being either created or removed from the cluster,
+     * depending on whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The locations to set. + * @return This builder for chaining. + */ + public Builder setLocations(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located. Changing the locations a cluster is in
+     * will result in nodes being either created or removed from the cluster,
+     * depending on whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The locations to add. + * @return This builder for chaining. + */ + public Builder addLocations(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located. Changing the locations a cluster is in
+     * will result in nodes being either created or removed from the cluster,
+     * depending on whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The locations to add. + * @return This builder for chaining. + */ + public Builder addAllLocations(java.lang.Iterable values) { + ensureLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located. Changing the locations a cluster is in
+     * will result in nodes being either created or removed from the cluster,
+     * depending on whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearLocations() { + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located. Changing the locations a cluster is in
+     * will result in nodes being either created or removed from the cluster,
+     * depending on whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the locations to add. + * @return This builder for chaining. + */ + public Builder addLocationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set locations.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set locations.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set locations.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set locations.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set locations.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..e0e71e9fc1c2 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java @@ -0,0 +1,228 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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=2425 + * @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=2425 + * @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=2431 + * @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=2431 + * @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=2435 + * @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=2435 + * @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 new file mode 100644 index 000000000000..77f47caac98b --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java @@ -0,0 +1,1495 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + 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=2329 + * @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=2329 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2335 + * @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=2335 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * Deprecated. 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=2339 + * @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=2339 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOGGING_SERVICE_FIELD_NUMBER = 4; + private volatile java.lang.Object loggingService_; + /** + * + * + *
+   * Required. The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
+   * * `none` - no logs will be exported from the cluster.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+   * 
+ * + * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The loggingService. + */ + @java.lang.Override + public java.lang.String getLoggingService() { + java.lang.Object ref = loggingService_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + loggingService_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
+   * * `none` - no logs will be exported from the cluster.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+   * 
+ * + * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for loggingService. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLoggingServiceBytes() { + java.lang.Object ref = loggingService_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + loggingService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set logging.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 5; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set logging.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 5; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + 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); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.loggingService_ = loggingService_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getLoggingService().isEmpty()) { + loggingService_ = other.loggingService_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + loggingService_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + name_ = input.readStringRequireUtf8(); + + 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 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=2329 + * @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=2329 + * @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=2329 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/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=2329 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + 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=2329 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2335 + * @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=2335 + * @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=2335 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2335 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + 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=2335 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * Deprecated. 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=2339 + * @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=2339 + * @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=2339 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. 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=2339 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * + * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See + * google/container/v1/cluster_service.proto;l=2339 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object loggingService_ = ""; + /** + * + * + *
+     * Required. The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The loggingService. + */ + public java.lang.String getLoggingService() { + java.lang.Object ref = loggingService_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + loggingService_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for loggingService. + */ + public com.google.protobuf.ByteString getLoggingServiceBytes() { + java.lang.Object ref = loggingService_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + loggingService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The loggingService to set. + * @return This builder for chaining. + */ + public Builder setLoggingService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + loggingService_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearLoggingService() { + + loggingService_ = getDefaultInstance().getLoggingService(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for loggingService to set. + * @return This builder for chaining. + */ + public Builder setLoggingServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + loggingService_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set logging.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set logging.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set logging.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set logging.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set logging.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..3404f19eba63 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java @@ -0,0 +1,198 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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=2329 + * @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=2329 + * @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=2335 + * @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=2335 + * @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=2339 + * @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=2339 + * @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 new file mode 100644 index 000000000000..ca30b3759120 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequest.java @@ -0,0 +1,1489 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Required. The Google Developers Console [project ID or project
+   * number](https://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; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Required. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides.
+   * 
+ * + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. + */ + @java.lang.Override + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides.
+   * 
+ * + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * Required. The name of the cluster to update.
+   * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + @java.lang.Override + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the cluster to update.
+   * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAINTENANCE_POLICY_FIELD_NUMBER = 4; + private com.google.container.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 maintenancePolicy_ != null; + } + /** + * + * + *
+   * 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 getMaintenancePolicy(); + } + + public static final int NAME_FIELD_NUMBER = 5; + 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 (maintenancePolicy_ != null) { + 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 (maintenancePolicy_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + if (maintenancePolicyBuilder_ == null) { + maintenancePolicy_ = null; + } else { + maintenancePolicy_ = null; + maintenancePolicyBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.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); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + if (maintenancePolicyBuilder_ == null) { + result.maintenancePolicy_ = maintenancePolicy_; + } else { + result.maintenancePolicy_ = maintenancePolicyBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (other.hasMaintenancePolicy()) { + mergeMaintenancePolicy(other.getMaintenancePolicy()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + input.readMessage( + getMaintenancePolicyFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + name_ = input.readStringRequireUtf8(); + + 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 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; + 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(); + 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; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Required. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides.
+     * 
+ * + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides.
+     * 
+ * + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. + */ + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides.
+     * 
+ * + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides.
+     * 
+ * + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides.
+     * 
+ * + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * Required. The name of the cluster to update.
+     * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the cluster to update.
+     * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the cluster to update.
+     * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the cluster to update.
+     * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the cluster to update.
+     * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.container.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 maintenancePolicyBuilder_ != null || maintenancePolicy_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + maintenancePolicyBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * + * .google.container.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(); + onChanged(); + } else { + maintenancePolicyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * + * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMaintenancePolicy(com.google.container.v1.MaintenancePolicy value) { + if (maintenancePolicyBuilder_ == null) { + if (maintenancePolicy_ != null) { + maintenancePolicy_ = + com.google.container.v1.MaintenancePolicy.newBuilder(maintenancePolicy_) + .mergeFrom(value) + .buildPartial(); + } else { + maintenancePolicy_ = value; + } + onChanged(); + } else { + maintenancePolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * + * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMaintenancePolicy() { + if (maintenancePolicyBuilder_ == null) { + maintenancePolicy_ = null; + onChanged(); + } else { + maintenancePolicy_ = null; + maintenancePolicyBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * + * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1.MaintenancePolicy.Builder getMaintenancePolicyBuilder() { + + onChanged(); + return getMaintenancePolicyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * + * .google.container.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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..19df4b8e9d6a --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequestOrBuilder.java @@ -0,0 +1,179 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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 new file mode 100644 index 000000000000..d14e1dc8900a --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java @@ -0,0 +1,1885 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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) + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/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=2508 + * @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=2508 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2514 + * @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=2514 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * Deprecated. 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=2518 + * @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=2518 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACTION_FIELD_NUMBER = 4; + private int action_; + /** + * + * + *
+   * Required. The exact form of action to be taken on the master auth.
+   * 
+ * + * + * .google.container.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() { + @SuppressWarnings("deprecation") + com.google.container.v1.SetMasterAuthRequest.Action result = + com.google.container.v1.SetMasterAuthRequest.Action.valueOf(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 update_ != null; + } + /** + * + * + *
+   * 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 getUpdate(); + } + + public static final int NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set auth.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 7; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set auth.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 7; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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 (update_ != null) { + 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 (update_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + action_ = 0; + + if (updateBuilder_ == null) { + update_ = null; + } else { + update_ = null; + updateBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.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); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.action_ = action_; + if (updateBuilder_ == null) { + result.update_ = update_; + } else { + result.update_ = updateBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (other.action_ != 0) { + setActionValue(other.getActionValue()); + } + if (other.hasUpdate()) { + mergeUpdate(other.getUpdate()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: + { + action_ = input.readEnum(); + + break; + } // case 32 + case 42: + { + input.readMessage(getUpdateFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 58: + { + name_ = input.readStringRequireUtf8(); + + 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 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=2508 + * @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=2508 + * @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=2508 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/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=2508 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + 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=2508 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2514 + * @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=2514 + * @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=2514 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2514 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + 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=2514 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * Deprecated. 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=2518 + * @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=2518 + * @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=2518 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. 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=2518 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * + * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See + * google/container/v1/cluster_service.proto;l=2518 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private int action_ = 0; + /** + * + * + *
+     * Required. The exact form of action to be taken on the master auth.
+     * 
+ * + * + * .google.container.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; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1.SetMasterAuthRequest.Action result = + com.google.container.v1.SetMasterAuthRequest.Action.valueOf(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(); + } + + 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() { + + 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 updateBuilder_ != null || update_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + updateBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + updateBuilder_.setMessage(builderForValue.build()); + } + + 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 (update_ != null) { + update_ = + com.google.container.v1.MasterAuth.newBuilder(update_) + .mergeFrom(value) + .buildPartial(); + } else { + update_ = value; + } + onChanged(); + } else { + updateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdate() { + if (updateBuilder_ == null) { + update_ = null; + onChanged(); + } else { + update_ = null; + updateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1.MasterAuth.Builder getUpdateBuilder() { + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set auth.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set auth.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..91bd3f4b77a0 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java @@ -0,0 +1,224 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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=2508 + * @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=2508 + * @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=2514 + * @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=2514 + * @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=2518 + * @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=2518 + * @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 new file mode 100644 index 000000000000..c7a6a16bcf3d --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java @@ -0,0 +1,1495 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + 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=2364 + * @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=2364 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2370 + * @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=2370 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * Deprecated. 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=2374 + * @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=2374 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MONITORING_SERVICE_FIELD_NUMBER = 4; + private volatile java.lang.Object monitoringService_; + /** + * + * + *
+   * Required. The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+   * 
+ * + * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The monitoringService. + */ + @java.lang.Override + public java.lang.String getMonitoringService() { + java.lang.Object ref = monitoringService_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + monitoringService_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+   * 
+ * + * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for monitoringService. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMonitoringServiceBytes() { + java.lang.Object ref = monitoringService_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + monitoringService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set monitoring.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set monitoring.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + 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); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.monitoringService_ = monitoringService_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getMonitoringService().isEmpty()) { + monitoringService_ = other.monitoringService_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + monitoringService_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 50: + { + name_ = input.readStringRequireUtf8(); + + 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 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=2364 + * @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=2364 + * @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=2364 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/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=2364 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + 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=2364 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2370 + * @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=2370 + * @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=2370 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2370 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + 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=2370 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * Deprecated. 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=2374 + * @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=2374 + * @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=2374 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. 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=2374 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * + * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See + * google/container/v1/cluster_service.proto;l=2374 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object monitoringService_ = ""; + /** + * + * + *
+     * Required. The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The monitoringService. + */ + public java.lang.String getMonitoringService() { + java.lang.Object ref = monitoringService_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + monitoringService_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for monitoringService. + */ + public com.google.protobuf.ByteString getMonitoringServiceBytes() { + java.lang.Object ref = monitoringService_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + monitoringService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The monitoringService to set. + * @return This builder for chaining. + */ + public Builder setMonitoringService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + monitoringService_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMonitoringService() { + + monitoringService_ = getDefaultInstance().getMonitoringService(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for monitoringService to set. + * @return This builder for chaining. + */ + public Builder setMonitoringServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + monitoringService_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set monitoring.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set monitoring.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set monitoring.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set monitoring.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set monitoring.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..bfedd72b6862 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java @@ -0,0 +1,198 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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=2364 + * @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=2364 + * @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=2370 + * @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=2370 + * @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=2374 + * @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=2374 + * @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 new file mode 100644 index 000000000000..90d6bd724395 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java @@ -0,0 +1,1552 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/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=3663 + * @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=3663 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3669 + * @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=3669 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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=3673 + * @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=3673 + * @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 networkPolicy_ != null; + } + /** + * + * + *
+   * 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 getNetworkPolicy(); + } + + public static final int NAME_FIELD_NUMBER = 6; + 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 (networkPolicy_ != null) { + 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 (networkPolicy_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + if (networkPolicyBuilder_ == null) { + networkPolicy_ = null; + } else { + networkPolicy_ = null; + networkPolicyBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.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); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + if (networkPolicyBuilder_ == null) { + result.networkPolicy_ = networkPolicy_; + } else { + result.networkPolicy_ = networkPolicyBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (other.hasNetworkPolicy()) { + mergeNetworkPolicy(other.getNetworkPolicy()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + input.readMessage(getNetworkPolicyFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 50: + { + name_ = input.readStringRequireUtf8(); + + 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 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=3663 + * @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=3663 + * @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=3663 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/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=3663 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + 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=3663 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3669 + * @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=3669 + * @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=3669 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3669 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + 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=3669 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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=3673 + * @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=3673 + * @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=3673 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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=3673 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * + * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See + * google/container/v1/cluster_service.proto;l=3673 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.container.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 networkPolicyBuilder_ != null || networkPolicy_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + networkPolicyBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + networkPolicyBuilder_.setMessage(builderForValue.build()); + } + + 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 (networkPolicy_ != null) { + networkPolicy_ = + com.google.container.v1.NetworkPolicy.newBuilder(networkPolicy_) + .mergeFrom(value) + .buildPartial(); + } else { + networkPolicy_ = value; + } + onChanged(); + } else { + networkPolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Configuration options for the NetworkPolicy feature.
+     * 
+ * + * + * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearNetworkPolicy() { + if (networkPolicyBuilder_ == null) { + networkPolicy_ = null; + onChanged(); + } else { + networkPolicy_ = null; + networkPolicyBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Configuration options for the NetworkPolicy feature.
+     * 
+ * + * + * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1.NetworkPolicy.Builder getNetworkPolicyBuilder() { + + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..537a3bb5540d --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java @@ -0,0 +1,198 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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=3663 + * @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=3663 + * @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=3669 + * @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=3669 + * @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=3673 + * @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=3673 + * @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 new file mode 100644 index 000000000000..75c4a78a5a9c --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java @@ -0,0 +1,1767 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/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=2299 + * @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=2299 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2305 + * @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=2305 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * Deprecated. 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=2309 + * @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=2309 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object nodePoolId_; + /** + * + * + *
+   * 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=2313 + * @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=2313 + * @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 autoscaling_ != null; + } + /** + * + * + *
+   * 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 getAutoscaling(); + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster, node pool) of the node pool to set
+   * autoscaler settings. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 6; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster, node pool) of the node pool to set
+   * autoscaler settings. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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 (autoscaling_ != null) { + 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 (autoscaling_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + nodePoolId_ = ""; + + if (autoscalingBuilder_ == null) { + autoscaling_ = null; + } else { + autoscaling_ = null; + autoscalingBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.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); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.nodePoolId_ = nodePoolId_; + if (autoscalingBuilder_ == null) { + result.autoscaling_ = autoscaling_; + } else { + result.autoscaling_ = autoscalingBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + onChanged(); + } + if (other.hasAutoscaling()) { + mergeAutoscaling(other.getAutoscaling()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + nodePoolId_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + input.readMessage(getAutoscalingFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 50: + { + name_ = input.readStringRequireUtf8(); + + 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 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=2299 + * @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=2299 + * @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=2299 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/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=2299 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + 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=2299 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2305 + * @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=2305 + * @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=2305 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2305 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + 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=2305 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * Deprecated. 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=2309 + * @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=2309 + * @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=2309 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. 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=2309 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See + * google/container/v1/cluster_service.proto;l=2309 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + * + * + *
+     * 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=2313 + * @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=2313 + * @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=2313 + * @param value The nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodePoolId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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=2313 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearNodePoolId() { + + nodePoolId_ = getDefaultInstance().getNodePoolId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See + * google/container/v1/cluster_service.proto;l=2313 + * @param value The bytes for nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodePoolId_ = value; + onChanged(); + return this; + } + + private com.google.container.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 autoscalingBuilder_ != null || autoscaling_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + autoscalingBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + autoscalingBuilder_.setMessage(builderForValue.build()); + } + + 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 (autoscaling_ != null) { + autoscaling_ = + com.google.container.v1.NodePoolAutoscaling.newBuilder(autoscaling_) + .mergeFrom(value) + .buildPartial(); + } else { + autoscaling_ = value; + } + onChanged(); + } else { + autoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Autoscaling configuration for the node pool.
+     * 
+ * + * + * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAutoscaling() { + if (autoscalingBuilder_ == null) { + autoscaling_ = null; + onChanged(); + } else { + autoscaling_ = null; + autoscalingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Autoscaling configuration for the node pool.
+     * 
+ * + * + * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1.NodePoolAutoscaling.Builder getAutoscalingBuilder() { + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool) of the node pool to set
+     * autoscaler settings. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool) of the node pool to set
+     * autoscaler settings. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..b26c2693ea74 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java @@ -0,0 +1,233 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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=2299 + * @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=2299 + * @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=2305 + * @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=2305 + * @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=2309 + * @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=2309 + * @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=2313 + * @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=2313 + * @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 new file mode 100644 index 000000000000..88a7a0b74baf --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java @@ -0,0 +1,1767 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/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=3231 + * @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=3231 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3237 + * @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=3237 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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=3241 + * @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=3241 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object nodePoolId_; + /** + * + * + *
+   * 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=3245 + * @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=3245 + * @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 management_ != null; + } + /** + * + * + *
+   * 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 getManagement(); + } + + public static final int NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * management properties. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 7; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * management properties. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 7; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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 (management_ != null) { + 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 (management_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + nodePoolId_ = ""; + + if (managementBuilder_ == null) { + management_ = null; + } else { + management_ = null; + managementBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.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); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.nodePoolId_ = nodePoolId_; + if (managementBuilder_ == null) { + result.management_ = management_; + } else { + result.management_ = managementBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + onChanged(); + } + if (other.hasManagement()) { + mergeManagement(other.getManagement()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + nodePoolId_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + input.readMessage(getManagementFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 58: + { + name_ = input.readStringRequireUtf8(); + + 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 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=3231 + * @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=3231 + * @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=3231 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/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=3231 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + 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=3231 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3237 + * @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=3237 + * @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=3237 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3237 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + 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=3237 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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=3241 + * @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=3241 + * @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=3241 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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=3241 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * + * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See + * google/container/v1/cluster_service.proto;l=3241 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + * + * + *
+     * 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=3245 + * @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=3245 + * @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=3245 + * @param value The nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodePoolId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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=3245 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearNodePoolId() { + + nodePoolId_ = getDefaultInstance().getNodePoolId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * + * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See + * google/container/v1/cluster_service.proto;l=3245 + * @param value The bytes for nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodePoolId_ = value; + onChanged(); + return this; + } + + private com.google.container.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 managementBuilder_ != null || management_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + managementBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + managementBuilder_.setMessage(builderForValue.build()); + } + + 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 (management_ != null) { + management_ = + com.google.container.v1.NodeManagement.newBuilder(management_) + .mergeFrom(value) + .buildPartial(); + } else { + management_ = value; + } + onChanged(); + } else { + managementBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. NodeManagement configuration for the node pool.
+     * 
+ * + * + * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearManagement() { + if (managementBuilder_ == null) { + management_ = null; + onChanged(); + } else { + management_ = null; + managementBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. NodeManagement configuration for the node pool.
+     * 
+ * + * + * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1.NodeManagement.Builder getManagementBuilder() { + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * management properties. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 7; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * management properties. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 7; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..4a731656daf9 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java @@ -0,0 +1,233 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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=3231 + * @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=3231 + * @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=3237 + * @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=3237 + * @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=3241 + * @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=3241 + * @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=3245 + * @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=3245 + * @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 new file mode 100644 index 000000000000..2e32ba3d3eb3 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java @@ -0,0 +1,1564 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + 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=3261 + * @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=3261 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3267 + * @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=3267 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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=3271 + * @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=3271 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object nodePoolId_; + /** + * + * + *
+   * 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=3275 + * @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=3275 + * @return The bytes for nodePoolId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_COUNT_FIELD_NUMBER = 5; + private int nodeCount_; + /** + * + * + *
+   * Required. The desired node count for the pool.
+   * 
+ * + * int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeCount. + */ + @java.lang.Override + public int getNodeCount() { + return nodeCount_; + } + + public static final int NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * size.
+   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 7; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * size.
+   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 7; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + 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); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.nodePoolId_ = nodePoolId_; + result.nodeCount_ = nodeCount_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + onChanged(); + } + if (other.getNodeCount() != 0) { + setNodeCount(other.getNodeCount()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + nodePoolId_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 40: + { + nodeCount_ = input.readInt32(); + + break; + } // case 40 + case 58: + { + name_ = input.readStringRequireUtf8(); + + 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 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=3261 + * @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=3261 + * @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=3261 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/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=3261 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + 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=3261 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3267 + * @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=3267 + * @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=3267 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3267 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + 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=3267 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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=3271 + * @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=3271 + * @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=3271 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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=3271 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * + * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See + * google/container/v1/cluster_service.proto;l=3271 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + * + * + *
+     * 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=3275 + * @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=3275 + * @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=3275 + * @param value The nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodePoolId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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=3275 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearNodePoolId() { + + nodePoolId_ = getDefaultInstance().getNodePoolId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * + * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See + * google/container/v1/cluster_service.proto;l=3275 + * @param value The bytes for nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodePoolId_ = value; + onChanged(); + return this; + } + + private int nodeCount_; + /** + * + * + *
+     * Required. The desired node count for the pool.
+     * 
+ * + * int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeCount. + */ + @java.lang.Override + public int getNodeCount() { + return nodeCount_; + } + /** + * + * + *
+     * Required. The desired node count for the pool.
+     * 
+ * + * int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The nodeCount to set. + * @return This builder for chaining. + */ + public Builder setNodeCount(int value) { + + nodeCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The desired node count for the pool.
+     * 
+ * + * int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearNodeCount() { + + nodeCount_ = 0; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * size.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 7; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * size.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 7; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * size.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 7; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * size.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 7; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * size.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 7; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..b25fba8137d9 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java @@ -0,0 +1,205 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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=3261 + * @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=3261 + * @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=3267 + * @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=3267 + * @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=3271 + * @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=3271 + * @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=3275 + * @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=3275 + * @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 new file mode 100644 index 000000000000..7f1d9ff1df55 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedInstanceConfig.java @@ -0,0 +1,645 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * Defines whether the instance has Secure Boot enabled.
+   * Secure Boot helps ensure that the system only runs authentic software by
+   * verifying the digital signature of all boot components, and halting the
+   * boot process if signature verification fails.
+   * 
+ * + * bool enable_secure_boot = 1; + * + * @return The enableSecureBoot. + */ + @java.lang.Override + public boolean getEnableSecureBoot() { + return enableSecureBoot_; + } + + public static final int ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER = 2; + private boolean enableIntegrityMonitoring_; + /** + * + * + *
+   * Defines whether the instance has integrity monitoring enabled.
+   * Enables monitoring and attestation of the boot integrity of the instance.
+   * The attestation is performed against the integrity policy baseline. This
+   * baseline is initially derived from the implicitly trusted boot image when
+   * the instance is created.
+   * 
+ * + * bool enable_integrity_monitoring = 2; + * + * @return The enableIntegrityMonitoring. + */ + @java.lang.Override + public boolean getEnableIntegrityMonitoring() { + return enableIntegrityMonitoring_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enableSecureBoot_ != false) { + output.writeBool(1, enableSecureBoot_); + } + if (enableIntegrityMonitoring_ != false) { + output.writeBool(2, enableIntegrityMonitoring_); + } + 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(); + 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); + result.enableSecureBoot_ = enableSecureBoot_; + result.enableIntegrityMonitoring_ = enableIntegrityMonitoring_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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(); + + break; + } // case 8 + case 16: + { + enableIntegrityMonitoring_ = input.readBool(); + + 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 boolean enableSecureBoot_; + /** + * + * + *
+     * Defines whether the instance has Secure Boot enabled.
+     * Secure Boot helps ensure that the system only runs authentic software by
+     * verifying the digital signature of all boot components, and halting the
+     * boot process if signature verification fails.
+     * 
+ * + * bool enable_secure_boot = 1; + * + * @return The enableSecureBoot. + */ + @java.lang.Override + public boolean getEnableSecureBoot() { + return enableSecureBoot_; + } + /** + * + * + *
+     * Defines whether the instance has Secure Boot enabled.
+     * Secure Boot helps ensure that the system only runs authentic software by
+     * verifying the digital signature of all boot components, and halting the
+     * boot process if signature verification fails.
+     * 
+ * + * bool enable_secure_boot = 1; + * + * @param value The enableSecureBoot to set. + * @return This builder for chaining. + */ + public Builder setEnableSecureBoot(boolean value) { + + enableSecureBoot_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Defines whether the instance has Secure Boot enabled.
+     * Secure Boot helps ensure that the system only runs authentic software by
+     * verifying the digital signature of all boot components, and halting the
+     * boot process if signature verification fails.
+     * 
+ * + * bool enable_secure_boot = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnableSecureBoot() { + + enableSecureBoot_ = false; + onChanged(); + return this; + } + + private boolean enableIntegrityMonitoring_; + /** + * + * + *
+     * Defines whether the instance has integrity monitoring enabled.
+     * Enables monitoring and attestation of the boot integrity of the instance.
+     * The attestation is performed against the integrity policy baseline. This
+     * baseline is initially derived from the implicitly trusted boot image when
+     * the instance is created.
+     * 
+ * + * bool enable_integrity_monitoring = 2; + * + * @return The enableIntegrityMonitoring. + */ + @java.lang.Override + public boolean getEnableIntegrityMonitoring() { + return enableIntegrityMonitoring_; + } + /** + * + * + *
+     * Defines whether the instance has integrity monitoring enabled.
+     * Enables monitoring and attestation of the boot integrity of the instance.
+     * The attestation is performed against the integrity policy baseline. This
+     * baseline is initially derived from the implicitly trusted boot image when
+     * the instance is created.
+     * 
+ * + * bool enable_integrity_monitoring = 2; + * + * @param value The enableIntegrityMonitoring to set. + * @return This builder for chaining. + */ + public Builder setEnableIntegrityMonitoring(boolean value) { + + enableIntegrityMonitoring_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Defines whether the instance has integrity monitoring enabled.
+     * Enables monitoring and attestation of the boot integrity of the instance.
+     * The attestation is performed against the integrity policy baseline. This
+     * baseline is initially derived from the implicitly trusted boot image when
+     * the instance is created.
+     * 
+ * + * bool enable_integrity_monitoring = 2; + * + * @return This builder for chaining. + */ + public Builder clearEnableIntegrityMonitoring() { + + enableIntegrityMonitoring_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..82f09724595e --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedInstanceConfigOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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 new file mode 100644 index 000000000000..50453a0a968e --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedNodes.java @@ -0,0 +1,524 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Configuration of Shielded Nodes feature.
+ * 
+ * + * Protobuf type {@code google.container.v1.ShieldedNodes} + */ +public final class ShieldedNodes extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.ShieldedNodes) + ShieldedNodesOrBuilder { + private static final long serialVersionUID = 0L; + // Use ShieldedNodes.newBuilder() to construct. + private ShieldedNodes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ShieldedNodes() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ShieldedNodes(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ShieldedNodes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ShieldedNodes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ShieldedNodes.class, + com.google.container.v1.ShieldedNodes.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether Shielded Nodes features are enabled on all nodes in this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + 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(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ShieldedNodes_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ShieldedNodes getDefaultInstanceForType() { + return com.google.container.v1.ShieldedNodes.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ShieldedNodes build() { + com.google.container.v1.ShieldedNodes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ShieldedNodes buildPartial() { + com.google.container.v1.ShieldedNodes result = + new com.google.container.v1.ShieldedNodes(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ShieldedNodes) { + return mergeFrom((com.google.container.v1.ShieldedNodes) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ShieldedNodes other) { + if (other == com.google.container.v1.ShieldedNodes.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 boolean enabled_; + /** + * + * + *
+     * Whether Shielded Nodes features are enabled on all nodes in this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether Shielded Nodes features are enabled on all nodes in this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether Shielded Nodes features are enabled on all nodes in this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.ShieldedNodes) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ShieldedNodes) + private static final com.google.container.v1.ShieldedNodes DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.ShieldedNodes(); + } + + public static com.google.container.v1.ShieldedNodes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ShieldedNodes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..d933e9bd835d --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedNodesOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface ShieldedNodesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ShieldedNodes) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether Shielded Nodes features are enabled on all nodes in this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/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 new file mode 100644 index 000000000000..a75179c74555 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StackType.java @@ -0,0 +1,176 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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 new file mode 100644 index 000000000000..e9384841f7fe --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java @@ -0,0 +1,1353 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + 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=3554 + * @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=3554 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3560 + * @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=3560 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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=3564 + * @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=3564 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster 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_; + /** + * + * + *
+   * 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(); + 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); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.name_ = name_; + result.rotateCredentials_ = rotateCredentials_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getRotateCredentials() != false) { + setRotateCredentials(other.getRotateCredentials()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 50: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 56: + { + rotateCredentials_ = input.readBool(); + + 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 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=3554 + * @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=3554 + * @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=3554 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/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=3554 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + 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=3554 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3560 + * @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=3560 + * @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=3560 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3560 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + 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=3560 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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=3564 + * @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=3564 + * @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=3564 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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=3564 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * + * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See + * google/container/v1/cluster_service.proto;l=3564 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster 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; + 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(); + 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; + onChanged(); + return this; + } + + private boolean rotateCredentials_; + /** + * + * + *
+     * Whether to rotate credentials during IP rotation.
+     * 
+ * + * bool rotate_credentials = 7; + * + * @return The rotateCredentials. + */ + @java.lang.Override + public boolean getRotateCredentials() { + return rotateCredentials_; + } + /** + * + * + *
+     * Whether to rotate credentials during IP rotation.
+     * 
+ * + * bool rotate_credentials = 7; + * + * @param value The rotateCredentials to set. + * @return This builder for chaining. + */ + public Builder setRotateCredentials(boolean value) { + + rotateCredentials_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether to rotate credentials during IP rotation.
+     * 
+ * + * bool rotate_credentials = 7; + * + * @return This builder for chaining. + */ + public Builder clearRotateCredentials() { + + rotateCredentials_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..d07d27c11c25 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java @@ -0,0 +1,170 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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=3554 + * @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=3554 + * @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=3560 + * @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=3560 + * @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=3564 + * @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=3564 + * @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 new file mode 100644 index 000000000000..e2b1c529603d --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java @@ -0,0 +1,1190 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * 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=3739 + * @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=3739 + * @return The code. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.container.v1.StatusCondition.Code getCode() { + @SuppressWarnings("deprecation") + com.google.container.v1.StatusCondition.Code result = + com.google.container.v1.StatusCondition.Code.valueOf(code_); + return result == null ? com.google.container.v1.StatusCondition.Code.UNRECOGNIZED : result; + } + + public static final int MESSAGE_FIELD_NUMBER = 2; + private volatile java.lang.Object message_; + /** + * + * + *
+   * Human-friendly representation of the condition
+   * 
+ * + * string message = 2; + * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + /** + * + * + *
+   * Human-friendly representation of the condition
+   * 
+ * + * string message = 2; + * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CANONICAL_CODE_FIELD_NUMBER = 3; + private int canonicalCode_; + /** + * + * + *
+   * Canonical code of the condition.
+   * 
+ * + * .google.rpc.Code canonical_code = 3; + * + * @return The enum numeric value on the wire for canonicalCode. + */ + @java.lang.Override + public int getCanonicalCodeValue() { + return canonicalCode_; + } + /** + * + * + *
+   * Canonical code of the condition.
+   * 
+ * + * .google.rpc.Code canonical_code = 3; + * + * @return The canonicalCode. + */ + @java.lang.Override + public com.google.rpc.Code getCanonicalCode() { + @SuppressWarnings("deprecation") + com.google.rpc.Code result = com.google.rpc.Code.valueOf(canonicalCode_); + return result == null ? com.google.rpc.Code.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (code_ != com.google.container.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(); + 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); + result.code_ = code_; + result.message_ = message_; + result.canonicalCode_ = canonicalCode_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + 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(); + + break; + } // case 8 + case 18: + { + message_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + canonicalCode_ = input.readEnum(); + + 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 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=3739 + * @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=3739 + * @param value The enum numeric value on the wire for code to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setCodeValue(int value) { + + code_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Machine-friendly representation of the condition
+     * Deprecated. Use canonical_code instead.
+     * 
+ * + * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; + * + * @deprecated google.container.v1.StatusCondition.code is deprecated. See + * google/container/v1/cluster_service.proto;l=3739 + * @return The code. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.container.v1.StatusCondition.Code getCode() { + @SuppressWarnings("deprecation") + com.google.container.v1.StatusCondition.Code result = + com.google.container.v1.StatusCondition.Code.valueOf(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=3739 + * @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(); + } + + 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=3739 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearCode() { + + code_ = 0; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + * + * + *
+     * Human-friendly representation of the condition
+     * 
+ * + * string message = 2; + * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Human-friendly representation of the condition
+     * 
+ * + * string message = 2; + * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Human-friendly representation of the condition
+     * 
+ * + * string message = 2; + * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Human-friendly representation of the condition
+     * 
+ * + * string message = 2; + * + * @return This builder for chaining. + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + * + * + *
+     * Human-friendly representation of the condition
+     * 
+ * + * string message = 2; + * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + + private int canonicalCode_ = 0; + /** + * + * + *
+     * Canonical code of the condition.
+     * 
+ * + * .google.rpc.Code canonical_code = 3; + * + * @return The enum numeric value on the wire for canonicalCode. + */ + @java.lang.Override + public int getCanonicalCodeValue() { + return canonicalCode_; + } + /** + * + * + *
+     * Canonical code of the condition.
+     * 
+ * + * .google.rpc.Code canonical_code = 3; + * + * @param value The enum numeric value on the wire for canonicalCode to set. + * @return This builder for chaining. + */ + public Builder setCanonicalCodeValue(int value) { + + canonicalCode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Canonical code of the condition.
+     * 
+ * + * .google.rpc.Code canonical_code = 3; + * + * @return The canonicalCode. + */ + @java.lang.Override + public com.google.rpc.Code getCanonicalCode() { + @SuppressWarnings("deprecation") + com.google.rpc.Code result = com.google.rpc.Code.valueOf(canonicalCode_); + return result == null ? com.google.rpc.Code.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Canonical code of the condition.
+     * 
+ * + * .google.rpc.Code canonical_code = 3; + * + * @param value The canonicalCode to set. + * @return This builder for chaining. + */ + public Builder setCanonicalCode(com.google.rpc.Code value) { + if (value == null) { + throw new NullPointerException(); + } + + canonicalCode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Canonical code of the condition.
+     * 
+ * + * .google.rpc.Code canonical_code = 3; + * + * @return This builder for chaining. + */ + public Builder clearCanonicalCode() { + + canonicalCode_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..e47d06ceb1f0 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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=3739 + * @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=3739 + * @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 new file mode 100644 index 000000000000..27c4fea4ca40 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindow.java @@ -0,0 +1,1367 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Represents 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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 optionsCase_ = 0; + private java.lang.Object options_; + + public enum OptionsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + MAINTENANCE_EXCLUSION_OPTIONS(3), + OPTIONS_NOT_SET(0); + private final int value; + + private OptionsCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OptionsCase valueOf(int value) { + return forNumber(value); + } + + public static OptionsCase forNumber(int value) { + switch (value) { + case 3: + return MAINTENANCE_EXCLUSION_OPTIONS; + case 0: + return OPTIONS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OptionsCase getOptionsCase() { + return OptionsCase.forNumber(optionsCase_); + } + + public static final int MAINTENANCE_EXCLUSION_OPTIONS_FIELD_NUMBER = 3; + /** + * + * + *
+   * MaintenanceExclusionOptions provides maintenance exclusion related
+   * options.
+   * 
+ * + * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * + * + * @return Whether the maintenanceExclusionOptions field is set. + */ + @java.lang.Override + public boolean hasMaintenanceExclusionOptions() { + return optionsCase_ == 3; + } + /** + * + * + *
+   * MaintenanceExclusionOptions provides maintenance exclusion related
+   * options.
+   * 
+ * + * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * + * + * @return The maintenanceExclusionOptions. + */ + @java.lang.Override + public com.google.container.v1.MaintenanceExclusionOptions getMaintenanceExclusionOptions() { + if (optionsCase_ == 3) { + return (com.google.container.v1.MaintenanceExclusionOptions) options_; + } + return com.google.container.v1.MaintenanceExclusionOptions.getDefaultInstance(); + } + /** + * + * + *
+   * MaintenanceExclusionOptions provides maintenance exclusion related
+   * options.
+   * 
+ * + * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * + */ + @java.lang.Override + public com.google.container.v1.MaintenanceExclusionOptionsOrBuilder + getMaintenanceExclusionOptionsOrBuilder() { + if (optionsCase_ == 3) { + return (com.google.container.v1.MaintenanceExclusionOptions) options_; + } + return com.google.container.v1.MaintenanceExclusionOptions.getDefaultInstance(); + } + + public static final int START_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+   * The time that the window first starts.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return startTime_ != null; + } + /** + * + * + *
+   * The time that the window first starts.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+   * The time that the window first starts.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return getStartTime(); + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+   * The time that the window ends. The end time should take place after the
+   * start time.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return endTime_ != null; + } + /** + * + * + *
+   * The time that the window ends. The end time should take place after the
+   * start time.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+   * The time that the window ends. The end time should take place after the
+   * start time.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return getEndTime(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (startTime_ != null) { + output.writeMessage(1, getStartTime()); + } + if (endTime_ != null) { + output.writeMessage(2, getEndTime()); + } + 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 (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); + } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (optionsCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.container.v1.MaintenanceExclusionOptions) options_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (maintenanceExclusionOptionsBuilder_ != null) { + maintenanceExclusionOptionsBuilder_.clear(); + } + if (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + 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 (optionsCase_ == 3) { + if (maintenanceExclusionOptionsBuilder_ == null) { + result.options_ = options_; + } else { + result.options_ = maintenanceExclusionOptionsBuilder_.build(); + } + } + if (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.build(); + } + result.optionsCase_ = optionsCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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); + + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + + 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 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 startTimeBuilder_ != null || startTime_ != null; + } + /** + * + * + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + onChanged(); + } else { + startTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (startTime_ != null) { + startTime_ = + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + } else { + startTime_ = value; + } + onChanged(); + } else { + startTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+     * The time that the window ends. The end time should take place after the
+     * start time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; + } + /** + * + * + *
+     * The time that the window ends. The end time should take place after the
+     * start time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The time that the window ends. The end time should take place after the
+     * start time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + onChanged(); + } else { + endTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The time that the window ends. The end time should take place after the
+     * start time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The time that the window ends. The end time should take place after the
+     * start time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (endTime_ != null) { + endTime_ = + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + } else { + endTime_ = value; + } + onChanged(); + } else { + endTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The time that the window ends. The end time should take place after the
+     * start time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time that the window ends. The end time should take place after the
+     * start time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time that the window ends. The end time should take place after the
+     * start time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+     * The time that the window ends. The end time should take place after the
+     * start time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..138f1df66a8c --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindowOrBuilder.java @@ -0,0 +1,142 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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(); + + public 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 new file mode 100644 index 000000000000..1cd823b658cb --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java @@ -0,0 +1,1546 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/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=2177 + * @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=2177 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2183 + * @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=2183 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * Deprecated. 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=2187 + * @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=2187 + * @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 update_ != null; + } + /** + * + * + *
+   * 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 getUpdate(); + } + + public static final int NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 5; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 5; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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 (update_ != null) { + 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 (update_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + if (updateBuilder_ == null) { + update_ = null; + } else { + update_ = null; + updateBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.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); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + if (updateBuilder_ == null) { + result.update_ = update_; + } else { + result.update_ = updateBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (other.hasUpdate()) { + mergeUpdate(other.getUpdate()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + input.readMessage(getUpdateFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + name_ = input.readStringRequireUtf8(); + + 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 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=2177 + * @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=2177 + * @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=2177 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/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=2177 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + 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=2177 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2183 + * @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=2183 + * @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=2183 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2183 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + 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=2183 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * Deprecated. 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=2187 + * @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=2187 + * @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=2187 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. 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=2187 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * + * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See + * google/container/v1/cluster_service.proto;l=2187 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.container.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 updateBuilder_ != null || update_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + updateBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + updateBuilder_.setMessage(builderForValue.build()); + } + + 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 (update_ != null) { + update_ = + com.google.container.v1.ClusterUpdate.newBuilder(update_) + .mergeFrom(value) + .buildPartial(); + } else { + update_ = value; + } + onChanged(); + } else { + updateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdate() { + if (updateBuilder_ == null) { + update_ = null; + onChanged(); + } else { + update_ = null; + updateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1.ClusterUpdate.Builder getUpdateBuilder() { + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..863b4131e00e --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java @@ -0,0 +1,195 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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=2177 + * @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=2177 + * @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=2183 + * @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=2183 + * @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=2187 + * @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=2187 + * @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 new file mode 100644 index 000000000000..f65425deffa7 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java @@ -0,0 +1,1487 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + 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=2456 + * @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=2456 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2462 + * @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=2462 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * Deprecated. 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=2466 + * @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=2466 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MASTER_VERSION_FIELD_NUMBER = 4; + private volatile java.lang.Object masterVersion_; + /** + * + * + *
+   * Required. The Kubernetes version to change the master to.
+   * Users may specify either explicit versions offered by Kubernetes Engine or
+   * version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
+   * 
+ * + * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The masterVersion. + */ + @java.lang.Override + public java.lang.String getMasterVersion() { + java.lang.Object ref = masterVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + masterVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The Kubernetes version to change the master to.
+   * Users may specify either explicit versions offered by Kubernetes Engine or
+   * version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
+   * 
+ * + * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for masterVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMasterVersionBytes() { + java.lang.Object ref = masterVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + masterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 7; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 7; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + 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); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.masterVersion_ = masterVersion_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getMasterVersion().isEmpty()) { + masterVersion_ = other.masterVersion_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + masterVersion_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 58: + { + name_ = input.readStringRequireUtf8(); + + 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 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=2456 + * @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=2456 + * @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=2456 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/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=2456 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + 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=2456 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2462 + * @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=2462 + * @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=2462 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2462 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + 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=2462 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * Deprecated. 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=2466 + * @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=2466 + * @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=2466 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. 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=2466 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * + * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See + * google/container/v1/cluster_service.proto;l=2466 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object masterVersion_ = ""; + /** + * + * + *
+     * Required. The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The masterVersion. + */ + public java.lang.String getMasterVersion() { + java.lang.Object ref = masterVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + masterVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for masterVersion. + */ + public com.google.protobuf.ByteString getMasterVersionBytes() { + java.lang.Object ref = masterVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + masterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The masterVersion to set. + * @return This builder for chaining. + */ + public Builder setMasterVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + masterVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMasterVersion() { + + masterVersion_ = getDefaultInstance().getMasterVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for masterVersion to set. + * @return This builder for chaining. + */ + public Builder setMasterVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + masterVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..0f131bc3dd4f --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java @@ -0,0 +1,196 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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=2456 + * @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=2456 + * @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=2462 + * @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=2462 + * @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=2466 + * @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=2466 + * @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 new file mode 100644 index 000000000000..8516ee89e82b --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java @@ -0,0 +1,5765 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateNodePoolRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/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=2202 + * @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=2202 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2208 + * @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=2208 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * Deprecated. 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=2212 + * @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=2212 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object nodePoolId_; + /** + * + * + *
+   * 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=2216 + * @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=2216 + * @return The bytes for nodePoolId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_VERSION_FIELD_NUMBER = 5; + private volatile java.lang.Object nodeVersion_; + /** + * + * + *
+   * Required. The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by Kubernetes Engine or
+   * version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeVersion. + */ + @java.lang.Override + public java.lang.String getNodeVersion() { + java.lang.Object ref = nodeVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by Kubernetes Engine or
+   * version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for nodeVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNodeVersionBytes() { + java.lang.Object ref = nodeVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IMAGE_TYPE_FIELD_NUMBER = 6; + private volatile java.lang.Object imageType_; + /** + * + * + *
+   * Required. The desired image type for the node pool.
+   * 
+ * + * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The imageType. + */ + @java.lang.Override + public java.lang.String getImageType() { + java.lang.Object ref = imageType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageType_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The desired image type for the node pool.
+   * 
+ * + * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for imageType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getImageTypeBytes() { + java.lang.Object ref = imageType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 8; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster, node pool) of the node pool to
+   * update. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 8; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster, node pool) of the node pool to
+   * update. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 8; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATIONS_FIELD_NUMBER = 13; + private com.google.protobuf.LazyStringList locations_; + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * node pool's nodes should be located. Changing the locations for a node pool
+   * will result in nodes being either created or removed from the node pool,
+   * depending on whether locations are being added or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return A list containing the locations. + */ + public com.google.protobuf.ProtocolStringList getLocationsList() { + return locations_; + } + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * node pool's nodes should be located. Changing the locations for a node pool
+   * will result in nodes being either created or removed from the node pool,
+   * depending on whether locations are being added or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return The count of locations. + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * node pool's nodes should be located. Changing the locations for a node pool
+   * will result in nodes being either created or removed from the node pool,
+   * depending on whether locations are being added or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * node pool's nodes should be located. Changing the locations for a node pool
+   * will result in nodes being either created or removed from the node pool,
+   * depending on whether locations are being added or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + public com.google.protobuf.ByteString getLocationsBytes(int index) { + return locations_.getByteString(index); + } + + public static final int WORKLOAD_METADATA_CONFIG_FIELD_NUMBER = 14; + private com.google.container.v1.WorkloadMetadataConfig workloadMetadataConfig_; + /** + * + * + *
+   * The desired workload metadata config for the node pool.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return Whether the workloadMetadataConfig field is set. + */ + @java.lang.Override + public boolean hasWorkloadMetadataConfig() { + return workloadMetadataConfig_ != null; + } + /** + * + * + *
+   * The desired workload metadata config for the node pool.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return The workloadMetadataConfig. + */ + @java.lang.Override + public com.google.container.v1.WorkloadMetadataConfig getWorkloadMetadataConfig() { + return workloadMetadataConfig_ == null + ? com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() + : workloadMetadataConfig_; + } + /** + * + * + *
+   * The desired workload metadata config for the node pool.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + @java.lang.Override + public com.google.container.v1.WorkloadMetadataConfigOrBuilder + getWorkloadMetadataConfigOrBuilder() { + return getWorkloadMetadataConfig(); + } + + public static final int UPGRADE_SETTINGS_FIELD_NUMBER = 15; + private com.google.container.v1.NodePool.UpgradeSettings upgradeSettings_; + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + * + * @return Whether the upgradeSettings field is set. + */ + @java.lang.Override + public boolean hasUpgradeSettings() { + return upgradeSettings_ != null; + } + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + * + * @return The upgradeSettings. + */ + @java.lang.Override + public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { + return upgradeSettings_ == null + ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() + : upgradeSettings_; + } + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + @java.lang.Override + public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { + return getUpgradeSettings(); + } + + 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 tags_ != null; + } + /** + * + * + *
+   * 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 getTags(); + } + + 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 taints_ != null; + } + /** + * + * + *
+   * 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 getTaints(); + } + + 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 labels_ != null; + } + /** + * + * + *
+   * 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 getLabels(); + } + + public static final int LINUX_NODE_CONFIG_FIELD_NUMBER = 19; + private com.google.container.v1.LinuxNodeConfig linuxNodeConfig_; + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + * + * @return Whether the linuxNodeConfig field is set. + */ + @java.lang.Override + public boolean hasLinuxNodeConfig() { + return linuxNodeConfig_ != null; + } + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + * + * @return The linuxNodeConfig. + */ + @java.lang.Override + public com.google.container.v1.LinuxNodeConfig getLinuxNodeConfig() { + return linuxNodeConfig_ == null + ? com.google.container.v1.LinuxNodeConfig.getDefaultInstance() + : linuxNodeConfig_; + } + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + */ + @java.lang.Override + public com.google.container.v1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder() { + return getLinuxNodeConfig(); + } + + public static final int KUBELET_CONFIG_FIELD_NUMBER = 20; + private com.google.container.v1.NodeKubeletConfig kubeletConfig_; + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + * + * @return Whether the kubeletConfig field is set. + */ + @java.lang.Override + public boolean hasKubeletConfig() { + return kubeletConfig_ != null; + } + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + * + * @return The kubeletConfig. + */ + @java.lang.Override + public com.google.container.v1.NodeKubeletConfig getKubeletConfig() { + return kubeletConfig_ == null + ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() + : kubeletConfig_; + } + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + */ + @java.lang.Override + public com.google.container.v1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder() { + return getKubeletConfig(); + } + + public static final int 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 nodeNetworkConfig_ != null; + } + /** + * + * + *
+   * 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 getNodeNetworkConfig(); + } + + public static final int GCFS_CONFIG_FIELD_NUMBER = 22; + private com.google.container.v1.GcfsConfig gcfsConfig_; + /** + * + * + *
+   * GCFS config.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + * + * @return Whether the gcfsConfig field is set. + */ + @java.lang.Override + public boolean hasGcfsConfig() { + return gcfsConfig_ != null; + } + /** + * + * + *
+   * GCFS config.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + * + * @return The gcfsConfig. + */ + @java.lang.Override + public com.google.container.v1.GcfsConfig getGcfsConfig() { + return gcfsConfig_ == null + ? com.google.container.v1.GcfsConfig.getDefaultInstance() + : gcfsConfig_; + } + /** + * + * + *
+   * GCFS config.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + */ + @java.lang.Override + public com.google.container.v1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { + return getGcfsConfig(); + } + + public static final int 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 confidentialNodes_ != null; + } + /** + * + * + *
+   * 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 getConfidentialNodes(); + } + + public static final int GVNIC_FIELD_NUMBER = 29; + private com.google.container.v1.VirtualNIC gvnic_; + /** + * + * + *
+   * Enable or disable gvnic on the node pool.
+   * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + * + * @return Whether the gvnic field is set. + */ + @java.lang.Override + public boolean hasGvnic() { + return gvnic_ != null; + } + /** + * + * + *
+   * Enable or disable gvnic on the node pool.
+   * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + * + * @return The gvnic. + */ + @java.lang.Override + public com.google.container.v1.VirtualNIC getGvnic() { + return gvnic_ == null ? com.google.container.v1.VirtualNIC.getDefaultInstance() : gvnic_; + } + /** + * + * + *
+   * Enable or disable gvnic on the node pool.
+   * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + @java.lang.Override + public com.google.container.v1.VirtualNICOrBuilder getGvnicOrBuilder() { + return getGvnic(); + } + + 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 loggingConfig_ != null; + } + /** + * + * + *
+   * 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 getLoggingConfig(); + } + + 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 resourceLabels_ != null; + } + /** + * + * + *
+   * 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 getResourceLabels(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 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 (workloadMetadataConfig_ != null) { + output.writeMessage(14, getWorkloadMetadataConfig()); + } + if (upgradeSettings_ != null) { + output.writeMessage(15, getUpgradeSettings()); + } + if (tags_ != null) { + output.writeMessage(16, getTags()); + } + if (taints_ != null) { + output.writeMessage(17, getTaints()); + } + if (labels_ != null) { + output.writeMessage(18, getLabels()); + } + if (linuxNodeConfig_ != null) { + output.writeMessage(19, getLinuxNodeConfig()); + } + if (kubeletConfig_ != null) { + output.writeMessage(20, getKubeletConfig()); + } + if (nodeNetworkConfig_ != null) { + output.writeMessage(21, getNodeNetworkConfig()); + } + if (gcfsConfig_ != null) { + output.writeMessage(22, getGcfsConfig()); + } + if (confidentialNodes_ != null) { + output.writeMessage(23, getConfidentialNodes()); + } + if (gvnic_ != null) { + output.writeMessage(29, getGvnic()); + } + if (loggingConfig_ != null) { + output.writeMessage(32, getLoggingConfig()); + } + if (resourceLabels_ != null) { + output.writeMessage(33, getResourceLabels()); + } + getUnknownFields().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 (workloadMetadataConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(14, getWorkloadMetadataConfig()); + } + if (upgradeSettings_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getUpgradeSettings()); + } + if (tags_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getTags()); + } + if (taints_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getTaints()); + } + if (labels_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getLabels()); + } + if (linuxNodeConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getLinuxNodeConfig()); + } + if (kubeletConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getKubeletConfig()); + } + if (nodeNetworkConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getNodeNetworkConfig()); + } + if (gcfsConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getGcfsConfig()); + } + if (confidentialNodes_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getConfidentialNodes()); + } + if (gvnic_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getGvnic()); + } + if (loggingConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(32, getLoggingConfig()); + } + if (resourceLabels_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(33, getResourceLabels()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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 (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 (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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(); + } + 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(); + } + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + nodePoolId_ = ""; + + nodeVersion_ = ""; + + imageType_ = ""; + + name_ = ""; + + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfig_ = null; + } else { + workloadMetadataConfig_ = null; + workloadMetadataConfigBuilder_ = null; + } + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = null; + } else { + upgradeSettings_ = null; + upgradeSettingsBuilder_ = null; + } + if (tagsBuilder_ == null) { + tags_ = null; + } else { + tags_ = null; + tagsBuilder_ = null; + } + if (taintsBuilder_ == null) { + taints_ = null; + } else { + taints_ = null; + taintsBuilder_ = null; + } + if (labelsBuilder_ == null) { + labels_ = null; + } else { + labels_ = null; + labelsBuilder_ = null; + } + if (linuxNodeConfigBuilder_ == null) { + linuxNodeConfig_ = null; + } else { + linuxNodeConfig_ = null; + linuxNodeConfigBuilder_ = null; + } + if (kubeletConfigBuilder_ == null) { + kubeletConfig_ = null; + } else { + kubeletConfig_ = null; + kubeletConfigBuilder_ = null; + } + if (nodeNetworkConfigBuilder_ == null) { + nodeNetworkConfig_ = null; + } else { + nodeNetworkConfig_ = null; + nodeNetworkConfigBuilder_ = null; + } + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = null; + } else { + gcfsConfig_ = null; + gcfsConfigBuilder_ = null; + } + if (confidentialNodesBuilder_ == null) { + confidentialNodes_ = null; + } else { + confidentialNodes_ = null; + confidentialNodesBuilder_ = null; + } + if (gvnicBuilder_ == null) { + gvnic_ = null; + } else { + gvnic_ = null; + gvnicBuilder_ = null; + } + if (loggingConfigBuilder_ == null) { + loggingConfig_ = null; + } else { + loggingConfig_ = null; + loggingConfigBuilder_ = null; + } + if (resourceLabelsBuilder_ == null) { + resourceLabels_ = null; + } else { + resourceLabels_ = null; + resourceLabelsBuilder_ = 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); + int from_bitField0_ = bitField0_; + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.nodePoolId_ = nodePoolId_; + result.nodeVersion_ = nodeVersion_; + result.imageType_ = imageType_; + result.name_ = name_; + if (((bitField0_ & 0x00000001) != 0)) { + locations_ = locations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.locations_ = locations_; + if (workloadMetadataConfigBuilder_ == null) { + result.workloadMetadataConfig_ = workloadMetadataConfig_; + } else { + result.workloadMetadataConfig_ = workloadMetadataConfigBuilder_.build(); + } + if (upgradeSettingsBuilder_ == null) { + result.upgradeSettings_ = upgradeSettings_; + } else { + result.upgradeSettings_ = upgradeSettingsBuilder_.build(); + } + if (tagsBuilder_ == null) { + result.tags_ = tags_; + } else { + result.tags_ = tagsBuilder_.build(); + } + if (taintsBuilder_ == null) { + result.taints_ = taints_; + } else { + result.taints_ = taintsBuilder_.build(); + } + if (labelsBuilder_ == null) { + result.labels_ = labels_; + } else { + result.labels_ = labelsBuilder_.build(); + } + if (linuxNodeConfigBuilder_ == null) { + result.linuxNodeConfig_ = linuxNodeConfig_; + } else { + result.linuxNodeConfig_ = linuxNodeConfigBuilder_.build(); + } + if (kubeletConfigBuilder_ == null) { + result.kubeletConfig_ = kubeletConfig_; + } else { + result.kubeletConfig_ = kubeletConfigBuilder_.build(); + } + if (nodeNetworkConfigBuilder_ == null) { + result.nodeNetworkConfig_ = nodeNetworkConfig_; + } else { + result.nodeNetworkConfig_ = nodeNetworkConfigBuilder_.build(); + } + if (gcfsConfigBuilder_ == null) { + result.gcfsConfig_ = gcfsConfig_; + } else { + result.gcfsConfig_ = gcfsConfigBuilder_.build(); + } + if (confidentialNodesBuilder_ == null) { + result.confidentialNodes_ = confidentialNodes_; + } else { + result.confidentialNodes_ = confidentialNodesBuilder_.build(); + } + if (gvnicBuilder_ == null) { + result.gvnic_ = gvnic_; + } else { + result.gvnic_ = gvnicBuilder_.build(); + } + if (loggingConfigBuilder_ == null) { + result.loggingConfig_ = loggingConfig_; + } else { + result.loggingConfig_ = loggingConfigBuilder_.build(); + } + if (resourceLabelsBuilder_ == null) { + result.resourceLabels_ = resourceLabels_; + } else { + result.resourceLabels_ = resourceLabelsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + onChanged(); + } + if (!other.getNodeVersion().isEmpty()) { + nodeVersion_ = other.nodeVersion_; + onChanged(); + } + if (!other.getImageType().isEmpty()) { + imageType_ = other.imageType_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + if (other.hasWorkloadMetadataConfig()) { + mergeWorkloadMetadataConfig(other.getWorkloadMetadataConfig()); + } + if (other.hasUpgradeSettings()) { + mergeUpgradeSettings(other.getUpgradeSettings()); + } + 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.hasLoggingConfig()) { + mergeLoggingConfig(other.getLoggingConfig()); + } + if (other.hasResourceLabels()) { + mergeResourceLabels(other.getResourceLabels()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + nodePoolId_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + nodeVersion_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + imageType_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 66: + { + name_ = input.readStringRequireUtf8(); + + 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); + + break; + } // case 114 + case 122: + { + input.readMessage(getUpgradeSettingsFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 122 + case 130: + { + input.readMessage(getTagsFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 130 + case 138: + { + input.readMessage(getTaintsFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 138 + case 146: + { + input.readMessage(getLabelsFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 146 + case 154: + { + input.readMessage(getLinuxNodeConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 154 + case 162: + { + input.readMessage(getKubeletConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 162 + case 170: + { + input.readMessage( + getNodeNetworkConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 170 + case 178: + { + input.readMessage(getGcfsConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 178 + case 186: + { + input.readMessage( + getConfidentialNodesFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 186 + case 234: + { + input.readMessage(getGvnicFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 234 + case 258: + { + input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 258 + case 266: + { + input.readMessage(getResourceLabelsFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 266 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // 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=2202 + * @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=2202 + * @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=2202 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/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=2202 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + 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=2202 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2208 + * @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=2208 + * @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=2208 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2208 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + 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=2208 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * Deprecated. 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=2212 + * @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=2212 + * @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=2212 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. 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=2212 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * + * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See + * google/container/v1/cluster_service.proto;l=2212 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + * + * + *
+     * 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=2216 + * @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=2216 + * @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=2216 + * @param value The nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodePoolId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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=2216 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearNodePoolId() { + + nodePoolId_ = getDefaultInstance().getNodePoolId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * + * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See + * google/container/v1/cluster_service.proto;l=2216 + * @param value The bytes for nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodePoolId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodeVersion_ = ""; + /** + * + * + *
+     * Required. The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeVersion. + */ + public java.lang.String getNodeVersion() { + java.lang.Object ref = nodeVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for nodeVersion. + */ + public com.google.protobuf.ByteString getNodeVersionBytes() { + java.lang.Object ref = nodeVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The nodeVersion to set. + * @return This builder for chaining. + */ + public Builder setNodeVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearNodeVersion() { + + nodeVersion_ = getDefaultInstance().getNodeVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for nodeVersion to set. + * @return This builder for chaining. + */ + public Builder setNodeVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object imageType_ = ""; + /** + * + * + *
+     * Required. The desired image type for the node pool.
+     * 
+ * + * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The imageType. + */ + public java.lang.String getImageType() { + java.lang.Object ref = imageType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The desired image type for the node pool.
+     * 
+ * + * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for imageType. + */ + public com.google.protobuf.ByteString getImageTypeBytes() { + java.lang.Object ref = imageType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The desired image type for the node pool.
+     * 
+ * + * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The imageType to set. + * @return This builder for chaining. + */ + public Builder setImageType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + imageType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The desired image type for the node pool.
+     * 
+ * + * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearImageType() { + + imageType_ = getDefaultInstance().getImageType(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The desired image type for the node pool.
+     * 
+ * + * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for imageType to set. + * @return This builder for chaining. + */ + public Builder setImageTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + imageType_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster, node pool) of the node pool to
+     * update. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 8; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool) of the node pool to
+     * update. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 8; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool) of the node pool to
+     * update. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 8; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool) of the node pool to
+     * update. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 8; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool) of the node pool to
+     * update. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 8; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList locations_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureLocationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + locations_ = new com.google.protobuf.LazyStringArrayList(locations_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * node pool's nodes should be located. Changing the locations for a node pool
+     * will result in nodes being either created or removed from the node pool,
+     * depending on whether locations are being added or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @return A list containing the locations. + */ + public com.google.protobuf.ProtocolStringList getLocationsList() { + return locations_.getUnmodifiableView(); + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * node pool's nodes should be located. Changing the locations for a node pool
+     * will result in nodes being either created or removed from the node pool,
+     * depending on whether locations are being added or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @return The count of locations. + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * node pool's nodes should be located. Changing the locations for a node pool
+     * will result in nodes being either created or removed from the node pool,
+     * depending on whether locations are being added or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * node pool's nodes should be located. Changing the locations for a node pool
+     * will result in nodes being either created or removed from the node pool,
+     * depending on whether locations are being added or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + public com.google.protobuf.ByteString getLocationsBytes(int index) { + return locations_.getByteString(index); + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * node pool's nodes should be located. Changing the locations for a node pool
+     * will result in nodes being either created or removed from the node pool,
+     * depending on whether locations are being added or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param index The index to set the value at. + * @param value The locations to set. + * @return This builder for chaining. + */ + public Builder setLocations(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * node pool's nodes should be located. Changing the locations for a node pool
+     * will result in nodes being either created or removed from the node pool,
+     * depending on whether locations are being added or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param value The locations to add. + * @return This builder for chaining. + */ + public Builder addLocations(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * node pool's nodes should be located. Changing the locations for a node pool
+     * will result in nodes being either created or removed from the node pool,
+     * depending on whether locations are being added or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param values The locations to add. + * @return This builder for chaining. + */ + public Builder addAllLocations(java.lang.Iterable values) { + ensureLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * node pool's nodes should be located. Changing the locations for a node pool
+     * will result in nodes being either created or removed from the node pool,
+     * depending on whether locations are being added or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @return This builder for chaining. + */ + public Builder clearLocations() { + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * node pool's nodes should be located. Changing the locations for a node pool
+     * will result in nodes being either created or removed from the node pool,
+     * depending on whether locations are being added or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param value The bytes of the locations to add. + * @return This builder for chaining. + */ + public Builder addLocationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + return this; + } + + private com.google.container.v1.WorkloadMetadataConfig workloadMetadataConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadMetadataConfig, + com.google.container.v1.WorkloadMetadataConfig.Builder, + com.google.container.v1.WorkloadMetadataConfigOrBuilder> + workloadMetadataConfigBuilder_; + /** + * + * + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return Whether the workloadMetadataConfig field is set. + */ + public boolean hasWorkloadMetadataConfig() { + return workloadMetadataConfigBuilder_ != null || workloadMetadataConfig_ != null; + } + /** + * + * + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return The workloadMetadataConfig. + */ + public com.google.container.v1.WorkloadMetadataConfig getWorkloadMetadataConfig() { + if (workloadMetadataConfigBuilder_ == null) { + return workloadMetadataConfig_ == null + ? com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() + : workloadMetadataConfig_; + } else { + return workloadMetadataConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder setWorkloadMetadataConfig(com.google.container.v1.WorkloadMetadataConfig value) { + if (workloadMetadataConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workloadMetadataConfig_ = value; + onChanged(); + } else { + workloadMetadataConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder setWorkloadMetadataConfig( + com.google.container.v1.WorkloadMetadataConfig.Builder builderForValue) { + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfig_ = builderForValue.build(); + onChanged(); + } else { + workloadMetadataConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder mergeWorkloadMetadataConfig( + com.google.container.v1.WorkloadMetadataConfig value) { + if (workloadMetadataConfigBuilder_ == null) { + if (workloadMetadataConfig_ != null) { + workloadMetadataConfig_ = + com.google.container.v1.WorkloadMetadataConfig.newBuilder(workloadMetadataConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + workloadMetadataConfig_ = value; + } + onChanged(); + } else { + workloadMetadataConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder clearWorkloadMetadataConfig() { + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfig_ = null; + onChanged(); + } else { + workloadMetadataConfig_ = null; + workloadMetadataConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public com.google.container.v1.WorkloadMetadataConfig.Builder + getWorkloadMetadataConfigBuilder() { + + onChanged(); + return getWorkloadMetadataConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public com.google.container.v1.WorkloadMetadataConfigOrBuilder + getWorkloadMetadataConfigOrBuilder() { + if (workloadMetadataConfigBuilder_ != null) { + return workloadMetadataConfigBuilder_.getMessageOrBuilder(); + } else { + return workloadMetadataConfig_ == null + ? com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() + : workloadMetadataConfig_; + } + } + /** + * + * + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadMetadataConfig, + com.google.container.v1.WorkloadMetadataConfig.Builder, + com.google.container.v1.WorkloadMetadataConfigOrBuilder> + getWorkloadMetadataConfigFieldBuilder() { + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadMetadataConfig, + com.google.container.v1.WorkloadMetadataConfig.Builder, + com.google.container.v1.WorkloadMetadataConfigOrBuilder>( + getWorkloadMetadataConfig(), getParentForChildren(), isClean()); + workloadMetadataConfig_ = null; + } + return workloadMetadataConfigBuilder_; + } + + private com.google.container.v1.NodePool.UpgradeSettings upgradeSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.UpgradeSettings, + com.google.container.v1.NodePool.UpgradeSettings.Builder, + com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> + upgradeSettingsBuilder_; + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + * + * @return Whether the upgradeSettings field is set. + */ + public boolean hasUpgradeSettings() { + return upgradeSettingsBuilder_ != null || upgradeSettings_ != null; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + * + * @return The upgradeSettings. + */ + public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { + if (upgradeSettingsBuilder_ == null) { + return upgradeSettings_ == null + ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() + : upgradeSettings_; + } else { + return upgradeSettingsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + public Builder setUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { + if (upgradeSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + upgradeSettings_ = value; + onChanged(); + } else { + upgradeSettingsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + public Builder setUpgradeSettings( + com.google.container.v1.NodePool.UpgradeSettings.Builder builderForValue) { + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = builderForValue.build(); + onChanged(); + } else { + upgradeSettingsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + public Builder mergeUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { + if (upgradeSettingsBuilder_ == null) { + if (upgradeSettings_ != null) { + upgradeSettings_ = + com.google.container.v1.NodePool.UpgradeSettings.newBuilder(upgradeSettings_) + .mergeFrom(value) + .buildPartial(); + } else { + upgradeSettings_ = value; + } + onChanged(); + } else { + upgradeSettingsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + public Builder clearUpgradeSettings() { + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = null; + onChanged(); + } else { + upgradeSettings_ = null; + upgradeSettingsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + public com.google.container.v1.NodePool.UpgradeSettings.Builder getUpgradeSettingsBuilder() { + + onChanged(); + return getUpgradeSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { + if (upgradeSettingsBuilder_ != null) { + return upgradeSettingsBuilder_.getMessageOrBuilder(); + } else { + return upgradeSettings_ == null + ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() + : upgradeSettings_; + } + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.UpgradeSettings, + com.google.container.v1.NodePool.UpgradeSettings.Builder, + com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> + getUpgradeSettingsFieldBuilder() { + if (upgradeSettingsBuilder_ == null) { + upgradeSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.UpgradeSettings, + com.google.container.v1.NodePool.UpgradeSettings.Builder, + com.google.container.v1.NodePool.UpgradeSettingsOrBuilder>( + getUpgradeSettings(), getParentForChildren(), isClean()); + upgradeSettings_ = null; + } + return upgradeSettingsBuilder_; + } + + 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 tagsBuilder_ != null || tags_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + tagsBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + tagsBuilder_.setMessage(builderForValue.build()); + } + + 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 (tags_ != null) { + tags_ = + com.google.container.v1.NetworkTags.newBuilder(tags_).mergeFrom(value).buildPartial(); + } else { + tags_ = value; + } + onChanged(); + } else { + tagsBuilder_.mergeFrom(value); + } + + 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() { + if (tagsBuilder_ == null) { + tags_ = null; + onChanged(); + } else { + tags_ = null; + tagsBuilder_ = null; + } + + 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() { + + 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 taintsBuilder_ != null || taints_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + taintsBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + taintsBuilder_.setMessage(builderForValue.build()); + } + + 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 (taints_ != null) { + taints_ = + com.google.container.v1.NodeTaints.newBuilder(taints_) + .mergeFrom(value) + .buildPartial(); + } else { + taints_ = value; + } + onChanged(); + } else { + taintsBuilder_.mergeFrom(value); + } + + 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() { + if (taintsBuilder_ == null) { + taints_ = null; + onChanged(); + } else { + taints_ = null; + taintsBuilder_ = null; + } + + 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() { + + 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 labelsBuilder_ != null || labels_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + labelsBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + labelsBuilder_.setMessage(builderForValue.build()); + } + + 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 (labels_ != null) { + labels_ = + com.google.container.v1.NodeLabels.newBuilder(labels_) + .mergeFrom(value) + .buildPartial(); + } else { + labels_ = value; + } + onChanged(); + } else { + labelsBuilder_.mergeFrom(value); + } + + 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() { + if (labelsBuilder_ == null) { + labels_ = null; + onChanged(); + } else { + labels_ = null; + labelsBuilder_ = null; + } + + 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() { + + 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 linuxNodeConfigBuilder_ != null || linuxNodeConfig_ != null; + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + * + * @return The linuxNodeConfig. + */ + public com.google.container.v1.LinuxNodeConfig getLinuxNodeConfig() { + if (linuxNodeConfigBuilder_ == null) { + return linuxNodeConfig_ == null + ? com.google.container.v1.LinuxNodeConfig.getDefaultInstance() + : linuxNodeConfig_; + } else { + return linuxNodeConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + */ + public Builder setLinuxNodeConfig(com.google.container.v1.LinuxNodeConfig value) { + if (linuxNodeConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + linuxNodeConfig_ = value; + onChanged(); + } else { + linuxNodeConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + */ + public Builder setLinuxNodeConfig( + com.google.container.v1.LinuxNodeConfig.Builder builderForValue) { + if (linuxNodeConfigBuilder_ == null) { + linuxNodeConfig_ = builderForValue.build(); + onChanged(); + } else { + linuxNodeConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + */ + public Builder mergeLinuxNodeConfig(com.google.container.v1.LinuxNodeConfig value) { + if (linuxNodeConfigBuilder_ == null) { + if (linuxNodeConfig_ != null) { + linuxNodeConfig_ = + com.google.container.v1.LinuxNodeConfig.newBuilder(linuxNodeConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + linuxNodeConfig_ = value; + } + onChanged(); + } else { + linuxNodeConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + */ + public Builder clearLinuxNodeConfig() { + if (linuxNodeConfigBuilder_ == null) { + linuxNodeConfig_ = null; + onChanged(); + } else { + linuxNodeConfig_ = null; + linuxNodeConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + */ + public com.google.container.v1.LinuxNodeConfig.Builder getLinuxNodeConfigBuilder() { + + onChanged(); + return getLinuxNodeConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + */ + public com.google.container.v1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder() { + if (linuxNodeConfigBuilder_ != null) { + return linuxNodeConfigBuilder_.getMessageOrBuilder(); + } else { + return linuxNodeConfig_ == null + ? com.google.container.v1.LinuxNodeConfig.getDefaultInstance() + : linuxNodeConfig_; + } + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LinuxNodeConfig, + com.google.container.v1.LinuxNodeConfig.Builder, + com.google.container.v1.LinuxNodeConfigOrBuilder> + getLinuxNodeConfigFieldBuilder() { + if (linuxNodeConfigBuilder_ == null) { + linuxNodeConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LinuxNodeConfig, + com.google.container.v1.LinuxNodeConfig.Builder, + com.google.container.v1.LinuxNodeConfigOrBuilder>( + getLinuxNodeConfig(), getParentForChildren(), isClean()); + linuxNodeConfig_ = null; + } + return linuxNodeConfigBuilder_; + } + + private com.google.container.v1.NodeKubeletConfig kubeletConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeKubeletConfig, + com.google.container.v1.NodeKubeletConfig.Builder, + com.google.container.v1.NodeKubeletConfigOrBuilder> + kubeletConfigBuilder_; + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + * + * @return Whether the kubeletConfig field is set. + */ + public boolean hasKubeletConfig() { + return kubeletConfigBuilder_ != null || kubeletConfig_ != null; + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + * + * @return The kubeletConfig. + */ + public com.google.container.v1.NodeKubeletConfig getKubeletConfig() { + if (kubeletConfigBuilder_ == null) { + return kubeletConfig_ == null + ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() + : kubeletConfig_; + } else { + return kubeletConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + */ + public Builder setKubeletConfig(com.google.container.v1.NodeKubeletConfig value) { + if (kubeletConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kubeletConfig_ = value; + onChanged(); + } else { + kubeletConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + */ + public Builder setKubeletConfig( + com.google.container.v1.NodeKubeletConfig.Builder builderForValue) { + if (kubeletConfigBuilder_ == null) { + kubeletConfig_ = builderForValue.build(); + onChanged(); + } else { + kubeletConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + */ + public Builder mergeKubeletConfig(com.google.container.v1.NodeKubeletConfig value) { + if (kubeletConfigBuilder_ == null) { + if (kubeletConfig_ != null) { + kubeletConfig_ = + com.google.container.v1.NodeKubeletConfig.newBuilder(kubeletConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + kubeletConfig_ = value; + } + onChanged(); + } else { + kubeletConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + */ + public Builder clearKubeletConfig() { + if (kubeletConfigBuilder_ == null) { + kubeletConfig_ = null; + onChanged(); + } else { + kubeletConfig_ = null; + kubeletConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + */ + public com.google.container.v1.NodeKubeletConfig.Builder getKubeletConfigBuilder() { + + onChanged(); + return getKubeletConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + */ + public com.google.container.v1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder() { + if (kubeletConfigBuilder_ != null) { + return kubeletConfigBuilder_.getMessageOrBuilder(); + } else { + return kubeletConfig_ == null + ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() + : kubeletConfig_; + } + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeKubeletConfig, + com.google.container.v1.NodeKubeletConfig.Builder, + com.google.container.v1.NodeKubeletConfigOrBuilder> + getKubeletConfigFieldBuilder() { + if (kubeletConfigBuilder_ == null) { + kubeletConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeKubeletConfig, + com.google.container.v1.NodeKubeletConfig.Builder, + com.google.container.v1.NodeKubeletConfigOrBuilder>( + getKubeletConfig(), getParentForChildren(), isClean()); + kubeletConfig_ = null; + } + return kubeletConfigBuilder_; + } + + private com.google.container.v1.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 nodeNetworkConfigBuilder_ != null || nodeNetworkConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + nodeNetworkConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + nodeNetworkConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (nodeNetworkConfig_ != null) { + nodeNetworkConfig_ = + com.google.container.v1.NodeNetworkConfig.newBuilder(nodeNetworkConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + nodeNetworkConfig_ = value; + } + onChanged(); + } else { + nodeNetworkConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Node network config.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig node_network_config = 21; + */ + public Builder clearNodeNetworkConfig() { + if (nodeNetworkConfigBuilder_ == null) { + nodeNetworkConfig_ = null; + onChanged(); + } else { + nodeNetworkConfig_ = null; + nodeNetworkConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Node network config.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig node_network_config = 21; + */ + public com.google.container.v1.NodeNetworkConfig.Builder getNodeNetworkConfigBuilder() { + + 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 gcfsConfigBuilder_ != null || gcfsConfig_ != null; + } + /** + * + * + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + * + * @return The gcfsConfig. + */ + public com.google.container.v1.GcfsConfig getGcfsConfig() { + if (gcfsConfigBuilder_ == null) { + return gcfsConfig_ == null + ? com.google.container.v1.GcfsConfig.getDefaultInstance() + : gcfsConfig_; + } else { + return gcfsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + */ + public Builder setGcfsConfig(com.google.container.v1.GcfsConfig value) { + if (gcfsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcfsConfig_ = value; + onChanged(); + } else { + gcfsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + */ + public Builder setGcfsConfig(com.google.container.v1.GcfsConfig.Builder builderForValue) { + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = builderForValue.build(); + onChanged(); + } else { + gcfsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + */ + public Builder mergeGcfsConfig(com.google.container.v1.GcfsConfig value) { + if (gcfsConfigBuilder_ == null) { + if (gcfsConfig_ != null) { + gcfsConfig_ = + com.google.container.v1.GcfsConfig.newBuilder(gcfsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + gcfsConfig_ = value; + } + onChanged(); + } else { + gcfsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + */ + public Builder clearGcfsConfig() { + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = null; + onChanged(); + } else { + gcfsConfig_ = null; + gcfsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + */ + public com.google.container.v1.GcfsConfig.Builder getGcfsConfigBuilder() { + + onChanged(); + return getGcfsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + */ + public com.google.container.v1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { + if (gcfsConfigBuilder_ != null) { + return gcfsConfigBuilder_.getMessageOrBuilder(); + } else { + return gcfsConfig_ == null + ? com.google.container.v1.GcfsConfig.getDefaultInstance() + : gcfsConfig_; + } + } + /** + * + * + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcfsConfig, + com.google.container.v1.GcfsConfig.Builder, + com.google.container.v1.GcfsConfigOrBuilder> + getGcfsConfigFieldBuilder() { + if (gcfsConfigBuilder_ == null) { + gcfsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcfsConfig, + com.google.container.v1.GcfsConfig.Builder, + com.google.container.v1.GcfsConfigOrBuilder>( + getGcfsConfig(), getParentForChildren(), isClean()); + gcfsConfig_ = null; + } + return gcfsConfigBuilder_; + } + + private com.google.container.v1.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 confidentialNodesBuilder_ != null || confidentialNodes_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + confidentialNodesBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + confidentialNodesBuilder_.setMessage(builderForValue.build()); + } + + 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 (confidentialNodes_ != null) { + confidentialNodes_ = + com.google.container.v1.ConfidentialNodes.newBuilder(confidentialNodes_) + .mergeFrom(value) + .buildPartial(); + } else { + confidentialNodes_ = value; + } + onChanged(); + } else { + confidentialNodesBuilder_.mergeFrom(value); + } + + 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() { + if (confidentialNodesBuilder_ == null) { + confidentialNodes_ = null; + onChanged(); + } else { + confidentialNodes_ = null; + confidentialNodesBuilder_ = null; + } + + 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() { + + 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 gvnicBuilder_ != null || gvnic_ != null; + } + /** + * + * + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + * + * @return The gvnic. + */ + public com.google.container.v1.VirtualNIC getGvnic() { + if (gvnicBuilder_ == null) { + return gvnic_ == null ? com.google.container.v1.VirtualNIC.getDefaultInstance() : gvnic_; + } else { + return gvnicBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + public Builder setGvnic(com.google.container.v1.VirtualNIC value) { + if (gvnicBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gvnic_ = value; + onChanged(); + } else { + gvnicBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + public Builder setGvnic(com.google.container.v1.VirtualNIC.Builder builderForValue) { + if (gvnicBuilder_ == null) { + gvnic_ = builderForValue.build(); + onChanged(); + } else { + gvnicBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + public Builder mergeGvnic(com.google.container.v1.VirtualNIC value) { + if (gvnicBuilder_ == null) { + if (gvnic_ != null) { + gvnic_ = + com.google.container.v1.VirtualNIC.newBuilder(gvnic_).mergeFrom(value).buildPartial(); + } else { + gvnic_ = value; + } + onChanged(); + } else { + gvnicBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + public Builder clearGvnic() { + if (gvnicBuilder_ == null) { + gvnic_ = null; + onChanged(); + } else { + gvnic_ = null; + gvnicBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + public com.google.container.v1.VirtualNIC.Builder getGvnicBuilder() { + + onChanged(); + return getGvnicFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + public com.google.container.v1.VirtualNICOrBuilder getGvnicOrBuilder() { + if (gvnicBuilder_ != null) { + return gvnicBuilder_.getMessageOrBuilder(); + } else { + return gvnic_ == null ? com.google.container.v1.VirtualNIC.getDefaultInstance() : gvnic_; + } + } + /** + * + * + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.VirtualNIC, + com.google.container.v1.VirtualNIC.Builder, + com.google.container.v1.VirtualNICOrBuilder> + getGvnicFieldBuilder() { + if (gvnicBuilder_ == null) { + gvnicBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.VirtualNIC, + com.google.container.v1.VirtualNIC.Builder, + com.google.container.v1.VirtualNICOrBuilder>( + getGvnic(), getParentForChildren(), isClean()); + gvnic_ = null; + } + return gvnicBuilder_; + } + + 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 loggingConfigBuilder_ != null || loggingConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + loggingConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + loggingConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 32; + */ + public Builder mergeLoggingConfig(com.google.container.v1.NodePoolLoggingConfig value) { + if (loggingConfigBuilder_ == null) { + if (loggingConfig_ != null) { + loggingConfig_ = + com.google.container.v1.NodePoolLoggingConfig.newBuilder(loggingConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + loggingConfig_ = value; + } + onChanged(); + } else { + loggingConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 32; + */ + public Builder clearLoggingConfig() { + if (loggingConfigBuilder_ == null) { + loggingConfig_ = null; + onChanged(); + } else { + loggingConfig_ = null; + loggingConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 32; + */ + public com.google.container.v1.NodePoolLoggingConfig.Builder getLoggingConfigBuilder() { + + 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 resourceLabelsBuilder_ != null || resourceLabels_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + resourceLabelsBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + resourceLabelsBuilder_.setMessage(builderForValue.build()); + } + + 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 (resourceLabels_ != null) { + resourceLabels_ = + com.google.container.v1.ResourceLabels.newBuilder(resourceLabels_) + .mergeFrom(value) + .buildPartial(); + } else { + resourceLabels_ = value; + } + onChanged(); + } else { + resourceLabelsBuilder_.mergeFrom(value); + } + + 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() { + if (resourceLabelsBuilder_ == null) { + resourceLabels_ = null; + onChanged(); + } else { + resourceLabels_ = null; + resourceLabelsBuilder_ = null; + } + + 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() { + + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..878886393283 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java @@ -0,0 +1,804 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface 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=2202 + * @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=2202 + * @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=2208 + * @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=2208 + * @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=2212 + * @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=2212 + * @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=2216 + * @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=2216 + * @return The bytes for nodePoolId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getNodePoolIdBytes(); + + /** + * + * + *
+   * Required. The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by Kubernetes Engine or
+   * version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeVersion. + */ + java.lang.String getNodeVersion(); + /** + * + * + *
+   * Required. The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by Kubernetes Engine or
+   * version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for nodeVersion. + */ + com.google.protobuf.ByteString getNodeVersionBytes(); + + /** + * + * + *
+   * Required. The desired image type for the node pool.
+   * 
+ * + * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The imageType. + */ + java.lang.String getImageType(); + /** + * + * + *
+   * Required. The desired image type for the node pool.
+   * 
+ * + * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for imageType. + */ + com.google.protobuf.ByteString getImageTypeBytes(); + + /** + * + * + *
+   * The 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(); + + /** + * + * + *
+   * 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(); +} 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 new file mode 100644 index 000000000000..4693c6900bfb --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeAvailableEvent.java @@ -0,0 +1,1234 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * UpgradeAvailableEvent is a notification sent to customers when a new
+ * available version is released.
+ * 
+ * + * Protobuf type {@code google.container.v1.UpgradeAvailableEvent} + */ +public final class UpgradeAvailableEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.UpgradeAvailableEvent) + UpgradeAvailableEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpgradeAvailableEvent.newBuilder() to construct. + private UpgradeAvailableEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpgradeAvailableEvent() { + version_ = ""; + resourceType_ = 0; + resource_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpgradeAvailableEvent(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_UpgradeAvailableEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_UpgradeAvailableEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.UpgradeAvailableEvent.class, + com.google.container.v1.UpgradeAvailableEvent.Builder.class); + } + + public static final int VERSION_FIELD_NUMBER = 1; + private volatile java.lang.Object version_; + /** + * + * + *
+   * The release version available for upgrade.
+   * 
+ * + * string version = 1; + * + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + * + * + *
+   * The release version available for upgrade.
+   * 
+ * + * string version = 1; + * + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 2; + private int resourceType_; + /** + * + * + *
+   * The resource type of the release version.
+   * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 2; + * + * @return The enum numeric value on the wire for resourceType. + */ + @java.lang.Override + public int getResourceTypeValue() { + return resourceType_; + } + /** + * + * + *
+   * The resource type of the release version.
+   * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 2; + * + * @return The resourceType. + */ + @java.lang.Override + public com.google.container.v1.UpgradeResourceType getResourceType() { + @SuppressWarnings("deprecation") + com.google.container.v1.UpgradeResourceType result = + com.google.container.v1.UpgradeResourceType.valueOf(resourceType_); + return result == null ? com.google.container.v1.UpgradeResourceType.UNRECOGNIZED : result; + } + + public static final int RELEASE_CHANNEL_FIELD_NUMBER = 3; + private com.google.container.v1.ReleaseChannel releaseChannel_; + /** + * + * + *
+   * The release channel of the version. If empty, it means a non-channel
+   * release.
+   * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + * + * @return Whether the releaseChannel field is set. + */ + @java.lang.Override + public boolean hasReleaseChannel() { + return releaseChannel_ != null; + } + /** + * + * + *
+   * The release channel of the version. If empty, it means a non-channel
+   * release.
+   * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + * + * @return The releaseChannel. + */ + @java.lang.Override + public com.google.container.v1.ReleaseChannel getReleaseChannel() { + return releaseChannel_ == null + ? com.google.container.v1.ReleaseChannel.getDefaultInstance() + : releaseChannel_; + } + /** + * + * + *
+   * The release channel of the version. If empty, it means a non-channel
+   * release.
+   * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + */ + @java.lang.Override + public com.google.container.v1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder() { + return getReleaseChannel(); + } + + public static final int RESOURCE_FIELD_NUMBER = 4; + private volatile java.lang.Object resource_; + /** + * + * + *
+   * Optional relative path to the resource. For example, the relative path of
+   * the node pool.
+   * 
+ * + * string resource = 4; + * + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } + } + /** + * + * + *
+   * Optional relative path to the resource. For example, the relative path of
+   * the node pool.
+   * 
+ * + * string resource = 4; + * + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); + } + if (resourceType_ + != com.google.container.v1.UpgradeResourceType.UPGRADE_RESOURCE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, resourceType_); + } + if (releaseChannel_ != null) { + output.writeMessage(3, getReleaseChannel()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, resource_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); + } + if (resourceType_ + != com.google.container.v1.UpgradeResourceType.UPGRADE_RESOURCE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, resourceType_); + } + if (releaseChannel_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getReleaseChannel()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, resource_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + version_ = ""; + + resourceType_ = 0; + + if (releaseChannelBuilder_ == null) { + releaseChannel_ = null; + } else { + releaseChannel_ = null; + releaseChannelBuilder_ = null; + } + resource_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_UpgradeAvailableEvent_descriptor; + } + + @java.lang.Override + public com.google.container.v1.UpgradeAvailableEvent getDefaultInstanceForType() { + return com.google.container.v1.UpgradeAvailableEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.UpgradeAvailableEvent build() { + com.google.container.v1.UpgradeAvailableEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.UpgradeAvailableEvent buildPartial() { + com.google.container.v1.UpgradeAvailableEvent result = + new com.google.container.v1.UpgradeAvailableEvent(this); + result.version_ = version_; + result.resourceType_ = resourceType_; + if (releaseChannelBuilder_ == null) { + result.releaseChannel_ = releaseChannel_; + } else { + result.releaseChannel_ = releaseChannelBuilder_.build(); + } + result.resource_ = resource_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.UpgradeAvailableEvent) { + return mergeFrom((com.google.container.v1.UpgradeAvailableEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.UpgradeAvailableEvent other) { + if (other == com.google.container.v1.UpgradeAvailableEvent.getDefaultInstance()) return this; + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + if (other.hasReleaseChannel()) { + mergeReleaseChannel(other.getReleaseChannel()); + } + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 16: + { + resourceType_ = input.readEnum(); + + break; + } // case 16 + case 26: + { + input.readMessage(getReleaseChannelFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + resource_ = input.readStringRequireUtf8(); + + 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 java.lang.Object version_ = ""; + /** + * + * + *
+     * The release version available for upgrade.
+     * 
+ * + * string version = 1; + * + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The release version available for upgrade.
+     * 
+ * + * string version = 1; + * + * @return The bytes for version. + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The release version available for upgrade.
+     * 
+ * + * string version = 1; + * + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The release version available for upgrade.
+     * 
+ * + * string version = 1; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * The release version available for upgrade.
+     * 
+ * + * string version = 1; + * + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + private int resourceType_ = 0; + /** + * + * + *
+     * The resource type of the release version.
+     * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 2; + * + * @return The enum numeric value on the wire for resourceType. + */ + @java.lang.Override + public int getResourceTypeValue() { + return resourceType_; + } + /** + * + * + *
+     * The resource type of the release version.
+     * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 2; + * + * @param value The enum numeric value on the wire for resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceTypeValue(int value) { + + resourceType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource type of the release version.
+     * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 2; + * + * @return The resourceType. + */ + @java.lang.Override + public com.google.container.v1.UpgradeResourceType getResourceType() { + @SuppressWarnings("deprecation") + com.google.container.v1.UpgradeResourceType result = + com.google.container.v1.UpgradeResourceType.valueOf(resourceType_); + return result == null ? com.google.container.v1.UpgradeResourceType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The resource type of the release version.
+     * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 2; + * + * @param value The resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceType(com.google.container.v1.UpgradeResourceType value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource type of the release version.
+     * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 2; + * + * @return This builder for chaining. + */ + public Builder clearResourceType() { + + resourceType_ = 0; + onChanged(); + return this; + } + + private com.google.container.v1.ReleaseChannel releaseChannel_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ReleaseChannel, + com.google.container.v1.ReleaseChannel.Builder, + com.google.container.v1.ReleaseChannelOrBuilder> + releaseChannelBuilder_; + /** + * + * + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + * + * @return Whether the releaseChannel field is set. + */ + public boolean hasReleaseChannel() { + return releaseChannelBuilder_ != null || releaseChannel_ != null; + } + /** + * + * + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + * + * @return The releaseChannel. + */ + public com.google.container.v1.ReleaseChannel getReleaseChannel() { + if (releaseChannelBuilder_ == null) { + return releaseChannel_ == null + ? com.google.container.v1.ReleaseChannel.getDefaultInstance() + : releaseChannel_; + } else { + return releaseChannelBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + */ + public Builder setReleaseChannel(com.google.container.v1.ReleaseChannel value) { + if (releaseChannelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + releaseChannel_ = value; + onChanged(); + } else { + releaseChannelBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + */ + public Builder setReleaseChannel( + com.google.container.v1.ReleaseChannel.Builder builderForValue) { + if (releaseChannelBuilder_ == null) { + releaseChannel_ = builderForValue.build(); + onChanged(); + } else { + releaseChannelBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + */ + public Builder mergeReleaseChannel(com.google.container.v1.ReleaseChannel value) { + if (releaseChannelBuilder_ == null) { + if (releaseChannel_ != null) { + releaseChannel_ = + com.google.container.v1.ReleaseChannel.newBuilder(releaseChannel_) + .mergeFrom(value) + .buildPartial(); + } else { + releaseChannel_ = value; + } + onChanged(); + } else { + releaseChannelBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + */ + public Builder clearReleaseChannel() { + if (releaseChannelBuilder_ == null) { + releaseChannel_ = null; + onChanged(); + } else { + releaseChannel_ = null; + releaseChannelBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + */ + public com.google.container.v1.ReleaseChannel.Builder getReleaseChannelBuilder() { + + onChanged(); + return getReleaseChannelFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + */ + public com.google.container.v1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder() { + if (releaseChannelBuilder_ != null) { + return releaseChannelBuilder_.getMessageOrBuilder(); + } else { + return releaseChannel_ == null + ? com.google.container.v1.ReleaseChannel.getDefaultInstance() + : releaseChannel_; + } + } + /** + * + * + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ReleaseChannel, + com.google.container.v1.ReleaseChannel.Builder, + com.google.container.v1.ReleaseChannelOrBuilder> + getReleaseChannelFieldBuilder() { + if (releaseChannelBuilder_ == null) { + releaseChannelBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ReleaseChannel, + com.google.container.v1.ReleaseChannel.Builder, + com.google.container.v1.ReleaseChannelOrBuilder>( + getReleaseChannel(), getParentForChildren(), isClean()); + releaseChannel_ = null; + } + return releaseChannelBuilder_; + } + + private java.lang.Object resource_ = ""; + /** + * + * + *
+     * Optional relative path to the resource. For example, the relative path of
+     * the node pool.
+     * 
+ * + * string resource = 4; + * + * @return The resource. + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional relative path to the resource. For example, the relative path of
+     * the node pool.
+     * 
+ * + * string resource = 4; + * + * @return The bytes for resource. + */ + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional relative path to the resource. For example, the relative path of
+     * the node pool.
+     * 
+ * + * string resource = 4; + * + * @param value The resource to set. + * @return This builder for chaining. + */ + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resource_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional relative path to the resource. For example, the relative path of
+     * the node pool.
+     * 
+ * + * string resource = 4; + * + * @return This builder for chaining. + */ + public Builder clearResource() { + + resource_ = getDefaultInstance().getResource(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional relative path to the resource. For example, the relative path of
+     * the node pool.
+     * 
+ * + * string resource = 4; + * + * @param value The bytes for resource to set. + * @return This builder for chaining. + */ + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resource_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.UpgradeAvailableEvent) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.UpgradeAvailableEvent) + private static final com.google.container.v1.UpgradeAvailableEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.UpgradeAvailableEvent(); + } + + public static com.google.container.v1.UpgradeAvailableEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpgradeAvailableEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..29a873de761d --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeAvailableEventOrBuilder.java @@ -0,0 +1,140 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface UpgradeAvailableEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.UpgradeAvailableEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The release version available for upgrade.
+   * 
+ * + * string version = 1; + * + * @return The version. + */ + java.lang.String getVersion(); + /** + * + * + *
+   * The release version available for upgrade.
+   * 
+ * + * string version = 1; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); + + /** + * + * + *
+   * The resource type of the release version.
+   * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 2; + * + * @return The enum numeric value on the wire for resourceType. + */ + int getResourceTypeValue(); + /** + * + * + *
+   * The resource type of the release version.
+   * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 2; + * + * @return The resourceType. + */ + com.google.container.v1.UpgradeResourceType getResourceType(); + + /** + * + * + *
+   * The release channel of the version. If empty, it means a non-channel
+   * release.
+   * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + * + * @return Whether the releaseChannel field is set. + */ + boolean hasReleaseChannel(); + /** + * + * + *
+   * The release channel of the version. If empty, it means a non-channel
+   * release.
+   * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + * + * @return The releaseChannel. + */ + com.google.container.v1.ReleaseChannel getReleaseChannel(); + /** + * + * + *
+   * The release channel of the version. If empty, it means a non-channel
+   * release.
+   * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + */ + com.google.container.v1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder(); + + /** + * + * + *
+   * Optional relative path to the resource. For example, the relative path of
+   * the node pool.
+   * 
+ * + * string resource = 4; + * + * @return The resource. + */ + java.lang.String getResource(); + /** + * + * + *
+   * Optional relative path to the resource. For example, the relative path of
+   * the node pool.
+   * 
+ * + * string resource = 4; + * + * @return The bytes for resource. + */ + com.google.protobuf.ByteString getResourceBytes(); +} diff --git a/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 new file mode 100644 index 000000000000..5f4579569282 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeEvent.java @@ -0,0 +1,1575 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * UpgradeEvent is a notification sent to customers by the cluster server when
+ * a resource is upgrading.
+ * 
+ * + * Protobuf type {@code google.container.v1.UpgradeEvent} + */ +public final class UpgradeEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.UpgradeEvent) + UpgradeEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpgradeEvent.newBuilder() to construct. + private UpgradeEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpgradeEvent() { + resourceType_ = 0; + operation_ = ""; + currentVersion_ = ""; + targetVersion_ = ""; + resource_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpgradeEvent(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_UpgradeEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_UpgradeEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.UpgradeEvent.class, + com.google.container.v1.UpgradeEvent.Builder.class); + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; + private int resourceType_; + /** + * + * + *
+   * The resource type that is upgrading.
+   * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 1; + * + * @return The enum numeric value on the wire for resourceType. + */ + @java.lang.Override + public int getResourceTypeValue() { + return resourceType_; + } + /** + * + * + *
+   * The resource type that is upgrading.
+   * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 1; + * + * @return The resourceType. + */ + @java.lang.Override + public com.google.container.v1.UpgradeResourceType getResourceType() { + @SuppressWarnings("deprecation") + com.google.container.v1.UpgradeResourceType result = + com.google.container.v1.UpgradeResourceType.valueOf(resourceType_); + return result == null ? com.google.container.v1.UpgradeResourceType.UNRECOGNIZED : result; + } + + public static final int OPERATION_FIELD_NUMBER = 2; + private volatile java.lang.Object operation_; + /** + * + * + *
+   * The operation associated with this upgrade.
+   * 
+ * + * string operation = 2; + * + * @return The operation. + */ + @java.lang.Override + public java.lang.String getOperation() { + java.lang.Object ref = operation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operation_ = s; + return s; + } + } + /** + * + * + *
+   * The operation associated with this upgrade.
+   * 
+ * + * string operation = 2; + * + * @return The bytes for operation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOperationBytes() { + java.lang.Object ref = operation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPERATION_START_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp operationStartTime_; + /** + * + * + *
+   * The time when the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + * + * @return Whether the operationStartTime field is set. + */ + @java.lang.Override + public boolean hasOperationStartTime() { + return operationStartTime_ != null; + } + /** + * + * + *
+   * The time when the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + * + * @return The operationStartTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getOperationStartTime() { + return operationStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : operationStartTime_; + } + /** + * + * + *
+   * The time when the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getOperationStartTimeOrBuilder() { + return getOperationStartTime(); + } + + public static final int CURRENT_VERSION_FIELD_NUMBER = 4; + private volatile java.lang.Object currentVersion_; + /** + * + * + *
+   * The current version before the upgrade.
+   * 
+ * + * string current_version = 4; + * + * @return The currentVersion. + */ + @java.lang.Override + public java.lang.String getCurrentVersion() { + java.lang.Object ref = currentVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentVersion_ = s; + return s; + } + } + /** + * + * + *
+   * The current version before the upgrade.
+   * 
+ * + * string current_version = 4; + * + * @return The bytes for currentVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCurrentVersionBytes() { + java.lang.Object ref = currentVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + currentVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_VERSION_FIELD_NUMBER = 5; + private volatile java.lang.Object targetVersion_; + /** + * + * + *
+   * The target version for the upgrade.
+   * 
+ * + * string target_version = 5; + * + * @return The targetVersion. + */ + @java.lang.Override + public java.lang.String getTargetVersion() { + java.lang.Object ref = targetVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetVersion_ = s; + return s; + } + } + /** + * + * + *
+   * The target version for the upgrade.
+   * 
+ * + * string target_version = 5; + * + * @return The bytes for targetVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetVersionBytes() { + java.lang.Object ref = targetVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_FIELD_NUMBER = 6; + private volatile java.lang.Object resource_; + /** + * + * + *
+   * Optional relative path to the resource. For example in node pool upgrades,
+   * the relative path of the node pool.
+   * 
+ * + * string resource = 6; + * + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } + } + /** + * + * + *
+   * Optional relative path to the resource. For example in node pool upgrades,
+   * the relative path of the node pool.
+   * 
+ * + * string resource = 6; + * + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (resourceType_ + != com.google.container.v1.UpgradeResourceType.UPGRADE_RESOURCE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, resourceType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, operation_); + } + if (operationStartTime_ != null) { + output.writeMessage(3, getOperationStartTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, currentVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, targetVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, resource_); + } + 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 (operationStartTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOperationStartTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, currentVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, targetVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, resource_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + resourceType_ = 0; + + operation_ = ""; + + if (operationStartTimeBuilder_ == null) { + operationStartTime_ = null; + } else { + operationStartTime_ = null; + operationStartTimeBuilder_ = null; + } + currentVersion_ = ""; + + targetVersion_ = ""; + + resource_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_UpgradeEvent_descriptor; + } + + @java.lang.Override + public com.google.container.v1.UpgradeEvent getDefaultInstanceForType() { + return com.google.container.v1.UpgradeEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.UpgradeEvent build() { + com.google.container.v1.UpgradeEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.UpgradeEvent buildPartial() { + com.google.container.v1.UpgradeEvent result = new com.google.container.v1.UpgradeEvent(this); + result.resourceType_ = resourceType_; + result.operation_ = operation_; + if (operationStartTimeBuilder_ == null) { + result.operationStartTime_ = operationStartTime_; + } else { + result.operationStartTime_ = operationStartTimeBuilder_.build(); + } + result.currentVersion_ = currentVersion_; + result.targetVersion_ = targetVersion_; + result.resource_ = resource_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.UpgradeEvent) { + return mergeFrom((com.google.container.v1.UpgradeEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.UpgradeEvent other) { + if (other == com.google.container.v1.UpgradeEvent.getDefaultInstance()) return this; + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + if (!other.getOperation().isEmpty()) { + operation_ = other.operation_; + onChanged(); + } + if (other.hasOperationStartTime()) { + mergeOperationStartTime(other.getOperationStartTime()); + } + if (!other.getCurrentVersion().isEmpty()) { + currentVersion_ = other.currentVersion_; + onChanged(); + } + if (!other.getTargetVersion().isEmpty()) { + targetVersion_ = other.targetVersion_; + onChanged(); + } + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 8 + case 18: + { + operation_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage( + getOperationStartTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + currentVersion_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + targetVersion_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + resource_ = input.readStringRequireUtf8(); + + 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 resourceType_ = 0; + /** + * + * + *
+     * The resource type that is upgrading.
+     * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 1; + * + * @return The enum numeric value on the wire for resourceType. + */ + @java.lang.Override + public int getResourceTypeValue() { + return resourceType_; + } + /** + * + * + *
+     * The resource type that is upgrading.
+     * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 1; + * + * @param value The enum numeric value on the wire for resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceTypeValue(int value) { + + resourceType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource type that is upgrading.
+     * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 1; + * + * @return The resourceType. + */ + @java.lang.Override + public com.google.container.v1.UpgradeResourceType getResourceType() { + @SuppressWarnings("deprecation") + com.google.container.v1.UpgradeResourceType result = + com.google.container.v1.UpgradeResourceType.valueOf(resourceType_); + return result == null ? com.google.container.v1.UpgradeResourceType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The resource type that is upgrading.
+     * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 1; + * + * @param value The resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceType(com.google.container.v1.UpgradeResourceType value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource type that is upgrading.
+     * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 1; + * + * @return This builder for chaining. + */ + public Builder clearResourceType() { + + resourceType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object operation_ = ""; + /** + * + * + *
+     * The operation associated with this upgrade.
+     * 
+ * + * string operation = 2; + * + * @return The operation. + */ + public java.lang.String getOperation() { + java.lang.Object ref = operation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The operation associated with this upgrade.
+     * 
+ * + * string operation = 2; + * + * @return The bytes for operation. + */ + public com.google.protobuf.ByteString getOperationBytes() { + java.lang.Object ref = operation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The operation associated with this upgrade.
+     * 
+ * + * string operation = 2; + * + * @param value The operation to set. + * @return This builder for chaining. + */ + public Builder setOperation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + operation_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The operation associated with this upgrade.
+     * 
+ * + * string operation = 2; + * + * @return This builder for chaining. + */ + public Builder clearOperation() { + + operation_ = getDefaultInstance().getOperation(); + onChanged(); + return this; + } + /** + * + * + *
+     * The operation associated with this upgrade.
+     * 
+ * + * string operation = 2; + * + * @param value The bytes for operation to set. + * @return This builder for chaining. + */ + public Builder setOperationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + operation_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp operationStartTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + operationStartTimeBuilder_; + /** + * + * + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + * + * @return Whether the operationStartTime field is set. + */ + public boolean hasOperationStartTime() { + return operationStartTimeBuilder_ != null || operationStartTime_ != null; + } + /** + * + * + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + * + * @return The operationStartTime. + */ + public com.google.protobuf.Timestamp getOperationStartTime() { + if (operationStartTimeBuilder_ == null) { + return operationStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : operationStartTime_; + } else { + return operationStartTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + public Builder setOperationStartTime(com.google.protobuf.Timestamp value) { + if (operationStartTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + operationStartTime_ = value; + onChanged(); + } else { + operationStartTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + public Builder setOperationStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (operationStartTimeBuilder_ == null) { + operationStartTime_ = builderForValue.build(); + onChanged(); + } else { + operationStartTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + public Builder mergeOperationStartTime(com.google.protobuf.Timestamp value) { + if (operationStartTimeBuilder_ == null) { + if (operationStartTime_ != null) { + operationStartTime_ = + com.google.protobuf.Timestamp.newBuilder(operationStartTime_) + .mergeFrom(value) + .buildPartial(); + } else { + operationStartTime_ = value; + } + onChanged(); + } else { + operationStartTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + public Builder clearOperationStartTime() { + if (operationStartTimeBuilder_ == null) { + operationStartTime_ = null; + onChanged(); + } else { + operationStartTime_ = null; + operationStartTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + public com.google.protobuf.Timestamp.Builder getOperationStartTimeBuilder() { + + onChanged(); + return getOperationStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getOperationStartTimeOrBuilder() { + if (operationStartTimeBuilder_ != null) { + return operationStartTimeBuilder_.getMessageOrBuilder(); + } else { + return operationStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : operationStartTime_; + } + } + /** + * + * + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getOperationStartTimeFieldBuilder() { + if (operationStartTimeBuilder_ == null) { + operationStartTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getOperationStartTime(), getParentForChildren(), isClean()); + operationStartTime_ = null; + } + return operationStartTimeBuilder_; + } + + private java.lang.Object currentVersion_ = ""; + /** + * + * + *
+     * The current version before the upgrade.
+     * 
+ * + * string current_version = 4; + * + * @return The currentVersion. + */ + public java.lang.String getCurrentVersion() { + java.lang.Object ref = currentVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The current version before the upgrade.
+     * 
+ * + * string current_version = 4; + * + * @return The bytes for currentVersion. + */ + public com.google.protobuf.ByteString getCurrentVersionBytes() { + java.lang.Object ref = currentVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + currentVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The current version before the upgrade.
+     * 
+ * + * string current_version = 4; + * + * @param value The currentVersion to set. + * @return This builder for chaining. + */ + public Builder setCurrentVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + currentVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The current version before the upgrade.
+     * 
+ * + * string current_version = 4; + * + * @return This builder for chaining. + */ + public Builder clearCurrentVersion() { + + currentVersion_ = getDefaultInstance().getCurrentVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * The current version before the upgrade.
+     * 
+ * + * string current_version = 4; + * + * @param value The bytes for currentVersion to set. + * @return This builder for chaining. + */ + public Builder setCurrentVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + currentVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object targetVersion_ = ""; + /** + * + * + *
+     * The target version for the upgrade.
+     * 
+ * + * string target_version = 5; + * + * @return The targetVersion. + */ + public java.lang.String getTargetVersion() { + java.lang.Object ref = targetVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The target version for the upgrade.
+     * 
+ * + * string target_version = 5; + * + * @return The bytes for targetVersion. + */ + public com.google.protobuf.ByteString getTargetVersionBytes() { + java.lang.Object ref = targetVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The target version for the upgrade.
+     * 
+ * + * string target_version = 5; + * + * @param value The targetVersion to set. + * @return This builder for chaining. + */ + public Builder setTargetVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + targetVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The target version for the upgrade.
+     * 
+ * + * string target_version = 5; + * + * @return This builder for chaining. + */ + public Builder clearTargetVersion() { + + targetVersion_ = getDefaultInstance().getTargetVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * The target version for the upgrade.
+     * 
+ * + * string target_version = 5; + * + * @param value The bytes for targetVersion to set. + * @return This builder for chaining. + */ + public Builder setTargetVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + targetVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object resource_ = ""; + /** + * + * + *
+     * Optional relative path to the resource. For example in node pool upgrades,
+     * the relative path of the node pool.
+     * 
+ * + * string resource = 6; + * + * @return The resource. + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional relative path to the resource. For example in node pool upgrades,
+     * the relative path of the node pool.
+     * 
+ * + * string resource = 6; + * + * @return The bytes for resource. + */ + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional relative path to the resource. For example in node pool upgrades,
+     * the relative path of the node pool.
+     * 
+ * + * string resource = 6; + * + * @param value The resource to set. + * @return This builder for chaining. + */ + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resource_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional relative path to the resource. For example in node pool upgrades,
+     * the relative path of the node pool.
+     * 
+ * + * string resource = 6; + * + * @return This builder for chaining. + */ + public Builder clearResource() { + + resource_ = getDefaultInstance().getResource(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional relative path to the resource. For example in node pool upgrades,
+     * the relative path of the node pool.
+     * 
+ * + * string resource = 6; + * + * @param value The bytes for resource to set. + * @return This builder for chaining. + */ + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resource_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.UpgradeEvent) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.UpgradeEvent) + private static final com.google.container.v1.UpgradeEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.UpgradeEvent(); + } + + public static com.google.container.v1.UpgradeEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpgradeEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..d6dadc9ecbd0 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeEventOrBuilder.java @@ -0,0 +1,187 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface UpgradeEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.UpgradeEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resource type that is upgrading.
+   * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 1; + * + * @return The enum numeric value on the wire for resourceType. + */ + int getResourceTypeValue(); + /** + * + * + *
+   * The resource type that is upgrading.
+   * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 1; + * + * @return The resourceType. + */ + com.google.container.v1.UpgradeResourceType getResourceType(); + + /** + * + * + *
+   * The operation associated with this upgrade.
+   * 
+ * + * string operation = 2; + * + * @return The operation. + */ + java.lang.String getOperation(); + /** + * + * + *
+   * The operation associated with this upgrade.
+   * 
+ * + * string operation = 2; + * + * @return The bytes for operation. + */ + com.google.protobuf.ByteString getOperationBytes(); + + /** + * + * + *
+   * The time when the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + * + * @return Whether the operationStartTime field is set. + */ + boolean hasOperationStartTime(); + /** + * + * + *
+   * The time when the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + * + * @return The operationStartTime. + */ + com.google.protobuf.Timestamp getOperationStartTime(); + /** + * + * + *
+   * The time when the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + com.google.protobuf.TimestampOrBuilder getOperationStartTimeOrBuilder(); + + /** + * + * + *
+   * The current version before the upgrade.
+   * 
+ * + * string current_version = 4; + * + * @return The currentVersion. + */ + java.lang.String getCurrentVersion(); + /** + * + * + *
+   * The current version before the upgrade.
+   * 
+ * + * string current_version = 4; + * + * @return The bytes for currentVersion. + */ + com.google.protobuf.ByteString getCurrentVersionBytes(); + + /** + * + * + *
+   * The target version for the upgrade.
+   * 
+ * + * string target_version = 5; + * + * @return The targetVersion. + */ + java.lang.String getTargetVersion(); + /** + * + * + *
+   * The target version for the upgrade.
+   * 
+ * + * string target_version = 5; + * + * @return The bytes for targetVersion. + */ + com.google.protobuf.ByteString getTargetVersionBytes(); + + /** + * + * + *
+   * Optional relative path to the resource. For example in node pool upgrades,
+   * the relative path of the node pool.
+   * 
+ * + * string resource = 6; + * + * @return The resource. + */ + java.lang.String getResource(); + /** + * + * + *
+   * Optional relative path to the resource. For example in node pool upgrades,
+   * the relative path of the node pool.
+   * 
+ * + * string resource = 6; + * + * @return The bytes for resource. + */ + com.google.protobuf.ByteString getResourceBytes(); +} diff --git a/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 new file mode 100644 index 000000000000..7c574e6b2189 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeResourceType.java @@ -0,0 +1,180 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * UpgradeResourceType is the resource type that is upgrading. It is used
+ * in upgrade notifications.
+ * 
+ * + * Protobuf enum {@code google.container.v1.UpgradeResourceType} + */ +public enum UpgradeResourceType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value. This shouldn't be used.
+   * 
+ * + * UPGRADE_RESOURCE_TYPE_UNSPECIFIED = 0; + */ + UPGRADE_RESOURCE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Master / control plane
+   * 
+ * + * MASTER = 1; + */ + MASTER(1), + /** + * + * + *
+   * Node pool
+   * 
+ * + * NODE_POOL = 2; + */ + NODE_POOL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default value. This shouldn't be used.
+   * 
+ * + * UPGRADE_RESOURCE_TYPE_UNSPECIFIED = 0; + */ + public static final int UPGRADE_RESOURCE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Master / control plane
+   * 
+ * + * MASTER = 1; + */ + public static final int MASTER_VALUE = 1; + /** + * + * + *
+   * Node pool
+   * 
+ * + * NODE_POOL = 2; + */ + public static final int NODE_POOL_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static UpgradeResourceType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static UpgradeResourceType forNumber(int value) { + switch (value) { + case 0: + return UPGRADE_RESOURCE_TYPE_UNSPECIFIED; + case 1: + return MASTER; + case 2: + return NODE_POOL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public UpgradeResourceType findValueByNumber(int number) { + return UpgradeResourceType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto.getDescriptor().getEnumTypes().get(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 new file mode 100644 index 000000000000..9887a6ff4938 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetwork.java @@ -0,0 +1,1716 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + private volatile java.lang.Object subnetwork_; + /** + * + * + *
+   * Subnetwork Name.
+   * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+   * 
+ * + * string subnetwork = 1; + * + * @return The subnetwork. + */ + @java.lang.Override + public java.lang.String getSubnetwork() { + java.lang.Object ref = subnetwork_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetwork_ = s; + return s; + } + } + /** + * + * + *
+   * Subnetwork Name.
+   * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+   * 
+ * + * string subnetwork = 1; + * + * @return The bytes for subnetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSubnetworkBytes() { + java.lang.Object ref = subnetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_FIELD_NUMBER = 2; + private volatile java.lang.Object network_; + /** + * + * + *
+   * Network Name.
+   * Example: projects/my-project/global/networks/my-network
+   * 
+ * + * string network = 2; + * + * @return The network. + */ + @java.lang.Override + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } + } + /** + * + * + *
+   * Network Name.
+   * Example: projects/my-project/global/networks/my-network
+   * 
+ * + * string network = 2; + * + * @return The bytes for network. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IP_CIDR_RANGE_FIELD_NUMBER = 3; + private volatile java.lang.Object ipCidrRange_; + /** + * + * + *
+   * The range of internal addresses that are owned by this subnetwork.
+   * 
+ * + * string ip_cidr_range = 3; + * + * @return The ipCidrRange. + */ + @java.lang.Override + public java.lang.String getIpCidrRange() { + java.lang.Object ref = ipCidrRange_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipCidrRange_ = s; + return s; + } + } + /** + * + * + *
+   * The range of internal addresses that are owned by this subnetwork.
+   * 
+ * + * string ip_cidr_range = 3; + * + * @return The bytes for ipCidrRange. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIpCidrRangeBytes() { + java.lang.Object ref = ipCidrRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipCidrRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECONDARY_IP_RANGES_FIELD_NUMBER = 4; + private java.util.List secondaryIpRanges_; + /** + * + * + *
+   * Secondary IP ranges.
+   * 
+ * + * repeated .google.container.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; + 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(); + subnetwork_ = ""; + + network_ = ""; + + ipCidrRange_ = ""; + + if (secondaryIpRangesBuilder_ == null) { + secondaryIpRanges_ = java.util.Collections.emptyList(); + } else { + secondaryIpRanges_ = null; + secondaryIpRangesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + 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); + int from_bitField0_ = bitField0_; + result.subnetwork_ = subnetwork_; + result.network_ = network_; + result.ipCidrRange_ = ipCidrRange_; + if (secondaryIpRangesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + secondaryIpRanges_ = java.util.Collections.unmodifiableList(secondaryIpRanges_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.secondaryIpRanges_ = secondaryIpRanges_; + } else { + result.secondaryIpRanges_ = secondaryIpRangesBuilder_.build(); + } + result.statusMessage_ = statusMessage_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + onChanged(); + } + if (!other.getIpCidrRange().isEmpty()) { + ipCidrRange_ = other.ipCidrRange_; + onChanged(); + } + if (secondaryIpRangesBuilder_ == null) { + if (!other.secondaryIpRanges_.isEmpty()) { + if (secondaryIpRanges_.isEmpty()) { + secondaryIpRanges_ = other.secondaryIpRanges_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.addAll(other.secondaryIpRanges_); + } + onChanged(); + } + } else { + if (!other.secondaryIpRanges_.isEmpty()) { + if (secondaryIpRangesBuilder_.isEmpty()) { + secondaryIpRangesBuilder_.dispose(); + secondaryIpRangesBuilder_ = null; + secondaryIpRanges_ = other.secondaryIpRanges_; + bitField0_ = (bitField0_ & ~0x00000001); + secondaryIpRangesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSecondaryIpRangesFieldBuilder() + : null; + } else { + secondaryIpRangesBuilder_.addAllMessages(other.secondaryIpRanges_); + } + } + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + network_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + ipCidrRange_ = input.readStringRequireUtf8(); + + 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(); + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Subnetwork Name.
+     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 1; + * + * @return This builder for chaining. + */ + public Builder clearSubnetwork() { + + subnetwork_ = getDefaultInstance().getSubnetwork(); + onChanged(); + return this; + } + /** + * + * + *
+     * Subnetwork Name.
+     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 1; + * + * @param value The bytes for subnetwork to set. + * @return This builder for chaining. + */ + public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subnetwork_ = value; + onChanged(); + return this; + } + + private java.lang.Object network_ = ""; + /** + * + * + *
+     * Network Name.
+     * Example: projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 2; + * + * @return The network. + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Network Name.
+     * Example: projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 2; + * + * @return The bytes for network. + */ + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Network Name.
+     * Example: projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 2; + * + * @param value The network to set. + * @return This builder for chaining. + */ + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + network_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Network Name.
+     * Example: projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 2; + * + * @return This builder for chaining. + */ + public Builder clearNetwork() { + + network_ = getDefaultInstance().getNetwork(); + onChanged(); + return this; + } + /** + * + * + *
+     * Network Name.
+     * Example: projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 2; + * + * @param value The bytes for network to set. + * @return This builder for chaining. + */ + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + network_ = value; + onChanged(); + return this; + } + + private java.lang.Object ipCidrRange_ = ""; + /** + * + * + *
+     * The range of internal addresses that are owned by this subnetwork.
+     * 
+ * + * string ip_cidr_range = 3; + * + * @return The ipCidrRange. + */ + public java.lang.String getIpCidrRange() { + java.lang.Object ref = ipCidrRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipCidrRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The range of internal addresses that are owned by this subnetwork.
+     * 
+ * + * string ip_cidr_range = 3; + * + * @return The bytes for ipCidrRange. + */ + public com.google.protobuf.ByteString getIpCidrRangeBytes() { + java.lang.Object ref = ipCidrRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipCidrRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The range of internal addresses that are owned by this subnetwork.
+     * 
+ * + * string ip_cidr_range = 3; + * + * @param value The ipCidrRange to set. + * @return This builder for chaining. + */ + public Builder setIpCidrRange(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ipCidrRange_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The range of internal addresses that are owned by this subnetwork.
+     * 
+ * + * string ip_cidr_range = 3; + * + * @return This builder for chaining. + */ + public Builder clearIpCidrRange() { + + ipCidrRange_ = getDefaultInstance().getIpCidrRange(); + onChanged(); + return this; + } + /** + * + * + *
+     * The range of internal addresses that are owned by this subnetwork.
+     * 
+ * + * string ip_cidr_range = 3; + * + * @param value The bytes for ipCidrRange to set. + * @return This builder for chaining. + */ + public Builder setIpCidrRangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ipCidrRange_ = value; + onChanged(); + return this; + } + + private java.util.List + secondaryIpRanges_ = java.util.Collections.emptyList(); + + private void ensureSecondaryIpRangesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + secondaryIpRanges_ = + new java.util.ArrayList( + secondaryIpRanges_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.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_ & ~0x00000001); + 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_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + secondaryIpRanges_ = null; + } + return secondaryIpRangesBuilder_; + } + + private java.lang.Object statusMessage_ = ""; + /** + * + * + *
+     * A human readable status message representing the reasons for cases where
+     * the caller cannot use the secondary ranges under the subnet. For example if
+     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+     * permission message will be given by status_message.
+     * 
+ * + * string status_message = 5; + * + * @return The statusMessage. + */ + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A human readable status message representing the reasons for cases where
+     * the caller cannot use the secondary ranges under the subnet. For example if
+     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+     * permission message will be given by status_message.
+     * 
+ * + * string status_message = 5; + * + * @return The bytes for statusMessage. + */ + public com.google.protobuf.ByteString getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A human readable status message representing the reasons for cases where
+     * the caller cannot use the secondary ranges under the subnet. For example if
+     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+     * permission message will be given by status_message.
+     * 
+ * + * string status_message = 5; + * + * @param value The statusMessage to set. + * @return This builder for chaining. + */ + public Builder setStatusMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + statusMessage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A human readable status message representing the reasons for cases where
+     * the caller cannot use the secondary ranges under the subnet. For example if
+     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+     * permission message will be given by status_message.
+     * 
+ * + * string status_message = 5; + * + * @return This builder for chaining. + */ + public Builder clearStatusMessage() { + + statusMessage_ = getDefaultInstance().getStatusMessage(); + onChanged(); + return this; + } + /** + * + * + *
+     * A human readable status message representing the reasons for cases where
+     * the caller cannot use the secondary ranges under the subnet. For example if
+     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+     * permission message will be given by status_message.
+     * 
+ * + * string status_message = 5; + * + * @param value The bytes for statusMessage to set. + * @return This builder for chaining. + */ + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + statusMessage_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..1b967b99c28e --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkOrBuilder.java @@ -0,0 +1,193 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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 new file mode 100644 index 000000000000..f8e42cf4aef6 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkSecondaryRange.java @@ -0,0 +1,1168 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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 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.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; + private volatile java.lang.Object rangeName_; + /** + * + * + *
+   * The name associated with this subnetwork secondary range, used when adding
+   * an alias IP range to a VM instance.
+   * 
+ * + * string range_name = 1; + * + * @return The rangeName. + */ + @java.lang.Override + public java.lang.String getRangeName() { + java.lang.Object ref = rangeName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rangeName_ = s; + return s; + } + } + /** + * + * + *
+   * The name associated with this subnetwork secondary range, used when adding
+   * an alias IP range to a VM instance.
+   * 
+ * + * string range_name = 1; + * + * @return The bytes for rangeName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRangeNameBytes() { + java.lang.Object ref = rangeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rangeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IP_CIDR_RANGE_FIELD_NUMBER = 2; + private volatile java.lang.Object ipCidrRange_; + /** + * + * + *
+   * The range of IP addresses belonging to this subnetwork secondary range.
+   * 
+ * + * string ip_cidr_range = 2; + * + * @return The ipCidrRange. + */ + @java.lang.Override + public java.lang.String getIpCidrRange() { + java.lang.Object ref = ipCidrRange_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipCidrRange_ = s; + return s; + } + } + /** + * + * + *
+   * The range of IP addresses belonging to this subnetwork secondary range.
+   * 
+ * + * string ip_cidr_range = 2; + * + * @return The bytes for ipCidrRange. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIpCidrRangeBytes() { + java.lang.Object ref = ipCidrRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipCidrRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 3; + private int status_; + /** + * + * + *
+   * This field is to determine the status of the secondary range programmably.
+   * 
+ * + * .google.container.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() { + @SuppressWarnings("deprecation") + com.google.container.v1.UsableSubnetworkSecondaryRange.Status result = + com.google.container.v1.UsableSubnetworkSecondaryRange.Status.valueOf(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(); + 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); + result.rangeName_ = rangeName_; + result.ipCidrRange_ = ipCidrRange_; + result.status_ = status_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + if (!other.getIpCidrRange().isEmpty()) { + ipCidrRange_ = other.ipCidrRange_; + 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(); + + break; + } // case 10 + case 18: + { + ipCidrRange_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + status_ = input.readEnum(); + + 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 java.lang.Object rangeName_ = ""; + /** + * + * + *
+     * The name associated with this subnetwork secondary range, used when adding
+     * an alias IP range to a VM instance.
+     * 
+ * + * string range_name = 1; + * + * @return The rangeName. + */ + public java.lang.String getRangeName() { + java.lang.Object ref = rangeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rangeName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name associated with this subnetwork secondary range, used when adding
+     * an alias IP range to a VM instance.
+     * 
+ * + * string range_name = 1; + * + * @return The bytes for rangeName. + */ + public com.google.protobuf.ByteString getRangeNameBytes() { + java.lang.Object ref = rangeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rangeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name associated with this subnetwork secondary range, used when adding
+     * an alias IP range to a VM instance.
+     * 
+ * + * string range_name = 1; + * + * @param value The rangeName to set. + * @return This builder for chaining. + */ + public Builder setRangeName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + rangeName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name associated with this subnetwork secondary range, used when adding
+     * an alias IP range to a VM instance.
+     * 
+ * + * string range_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearRangeName() { + + rangeName_ = getDefaultInstance().getRangeName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name associated with this subnetwork secondary range, used when adding
+     * an alias IP range to a VM instance.
+     * 
+ * + * string range_name = 1; + * + * @param value The bytes for rangeName to set. + * @return This builder for chaining. + */ + public Builder setRangeNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + rangeName_ = value; + onChanged(); + return this; + } + + private java.lang.Object ipCidrRange_ = ""; + /** + * + * + *
+     * The range of IP addresses belonging to this subnetwork secondary range.
+     * 
+ * + * string ip_cidr_range = 2; + * + * @return The ipCidrRange. + */ + public java.lang.String getIpCidrRange() { + java.lang.Object ref = ipCidrRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipCidrRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The range of IP addresses belonging to this subnetwork secondary range.
+     * 
+ * + * string ip_cidr_range = 2; + * + * @return The bytes for ipCidrRange. + */ + public com.google.protobuf.ByteString getIpCidrRangeBytes() { + java.lang.Object ref = ipCidrRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipCidrRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The range of IP addresses belonging to this subnetwork secondary range.
+     * 
+ * + * string ip_cidr_range = 2; + * + * @param value The ipCidrRange to set. + * @return This builder for chaining. + */ + public Builder setIpCidrRange(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ipCidrRange_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The range of IP addresses belonging to this subnetwork secondary range.
+     * 
+ * + * string ip_cidr_range = 2; + * + * @return This builder for chaining. + */ + public Builder clearIpCidrRange() { + + ipCidrRange_ = getDefaultInstance().getIpCidrRange(); + onChanged(); + return this; + } + /** + * + * + *
+     * The range of IP addresses belonging to this subnetwork secondary range.
+     * 
+ * + * string ip_cidr_range = 2; + * + * @param value The bytes for ipCidrRange to set. + * @return This builder for chaining. + */ + public Builder setIpCidrRangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ipCidrRange_ = value; + onChanged(); + return this; + } + + private int status_ = 0; + /** + * + * + *
+     * This field is to determine the status of the secondary range programmably.
+     * 
+ * + * .google.container.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; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1.UsableSubnetworkSecondaryRange.Status result = + com.google.container.v1.UsableSubnetworkSecondaryRange.Status.valueOf(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(); + } + + 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() { + + 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 new file mode 100644 index 000000000000..44fc87c7f346 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkSecondaryRangeOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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 new file mode 100644 index 000000000000..4bd6b6eac1d0 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VerticalPodAutoscaling.java @@ -0,0 +1,530 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * 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(); + 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); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.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(); + + 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 boolean enabled_; + /** + * + * + *
+     * Enables vertical pod autoscaling.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Enables vertical pod autoscaling.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Enables vertical pod autoscaling.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..e03a9612b844 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VerticalPodAutoscalingOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +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 new file mode 100644 index 000000000000..608617fa322b --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VirtualNIC.java @@ -0,0 +1,523 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Configuration of gVNIC feature.
+ * 
+ * + * Protobuf type {@code google.container.v1.VirtualNIC} + */ +public final class VirtualNIC extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.VirtualNIC) + VirtualNICOrBuilder { + private static final long serialVersionUID = 0L; + // Use VirtualNIC.newBuilder() to construct. + private VirtualNIC(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VirtualNIC() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VirtualNIC(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_VirtualNIC_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_VirtualNIC_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.VirtualNIC.class, + com.google.container.v1.VirtualNIC.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether gVNIC features are enabled in the node pool.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + 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(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_VirtualNIC_descriptor; + } + + @java.lang.Override + public com.google.container.v1.VirtualNIC getDefaultInstanceForType() { + return com.google.container.v1.VirtualNIC.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.VirtualNIC build() { + com.google.container.v1.VirtualNIC result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.VirtualNIC buildPartial() { + com.google.container.v1.VirtualNIC result = new com.google.container.v1.VirtualNIC(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.VirtualNIC) { + return mergeFrom((com.google.container.v1.VirtualNIC) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.VirtualNIC other) { + if (other == com.google.container.v1.VirtualNIC.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 boolean enabled_; + /** + * + * + *
+     * Whether gVNIC features are enabled in the node pool.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether gVNIC features are enabled in the node pool.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether gVNIC features are enabled in the node pool.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.VirtualNIC) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.VirtualNIC) + private static final com.google.container.v1.VirtualNIC DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.VirtualNIC(); + } + + public static com.google.container.v1.VirtualNIC getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VirtualNIC parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..64ae3647a714 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VirtualNICOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface VirtualNICOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.VirtualNIC) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether gVNIC features are enabled in the node pool.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/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 new file mode 100644 index 000000000000..2abb91f76d62 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadIdentityConfig.java @@ -0,0 +1,616 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+ * policies.
+ * 
+ * + * Protobuf type {@code google.container.v1.WorkloadIdentityConfig} + */ +public final class WorkloadIdentityConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.WorkloadIdentityConfig) + WorkloadIdentityConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkloadIdentityConfig.newBuilder() to construct. + private WorkloadIdentityConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WorkloadIdentityConfig() { + workloadPool_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WorkloadIdentityConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_WorkloadIdentityConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_WorkloadIdentityConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.WorkloadIdentityConfig.class, + com.google.container.v1.WorkloadIdentityConfig.Builder.class); + } + + public static final int WORKLOAD_POOL_FIELD_NUMBER = 2; + private volatile java.lang.Object workloadPool_; + /** + * + * + *
+   * The workload pool to attach all Kubernetes service accounts to.
+   * 
+ * + * string workload_pool = 2; + * + * @return The workloadPool. + */ + @java.lang.Override + public java.lang.String getWorkloadPool() { + java.lang.Object ref = workloadPool_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workloadPool_ = s; + return s; + } + } + /** + * + * + *
+   * The workload pool to attach all Kubernetes service accounts to.
+   * 
+ * + * string workload_pool = 2; + * + * @return The bytes for workloadPool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWorkloadPoolBytes() { + java.lang.Object ref = workloadPool_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workloadPool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + workloadPool_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_WorkloadIdentityConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.WorkloadIdentityConfig getDefaultInstanceForType() { + return com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.WorkloadIdentityConfig build() { + com.google.container.v1.WorkloadIdentityConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.WorkloadIdentityConfig buildPartial() { + com.google.container.v1.WorkloadIdentityConfig result = + new com.google.container.v1.WorkloadIdentityConfig(this); + result.workloadPool_ = workloadPool_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.WorkloadIdentityConfig) { + return mergeFrom((com.google.container.v1.WorkloadIdentityConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.WorkloadIdentityConfig other) { + if (other == com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance()) return this; + if (!other.getWorkloadPool().isEmpty()) { + workloadPool_ = other.workloadPool_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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(); + + 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 java.lang.Object workloadPool_ = ""; + /** + * + * + *
+     * The workload pool to attach all Kubernetes service accounts to.
+     * 
+ * + * string workload_pool = 2; + * + * @return The workloadPool. + */ + public java.lang.String getWorkloadPool() { + java.lang.Object ref = workloadPool_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workloadPool_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The workload pool to attach all Kubernetes service accounts to.
+     * 
+ * + * string workload_pool = 2; + * + * @return The bytes for workloadPool. + */ + public com.google.protobuf.ByteString getWorkloadPoolBytes() { + java.lang.Object ref = workloadPool_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workloadPool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The workload pool to attach all Kubernetes service accounts to.
+     * 
+ * + * string workload_pool = 2; + * + * @param value The workloadPool to set. + * @return This builder for chaining. + */ + public Builder setWorkloadPool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + workloadPool_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The workload pool to attach all Kubernetes service accounts to.
+     * 
+ * + * string workload_pool = 2; + * + * @return This builder for chaining. + */ + public Builder clearWorkloadPool() { + + workloadPool_ = getDefaultInstance().getWorkloadPool(); + onChanged(); + return this; + } + /** + * + * + *
+     * The workload pool to attach all Kubernetes service accounts to.
+     * 
+ * + * string workload_pool = 2; + * + * @param value The bytes for workloadPool to set. + * @return This builder for chaining. + */ + public Builder setWorkloadPoolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + workloadPool_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.WorkloadIdentityConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.WorkloadIdentityConfig) + private static final com.google.container.v1.WorkloadIdentityConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.WorkloadIdentityConfig(); + } + + public static com.google.container.v1.WorkloadIdentityConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkloadIdentityConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..759c92b49796 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadIdentityConfigOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface WorkloadIdentityConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.WorkloadIdentityConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The workload pool to attach all Kubernetes service accounts to.
+   * 
+ * + * string workload_pool = 2; + * + * @return The workloadPool. + */ + java.lang.String getWorkloadPool(); + /** + * + * + *
+   * The workload pool to attach all Kubernetes service accounts to.
+   * 
+ * + * string workload_pool = 2; + * + * @return The bytes for workloadPool. + */ + com.google.protobuf.ByteString getWorkloadPoolBytes(); +} diff --git a/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 new file mode 100644 index 000000000000..4d280d9951f9 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadMetadataConfig.java @@ -0,0 +1,764 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * WorkloadMetadataConfig defines the metadata configuration to expose to
+ * workloads on the node pool.
+ * 
+ * + * Protobuf type {@code google.container.v1.WorkloadMetadataConfig} + */ +public final class WorkloadMetadataConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.WorkloadMetadataConfig) + WorkloadMetadataConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkloadMetadataConfig.newBuilder() to construct. + private WorkloadMetadataConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WorkloadMetadataConfig() { + mode_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WorkloadMetadataConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_WorkloadMetadataConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_WorkloadMetadataConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.WorkloadMetadataConfig.class, + com.google.container.v1.WorkloadMetadataConfig.Builder.class); + } + + /** + * + * + *
+   * Mode is the configuration for how to expose metadata to workloads running
+   * on the node.
+   * 
+ * + * Protobuf enum {@code google.container.v1.WorkloadMetadataConfig.Mode} + */ + public enum Mode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not set.
+     * 
+ * + * MODE_UNSPECIFIED = 0; + */ + MODE_UNSPECIFIED(0), + /** + * + * + *
+     * Expose all Compute Engine metadata to pods.
+     * 
+ * + * GCE_METADATA = 1; + */ + GCE_METADATA(1), + /** + * + * + *
+     * Run the GKE Metadata Server on this node. The GKE Metadata Server exposes
+     * a metadata API to workloads that is compatible with the V1 Compute
+     * Metadata APIs exposed by the Compute Engine and App Engine Metadata
+     * Servers. This feature can only be enabled if Workload Identity is enabled
+     * at the cluster level.
+     * 
+ * + * GKE_METADATA = 2; + */ + GKE_METADATA(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not set.
+     * 
+ * + * MODE_UNSPECIFIED = 0; + */ + public static final int MODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Expose all Compute Engine metadata to pods.
+     * 
+ * + * GCE_METADATA = 1; + */ + public static final int GCE_METADATA_VALUE = 1; + /** + * + * + *
+     * Run the GKE Metadata Server on this node. The GKE Metadata Server exposes
+     * a metadata API to workloads that is compatible with the V1 Compute
+     * Metadata APIs exposed by the Compute Engine and App Engine Metadata
+     * Servers. This feature can only be enabled if Workload Identity is enabled
+     * at the cluster level.
+     * 
+ * + * GKE_METADATA = 2; + */ + public static final int GKE_METADATA_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Mode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Mode forNumber(int value) { + switch (value) { + case 0: + return MODE_UNSPECIFIED; + case 1: + return GCE_METADATA; + case 2: + return GKE_METADATA; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Mode findValueByNumber(int number) { + return Mode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1.WorkloadMetadataConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final Mode[] VALUES = values(); + + public static Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Mode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.WorkloadMetadataConfig.Mode) + } + + public static final int MODE_FIELD_NUMBER = 2; + private int mode_; + /** + * + * + *
+   * Mode is the configuration for how to expose metadata to workloads running
+   * on the node pool.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + /** + * + * + *
+   * Mode is the configuration for how to expose metadata to workloads running
+   * on the node pool.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; + * + * @return The mode. + */ + @java.lang.Override + public com.google.container.v1.WorkloadMetadataConfig.Mode getMode() { + @SuppressWarnings("deprecation") + com.google.container.v1.WorkloadMetadataConfig.Mode result = + com.google.container.v1.WorkloadMetadataConfig.Mode.valueOf(mode_); + return result == null + ? com.google.container.v1.WorkloadMetadataConfig.Mode.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (mode_ != com.google.container.v1.WorkloadMetadataConfig.Mode.MODE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, mode_); + } + 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(); + mode_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_WorkloadMetadataConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.WorkloadMetadataConfig getDefaultInstanceForType() { + return com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.WorkloadMetadataConfig build() { + com.google.container.v1.WorkloadMetadataConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.WorkloadMetadataConfig buildPartial() { + com.google.container.v1.WorkloadMetadataConfig result = + new com.google.container.v1.WorkloadMetadataConfig(this); + result.mode_ = mode_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.WorkloadMetadataConfig) { + return mergeFrom((com.google.container.v1.WorkloadMetadataConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.WorkloadMetadataConfig other) { + if (other == com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance()) return this; + if (other.mode_ != 0) { + setModeValue(other.getModeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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(); + + 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 mode_ = 0; + /** + * + * + *
+     * Mode is the configuration for how to expose metadata to workloads running
+     * on the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + /** + * + * + *
+     * Mode is the configuration for how to expose metadata to workloads running
+     * on the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; + * + * @param value The enum numeric value on the wire for mode to set. + * @return This builder for chaining. + */ + public Builder setModeValue(int value) { + + mode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Mode is the configuration for how to expose metadata to workloads running
+     * on the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; + * + * @return The mode. + */ + @java.lang.Override + public com.google.container.v1.WorkloadMetadataConfig.Mode getMode() { + @SuppressWarnings("deprecation") + com.google.container.v1.WorkloadMetadataConfig.Mode result = + com.google.container.v1.WorkloadMetadataConfig.Mode.valueOf(mode_); + return result == null + ? com.google.container.v1.WorkloadMetadataConfig.Mode.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Mode is the configuration for how to expose metadata to workloads running
+     * on the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; + * + * @param value The mode to set. + * @return This builder for chaining. + */ + public Builder setMode(com.google.container.v1.WorkloadMetadataConfig.Mode value) { + if (value == null) { + throw new NullPointerException(); + } + + mode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Mode is the configuration for how to expose metadata to workloads running
+     * on the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; + * + * @return This builder for chaining. + */ + public Builder clearMode() { + + mode_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.WorkloadMetadataConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.WorkloadMetadataConfig) + private static final com.google.container.v1.WorkloadMetadataConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.WorkloadMetadataConfig(); + } + + public static com.google.container.v1.WorkloadMetadataConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkloadMetadataConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..d24b40fb5cd6 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadMetadataConfigOrBuilder.java @@ -0,0 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface WorkloadMetadataConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.WorkloadMetadataConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Mode is the configuration for how to expose metadata to workloads running
+   * on the node pool.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; + * + * @return The enum numeric value on the wire for mode. + */ + int getModeValue(); + /** + * + * + *
+   * Mode is the configuration for how to expose metadata to workloads running
+   * on the node pool.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; + * + * @return The mode. + */ + com.google.container.v1.WorkloadMetadataConfig.Mode getMode(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto b/java-container/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto similarity index 100% rename from owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto rename to java-container/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto 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 new file mode 100644 index 000000000000..0fea13e3f7e8 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfig.java @@ -0,0 +1,1299 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * AcceleratorConfig represents a Hardware Accelerator request.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.AcceleratorConfig} + */ +public final class AcceleratorConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.AcceleratorConfig) + AcceleratorConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use AcceleratorConfig.newBuilder() to construct. + private AcceleratorConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AcceleratorConfig() { + acceleratorType_ = ""; + gpuPartitionSize_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AcceleratorConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * The number of the accelerator cards exposed to an instance.
+   * 
+ * + * int64 accelerator_count = 1; + * + * @return The acceleratorCount. + */ + @java.lang.Override + public long getAcceleratorCount() { + return acceleratorCount_; + } + + public static final int ACCELERATOR_TYPE_FIELD_NUMBER = 2; + private volatile java.lang.Object acceleratorType_; + /** + * + * + *
+   * The accelerator type resource name. List of supported accelerators
+   * [here](https://cloud.google.com/compute/docs/gpus)
+   * 
+ * + * string accelerator_type = 2; + * + * @return The acceleratorType. + */ + @java.lang.Override + public java.lang.String getAcceleratorType() { + java.lang.Object ref = acceleratorType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + acceleratorType_ = s; + return s; + } + } + /** + * + * + *
+   * The accelerator type resource name. List of supported accelerators
+   * [here](https://cloud.google.com/compute/docs/gpus)
+   * 
+ * + * string accelerator_type = 2; + * + * @return The bytes for acceleratorType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAcceleratorTypeBytes() { + java.lang.Object ref = acceleratorType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + acceleratorType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GPU_PARTITION_SIZE_FIELD_NUMBER = 3; + private volatile java.lang.Object gpuPartitionSize_; + /** + * + * + *
+   * Size of partitions to create on the GPU. Valid values are described in the
+   * NVIDIA [mig user
+   * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+   * 
+ * + * string gpu_partition_size = 3; + * + * @return The gpuPartitionSize. + */ + @java.lang.Override + public java.lang.String getGpuPartitionSize() { + java.lang.Object ref = gpuPartitionSize_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gpuPartitionSize_ = s; + return s; + } + } + /** + * + * + *
+   * Size of partitions to create on the GPU. Valid values are described in the
+   * NVIDIA [mig user
+   * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+   * 
+ * + * string gpu_partition_size = 3; + * + * @return The bytes for gpuPartitionSize. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGpuPartitionSizeBytes() { + java.lang.Object ref = gpuPartitionSize_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gpuPartitionSize_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAX_TIME_SHARED_CLIENTS_PER_GPU_FIELD_NUMBER = 4; + 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=4167 + * @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_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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()); + } + 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()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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(); + } + 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(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + acceleratorCount_ = 0L; + + acceleratorType_ = ""; + + gpuPartitionSize_ = ""; + + maxTimeSharedClientsPerGpu_ = 0L; + + if (gpuSharingConfigBuilder_ == null) { + gpuSharingConfig_ = null; + } else { + gpuSharingConfigBuilder_.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_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); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.acceleratorCount_ = acceleratorCount_; + result.acceleratorType_ = acceleratorType_; + result.gpuPartitionSize_ = gpuPartitionSize_; + result.maxTimeSharedClientsPerGpu_ = maxTimeSharedClientsPerGpu_; + if (((from_bitField0_ & 0x00000001) != 0)) { + if (gpuSharingConfigBuilder_ == null) { + result.gpuSharingConfig_ = gpuSharingConfig_; + } else { + result.gpuSharingConfig_ = gpuSharingConfigBuilder_.build(); + } + to_bitField0_ |= 0x00000001; + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.AcceleratorConfig) { + return mergeFrom((com.google.container.v1beta1.AcceleratorConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.AcceleratorConfig other) { + if (other == com.google.container.v1beta1.AcceleratorConfig.getDefaultInstance()) return this; + if (other.getAcceleratorCount() != 0L) { + setAcceleratorCount(other.getAcceleratorCount()); + } + if (!other.getAcceleratorType().isEmpty()) { + acceleratorType_ = other.acceleratorType_; + onChanged(); + } + if (!other.getGpuPartitionSize().isEmpty()) { + gpuPartitionSize_ = other.gpuPartitionSize_; + onChanged(); + } + if (other.getMaxTimeSharedClientsPerGpu() != 0L) { + setMaxTimeSharedClientsPerGpu(other.getMaxTimeSharedClientsPerGpu()); + } + if (other.hasGpuSharingConfig()) { + mergeGpuSharingConfig(other.getGpuSharingConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 8 + case 18: + { + acceleratorType_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + gpuPartitionSize_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: + { + maxTimeSharedClientsPerGpu_ = input.readInt64(); + + break; + } // case 32 + case 42: + { + input.readMessage( + getGpuSharingConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + 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 long acceleratorCount_; + /** + * + * + *
+     * The number of the accelerator cards exposed to an instance.
+     * 
+ * + * int64 accelerator_count = 1; + * + * @return The acceleratorCount. + */ + @java.lang.Override + public long getAcceleratorCount() { + return acceleratorCount_; + } + /** + * + * + *
+     * The number of the accelerator cards exposed to an instance.
+     * 
+ * + * int64 accelerator_count = 1; + * + * @param value The acceleratorCount to set. + * @return This builder for chaining. + */ + public Builder setAcceleratorCount(long value) { + + acceleratorCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of the accelerator cards exposed to an instance.
+     * 
+ * + * int64 accelerator_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearAcceleratorCount() { + + acceleratorCount_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object acceleratorType_ = ""; + /** + * + * + *
+     * The accelerator type resource name. List of supported accelerators
+     * [here](https://cloud.google.com/compute/docs/gpus)
+     * 
+ * + * string accelerator_type = 2; + * + * @return The acceleratorType. + */ + public java.lang.String getAcceleratorType() { + java.lang.Object ref = acceleratorType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + acceleratorType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The accelerator type resource name. List of supported accelerators
+     * [here](https://cloud.google.com/compute/docs/gpus)
+     * 
+ * + * string accelerator_type = 2; + * + * @return The bytes for acceleratorType. + */ + public com.google.protobuf.ByteString getAcceleratorTypeBytes() { + java.lang.Object ref = acceleratorType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + acceleratorType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The accelerator type resource name. List of supported accelerators
+     * [here](https://cloud.google.com/compute/docs/gpus)
+     * 
+ * + * string accelerator_type = 2; + * + * @param value The acceleratorType to set. + * @return This builder for chaining. + */ + public Builder setAcceleratorType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + acceleratorType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The accelerator type resource name. List of supported accelerators
+     * [here](https://cloud.google.com/compute/docs/gpus)
+     * 
+ * + * string accelerator_type = 2; + * + * @return This builder for chaining. + */ + public Builder clearAcceleratorType() { + + acceleratorType_ = getDefaultInstance().getAcceleratorType(); + onChanged(); + return this; + } + /** + * + * + *
+     * The accelerator type resource name. List of supported accelerators
+     * [here](https://cloud.google.com/compute/docs/gpus)
+     * 
+ * + * string accelerator_type = 2; + * + * @param value The bytes for acceleratorType to set. + * @return This builder for chaining. + */ + public Builder setAcceleratorTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + acceleratorType_ = value; + onChanged(); + return this; + } + + private java.lang.Object gpuPartitionSize_ = ""; + /** + * + * + *
+     * Size of partitions to create on the GPU. Valid values are described in the
+     * NVIDIA [mig user
+     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+     * 
+ * + * string gpu_partition_size = 3; + * + * @return The gpuPartitionSize. + */ + public java.lang.String getGpuPartitionSize() { + java.lang.Object ref = gpuPartitionSize_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gpuPartitionSize_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Size of partitions to create on the GPU. Valid values are described in the
+     * NVIDIA [mig user
+     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+     * 
+ * + * string gpu_partition_size = 3; + * + * @return The bytes for gpuPartitionSize. + */ + public com.google.protobuf.ByteString getGpuPartitionSizeBytes() { + java.lang.Object ref = gpuPartitionSize_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gpuPartitionSize_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Size of partitions to create on the GPU. Valid values are described in the
+     * NVIDIA [mig user
+     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+     * 
+ * + * string gpu_partition_size = 3; + * + * @param value The gpuPartitionSize to set. + * @return This builder for chaining. + */ + public Builder setGpuPartitionSize(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + gpuPartitionSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Size of partitions to create on the GPU. Valid values are described in the
+     * NVIDIA [mig user
+     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+     * 
+ * + * string gpu_partition_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearGpuPartitionSize() { + + gpuPartitionSize_ = getDefaultInstance().getGpuPartitionSize(); + onChanged(); + return this; + } + /** + * + * + *
+     * Size of partitions to create on the GPU. Valid values are described in the
+     * NVIDIA [mig user
+     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+     * 
+ * + * string gpu_partition_size = 3; + * + * @param value The bytes for gpuPartitionSize to set. + * @return This builder for chaining. + */ + public Builder setGpuPartitionSizeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + gpuPartitionSize_ = value; + onChanged(); + return this; + } + + 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=4167 + * @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=4167 + * @param value The maxTimeSharedClientsPerGpu to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setMaxTimeSharedClientsPerGpu(long value) { + + maxTimeSharedClientsPerGpu_ = value; + 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=4167 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearMaxTimeSharedClientsPerGpu() { + + 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_ & 0x00000001) != 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; + onChanged(); + } else { + gpuSharingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + 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(); + onChanged(); + } else { + gpuSharingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + 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_ & 0x00000001) != 0) + && gpuSharingConfig_ != null + && gpuSharingConfig_ + != com.google.container.v1beta1.GPUSharingConfig.getDefaultInstance()) { + gpuSharingConfig_ = + com.google.container.v1beta1.GPUSharingConfig.newBuilder(gpuSharingConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + gpuSharingConfig_ = value; + } + onChanged(); + } else { + gpuSharingConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + * + * + *
+     * The configuration for GPU sharing options.
+     * 
+ * + * optional .google.container.v1beta1.GPUSharingConfig gpu_sharing_config = 5; + */ + public Builder clearGpuSharingConfig() { + if (gpuSharingConfigBuilder_ == null) { + gpuSharingConfig_ = null; + onChanged(); + } else { + gpuSharingConfigBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + 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_ |= 0x00000001; + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..c875e13454ad --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfigOrBuilder.java @@ -0,0 +1,145 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface AcceleratorConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.AcceleratorConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The number of the accelerator cards exposed to an instance.
+   * 
+ * + * int64 accelerator_count = 1; + * + * @return The acceleratorCount. + */ + long getAcceleratorCount(); + + /** + * + * + *
+   * The accelerator type resource name. List of supported accelerators
+   * [here](https://cloud.google.com/compute/docs/gpus)
+   * 
+ * + * string accelerator_type = 2; + * + * @return The acceleratorType. + */ + java.lang.String getAcceleratorType(); + /** + * + * + *
+   * The accelerator type resource name. List of supported accelerators
+   * [here](https://cloud.google.com/compute/docs/gpus)
+   * 
+ * + * string accelerator_type = 2; + * + * @return The bytes for acceleratorType. + */ + com.google.protobuf.ByteString getAcceleratorTypeBytes(); + + /** + * + * + *
+   * 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=4167 + * @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(); +} 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 new file mode 100644 index 000000000000..69c48081c1fc --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfig.java @@ -0,0 +1,4020 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration for the addons that can be automatically spun up in the
+ * cluster, enabling additional functionality.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.AddonsConfig} + */ +public final class AddonsConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.AddonsConfig) + AddonsConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use AddonsConfig.newBuilder() to construct. + private AddonsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AddonsConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AddonsConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AddonsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AddonsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AddonsConfig.class, + com.google.container.v1beta1.AddonsConfig.Builder.class); + } + + public static final int HTTP_LOAD_BALANCING_FIELD_NUMBER = 1; + private com.google.container.v1beta1.HttpLoadBalancing httpLoadBalancing_; + /** + * + * + *
+   * Configuration for the HTTP (L7) load balancing controller addon, which
+   * makes it easy to set up HTTP load balancers for services in a cluster.
+   * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + * + * @return Whether the httpLoadBalancing field is set. + */ + @java.lang.Override + public boolean hasHttpLoadBalancing() { + return httpLoadBalancing_ != null; + } + /** + * + * + *
+   * Configuration for the HTTP (L7) load balancing controller addon, which
+   * makes it easy to set up HTTP load balancers for services in a cluster.
+   * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + * + * @return The httpLoadBalancing. + */ + @java.lang.Override + public com.google.container.v1beta1.HttpLoadBalancing getHttpLoadBalancing() { + return httpLoadBalancing_ == null + ? com.google.container.v1beta1.HttpLoadBalancing.getDefaultInstance() + : httpLoadBalancing_; + } + /** + * + * + *
+   * Configuration for the HTTP (L7) load balancing controller addon, which
+   * makes it easy to set up HTTP load balancers for services in a cluster.
+   * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.HttpLoadBalancingOrBuilder getHttpLoadBalancingOrBuilder() { + return getHttpLoadBalancing(); + } + + public static final int HORIZONTAL_POD_AUTOSCALING_FIELD_NUMBER = 2; + private com.google.container.v1beta1.HorizontalPodAutoscaling horizontalPodAutoscaling_; + /** + * + * + *
+   * Configuration for the horizontal pod autoscaling feature, which
+   * increases or decreases the number of replica pods a replication controller
+   * has based on the resource usage of the existing pods.
+   * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * + * @return Whether the horizontalPodAutoscaling field is set. + */ + @java.lang.Override + public boolean hasHorizontalPodAutoscaling() { + return horizontalPodAutoscaling_ != null; + } + /** + * + * + *
+   * Configuration for the horizontal pod autoscaling feature, which
+   * increases or decreases the number of replica pods a replication controller
+   * has based on the resource usage of the existing pods.
+   * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * + * @return The horizontalPodAutoscaling. + */ + @java.lang.Override + public com.google.container.v1beta1.HorizontalPodAutoscaling getHorizontalPodAutoscaling() { + return horizontalPodAutoscaling_ == null + ? com.google.container.v1beta1.HorizontalPodAutoscaling.getDefaultInstance() + : horizontalPodAutoscaling_; + } + /** + * + * + *
+   * Configuration for the horizontal pod autoscaling feature, which
+   * increases or decreases the number of replica pods a replication controller
+   * has based on the resource usage of the existing pods.
+   * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + @java.lang.Override + public com.google.container.v1beta1.HorizontalPodAutoscalingOrBuilder + getHorizontalPodAutoscalingOrBuilder() { + return getHorizontalPodAutoscaling(); + } + + public static final int KUBERNETES_DASHBOARD_FIELD_NUMBER = 3; + private com.google.container.v1beta1.KubernetesDashboard kubernetesDashboard_; + /** + * + * + *
+   * Configuration for the Kubernetes Dashboard.
+   * This addon is deprecated, and will be disabled in 1.15. It is recommended
+   * to use the Cloud Console to manage and monitor your Kubernetes clusters,
+   * workloads and applications. For more information, see:
+   * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
+   * 
+ * + * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + * + * @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1051 + * @return Whether the kubernetesDashboard field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasKubernetesDashboard() { + return kubernetesDashboard_ != null; + } + /** + * + * + *
+   * Configuration for the Kubernetes Dashboard.
+   * This addon is deprecated, and will be disabled in 1.15. It is recommended
+   * to use the Cloud Console to manage and monitor your Kubernetes clusters,
+   * workloads and applications. For more information, see:
+   * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
+   * 
+ * + * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + * + * @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1051 + * @return The kubernetesDashboard. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.container.v1beta1.KubernetesDashboard getKubernetesDashboard() { + return kubernetesDashboard_ == null + ? com.google.container.v1beta1.KubernetesDashboard.getDefaultInstance() + : kubernetesDashboard_; + } + /** + * + * + *
+   * Configuration for the Kubernetes Dashboard.
+   * This addon is deprecated, and will be disabled in 1.15. It is recommended
+   * to use the Cloud Console to manage and monitor your Kubernetes clusters,
+   * workloads and applications. For more information, see:
+   * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
+   * 
+ * + * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.container.v1beta1.KubernetesDashboardOrBuilder + getKubernetesDashboardOrBuilder() { + return getKubernetesDashboard(); + } + + public static final int NETWORK_POLICY_CONFIG_FIELD_NUMBER = 4; + private com.google.container.v1beta1.NetworkPolicyConfig networkPolicyConfig_; + /** + * + * + *
+   * Configuration for NetworkPolicy. This only tracks whether the addon
+   * is enabled or not on the Master, it does not track whether network policy
+   * is enabled for the nodes.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + * + * @return Whether the networkPolicyConfig field is set. + */ + @java.lang.Override + public boolean hasNetworkPolicyConfig() { + return networkPolicyConfig_ != null; + } + /** + * + * + *
+   * Configuration for NetworkPolicy. This only tracks whether the addon
+   * is enabled or not on the Master, it does not track whether network policy
+   * is enabled for the nodes.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + * + * @return The networkPolicyConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicyConfig getNetworkPolicyConfig() { + return networkPolicyConfig_ == null + ? com.google.container.v1beta1.NetworkPolicyConfig.getDefaultInstance() + : networkPolicyConfig_; + } + /** + * + * + *
+   * Configuration for NetworkPolicy. This only tracks whether the addon
+   * is enabled or not on the Master, it does not track whether network policy
+   * is enabled for the nodes.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + */ + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicyConfigOrBuilder + getNetworkPolicyConfigOrBuilder() { + return getNetworkPolicyConfig(); + } + + public static final int ISTIO_CONFIG_FIELD_NUMBER = 5; + private com.google.container.v1beta1.IstioConfig istioConfig_; + /** + * + * + *
+   * Configuration for Istio, an open platform to connect, manage, and secure
+   * microservices.
+   * 
+ * + * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; + * + * @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1060 + * @return Whether the istioConfig field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasIstioConfig() { + return istioConfig_ != null; + } + /** + * + * + *
+   * Configuration for Istio, an open platform to connect, manage, and secure
+   * microservices.
+   * 
+ * + * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; + * + * @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1060 + * @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 getIstioConfig(); + } + + public static final int CLOUD_RUN_CONFIG_FIELD_NUMBER = 7; + private com.google.container.v1beta1.CloudRunConfig cloudRunConfig_; + /** + * + * + *
+   * Configuration for the Cloud Run addon. The `IstioConfig` addon must be
+   * enabled in order to enable Cloud Run addon. This option can only be enabled
+   * at cluster creation time.
+   * 
+ * + * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; + * + * @return Whether the cloudRunConfig field is set. + */ + @java.lang.Override + public boolean hasCloudRunConfig() { + return cloudRunConfig_ != null; + } + /** + * + * + *
+   * Configuration for the Cloud Run addon. The `IstioConfig` addon must be
+   * enabled in order to enable Cloud Run addon. This option can only be enabled
+   * at cluster creation time.
+   * 
+ * + * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; + * + * @return The cloudRunConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.CloudRunConfig getCloudRunConfig() { + return cloudRunConfig_ == null + ? com.google.container.v1beta1.CloudRunConfig.getDefaultInstance() + : cloudRunConfig_; + } + /** + * + * + *
+   * Configuration for the Cloud Run addon. The `IstioConfig` addon must be
+   * enabled in order to enable Cloud Run addon. This option can only be enabled
+   * at cluster creation time.
+   * 
+ * + * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; + */ + @java.lang.Override + public com.google.container.v1beta1.CloudRunConfigOrBuilder getCloudRunConfigOrBuilder() { + return getCloudRunConfig(); + } + + public static final int DNS_CACHE_CONFIG_FIELD_NUMBER = 8; + private com.google.container.v1beta1.DnsCacheConfig dnsCacheConfig_; + /** + * + * + *
+   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+   * 
+ * + * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; + * + * @return Whether the dnsCacheConfig field is set. + */ + @java.lang.Override + public boolean hasDnsCacheConfig() { + return dnsCacheConfig_ != null; + } + /** + * + * + *
+   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+   * 
+ * + * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; + * + * @return The dnsCacheConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.DnsCacheConfig getDnsCacheConfig() { + return dnsCacheConfig_ == null + ? com.google.container.v1beta1.DnsCacheConfig.getDefaultInstance() + : dnsCacheConfig_; + } + /** + * + * + *
+   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+   * 
+ * + * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; + */ + @java.lang.Override + public com.google.container.v1beta1.DnsCacheConfigOrBuilder getDnsCacheConfigOrBuilder() { + return getDnsCacheConfig(); + } + + public static final int CONFIG_CONNECTOR_CONFIG_FIELD_NUMBER = 10; + private com.google.container.v1beta1.ConfigConnectorConfig configConnectorConfig_; + /** + * + * + *
+   * Configuration for the ConfigConnector add-on, a Kubernetes
+   * extension to manage hosted GCP services through the Kubernetes API
+   * 
+ * + * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; + * + * @return Whether the configConnectorConfig field is set. + */ + @java.lang.Override + public boolean hasConfigConnectorConfig() { + return configConnectorConfig_ != null; + } + /** + * + * + *
+   * Configuration for the ConfigConnector add-on, a Kubernetes
+   * extension to manage hosted GCP services through the Kubernetes API
+   * 
+ * + * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; + * + * @return The configConnectorConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.ConfigConnectorConfig getConfigConnectorConfig() { + return configConnectorConfig_ == null + ? com.google.container.v1beta1.ConfigConnectorConfig.getDefaultInstance() + : configConnectorConfig_; + } + /** + * + * + *
+   * Configuration for the ConfigConnector add-on, a Kubernetes
+   * extension to manage hosted GCP services through the Kubernetes API
+   * 
+ * + * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; + */ + @java.lang.Override + public com.google.container.v1beta1.ConfigConnectorConfigOrBuilder + getConfigConnectorConfigOrBuilder() { + return getConfigConnectorConfig(); + } + + public static final int GCE_PERSISTENT_DISK_CSI_DRIVER_CONFIG_FIELD_NUMBER = 11; + private com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig + gcePersistentDiskCsiDriverConfig_; + /** + * + * + *
+   * Configuration for the Compute Engine Persistent Disk CSI driver.
+   * 
+ * + * + * .google.container.v1beta1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + * + * @return Whether the gcePersistentDiskCsiDriverConfig field is set. + */ + @java.lang.Override + public boolean hasGcePersistentDiskCsiDriverConfig() { + return gcePersistentDiskCsiDriverConfig_ != null; + } + /** + * + * + *
+   * Configuration for the Compute Engine Persistent Disk CSI driver.
+   * 
+ * + * + * .google.container.v1beta1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + * + * @return The gcePersistentDiskCsiDriverConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig + getGcePersistentDiskCsiDriverConfig() { + return gcePersistentDiskCsiDriverConfig_ == null + ? com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.getDefaultInstance() + : gcePersistentDiskCsiDriverConfig_; + } + /** + * + * + *
+   * Configuration for the Compute Engine Persistent Disk CSI driver.
+   * 
+ * + * + * .google.container.v1beta1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + */ + @java.lang.Override + public com.google.container.v1beta1.GcePersistentDiskCsiDriverConfigOrBuilder + getGcePersistentDiskCsiDriverConfigOrBuilder() { + return getGcePersistentDiskCsiDriverConfig(); + } + + public static final int KALM_CONFIG_FIELD_NUMBER = 12; + private com.google.container.v1beta1.KalmConfig kalmConfig_; + /** + * + * + *
+   * Configuration for the KALM addon, which manages the lifecycle of k8s
+   * applications.
+   * 
+ * + * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; + * + * @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1079 + * @return Whether the kalmConfig field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasKalmConfig() { + return kalmConfig_ != null; + } + /** + * + * + *
+   * Configuration for the KALM addon, which manages the lifecycle of k8s
+   * applications.
+   * 
+ * + * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; + * + * @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1079 + * @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 getKalmConfig(); + } + + public static final int GCP_FILESTORE_CSI_DRIVER_CONFIG_FIELD_NUMBER = 14; + private com.google.container.v1beta1.GcpFilestoreCsiDriverConfig gcpFilestoreCsiDriverConfig_; + /** + * + * + *
+   * Configuration for the GCP Filestore CSI driver.
+   * 
+ * + * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + * + * @return Whether the gcpFilestoreCsiDriverConfig field is set. + */ + @java.lang.Override + public boolean hasGcpFilestoreCsiDriverConfig() { + return gcpFilestoreCsiDriverConfig_ != null; + } + /** + * + * + *
+   * Configuration for the GCP Filestore CSI driver.
+   * 
+ * + * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + * + * @return The gcpFilestoreCsiDriverConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.GcpFilestoreCsiDriverConfig getGcpFilestoreCsiDriverConfig() { + return gcpFilestoreCsiDriverConfig_ == null + ? com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.getDefaultInstance() + : gcpFilestoreCsiDriverConfig_; + } + /** + * + * + *
+   * Configuration for the GCP Filestore CSI driver.
+   * 
+ * + * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + */ + @java.lang.Override + public com.google.container.v1beta1.GcpFilestoreCsiDriverConfigOrBuilder + getGcpFilestoreCsiDriverConfigOrBuilder() { + return getGcpFilestoreCsiDriverConfig(); + } + + public static final int GKE_BACKUP_AGENT_CONFIG_FIELD_NUMBER = 16; + private com.google.container.v1beta1.GkeBackupAgentConfig gkeBackupAgentConfig_; + /** + * + * + *
+   * Configuration for the Backup for GKE agent addon.
+   * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + * + * @return Whether the gkeBackupAgentConfig field is set. + */ + @java.lang.Override + public boolean hasGkeBackupAgentConfig() { + return gkeBackupAgentConfig_ != null; + } + /** + * + * + *
+   * Configuration for the Backup for GKE agent addon.
+   * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + * + * @return The gkeBackupAgentConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.GkeBackupAgentConfig getGkeBackupAgentConfig() { + return gkeBackupAgentConfig_ == null + ? com.google.container.v1beta1.GkeBackupAgentConfig.getDefaultInstance() + : gkeBackupAgentConfig_; + } + /** + * + * + *
+   * Configuration for the Backup for GKE agent addon.
+   * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + @java.lang.Override + public com.google.container.v1beta1.GkeBackupAgentConfigOrBuilder + getGkeBackupAgentConfigOrBuilder() { + return getGkeBackupAgentConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (httpLoadBalancing_ != null) { + output.writeMessage(1, getHttpLoadBalancing()); + } + if (horizontalPodAutoscaling_ != null) { + output.writeMessage(2, getHorizontalPodAutoscaling()); + } + if (kubernetesDashboard_ != null) { + output.writeMessage(3, getKubernetesDashboard()); + } + if (networkPolicyConfig_ != null) { + output.writeMessage(4, getNetworkPolicyConfig()); + } + if (istioConfig_ != null) { + output.writeMessage(5, getIstioConfig()); + } + if (cloudRunConfig_ != null) { + output.writeMessage(7, getCloudRunConfig()); + } + if (dnsCacheConfig_ != null) { + output.writeMessage(8, getDnsCacheConfig()); + } + if (configConnectorConfig_ != null) { + output.writeMessage(10, getConfigConnectorConfig()); + } + if (gcePersistentDiskCsiDriverConfig_ != null) { + output.writeMessage(11, getGcePersistentDiskCsiDriverConfig()); + } + if (kalmConfig_ != null) { + output.writeMessage(12, getKalmConfig()); + } + if (gcpFilestoreCsiDriverConfig_ != null) { + output.writeMessage(14, getGcpFilestoreCsiDriverConfig()); + } + if (gkeBackupAgentConfig_ != null) { + output.writeMessage(16, getGkeBackupAgentConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (httpLoadBalancing_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getHttpLoadBalancing()); + } + if (horizontalPodAutoscaling_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getHorizontalPodAutoscaling()); + } + if (kubernetesDashboard_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getKubernetesDashboard()); + } + if (networkPolicyConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getNetworkPolicyConfig()); + } + if (istioConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getIstioConfig()); + } + if (cloudRunConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCloudRunConfig()); + } + if (dnsCacheConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDnsCacheConfig()); + } + if (configConnectorConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, getConfigConnectorConfig()); + } + if (gcePersistentDiskCsiDriverConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, getGcePersistentDiskCsiDriverConfig()); + } + if (kalmConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getKalmConfig()); + } + if (gcpFilestoreCsiDriverConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, getGcpFilestoreCsiDriverConfig()); + } + if (gkeBackupAgentConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(16, getGkeBackupAgentConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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 (!getUnknownFields().equals(other.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(); + } + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (httpLoadBalancingBuilder_ == null) { + httpLoadBalancing_ = null; + } else { + httpLoadBalancing_ = null; + httpLoadBalancingBuilder_ = null; + } + if (horizontalPodAutoscalingBuilder_ == null) { + horizontalPodAutoscaling_ = null; + } else { + horizontalPodAutoscaling_ = null; + horizontalPodAutoscalingBuilder_ = null; + } + if (kubernetesDashboardBuilder_ == null) { + kubernetesDashboard_ = null; + } else { + kubernetesDashboard_ = null; + kubernetesDashboardBuilder_ = null; + } + if (networkPolicyConfigBuilder_ == null) { + networkPolicyConfig_ = null; + } else { + networkPolicyConfig_ = null; + networkPolicyConfigBuilder_ = null; + } + if (istioConfigBuilder_ == null) { + istioConfig_ = null; + } else { + istioConfig_ = null; + istioConfigBuilder_ = null; + } + if (cloudRunConfigBuilder_ == null) { + cloudRunConfig_ = null; + } else { + cloudRunConfig_ = null; + cloudRunConfigBuilder_ = null; + } + if (dnsCacheConfigBuilder_ == null) { + dnsCacheConfig_ = null; + } else { + dnsCacheConfig_ = null; + dnsCacheConfigBuilder_ = null; + } + if (configConnectorConfigBuilder_ == null) { + configConnectorConfig_ = null; + } else { + configConnectorConfig_ = null; + configConnectorConfigBuilder_ = null; + } + if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { + gcePersistentDiskCsiDriverConfig_ = null; + } else { + gcePersistentDiskCsiDriverConfig_ = null; + gcePersistentDiskCsiDriverConfigBuilder_ = null; + } + if (kalmConfigBuilder_ == null) { + kalmConfig_ = null; + } else { + kalmConfig_ = null; + kalmConfigBuilder_ = null; + } + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + gcpFilestoreCsiDriverConfig_ = null; + } else { + gcpFilestoreCsiDriverConfig_ = null; + gcpFilestoreCsiDriverConfigBuilder_ = null; + } + if (gkeBackupAgentConfigBuilder_ == null) { + gkeBackupAgentConfig_ = null; + } else { + gkeBackupAgentConfig_ = null; + gkeBackupAgentConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AddonsConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.AddonsConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.AddonsConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.AddonsConfig build() { + com.google.container.v1beta1.AddonsConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.AddonsConfig buildPartial() { + com.google.container.v1beta1.AddonsConfig result = + new com.google.container.v1beta1.AddonsConfig(this); + if (httpLoadBalancingBuilder_ == null) { + result.httpLoadBalancing_ = httpLoadBalancing_; + } else { + result.httpLoadBalancing_ = httpLoadBalancingBuilder_.build(); + } + if (horizontalPodAutoscalingBuilder_ == null) { + result.horizontalPodAutoscaling_ = horizontalPodAutoscaling_; + } else { + result.horizontalPodAutoscaling_ = horizontalPodAutoscalingBuilder_.build(); + } + if (kubernetesDashboardBuilder_ == null) { + result.kubernetesDashboard_ = kubernetesDashboard_; + } else { + result.kubernetesDashboard_ = kubernetesDashboardBuilder_.build(); + } + if (networkPolicyConfigBuilder_ == null) { + result.networkPolicyConfig_ = networkPolicyConfig_; + } else { + result.networkPolicyConfig_ = networkPolicyConfigBuilder_.build(); + } + if (istioConfigBuilder_ == null) { + result.istioConfig_ = istioConfig_; + } else { + result.istioConfig_ = istioConfigBuilder_.build(); + } + if (cloudRunConfigBuilder_ == null) { + result.cloudRunConfig_ = cloudRunConfig_; + } else { + result.cloudRunConfig_ = cloudRunConfigBuilder_.build(); + } + if (dnsCacheConfigBuilder_ == null) { + result.dnsCacheConfig_ = dnsCacheConfig_; + } else { + result.dnsCacheConfig_ = dnsCacheConfigBuilder_.build(); + } + if (configConnectorConfigBuilder_ == null) { + result.configConnectorConfig_ = configConnectorConfig_; + } else { + result.configConnectorConfig_ = configConnectorConfigBuilder_.build(); + } + if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { + result.gcePersistentDiskCsiDriverConfig_ = gcePersistentDiskCsiDriverConfig_; + } else { + result.gcePersistentDiskCsiDriverConfig_ = gcePersistentDiskCsiDriverConfigBuilder_.build(); + } + if (kalmConfigBuilder_ == null) { + result.kalmConfig_ = kalmConfig_; + } else { + result.kalmConfig_ = kalmConfigBuilder_.build(); + } + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + result.gcpFilestoreCsiDriverConfig_ = gcpFilestoreCsiDriverConfig_; + } else { + result.gcpFilestoreCsiDriverConfig_ = gcpFilestoreCsiDriverConfigBuilder_.build(); + } + if (gkeBackupAgentConfigBuilder_ == null) { + result.gkeBackupAgentConfig_ = gkeBackupAgentConfig_; + } else { + result.gkeBackupAgentConfig_ = gkeBackupAgentConfigBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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); + + break; + } // case 10 + case 18: + { + input.readMessage( + getHorizontalPodAutoscalingFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + input.readMessage( + getKubernetesDashboardFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + input.readMessage( + getNetworkPolicyConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + input.readMessage(getIstioConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 58: + { + input.readMessage(getCloudRunConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 58 + case 66: + { + input.readMessage(getDnsCacheConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 66 + case 82: + { + input.readMessage( + getConfigConnectorConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 82 + case 90: + { + input.readMessage( + getGcePersistentDiskCsiDriverConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 90 + case 98: + { + input.readMessage(getKalmConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 98 + case 114: + { + input.readMessage( + getGcpFilestoreCsiDriverConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 114 + case 130: + { + input.readMessage( + getGkeBackupAgentConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 130 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private com.google.container.v1beta1.HttpLoadBalancing httpLoadBalancing_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.HttpLoadBalancing, + com.google.container.v1beta1.HttpLoadBalancing.Builder, + com.google.container.v1beta1.HttpLoadBalancingOrBuilder> + httpLoadBalancingBuilder_; + /** + * + * + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + * + * @return Whether the httpLoadBalancing field is set. + */ + public boolean hasHttpLoadBalancing() { + return httpLoadBalancingBuilder_ != null || httpLoadBalancing_ != null; + } + /** + * + * + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + * + * @return The httpLoadBalancing. + */ + public com.google.container.v1beta1.HttpLoadBalancing getHttpLoadBalancing() { + if (httpLoadBalancingBuilder_ == null) { + return httpLoadBalancing_ == null + ? com.google.container.v1beta1.HttpLoadBalancing.getDefaultInstance() + : httpLoadBalancing_; + } else { + return httpLoadBalancingBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + */ + public Builder setHttpLoadBalancing(com.google.container.v1beta1.HttpLoadBalancing value) { + if (httpLoadBalancingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + httpLoadBalancing_ = value; + onChanged(); + } else { + httpLoadBalancingBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + */ + public Builder setHttpLoadBalancing( + com.google.container.v1beta1.HttpLoadBalancing.Builder builderForValue) { + if (httpLoadBalancingBuilder_ == null) { + httpLoadBalancing_ = builderForValue.build(); + onChanged(); + } else { + httpLoadBalancingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + */ + public Builder mergeHttpLoadBalancing(com.google.container.v1beta1.HttpLoadBalancing value) { + if (httpLoadBalancingBuilder_ == null) { + if (httpLoadBalancing_ != null) { + httpLoadBalancing_ = + com.google.container.v1beta1.HttpLoadBalancing.newBuilder(httpLoadBalancing_) + .mergeFrom(value) + .buildPartial(); + } else { + httpLoadBalancing_ = value; + } + onChanged(); + } else { + httpLoadBalancingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + */ + public Builder clearHttpLoadBalancing() { + if (httpLoadBalancingBuilder_ == null) { + httpLoadBalancing_ = null; + onChanged(); + } else { + httpLoadBalancing_ = null; + httpLoadBalancingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + */ + public com.google.container.v1beta1.HttpLoadBalancing.Builder getHttpLoadBalancingBuilder() { + + onChanged(); + return getHttpLoadBalancingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + */ + public com.google.container.v1beta1.HttpLoadBalancingOrBuilder getHttpLoadBalancingOrBuilder() { + if (httpLoadBalancingBuilder_ != null) { + return httpLoadBalancingBuilder_.getMessageOrBuilder(); + } else { + return httpLoadBalancing_ == null + ? com.google.container.v1beta1.HttpLoadBalancing.getDefaultInstance() + : httpLoadBalancing_; + } + } + /** + * + * + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.HttpLoadBalancing, + com.google.container.v1beta1.HttpLoadBalancing.Builder, + com.google.container.v1beta1.HttpLoadBalancingOrBuilder> + getHttpLoadBalancingFieldBuilder() { + if (httpLoadBalancingBuilder_ == null) { + httpLoadBalancingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.HttpLoadBalancing, + com.google.container.v1beta1.HttpLoadBalancing.Builder, + com.google.container.v1beta1.HttpLoadBalancingOrBuilder>( + getHttpLoadBalancing(), getParentForChildren(), isClean()); + httpLoadBalancing_ = null; + } + return httpLoadBalancingBuilder_; + } + + private com.google.container.v1beta1.HorizontalPodAutoscaling horizontalPodAutoscaling_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.HorizontalPodAutoscaling, + com.google.container.v1beta1.HorizontalPodAutoscaling.Builder, + com.google.container.v1beta1.HorizontalPodAutoscalingOrBuilder> + horizontalPodAutoscalingBuilder_; + /** + * + * + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * + * + * @return Whether the horizontalPodAutoscaling field is set. + */ + public boolean hasHorizontalPodAutoscaling() { + return horizontalPodAutoscalingBuilder_ != null || horizontalPodAutoscaling_ != null; + } + /** + * + * + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * + * + * @return The horizontalPodAutoscaling. + */ + public com.google.container.v1beta1.HorizontalPodAutoscaling getHorizontalPodAutoscaling() { + if (horizontalPodAutoscalingBuilder_ == null) { + return horizontalPodAutoscaling_ == null + ? com.google.container.v1beta1.HorizontalPodAutoscaling.getDefaultInstance() + : horizontalPodAutoscaling_; + } else { + return horizontalPodAutoscalingBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * + */ + public Builder setHorizontalPodAutoscaling( + com.google.container.v1beta1.HorizontalPodAutoscaling value) { + if (horizontalPodAutoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + horizontalPodAutoscaling_ = value; + onChanged(); + } else { + horizontalPodAutoscalingBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * + */ + public Builder setHorizontalPodAutoscaling( + com.google.container.v1beta1.HorizontalPodAutoscaling.Builder builderForValue) { + if (horizontalPodAutoscalingBuilder_ == null) { + horizontalPodAutoscaling_ = builderForValue.build(); + onChanged(); + } else { + horizontalPodAutoscalingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * + */ + public Builder mergeHorizontalPodAutoscaling( + com.google.container.v1beta1.HorizontalPodAutoscaling value) { + if (horizontalPodAutoscalingBuilder_ == null) { + if (horizontalPodAutoscaling_ != null) { + horizontalPodAutoscaling_ = + com.google.container.v1beta1.HorizontalPodAutoscaling.newBuilder( + horizontalPodAutoscaling_) + .mergeFrom(value) + .buildPartial(); + } else { + horizontalPodAutoscaling_ = value; + } + onChanged(); + } else { + horizontalPodAutoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * + */ + public Builder clearHorizontalPodAutoscaling() { + if (horizontalPodAutoscalingBuilder_ == null) { + horizontalPodAutoscaling_ = null; + onChanged(); + } else { + horizontalPodAutoscaling_ = null; + horizontalPodAutoscalingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * + */ + public com.google.container.v1beta1.HorizontalPodAutoscaling.Builder + getHorizontalPodAutoscalingBuilder() { + + onChanged(); + return getHorizontalPodAutoscalingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * + */ + public com.google.container.v1beta1.HorizontalPodAutoscalingOrBuilder + getHorizontalPodAutoscalingOrBuilder() { + if (horizontalPodAutoscalingBuilder_ != null) { + return horizontalPodAutoscalingBuilder_.getMessageOrBuilder(); + } else { + return horizontalPodAutoscaling_ == null + ? com.google.container.v1beta1.HorizontalPodAutoscaling.getDefaultInstance() + : horizontalPodAutoscaling_; + } + } + /** + * + * + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.HorizontalPodAutoscaling, + com.google.container.v1beta1.HorizontalPodAutoscaling.Builder, + com.google.container.v1beta1.HorizontalPodAutoscalingOrBuilder> + getHorizontalPodAutoscalingFieldBuilder() { + if (horizontalPodAutoscalingBuilder_ == null) { + horizontalPodAutoscalingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.HorizontalPodAutoscaling, + com.google.container.v1beta1.HorizontalPodAutoscaling.Builder, + com.google.container.v1beta1.HorizontalPodAutoscalingOrBuilder>( + getHorizontalPodAutoscaling(), getParentForChildren(), isClean()); + horizontalPodAutoscaling_ = null; + } + return horizontalPodAutoscalingBuilder_; + } + + private com.google.container.v1beta1.KubernetesDashboard kubernetesDashboard_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.KubernetesDashboard, + com.google.container.v1beta1.KubernetesDashboard.Builder, + com.google.container.v1beta1.KubernetesDashboardOrBuilder> + kubernetesDashboardBuilder_; + /** + * + * + *
+     * Configuration for the Kubernetes Dashboard.
+     * This addon is deprecated, and will be disabled in 1.15. It is recommended
+     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
+     * workloads and applications. For more information, see:
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
+     * 
+ * + * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + * + * @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1051 + * @return Whether the kubernetesDashboard field is set. + */ + @java.lang.Deprecated + public boolean hasKubernetesDashboard() { + return kubernetesDashboardBuilder_ != null || kubernetesDashboard_ != null; + } + /** + * + * + *
+     * Configuration for the Kubernetes Dashboard.
+     * This addon is deprecated, and will be disabled in 1.15. It is recommended
+     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
+     * workloads and applications. For more information, see:
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
+     * 
+ * + * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + * + * @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1051 + * @return The kubernetesDashboard. + */ + @java.lang.Deprecated + public com.google.container.v1beta1.KubernetesDashboard getKubernetesDashboard() { + if (kubernetesDashboardBuilder_ == null) { + return kubernetesDashboard_ == null + ? com.google.container.v1beta1.KubernetesDashboard.getDefaultInstance() + : kubernetesDashboard_; + } else { + return kubernetesDashboardBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for the Kubernetes Dashboard.
+     * This addon is deprecated, and will be disabled in 1.15. It is recommended
+     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
+     * workloads and applications. For more information, see:
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
+     * 
+ * + * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setKubernetesDashboard(com.google.container.v1beta1.KubernetesDashboard value) { + if (kubernetesDashboardBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kubernetesDashboard_ = value; + onChanged(); + } else { + kubernetesDashboardBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the Kubernetes Dashboard.
+     * This addon is deprecated, and will be disabled in 1.15. It is recommended
+     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
+     * workloads and applications. For more information, see:
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
+     * 
+ * + * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setKubernetesDashboard( + com.google.container.v1beta1.KubernetesDashboard.Builder builderForValue) { + if (kubernetesDashboardBuilder_ == null) { + kubernetesDashboard_ = builderForValue.build(); + onChanged(); + } else { + kubernetesDashboardBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for the Kubernetes Dashboard.
+     * This addon is deprecated, and will be disabled in 1.15. It is recommended
+     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
+     * workloads and applications. For more information, see:
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
+     * 
+ * + * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder mergeKubernetesDashboard( + com.google.container.v1beta1.KubernetesDashboard value) { + if (kubernetesDashboardBuilder_ == null) { + if (kubernetesDashboard_ != null) { + kubernetesDashboard_ = + com.google.container.v1beta1.KubernetesDashboard.newBuilder(kubernetesDashboard_) + .mergeFrom(value) + .buildPartial(); + } else { + kubernetesDashboard_ = value; + } + onChanged(); + } else { + kubernetesDashboardBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the Kubernetes Dashboard.
+     * This addon is deprecated, and will be disabled in 1.15. It is recommended
+     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
+     * workloads and applications. For more information, see:
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
+     * 
+ * + * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder clearKubernetesDashboard() { + if (kubernetesDashboardBuilder_ == null) { + kubernetesDashboard_ = null; + onChanged(); + } else { + kubernetesDashboard_ = null; + kubernetesDashboardBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for the Kubernetes Dashboard.
+     * This addon is deprecated, and will be disabled in 1.15. It is recommended
+     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
+     * workloads and applications. For more information, see:
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
+     * 
+ * + * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.container.v1beta1.KubernetesDashboard.Builder + getKubernetesDashboardBuilder() { + + onChanged(); + return getKubernetesDashboardFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for the Kubernetes Dashboard.
+     * This addon is deprecated, and will be disabled in 1.15. It is recommended
+     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
+     * workloads and applications. For more information, see:
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
+     * 
+ * + * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.container.v1beta1.KubernetesDashboardOrBuilder + getKubernetesDashboardOrBuilder() { + if (kubernetesDashboardBuilder_ != null) { + return kubernetesDashboardBuilder_.getMessageOrBuilder(); + } else { + return kubernetesDashboard_ == null + ? com.google.container.v1beta1.KubernetesDashboard.getDefaultInstance() + : kubernetesDashboard_; + } + } + /** + * + * + *
+     * Configuration for the Kubernetes Dashboard.
+     * This addon is deprecated, and will be disabled in 1.15. It is recommended
+     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
+     * workloads and applications. For more information, see:
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
+     * 
+ * + * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.KubernetesDashboard, + com.google.container.v1beta1.KubernetesDashboard.Builder, + com.google.container.v1beta1.KubernetesDashboardOrBuilder> + getKubernetesDashboardFieldBuilder() { + if (kubernetesDashboardBuilder_ == null) { + kubernetesDashboardBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.KubernetesDashboard, + com.google.container.v1beta1.KubernetesDashboard.Builder, + com.google.container.v1beta1.KubernetesDashboardOrBuilder>( + getKubernetesDashboard(), getParentForChildren(), isClean()); + kubernetesDashboard_ = null; + } + return kubernetesDashboardBuilder_; + } + + private com.google.container.v1beta1.NetworkPolicyConfig networkPolicyConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkPolicyConfig, + com.google.container.v1beta1.NetworkPolicyConfig.Builder, + com.google.container.v1beta1.NetworkPolicyConfigOrBuilder> + networkPolicyConfigBuilder_; + /** + * + * + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + * + * @return Whether the networkPolicyConfig field is set. + */ + public boolean hasNetworkPolicyConfig() { + return networkPolicyConfigBuilder_ != null || networkPolicyConfig_ != null; + } + /** + * + * + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + * + * @return The networkPolicyConfig. + */ + public com.google.container.v1beta1.NetworkPolicyConfig getNetworkPolicyConfig() { + if (networkPolicyConfigBuilder_ == null) { + return networkPolicyConfig_ == null + ? com.google.container.v1beta1.NetworkPolicyConfig.getDefaultInstance() + : networkPolicyConfig_; + } else { + return networkPolicyConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + */ + public Builder setNetworkPolicyConfig(com.google.container.v1beta1.NetworkPolicyConfig value) { + if (networkPolicyConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkPolicyConfig_ = value; + onChanged(); + } else { + networkPolicyConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + */ + public Builder setNetworkPolicyConfig( + com.google.container.v1beta1.NetworkPolicyConfig.Builder builderForValue) { + if (networkPolicyConfigBuilder_ == null) { + networkPolicyConfig_ = builderForValue.build(); + onChanged(); + } else { + networkPolicyConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + */ + public Builder mergeNetworkPolicyConfig( + com.google.container.v1beta1.NetworkPolicyConfig value) { + if (networkPolicyConfigBuilder_ == null) { + if (networkPolicyConfig_ != null) { + networkPolicyConfig_ = + com.google.container.v1beta1.NetworkPolicyConfig.newBuilder(networkPolicyConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + networkPolicyConfig_ = value; + } + onChanged(); + } else { + networkPolicyConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + */ + public Builder clearNetworkPolicyConfig() { + if (networkPolicyConfigBuilder_ == null) { + networkPolicyConfig_ = null; + onChanged(); + } else { + networkPolicyConfig_ = null; + networkPolicyConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + */ + public com.google.container.v1beta1.NetworkPolicyConfig.Builder + getNetworkPolicyConfigBuilder() { + + onChanged(); + return getNetworkPolicyConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + */ + public com.google.container.v1beta1.NetworkPolicyConfigOrBuilder + getNetworkPolicyConfigOrBuilder() { + if (networkPolicyConfigBuilder_ != null) { + return networkPolicyConfigBuilder_.getMessageOrBuilder(); + } else { + return networkPolicyConfig_ == null + ? com.google.container.v1beta1.NetworkPolicyConfig.getDefaultInstance() + : networkPolicyConfig_; + } + } + /** + * + * + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkPolicyConfig, + com.google.container.v1beta1.NetworkPolicyConfig.Builder, + com.google.container.v1beta1.NetworkPolicyConfigOrBuilder> + getNetworkPolicyConfigFieldBuilder() { + if (networkPolicyConfigBuilder_ == null) { + networkPolicyConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkPolicyConfig, + com.google.container.v1beta1.NetworkPolicyConfig.Builder, + com.google.container.v1beta1.NetworkPolicyConfigOrBuilder>( + getNetworkPolicyConfig(), getParentForChildren(), isClean()); + networkPolicyConfig_ = null; + } + return networkPolicyConfigBuilder_; + } + + private com.google.container.v1beta1.IstioConfig istioConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.IstioConfig, + com.google.container.v1beta1.IstioConfig.Builder, + com.google.container.v1beta1.IstioConfigOrBuilder> + istioConfigBuilder_; + /** + * + * + *
+     * Configuration for Istio, an open platform to connect, manage, and secure
+     * microservices.
+     * 
+ * + * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; + * + * @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1060 + * @return Whether the istioConfig field is set. + */ + @java.lang.Deprecated + public boolean hasIstioConfig() { + return istioConfigBuilder_ != null || istioConfig_ != null; + } + /** + * + * + *
+     * Configuration for Istio, an open platform to connect, manage, and secure
+     * microservices.
+     * 
+ * + * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; + * + * @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1060 + * @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; + onChanged(); + } else { + istioConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for Istio, an open platform to connect, manage, and secure
+     * microservices.
+     * 
+ * + * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; + */ + @java.lang.Deprecated + public Builder setIstioConfig( + com.google.container.v1beta1.IstioConfig.Builder builderForValue) { + if (istioConfigBuilder_ == null) { + istioConfig_ = builderForValue.build(); + onChanged(); + } else { + istioConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for Istio, an open platform to connect, manage, and secure
+     * microservices.
+     * 
+ * + * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; + */ + @java.lang.Deprecated + public Builder mergeIstioConfig(com.google.container.v1beta1.IstioConfig value) { + if (istioConfigBuilder_ == null) { + if (istioConfig_ != null) { + istioConfig_ = + com.google.container.v1beta1.IstioConfig.newBuilder(istioConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + istioConfig_ = value; + } + onChanged(); + } else { + istioConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for Istio, an open platform to connect, manage, and secure
+     * microservices.
+     * 
+ * + * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; + */ + @java.lang.Deprecated + public Builder clearIstioConfig() { + if (istioConfigBuilder_ == null) { + istioConfig_ = null; + onChanged(); + } else { + istioConfig_ = null; + istioConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for Istio, an open platform to connect, manage, and secure
+     * microservices.
+     * 
+ * + * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; + */ + @java.lang.Deprecated + public com.google.container.v1beta1.IstioConfig.Builder getIstioConfigBuilder() { + + onChanged(); + return getIstioConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for Istio, an open platform to connect, manage, and secure
+     * microservices.
+     * 
+ * + * .google.container.v1beta1.IstioConfig istio_config = 5 [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 cloudRunConfigBuilder_ != null || cloudRunConfig_ != null; + } + /** + * + * + *
+     * Configuration for the Cloud Run addon. The `IstioConfig` addon must be
+     * enabled in order to enable Cloud Run addon. This option can only be enabled
+     * at cluster creation time.
+     * 
+ * + * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; + * + * @return The cloudRunConfig. + */ + public com.google.container.v1beta1.CloudRunConfig getCloudRunConfig() { + if (cloudRunConfigBuilder_ == null) { + return cloudRunConfig_ == null + ? com.google.container.v1beta1.CloudRunConfig.getDefaultInstance() + : cloudRunConfig_; + } else { + return cloudRunConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for the Cloud Run addon. The `IstioConfig` addon must be
+     * enabled in order to enable Cloud Run addon. This option can only be enabled
+     * at cluster creation time.
+     * 
+ * + * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; + */ + public Builder setCloudRunConfig(com.google.container.v1beta1.CloudRunConfig value) { + if (cloudRunConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cloudRunConfig_ = value; + onChanged(); + } else { + cloudRunConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the Cloud Run addon. The `IstioConfig` addon must be
+     * enabled in order to enable Cloud Run addon. This option can only be enabled
+     * at cluster creation time.
+     * 
+ * + * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; + */ + public Builder setCloudRunConfig( + com.google.container.v1beta1.CloudRunConfig.Builder builderForValue) { + if (cloudRunConfigBuilder_ == null) { + cloudRunConfig_ = builderForValue.build(); + onChanged(); + } else { + cloudRunConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for the Cloud Run addon. The `IstioConfig` addon must be
+     * enabled in order to enable Cloud Run addon. This option can only be enabled
+     * at cluster creation time.
+     * 
+ * + * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; + */ + public Builder mergeCloudRunConfig(com.google.container.v1beta1.CloudRunConfig value) { + if (cloudRunConfigBuilder_ == null) { + if (cloudRunConfig_ != null) { + cloudRunConfig_ = + com.google.container.v1beta1.CloudRunConfig.newBuilder(cloudRunConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + cloudRunConfig_ = value; + } + onChanged(); + } else { + cloudRunConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the Cloud Run addon. The `IstioConfig` addon must be
+     * enabled in order to enable Cloud Run addon. This option can only be enabled
+     * at cluster creation time.
+     * 
+ * + * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; + */ + public Builder clearCloudRunConfig() { + if (cloudRunConfigBuilder_ == null) { + cloudRunConfig_ = null; + onChanged(); + } else { + cloudRunConfig_ = null; + cloudRunConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for the Cloud Run addon. The `IstioConfig` addon must be
+     * enabled in order to enable Cloud Run addon. This option can only be enabled
+     * at cluster creation time.
+     * 
+ * + * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; + */ + public com.google.container.v1beta1.CloudRunConfig.Builder getCloudRunConfigBuilder() { + + onChanged(); + return getCloudRunConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for the Cloud Run addon. The `IstioConfig` addon must be
+     * enabled in order to enable Cloud Run addon. This option can only be enabled
+     * at cluster creation time.
+     * 
+ * + * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; + */ + public com.google.container.v1beta1.CloudRunConfigOrBuilder getCloudRunConfigOrBuilder() { + if (cloudRunConfigBuilder_ != null) { + return cloudRunConfigBuilder_.getMessageOrBuilder(); + } else { + return cloudRunConfig_ == null + ? com.google.container.v1beta1.CloudRunConfig.getDefaultInstance() + : cloudRunConfig_; + } + } + /** + * + * + *
+     * Configuration for the Cloud Run addon. The `IstioConfig` addon must be
+     * enabled in order to enable Cloud Run addon. This option can only be enabled
+     * at cluster creation time.
+     * 
+ * + * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.CloudRunConfig, + com.google.container.v1beta1.CloudRunConfig.Builder, + com.google.container.v1beta1.CloudRunConfigOrBuilder> + getCloudRunConfigFieldBuilder() { + if (cloudRunConfigBuilder_ == null) { + cloudRunConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.CloudRunConfig, + com.google.container.v1beta1.CloudRunConfig.Builder, + com.google.container.v1beta1.CloudRunConfigOrBuilder>( + getCloudRunConfig(), getParentForChildren(), isClean()); + cloudRunConfig_ = null; + } + return cloudRunConfigBuilder_; + } + + private com.google.container.v1beta1.DnsCacheConfig dnsCacheConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DnsCacheConfig, + com.google.container.v1beta1.DnsCacheConfig.Builder, + com.google.container.v1beta1.DnsCacheConfigOrBuilder> + dnsCacheConfigBuilder_; + /** + * + * + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; + * + * @return Whether the dnsCacheConfig field is set. + */ + public boolean hasDnsCacheConfig() { + return dnsCacheConfigBuilder_ != null || dnsCacheConfig_ != null; + } + /** + * + * + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; + * + * @return The dnsCacheConfig. + */ + public com.google.container.v1beta1.DnsCacheConfig getDnsCacheConfig() { + if (dnsCacheConfigBuilder_ == null) { + return dnsCacheConfig_ == null + ? com.google.container.v1beta1.DnsCacheConfig.getDefaultInstance() + : dnsCacheConfig_; + } else { + return dnsCacheConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; + */ + public Builder setDnsCacheConfig(com.google.container.v1beta1.DnsCacheConfig value) { + if (dnsCacheConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dnsCacheConfig_ = value; + onChanged(); + } else { + dnsCacheConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; + */ + public Builder setDnsCacheConfig( + com.google.container.v1beta1.DnsCacheConfig.Builder builderForValue) { + if (dnsCacheConfigBuilder_ == null) { + dnsCacheConfig_ = builderForValue.build(); + onChanged(); + } else { + dnsCacheConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; + */ + public Builder mergeDnsCacheConfig(com.google.container.v1beta1.DnsCacheConfig value) { + if (dnsCacheConfigBuilder_ == null) { + if (dnsCacheConfig_ != null) { + dnsCacheConfig_ = + com.google.container.v1beta1.DnsCacheConfig.newBuilder(dnsCacheConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + dnsCacheConfig_ = value; + } + onChanged(); + } else { + dnsCacheConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; + */ + public Builder clearDnsCacheConfig() { + if (dnsCacheConfigBuilder_ == null) { + dnsCacheConfig_ = null; + onChanged(); + } else { + dnsCacheConfig_ = null; + dnsCacheConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; + */ + public com.google.container.v1beta1.DnsCacheConfig.Builder getDnsCacheConfigBuilder() { + + onChanged(); + return getDnsCacheConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; + */ + public com.google.container.v1beta1.DnsCacheConfigOrBuilder getDnsCacheConfigOrBuilder() { + if (dnsCacheConfigBuilder_ != null) { + return dnsCacheConfigBuilder_.getMessageOrBuilder(); + } else { + return dnsCacheConfig_ == null + ? com.google.container.v1beta1.DnsCacheConfig.getDefaultInstance() + : dnsCacheConfig_; + } + } + /** + * + * + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DnsCacheConfig, + com.google.container.v1beta1.DnsCacheConfig.Builder, + com.google.container.v1beta1.DnsCacheConfigOrBuilder> + getDnsCacheConfigFieldBuilder() { + if (dnsCacheConfigBuilder_ == null) { + dnsCacheConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DnsCacheConfig, + com.google.container.v1beta1.DnsCacheConfig.Builder, + com.google.container.v1beta1.DnsCacheConfigOrBuilder>( + getDnsCacheConfig(), getParentForChildren(), isClean()); + dnsCacheConfig_ = null; + } + return dnsCacheConfigBuilder_; + } + + private com.google.container.v1beta1.ConfigConnectorConfig configConnectorConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ConfigConnectorConfig, + com.google.container.v1beta1.ConfigConnectorConfig.Builder, + com.google.container.v1beta1.ConfigConnectorConfigOrBuilder> + configConnectorConfigBuilder_; + /** + * + * + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; + * + * @return Whether the configConnectorConfig field is set. + */ + public boolean hasConfigConnectorConfig() { + return configConnectorConfigBuilder_ != null || configConnectorConfig_ != null; + } + /** + * + * + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; + * + * @return The configConnectorConfig. + */ + public com.google.container.v1beta1.ConfigConnectorConfig getConfigConnectorConfig() { + if (configConnectorConfigBuilder_ == null) { + return configConnectorConfig_ == null + ? com.google.container.v1beta1.ConfigConnectorConfig.getDefaultInstance() + : configConnectorConfig_; + } else { + return configConnectorConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; + */ + public Builder setConfigConnectorConfig( + com.google.container.v1beta1.ConfigConnectorConfig value) { + if (configConnectorConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + configConnectorConfig_ = value; + onChanged(); + } else { + configConnectorConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; + */ + public Builder setConfigConnectorConfig( + com.google.container.v1beta1.ConfigConnectorConfig.Builder builderForValue) { + if (configConnectorConfigBuilder_ == null) { + configConnectorConfig_ = builderForValue.build(); + onChanged(); + } else { + configConnectorConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; + */ + public Builder mergeConfigConnectorConfig( + com.google.container.v1beta1.ConfigConnectorConfig value) { + if (configConnectorConfigBuilder_ == null) { + if (configConnectorConfig_ != null) { + configConnectorConfig_ = + com.google.container.v1beta1.ConfigConnectorConfig.newBuilder(configConnectorConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + configConnectorConfig_ = value; + } + onChanged(); + } else { + configConnectorConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; + */ + public Builder clearConfigConnectorConfig() { + if (configConnectorConfigBuilder_ == null) { + configConnectorConfig_ = null; + onChanged(); + } else { + configConnectorConfig_ = null; + configConnectorConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; + */ + public com.google.container.v1beta1.ConfigConnectorConfig.Builder + getConfigConnectorConfigBuilder() { + + onChanged(); + return getConfigConnectorConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; + */ + public com.google.container.v1beta1.ConfigConnectorConfigOrBuilder + getConfigConnectorConfigOrBuilder() { + if (configConnectorConfigBuilder_ != null) { + return configConnectorConfigBuilder_.getMessageOrBuilder(); + } else { + return configConnectorConfig_ == null + ? com.google.container.v1beta1.ConfigConnectorConfig.getDefaultInstance() + : configConnectorConfig_; + } + } + /** + * + * + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ConfigConnectorConfig, + com.google.container.v1beta1.ConfigConnectorConfig.Builder, + com.google.container.v1beta1.ConfigConnectorConfigOrBuilder> + getConfigConnectorConfigFieldBuilder() { + if (configConnectorConfigBuilder_ == null) { + configConnectorConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ConfigConnectorConfig, + com.google.container.v1beta1.ConfigConnectorConfig.Builder, + com.google.container.v1beta1.ConfigConnectorConfigOrBuilder>( + getConfigConnectorConfig(), getParentForChildren(), isClean()); + configConnectorConfig_ = null; + } + return configConnectorConfigBuilder_; + } + + private com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig + gcePersistentDiskCsiDriverConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig, + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.Builder, + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfigOrBuilder> + gcePersistentDiskCsiDriverConfigBuilder_; + /** + * + * + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * + * .google.container.v1beta1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + * + * @return Whether the gcePersistentDiskCsiDriverConfig field is set. + */ + public boolean hasGcePersistentDiskCsiDriverConfig() { + return gcePersistentDiskCsiDriverConfigBuilder_ != null + || gcePersistentDiskCsiDriverConfig_ != null; + } + /** + * + * + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * + * .google.container.v1beta1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + * + * @return The gcePersistentDiskCsiDriverConfig. + */ + public com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig + getGcePersistentDiskCsiDriverConfig() { + if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { + return gcePersistentDiskCsiDriverConfig_ == null + ? com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.getDefaultInstance() + : gcePersistentDiskCsiDriverConfig_; + } else { + return gcePersistentDiskCsiDriverConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * + * .google.container.v1beta1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + */ + public Builder setGcePersistentDiskCsiDriverConfig( + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig value) { + if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcePersistentDiskCsiDriverConfig_ = value; + onChanged(); + } else { + gcePersistentDiskCsiDriverConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * + * .google.container.v1beta1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + */ + public Builder setGcePersistentDiskCsiDriverConfig( + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.Builder builderForValue) { + if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { + gcePersistentDiskCsiDriverConfig_ = builderForValue.build(); + onChanged(); + } else { + gcePersistentDiskCsiDriverConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * + * .google.container.v1beta1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + */ + public Builder mergeGcePersistentDiskCsiDriverConfig( + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig value) { + if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { + if (gcePersistentDiskCsiDriverConfig_ != null) { + gcePersistentDiskCsiDriverConfig_ = + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.newBuilder( + gcePersistentDiskCsiDriverConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + gcePersistentDiskCsiDriverConfig_ = value; + } + onChanged(); + } else { + gcePersistentDiskCsiDriverConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * + * .google.container.v1beta1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + */ + public Builder clearGcePersistentDiskCsiDriverConfig() { + if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { + gcePersistentDiskCsiDriverConfig_ = null; + onChanged(); + } else { + gcePersistentDiskCsiDriverConfig_ = null; + gcePersistentDiskCsiDriverConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * + * .google.container.v1beta1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + */ + public com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.Builder + getGcePersistentDiskCsiDriverConfigBuilder() { + + onChanged(); + return getGcePersistentDiskCsiDriverConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * + * .google.container.v1beta1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + */ + public com.google.container.v1beta1.GcePersistentDiskCsiDriverConfigOrBuilder + getGcePersistentDiskCsiDriverConfigOrBuilder() { + if (gcePersistentDiskCsiDriverConfigBuilder_ != null) { + return gcePersistentDiskCsiDriverConfigBuilder_.getMessageOrBuilder(); + } else { + return gcePersistentDiskCsiDriverConfig_ == null + ? com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.getDefaultInstance() + : gcePersistentDiskCsiDriverConfig_; + } + } + /** + * + * + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * + * .google.container.v1beta1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig, + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.Builder, + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfigOrBuilder> + getGcePersistentDiskCsiDriverConfigFieldBuilder() { + if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { + gcePersistentDiskCsiDriverConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig, + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.Builder, + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfigOrBuilder>( + getGcePersistentDiskCsiDriverConfig(), getParentForChildren(), isClean()); + gcePersistentDiskCsiDriverConfig_ = null; + } + return gcePersistentDiskCsiDriverConfigBuilder_; + } + + private com.google.container.v1beta1.KalmConfig kalmConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.KalmConfig, + com.google.container.v1beta1.KalmConfig.Builder, + com.google.container.v1beta1.KalmConfigOrBuilder> + kalmConfigBuilder_; + /** + * + * + *
+     * Configuration for the KALM addon, which manages the lifecycle of k8s
+     * applications.
+     * 
+ * + * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; + * + * @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1079 + * @return Whether the kalmConfig field is set. + */ + @java.lang.Deprecated + public boolean hasKalmConfig() { + return kalmConfigBuilder_ != null || kalmConfig_ != null; + } + /** + * + * + *
+     * Configuration for the KALM addon, which manages the lifecycle of k8s
+     * applications.
+     * 
+ * + * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; + * + * @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1079 + * @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; + onChanged(); + } else { + kalmConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the KALM addon, which manages the lifecycle of k8s
+     * applications.
+     * 
+ * + * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; + */ + @java.lang.Deprecated + public Builder setKalmConfig(com.google.container.v1beta1.KalmConfig.Builder builderForValue) { + if (kalmConfigBuilder_ == null) { + kalmConfig_ = builderForValue.build(); + onChanged(); + } else { + kalmConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for the KALM addon, which manages the lifecycle of k8s
+     * applications.
+     * 
+ * + * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; + */ + @java.lang.Deprecated + public Builder mergeKalmConfig(com.google.container.v1beta1.KalmConfig value) { + if (kalmConfigBuilder_ == null) { + if (kalmConfig_ != null) { + kalmConfig_ = + com.google.container.v1beta1.KalmConfig.newBuilder(kalmConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + kalmConfig_ = value; + } + onChanged(); + } else { + kalmConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the KALM addon, which manages the lifecycle of k8s
+     * applications.
+     * 
+ * + * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; + */ + @java.lang.Deprecated + public Builder clearKalmConfig() { + if (kalmConfigBuilder_ == null) { + kalmConfig_ = null; + onChanged(); + } else { + kalmConfig_ = null; + kalmConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for the KALM addon, which manages the lifecycle of k8s
+     * applications.
+     * 
+ * + * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; + */ + @java.lang.Deprecated + public com.google.container.v1beta1.KalmConfig.Builder getKalmConfigBuilder() { + + onChanged(); + return getKalmConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for the KALM addon, which manages the lifecycle of k8s
+     * applications.
+     * 
+ * + * .google.container.v1beta1.KalmConfig kalm_config = 12 [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 gcpFilestoreCsiDriverConfigBuilder_ != null || gcpFilestoreCsiDriverConfig_ != null; + } + /** + * + * + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + * + * @return The gcpFilestoreCsiDriverConfig. + */ + public com.google.container.v1beta1.GcpFilestoreCsiDriverConfig + getGcpFilestoreCsiDriverConfig() { + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + return gcpFilestoreCsiDriverConfig_ == null + ? com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.getDefaultInstance() + : gcpFilestoreCsiDriverConfig_; + } else { + return gcpFilestoreCsiDriverConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + */ + public Builder setGcpFilestoreCsiDriverConfig( + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig value) { + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcpFilestoreCsiDriverConfig_ = value; + onChanged(); + } else { + gcpFilestoreCsiDriverConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + */ + public Builder setGcpFilestoreCsiDriverConfig( + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.Builder builderForValue) { + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + gcpFilestoreCsiDriverConfig_ = builderForValue.build(); + onChanged(); + } else { + gcpFilestoreCsiDriverConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + */ + public Builder mergeGcpFilestoreCsiDriverConfig( + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig value) { + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + if (gcpFilestoreCsiDriverConfig_ != null) { + gcpFilestoreCsiDriverConfig_ = + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.newBuilder( + gcpFilestoreCsiDriverConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + gcpFilestoreCsiDriverConfig_ = value; + } + onChanged(); + } else { + gcpFilestoreCsiDriverConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + */ + public Builder clearGcpFilestoreCsiDriverConfig() { + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + gcpFilestoreCsiDriverConfig_ = null; + onChanged(); + } else { + gcpFilestoreCsiDriverConfig_ = null; + gcpFilestoreCsiDriverConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + */ + public com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.Builder + getGcpFilestoreCsiDriverConfigBuilder() { + + onChanged(); + return getGcpFilestoreCsiDriverConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + */ + public com.google.container.v1beta1.GcpFilestoreCsiDriverConfigOrBuilder + getGcpFilestoreCsiDriverConfigOrBuilder() { + if (gcpFilestoreCsiDriverConfigBuilder_ != null) { + return gcpFilestoreCsiDriverConfigBuilder_.getMessageOrBuilder(); + } else { + return gcpFilestoreCsiDriverConfig_ == null + ? com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.getDefaultInstance() + : gcpFilestoreCsiDriverConfig_; + } + } + /** + * + * + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig, + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.Builder, + com.google.container.v1beta1.GcpFilestoreCsiDriverConfigOrBuilder> + getGcpFilestoreCsiDriverConfigFieldBuilder() { + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + gcpFilestoreCsiDriverConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig, + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.Builder, + com.google.container.v1beta1.GcpFilestoreCsiDriverConfigOrBuilder>( + getGcpFilestoreCsiDriverConfig(), getParentForChildren(), isClean()); + gcpFilestoreCsiDriverConfig_ = null; + } + return gcpFilestoreCsiDriverConfigBuilder_; + } + + private com.google.container.v1beta1.GkeBackupAgentConfig gkeBackupAgentConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GkeBackupAgentConfig, + com.google.container.v1beta1.GkeBackupAgentConfig.Builder, + com.google.container.v1beta1.GkeBackupAgentConfigOrBuilder> + gkeBackupAgentConfigBuilder_; + /** + * + * + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + * + * @return Whether the gkeBackupAgentConfig field is set. + */ + public boolean hasGkeBackupAgentConfig() { + return gkeBackupAgentConfigBuilder_ != null || gkeBackupAgentConfig_ != null; + } + /** + * + * + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + * + * @return The gkeBackupAgentConfig. + */ + public com.google.container.v1beta1.GkeBackupAgentConfig getGkeBackupAgentConfig() { + if (gkeBackupAgentConfigBuilder_ == null) { + return gkeBackupAgentConfig_ == null + ? com.google.container.v1beta1.GkeBackupAgentConfig.getDefaultInstance() + : gkeBackupAgentConfig_; + } else { + return gkeBackupAgentConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + public Builder setGkeBackupAgentConfig( + com.google.container.v1beta1.GkeBackupAgentConfig value) { + if (gkeBackupAgentConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gkeBackupAgentConfig_ = value; + onChanged(); + } else { + gkeBackupAgentConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + public Builder setGkeBackupAgentConfig( + com.google.container.v1beta1.GkeBackupAgentConfig.Builder builderForValue) { + if (gkeBackupAgentConfigBuilder_ == null) { + gkeBackupAgentConfig_ = builderForValue.build(); + onChanged(); + } else { + gkeBackupAgentConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + public Builder mergeGkeBackupAgentConfig( + com.google.container.v1beta1.GkeBackupAgentConfig value) { + if (gkeBackupAgentConfigBuilder_ == null) { + if (gkeBackupAgentConfig_ != null) { + gkeBackupAgentConfig_ = + com.google.container.v1beta1.GkeBackupAgentConfig.newBuilder(gkeBackupAgentConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + gkeBackupAgentConfig_ = value; + } + onChanged(); + } else { + gkeBackupAgentConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + public Builder clearGkeBackupAgentConfig() { + if (gkeBackupAgentConfigBuilder_ == null) { + gkeBackupAgentConfig_ = null; + onChanged(); + } else { + gkeBackupAgentConfig_ = null; + gkeBackupAgentConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + public com.google.container.v1beta1.GkeBackupAgentConfig.Builder + getGkeBackupAgentConfigBuilder() { + + onChanged(); + return getGkeBackupAgentConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + public com.google.container.v1beta1.GkeBackupAgentConfigOrBuilder + getGkeBackupAgentConfigOrBuilder() { + if (gkeBackupAgentConfigBuilder_ != null) { + return gkeBackupAgentConfigBuilder_.getMessageOrBuilder(); + } else { + return gkeBackupAgentConfig_ == null + ? com.google.container.v1beta1.GkeBackupAgentConfig.getDefaultInstance() + : gkeBackupAgentConfig_; + } + } + /** + * + * + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GkeBackupAgentConfig, + com.google.container.v1beta1.GkeBackupAgentConfig.Builder, + com.google.container.v1beta1.GkeBackupAgentConfigOrBuilder> + getGkeBackupAgentConfigFieldBuilder() { + if (gkeBackupAgentConfigBuilder_ == null) { + gkeBackupAgentConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GkeBackupAgentConfig, + com.google.container.v1beta1.GkeBackupAgentConfig.Builder, + com.google.container.v1beta1.GkeBackupAgentConfigOrBuilder>( + getGkeBackupAgentConfig(), getParentForChildren(), isClean()); + gkeBackupAgentConfig_ = null; + } + return gkeBackupAgentConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..cde70dfff744 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfigOrBuilder.java @@ -0,0 +1,530 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface AddonsConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.AddonsConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Configuration for the HTTP (L7) load balancing controller addon, which
+   * makes it easy to set up HTTP load balancers for services in a cluster.
+   * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + * + * @return Whether the httpLoadBalancing field is set. + */ + boolean hasHttpLoadBalancing(); + /** + * + * + *
+   * Configuration for the HTTP (L7) load balancing controller addon, which
+   * makes it easy to set up HTTP load balancers for services in a cluster.
+   * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + * + * @return The httpLoadBalancing. + */ + com.google.container.v1beta1.HttpLoadBalancing getHttpLoadBalancing(); + /** + * + * + *
+   * Configuration for the HTTP (L7) load balancing controller addon, which
+   * makes it easy to set up HTTP load balancers for services in a cluster.
+   * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + */ + com.google.container.v1beta1.HttpLoadBalancingOrBuilder getHttpLoadBalancingOrBuilder(); + + /** + * + * + *
+   * Configuration for the horizontal pod autoscaling feature, which
+   * increases or decreases the number of replica pods a replication controller
+   * has based on the resource usage of the existing pods.
+   * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * + * @return Whether the horizontalPodAutoscaling field is set. + */ + boolean hasHorizontalPodAutoscaling(); + /** + * + * + *
+   * Configuration for the horizontal pod autoscaling feature, which
+   * increases or decreases the number of replica pods a replication controller
+   * has based on the resource usage of the existing pods.
+   * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * + * @return The horizontalPodAutoscaling. + */ + com.google.container.v1beta1.HorizontalPodAutoscaling getHorizontalPodAutoscaling(); + /** + * + * + *
+   * Configuration for the horizontal pod autoscaling feature, which
+   * increases or decreases the number of replica pods a replication controller
+   * has based on the resource usage of the existing pods.
+   * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + com.google.container.v1beta1.HorizontalPodAutoscalingOrBuilder + getHorizontalPodAutoscalingOrBuilder(); + + /** + * + * + *
+   * Configuration for the Kubernetes Dashboard.
+   * This addon is deprecated, and will be disabled in 1.15. It is recommended
+   * to use the Cloud Console to manage and monitor your Kubernetes clusters,
+   * workloads and applications. For more information, see:
+   * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
+   * 
+ * + * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + * + * @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1051 + * @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=1051 + * @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=1060 + * @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=1060 + * @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=1079 + * @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=1079 + * @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(); +} 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 new file mode 100644 index 000000000000..b773c0ee9f4d --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdvancedMachineFeatures.java @@ -0,0 +1,583 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Specifies options for controlling advanced machine features.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.AdvancedMachineFeatures} + */ +public final class AdvancedMachineFeatures extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.AdvancedMachineFeatures) + AdvancedMachineFeaturesOrBuilder { + private static final long serialVersionUID = 0L; + // Use AdvancedMachineFeatures.newBuilder() to construct. + private AdvancedMachineFeatures(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AdvancedMachineFeatures() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AdvancedMachineFeatures(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AdvancedMachineFeatures_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AdvancedMachineFeatures_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AdvancedMachineFeatures.class, + com.google.container.v1beta1.AdvancedMachineFeatures.Builder.class); + } + + private int bitField0_; + public static final int THREADS_PER_CORE_FIELD_NUMBER = 1; + private long threadsPerCore_; + /** + * + * + *
+   * The number of threads per physical core. To disable simultaneous
+   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+   * supported per core by the underlying processor is assumed.
+   * 
+ * + * optional int64 threads_per_core = 1; + * + * @return Whether the threadsPerCore field is set. + */ + @java.lang.Override + public boolean hasThreadsPerCore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * The number of threads per physical core. To disable simultaneous
+   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+   * supported per core by the underlying processor is assumed.
+   * 
+ * + * optional int64 threads_per_core = 1; + * + * @return The threadsPerCore. + */ + @java.lang.Override + public long getThreadsPerCore() { + return threadsPerCore_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt64(1, threadsPerCore_); + } + 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(); + threadsPerCore_ = 0L; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AdvancedMachineFeatures_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.AdvancedMachineFeatures getDefaultInstanceForType() { + return com.google.container.v1beta1.AdvancedMachineFeatures.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.AdvancedMachineFeatures build() { + com.google.container.v1beta1.AdvancedMachineFeatures result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.AdvancedMachineFeatures buildPartial() { + com.google.container.v1beta1.AdvancedMachineFeatures result = + new com.google.container.v1beta1.AdvancedMachineFeatures(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.threadsPerCore_ = threadsPerCore_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.AdvancedMachineFeatures) { + return mergeFrom((com.google.container.v1beta1.AdvancedMachineFeatures) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.AdvancedMachineFeatures other) { + if (other == com.google.container.v1beta1.AdvancedMachineFeatures.getDefaultInstance()) + return this; + if (other.hasThreadsPerCore()) { + setThreadsPerCore(other.getThreadsPerCore()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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) { + bitField0_ |= 0x00000001; + threadsPerCore_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of threads per physical core. To disable simultaneous
+     * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+     * supported per core by the underlying processor is assumed.
+     * 
+ * + * optional int64 threads_per_core = 1; + * + * @return This builder for chaining. + */ + public Builder clearThreadsPerCore() { + bitField0_ = (bitField0_ & ~0x00000001); + threadsPerCore_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.AdvancedMachineFeatures) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.AdvancedMachineFeatures) + private static final com.google.container.v1beta1.AdvancedMachineFeatures DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.AdvancedMachineFeatures(); + } + + public static com.google.container.v1beta1.AdvancedMachineFeatures getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdvancedMachineFeatures parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..025bbd7208f2 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdvancedMachineFeaturesOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface AdvancedMachineFeaturesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.AdvancedMachineFeatures) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The number of threads per physical core. To disable simultaneous
+   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+   * supported per core by the underlying processor is assumed.
+   * 
+ * + * optional int64 threads_per_core = 1; + * + * @return Whether the threadsPerCore field is set. + */ + boolean hasThreadsPerCore(); + /** + * + * + *
+   * The number of threads per physical core. To disable simultaneous
+   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+   * supported per core by the underlying processor is assumed.
+   * 
+ * + * optional int64 threads_per_core = 1; + * + * @return The threadsPerCore. + */ + long getThreadsPerCore(); +} diff --git a/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 new file mode 100644 index 000000000000..1042d6e70843 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AuthenticatorGroupsConfig.java @@ -0,0 +1,718 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration for returning group information from authenticators.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.AuthenticatorGroupsConfig} + */ +public final class AuthenticatorGroupsConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.AuthenticatorGroupsConfig) + AuthenticatorGroupsConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use AuthenticatorGroupsConfig.newBuilder() to construct. + private AuthenticatorGroupsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AuthenticatorGroupsConfig() { + securityGroup_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AuthenticatorGroupsConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AuthenticatorGroupsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AuthenticatorGroupsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AuthenticatorGroupsConfig.class, + com.google.container.v1beta1.AuthenticatorGroupsConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether this cluster should return group membership lookups
+   * during authentication using a group of security groups.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int SECURITY_GROUP_FIELD_NUMBER = 2; + private volatile java.lang.Object securityGroup_; + /** + * + * + *
+   * The name of the security group-of-groups to be used. Only relevant
+   * if enabled = true.
+   * 
+ * + * string security_group = 2; + * + * @return The securityGroup. + */ + @java.lang.Override + public java.lang.String getSecurityGroup() { + java.lang.Object ref = securityGroup_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + securityGroup_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the security group-of-groups to be used. Only relevant
+   * if enabled = true.
+   * 
+ * + * string security_group = 2; + * + * @return The bytes for securityGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSecurityGroupBytes() { + java.lang.Object ref = securityGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + securityGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + if (!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(); + enabled_ = false; + + securityGroup_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AuthenticatorGroupsConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.AuthenticatorGroupsConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.AuthenticatorGroupsConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.AuthenticatorGroupsConfig build() { + com.google.container.v1beta1.AuthenticatorGroupsConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.AuthenticatorGroupsConfig buildPartial() { + com.google.container.v1beta1.AuthenticatorGroupsConfig result = + new com.google.container.v1beta1.AuthenticatorGroupsConfig(this); + result.enabled_ = enabled_; + result.securityGroup_ = securityGroup_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.AuthenticatorGroupsConfig) { + return mergeFrom((com.google.container.v1beta1.AuthenticatorGroupsConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.AuthenticatorGroupsConfig other) { + if (other == com.google.container.v1beta1.AuthenticatorGroupsConfig.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (!other.getSecurityGroup().isEmpty()) { + securityGroup_ = other.securityGroup_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 8 + case 18: + { + securityGroup_ = input.readStringRequireUtf8(); + + 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 boolean enabled_; + /** + * + * + *
+     * Whether this cluster should return group membership lookups
+     * during authentication using a group of security groups.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether this cluster should return group membership lookups
+     * during authentication using a group of security groups.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether this cluster should return group membership lookups
+     * during authentication using a group of security groups.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + private java.lang.Object securityGroup_ = ""; + /** + * + * + *
+     * The name of the security group-of-groups to be used. Only relevant
+     * if enabled = true.
+     * 
+ * + * string security_group = 2; + * + * @return The securityGroup. + */ + public java.lang.String getSecurityGroup() { + java.lang.Object ref = securityGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + securityGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the security group-of-groups to be used. Only relevant
+     * if enabled = true.
+     * 
+ * + * string security_group = 2; + * + * @return The bytes for securityGroup. + */ + public com.google.protobuf.ByteString getSecurityGroupBytes() { + java.lang.Object ref = securityGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + securityGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the security group-of-groups to be used. Only relevant
+     * if enabled = true.
+     * 
+ * + * string security_group = 2; + * + * @param value The securityGroup to set. + * @return This builder for chaining. + */ + public Builder setSecurityGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + securityGroup_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the security group-of-groups to be used. Only relevant
+     * if enabled = true.
+     * 
+ * + * string security_group = 2; + * + * @return This builder for chaining. + */ + public Builder clearSecurityGroup() { + + securityGroup_ = getDefaultInstance().getSecurityGroup(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the security group-of-groups to be used. Only relevant
+     * if enabled = true.
+     * 
+ * + * string security_group = 2; + * + * @param value The bytes for securityGroup to set. + * @return This builder for chaining. + */ + public Builder setSecurityGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + securityGroup_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.AuthenticatorGroupsConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.AuthenticatorGroupsConfig) + private static final com.google.container.v1beta1.AuthenticatorGroupsConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.AuthenticatorGroupsConfig(); + } + + public static com.google.container.v1beta1.AuthenticatorGroupsConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthenticatorGroupsConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..99a8d7b9d144 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AuthenticatorGroupsConfigOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface AuthenticatorGroupsConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.AuthenticatorGroupsConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether this cluster should return group membership lookups
+   * during authentication using a group of security groups.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); + + /** + * + * + *
+   * The name of the security group-of-groups to be used. Only relevant
+   * if enabled = true.
+   * 
+ * + * string security_group = 2; + * + * @return The securityGroup. + */ + java.lang.String getSecurityGroup(); + /** + * + * + *
+   * The name of the security group-of-groups to be used. Only relevant
+   * if enabled = true.
+   * 
+ * + * string security_group = 2; + * + * @return The bytes for securityGroup. + */ + com.google.protobuf.ByteString getSecurityGroupBytes(); +} diff --git a/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 new file mode 100644 index 000000000000..bb44a0661ce2 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptions.java @@ -0,0 +1,816 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * AutoUpgradeOptions defines the set of options for the user to control how
+ * the Auto Upgrades will proceed.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.AutoUpgradeOptions} + */ +public final class AutoUpgradeOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.AutoUpgradeOptions) + AutoUpgradeOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use AutoUpgradeOptions.newBuilder() to construct. + private AutoUpgradeOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AutoUpgradeOptions() { + autoUpgradeStartTime_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AutoUpgradeOptions(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AutoUpgradeOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AutoUpgradeOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AutoUpgradeOptions.class, + com.google.container.v1beta1.AutoUpgradeOptions.Builder.class); + } + + public static final int AUTO_UPGRADE_START_TIME_FIELD_NUMBER = 1; + private volatile java.lang.Object autoUpgradeStartTime_; + /** + * + * + *
+   * [Output only] This field is set when upgrades are about to commence
+   * with the approximate start time for the upgrades, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string auto_upgrade_start_time = 1; + * + * @return The autoUpgradeStartTime. + */ + @java.lang.Override + public java.lang.String getAutoUpgradeStartTime() { + java.lang.Object ref = autoUpgradeStartTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + autoUpgradeStartTime_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] This field is set when upgrades are about to commence
+   * with the approximate start time for the upgrades, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string auto_upgrade_start_time = 1; + * + * @return The bytes for autoUpgradeStartTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAutoUpgradeStartTimeBytes() { + java.lang.Object ref = autoUpgradeStartTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + autoUpgradeStartTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + private volatile java.lang.Object description_; + /** + * + * + *
+   * [Output only] This field is set when upgrades are about to commence
+   * with the description of the upgrade.
+   * 
+ * + * string description = 2; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] This field is set when upgrades are about to commence
+   * with the description of the upgrade.
+   * 
+ * + * string description = 2; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + autoUpgradeStartTime_ = ""; + + description_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AutoUpgradeOptions_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.AutoUpgradeOptions getDefaultInstanceForType() { + return com.google.container.v1beta1.AutoUpgradeOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.AutoUpgradeOptions build() { + com.google.container.v1beta1.AutoUpgradeOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.AutoUpgradeOptions buildPartial() { + com.google.container.v1beta1.AutoUpgradeOptions result = + new com.google.container.v1beta1.AutoUpgradeOptions(this); + result.autoUpgradeStartTime_ = autoUpgradeStartTime_; + result.description_ = description_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.AutoUpgradeOptions) { + return mergeFrom((com.google.container.v1beta1.AutoUpgradeOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.AutoUpgradeOptions other) { + if (other == com.google.container.v1beta1.AutoUpgradeOptions.getDefaultInstance()) + return this; + if (!other.getAutoUpgradeStartTime().isEmpty()) { + autoUpgradeStartTime_ = other.autoUpgradeStartTime_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + + 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 java.lang.Object autoUpgradeStartTime_ = ""; + /** + * + * + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the approximate start time for the upgrades, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string auto_upgrade_start_time = 1; + * + * @return The autoUpgradeStartTime. + */ + public java.lang.String getAutoUpgradeStartTime() { + java.lang.Object ref = autoUpgradeStartTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + autoUpgradeStartTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the approximate start time for the upgrades, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string auto_upgrade_start_time = 1; + * + * @return The bytes for autoUpgradeStartTime. + */ + public com.google.protobuf.ByteString getAutoUpgradeStartTimeBytes() { + java.lang.Object ref = autoUpgradeStartTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + autoUpgradeStartTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the approximate start time for the upgrades, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string auto_upgrade_start_time = 1; + * + * @param value The autoUpgradeStartTime to set. + * @return This builder for chaining. + */ + public Builder setAutoUpgradeStartTime(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + autoUpgradeStartTime_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the approximate start time for the upgrades, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string auto_upgrade_start_time = 1; + * + * @return This builder for chaining. + */ + public Builder clearAutoUpgradeStartTime() { + + autoUpgradeStartTime_ = getDefaultInstance().getAutoUpgradeStartTime(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the approximate start time for the upgrades, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string auto_upgrade_start_time = 1; + * + * @param value The bytes for autoUpgradeStartTime to set. + * @return This builder for chaining. + */ + public Builder setAutoUpgradeStartTimeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + autoUpgradeStartTime_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the description of the upgrade.
+     * 
+ * + * string description = 2; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the description of the upgrade.
+     * 
+ * + * string description = 2; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the description of the upgrade.
+     * 
+ * + * string description = 2; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the description of the upgrade.
+     * 
+ * + * string description = 2; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the description of the upgrade.
+     * 
+ * + * string description = 2; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.AutoUpgradeOptions) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.AutoUpgradeOptions) + private static final com.google.container.v1beta1.AutoUpgradeOptions DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.AutoUpgradeOptions(); + } + + public static com.google.container.v1beta1.AutoUpgradeOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutoUpgradeOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..45248671b94b --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptionsOrBuilder.java @@ -0,0 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface AutoUpgradeOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.AutoUpgradeOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * [Output only] This field is set when upgrades are about to commence
+   * with the approximate start time for the upgrades, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string auto_upgrade_start_time = 1; + * + * @return The autoUpgradeStartTime. + */ + java.lang.String getAutoUpgradeStartTime(); + /** + * + * + *
+   * [Output only] This field is set when upgrades are about to commence
+   * with the approximate start time for the upgrades, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string auto_upgrade_start_time = 1; + * + * @return The bytes for autoUpgradeStartTime. + */ + com.google.protobuf.ByteString getAutoUpgradeStartTimeBytes(); + + /** + * + * + *
+   * [Output only] This field is set when upgrades are about to commence
+   * with the description of the upgrade.
+   * 
+ * + * string description = 2; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * [Output only] This field is set when upgrades are about to commence
+   * with the description of the upgrade.
+   * 
+ * + * string description = 2; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); +} diff --git a/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 new file mode 100644 index 000000000000..bf3172a49bb4 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Autopilot.java @@ -0,0 +1,525 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Enable Autopilot
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + 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.Autopilot)) { + return super.equals(obj); + } + com.google.container.v1beta1.Autopilot other = (com.google.container.v1beta1.Autopilot) 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.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_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); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.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()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 boolean enabled_; + /** + * + * + *
+     * Enable Autopilot
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Enable Autopilot
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Enable Autopilot
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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/AutopilotOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutopilotOrBuilder.java new file mode 100644 index 000000000000..6e1be05d194a --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutopilotOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +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(); +} 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 new file mode 100644 index 000000000000..3c3fc5c2d7db --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaults.java @@ -0,0 +1,2826 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * AutoprovisioningNodePoolDefaults contains defaults for a node pool created
+ * by NAP.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.AutoprovisioningNodePoolDefaults} + */ +public final class AutoprovisioningNodePoolDefaults extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.AutoprovisioningNodePoolDefaults) + AutoprovisioningNodePoolDefaultsOrBuilder { + private static final long serialVersionUID = 0L; + // Use AutoprovisioningNodePoolDefaults.newBuilder() to construct. + private AutoprovisioningNodePoolDefaults( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AutoprovisioningNodePoolDefaults() { + oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + serviceAccount_ = ""; + minCpuPlatform_ = ""; + diskType_ = ""; + bootDiskKmsKey_ = ""; + imageType_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AutoprovisioningNodePoolDefaults(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AutoprovisioningNodePoolDefaults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AutoprovisioningNodePoolDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.class, + com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.Builder.class); + } + + public static final int OAUTH_SCOPES_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList oauthScopes_; + /** + * + * + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container
+   * Registry](https://cloud.google.com/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 1; + * + * @return A list containing the oauthScopes. + */ + public com.google.protobuf.ProtocolStringList getOauthScopesList() { + return oauthScopes_; + } + /** + * + * + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container
+   * Registry](https://cloud.google.com/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 1; + * + * @return The count of oauthScopes. + */ + public int getOauthScopesCount() { + return oauthScopes_.size(); + } + /** + * + * + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container
+   * Registry](https://cloud.google.com/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 1; + * + * @param index The index of the element to return. + * @return The oauthScopes at the given index. + */ + public java.lang.String getOauthScopes(int index) { + return oauthScopes_.get(index); + } + /** + * + * + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container
+   * Registry](https://cloud.google.com/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 1; + * + * @param index The index of the value to return. + * @return The bytes of the oauthScopes at the given index. + */ + public com.google.protobuf.ByteString getOauthScopesBytes(int index) { + return oauthScopes_.getByteString(index); + } + + public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 2; + private volatile java.lang.Object serviceAccount_; + /** + * + * + *
+   * The Google Cloud Platform Service Account to be used by the node VMs.
+   * Specify the email address of the Service Account; otherwise, if no Service
+   * Account is specified, the "default" service account is used.
+   * 
+ * + * string service_account = 2; + * + * @return The serviceAccount. + */ + @java.lang.Override + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } + } + /** + * + * + *
+   * The Google Cloud Platform Service Account to be used by the node VMs.
+   * Specify the email address of the Service Account; otherwise, if no Service
+   * Account is specified, the "default" service account is used.
+   * 
+ * + * string service_account = 2; + * + * @return The bytes for serviceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UPGRADE_SETTINGS_FIELD_NUMBER = 3; + private com.google.container.v1beta1.NodePool.UpgradeSettings upgradeSettings_; + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; + * + * @return Whether the upgradeSettings field is set. + */ + @java.lang.Override + public boolean hasUpgradeSettings() { + return upgradeSettings_ != null; + } + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; + * + * @return The upgradeSettings. + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool.UpgradeSettings getUpgradeSettings() { + return upgradeSettings_ == null + ? com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance() + : upgradeSettings_; + } + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder + getUpgradeSettingsOrBuilder() { + return getUpgradeSettings(); + } + + public static final int MANAGEMENT_FIELD_NUMBER = 4; + private com.google.container.v1beta1.NodeManagement management_; + /** + * + * + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1beta1.NodeManagement management = 4; + * + * @return Whether the management field is set. + */ + @java.lang.Override + public boolean hasManagement() { + return management_ != null; + } + /** + * + * + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1beta1.NodeManagement management = 4; + * + * @return The management. + */ + @java.lang.Override + public com.google.container.v1beta1.NodeManagement getManagement() { + return management_ == null + ? com.google.container.v1beta1.NodeManagement.getDefaultInstance() + : management_; + } + /** + * + * + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1beta1.NodeManagement management = 4; + */ + @java.lang.Override + public com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuilder() { + return getManagement(); + } + + public static final int MIN_CPU_PLATFORM_FIELD_NUMBER = 5; + private volatile java.lang.Object minCpuPlatform_; + /** + * + * + *
+   * 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
+   * https://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=3917 + * @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
+   * https://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=3917 + * @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_; + /** + * + * + *
+   * Size of the disk attached to each node, specified in GB.
+   * The smallest allowed disk size is 10GB.
+   * If unspecified, the default disk size is 100GB.
+   * 
+ * + * int32 disk_size_gb = 6; + * + * @return The diskSizeGb. + */ + @java.lang.Override + public int getDiskSizeGb() { + return diskSizeGb_; + } + + public static final int DISK_TYPE_FIELD_NUMBER = 7; + private volatile java.lang.Object diskType_; + /** + * + * + *
+   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+   * 'pd-balanced')
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 7; + * + * @return The diskType. + */ + @java.lang.Override + public java.lang.String getDiskType() { + java.lang.Object ref = diskType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diskType_ = s; + return s; + } + } + /** + * + * + *
+   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+   * 'pd-balanced')
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 7; + * + * @return The bytes for diskType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDiskTypeBytes() { + java.lang.Object ref = diskType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + diskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 8; + private com.google.container.v1beta1.ShieldedInstanceConfig shieldedInstanceConfig_; + /** + * + * + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; + * + * @return Whether the shieldedInstanceConfig field is set. + */ + @java.lang.Override + public boolean hasShieldedInstanceConfig() { + return shieldedInstanceConfig_ != null; + } + /** + * + * + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; + * + * @return The shieldedInstanceConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.ShieldedInstanceConfig getShieldedInstanceConfig() { + return shieldedInstanceConfig_ == null + ? com.google.container.v1beta1.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; + } + /** + * + * + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + @java.lang.Override + public com.google.container.v1beta1.ShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { + return getShieldedInstanceConfig(); + } + + public static final int BOOT_DISK_KMS_KEY_FIELD_NUMBER = 9; + private volatile java.lang.Object bootDiskKmsKey_; + /** + * + * + *
+   * The Customer Managed Encryption Key used to encrypt the boot disk attached
+   * to each node in the node pool. This should be of the form
+   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+   * For more information about protecting resources with Cloud KMS Keys please
+   * see:
+   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+   * 
+ * + * string boot_disk_kms_key = 9; + * + * @return The bootDiskKmsKey. + */ + @java.lang.Override + public java.lang.String getBootDiskKmsKey() { + java.lang.Object ref = bootDiskKmsKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bootDiskKmsKey_ = s; + return s; + } + } + /** + * + * + *
+   * The Customer Managed Encryption Key used to encrypt the boot disk attached
+   * to each node in the node pool. This should be of the form
+   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+   * For more information about protecting resources with Cloud KMS Keys please
+   * see:
+   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+   * 
+ * + * string boot_disk_kms_key = 9; + * + * @return The bytes for bootDiskKmsKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBootDiskKmsKeyBytes() { + java.lang.Object ref = bootDiskKmsKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bootDiskKmsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IMAGE_TYPE_FIELD_NUMBER = 10; + private volatile java.lang.Object imageType_; + /** + * + * + *
+   * The image type to use for NAP created node.
+   * 
+ * + * 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.
+   * 
+ * + * string image_type = 10; + * + * @return The bytes for imageType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getImageTypeBytes() { + java.lang.Object ref = imageType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < oauthScopes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, oauthScopes_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceAccount_); + } + if (upgradeSettings_ != null) { + output.writeMessage(3, getUpgradeSettings()); + } + if (management_ != null) { + 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 (shieldedInstanceConfig_ != null) { + 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_); + } + 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 (upgradeSettings_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpgradeSettings()); + } + if (management_ != null) { + 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 (shieldedInstanceConfig_ != null) { + 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_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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 (!getUnknownFields().equals(other.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(); + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + serviceAccount_ = ""; + + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = null; + } else { + upgradeSettings_ = null; + upgradeSettingsBuilder_ = null; + } + if (managementBuilder_ == null) { + management_ = null; + } else { + management_ = null; + managementBuilder_ = null; + } + minCpuPlatform_ = ""; + + diskSizeGb_ = 0; + + diskType_ = ""; + + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfig_ = null; + } else { + shieldedInstanceConfig_ = null; + shieldedInstanceConfigBuilder_ = null; + } + bootDiskKmsKey_ = ""; + + imageType_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AutoprovisioningNodePoolDefaults_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.AutoprovisioningNodePoolDefaults + getDefaultInstanceForType() { + return com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.AutoprovisioningNodePoolDefaults build() { + com.google.container.v1beta1.AutoprovisioningNodePoolDefaults result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.AutoprovisioningNodePoolDefaults buildPartial() { + com.google.container.v1beta1.AutoprovisioningNodePoolDefaults result = + new com.google.container.v1beta1.AutoprovisioningNodePoolDefaults(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + oauthScopes_ = oauthScopes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.oauthScopes_ = oauthScopes_; + result.serviceAccount_ = serviceAccount_; + if (upgradeSettingsBuilder_ == null) { + result.upgradeSettings_ = upgradeSettings_; + } else { + result.upgradeSettings_ = upgradeSettingsBuilder_.build(); + } + if (managementBuilder_ == null) { + result.management_ = management_; + } else { + result.management_ = managementBuilder_.build(); + } + result.minCpuPlatform_ = minCpuPlatform_; + result.diskSizeGb_ = diskSizeGb_; + result.diskType_ = diskType_; + if (shieldedInstanceConfigBuilder_ == null) { + result.shieldedInstanceConfig_ = shieldedInstanceConfig_; + } else { + result.shieldedInstanceConfig_ = shieldedInstanceConfigBuilder_.build(); + } + result.bootDiskKmsKey_ = bootDiskKmsKey_; + result.imageType_ = imageType_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.AutoprovisioningNodePoolDefaults) { + return mergeFrom((com.google.container.v1beta1.AutoprovisioningNodePoolDefaults) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.AutoprovisioningNodePoolDefaults other) { + if (other + == com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.getDefaultInstance()) + return this; + if (!other.oauthScopes_.isEmpty()) { + if (oauthScopes_.isEmpty()) { + oauthScopes_ = other.oauthScopes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOauthScopesIsMutable(); + oauthScopes_.addAll(other.oauthScopes_); + } + onChanged(); + } + if (!other.getServiceAccount().isEmpty()) { + serviceAccount_ = other.serviceAccount_; + onChanged(); + } + if (other.hasUpgradeSettings()) { + mergeUpgradeSettings(other.getUpgradeSettings()); + } + if (other.hasManagement()) { + mergeManagement(other.getManagement()); + } + if (!other.getMinCpuPlatform().isEmpty()) { + minCpuPlatform_ = other.minCpuPlatform_; + onChanged(); + } + if (other.getDiskSizeGb() != 0) { + setDiskSizeGb(other.getDiskSizeGb()); + } + if (!other.getDiskType().isEmpty()) { + diskType_ = other.diskType_; + onChanged(); + } + if (other.hasShieldedInstanceConfig()) { + mergeShieldedInstanceConfig(other.getShieldedInstanceConfig()); + } + if (!other.getBootDiskKmsKey().isEmpty()) { + bootDiskKmsKey_ = other.bootDiskKmsKey_; + onChanged(); + } + if (!other.getImageType().isEmpty()) { + imageType_ = other.imageType_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 18 + case 26: + { + input.readMessage(getUpgradeSettingsFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + input.readMessage(getManagementFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + minCpuPlatform_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 48: + { + diskSizeGb_ = input.readInt32(); + + break; + } // case 48 + case 58: + { + diskType_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + input.readMessage( + getShieldedInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 66 + case 74: + { + bootDiskKmsKey_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 82: + { + imageType_ = input.readStringRequireUtf8(); + + 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 com.google.protobuf.LazyStringList oauthScopes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureOauthScopesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + oauthScopes_ = new com.google.protobuf.LazyStringArrayList(oauthScopes_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 1; + * + * @return A list containing the oauthScopes. + */ + public com.google.protobuf.ProtocolStringList getOauthScopesList() { + return oauthScopes_.getUnmodifiableView(); + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 1; + * + * @return The count of oauthScopes. + */ + public int getOauthScopesCount() { + return oauthScopes_.size(); + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 1; + * + * @param index The index of the element to return. + * @return The oauthScopes at the given index. + */ + public java.lang.String getOauthScopes(int index) { + return oauthScopes_.get(index); + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 1; + * + * @param index The index of the value to return. + * @return The bytes of the oauthScopes at the given index. + */ + public com.google.protobuf.ByteString getOauthScopesBytes(int index) { + return oauthScopes_.getByteString(index); + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 1; + * + * @param index The index to set the value at. + * @param value The oauthScopes to set. + * @return This builder for chaining. + */ + public Builder setOauthScopes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOauthScopesIsMutable(); + oauthScopes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 1; + * + * @param value The oauthScopes to add. + * @return This builder for chaining. + */ + public Builder addOauthScopes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOauthScopesIsMutable(); + oauthScopes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 1; + * + * @param values The oauthScopes to add. + * @return This builder for chaining. + */ + public Builder addAllOauthScopes(java.lang.Iterable values) { + ensureOauthScopesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, oauthScopes_); + onChanged(); + return this; + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 1; + * + * @return This builder for chaining. + */ + public Builder clearOauthScopes() { + oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 1; + * + * @param value The bytes of the oauthScopes to add. + * @return This builder for chaining. + */ + public Builder addOauthScopesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureOauthScopesIsMutable(); + oauthScopes_.add(value); + onChanged(); + return this; + } + + private java.lang.Object serviceAccount_ = ""; + /** + * + * + *
+     * The Google Cloud Platform Service Account to be used by the node VMs.
+     * Specify the email address of the Service Account; otherwise, if no Service
+     * Account is specified, the "default" service account is used.
+     * 
+ * + * string service_account = 2; + * + * @return The serviceAccount. + */ + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The Google Cloud Platform Service Account to be used by the node VMs.
+     * Specify the email address of the Service Account; otherwise, if no Service
+     * Account is specified, the "default" service account is used.
+     * 
+ * + * string service_account = 2; + * + * @return The bytes for serviceAccount. + */ + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The Google Cloud Platform Service Account to be used by the node VMs.
+     * Specify the email address of the Service Account; otherwise, if no Service
+     * Account is specified, the "default" service account is used.
+     * 
+ * + * string service_account = 2; + * + * @param value The serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceAccount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The Google Cloud Platform Service Account to be used by the node VMs.
+     * Specify the email address of the Service Account; otherwise, if no Service
+     * Account is specified, the "default" service account is used.
+     * 
+ * + * string service_account = 2; + * + * @return This builder for chaining. + */ + public Builder clearServiceAccount() { + + serviceAccount_ = getDefaultInstance().getServiceAccount(); + onChanged(); + return this; + } + /** + * + * + *
+     * The Google Cloud Platform Service Account to be used by the node VMs.
+     * Specify the email address of the Service Account; otherwise, if no Service
+     * Account is specified, the "default" service account is used.
+     * 
+ * + * string service_account = 2; + * + * @param value The bytes for serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serviceAccount_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NodePool.UpgradeSettings upgradeSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool.UpgradeSettings, + com.google.container.v1beta1.NodePool.UpgradeSettings.Builder, + com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder> + upgradeSettingsBuilder_; + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; + * + * @return Whether the upgradeSettings field is set. + */ + public boolean hasUpgradeSettings() { + return upgradeSettingsBuilder_ != null || upgradeSettings_ != null; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; + * + * @return The upgradeSettings. + */ + public com.google.container.v1beta1.NodePool.UpgradeSettings getUpgradeSettings() { + if (upgradeSettingsBuilder_ == null) { + return upgradeSettings_ == null + ? com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance() + : upgradeSettings_; + } else { + return upgradeSettingsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + public Builder setUpgradeSettings(com.google.container.v1beta1.NodePool.UpgradeSettings value) { + if (upgradeSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + upgradeSettings_ = value; + onChanged(); + } else { + upgradeSettingsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + public Builder setUpgradeSettings( + com.google.container.v1beta1.NodePool.UpgradeSettings.Builder builderForValue) { + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = builderForValue.build(); + onChanged(); + } else { + upgradeSettingsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + public Builder mergeUpgradeSettings( + com.google.container.v1beta1.NodePool.UpgradeSettings value) { + if (upgradeSettingsBuilder_ == null) { + if (upgradeSettings_ != null) { + upgradeSettings_ = + com.google.container.v1beta1.NodePool.UpgradeSettings.newBuilder(upgradeSettings_) + .mergeFrom(value) + .buildPartial(); + } else { + upgradeSettings_ = value; + } + onChanged(); + } else { + upgradeSettingsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + public Builder clearUpgradeSettings() { + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = null; + onChanged(); + } else { + upgradeSettings_ = null; + upgradeSettingsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + public com.google.container.v1beta1.NodePool.UpgradeSettings.Builder + getUpgradeSettingsBuilder() { + + onChanged(); + return getUpgradeSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + public com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder + getUpgradeSettingsOrBuilder() { + if (upgradeSettingsBuilder_ != null) { + return upgradeSettingsBuilder_.getMessageOrBuilder(); + } else { + return upgradeSettings_ == null + ? com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance() + : upgradeSettings_; + } + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool.UpgradeSettings, + com.google.container.v1beta1.NodePool.UpgradeSettings.Builder, + com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder> + getUpgradeSettingsFieldBuilder() { + if (upgradeSettingsBuilder_ == null) { + upgradeSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool.UpgradeSettings, + com.google.container.v1beta1.NodePool.UpgradeSettings.Builder, + com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder>( + getUpgradeSettings(), getParentForChildren(), isClean()); + upgradeSettings_ = null; + } + return upgradeSettingsBuilder_; + } + + private com.google.container.v1beta1.NodeManagement management_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeManagement, + com.google.container.v1beta1.NodeManagement.Builder, + com.google.container.v1beta1.NodeManagementOrBuilder> + managementBuilder_; + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 4; + * + * @return Whether the management field is set. + */ + public boolean hasManagement() { + return managementBuilder_ != null || management_ != null; + } + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 4; + * + * @return The management. + */ + public com.google.container.v1beta1.NodeManagement getManagement() { + if (managementBuilder_ == null) { + return management_ == null + ? com.google.container.v1beta1.NodeManagement.getDefaultInstance() + : management_; + } else { + return managementBuilder_.getMessage(); + } + } + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 4; + */ + public Builder setManagement(com.google.container.v1beta1.NodeManagement value) { + if (managementBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + management_ = value; + onChanged(); + } else { + managementBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 4; + */ + public Builder setManagement( + com.google.container.v1beta1.NodeManagement.Builder builderForValue) { + if (managementBuilder_ == null) { + management_ = builderForValue.build(); + onChanged(); + } else { + managementBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 4; + */ + public Builder mergeManagement(com.google.container.v1beta1.NodeManagement value) { + if (managementBuilder_ == null) { + if (management_ != null) { + management_ = + com.google.container.v1beta1.NodeManagement.newBuilder(management_) + .mergeFrom(value) + .buildPartial(); + } else { + management_ = value; + } + onChanged(); + } else { + managementBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 4; + */ + public Builder clearManagement() { + if (managementBuilder_ == null) { + management_ = null; + onChanged(); + } else { + management_ = null; + managementBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 4; + */ + public com.google.container.v1beta1.NodeManagement.Builder getManagementBuilder() { + + onChanged(); + return getManagementFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 4; + */ + public com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuilder() { + if (managementBuilder_ != null) { + return managementBuilder_.getMessageOrBuilder(); + } else { + return management_ == null + ? com.google.container.v1beta1.NodeManagement.getDefaultInstance() + : management_; + } + } + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeManagement, + com.google.container.v1beta1.NodeManagement.Builder, + com.google.container.v1beta1.NodeManagementOrBuilder> + getManagementFieldBuilder() { + if (managementBuilder_ == null) { + managementBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeManagement, + com.google.container.v1beta1.NodeManagement.Builder, + com.google.container.v1beta1.NodeManagementOrBuilder>( + getManagement(), getParentForChildren(), isClean()); + management_ = null; + } + return managementBuilder_; + } + + private java.lang.Object minCpuPlatform_ = ""; + /** + * + * + *
+     * 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
+     * https://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=3917 + * @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
+     * https://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=3917 + * @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
+     * https://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=3917 + * @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; + 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
+     * https://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=3917 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearMinCpuPlatform() { + + minCpuPlatform_ = getDefaultInstance().getMinCpuPlatform(); + 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
+     * https://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=3917 + * @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; + onChanged(); + return this; + } + + private int diskSizeGb_; + /** + * + * + *
+     * Size of the disk attached to each node, specified in GB.
+     * The smallest allowed disk size is 10GB.
+     * If unspecified, the default disk size is 100GB.
+     * 
+ * + * int32 disk_size_gb = 6; + * + * @return The diskSizeGb. + */ + @java.lang.Override + public int getDiskSizeGb() { + return diskSizeGb_; + } + /** + * + * + *
+     * Size of the disk attached to each node, specified in GB.
+     * The smallest allowed disk size is 10GB.
+     * If unspecified, the default disk size is 100GB.
+     * 
+ * + * int32 disk_size_gb = 6; + * + * @param value The diskSizeGb to set. + * @return This builder for chaining. + */ + public Builder setDiskSizeGb(int value) { + + diskSizeGb_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Size of the disk attached to each node, specified in GB.
+     * The smallest allowed disk size is 10GB.
+     * If unspecified, the default disk size is 100GB.
+     * 
+ * + * int32 disk_size_gb = 6; + * + * @return This builder for chaining. + */ + public Builder clearDiskSizeGb() { + + diskSizeGb_ = 0; + onChanged(); + return this; + } + + private java.lang.Object diskType_ = ""; + /** + * + * + *
+     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 7; + * + * @return The diskType. + */ + public java.lang.String getDiskType() { + java.lang.Object ref = diskType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diskType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 7; + * + * @return The bytes for diskType. + */ + public com.google.protobuf.ByteString getDiskTypeBytes() { + java.lang.Object ref = diskType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + diskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 7; + * + * @param value The diskType to set. + * @return This builder for chaining. + */ + public Builder setDiskType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + diskType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 7; + * + * @return This builder for chaining. + */ + public Builder clearDiskType() { + + diskType_ = getDefaultInstance().getDiskType(); + onChanged(); + return this; + } + /** + * + * + *
+     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 7; + * + * @param value The bytes for diskType to set. + * @return This builder for chaining. + */ + public Builder setDiskTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + diskType_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.ShieldedInstanceConfig shieldedInstanceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ShieldedInstanceConfig, + com.google.container.v1beta1.ShieldedInstanceConfig.Builder, + com.google.container.v1beta1.ShieldedInstanceConfigOrBuilder> + shieldedInstanceConfigBuilder_; + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; + * + * @return Whether the shieldedInstanceConfig field is set. + */ + public boolean hasShieldedInstanceConfig() { + return shieldedInstanceConfigBuilder_ != null || shieldedInstanceConfig_ != null; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; + * + * @return The shieldedInstanceConfig. + */ + public com.google.container.v1beta1.ShieldedInstanceConfig getShieldedInstanceConfig() { + if (shieldedInstanceConfigBuilder_ == null) { + return shieldedInstanceConfig_ == null + ? com.google.container.v1beta1.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; + } else { + return shieldedInstanceConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + public Builder setShieldedInstanceConfig( + com.google.container.v1beta1.ShieldedInstanceConfig value) { + if (shieldedInstanceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + shieldedInstanceConfig_ = value; + onChanged(); + } else { + shieldedInstanceConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + public Builder setShieldedInstanceConfig( + com.google.container.v1beta1.ShieldedInstanceConfig.Builder builderForValue) { + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfig_ = builderForValue.build(); + onChanged(); + } else { + shieldedInstanceConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + public Builder mergeShieldedInstanceConfig( + com.google.container.v1beta1.ShieldedInstanceConfig value) { + if (shieldedInstanceConfigBuilder_ == null) { + if (shieldedInstanceConfig_ != null) { + shieldedInstanceConfig_ = + com.google.container.v1beta1.ShieldedInstanceConfig.newBuilder( + shieldedInstanceConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + shieldedInstanceConfig_ = value; + } + onChanged(); + } else { + shieldedInstanceConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + public Builder clearShieldedInstanceConfig() { + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfig_ = null; + onChanged(); + } else { + shieldedInstanceConfig_ = null; + shieldedInstanceConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + public com.google.container.v1beta1.ShieldedInstanceConfig.Builder + getShieldedInstanceConfigBuilder() { + + onChanged(); + return getShieldedInstanceConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + public com.google.container.v1beta1.ShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { + if (shieldedInstanceConfigBuilder_ != null) { + return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); + } else { + return shieldedInstanceConfig_ == null + ? com.google.container.v1beta1.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; + } + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ShieldedInstanceConfig, + com.google.container.v1beta1.ShieldedInstanceConfig.Builder, + com.google.container.v1beta1.ShieldedInstanceConfigOrBuilder> + getShieldedInstanceConfigFieldBuilder() { + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ShieldedInstanceConfig, + com.google.container.v1beta1.ShieldedInstanceConfig.Builder, + com.google.container.v1beta1.ShieldedInstanceConfigOrBuilder>( + getShieldedInstanceConfig(), getParentForChildren(), isClean()); + shieldedInstanceConfig_ = null; + } + return shieldedInstanceConfigBuilder_; + } + + private java.lang.Object bootDiskKmsKey_ = ""; + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 9; + * + * @return The bootDiskKmsKey. + */ + public java.lang.String getBootDiskKmsKey() { + java.lang.Object ref = bootDiskKmsKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bootDiskKmsKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 9; + * + * @return The bytes for bootDiskKmsKey. + */ + public com.google.protobuf.ByteString getBootDiskKmsKeyBytes() { + java.lang.Object ref = bootDiskKmsKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bootDiskKmsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 9; + * + * @param value The bootDiskKmsKey to set. + * @return This builder for chaining. + */ + public Builder setBootDiskKmsKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + bootDiskKmsKey_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 9; + * + * @return This builder for chaining. + */ + public Builder clearBootDiskKmsKey() { + + bootDiskKmsKey_ = getDefaultInstance().getBootDiskKmsKey(); + onChanged(); + return this; + } + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 9; + * + * @param value The bytes for bootDiskKmsKey to set. + * @return This builder for chaining. + */ + public Builder setBootDiskKmsKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bootDiskKmsKey_ = value; + onChanged(); + return this; + } + + private java.lang.Object imageType_ = ""; + /** + * + * + *
+     * The image type to use for NAP created node.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * string image_type = 10; + * + * @param value The imageType to set. + * @return This builder for chaining. + */ + public Builder setImageType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + imageType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The image type to use for NAP created node.
+     * 
+ * + * string image_type = 10; + * + * @return This builder for chaining. + */ + public Builder clearImageType() { + + imageType_ = getDefaultInstance().getImageType(); + onChanged(); + return this; + } + /** + * + * + *
+     * The image type to use for NAP created node.
+     * 
+ * + * string image_type = 10; + * + * @param value The bytes for imageType to set. + * @return This builder for chaining. + */ + public Builder setImageTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + imageType_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.AutoprovisioningNodePoolDefaults) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.AutoprovisioningNodePoolDefaults) + private static final com.google.container.v1beta1.AutoprovisioningNodePoolDefaults + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.AutoprovisioningNodePoolDefaults(); + } + + public static com.google.container.v1beta1.AutoprovisioningNodePoolDefaults getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutoprovisioningNodePoolDefaults parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..bbd70f6724dd --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaultsOrBuilder.java @@ -0,0 +1,411 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface AutoprovisioningNodePoolDefaultsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.AutoprovisioningNodePoolDefaults) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container
+   * Registry](https://cloud.google.com/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 1; + * + * @return A list containing the oauthScopes. + */ + java.util.List getOauthScopesList(); + /** + * + * + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container
+   * Registry](https://cloud.google.com/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 1; + * + * @return The count of oauthScopes. + */ + int getOauthScopesCount(); + /** + * + * + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container
+   * Registry](https://cloud.google.com/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 1; + * + * @param index The index of the element to return. + * @return The oauthScopes at the given index. + */ + java.lang.String getOauthScopes(int index); + /** + * + * + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container
+   * Registry](https://cloud.google.com/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 1; + * + * @param index The index of the value to return. + * @return The bytes of the oauthScopes at the given index. + */ + com.google.protobuf.ByteString getOauthScopesBytes(int index); + + /** + * + * + *
+   * The Google Cloud Platform Service Account to be used by the node VMs.
+   * Specify the email address of the Service Account; otherwise, if no Service
+   * Account is specified, the "default" service account is used.
+   * 
+ * + * string service_account = 2; + * + * @return The serviceAccount. + */ + java.lang.String getServiceAccount(); + /** + * + * + *
+   * The Google Cloud Platform Service Account to be used by the node VMs.
+   * Specify the email address of the Service Account; otherwise, if no Service
+   * Account is specified, the "default" service account is used.
+   * 
+ * + * string service_account = 2; + * + * @return The bytes for serviceAccount. + */ + com.google.protobuf.ByteString getServiceAccountBytes(); + + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; + * + * @return Whether the upgradeSettings field is set. + */ + boolean hasUpgradeSettings(); + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; + * + * @return The upgradeSettings. + */ + com.google.container.v1beta1.NodePool.UpgradeSettings getUpgradeSettings(); + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder(); + + /** + * + * + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1beta1.NodeManagement management = 4; + * + * @return Whether the management field is set. + */ + boolean hasManagement(); + /** + * + * + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1beta1.NodeManagement management = 4; + * + * @return The management. + */ + com.google.container.v1beta1.NodeManagement getManagement(); + /** + * + * + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1beta1.NodeManagement management = 4; + */ + com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuilder(); + + /** + * + * + *
+   * 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
+   * https://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=3917 + * @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
+   * https://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=3917 + * @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.
+   * 
+ * + * string image_type = 10; + * + * @return The imageType. + */ + java.lang.String getImageType(); + /** + * + * + *
+   * The image type to use for NAP created node.
+   * 
+ * + * string image_type = 10; + * + * @return The bytes for imageType. + */ + com.google.protobuf.ByteString getImageTypeBytes(); +} 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 new file mode 100644 index 000000000000..e80310d01679 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorization.java @@ -0,0 +1,888 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration for Binary Authorization.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.BinaryAuthorization} + */ +public final class BinaryAuthorization extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.BinaryAuthorization) + BinaryAuthorizationOrBuilder { + private static final long serialVersionUID = 0L; + // Use BinaryAuthorization.newBuilder() to construct. + private BinaryAuthorization(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BinaryAuthorization() { + evaluationMode_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BinaryAuthorization(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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), + 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.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 static final int ENABLED_FIELD_NUMBER = 1; + 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=1478 + * @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_; + /** + * + * + *
+   * Mode of operation for binauthz policy evaluation. Currently the only
+   * options are equivalent to enable/disable. 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. Currently the only
+   * options are equivalent to enable/disable. 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.BinaryAuthorization.EvaluationMode result = + com.google.container.v1beta1.BinaryAuthorization.EvaluationMode.valueOf(evaluationMode_); + return result == null + ? com.google.container.v1beta1.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.v1beta1.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.v1beta1.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.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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.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(); + enabled_ = false; + + evaluationMode_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_BinaryAuthorization_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.BinaryAuthorization getDefaultInstanceForType() { + return com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.BinaryAuthorization build() { + com.google.container.v1beta1.BinaryAuthorization result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.BinaryAuthorization buildPartial() { + com.google.container.v1beta1.BinaryAuthorization result = + new com.google.container.v1beta1.BinaryAuthorization(this); + result.enabled_ = enabled_; + result.evaluationMode_ = evaluationMode_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.BinaryAuthorization) { + return mergeFrom((com.google.container.v1beta1.BinaryAuthorization) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.BinaryAuthorization other) { + if (other == com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + 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(); + + break; + } // case 8 + case 16: + { + evaluationMode_ = input.readEnum(); + + 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 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=1478 + * @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=1478 + * @param value The enabled to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setEnabled(boolean value) { + + enabled_ = value; + 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=1478 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + private int evaluationMode_ = 0; + /** + * + * + *
+     * Mode of operation for binauthz policy evaluation. Currently the only
+     * options are equivalent to enable/disable. 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. Currently the only
+     * options are equivalent to enable/disable. 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Mode of operation for binauthz policy evaluation. Currently the only
+     * options are equivalent to enable/disable. 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.BinaryAuthorization.EvaluationMode result = + com.google.container.v1beta1.BinaryAuthorization.EvaluationMode.valueOf(evaluationMode_); + return result == null + ? com.google.container.v1beta1.BinaryAuthorization.EvaluationMode.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Mode of operation for binauthz policy evaluation. Currently the only
+     * options are equivalent to enable/disable. 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(); + } + + evaluationMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Mode of operation for binauthz policy evaluation. Currently the only
+     * options are equivalent to enable/disable. If unspecified, defaults to
+     * DISABLED.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearEvaluationMode() { + + 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.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 new file mode 100644 index 000000000000..f47d67a19eb6 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorizationOrBuilder.java @@ -0,0 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface BinaryAuthorizationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.BinaryAuthorization) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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=1478 + * @return The enabled. + */ + @java.lang.Deprecated + boolean getEnabled(); + + /** + * + * + *
+   * Mode of operation for binauthz policy evaluation. Currently the only
+   * options are equivalent to enable/disable. 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. Currently the only
+   * options are equivalent to enable/disable. If unspecified, defaults to
+   * DISABLED.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; + * + * @return The evaluationMode. + */ + com.google.container.v1beta1.BinaryAuthorization.EvaluationMode getEvaluationMode(); +} 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 new file mode 100644 index 000000000000..f4cd73bc2033 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BlueGreenSettings.java @@ -0,0 +1,2330 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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(); + + public 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + 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(); + if (batchSoakDurationBuilder_ == null) { + batchSoakDuration_ = null; + } else { + batchSoakDurationBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + 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); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (updateBatchSizeCase_ == 1) { + result.updateBatchSize_ = updateBatchSize_; + } + if (updateBatchSizeCase_ == 2) { + result.updateBatchSize_ = updateBatchSize_; + } + if (((from_bitField0_ & 0x00000001) != 0)) { + if (batchSoakDurationBuilder_ == null) { + result.batchSoakDuration_ = batchSoakDuration_; + } else { + result.batchSoakDuration_ = batchSoakDurationBuilder_.build(); + } + to_bitField0_ |= 0x00000001; + } + result.bitField0_ = to_bitField0_; + result.updateBatchSizeCase_ = updateBatchSizeCase_; + 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.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_ |= 0x00000001; + 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_ & 0x00000001) != 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; + onChanged(); + } else { + batchSoakDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + 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(); + onChanged(); + } else { + batchSoakDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + 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_ & 0x00000001) != 0) + && batchSoakDuration_ != null + && batchSoakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + batchSoakDuration_ = + com.google.protobuf.Duration.newBuilder(batchSoakDuration_) + .mergeFrom(value) + .buildPartial(); + } else { + batchSoakDuration_ = value; + } + onChanged(); + } else { + batchSoakDurationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + * + * + *
+       * Soak time after each batch gets drained. Default to zero.
+       * 
+ * + * optional .google.protobuf.Duration batch_soak_duration = 3; + */ + public Builder clearBatchSoakDuration() { + if (batchSoakDurationBuilder_ == null) { + batchSoakDuration_ = null; + onChanged(); + } else { + batchSoakDurationBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + 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_ |= 0x00000001; + 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; + } + } + + private int bitField0_; + private int rolloutPolicyCase_ = 0; + 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.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 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()); + } + 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()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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 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.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(); + if (standardRolloutPolicyBuilder_ != null) { + standardRolloutPolicyBuilder_.clear(); + } + if (nodePoolSoakDurationBuilder_ == null) { + nodePoolSoakDuration_ = null; + } else { + nodePoolSoakDurationBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + 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); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (rolloutPolicyCase_ == 1) { + if (standardRolloutPolicyBuilder_ == null) { + result.rolloutPolicy_ = rolloutPolicy_; + } else { + result.rolloutPolicy_ = standardRolloutPolicyBuilder_.build(); + } + } + if (((from_bitField0_ & 0x00000001) != 0)) { + if (nodePoolSoakDurationBuilder_ == null) { + result.nodePoolSoakDuration_ = nodePoolSoakDuration_; + } else { + result.nodePoolSoakDuration_ = nodePoolSoakDurationBuilder_.build(); + } + to_bitField0_ |= 0x00000001; + } + result.bitField0_ = to_bitField0_; + result.rolloutPolicyCase_ = rolloutPolicyCase_; + 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) { + 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 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_ |= 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 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.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_ & 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. + */ + 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; + onChanged(); + } else { + nodePoolSoakDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + 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(); + onChanged(); + } else { + nodePoolSoakDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + 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_ & 0x00000001) != 0) + && nodePoolSoakDuration_ != null + && nodePoolSoakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + nodePoolSoakDuration_ = + com.google.protobuf.Duration.newBuilder(nodePoolSoakDuration_) + .mergeFrom(value) + .buildPartial(); + } else { + nodePoolSoakDuration_ = value; + } + onChanged(); + } else { + nodePoolSoakDurationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + 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() { + if (nodePoolSoakDurationBuilder_ == null) { + nodePoolSoakDuration_ = null; + onChanged(); + } else { + nodePoolSoakDurationBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + 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_ |= 0x00000001; + 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 new file mode 100644 index 000000000000..b72103c8b59e --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BlueGreenSettingsOrBuilder.java @@ -0,0 +1,107 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface 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(); + + /** + * + * + *
+   * 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(); + + public 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 new file mode 100644 index 000000000000..a566d79017c7 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequest.java @@ -0,0 +1,1275 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * CancelOperationRequest cancels a single operation.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.CancelOperationRequest} + */ +public final class CancelOperationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.CancelOperationRequest) + CancelOperationRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CancelOperationRequest.newBuilder() to construct. + private CancelOperationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CancelOperationRequest() { + projectId_ = ""; + zone_ = ""; + operationId_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CancelOperationRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_CancelOperationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_CancelOperationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.CancelOperationRequest.class, + com.google.container.v1beta1.CancelOperationRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=2989 + * @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=2989 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Required. Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * operation resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2998 + * @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=2998 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPERATION_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object operationId_; + /** + * + * + *
+   * Required. Deprecated. The server-assigned `name` of the operation.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string operation_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3005 + * @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=3005 + * @return The bytes for operationId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getOperationIdBytes() { + java.lang.Object ref = operationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, operation id) of the operation to cancel.
+   * Specified in the format `projects/*/locations/*/operations/*`.
+   * 
+ * + * string name = 4; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, operation id) of the operation to cancel.
+   * Specified in the format `projects/*/locations/*/operations/*`.
+   * 
+ * + * string name = 4; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + projectId_ = ""; + + zone_ = ""; + + operationId_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_CancelOperationRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.CancelOperationRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.CancelOperationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.CancelOperationRequest build() { + com.google.container.v1beta1.CancelOperationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.CancelOperationRequest buildPartial() { + com.google.container.v1beta1.CancelOperationRequest result = + new com.google.container.v1beta1.CancelOperationRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.operationId_ = operationId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.CancelOperationRequest) { + return mergeFrom((com.google.container.v1beta1.CancelOperationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.CancelOperationRequest other) { + if (other == com.google.container.v1beta1.CancelOperationRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getOperationId().isEmpty()) { + operationId_ = other.operationId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + operationId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + name_ = input.readStringRequireUtf8(); + + 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 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=2989 + * @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=2989 + * @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=2989 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=2989 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=2989 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * operation resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2998 + * @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=2998 + * @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=2998 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * operation resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2998 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * operation resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2998 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object operationId_ = ""; + /** + * + * + *
+     * Required. Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string operation_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3005 + * @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=3005 + * @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=3005 + * @param value The operationId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setOperationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + operationId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string operation_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3005 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearOperationId() { + + operationId_ = getDefaultInstance().getOperationId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string operation_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3005 + * @param value The bytes for operationId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setOperationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + operationId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, operation id) of the operation to cancel.
+     * Specified in the format `projects/*/locations/*/operations/*`.
+     * 
+ * + * string name = 4; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, operation id) of the operation to cancel.
+     * Specified in the format `projects/*/locations/*/operations/*`.
+     * 
+ * + * string name = 4; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, operation id) of the operation to cancel.
+     * Specified in the format `projects/*/locations/*/operations/*`.
+     * 
+ * + * string name = 4; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, operation id) of the operation to cancel.
+     * Specified in the format `projects/*/locations/*/operations/*`.
+     * 
+ * + * string name = 4; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, operation id) of the operation to cancel.
+     * Specified in the format `projects/*/locations/*/operations/*`.
+     * 
+ * + * string name = 4; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.CancelOperationRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.CancelOperationRequest) + private static final com.google.container.v1beta1.CancelOperationRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.CancelOperationRequest(); + } + + public static com.google.container.v1beta1.CancelOperationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CancelOperationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..ea943cf53653 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequestOrBuilder.java @@ -0,0 +1,161 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface CancelOperationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.CancelOperationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=2989 + * @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=2989 + * @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=2998 + * @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=2998 + * @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=3005 + * @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=3005 + * @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/ClientCertificateConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClientCertificateConfig.java new file mode 100644 index 000000000000..eaa490c669cd --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClientCertificateConfig.java @@ -0,0 +1,527 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration for client certificates on the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ClientCertificateConfig} + */ +public final class ClientCertificateConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ClientCertificateConfig) + ClientCertificateConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientCertificateConfig.newBuilder() to construct. + private ClientCertificateConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ClientCertificateConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ClientCertificateConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ClientCertificateConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ClientCertificateConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ClientCertificateConfig.class, + com.google.container.v1beta1.ClientCertificateConfig.Builder.class); + } + + public static final int ISSUE_CLIENT_CERTIFICATE_FIELD_NUMBER = 1; + private boolean issueClientCertificate_; + /** + * + * + *
+   * Issue a client certificate.
+   * 
+ * + * bool issue_client_certificate = 1; + * + * @return The issueClientCertificate. + */ + @java.lang.Override + public boolean getIssueClientCertificate() { + return issueClientCertificate_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (issueClientCertificate_ != false) { + output.writeBool(1, issueClientCertificate_); + } + 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(); + issueClientCertificate_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ClientCertificateConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ClientCertificateConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.ClientCertificateConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ClientCertificateConfig build() { + com.google.container.v1beta1.ClientCertificateConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ClientCertificateConfig buildPartial() { + com.google.container.v1beta1.ClientCertificateConfig result = + new com.google.container.v1beta1.ClientCertificateConfig(this); + result.issueClientCertificate_ = issueClientCertificate_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ClientCertificateConfig) { + return mergeFrom((com.google.container.v1beta1.ClientCertificateConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ClientCertificateConfig other) { + if (other == com.google.container.v1beta1.ClientCertificateConfig.getDefaultInstance()) + return this; + if (other.getIssueClientCertificate() != false) { + setIssueClientCertificate(other.getIssueClientCertificate()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 boolean issueClientCertificate_; + /** + * + * + *
+     * Issue a client certificate.
+     * 
+ * + * bool issue_client_certificate = 1; + * + * @return The issueClientCertificate. + */ + @java.lang.Override + public boolean getIssueClientCertificate() { + return issueClientCertificate_; + } + /** + * + * + *
+     * Issue a client certificate.
+     * 
+ * + * bool issue_client_certificate = 1; + * + * @param value The issueClientCertificate to set. + * @return This builder for chaining. + */ + public Builder setIssueClientCertificate(boolean value) { + + issueClientCertificate_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Issue a client certificate.
+     * 
+ * + * bool issue_client_certificate = 1; + * + * @return This builder for chaining. + */ + public Builder clearIssueClientCertificate() { + + issueClientCertificate_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ClientCertificateConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ClientCertificateConfig) + private static final com.google.container.v1beta1.ClientCertificateConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ClientCertificateConfig(); + } + + public static com.google.container.v1beta1.ClientCertificateConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientCertificateConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..140c54b4b40b --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClientCertificateConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ClientCertificateConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ClientCertificateConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Issue a client certificate.
+   * 
+ * + * bool issue_client_certificate = 1; + * + * @return The issueClientCertificate. + */ + boolean getIssueClientCertificate(); +} diff --git a/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 new file mode 100644 index 000000000000..5619d2626c32 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CloudRunConfig.java @@ -0,0 +1,851 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration options for the Cloud Run feature.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.CloudRunConfig} + */ +public final class CloudRunConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.CloudRunConfig) + CloudRunConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use CloudRunConfig.newBuilder() to construct. + private CloudRunConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CloudRunConfig() { + loadBalancerType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudRunConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_CloudRunConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_CloudRunConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.CloudRunConfig.class, + com.google.container.v1beta1.CloudRunConfig.Builder.class); + } + + /** + * + * + *
+   * Load balancer type of ingress service of Cloud Run.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.CloudRunConfig.LoadBalancerType} + */ + public enum LoadBalancerType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Load balancer type for Cloud Run is unspecified.
+     * 
+ * + * LOAD_BALANCER_TYPE_UNSPECIFIED = 0; + */ + LOAD_BALANCER_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Install external load balancer for Cloud Run.
+     * 
+ * + * LOAD_BALANCER_TYPE_EXTERNAL = 1; + */ + LOAD_BALANCER_TYPE_EXTERNAL(1), + /** + * + * + *
+     * Install internal load balancer for Cloud Run.
+     * 
+ * + * LOAD_BALANCER_TYPE_INTERNAL = 2; + */ + LOAD_BALANCER_TYPE_INTERNAL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Load balancer type for Cloud Run is unspecified.
+     * 
+ * + * LOAD_BALANCER_TYPE_UNSPECIFIED = 0; + */ + public static final int LOAD_BALANCER_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Install external load balancer for Cloud Run.
+     * 
+ * + * LOAD_BALANCER_TYPE_EXTERNAL = 1; + */ + public static final int LOAD_BALANCER_TYPE_EXTERNAL_VALUE = 1; + /** + * + * + *
+     * Install internal load balancer for Cloud Run.
+     * 
+ * + * LOAD_BALANCER_TYPE_INTERNAL = 2; + */ + public static final int LOAD_BALANCER_TYPE_INTERNAL_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LoadBalancerType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static LoadBalancerType forNumber(int value) { + switch (value) { + case 0: + return LOAD_BALANCER_TYPE_UNSPECIFIED; + case 1: + return LOAD_BALANCER_TYPE_EXTERNAL; + case 2: + return LOAD_BALANCER_TYPE_INTERNAL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LoadBalancerType findValueByNumber(int number) { + return LoadBalancerType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1beta1.CloudRunConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final LoadBalancerType[] VALUES = values(); + + public static LoadBalancerType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private LoadBalancerType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.CloudRunConfig.LoadBalancerType) + } + + public static final int DISABLED_FIELD_NUMBER = 1; + private boolean disabled_; + /** + * + * + *
+   * Whether Cloud Run addon is enabled for this cluster.
+   * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + + public static final int LOAD_BALANCER_TYPE_FIELD_NUMBER = 3; + private int loadBalancerType_; + /** + * + * + *
+   * Which load balancer type is installed for Cloud Run.
+   * 
+ * + * .google.container.v1beta1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * + * @return The enum numeric value on the wire for loadBalancerType. + */ + @java.lang.Override + public int getLoadBalancerTypeValue() { + return loadBalancerType_; + } + /** + * + * + *
+   * Which load balancer type is installed for Cloud Run.
+   * 
+ * + * .google.container.v1beta1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * + * @return The loadBalancerType. + */ + @java.lang.Override + public com.google.container.v1beta1.CloudRunConfig.LoadBalancerType getLoadBalancerType() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.CloudRunConfig.LoadBalancerType result = + com.google.container.v1beta1.CloudRunConfig.LoadBalancerType.valueOf(loadBalancerType_); + return result == null + ? com.google.container.v1beta1.CloudRunConfig.LoadBalancerType.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (disabled_ != false) { + output.writeBool(1, disabled_); + } + if (loadBalancerType_ + != com.google.container.v1beta1.CloudRunConfig.LoadBalancerType + .LOAD_BALANCER_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, loadBalancerType_); + } + 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(); + disabled_ = false; + + loadBalancerType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_CloudRunConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.CloudRunConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.CloudRunConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.CloudRunConfig build() { + com.google.container.v1beta1.CloudRunConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.CloudRunConfig buildPartial() { + com.google.container.v1beta1.CloudRunConfig result = + new com.google.container.v1beta1.CloudRunConfig(this); + result.disabled_ = disabled_; + result.loadBalancerType_ = loadBalancerType_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.CloudRunConfig) { + return mergeFrom((com.google.container.v1beta1.CloudRunConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.CloudRunConfig other) { + if (other == com.google.container.v1beta1.CloudRunConfig.getDefaultInstance()) return this; + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + if (other.loadBalancerType_ != 0) { + setLoadBalancerTypeValue(other.getLoadBalancerTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 8 + case 24: + { + loadBalancerType_ = input.readEnum(); + + 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 boolean disabled_; + /** + * + * + *
+     * Whether Cloud Run addon is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + /** + * + * + *
+     * Whether Cloud Run addon is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * + * @param value The disabled to set. + * @return This builder for chaining. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether Cloud Run addon is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisabled() { + + disabled_ = false; + onChanged(); + return this; + } + + private int loadBalancerType_ = 0; + /** + * + * + *
+     * Which load balancer type is installed for Cloud Run.
+     * 
+ * + * .google.container.v1beta1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * + * + * @return The enum numeric value on the wire for loadBalancerType. + */ + @java.lang.Override + public int getLoadBalancerTypeValue() { + return loadBalancerType_; + } + /** + * + * + *
+     * Which load balancer type is installed for Cloud Run.
+     * 
+ * + * .google.container.v1beta1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * + * + * @param value The enum numeric value on the wire for loadBalancerType to set. + * @return This builder for chaining. + */ + public Builder setLoadBalancerTypeValue(int value) { + + loadBalancerType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Which load balancer type is installed for Cloud Run.
+     * 
+ * + * .google.container.v1beta1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * + * + * @return The loadBalancerType. + */ + @java.lang.Override + public com.google.container.v1beta1.CloudRunConfig.LoadBalancerType getLoadBalancerType() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.CloudRunConfig.LoadBalancerType result = + com.google.container.v1beta1.CloudRunConfig.LoadBalancerType.valueOf(loadBalancerType_); + return result == null + ? com.google.container.v1beta1.CloudRunConfig.LoadBalancerType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Which load balancer type is installed for Cloud Run.
+     * 
+ * + * .google.container.v1beta1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * + * + * @param value The loadBalancerType to set. + * @return This builder for chaining. + */ + public Builder setLoadBalancerType( + com.google.container.v1beta1.CloudRunConfig.LoadBalancerType value) { + if (value == null) { + throw new NullPointerException(); + } + + loadBalancerType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Which load balancer type is installed for Cloud Run.
+     * 
+ * + * .google.container.v1beta1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * + * + * @return This builder for chaining. + */ + public Builder clearLoadBalancerType() { + + loadBalancerType_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.CloudRunConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.CloudRunConfig) + private static final com.google.container.v1beta1.CloudRunConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.CloudRunConfig(); + } + + public static com.google.container.v1beta1.CloudRunConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudRunConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..bff94563086f --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CloudRunConfigOrBuilder.java @@ -0,0 +1,63 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface CloudRunConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.CloudRunConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether Cloud Run addon is enabled for this cluster.
+   * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + boolean getDisabled(); + + /** + * + * + *
+   * Which load balancer type is installed for Cloud Run.
+   * 
+ * + * .google.container.v1beta1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * + * @return The enum numeric value on the wire for loadBalancerType. + */ + int getLoadBalancerTypeValue(); + /** + * + * + *
+   * Which load balancer type is installed for Cloud Run.
+   * 
+ * + * .google.container.v1beta1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * + * @return The loadBalancerType. + */ + com.google.container.v1beta1.CloudRunConfig.LoadBalancerType getLoadBalancerType(); +} diff --git a/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 new file mode 100644 index 000000000000..ae77eb7e52ac --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Cluster.java @@ -0,0 +1,18424 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * A Google Kubernetes Engine cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.Cluster} + */ +public final class Cluster extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.Cluster) + ClusterOrBuilder { + private static final long serialVersionUID = 0L; + // Use Cluster.newBuilder() to construct. + private Cluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Cluster() { + name_ = ""; + description_ = ""; + loggingService_ = ""; + monitoringService_ = ""; + network_ = ""; + clusterIpv4Cidr_ = ""; + subnetwork_ = ""; + nodePools_ = java.util.Collections.emptyList(); + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + labelFingerprint_ = ""; + masterIpv4CidrBlock_ = ""; + selfLink_ = ""; + zone_ = ""; + endpoint_ = ""; + initialClusterVersion_ = ""; + currentMasterVersion_ = ""; + currentNodeVersion_ = ""; + createTime_ = ""; + status_ = 0; + statusMessage_ = ""; + servicesIpv4Cidr_ = ""; + instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + expireTime_ = ""; + location_ = ""; + tpuIpv4CidrBlock_ = ""; + conditions_ = java.util.Collections.emptyList(); + id_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Cluster(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Cluster_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 15: + return internalGetResourceLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Cluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.Cluster.class, + com.google.container.v1beta1.Cluster.Builder.class); + } + + /** + * + * + *
+   * The current status of the cluster.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.Cluster.Status} + */ + public enum Status implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not set.
+     * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + STATUS_UNSPECIFIED(0), + /** + * + * + *
+     * The PROVISIONING state indicates the cluster is being created.
+     * 
+ * + * PROVISIONING = 1; + */ + PROVISIONING(1), + /** + * + * + *
+     * The RUNNING state indicates the cluster has been created and is fully
+     * usable.
+     * 
+ * + * RUNNING = 2; + */ + RUNNING(2), + /** + * + * + *
+     * The RECONCILING state indicates that some work is actively being done on
+     * the cluster, such as upgrading the master or node software. Details can
+     * be found in the `statusMessage` field.
+     * 
+ * + * RECONCILING = 3; + */ + RECONCILING(3), + /** + * + * + *
+     * The STOPPING state indicates the cluster is being deleted.
+     * 
+ * + * STOPPING = 4; + */ + STOPPING(4), + /** + * + * + *
+     * The ERROR state indicates the cluster may be unusable. Details
+     * can be found in the `statusMessage` field.
+     * 
+ * + * ERROR = 5; + */ + ERROR(5), + /** + * + * + *
+     * The DEGRADED state indicates the cluster requires user action to restore
+     * full functionality. Details can be found in the `statusMessage` field.
+     * 
+ * + * DEGRADED = 6; + */ + DEGRADED(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not set.
+     * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + public static final int STATUS_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The PROVISIONING state indicates the cluster is being created.
+     * 
+ * + * PROVISIONING = 1; + */ + public static final int PROVISIONING_VALUE = 1; + /** + * + * + *
+     * The RUNNING state indicates the cluster has been created and is fully
+     * usable.
+     * 
+ * + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + /** + * + * + *
+     * The RECONCILING state indicates that some work is actively being done on
+     * the cluster, such as upgrading the master or node software. Details can
+     * be found in the `statusMessage` field.
+     * 
+ * + * RECONCILING = 3; + */ + public static final int RECONCILING_VALUE = 3; + /** + * + * + *
+     * The STOPPING state indicates the cluster is being deleted.
+     * 
+ * + * STOPPING = 4; + */ + public static final int STOPPING_VALUE = 4; + /** + * + * + *
+     * The ERROR state indicates the cluster may be unusable. Details
+     * can be found in the `statusMessage` field.
+     * 
+ * + * ERROR = 5; + */ + public static final int ERROR_VALUE = 5; + /** + * + * + *
+     * The DEGRADED state indicates the cluster requires user action to restore
+     * full functionality. Details can be found in the `statusMessage` field.
+     * 
+ * + * DEGRADED = 6; + */ + public static final int DEGRADED_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Status valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Status forNumber(int value) { + switch (value) { + case 0: + return STATUS_UNSPECIFIED; + case 1: + return PROVISIONING; + case 2: + return RUNNING; + case 3: + return RECONCILING; + case 4: + return STOPPING; + case 5: + return ERROR; + case 6: + return DEGRADED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1beta1.Cluster.getDescriptor().getEnumTypes().get(0); + } + + private static final Status[] VALUES = values(); + + public static Status valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Status(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.Cluster.Status) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name of this cluster. The name must be unique within this project
+   * and location (e.g. zone or region), and can be up to 40 characters with
+   * the following restrictions:
+   * * Lowercase letters, numbers, and hyphens only.
+   * * Must start with a letter.
+   * * Must end with a number or a letter.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name of this cluster. The name must be unique within this project
+   * and location (e.g. zone or region), and can be up to 40 characters with
+   * the following restrictions:
+   * * Lowercase letters, numbers, and hyphens only.
+   * * Must start with a letter.
+   * * Must end with a number or a letter.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + private volatile java.lang.Object description_; + /** + * + * + *
+   * An optional description of this cluster.
+   * 
+ * + * string description = 2; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * An optional description of this cluster.
+   * 
+ * + * string description = 2; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INITIAL_NODE_COUNT_FIELD_NUMBER = 3; + private int initialNodeCount_; + /** + * + * + *
+   * The number of nodes to create in this cluster. You must ensure that your
+   * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
+   * is sufficient for this number of instances. You must also have available
+   * firewall and routes quota.
+   * For requests, this field should only be used in lieu of a
+   * "node_pool" object, since this configuration (along with the
+   * "node_config") will be used to create a "NodePool" object with an
+   * auto-generated name. Do not use this and a node_pool at the same time.
+   * This field is deprecated, use node_pool.initial_node_count instead.
+   * 
+ * + * int32 initial_node_count = 3 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Cluster.initial_node_count is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1578 + * @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=1591 + * @return Whether the nodeConfig field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasNodeConfig() { + return nodeConfig_ != null; + } + /** + * + * + *
+   * Parameters used in creating the cluster's nodes.
+   * For requests, this field should only be used in lieu of a
+   * "node_pool" object, since this configuration (along with the
+   * "initial_node_count") will be used to create a "NodePool" object with an
+   * auto-generated name. Do not use this and a node_pool at the same time.
+   * For responses, this field will be populated with the node configuration of
+   * the first node pool. (For configuration of each node pool, see
+   * `node_pool.config`)
+   * If unspecified, the defaults are used.
+   * This field is deprecated, use node_pool.config instead.
+   * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Cluster.node_config is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1591 + * @return The nodeConfig. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.container.v1beta1.NodeConfig getNodeConfig() { + return nodeConfig_ == null + ? com.google.container.v1beta1.NodeConfig.getDefaultInstance() + : nodeConfig_; + } + /** + * + * + *
+   * Parameters used in creating the cluster's nodes.
+   * For requests, this field should only be used in lieu of a
+   * "node_pool" object, since this configuration (along with the
+   * "initial_node_count") will be used to create a "NodePool" object with an
+   * auto-generated name. Do not use this and a node_pool at the same time.
+   * For responses, this field will be populated with the node configuration of
+   * the first node pool. (For configuration of each node pool, see
+   * `node_pool.config`)
+   * If unspecified, the defaults are used.
+   * This field is deprecated, use node_pool.config instead.
+   * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.container.v1beta1.NodeConfigOrBuilder getNodeConfigOrBuilder() { + return getNodeConfig(); + } + + public static final int MASTER_AUTH_FIELD_NUMBER = 5; + private com.google.container.v1beta1.MasterAuth masterAuth_; + /** + * + * + *
+   * The authentication information for accessing the master endpoint.
+   * If unspecified, the defaults are used:
+   * For clusters before v1.12, if master_auth is unspecified, `username` will
+   * be set to "admin", a random password will be generated, and a client
+   * certificate will be issued.
+   * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + * + * @return Whether the masterAuth field is set. + */ + @java.lang.Override + public boolean hasMasterAuth() { + return masterAuth_ != null; + } + /** + * + * + *
+   * The authentication information for accessing the master endpoint.
+   * If unspecified, the defaults are used:
+   * For clusters before v1.12, if master_auth is unspecified, `username` will
+   * be set to "admin", a random password will be generated, and a client
+   * certificate will be issued.
+   * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + * + * @return The masterAuth. + */ + @java.lang.Override + public com.google.container.v1beta1.MasterAuth getMasterAuth() { + return masterAuth_ == null + ? com.google.container.v1beta1.MasterAuth.getDefaultInstance() + : masterAuth_; + } + /** + * + * + *
+   * The authentication information for accessing the master endpoint.
+   * If unspecified, the defaults are used:
+   * For clusters before v1.12, if master_auth is unspecified, `username` will
+   * be set to "admin", a random password will be generated, and a client
+   * certificate will be issued.
+   * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + */ + @java.lang.Override + public com.google.container.v1beta1.MasterAuthOrBuilder getMasterAuthOrBuilder() { + return getMasterAuth(); + } + + public static final int LOGGING_SERVICE_FIELD_NUMBER = 6; + private volatile java.lang.Object loggingService_; + /** + * + * + *
+   * The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
+   * * `none` - no logs will be exported from the cluster.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+   * 
+ * + * string logging_service = 6; + * + * @return The loggingService. + */ + @java.lang.Override + public java.lang.String getLoggingService() { + java.lang.Object ref = loggingService_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + loggingService_ = s; + return s; + } + } + /** + * + * + *
+   * The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
+   * * `none` - no logs will be exported from the cluster.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+   * 
+ * + * string logging_service = 6; + * + * @return The bytes for loggingService. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLoggingServiceBytes() { + java.lang.Object ref = loggingService_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + loggingService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MONITORING_SERVICE_FIELD_NUMBER = 7; + private volatile java.lang.Object monitoringService_; + /** + * + * + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+   * 
+ * + * string monitoring_service = 7; + * + * @return The monitoringService. + */ + @java.lang.Override + public java.lang.String getMonitoringService() { + java.lang.Object ref = monitoringService_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + monitoringService_ = s; + return s; + } + } + /** + * + * + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+   * 
+ * + * string monitoring_service = 7; + * + * @return The bytes for monitoringService. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMonitoringServiceBytes() { + java.lang.Object ref = monitoringService_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + monitoringService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_FIELD_NUMBER = 8; + private volatile java.lang.Object network_; + /** + * + * + *
+   * The name of the Google Compute Engine
+   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * to which the cluster is connected. If left unspecified, the `default`
+   * network will be used. On output this shows the network ID instead of the
+   * name.
+   * 
+ * + * string network = 8; + * + * @return The network. + */ + @java.lang.Override + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the Google Compute Engine
+   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * to which the cluster is connected. If left unspecified, the `default`
+   * network will be used. On output this shows the network ID instead of the
+   * name.
+   * 
+ * + * string network = 8; + * + * @return The bytes for network. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_IPV4_CIDR_FIELD_NUMBER = 9; + private volatile java.lang.Object clusterIpv4Cidr_; + /** + * + * + *
+   * The IP address range of the container pods in this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`). Leave blank to have
+   * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+   * 
+ * + * string cluster_ipv4_cidr = 9; + * + * @return The clusterIpv4Cidr. + */ + @java.lang.Override + public java.lang.String getClusterIpv4Cidr() { + java.lang.Object ref = clusterIpv4Cidr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterIpv4Cidr_ = s; + return s; + } + } + /** + * + * + *
+   * The IP address range of the container pods in this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`). Leave blank to have
+   * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+   * 
+ * + * string cluster_ipv4_cidr = 9; + * + * @return The bytes for clusterIpv4Cidr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { + java.lang.Object ref = clusterIpv4Cidr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDONS_CONFIG_FIELD_NUMBER = 10; + private com.google.container.v1beta1.AddonsConfig addonsConfig_; + /** + * + * + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + * + * @return Whether the addonsConfig field is set. + */ + @java.lang.Override + public boolean hasAddonsConfig() { + return addonsConfig_ != null; + } + /** + * + * + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + * + * @return The addonsConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.AddonsConfig getAddonsConfig() { + return addonsConfig_ == null + ? com.google.container.v1beta1.AddonsConfig.getDefaultInstance() + : addonsConfig_; + } + /** + * + * + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + */ + @java.lang.Override + public com.google.container.v1beta1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() { + return getAddonsConfig(); + } + + public static final int SUBNETWORK_FIELD_NUMBER = 11; + private volatile java.lang.Object subnetwork_; + /** + * + * + *
+   * The name of the Google Compute Engine
+   * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
+   * the cluster is connected. On output this shows the subnetwork ID instead of
+   * the name.
+   * 
+ * + * string subnetwork = 11; + * + * @return The subnetwork. + */ + @java.lang.Override + public java.lang.String getSubnetwork() { + java.lang.Object ref = subnetwork_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetwork_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the Google Compute Engine
+   * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
+   * the cluster is connected. On output this shows the subnetwork ID instead of
+   * the name.
+   * 
+ * + * string subnetwork = 11; + * + * @return The bytes for subnetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSubnetworkBytes() { + java.lang.Object ref = subnetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOLS_FIELD_NUMBER = 12; + private java.util.List nodePools_; + /** + * + * + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + @java.lang.Override + public java.util.List getNodePoolsList() { + return nodePools_; + } + /** + * + * + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + @java.lang.Override + public java.util.List + getNodePoolsOrBuilderList() { + return nodePools_; + } + /** + * + * + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + @java.lang.Override + public int getNodePoolsCount() { + return nodePools_.size(); + } + /** + * + * + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool getNodePools(int index) { + return nodePools_.get(index); + } + /** + * + * + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + @java.lang.Override + public com.google.container.v1beta1.NodePoolOrBuilder getNodePoolsOrBuilder(int index) { + return nodePools_.get(index); + } + + public static final int LOCATIONS_FIELD_NUMBER = 13; + private com.google.protobuf.LazyStringList locations_; + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This field provides a default value if
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * are not specified during node pool creation.
+   * Warning: changing cluster locations will update the
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * of all node pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return A list containing the locations. + */ + public com.google.protobuf.ProtocolStringList getLocationsList() { + return locations_; + } + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This field provides a default value if
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * are not specified during node pool creation.
+   * Warning: changing cluster locations will update the
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * of all node pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return The count of locations. + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This field provides a default value if
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * are not specified during node pool creation.
+   * Warning: changing cluster locations will update the
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * of all node pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This field provides a default value if
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * are not specified during node pool creation.
+   * Warning: changing cluster locations will update the
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * of all node pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + public com.google.protobuf.ByteString getLocationsBytes(int index) { + return locations_.getByteString(index); + } + + public static final int ENABLE_KUBERNETES_ALPHA_FIELD_NUMBER = 14; + private boolean enableKubernetesAlpha_; + /** + * + * + *
+   * Kubernetes alpha features are enabled on this cluster. This includes alpha
+   * API groups (e.g. v1beta1) and features that may not be production ready in
+   * the kubernetes version of the master and nodes.
+   * The cluster has no SLA for uptime and master/node upgrades are disabled.
+   * Alpha enabled clusters are automatically deleted thirty days after
+   * creation.
+   * 
+ * + * bool enable_kubernetes_alpha = 14; + * + * @return The enableKubernetesAlpha. + */ + @java.lang.Override + public boolean getEnableKubernetesAlpha() { + return enableKubernetesAlpha_; + } + + public static final int RESOURCE_LABELS_FIELD_NUMBER = 15; + + private static final class ResourceLabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Cluster_ResourceLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField resourceLabels_; + + private com.google.protobuf.MapField + internalGetResourceLabels() { + if (resourceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + return resourceLabels_; + } + + public int getResourceLabelsCount() { + return internalGetResourceLabels().getMap().size(); + } + /** + * + * + *
+   * The resource labels for the cluster to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 15; + */ + @java.lang.Override + public boolean containsResourceLabels(java.lang.String key) { + if (key == null) { + throw new 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 java.lang.String getResourceLabelsOrDefault( + java.lang.String key, 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; + private volatile java.lang.Object labelFingerprint_; + /** + * + * + *
+   * The fingerprint of the set of labels for this cluster.
+   * 
+ * + * string label_fingerprint = 16; + * + * @return The labelFingerprint. + */ + @java.lang.Override + public java.lang.String getLabelFingerprint() { + java.lang.Object ref = labelFingerprint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + labelFingerprint_ = s; + return s; + } + } + /** + * + * + *
+   * The fingerprint of the set of labels for this cluster.
+   * 
+ * + * string label_fingerprint = 16; + * + * @return The bytes for labelFingerprint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLabelFingerprintBytes() { + java.lang.Object ref = labelFingerprint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + labelFingerprint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LEGACY_ABAC_FIELD_NUMBER = 18; + private com.google.container.v1beta1.LegacyAbac legacyAbac_; + /** + * + * + *
+   * Configuration for the legacy ABAC authorization mode.
+   * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + * + * @return Whether the legacyAbac field is set. + */ + @java.lang.Override + public boolean hasLegacyAbac() { + return legacyAbac_ != null; + } + /** + * + * + *
+   * Configuration for the legacy ABAC authorization mode.
+   * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + * + * @return The legacyAbac. + */ + @java.lang.Override + public com.google.container.v1beta1.LegacyAbac getLegacyAbac() { + return legacyAbac_ == null + ? com.google.container.v1beta1.LegacyAbac.getDefaultInstance() + : legacyAbac_; + } + /** + * + * + *
+   * Configuration for the legacy ABAC authorization mode.
+   * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + */ + @java.lang.Override + public com.google.container.v1beta1.LegacyAbacOrBuilder getLegacyAbacOrBuilder() { + return getLegacyAbac(); + } + + public static final int NETWORK_POLICY_FIELD_NUMBER = 19; + private com.google.container.v1beta1.NetworkPolicy networkPolicy_; + /** + * + * + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + * + * @return Whether the networkPolicy field is set. + */ + @java.lang.Override + public boolean hasNetworkPolicy() { + return networkPolicy_ != null; + } + /** + * + * + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + * + * @return The networkPolicy. + */ + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicy getNetworkPolicy() { + return networkPolicy_ == null + ? com.google.container.v1beta1.NetworkPolicy.getDefaultInstance() + : networkPolicy_; + } + /** + * + * + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + */ + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { + return getNetworkPolicy(); + } + + public static final int IP_ALLOCATION_POLICY_FIELD_NUMBER = 20; + private com.google.container.v1beta1.IPAllocationPolicy ipAllocationPolicy_; + /** + * + * + *
+   * Configuration for cluster IP allocation.
+   * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + * + * @return Whether the ipAllocationPolicy field is set. + */ + @java.lang.Override + public boolean hasIpAllocationPolicy() { + return ipAllocationPolicy_ != null; + } + /** + * + * + *
+   * Configuration for cluster IP allocation.
+   * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + * + * @return The ipAllocationPolicy. + */ + @java.lang.Override + public com.google.container.v1beta1.IPAllocationPolicy getIpAllocationPolicy() { + return ipAllocationPolicy_ == null + ? com.google.container.v1beta1.IPAllocationPolicy.getDefaultInstance() + : ipAllocationPolicy_; + } + /** + * + * + *
+   * Configuration for cluster IP allocation.
+   * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + */ + @java.lang.Override + public com.google.container.v1beta1.IPAllocationPolicyOrBuilder getIpAllocationPolicyOrBuilder() { + return getIpAllocationPolicy(); + } + + public static final int MASTER_AUTHORIZED_NETWORKS_CONFIG_FIELD_NUMBER = 22; + private com.google.container.v1beta1.MasterAuthorizedNetworksConfig + masterAuthorizedNetworksConfig_; + /** + * + * + *
+   * The configuration options for master authorized networks feature.
+   * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * + * + * @return Whether the masterAuthorizedNetworksConfig field is set. + */ + @java.lang.Override + public boolean hasMasterAuthorizedNetworksConfig() { + return masterAuthorizedNetworksConfig_ != null; + } + /** + * + * + *
+   * The configuration options for master authorized networks feature.
+   * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * + * + * @return The masterAuthorizedNetworksConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig + getMasterAuthorizedNetworksConfig() { + return masterAuthorizedNetworksConfig_ == null + ? com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance() + : masterAuthorizedNetworksConfig_; + } + /** + * + * + *
+   * The configuration options for master authorized networks feature.
+   * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * + */ + @java.lang.Override + public com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder + getMasterAuthorizedNetworksConfigOrBuilder() { + return getMasterAuthorizedNetworksConfig(); + } + + public static final int MAINTENANCE_POLICY_FIELD_NUMBER = 23; + private com.google.container.v1beta1.MaintenancePolicy maintenancePolicy_; + /** + * + * + *
+   * Configure the maintenance policy for this cluster.
+   * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + * + * @return Whether the maintenancePolicy field is set. + */ + @java.lang.Override + public boolean hasMaintenancePolicy() { + return maintenancePolicy_ != null; + } + /** + * + * + *
+   * Configure the maintenance policy for this cluster.
+   * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + * + * @return The maintenancePolicy. + */ + @java.lang.Override + public com.google.container.v1beta1.MaintenancePolicy getMaintenancePolicy() { + return maintenancePolicy_ == null + ? com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance() + : maintenancePolicy_; + } + /** + * + * + *
+   * Configure the maintenance policy for this cluster.
+   * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + */ + @java.lang.Override + public com.google.container.v1beta1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { + return getMaintenancePolicy(); + } + + public static final int BINARY_AUTHORIZATION_FIELD_NUMBER = 24; + private com.google.container.v1beta1.BinaryAuthorization binaryAuthorization_; + /** + * + * + *
+   * Configuration for Binary Authorization.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + * + * @return Whether the binaryAuthorization field is set. + */ + @java.lang.Override + public boolean hasBinaryAuthorization() { + return binaryAuthorization_ != null; + } + /** + * + * + *
+   * Configuration for Binary Authorization.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + * + * @return The binaryAuthorization. + */ + @java.lang.Override + public com.google.container.v1beta1.BinaryAuthorization getBinaryAuthorization() { + return binaryAuthorization_ == null + ? com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance() + : binaryAuthorization_; + } + /** + * + * + *
+   * Configuration for Binary Authorization.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + */ + @java.lang.Override + public com.google.container.v1beta1.BinaryAuthorizationOrBuilder + getBinaryAuthorizationOrBuilder() { + return getBinaryAuthorization(); + } + + public static final int POD_SECURITY_POLICY_CONFIG_FIELD_NUMBER = 25; + private com.google.container.v1beta1.PodSecurityPolicyConfig podSecurityPolicyConfig_; + /** + * + * + *
+   * Configuration for the PodSecurityPolicy feature.
+   * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + * + * @return Whether the podSecurityPolicyConfig field is set. + */ + @java.lang.Override + public boolean hasPodSecurityPolicyConfig() { + return podSecurityPolicyConfig_ != null; + } + /** + * + * + *
+   * Configuration for the PodSecurityPolicy feature.
+   * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + * + * @return The podSecurityPolicyConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.PodSecurityPolicyConfig getPodSecurityPolicyConfig() { + return podSecurityPolicyConfig_ == null + ? com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance() + : podSecurityPolicyConfig_; + } + /** + * + * + *
+   * Configuration for the PodSecurityPolicy feature.
+   * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + */ + @java.lang.Override + public com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder + getPodSecurityPolicyConfigOrBuilder() { + return getPodSecurityPolicyConfig(); + } + + public static final int AUTOSCALING_FIELD_NUMBER = 26; + private com.google.container.v1beta1.ClusterAutoscaling autoscaling_; + /** + * + * + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + * + * @return Whether the autoscaling field is set. + */ + @java.lang.Override + public boolean hasAutoscaling() { + return autoscaling_ != null; + } + /** + * + * + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + * + * @return The autoscaling. + */ + @java.lang.Override + public com.google.container.v1beta1.ClusterAutoscaling getAutoscaling() { + return autoscaling_ == null + ? com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance() + : autoscaling_; + } + /** + * + * + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + */ + @java.lang.Override + public com.google.container.v1beta1.ClusterAutoscalingOrBuilder getAutoscalingOrBuilder() { + return getAutoscaling(); + } + + public static final int NETWORK_CONFIG_FIELD_NUMBER = 27; + private com.google.container.v1beta1.NetworkConfig networkConfig_; + /** + * + * + *
+   * Configuration for cluster networking.
+   * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + * + * @return Whether the networkConfig field is set. + */ + @java.lang.Override + public boolean hasNetworkConfig() { + return networkConfig_ != null; + } + /** + * + * + *
+   * Configuration for cluster networking.
+   * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + * + * @return The networkConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.NetworkConfig getNetworkConfig() { + return networkConfig_ == null + ? com.google.container.v1beta1.NetworkConfig.getDefaultInstance() + : networkConfig_; + } + /** + * + * + *
+   * Configuration for cluster networking.
+   * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + */ + @java.lang.Override + public com.google.container.v1beta1.NetworkConfigOrBuilder getNetworkConfigOrBuilder() { + return getNetworkConfig(); + } + + public static final int PRIVATE_CLUSTER_FIELD_NUMBER = 28; + private boolean privateCluster_; + /** + * + * + *
+   * If this is a private cluster setup. Private clusters are clusters that, by
+   * default have no external IP addresses on the nodes and where nodes and the
+   * master communicate over private IP addresses.
+   * This field is deprecated, use private_cluster_config.enable_private_nodes
+   * instead.
+   * 
+ * + * bool private_cluster = 28 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Cluster.private_cluster is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1713 + * @return The privateCluster. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean getPrivateCluster() { + return privateCluster_; + } + + public static final int MASTER_IPV4_CIDR_BLOCK_FIELD_NUMBER = 29; + private volatile java.lang.Object masterIpv4CidrBlock_; + /** + * + * + *
+   * The IP prefix in CIDR notation to use for the hosted master network.
+   * This prefix will be used for assigning private IP addresses to the
+   * master or set of masters, as well as the ILB VIP.
+   * This field is deprecated, use
+   * private_cluster_config.master_ipv4_cidr_block instead.
+   * 
+ * + * string master_ipv4_cidr_block = 29 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1720 + * @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=1720 + * @return The bytes for masterIpv4CidrBlock. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + masterIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEFAULT_MAX_PODS_CONSTRAINT_FIELD_NUMBER = 30; + private com.google.container.v1beta1.MaxPodsConstraint defaultMaxPodsConstraint_; + /** + * + * + *
+   * The default constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool of this cluster. Only honored
+   * if cluster created with IP Alias support.
+   * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + * + * @return Whether the defaultMaxPodsConstraint field is set. + */ + @java.lang.Override + public boolean hasDefaultMaxPodsConstraint() { + return defaultMaxPodsConstraint_ != null; + } + /** + * + * + *
+   * The default constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool of this cluster. Only honored
+   * if cluster created with IP Alias support.
+   * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + * + * @return The defaultMaxPodsConstraint. + */ + @java.lang.Override + public com.google.container.v1beta1.MaxPodsConstraint getDefaultMaxPodsConstraint() { + return defaultMaxPodsConstraint_ == null + ? com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance() + : defaultMaxPodsConstraint_; + } + /** + * + * + *
+   * The default constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool of this cluster. Only honored
+   * if cluster created with IP Alias support.
+   * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + @java.lang.Override + public com.google.container.v1beta1.MaxPodsConstraintOrBuilder + getDefaultMaxPodsConstraintOrBuilder() { + return getDefaultMaxPodsConstraint(); + } + + public static final int RESOURCE_USAGE_EXPORT_CONFIG_FIELD_NUMBER = 33; + private com.google.container.v1beta1.ResourceUsageExportConfig resourceUsageExportConfig_; + /** + * + * + *
+   * Configuration for exporting resource usages. Resource usage export is
+   * disabled when this config unspecified.
+   * 
+ * + * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; + * + * + * @return Whether the resourceUsageExportConfig field is set. + */ + @java.lang.Override + public boolean hasResourceUsageExportConfig() { + return resourceUsageExportConfig_ != null; + } + /** + * + * + *
+   * Configuration for exporting resource usages. Resource usage export is
+   * disabled when this config unspecified.
+   * 
+ * + * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; + * + * + * @return The resourceUsageExportConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.ResourceUsageExportConfig getResourceUsageExportConfig() { + return resourceUsageExportConfig_ == null + ? com.google.container.v1beta1.ResourceUsageExportConfig.getDefaultInstance() + : resourceUsageExportConfig_; + } + /** + * + * + *
+   * Configuration for exporting resource usages. Resource usage export is
+   * disabled when this config unspecified.
+   * 
+ * + * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; + * + */ + @java.lang.Override + public com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder + getResourceUsageExportConfigOrBuilder() { + return getResourceUsageExportConfig(); + } + + public static final int AUTHENTICATOR_GROUPS_CONFIG_FIELD_NUMBER = 34; + private com.google.container.v1beta1.AuthenticatorGroupsConfig authenticatorGroupsConfig_; + /** + * + * + *
+   * Configuration controlling RBAC group membership information.
+   * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * + * + * @return Whether the authenticatorGroupsConfig field is set. + */ + @java.lang.Override + public boolean hasAuthenticatorGroupsConfig() { + return authenticatorGroupsConfig_ != null; + } + /** + * + * + *
+   * Configuration controlling RBAC group membership information.
+   * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * + * + * @return The authenticatorGroupsConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.AuthenticatorGroupsConfig getAuthenticatorGroupsConfig() { + return authenticatorGroupsConfig_ == null + ? com.google.container.v1beta1.AuthenticatorGroupsConfig.getDefaultInstance() + : authenticatorGroupsConfig_; + } + /** + * + * + *
+   * Configuration controlling RBAC group membership information.
+   * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * + */ + @java.lang.Override + public com.google.container.v1beta1.AuthenticatorGroupsConfigOrBuilder + getAuthenticatorGroupsConfigOrBuilder() { + return getAuthenticatorGroupsConfig(); + } + + public static final int PRIVATE_CLUSTER_CONFIG_FIELD_NUMBER = 37; + private com.google.container.v1beta1.PrivateClusterConfig privateClusterConfig_; + /** + * + * + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + * + * @return Whether the privateClusterConfig field is set. + */ + @java.lang.Override + public boolean hasPrivateClusterConfig() { + return privateClusterConfig_ != null; + } + /** + * + * + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + * + * @return The privateClusterConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.PrivateClusterConfig getPrivateClusterConfig() { + return privateClusterConfig_ == null + ? com.google.container.v1beta1.PrivateClusterConfig.getDefaultInstance() + : privateClusterConfig_; + } + /** + * + * + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + */ + @java.lang.Override + public com.google.container.v1beta1.PrivateClusterConfigOrBuilder + getPrivateClusterConfigOrBuilder() { + return getPrivateClusterConfig(); + } + + public static final int VERTICAL_POD_AUTOSCALING_FIELD_NUMBER = 39; + private com.google.container.v1beta1.VerticalPodAutoscaling verticalPodAutoscaling_; + /** + * + * + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + * + * @return Whether the verticalPodAutoscaling field is set. + */ + @java.lang.Override + public boolean hasVerticalPodAutoscaling() { + return verticalPodAutoscaling_ != null; + } + /** + * + * + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + * + * @return The verticalPodAutoscaling. + */ + @java.lang.Override + public com.google.container.v1beta1.VerticalPodAutoscaling getVerticalPodAutoscaling() { + return verticalPodAutoscaling_ == null + ? com.google.container.v1beta1.VerticalPodAutoscaling.getDefaultInstance() + : verticalPodAutoscaling_; + } + /** + * + * + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + */ + @java.lang.Override + public com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder + getVerticalPodAutoscalingOrBuilder() { + return getVerticalPodAutoscaling(); + } + + public static final int SHIELDED_NODES_FIELD_NUMBER = 40; + private com.google.container.v1beta1.ShieldedNodes shieldedNodes_; + /** + * + * + *
+   * Shielded Nodes configuration.
+   * 
+ * + * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; + * + * @return Whether the shieldedNodes field is set. + */ + @java.lang.Override + public boolean hasShieldedNodes() { + return shieldedNodes_ != null; + } + /** + * + * + *
+   * Shielded Nodes configuration.
+   * 
+ * + * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; + * + * @return The shieldedNodes. + */ + @java.lang.Override + public com.google.container.v1beta1.ShieldedNodes getShieldedNodes() { + return shieldedNodes_ == null + ? com.google.container.v1beta1.ShieldedNodes.getDefaultInstance() + : shieldedNodes_; + } + /** + * + * + *
+   * Shielded Nodes configuration.
+   * 
+ * + * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; + */ + @java.lang.Override + public com.google.container.v1beta1.ShieldedNodesOrBuilder getShieldedNodesOrBuilder() { + return getShieldedNodes(); + } + + public static final int RELEASE_CHANNEL_FIELD_NUMBER = 41; + private com.google.container.v1beta1.ReleaseChannel releaseChannel_; + /** + * + * + *
+   * Release channel configuration.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + * + * @return Whether the releaseChannel field is set. + */ + @java.lang.Override + public boolean hasReleaseChannel() { + return releaseChannel_ != null; + } + /** + * + * + *
+   * Release channel configuration.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + * + * @return The releaseChannel. + */ + @java.lang.Override + public com.google.container.v1beta1.ReleaseChannel getReleaseChannel() { + return releaseChannel_ == null + ? com.google.container.v1beta1.ReleaseChannel.getDefaultInstance() + : releaseChannel_; + } + /** + * + * + *
+   * Release channel configuration.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + */ + @java.lang.Override + public com.google.container.v1beta1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder() { + return getReleaseChannel(); + } + + public static final int WORKLOAD_IDENTITY_CONFIG_FIELD_NUMBER = 43; + private com.google.container.v1beta1.WorkloadIdentityConfig workloadIdentityConfig_; + /** + * + * + *
+   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+   * policies.
+   * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; + * + * @return Whether the workloadIdentityConfig field is set. + */ + @java.lang.Override + public boolean hasWorkloadIdentityConfig() { + return workloadIdentityConfig_ != null; + } + /** + * + * + *
+   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+   * policies.
+   * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; + * + * @return The workloadIdentityConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.WorkloadIdentityConfig getWorkloadIdentityConfig() { + return workloadIdentityConfig_ == null + ? com.google.container.v1beta1.WorkloadIdentityConfig.getDefaultInstance() + : workloadIdentityConfig_; + } + /** + * + * + *
+   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+   * policies.
+   * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; + */ + @java.lang.Override + public com.google.container.v1beta1.WorkloadIdentityConfigOrBuilder + getWorkloadIdentityConfigOrBuilder() { + return getWorkloadIdentityConfig(); + } + + public static final int 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 workloadCertificates_ != null; + } + /** + * + * + *
+   * 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 getWorkloadCertificates(); + } + + public static final int MESH_CERTIFICATES_FIELD_NUMBER = 67; + private com.google.container.v1beta1.MeshCertificates meshCertificates_; + /** + * + * + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + * + * @return Whether the meshCertificates field is set. + */ + @java.lang.Override + public boolean hasMeshCertificates() { + return meshCertificates_ != null; + } + /** + * + * + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + * + * @return The meshCertificates. + */ + @java.lang.Override + public com.google.container.v1beta1.MeshCertificates getMeshCertificates() { + return meshCertificates_ == null + ? com.google.container.v1beta1.MeshCertificates.getDefaultInstance() + : meshCertificates_; + } + /** + * + * + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + */ + @java.lang.Override + public com.google.container.v1beta1.MeshCertificatesOrBuilder getMeshCertificatesOrBuilder() { + return getMeshCertificates(); + } + + public static final int 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 workloadAltsConfig_ != null; + } + /** + * + * + *
+   * 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 getWorkloadAltsConfig(); + } + + 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 costManagementConfig_ != null; + } + /** + * + * + *
+   * 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 getCostManagementConfig(); + } + + public static final int CLUSTER_TELEMETRY_FIELD_NUMBER = 46; + private com.google.container.v1beta1.ClusterTelemetry clusterTelemetry_; + /** + * + * + *
+   * Telemetry integration for the cluster.
+   * 
+ * + * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; + * + * @return Whether the clusterTelemetry field is set. + */ + @java.lang.Override + public boolean hasClusterTelemetry() { + return clusterTelemetry_ != null; + } + /** + * + * + *
+   * Telemetry integration for the cluster.
+   * 
+ * + * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; + * + * @return The clusterTelemetry. + */ + @java.lang.Override + public com.google.container.v1beta1.ClusterTelemetry getClusterTelemetry() { + return clusterTelemetry_ == null + ? com.google.container.v1beta1.ClusterTelemetry.getDefaultInstance() + : clusterTelemetry_; + } + /** + * + * + *
+   * Telemetry integration for the cluster.
+   * 
+ * + * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; + */ + @java.lang.Override + public com.google.container.v1beta1.ClusterTelemetryOrBuilder getClusterTelemetryOrBuilder() { + return getClusterTelemetry(); + } + + public static final int TPU_CONFIG_FIELD_NUMBER = 47; + private com.google.container.v1beta1.TpuConfig tpuConfig_; + /** + * + * + *
+   * Configuration for Cloud TPU support;
+   * 
+ * + * .google.container.v1beta1.TpuConfig tpu_config = 47; + * + * @return Whether the tpuConfig field is set. + */ + @java.lang.Override + public boolean hasTpuConfig() { + return tpuConfig_ != null; + } + /** + * + * + *
+   * Configuration for Cloud TPU support;
+   * 
+ * + * .google.container.v1beta1.TpuConfig tpu_config = 47; + * + * @return The tpuConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.TpuConfig getTpuConfig() { + return tpuConfig_ == null + ? com.google.container.v1beta1.TpuConfig.getDefaultInstance() + : tpuConfig_; + } + /** + * + * + *
+   * Configuration for Cloud TPU support;
+   * 
+ * + * .google.container.v1beta1.TpuConfig tpu_config = 47; + */ + @java.lang.Override + public com.google.container.v1beta1.TpuConfigOrBuilder getTpuConfigOrBuilder() { + return getTpuConfig(); + } + + public static final int NOTIFICATION_CONFIG_FIELD_NUMBER = 49; + private com.google.container.v1beta1.NotificationConfig notificationConfig_; + /** + * + * + *
+   * Notification configuration of the cluster.
+   * 
+ * + * .google.container.v1beta1.NotificationConfig notification_config = 49; + * + * @return Whether the notificationConfig field is set. + */ + @java.lang.Override + public boolean hasNotificationConfig() { + return notificationConfig_ != null; + } + /** + * + * + *
+   * Notification configuration of the cluster.
+   * 
+ * + * .google.container.v1beta1.NotificationConfig notification_config = 49; + * + * @return The notificationConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig getNotificationConfig() { + return notificationConfig_ == null + ? com.google.container.v1beta1.NotificationConfig.getDefaultInstance() + : notificationConfig_; + } + /** + * + * + *
+   * Notification configuration of the cluster.
+   * 
+ * + * .google.container.v1beta1.NotificationConfig notification_config = 49; + */ + @java.lang.Override + public com.google.container.v1beta1.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { + return getNotificationConfig(); + } + + public static final int CONFIDENTIAL_NODES_FIELD_NUMBER = 50; + private com.google.container.v1beta1.ConfidentialNodes confidentialNodes_; + /** + * + * + *
+   * Configuration of Confidential Nodes.
+   * 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 confidentialNodes_ != null; + } + /** + * + * + *
+   * 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 getConfidentialNodes(); + } + + 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 identityServiceConfig_ != null; + } + /** + * + * + *
+   * 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 getIdentityServiceConfig(); + } + + public static final int SELF_LINK_FIELD_NUMBER = 100; + private volatile java.lang.Object selfLink_; + /** + * + * + *
+   * [Output only] Server-defined URL for the resource.
+   * 
+ * + * string self_link = 100; + * + * @return The selfLink. + */ + @java.lang.Override + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] Server-defined URL for the resource.
+   * 
+ * + * string self_link = 100; + * + * @return The bytes for selfLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 101; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field is deprecated, use location instead.
+   * 
+ * + * string zone = 101 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Cluster.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1786 + * @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=1786 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENDPOINT_FIELD_NUMBER = 102; + private volatile java.lang.Object endpoint_; + /** + * + * + *
+   * [Output only] The IP address of this cluster's master endpoint.
+   * The endpoint can be accessed from the internet at
+   * `https://username:password@endpoint/`.
+   * See the `masterAuth` property of this resource for username and
+   * password information.
+   * 
+ * + * string endpoint = 102; + * + * @return The endpoint. + */ + @java.lang.Override + public java.lang.String getEndpoint() { + java.lang.Object ref = endpoint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endpoint_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] The IP address of this cluster's master endpoint.
+   * The endpoint can be accessed from the internet at
+   * `https://username:password@endpoint/`.
+   * See the `masterAuth` property of this resource for username and
+   * password information.
+   * 
+ * + * string endpoint = 102; + * + * @return The bytes for endpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEndpointBytes() { + java.lang.Object ref = endpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INITIAL_CLUSTER_VERSION_FIELD_NUMBER = 103; + private volatile java.lang.Object initialClusterVersion_; + /** + * + * + *
+   * The initial Kubernetes version for this cluster.  Valid versions are those
+   * found in validMasterVersions returned by getServerConfig.  The version can
+   * be upgraded over time; such upgrades are reflected in
+   * currentMasterVersion and currentNodeVersion.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "","-": picks the default Kubernetes version
+   * 
+ * + * string initial_cluster_version = 103; + * + * @return The initialClusterVersion. + */ + @java.lang.Override + public java.lang.String getInitialClusterVersion() { + java.lang.Object ref = initialClusterVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + initialClusterVersion_ = s; + return s; + } + } + /** + * + * + *
+   * The initial Kubernetes version for this cluster.  Valid versions are those
+   * found in validMasterVersions returned by getServerConfig.  The version can
+   * be upgraded over time; such upgrades are reflected in
+   * currentMasterVersion and currentNodeVersion.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "","-": picks the default Kubernetes version
+   * 
+ * + * string initial_cluster_version = 103; + * + * @return The bytes for initialClusterVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInitialClusterVersionBytes() { + java.lang.Object ref = initialClusterVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + initialClusterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CURRENT_MASTER_VERSION_FIELD_NUMBER = 104; + private volatile java.lang.Object currentMasterVersion_; + /** + * + * + *
+   * [Output only] The current software version of the master endpoint.
+   * 
+ * + * string current_master_version = 104; + * + * @return The currentMasterVersion. + */ + @java.lang.Override + public java.lang.String getCurrentMasterVersion() { + java.lang.Object ref = currentMasterVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentMasterVersion_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] The current software version of the master endpoint.
+   * 
+ * + * string current_master_version = 104; + * + * @return The bytes for currentMasterVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCurrentMasterVersionBytes() { + java.lang.Object ref = currentMasterVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + currentMasterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CURRENT_NODE_VERSION_FIELD_NUMBER = 105; + private volatile java.lang.Object currentNodeVersion_; + /** + * + * + *
+   * [Output only] Deprecated, use
+   * [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools)
+   * instead. The current version of the node software components.
+   * If they are currently at multiple versions because they're in the process
+   * of being upgraded, this reflects the minimum version of all nodes.
+   * 
+ * + * string current_node_version = 105 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1819 + * @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=1819 + * @return The bytes for currentNodeVersion. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getCurrentNodeVersionBytes() { + java.lang.Object ref = currentNodeVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + currentNodeVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 106; + private volatile java.lang.Object createTime_; + /** + * + * + *
+   * [Output only] The time the cluster was created, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string create_time = 106; + * + * @return The createTime. + */ + @java.lang.Override + public java.lang.String getCreateTime() { + java.lang.Object ref = createTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + createTime_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] The time the cluster was created, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string create_time = 106; + * + * @return The bytes for createTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCreateTimeBytes() { + java.lang.Object ref = createTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + createTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 107; + private int status_; + /** + * + * + *
+   * [Output only] The current status of this cluster.
+   * 
+ * + * .google.container.v1beta1.Cluster.Status status = 107; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + /** + * + * + *
+   * [Output only] The current status of this cluster.
+   * 
+ * + * .google.container.v1beta1.Cluster.Status status = 107; + * + * @return The status. + */ + @java.lang.Override + public com.google.container.v1beta1.Cluster.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.Cluster.Status result = + com.google.container.v1beta1.Cluster.Status.valueOf(status_); + return result == null ? com.google.container.v1beta1.Cluster.Status.UNRECOGNIZED : result; + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 108; + private volatile java.lang.Object statusMessage_; + /** + * + * + *
+   * [Output only] Deprecated. Use conditions instead.
+   * Additional information about the current status of this
+   * cluster, if available.
+   * 
+ * + * string status_message = 108 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1831 + * @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=1831 + * @return The bytes for statusMessage. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_IPV4_CIDR_SIZE_FIELD_NUMBER = 109; + private int nodeIpv4CidrSize_; + /** + * + * + *
+   * [Output only] The size of the address space on each node for hosting
+   * containers. This is provisioned from within the `container_ipv4_cidr`
+   * range. This field will only be set when cluster is in route-based network
+   * mode.
+   * 
+ * + * int32 node_ipv4_cidr_size = 109; + * + * @return The nodeIpv4CidrSize. + */ + @java.lang.Override + public int getNodeIpv4CidrSize() { + return nodeIpv4CidrSize_; + } + + public static final int SERVICES_IPV4_CIDR_FIELD_NUMBER = 110; + private volatile java.lang.Object servicesIpv4Cidr_; + /** + * + * + *
+   * [Output only] The IP address range of the Kubernetes services in
+   * this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `1.2.3.4/29`). Service addresses are
+   * typically put in the last `/16` from the container CIDR.
+   * 
+ * + * string services_ipv4_cidr = 110; + * + * @return The servicesIpv4Cidr. + */ + @java.lang.Override + public java.lang.String getServicesIpv4Cidr() { + java.lang.Object ref = servicesIpv4Cidr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesIpv4Cidr_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] The IP address range of the Kubernetes services in
+   * this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `1.2.3.4/29`). Service addresses are
+   * typically put in the last `/16` from the container CIDR.
+   * 
+ * + * string services_ipv4_cidr = 110; + * + * @return The bytes for servicesIpv4Cidr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { + java.lang.Object ref = servicesIpv4Cidr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servicesIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTANCE_GROUP_URLS_FIELD_NUMBER = 111; + private com.google.protobuf.LazyStringList instanceGroupUrls_; + /** + * + * + *
+   * Deprecated. Use node_pools.instance_group_urls.
+   * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1847 + * @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=1847 + * @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=1847 + * @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=1847 + * @param index The index of the value to return. + * @return The bytes of the instanceGroupUrls at the given index. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { + return instanceGroupUrls_.getByteString(index); + } + + public static final int CURRENT_NODE_COUNT_FIELD_NUMBER = 112; + private int currentNodeCount_; + /** + * + * + *
+   * [Output only]  The number of nodes currently in the cluster. Deprecated.
+   * Call Kubernetes API directly to retrieve node information.
+   * 
+ * + * int32 current_node_count = 112 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Cluster.current_node_count is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1851 + * @return The currentNodeCount. + */ + @java.lang.Override + @java.lang.Deprecated + public int getCurrentNodeCount() { + return currentNodeCount_; + } + + public static final int EXPIRE_TIME_FIELD_NUMBER = 113; + private volatile java.lang.Object expireTime_; + /** + * + * + *
+   * [Output only] The time the cluster will be automatically
+   * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string expire_time = 113; + * + * @return The expireTime. + */ + @java.lang.Override + public java.lang.String getExpireTime() { + java.lang.Object ref = expireTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + expireTime_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] The time the cluster will be automatically
+   * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string expire_time = 113; + * + * @return The bytes for expireTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExpireTimeBytes() { + java.lang.Object ref = expireTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + expireTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATION_FIELD_NUMBER = 114; + private volatile java.lang.Object location_; + /** + * + * + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * or
+   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * in which the cluster resides.
+   * 
+ * + * string location = 114; + * + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * or
+   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * in which the cluster resides.
+   * 
+ * + * string location = 114; + * + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENABLE_TPU_FIELD_NUMBER = 115; + private boolean enableTpu_; + /** + * + * + *
+   * Enable the ability to use Cloud TPUs in this cluster.
+   * This field is deprecated, use tpu_config.enabled instead.
+   * 
+ * + * bool enable_tpu = 115; + * + * @return The enableTpu. + */ + @java.lang.Override + public boolean getEnableTpu() { + return enableTpu_; + } + + public static final int TPU_IPV4_CIDR_BLOCK_FIELD_NUMBER = 116; + private volatile java.lang.Object tpuIpv4CidrBlock_; + /** + * + * + *
+   * [Output only] The IP address range of the Cloud TPUs in this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `1.2.3.4/29`).
+   * 
+ * + * string tpu_ipv4_cidr_block = 116; + * + * @return The tpuIpv4CidrBlock. + */ + @java.lang.Override + public java.lang.String getTpuIpv4CidrBlock() { + java.lang.Object ref = tpuIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tpuIpv4CidrBlock_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] The IP address range of the Cloud TPUs in this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `1.2.3.4/29`).
+   * 
+ * + * string tpu_ipv4_cidr_block = 116; + * + * @return The bytes for tpuIpv4CidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTpuIpv4CidrBlockBytes() { + java.lang.Object ref = tpuIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tpuIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATABASE_ENCRYPTION_FIELD_NUMBER = 38; + private com.google.container.v1beta1.DatabaseEncryption databaseEncryption_; + /** + * + * + *
+   * Configuration of etcd encryption.
+   * 
+ * + * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; + * + * @return Whether the databaseEncryption field is set. + */ + @java.lang.Override + public boolean hasDatabaseEncryption() { + return databaseEncryption_ != null; + } + /** + * + * + *
+   * Configuration of etcd encryption.
+   * 
+ * + * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; + * + * @return The databaseEncryption. + */ + @java.lang.Override + public com.google.container.v1beta1.DatabaseEncryption getDatabaseEncryption() { + return databaseEncryption_ == null + ? com.google.container.v1beta1.DatabaseEncryption.getDefaultInstance() + : databaseEncryption_; + } + /** + * + * + *
+   * Configuration of etcd encryption.
+   * 
+ * + * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; + */ + @java.lang.Override + public com.google.container.v1beta1.DatabaseEncryptionOrBuilder getDatabaseEncryptionOrBuilder() { + return getDatabaseEncryption(); + } + + public static final int CONDITIONS_FIELD_NUMBER = 118; + private java.util.List conditions_; + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + @java.lang.Override + public java.util.List getConditionsList() { + return conditions_; + } + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + @java.lang.Override + public java.util.List + getConditionsOrBuilderList() { + return conditions_; + } + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + @java.lang.Override + public int getConditionsCount() { + return conditions_.size(); + } + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + @java.lang.Override + public com.google.container.v1beta1.StatusCondition getConditions(int index) { + return conditions_.get(index); + } + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + @java.lang.Override + public com.google.container.v1beta1.StatusConditionOrBuilder getConditionsOrBuilder(int index) { + return conditions_.get(index); + } + + public static final int MASTER_FIELD_NUMBER = 124; + private com.google.container.v1beta1.Master master_; + /** + * + * + *
+   * Configuration for master components.
+   * 
+ * + * .google.container.v1beta1.Master master = 124; + * + * @return Whether the master field is set. + */ + @java.lang.Override + public boolean hasMaster() { + return master_ != null; + } + /** + * + * + *
+   * Configuration for master components.
+   * 
+ * + * .google.container.v1beta1.Master master = 124; + * + * @return The master. + */ + @java.lang.Override + public com.google.container.v1beta1.Master getMaster() { + return master_ == null ? com.google.container.v1beta1.Master.getDefaultInstance() : master_; + } + /** + * + * + *
+   * Configuration for master components.
+   * 
+ * + * .google.container.v1beta1.Master master = 124; + */ + @java.lang.Override + public com.google.container.v1beta1.MasterOrBuilder getMasterOrBuilder() { + return getMaster(); + } + + 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 autopilot_ != null; + } + /** + * + * + *
+   * 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 getAutopilot(); + } + + public static final int ID_FIELD_NUMBER = 129; + private volatile java.lang.Object id_; + /** + * + * + *
+   * Output only. Unique id for the cluster.
+   * 
+ * + * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The id. + */ + @java.lang.Override + public 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 ((bitField0_ & 0x00000001) != 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 loggingConfig_ != null; + } + /** + * + * + *
+   * 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 getLoggingConfig(); + } + + 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 monitoringConfig_ != null; + } + /** + * + * + *
+   * 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 getMonitoringConfig(); + } + + 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 nodePoolAutoConfig_ != null; + } + /** + * + * + *
+   * 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 getNodePoolAutoConfig(); + } + + public static final int PROTECT_CONFIG_FIELD_NUMBER = 137; + private com.google.container.v1beta1.ProtectConfig protectConfig_; + /** + * + * + *
+   * Enable/Disable Protect API features for the cluster.
+   * 
+ * + * optional .google.container.v1beta1.ProtectConfig protect_config = 137; + * + * @return Whether the protectConfig field is set. + */ + @java.lang.Override + public boolean hasProtectConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Enable/Disable Protect API features for the cluster.
+   * 
+ * + * optional .google.container.v1beta1.ProtectConfig protect_config = 137; + * + * @return The protectConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.ProtectConfig getProtectConfig() { + return protectConfig_ == null + ? com.google.container.v1beta1.ProtectConfig.getDefaultInstance() + : protectConfig_; + } + /** + * + * + *
+   * Enable/Disable Protect API features for the cluster.
+   * 
+ * + * optional .google.container.v1beta1.ProtectConfig protect_config = 137; + */ + @java.lang.Override + public com.google.container.v1beta1.ProtectConfigOrBuilder getProtectConfigOrBuilder() { + return protectConfig_ == null + ? com.google.container.v1beta1.ProtectConfig.getDefaultInstance() + : protectConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + if (initialNodeCount_ != 0) { + output.writeInt32(3, initialNodeCount_); + } + if (nodeConfig_ != null) { + output.writeMessage(4, getNodeConfig()); + } + if (masterAuth_ != null) { + output.writeMessage(5, getMasterAuth()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loggingService_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, loggingService_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(monitoringService_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, monitoringService_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterIpv4Cidr_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, clusterIpv4Cidr_); + } + if (addonsConfig_ != null) { + output.writeMessage(10, getAddonsConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, subnetwork_); + } + for (int i = 0; i < nodePools_.size(); i++) { + output.writeMessage(12, nodePools_.get(i)); + } + for (int i = 0; i < locations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, locations_.getRaw(i)); + } + if (enableKubernetesAlpha_ != false) { + output.writeBool(14, enableKubernetesAlpha_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetResourceLabels(), ResourceLabelsDefaultEntryHolder.defaultEntry, 15); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(labelFingerprint_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, labelFingerprint_); + } + if (legacyAbac_ != null) { + output.writeMessage(18, getLegacyAbac()); + } + if (networkPolicy_ != null) { + output.writeMessage(19, getNetworkPolicy()); + } + if (ipAllocationPolicy_ != null) { + output.writeMessage(20, getIpAllocationPolicy()); + } + if (masterAuthorizedNetworksConfig_ != null) { + output.writeMessage(22, getMasterAuthorizedNetworksConfig()); + } + if (maintenancePolicy_ != null) { + output.writeMessage(23, getMaintenancePolicy()); + } + if (binaryAuthorization_ != null) { + output.writeMessage(24, getBinaryAuthorization()); + } + if (podSecurityPolicyConfig_ != null) { + output.writeMessage(25, getPodSecurityPolicyConfig()); + } + if (autoscaling_ != null) { + output.writeMessage(26, getAutoscaling()); + } + if (networkConfig_ != null) { + output.writeMessage(27, getNetworkConfig()); + } + if (privateCluster_ != false) { + output.writeBool(28, privateCluster_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(masterIpv4CidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 29, masterIpv4CidrBlock_); + } + if (defaultMaxPodsConstraint_ != null) { + output.writeMessage(30, getDefaultMaxPodsConstraint()); + } + if (resourceUsageExportConfig_ != null) { + output.writeMessage(33, getResourceUsageExportConfig()); + } + if (authenticatorGroupsConfig_ != null) { + output.writeMessage(34, getAuthenticatorGroupsConfig()); + } + if (privateClusterConfig_ != null) { + output.writeMessage(37, getPrivateClusterConfig()); + } + if (databaseEncryption_ != null) { + output.writeMessage(38, getDatabaseEncryption()); + } + if (verticalPodAutoscaling_ != null) { + output.writeMessage(39, getVerticalPodAutoscaling()); + } + if (shieldedNodes_ != null) { + output.writeMessage(40, getShieldedNodes()); + } + if (releaseChannel_ != null) { + output.writeMessage(41, getReleaseChannel()); + } + if (workloadIdentityConfig_ != null) { + output.writeMessage(43, getWorkloadIdentityConfig()); + } + if (costManagementConfig_ != null) { + output.writeMessage(45, getCostManagementConfig()); + } + if (clusterTelemetry_ != null) { + output.writeMessage(46, getClusterTelemetry()); + } + if (tpuConfig_ != null) { + output.writeMessage(47, getTpuConfig()); + } + if (notificationConfig_ != null) { + output.writeMessage(49, getNotificationConfig()); + } + if (confidentialNodes_ != null) { + output.writeMessage(50, getConfidentialNodes()); + } + if (workloadCertificates_ != null) { + output.writeMessage(52, getWorkloadCertificates()); + } + if (workloadAltsConfig_ != null) { + output.writeMessage(53, getWorkloadAltsConfig()); + } + if (identityServiceConfig_ != null) { + output.writeMessage(54, getIdentityServiceConfig()); + } + if (meshCertificates_ != null) { + output.writeMessage(67, getMeshCertificates()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, selfLink_); + } + 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 (master_ != null) { + output.writeMessage(124, getMaster()); + } + if (autopilot_ != null) { + output.writeMessage(128, getAutopilot()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 129, id_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(131, getNodePoolDefaults()); + } + if (loggingConfig_ != null) { + output.writeMessage(132, getLoggingConfig()); + } + if (monitoringConfig_ != null) { + output.writeMessage(133, getMonitoringConfig()); + } + if (nodePoolAutoConfig_ != null) { + output.writeMessage(136, getNodePoolAutoConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(137, getProtectConfig()); + } + getUnknownFields().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 (nodeConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getNodeConfig()); + } + if (masterAuth_ != null) { + 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 (addonsConfig_ != null) { + 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 (legacyAbac_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getLegacyAbac()); + } + if (networkPolicy_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getNetworkPolicy()); + } + if (ipAllocationPolicy_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getIpAllocationPolicy()); + } + if (masterAuthorizedNetworksConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 22, getMasterAuthorizedNetworksConfig()); + } + if (maintenancePolicy_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getMaintenancePolicy()); + } + if (binaryAuthorization_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(24, getBinaryAuthorization()); + } + if (podSecurityPolicyConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 25, getPodSecurityPolicyConfig()); + } + if (autoscaling_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getAutoscaling()); + } + if (networkConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, getNetworkConfig()); + } + if (privateCluster_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(28, privateCluster_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(masterIpv4CidrBlock_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, masterIpv4CidrBlock_); + } + if (defaultMaxPodsConstraint_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 30, getDefaultMaxPodsConstraint()); + } + if (resourceUsageExportConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 33, getResourceUsageExportConfig()); + } + if (authenticatorGroupsConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 34, getAuthenticatorGroupsConfig()); + } + if (privateClusterConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(37, getPrivateClusterConfig()); + } + if (databaseEncryption_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(38, getDatabaseEncryption()); + } + if (verticalPodAutoscaling_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(39, getVerticalPodAutoscaling()); + } + if (shieldedNodes_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(40, getShieldedNodes()); + } + if (releaseChannel_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(41, getReleaseChannel()); + } + if (workloadIdentityConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(43, getWorkloadIdentityConfig()); + } + if (costManagementConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(45, getCostManagementConfig()); + } + if (clusterTelemetry_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(46, getClusterTelemetry()); + } + if (tpuConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(47, getTpuConfig()); + } + if (notificationConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(49, getNotificationConfig()); + } + if (confidentialNodes_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(50, getConfidentialNodes()); + } + if (workloadCertificates_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(52, getWorkloadCertificates()); + } + if (workloadAltsConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(53, getWorkloadAltsConfig()); + } + if (identityServiceConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(54, getIdentityServiceConfig()); + } + if (meshCertificates_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(67, getMeshCertificates()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, selfLink_); + } + 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 (master_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(124, getMaster()); + } + if (autopilot_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(128, getAutopilot()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(129, id_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(131, getNodePoolDefaults()); + } + if (loggingConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(132, getLoggingConfig()); + } + if (monitoringConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(133, getMonitoringConfig()); + } + if (nodePoolAutoConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(136, getNodePoolAutoConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(137, getProtectConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.Cluster)) { + return super.equals(obj); + } + com.google.container.v1beta1.Cluster other = (com.google.container.v1beta1.Cluster) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (getInitialNodeCount() != other.getInitialNodeCount()) return false; + if (hasNodeConfig() != other.hasNodeConfig()) return false; + if (hasNodeConfig()) { + if (!getNodeConfig().equals(other.getNodeConfig())) return false; + } + if (hasMasterAuth() != other.hasMasterAuth()) return false; + if (hasMasterAuth()) { + if (!getMasterAuth().equals(other.getMasterAuth())) return false; + } + if (!getLoggingService().equals(other.getLoggingService())) return false; + if (!getMonitoringService().equals(other.getMonitoringService())) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getClusterIpv4Cidr().equals(other.getClusterIpv4Cidr())) return false; + if (hasAddonsConfig() != other.hasAddonsConfig()) return false; + if (hasAddonsConfig()) { + if (!getAddonsConfig().equals(other.getAddonsConfig())) return false; + } + if (!getSubnetwork().equals(other.getSubnetwork())) return false; + if (!getNodePoolsList().equals(other.getNodePoolsList())) return false; + if (!getLocationsList().equals(other.getLocationsList())) return false; + if (getEnableKubernetesAlpha() != other.getEnableKubernetesAlpha()) return false; + if (!internalGetResourceLabels().equals(other.internalGetResourceLabels())) return false; + if (!getLabelFingerprint().equals(other.getLabelFingerprint())) return false; + if (hasLegacyAbac() != other.hasLegacyAbac()) return false; + if (hasLegacyAbac()) { + if (!getLegacyAbac().equals(other.getLegacyAbac())) return false; + } + if (hasNetworkPolicy() != other.hasNetworkPolicy()) return false; + if (hasNetworkPolicy()) { + if (!getNetworkPolicy().equals(other.getNetworkPolicy())) return false; + } + if (hasIpAllocationPolicy() != other.hasIpAllocationPolicy()) return false; + if (hasIpAllocationPolicy()) { + if (!getIpAllocationPolicy().equals(other.getIpAllocationPolicy())) return false; + } + if (hasMasterAuthorizedNetworksConfig() != other.hasMasterAuthorizedNetworksConfig()) + return false; + if (hasMasterAuthorizedNetworksConfig()) { + if (!getMasterAuthorizedNetworksConfig().equals(other.getMasterAuthorizedNetworksConfig())) + return false; + } + if (hasMaintenancePolicy() != other.hasMaintenancePolicy()) return false; + if (hasMaintenancePolicy()) { + if (!getMaintenancePolicy().equals(other.getMaintenancePolicy())) return false; + } + if (hasBinaryAuthorization() != other.hasBinaryAuthorization()) return false; + if (hasBinaryAuthorization()) { + if (!getBinaryAuthorization().equals(other.getBinaryAuthorization())) return false; + } + if (hasPodSecurityPolicyConfig() != other.hasPodSecurityPolicyConfig()) return false; + if (hasPodSecurityPolicyConfig()) { + if (!getPodSecurityPolicyConfig().equals(other.getPodSecurityPolicyConfig())) return false; + } + if (hasAutoscaling() != other.hasAutoscaling()) return false; + if (hasAutoscaling()) { + if (!getAutoscaling().equals(other.getAutoscaling())) return false; + } + if (hasNetworkConfig() != other.hasNetworkConfig()) return false; + if (hasNetworkConfig()) { + if (!getNetworkConfig().equals(other.getNetworkConfig())) return false; + } + if (getPrivateCluster() != other.getPrivateCluster()) return false; + if (!getMasterIpv4CidrBlock().equals(other.getMasterIpv4CidrBlock())) return false; + if (hasDefaultMaxPodsConstraint() != other.hasDefaultMaxPodsConstraint()) return false; + if (hasDefaultMaxPodsConstraint()) { + if (!getDefaultMaxPodsConstraint().equals(other.getDefaultMaxPodsConstraint())) return false; + } + if (hasResourceUsageExportConfig() != other.hasResourceUsageExportConfig()) return false; + if (hasResourceUsageExportConfig()) { + if (!getResourceUsageExportConfig().equals(other.getResourceUsageExportConfig())) + return false; + } + if (hasAuthenticatorGroupsConfig() != other.hasAuthenticatorGroupsConfig()) return false; + if (hasAuthenticatorGroupsConfig()) { + if (!getAuthenticatorGroupsConfig().equals(other.getAuthenticatorGroupsConfig())) + return false; + } + if (hasPrivateClusterConfig() != other.hasPrivateClusterConfig()) return false; + if (hasPrivateClusterConfig()) { + if (!getPrivateClusterConfig().equals(other.getPrivateClusterConfig())) return false; + } + if (hasVerticalPodAutoscaling() != other.hasVerticalPodAutoscaling()) return false; + if (hasVerticalPodAutoscaling()) { + if (!getVerticalPodAutoscaling().equals(other.getVerticalPodAutoscaling())) return false; + } + if (hasShieldedNodes() != other.hasShieldedNodes()) return false; + if (hasShieldedNodes()) { + if (!getShieldedNodes().equals(other.getShieldedNodes())) return false; + } + if (hasReleaseChannel() != other.hasReleaseChannel()) return false; + if (hasReleaseChannel()) { + if (!getReleaseChannel().equals(other.getReleaseChannel())) return false; + } + if (hasWorkloadIdentityConfig() != other.hasWorkloadIdentityConfig()) return false; + if (hasWorkloadIdentityConfig()) { + if (!getWorkloadIdentityConfig().equals(other.getWorkloadIdentityConfig())) return false; + } + if (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 (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + INITIAL_NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getInitialNodeCount(); + if (hasNodeConfig()) { + hash = (37 * hash) + NODE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNodeConfig().hashCode(); + } + if (hasMasterAuth()) { + hash = (37 * hash) + MASTER_AUTH_FIELD_NUMBER; + hash = (53 * hash) + getMasterAuth().hashCode(); + } + hash = (37 * hash) + LOGGING_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getLoggingService().hashCode(); + hash = (37 * hash) + MONITORING_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getMonitoringService().hashCode(); + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + hash = (37 * hash) + CLUSTER_IPV4_CIDR_FIELD_NUMBER; + hash = (53 * hash) + getClusterIpv4Cidr().hashCode(); + if (hasAddonsConfig()) { + hash = (37 * hash) + ADDONS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAddonsConfig().hashCode(); + } + hash = (37 * hash) + SUBNETWORK_FIELD_NUMBER; + hash = (53 * hash) + getSubnetwork().hashCode(); + if (getNodePoolsCount() > 0) { + hash = (37 * hash) + NODE_POOLS_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolsList().hashCode(); + } + if (getLocationsCount() > 0) { + hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getLocationsList().hashCode(); + } + hash = (37 * hash) + ENABLE_KUBERNETES_ALPHA_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableKubernetesAlpha()); + if (!internalGetResourceLabels().getMap().isEmpty()) { + hash = (37 * hash) + RESOURCE_LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetResourceLabels().hashCode(); + } + hash = (37 * hash) + LABEL_FINGERPRINT_FIELD_NUMBER; + hash = (53 * hash) + getLabelFingerprint().hashCode(); + if (hasLegacyAbac()) { + hash = (37 * hash) + LEGACY_ABAC_FIELD_NUMBER; + hash = (53 * hash) + getLegacyAbac().hashCode(); + } + if (hasNetworkPolicy()) { + hash = (37 * hash) + NETWORK_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getNetworkPolicy().hashCode(); + } + if (hasIpAllocationPolicy()) { + hash = (37 * hash) + IP_ALLOCATION_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getIpAllocationPolicy().hashCode(); + } + if (hasMasterAuthorizedNetworksConfig()) { + hash = (37 * hash) + MASTER_AUTHORIZED_NETWORKS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMasterAuthorizedNetworksConfig().hashCode(); + } + if (hasMaintenancePolicy()) { + hash = (37 * hash) + MAINTENANCE_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getMaintenancePolicy().hashCode(); + } + if (hasBinaryAuthorization()) { + hash = (37 * hash) + BINARY_AUTHORIZATION_FIELD_NUMBER; + hash = (53 * hash) + getBinaryAuthorization().hashCode(); + } + if (hasPodSecurityPolicyConfig()) { + hash = (37 * hash) + POD_SECURITY_POLICY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPodSecurityPolicyConfig().hashCode(); + } + if (hasAutoscaling()) { + hash = (37 * hash) + AUTOSCALING_FIELD_NUMBER; + hash = (53 * hash) + getAutoscaling().hashCode(); + } + if (hasNetworkConfig()) { + hash = (37 * hash) + NETWORK_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNetworkConfig().hashCode(); + } + hash = (37 * hash) + PRIVATE_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPrivateCluster()); + hash = (37 * hash) + MASTER_IPV4_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getMasterIpv4CidrBlock().hashCode(); + if (hasDefaultMaxPodsConstraint()) { + hash = (37 * hash) + DEFAULT_MAX_PODS_CONSTRAINT_FIELD_NUMBER; + hash = (53 * hash) + getDefaultMaxPodsConstraint().hashCode(); + } + if (hasResourceUsageExportConfig()) { + hash = (37 * hash) + RESOURCE_USAGE_EXPORT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getResourceUsageExportConfig().hashCode(); + } + if (hasAuthenticatorGroupsConfig()) { + hash = (37 * hash) + AUTHENTICATOR_GROUPS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAuthenticatorGroupsConfig().hashCode(); + } + if (hasPrivateClusterConfig()) { + hash = (37 * hash) + PRIVATE_CLUSTER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPrivateClusterConfig().hashCode(); + } + if (hasVerticalPodAutoscaling()) { + hash = (37 * hash) + VERTICAL_POD_AUTOSCALING_FIELD_NUMBER; + hash = (53 * hash) + getVerticalPodAutoscaling().hashCode(); + } + if (hasShieldedNodes()) { + hash = (37 * hash) + SHIELDED_NODES_FIELD_NUMBER; + hash = (53 * hash) + getShieldedNodes().hashCode(); + } + if (hasReleaseChannel()) { + hash = (37 * hash) + RELEASE_CHANNEL_FIELD_NUMBER; + hash = (53 * hash) + getReleaseChannel().hashCode(); + } + if (hasWorkloadIdentityConfig()) { + hash = (37 * hash) + WORKLOAD_IDENTITY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getWorkloadIdentityConfig().hashCode(); + } + if (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 = (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.MapField internalGetMapField(int number) { + switch (number) { + case 15: + return internalGetResourceLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 15: + return internalGetMutableResourceLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Cluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.Cluster.class, + com.google.container.v1beta1.Cluster.Builder.class); + } + + // Construct using com.google.container.v1beta1.Cluster.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getNodePoolsFieldBuilder(); + getConditionsFieldBuilder(); + getNodePoolDefaultsFieldBuilder(); + getProtectConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + description_ = ""; + + initialNodeCount_ = 0; + + if (nodeConfigBuilder_ == null) { + nodeConfig_ = null; + } else { + nodeConfig_ = null; + nodeConfigBuilder_ = null; + } + if (masterAuthBuilder_ == null) { + masterAuth_ = null; + } else { + masterAuth_ = null; + masterAuthBuilder_ = null; + } + loggingService_ = ""; + + monitoringService_ = ""; + + network_ = ""; + + clusterIpv4Cidr_ = ""; + + if (addonsConfigBuilder_ == null) { + addonsConfig_ = null; + } else { + addonsConfig_ = null; + addonsConfigBuilder_ = null; + } + subnetwork_ = ""; + + if (nodePoolsBuilder_ == null) { + nodePools_ = java.util.Collections.emptyList(); + } else { + nodePools_ = null; + nodePoolsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + enableKubernetesAlpha_ = false; + + internalGetMutableResourceLabels().clear(); + labelFingerprint_ = ""; + + if (legacyAbacBuilder_ == null) { + legacyAbac_ = null; + } else { + legacyAbac_ = null; + legacyAbacBuilder_ = null; + } + if (networkPolicyBuilder_ == null) { + networkPolicy_ = null; + } else { + networkPolicy_ = null; + networkPolicyBuilder_ = null; + } + if (ipAllocationPolicyBuilder_ == null) { + ipAllocationPolicy_ = null; + } else { + ipAllocationPolicy_ = null; + ipAllocationPolicyBuilder_ = null; + } + if (masterAuthorizedNetworksConfigBuilder_ == null) { + masterAuthorizedNetworksConfig_ = null; + } else { + masterAuthorizedNetworksConfig_ = null; + masterAuthorizedNetworksConfigBuilder_ = null; + } + if (maintenancePolicyBuilder_ == null) { + maintenancePolicy_ = null; + } else { + maintenancePolicy_ = null; + maintenancePolicyBuilder_ = null; + } + if (binaryAuthorizationBuilder_ == null) { + binaryAuthorization_ = null; + } else { + binaryAuthorization_ = null; + binaryAuthorizationBuilder_ = null; + } + if (podSecurityPolicyConfigBuilder_ == null) { + podSecurityPolicyConfig_ = null; + } else { + podSecurityPolicyConfig_ = null; + podSecurityPolicyConfigBuilder_ = null; + } + if (autoscalingBuilder_ == null) { + autoscaling_ = null; + } else { + autoscaling_ = null; + autoscalingBuilder_ = null; + } + if (networkConfigBuilder_ == null) { + networkConfig_ = null; + } else { + networkConfig_ = null; + networkConfigBuilder_ = null; + } + privateCluster_ = false; + + masterIpv4CidrBlock_ = ""; + + if (defaultMaxPodsConstraintBuilder_ == null) { + defaultMaxPodsConstraint_ = null; + } else { + defaultMaxPodsConstraint_ = null; + defaultMaxPodsConstraintBuilder_ = null; + } + if (resourceUsageExportConfigBuilder_ == null) { + resourceUsageExportConfig_ = null; + } else { + resourceUsageExportConfig_ = null; + resourceUsageExportConfigBuilder_ = null; + } + if (authenticatorGroupsConfigBuilder_ == null) { + authenticatorGroupsConfig_ = null; + } else { + authenticatorGroupsConfig_ = null; + authenticatorGroupsConfigBuilder_ = null; + } + if (privateClusterConfigBuilder_ == null) { + privateClusterConfig_ = null; + } else { + privateClusterConfig_ = null; + privateClusterConfigBuilder_ = null; + } + if (verticalPodAutoscalingBuilder_ == null) { + verticalPodAutoscaling_ = null; + } else { + verticalPodAutoscaling_ = null; + verticalPodAutoscalingBuilder_ = null; + } + if (shieldedNodesBuilder_ == null) { + shieldedNodes_ = null; + } else { + shieldedNodes_ = null; + shieldedNodesBuilder_ = null; + } + if (releaseChannelBuilder_ == null) { + releaseChannel_ = null; + } else { + releaseChannel_ = null; + releaseChannelBuilder_ = null; + } + if (workloadIdentityConfigBuilder_ == null) { + workloadIdentityConfig_ = null; + } else { + workloadIdentityConfig_ = null; + workloadIdentityConfigBuilder_ = null; + } + if (workloadCertificatesBuilder_ == null) { + workloadCertificates_ = null; + } else { + workloadCertificates_ = null; + workloadCertificatesBuilder_ = null; + } + if (meshCertificatesBuilder_ == null) { + meshCertificates_ = null; + } else { + meshCertificates_ = null; + meshCertificatesBuilder_ = null; + } + if (workloadAltsConfigBuilder_ == null) { + workloadAltsConfig_ = null; + } else { + workloadAltsConfig_ = null; + workloadAltsConfigBuilder_ = null; + } + if (costManagementConfigBuilder_ == null) { + costManagementConfig_ = null; + } else { + costManagementConfig_ = null; + costManagementConfigBuilder_ = null; + } + if (clusterTelemetryBuilder_ == null) { + clusterTelemetry_ = null; + } else { + clusterTelemetry_ = null; + clusterTelemetryBuilder_ = null; + } + if (tpuConfigBuilder_ == null) { + tpuConfig_ = null; + } else { + tpuConfig_ = null; + tpuConfigBuilder_ = null; + } + if (notificationConfigBuilder_ == null) { + notificationConfig_ = null; + } else { + notificationConfig_ = null; + notificationConfigBuilder_ = null; + } + if (confidentialNodesBuilder_ == null) { + confidentialNodes_ = null; + } else { + confidentialNodes_ = null; + confidentialNodesBuilder_ = null; + } + if (identityServiceConfigBuilder_ == null) { + identityServiceConfig_ = null; + } else { + identityServiceConfig_ = null; + identityServiceConfigBuilder_ = null; + } + selfLink_ = ""; + + zone_ = ""; + + endpoint_ = ""; + + initialClusterVersion_ = ""; + + currentMasterVersion_ = ""; + + currentNodeVersion_ = ""; + + createTime_ = ""; + + status_ = 0; + + statusMessage_ = ""; + + nodeIpv4CidrSize_ = 0; + + servicesIpv4Cidr_ = ""; + + instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + currentNodeCount_ = 0; + + expireTime_ = ""; + + location_ = ""; + + enableTpu_ = false; + + tpuIpv4CidrBlock_ = ""; + + if (databaseEncryptionBuilder_ == null) { + databaseEncryption_ = null; + } else { + databaseEncryption_ = null; + databaseEncryptionBuilder_ = null; + } + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + } else { + conditions_ = null; + conditionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (masterBuilder_ == null) { + master_ = null; + } else { + master_ = null; + masterBuilder_ = null; + } + if (autopilotBuilder_ == null) { + autopilot_ = null; + } else { + autopilot_ = null; + autopilotBuilder_ = null; + } + id_ = ""; + + if (nodePoolDefaultsBuilder_ == null) { + nodePoolDefaults_ = null; + } else { + nodePoolDefaultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + if (loggingConfigBuilder_ == null) { + loggingConfig_ = null; + } else { + loggingConfig_ = null; + loggingConfigBuilder_ = null; + } + if (monitoringConfigBuilder_ == null) { + monitoringConfig_ = null; + } else { + monitoringConfig_ = null; + monitoringConfigBuilder_ = null; + } + if (nodePoolAutoConfigBuilder_ == null) { + nodePoolAutoConfig_ = null; + } else { + nodePoolAutoConfig_ = null; + nodePoolAutoConfigBuilder_ = null; + } + if (protectConfigBuilder_ == null) { + protectConfig_ = null; + } else { + protectConfigBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Cluster_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.Cluster getDefaultInstanceForType() { + return com.google.container.v1beta1.Cluster.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.Cluster build() { + com.google.container.v1beta1.Cluster result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.Cluster buildPartial() { + com.google.container.v1beta1.Cluster result = new com.google.container.v1beta1.Cluster(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + result.description_ = description_; + result.initialNodeCount_ = initialNodeCount_; + if (nodeConfigBuilder_ == null) { + result.nodeConfig_ = nodeConfig_; + } else { + result.nodeConfig_ = nodeConfigBuilder_.build(); + } + if (masterAuthBuilder_ == null) { + result.masterAuth_ = masterAuth_; + } else { + result.masterAuth_ = masterAuthBuilder_.build(); + } + result.loggingService_ = loggingService_; + result.monitoringService_ = monitoringService_; + result.network_ = network_; + result.clusterIpv4Cidr_ = clusterIpv4Cidr_; + if (addonsConfigBuilder_ == null) { + result.addonsConfig_ = addonsConfig_; + } else { + result.addonsConfig_ = addonsConfigBuilder_.build(); + } + result.subnetwork_ = subnetwork_; + if (nodePoolsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + nodePools_ = java.util.Collections.unmodifiableList(nodePools_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.nodePools_ = nodePools_; + } else { + result.nodePools_ = nodePoolsBuilder_.build(); + } + if (((bitField0_ & 0x00000002) != 0)) { + locations_ = locations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.locations_ = locations_; + result.enableKubernetesAlpha_ = enableKubernetesAlpha_; + result.resourceLabels_ = internalGetResourceLabels(); + result.resourceLabels_.makeImmutable(); + result.labelFingerprint_ = labelFingerprint_; + if (legacyAbacBuilder_ == null) { + result.legacyAbac_ = legacyAbac_; + } else { + result.legacyAbac_ = legacyAbacBuilder_.build(); + } + if (networkPolicyBuilder_ == null) { + result.networkPolicy_ = networkPolicy_; + } else { + result.networkPolicy_ = networkPolicyBuilder_.build(); + } + if (ipAllocationPolicyBuilder_ == null) { + result.ipAllocationPolicy_ = ipAllocationPolicy_; + } else { + result.ipAllocationPolicy_ = ipAllocationPolicyBuilder_.build(); + } + if (masterAuthorizedNetworksConfigBuilder_ == null) { + result.masterAuthorizedNetworksConfig_ = masterAuthorizedNetworksConfig_; + } else { + result.masterAuthorizedNetworksConfig_ = masterAuthorizedNetworksConfigBuilder_.build(); + } + if (maintenancePolicyBuilder_ == null) { + result.maintenancePolicy_ = maintenancePolicy_; + } else { + result.maintenancePolicy_ = maintenancePolicyBuilder_.build(); + } + if (binaryAuthorizationBuilder_ == null) { + result.binaryAuthorization_ = binaryAuthorization_; + } else { + result.binaryAuthorization_ = binaryAuthorizationBuilder_.build(); + } + if (podSecurityPolicyConfigBuilder_ == null) { + result.podSecurityPolicyConfig_ = podSecurityPolicyConfig_; + } else { + result.podSecurityPolicyConfig_ = podSecurityPolicyConfigBuilder_.build(); + } + if (autoscalingBuilder_ == null) { + result.autoscaling_ = autoscaling_; + } else { + result.autoscaling_ = autoscalingBuilder_.build(); + } + if (networkConfigBuilder_ == null) { + result.networkConfig_ = networkConfig_; + } else { + result.networkConfig_ = networkConfigBuilder_.build(); + } + result.privateCluster_ = privateCluster_; + result.masterIpv4CidrBlock_ = masterIpv4CidrBlock_; + if (defaultMaxPodsConstraintBuilder_ == null) { + result.defaultMaxPodsConstraint_ = defaultMaxPodsConstraint_; + } else { + result.defaultMaxPodsConstraint_ = defaultMaxPodsConstraintBuilder_.build(); + } + if (resourceUsageExportConfigBuilder_ == null) { + result.resourceUsageExportConfig_ = resourceUsageExportConfig_; + } else { + result.resourceUsageExportConfig_ = resourceUsageExportConfigBuilder_.build(); + } + if (authenticatorGroupsConfigBuilder_ == null) { + result.authenticatorGroupsConfig_ = authenticatorGroupsConfig_; + } else { + result.authenticatorGroupsConfig_ = authenticatorGroupsConfigBuilder_.build(); + } + if (privateClusterConfigBuilder_ == null) { + result.privateClusterConfig_ = privateClusterConfig_; + } else { + result.privateClusterConfig_ = privateClusterConfigBuilder_.build(); + } + if (verticalPodAutoscalingBuilder_ == null) { + result.verticalPodAutoscaling_ = verticalPodAutoscaling_; + } else { + result.verticalPodAutoscaling_ = verticalPodAutoscalingBuilder_.build(); + } + if (shieldedNodesBuilder_ == null) { + result.shieldedNodes_ = shieldedNodes_; + } else { + result.shieldedNodes_ = shieldedNodesBuilder_.build(); + } + if (releaseChannelBuilder_ == null) { + result.releaseChannel_ = releaseChannel_; + } else { + result.releaseChannel_ = releaseChannelBuilder_.build(); + } + if (workloadIdentityConfigBuilder_ == null) { + result.workloadIdentityConfig_ = workloadIdentityConfig_; + } else { + result.workloadIdentityConfig_ = workloadIdentityConfigBuilder_.build(); + } + if (workloadCertificatesBuilder_ == null) { + result.workloadCertificates_ = workloadCertificates_; + } else { + result.workloadCertificates_ = workloadCertificatesBuilder_.build(); + } + if (meshCertificatesBuilder_ == null) { + result.meshCertificates_ = meshCertificates_; + } else { + result.meshCertificates_ = meshCertificatesBuilder_.build(); + } + if (workloadAltsConfigBuilder_ == null) { + result.workloadAltsConfig_ = workloadAltsConfig_; + } else { + result.workloadAltsConfig_ = workloadAltsConfigBuilder_.build(); + } + if (costManagementConfigBuilder_ == null) { + result.costManagementConfig_ = costManagementConfig_; + } else { + result.costManagementConfig_ = costManagementConfigBuilder_.build(); + } + if (clusterTelemetryBuilder_ == null) { + result.clusterTelemetry_ = clusterTelemetry_; + } else { + result.clusterTelemetry_ = clusterTelemetryBuilder_.build(); + } + if (tpuConfigBuilder_ == null) { + result.tpuConfig_ = tpuConfig_; + } else { + result.tpuConfig_ = tpuConfigBuilder_.build(); + } + if (notificationConfigBuilder_ == null) { + result.notificationConfig_ = notificationConfig_; + } else { + result.notificationConfig_ = notificationConfigBuilder_.build(); + } + if (confidentialNodesBuilder_ == null) { + result.confidentialNodes_ = confidentialNodes_; + } else { + result.confidentialNodes_ = confidentialNodesBuilder_.build(); + } + if (identityServiceConfigBuilder_ == null) { + result.identityServiceConfig_ = identityServiceConfig_; + } else { + result.identityServiceConfig_ = identityServiceConfigBuilder_.build(); + } + result.selfLink_ = selfLink_; + result.zone_ = zone_; + result.endpoint_ = endpoint_; + result.initialClusterVersion_ = initialClusterVersion_; + result.currentMasterVersion_ = currentMasterVersion_; + result.currentNodeVersion_ = currentNodeVersion_; + result.createTime_ = createTime_; + result.status_ = status_; + result.statusMessage_ = statusMessage_; + result.nodeIpv4CidrSize_ = nodeIpv4CidrSize_; + result.servicesIpv4Cidr_ = servicesIpv4Cidr_; + if (((bitField0_ & 0x00000008) != 0)) { + instanceGroupUrls_ = instanceGroupUrls_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.instanceGroupUrls_ = instanceGroupUrls_; + result.currentNodeCount_ = currentNodeCount_; + result.expireTime_ = expireTime_; + result.location_ = location_; + result.enableTpu_ = enableTpu_; + result.tpuIpv4CidrBlock_ = tpuIpv4CidrBlock_; + if (databaseEncryptionBuilder_ == null) { + result.databaseEncryption_ = databaseEncryption_; + } else { + result.databaseEncryption_ = databaseEncryptionBuilder_.build(); + } + if (conditionsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.conditions_ = conditions_; + } else { + result.conditions_ = conditionsBuilder_.build(); + } + if (masterBuilder_ == null) { + result.master_ = master_; + } else { + result.master_ = masterBuilder_.build(); + } + if (autopilotBuilder_ == null) { + result.autopilot_ = autopilot_; + } else { + result.autopilot_ = autopilotBuilder_.build(); + } + result.id_ = id_; + if (((from_bitField0_ & 0x00000020) != 0)) { + if (nodePoolDefaultsBuilder_ == null) { + result.nodePoolDefaults_ = nodePoolDefaults_; + } else { + result.nodePoolDefaults_ = nodePoolDefaultsBuilder_.build(); + } + to_bitField0_ |= 0x00000001; + } + if (loggingConfigBuilder_ == null) { + result.loggingConfig_ = loggingConfig_; + } else { + result.loggingConfig_ = loggingConfigBuilder_.build(); + } + if (monitoringConfigBuilder_ == null) { + result.monitoringConfig_ = monitoringConfig_; + } else { + result.monitoringConfig_ = monitoringConfigBuilder_.build(); + } + if (nodePoolAutoConfigBuilder_ == null) { + result.nodePoolAutoConfig_ = nodePoolAutoConfig_; + } else { + result.nodePoolAutoConfig_ = nodePoolAutoConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + if (protectConfigBuilder_ == null) { + result.protectConfig_ = protectConfig_; + } else { + result.protectConfig_ = protectConfigBuilder_.build(); + } + to_bitField0_ |= 0x00000002; + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.Cluster) { + return mergeFrom((com.google.container.v1beta1.Cluster) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.Cluster other) { + if (other == com.google.container.v1beta1.Cluster.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.getInitialNodeCount() != 0) { + setInitialNodeCount(other.getInitialNodeCount()); + } + if (other.hasNodeConfig()) { + mergeNodeConfig(other.getNodeConfig()); + } + if (other.hasMasterAuth()) { + mergeMasterAuth(other.getMasterAuth()); + } + if (!other.getLoggingService().isEmpty()) { + loggingService_ = other.loggingService_; + onChanged(); + } + if (!other.getMonitoringService().isEmpty()) { + monitoringService_ = other.monitoringService_; + onChanged(); + } + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + onChanged(); + } + if (!other.getClusterIpv4Cidr().isEmpty()) { + clusterIpv4Cidr_ = other.clusterIpv4Cidr_; + onChanged(); + } + if (other.hasAddonsConfig()) { + mergeAddonsConfig(other.getAddonsConfig()); + } + if (!other.getSubnetwork().isEmpty()) { + subnetwork_ = other.subnetwork_; + onChanged(); + } + if (nodePoolsBuilder_ == null) { + if (!other.nodePools_.isEmpty()) { + if (nodePools_.isEmpty()) { + nodePools_ = other.nodePools_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNodePoolsIsMutable(); + nodePools_.addAll(other.nodePools_); + } + onChanged(); + } + } else { + if (!other.nodePools_.isEmpty()) { + if (nodePoolsBuilder_.isEmpty()) { + nodePoolsBuilder_.dispose(); + nodePoolsBuilder_ = null; + nodePools_ = other.nodePools_; + bitField0_ = (bitField0_ & ~0x00000001); + nodePoolsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNodePoolsFieldBuilder() + : null; + } else { + nodePoolsBuilder_.addAllMessages(other.nodePools_); + } + } + } + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + if (other.getEnableKubernetesAlpha() != false) { + setEnableKubernetesAlpha(other.getEnableKubernetesAlpha()); + } + internalGetMutableResourceLabels().mergeFrom(other.internalGetResourceLabels()); + if (!other.getLabelFingerprint().isEmpty()) { + labelFingerprint_ = other.labelFingerprint_; + onChanged(); + } + if (other.hasLegacyAbac()) { + mergeLegacyAbac(other.getLegacyAbac()); + } + if (other.hasNetworkPolicy()) { + mergeNetworkPolicy(other.getNetworkPolicy()); + } + if (other.hasIpAllocationPolicy()) { + mergeIpAllocationPolicy(other.getIpAllocationPolicy()); + } + if (other.hasMasterAuthorizedNetworksConfig()) { + mergeMasterAuthorizedNetworksConfig(other.getMasterAuthorizedNetworksConfig()); + } + if (other.hasMaintenancePolicy()) { + mergeMaintenancePolicy(other.getMaintenancePolicy()); + } + if (other.hasBinaryAuthorization()) { + mergeBinaryAuthorization(other.getBinaryAuthorization()); + } + if (other.hasPodSecurityPolicyConfig()) { + mergePodSecurityPolicyConfig(other.getPodSecurityPolicyConfig()); + } + if (other.hasAutoscaling()) { + mergeAutoscaling(other.getAutoscaling()); + } + if (other.hasNetworkConfig()) { + mergeNetworkConfig(other.getNetworkConfig()); + } + if (other.getPrivateCluster() != false) { + setPrivateCluster(other.getPrivateCluster()); + } + if (!other.getMasterIpv4CidrBlock().isEmpty()) { + masterIpv4CidrBlock_ = other.masterIpv4CidrBlock_; + onChanged(); + } + if (other.hasDefaultMaxPodsConstraint()) { + mergeDefaultMaxPodsConstraint(other.getDefaultMaxPodsConstraint()); + } + if (other.hasResourceUsageExportConfig()) { + mergeResourceUsageExportConfig(other.getResourceUsageExportConfig()); + } + if (other.hasAuthenticatorGroupsConfig()) { + mergeAuthenticatorGroupsConfig(other.getAuthenticatorGroupsConfig()); + } + if (other.hasPrivateClusterConfig()) { + mergePrivateClusterConfig(other.getPrivateClusterConfig()); + } + if (other.hasVerticalPodAutoscaling()) { + mergeVerticalPodAutoscaling(other.getVerticalPodAutoscaling()); + } + if (other.hasShieldedNodes()) { + mergeShieldedNodes(other.getShieldedNodes()); + } + if (other.hasReleaseChannel()) { + mergeReleaseChannel(other.getReleaseChannel()); + } + if (other.hasWorkloadIdentityConfig()) { + mergeWorkloadIdentityConfig(other.getWorkloadIdentityConfig()); + } + if (other.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_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getEndpoint().isEmpty()) { + endpoint_ = other.endpoint_; + onChanged(); + } + if (!other.getInitialClusterVersion().isEmpty()) { + initialClusterVersion_ = other.initialClusterVersion_; + onChanged(); + } + if (!other.getCurrentMasterVersion().isEmpty()) { + currentMasterVersion_ = other.currentMasterVersion_; + onChanged(); + } + if (!other.getCurrentNodeVersion().isEmpty()) { + currentNodeVersion_ = other.currentNodeVersion_; + onChanged(); + } + if (!other.getCreateTime().isEmpty()) { + createTime_ = other.createTime_; + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + onChanged(); + } + if (other.getNodeIpv4CidrSize() != 0) { + setNodeIpv4CidrSize(other.getNodeIpv4CidrSize()); + } + if (!other.getServicesIpv4Cidr().isEmpty()) { + servicesIpv4Cidr_ = other.servicesIpv4Cidr_; + onChanged(); + } + if (!other.instanceGroupUrls_.isEmpty()) { + if (instanceGroupUrls_.isEmpty()) { + instanceGroupUrls_ = other.instanceGroupUrls_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.addAll(other.instanceGroupUrls_); + } + onChanged(); + } + if (other.getCurrentNodeCount() != 0) { + setCurrentNodeCount(other.getCurrentNodeCount()); + } + if (!other.getExpireTime().isEmpty()) { + expireTime_ = other.expireTime_; + onChanged(); + } + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + onChanged(); + } + if (other.getEnableTpu() != false) { + setEnableTpu(other.getEnableTpu()); + } + if (!other.getTpuIpv4CidrBlock().isEmpty()) { + tpuIpv4CidrBlock_ = other.tpuIpv4CidrBlock_; + onChanged(); + } + if (other.hasDatabaseEncryption()) { + mergeDatabaseEncryption(other.getDatabaseEncryption()); + } + if (conditionsBuilder_ == null) { + if (!other.conditions_.isEmpty()) { + if (conditions_.isEmpty()) { + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureConditionsIsMutable(); + conditions_.addAll(other.conditions_); + } + onChanged(); + } + } else { + if (!other.conditions_.isEmpty()) { + if (conditionsBuilder_.isEmpty()) { + conditionsBuilder_.dispose(); + conditionsBuilder_ = null; + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000010); + conditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getConditionsFieldBuilder() + : null; + } else { + conditionsBuilder_.addAllMessages(other.conditions_); + } + } + } + if (other.hasMaster()) { + mergeMaster(other.getMaster()); + } + if (other.hasAutopilot()) { + mergeAutopilot(other.getAutopilot()); + } + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (other.hasNodePoolDefaults()) { + mergeNodePoolDefaults(other.getNodePoolDefaults()); + } + if (other.hasLoggingConfig()) { + mergeLoggingConfig(other.getLoggingConfig()); + } + if (other.hasMonitoringConfig()) { + mergeMonitoringConfig(other.getMonitoringConfig()); + } + if (other.hasNodePoolAutoConfig()) { + mergeNodePoolAutoConfig(other.getNodePoolAutoConfig()); + } + if (other.hasProtectConfig()) { + mergeProtectConfig(other.getProtectConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + initialNodeCount_ = input.readInt32(); + + break; + } // case 24 + case 34: + { + input.readMessage(getNodeConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + input.readMessage(getMasterAuthFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 50: + { + loggingService_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: + { + monitoringService_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + network_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: + { + clusterIpv4Cidr_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 82: + { + input.readMessage(getAddonsConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 82 + case 90: + { + subnetwork_ = input.readStringRequireUtf8(); + + 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(); + + break; + } // case 112 + case 122: + { + com.google.protobuf.MapEntry resourceLabels__ = + input.readMessage( + ResourceLabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableResourceLabels() + .getMutableMap() + .put(resourceLabels__.getKey(), resourceLabels__.getValue()); + break; + } // case 122 + case 130: + { + labelFingerprint_ = input.readStringRequireUtf8(); + + break; + } // case 130 + case 146: + { + input.readMessage(getLegacyAbacFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 146 + case 154: + { + input.readMessage(getNetworkPolicyFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 154 + case 162: + { + input.readMessage( + getIpAllocationPolicyFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 162 + case 178: + { + input.readMessage( + getMasterAuthorizedNetworksConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 178 + case 186: + { + input.readMessage( + getMaintenancePolicyFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 186 + case 194: + { + input.readMessage( + getBinaryAuthorizationFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 194 + case 202: + { + input.readMessage( + getPodSecurityPolicyConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 202 + case 210: + { + input.readMessage(getAutoscalingFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 210 + case 218: + { + input.readMessage(getNetworkConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 218 + case 224: + { + privateCluster_ = input.readBool(); + + break; + } // case 224 + case 234: + { + masterIpv4CidrBlock_ = input.readStringRequireUtf8(); + + break; + } // case 234 + case 242: + { + input.readMessage( + getDefaultMaxPodsConstraintFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 242 + case 266: + { + input.readMessage( + getResourceUsageExportConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 266 + case 274: + { + input.readMessage( + getAuthenticatorGroupsConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 274 + case 298: + { + input.readMessage( + getPrivateClusterConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 298 + case 306: + { + input.readMessage( + getDatabaseEncryptionFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 306 + case 314: + { + input.readMessage( + getVerticalPodAutoscalingFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 314 + case 322: + { + input.readMessage(getShieldedNodesFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 322 + case 330: + { + input.readMessage(getReleaseChannelFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 330 + case 346: + { + input.readMessage( + getWorkloadIdentityConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 346 + case 362: + { + input.readMessage( + getCostManagementConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 362 + case 370: + { + input.readMessage( + getClusterTelemetryFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 370 + case 378: + { + input.readMessage(getTpuConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 378 + case 394: + { + input.readMessage( + getNotificationConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 394 + case 402: + { + input.readMessage( + getConfidentialNodesFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 402 + case 418: + { + input.readMessage( + getWorkloadCertificatesFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 418 + case 426: + { + input.readMessage( + getWorkloadAltsConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 426 + case 434: + { + input.readMessage( + getIdentityServiceConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 434 + case 538: + { + input.readMessage( + getMeshCertificatesFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 538 + case 802: + { + selfLink_ = input.readStringRequireUtf8(); + + break; + } // case 802 + case 810: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 810 + case 818: + { + endpoint_ = input.readStringRequireUtf8(); + + break; + } // case 818 + case 826: + { + initialClusterVersion_ = input.readStringRequireUtf8(); + + break; + } // case 826 + case 834: + { + currentMasterVersion_ = input.readStringRequireUtf8(); + + break; + } // case 834 + case 842: + { + currentNodeVersion_ = input.readStringRequireUtf8(); + + break; + } // case 842 + case 850: + { + createTime_ = input.readStringRequireUtf8(); + + break; + } // case 850 + case 856: + { + status_ = input.readEnum(); + + break; + } // case 856 + case 866: + { + statusMessage_ = input.readStringRequireUtf8(); + + break; + } // case 866 + case 872: + { + nodeIpv4CidrSize_ = input.readInt32(); + + break; + } // case 872 + case 882: + { + servicesIpv4Cidr_ = input.readStringRequireUtf8(); + + break; + } // case 882 + case 890: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.add(s); + break; + } // case 890 + case 896: + { + currentNodeCount_ = input.readInt32(); + + break; + } // case 896 + case 906: + { + expireTime_ = input.readStringRequireUtf8(); + + break; + } // case 906 + case 914: + { + location_ = input.readStringRequireUtf8(); + + break; + } // case 914 + case 920: + { + enableTpu_ = input.readBool(); + + break; + } // case 920 + case 930: + { + tpuIpv4CidrBlock_ = input.readStringRequireUtf8(); + + 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); + + break; + } // case 994 + case 1026: + { + input.readMessage(getAutopilotFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 1026 + case 1034: + { + id_ = input.readStringRequireUtf8(); + + break; + } // case 1034 + case 1050: + { + input.readMessage( + getNodePoolDefaultsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 1050 + case 1058: + { + input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 1058 + case 1066: + { + input.readMessage( + getMonitoringConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 1066 + case 1090: + { + input.readMessage( + getNodePoolAutoConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 1090 + case 1098: + { + input.readMessage(getProtectConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 1098 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // 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 this cluster. The name must be unique within this project
+     * and location (e.g. zone or region), and can be up to 40 characters with
+     * the following restrictions:
+     * * Lowercase letters, numbers, and hyphens only.
+     * * Must start with a letter.
+     * * Must end with a number or a letter.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of this cluster. The name must be unique within this project
+     * and location (e.g. zone or region), and can be up to 40 characters with
+     * the following restrictions:
+     * * Lowercase letters, numbers, and hyphens only.
+     * * Must start with a letter.
+     * * Must end with a number or a letter.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of this cluster. The name must be unique within this project
+     * and location (e.g. zone or region), and can be up to 40 characters with
+     * the following restrictions:
+     * * Lowercase letters, numbers, and hyphens only.
+     * * Must start with a letter.
+     * * Must end with a number or a letter.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of this cluster. The name must be unique within this project
+     * and location (e.g. zone or region), and can be up to 40 characters with
+     * the following restrictions:
+     * * Lowercase letters, numbers, and hyphens only.
+     * * Must start with a letter.
+     * * Must end with a number or a letter.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of this cluster. The name must be unique within this project
+     * and location (e.g. zone or region), and can be up to 40 characters with
+     * the following restrictions:
+     * * Lowercase letters, numbers, and hyphens only.
+     * * Must start with a letter.
+     * * Must end with a number or a letter.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * An optional description of this cluster.
+     * 
+ * + * string description = 2; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * An optional description of this cluster.
+     * 
+ * + * string description = 2; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * An optional description of this cluster.
+     * 
+ * + * string description = 2; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * An optional description of this cluster.
+     * 
+ * + * string description = 2; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * An optional description of this cluster.
+     * 
+ * + * string description = 2; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private int initialNodeCount_; + /** + * + * + *
+     * The number of nodes to create in this cluster. You must ensure that your
+     * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
+     * is sufficient for this number of instances. You must also have available
+     * firewall and routes quota.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "node_config") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * This field is deprecated, use node_pool.initial_node_count instead.
+     * 
+ * + * int32 initial_node_count = 3 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Cluster.initial_node_count is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1578 + * @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=1578 + * @param value The initialNodeCount to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setInitialNodeCount(int value) { + + initialNodeCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of nodes to create in this cluster. You must ensure that your
+     * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
+     * is sufficient for this number of instances. You must also have available
+     * firewall and routes quota.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "node_config") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * This field is deprecated, use node_pool.initial_node_count instead.
+     * 
+ * + * int32 initial_node_count = 3 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Cluster.initial_node_count is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1578 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearInitialNodeCount() { + + initialNodeCount_ = 0; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NodeConfig nodeConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeConfig, + com.google.container.v1beta1.NodeConfig.Builder, + com.google.container.v1beta1.NodeConfigOrBuilder> + nodeConfigBuilder_; + /** + * + * + *
+     * Parameters used in creating the cluster's nodes.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool. (For configuration of each node pool, see
+     * `node_pool.config`)
+     * If unspecified, the defaults are used.
+     * This field is deprecated, use node_pool.config instead.
+     * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Cluster.node_config is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1591 + * @return Whether the nodeConfig field is set. + */ + @java.lang.Deprecated + public boolean hasNodeConfig() { + return nodeConfigBuilder_ != null || nodeConfig_ != null; + } + /** + * + * + *
+     * Parameters used in creating the cluster's nodes.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool. (For configuration of each node pool, see
+     * `node_pool.config`)
+     * If unspecified, the defaults are used.
+     * This field is deprecated, use node_pool.config instead.
+     * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Cluster.node_config is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1591 + * @return The nodeConfig. + */ + @java.lang.Deprecated + public com.google.container.v1beta1.NodeConfig getNodeConfig() { + if (nodeConfigBuilder_ == null) { + return nodeConfig_ == null + ? com.google.container.v1beta1.NodeConfig.getDefaultInstance() + : nodeConfig_; + } else { + return nodeConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Parameters used in creating the cluster's nodes.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool. (For configuration of each node pool, see
+     * `node_pool.config`)
+     * If unspecified, the defaults are used.
+     * This field is deprecated, use node_pool.config instead.
+     * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; + */ + @java.lang.Deprecated + public Builder setNodeConfig(com.google.container.v1beta1.NodeConfig value) { + if (nodeConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodeConfig_ = value; + onChanged(); + } else { + nodeConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Parameters used in creating the cluster's nodes.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool. (For configuration of each node pool, see
+     * `node_pool.config`)
+     * If unspecified, the defaults are used.
+     * This field is deprecated, use node_pool.config instead.
+     * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; + */ + @java.lang.Deprecated + public Builder setNodeConfig(com.google.container.v1beta1.NodeConfig.Builder builderForValue) { + if (nodeConfigBuilder_ == null) { + nodeConfig_ = builderForValue.build(); + onChanged(); + } else { + nodeConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Parameters used in creating the cluster's nodes.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool. (For configuration of each node pool, see
+     * `node_pool.config`)
+     * If unspecified, the defaults are used.
+     * This field is deprecated, use node_pool.config instead.
+     * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; + */ + @java.lang.Deprecated + public Builder mergeNodeConfig(com.google.container.v1beta1.NodeConfig value) { + if (nodeConfigBuilder_ == null) { + if (nodeConfig_ != null) { + nodeConfig_ = + com.google.container.v1beta1.NodeConfig.newBuilder(nodeConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + nodeConfig_ = value; + } + onChanged(); + } else { + nodeConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Parameters used in creating the cluster's nodes.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool. (For configuration of each node pool, see
+     * `node_pool.config`)
+     * If unspecified, the defaults are used.
+     * This field is deprecated, use node_pool.config instead.
+     * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; + */ + @java.lang.Deprecated + public Builder clearNodeConfig() { + if (nodeConfigBuilder_ == null) { + nodeConfig_ = null; + onChanged(); + } else { + nodeConfig_ = null; + nodeConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Parameters used in creating the cluster's nodes.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool. (For configuration of each node pool, see
+     * `node_pool.config`)
+     * If unspecified, the defaults are used.
+     * This field is deprecated, use node_pool.config instead.
+     * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; + */ + @java.lang.Deprecated + public com.google.container.v1beta1.NodeConfig.Builder getNodeConfigBuilder() { + + onChanged(); + return getNodeConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Parameters used in creating the cluster's nodes.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool. (For configuration of each node pool, see
+     * `node_pool.config`)
+     * If unspecified, the defaults are used.
+     * This field is deprecated, use node_pool.config instead.
+     * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; + */ + @java.lang.Deprecated + public com.google.container.v1beta1.NodeConfigOrBuilder getNodeConfigOrBuilder() { + if (nodeConfigBuilder_ != null) { + return nodeConfigBuilder_.getMessageOrBuilder(); + } else { + return nodeConfig_ == null + ? com.google.container.v1beta1.NodeConfig.getDefaultInstance() + : nodeConfig_; + } + } + /** + * + * + *
+     * Parameters used in creating the cluster's nodes.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool. (For configuration of each node pool, see
+     * `node_pool.config`)
+     * If unspecified, the defaults are used.
+     * This field is deprecated, use node_pool.config instead.
+     * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeConfig, + com.google.container.v1beta1.NodeConfig.Builder, + com.google.container.v1beta1.NodeConfigOrBuilder> + getNodeConfigFieldBuilder() { + if (nodeConfigBuilder_ == null) { + nodeConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeConfig, + com.google.container.v1beta1.NodeConfig.Builder, + com.google.container.v1beta1.NodeConfigOrBuilder>( + getNodeConfig(), getParentForChildren(), isClean()); + nodeConfig_ = null; + } + return nodeConfigBuilder_; + } + + private com.google.container.v1beta1.MasterAuth masterAuth_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MasterAuth, + com.google.container.v1beta1.MasterAuth.Builder, + com.google.container.v1beta1.MasterAuthOrBuilder> + masterAuthBuilder_; + /** + * + * + *
+     * The authentication information for accessing the master endpoint.
+     * If unspecified, the defaults are used:
+     * For clusters before v1.12, if master_auth is unspecified, `username` will
+     * be set to "admin", a random password will be generated, and a client
+     * certificate will be issued.
+     * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + * + * @return Whether the masterAuth field is set. + */ + public boolean hasMasterAuth() { + return masterAuthBuilder_ != null || masterAuth_ != null; + } + /** + * + * + *
+     * The authentication information for accessing the master endpoint.
+     * If unspecified, the defaults are used:
+     * For clusters before v1.12, if master_auth is unspecified, `username` will
+     * be set to "admin", a random password will be generated, and a client
+     * certificate will be issued.
+     * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + * + * @return The masterAuth. + */ + public com.google.container.v1beta1.MasterAuth getMasterAuth() { + if (masterAuthBuilder_ == null) { + return masterAuth_ == null + ? com.google.container.v1beta1.MasterAuth.getDefaultInstance() + : masterAuth_; + } else { + return masterAuthBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The authentication information for accessing the master endpoint.
+     * If unspecified, the defaults are used:
+     * For clusters before v1.12, if master_auth is unspecified, `username` will
+     * be set to "admin", a random password will be generated, and a client
+     * certificate will be issued.
+     * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + */ + public Builder setMasterAuth(com.google.container.v1beta1.MasterAuth value) { + if (masterAuthBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + masterAuth_ = value; + onChanged(); + } else { + masterAuthBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The authentication information for accessing the master endpoint.
+     * If unspecified, the defaults are used:
+     * For clusters before v1.12, if master_auth is unspecified, `username` will
+     * be set to "admin", a random password will be generated, and a client
+     * certificate will be issued.
+     * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + */ + public Builder setMasterAuth(com.google.container.v1beta1.MasterAuth.Builder builderForValue) { + if (masterAuthBuilder_ == null) { + masterAuth_ = builderForValue.build(); + onChanged(); + } else { + masterAuthBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The authentication information for accessing the master endpoint.
+     * If unspecified, the defaults are used:
+     * For clusters before v1.12, if master_auth is unspecified, `username` will
+     * be set to "admin", a random password will be generated, and a client
+     * certificate will be issued.
+     * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + */ + public Builder mergeMasterAuth(com.google.container.v1beta1.MasterAuth value) { + if (masterAuthBuilder_ == null) { + if (masterAuth_ != null) { + masterAuth_ = + com.google.container.v1beta1.MasterAuth.newBuilder(masterAuth_) + .mergeFrom(value) + .buildPartial(); + } else { + masterAuth_ = value; + } + onChanged(); + } else { + masterAuthBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The authentication information for accessing the master endpoint.
+     * If unspecified, the defaults are used:
+     * For clusters before v1.12, if master_auth is unspecified, `username` will
+     * be set to "admin", a random password will be generated, and a client
+     * certificate will be issued.
+     * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + */ + public Builder clearMasterAuth() { + if (masterAuthBuilder_ == null) { + masterAuth_ = null; + onChanged(); + } else { + masterAuth_ = null; + masterAuthBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The authentication information for accessing the master endpoint.
+     * If unspecified, the defaults are used:
+     * For clusters before v1.12, if master_auth is unspecified, `username` will
+     * be set to "admin", a random password will be generated, and a client
+     * certificate will be issued.
+     * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + */ + public com.google.container.v1beta1.MasterAuth.Builder getMasterAuthBuilder() { + + onChanged(); + return getMasterAuthFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The authentication information for accessing the master endpoint.
+     * If unspecified, the defaults are used:
+     * For clusters before v1.12, if master_auth is unspecified, `username` will
+     * be set to "admin", a random password will be generated, and a client
+     * certificate will be issued.
+     * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + */ + public com.google.container.v1beta1.MasterAuthOrBuilder getMasterAuthOrBuilder() { + if (masterAuthBuilder_ != null) { + return masterAuthBuilder_.getMessageOrBuilder(); + } else { + return masterAuth_ == null + ? com.google.container.v1beta1.MasterAuth.getDefaultInstance() + : masterAuth_; + } + } + /** + * + * + *
+     * The authentication information for accessing the master endpoint.
+     * If unspecified, the defaults are used:
+     * For clusters before v1.12, if master_auth is unspecified, `username` will
+     * be set to "admin", a random password will be generated, and a client
+     * certificate will be issued.
+     * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MasterAuth, + com.google.container.v1beta1.MasterAuth.Builder, + com.google.container.v1beta1.MasterAuthOrBuilder> + getMasterAuthFieldBuilder() { + if (masterAuthBuilder_ == null) { + masterAuthBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MasterAuth, + com.google.container.v1beta1.MasterAuth.Builder, + com.google.container.v1beta1.MasterAuthOrBuilder>( + getMasterAuth(), getParentForChildren(), isClean()); + masterAuth_ = null; + } + return masterAuthBuilder_; + } + + private java.lang.Object loggingService_ = ""; + /** + * + * + *
+     * The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string logging_service = 6; + * + * @return The loggingService. + */ + public java.lang.String getLoggingService() { + java.lang.Object ref = loggingService_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + loggingService_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string logging_service = 6; + * + * @return The bytes for loggingService. + */ + public com.google.protobuf.ByteString getLoggingServiceBytes() { + java.lang.Object ref = loggingService_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + loggingService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string logging_service = 6; + * + * @param value The loggingService to set. + * @return This builder for chaining. + */ + public Builder setLoggingService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + loggingService_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string logging_service = 6; + * + * @return This builder for chaining. + */ + public Builder clearLoggingService() { + + loggingService_ = getDefaultInstance().getLoggingService(); + onChanged(); + return this; + } + /** + * + * + *
+     * The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string logging_service = 6; + * + * @param value The bytes for loggingService to set. + * @return This builder for chaining. + */ + public Builder setLoggingServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + loggingService_ = value; + onChanged(); + return this; + } + + private java.lang.Object monitoringService_ = ""; + /** + * + * + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string monitoring_service = 7; + * + * @return The monitoringService. + */ + public java.lang.String getMonitoringService() { + java.lang.Object ref = monitoringService_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + monitoringService_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string monitoring_service = 7; + * + * @return The bytes for monitoringService. + */ + public com.google.protobuf.ByteString getMonitoringServiceBytes() { + java.lang.Object ref = monitoringService_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + monitoringService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string monitoring_service = 7; + * + * @param value The monitoringService to set. + * @return This builder for chaining. + */ + public Builder setMonitoringService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + monitoringService_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string monitoring_service = 7; + * + * @return This builder for chaining. + */ + public Builder clearMonitoringService() { + + monitoringService_ = getDefaultInstance().getMonitoringService(); + onChanged(); + return this; + } + /** + * + * + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string monitoring_service = 7; + * + * @param value The bytes for monitoringService to set. + * @return This builder for chaining. + */ + public Builder setMonitoringServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + monitoringService_ = value; + onChanged(); + return this; + } + + private java.lang.Object network_ = ""; + /** + * + * + *
+     * The name of the Google Compute Engine
+     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the cluster is connected. If left unspecified, the `default`
+     * network will be used. On output this shows the network ID instead of the
+     * name.
+     * 
+ * + * string network = 8; + * + * @return The network. + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the Google Compute Engine
+     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the cluster is connected. If left unspecified, the `default`
+     * network will be used. On output this shows the network ID instead of the
+     * name.
+     * 
+ * + * string network = 8; + * + * @return The bytes for network. + */ + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the Google Compute Engine
+     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the cluster is connected. If left unspecified, the `default`
+     * network will be used. On output this shows the network ID instead of the
+     * name.
+     * 
+ * + * string network = 8; + * + * @param value The network to set. + * @return This builder for chaining. + */ + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + network_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the Google Compute Engine
+     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the cluster is connected. If left unspecified, the `default`
+     * network will be used. On output this shows the network ID instead of the
+     * name.
+     * 
+ * + * string network = 8; + * + * @return This builder for chaining. + */ + public Builder clearNetwork() { + + network_ = getDefaultInstance().getNetwork(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the Google Compute Engine
+     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the cluster is connected. If left unspecified, the `default`
+     * network will be used. On output this shows the network ID instead of the
+     * name.
+     * 
+ * + * string network = 8; + * + * @param value The bytes for network to set. + * @return This builder for chaining. + */ + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + network_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterIpv4Cidr_ = ""; + /** + * + * + *
+     * The IP address range of the container pods in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`). Leave blank to have
+     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+     * 
+ * + * string cluster_ipv4_cidr = 9; + * + * @return The clusterIpv4Cidr. + */ + public java.lang.String getClusterIpv4Cidr() { + java.lang.Object ref = clusterIpv4Cidr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterIpv4Cidr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The IP address range of the container pods in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`). Leave blank to have
+     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+     * 
+ * + * string cluster_ipv4_cidr = 9; + * + * @return The bytes for clusterIpv4Cidr. + */ + public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { + java.lang.Object ref = clusterIpv4Cidr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The IP address range of the container pods in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`). Leave blank to have
+     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+     * 
+ * + * string cluster_ipv4_cidr = 9; + * + * @param value The clusterIpv4Cidr to set. + * @return This builder for chaining. + */ + public Builder setClusterIpv4Cidr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterIpv4Cidr_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address range of the container pods in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`). Leave blank to have
+     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+     * 
+ * + * string cluster_ipv4_cidr = 9; + * + * @return This builder for chaining. + */ + public Builder clearClusterIpv4Cidr() { + + clusterIpv4Cidr_ = getDefaultInstance().getClusterIpv4Cidr(); + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address range of the container pods in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`). Leave blank to have
+     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+     * 
+ * + * string cluster_ipv4_cidr = 9; + * + * @param value The bytes for clusterIpv4Cidr to set. + * @return This builder for chaining. + */ + public Builder setClusterIpv4CidrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterIpv4Cidr_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.AddonsConfig addonsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AddonsConfig, + com.google.container.v1beta1.AddonsConfig.Builder, + com.google.container.v1beta1.AddonsConfigOrBuilder> + addonsConfigBuilder_; + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + * + * @return Whether the addonsConfig field is set. + */ + public boolean hasAddonsConfig() { + return addonsConfigBuilder_ != null || addonsConfig_ != null; + } + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + * + * @return The addonsConfig. + */ + public com.google.container.v1beta1.AddonsConfig getAddonsConfig() { + if (addonsConfigBuilder_ == null) { + return addonsConfig_ == null + ? com.google.container.v1beta1.AddonsConfig.getDefaultInstance() + : addonsConfig_; + } else { + return addonsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + */ + public Builder setAddonsConfig(com.google.container.v1beta1.AddonsConfig value) { + if (addonsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + addonsConfig_ = value; + onChanged(); + } else { + addonsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + */ + public Builder setAddonsConfig( + com.google.container.v1beta1.AddonsConfig.Builder builderForValue) { + if (addonsConfigBuilder_ == null) { + addonsConfig_ = builderForValue.build(); + onChanged(); + } else { + addonsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + */ + public Builder mergeAddonsConfig(com.google.container.v1beta1.AddonsConfig value) { + if (addonsConfigBuilder_ == null) { + if (addonsConfig_ != null) { + addonsConfig_ = + com.google.container.v1beta1.AddonsConfig.newBuilder(addonsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + addonsConfig_ = value; + } + onChanged(); + } else { + addonsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + */ + public Builder clearAddonsConfig() { + if (addonsConfigBuilder_ == null) { + addonsConfig_ = null; + onChanged(); + } else { + addonsConfig_ = null; + addonsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + */ + public com.google.container.v1beta1.AddonsConfig.Builder getAddonsConfigBuilder() { + + onChanged(); + return getAddonsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + */ + public com.google.container.v1beta1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() { + if (addonsConfigBuilder_ != null) { + return addonsConfigBuilder_.getMessageOrBuilder(); + } else { + return addonsConfig_ == null + ? com.google.container.v1beta1.AddonsConfig.getDefaultInstance() + : addonsConfig_; + } + } + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AddonsConfig, + com.google.container.v1beta1.AddonsConfig.Builder, + com.google.container.v1beta1.AddonsConfigOrBuilder> + getAddonsConfigFieldBuilder() { + if (addonsConfigBuilder_ == null) { + addonsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AddonsConfig, + com.google.container.v1beta1.AddonsConfig.Builder, + com.google.container.v1beta1.AddonsConfigOrBuilder>( + getAddonsConfig(), getParentForChildren(), isClean()); + addonsConfig_ = null; + } + return addonsConfigBuilder_; + } + + private java.lang.Object subnetwork_ = ""; + /** + * + * + *
+     * The name of the Google Compute Engine
+     * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
+     * the cluster is connected. On output this shows the subnetwork ID instead of
+     * the name.
+     * 
+ * + * string subnetwork = 11; + * + * @return The subnetwork. + */ + public java.lang.String getSubnetwork() { + java.lang.Object ref = subnetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the Google Compute Engine
+     * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
+     * the cluster is connected. On output this shows the subnetwork ID instead of
+     * the name.
+     * 
+ * + * string subnetwork = 11; + * + * @return The bytes for subnetwork. + */ + public com.google.protobuf.ByteString getSubnetworkBytes() { + java.lang.Object ref = subnetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the Google Compute Engine
+     * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
+     * the cluster is connected. On output this shows the subnetwork ID instead of
+     * the name.
+     * 
+ * + * string subnetwork = 11; + * + * @param value The subnetwork to set. + * @return This builder for chaining. + */ + public Builder setSubnetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subnetwork_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the Google Compute Engine
+     * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
+     * the cluster is connected. On output this shows the subnetwork ID instead of
+     * the name.
+     * 
+ * + * string subnetwork = 11; + * + * @return This builder for chaining. + */ + public Builder clearSubnetwork() { + + subnetwork_ = getDefaultInstance().getSubnetwork(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the Google Compute Engine
+     * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
+     * the cluster is connected. On output this shows the subnetwork ID instead of
+     * the name.
+     * 
+ * + * string subnetwork = 11; + * + * @param value The bytes for subnetwork to set. + * @return This builder for chaining. + */ + public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subnetwork_ = value; + onChanged(); + return this; + } + + private java.util.List nodePools_ = + java.util.Collections.emptyList(); + + private void ensureNodePoolsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + nodePools_ = new java.util.ArrayList(nodePools_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.NodePool, + com.google.container.v1beta1.NodePool.Builder, + com.google.container.v1beta1.NodePoolOrBuilder> + nodePoolsBuilder_; + + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public java.util.List getNodePoolsList() { + if (nodePoolsBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodePools_); + } else { + return nodePoolsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public int getNodePoolsCount() { + if (nodePoolsBuilder_ == null) { + return nodePools_.size(); + } else { + return nodePoolsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public com.google.container.v1beta1.NodePool getNodePools(int index) { + if (nodePoolsBuilder_ == null) { + return nodePools_.get(index); + } else { + return nodePoolsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public Builder setNodePools(int index, com.google.container.v1beta1.NodePool value) { + if (nodePoolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodePoolsIsMutable(); + nodePools_.set(index, value); + onChanged(); + } else { + nodePoolsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public Builder setNodePools( + int index, com.google.container.v1beta1.NodePool.Builder builderForValue) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + nodePools_.set(index, builderForValue.build()); + onChanged(); + } else { + nodePoolsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public Builder addNodePools(com.google.container.v1beta1.NodePool value) { + if (nodePoolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodePoolsIsMutable(); + nodePools_.add(value); + onChanged(); + } else { + nodePoolsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public Builder addNodePools(int index, com.google.container.v1beta1.NodePool value) { + if (nodePoolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodePoolsIsMutable(); + nodePools_.add(index, value); + onChanged(); + } else { + nodePoolsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public Builder addNodePools(com.google.container.v1beta1.NodePool.Builder builderForValue) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + nodePools_.add(builderForValue.build()); + onChanged(); + } else { + nodePoolsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public Builder addNodePools( + int index, com.google.container.v1beta1.NodePool.Builder builderForValue) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + nodePools_.add(index, builderForValue.build()); + onChanged(); + } else { + nodePoolsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public Builder addAllNodePools( + java.lang.Iterable values) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodePools_); + onChanged(); + } else { + nodePoolsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public Builder clearNodePools() { + if (nodePoolsBuilder_ == null) { + nodePools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + nodePoolsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public Builder removeNodePools(int index) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + nodePools_.remove(index); + onChanged(); + } else { + nodePoolsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public com.google.container.v1beta1.NodePool.Builder getNodePoolsBuilder(int index) { + return getNodePoolsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public com.google.container.v1beta1.NodePoolOrBuilder getNodePoolsOrBuilder(int index) { + if (nodePoolsBuilder_ == null) { + return nodePools_.get(index); + } else { + return nodePoolsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public java.util.List + getNodePoolsOrBuilderList() { + if (nodePoolsBuilder_ != null) { + return nodePoolsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodePools_); + } + } + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public com.google.container.v1beta1.NodePool.Builder addNodePoolsBuilder() { + return getNodePoolsFieldBuilder() + .addBuilder(com.google.container.v1beta1.NodePool.getDefaultInstance()); + } + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public com.google.container.v1beta1.NodePool.Builder addNodePoolsBuilder(int index) { + return getNodePoolsFieldBuilder() + .addBuilder(index, com.google.container.v1beta1.NodePool.getDefaultInstance()); + } + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public java.util.List getNodePoolsBuilderList() { + return getNodePoolsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.NodePool, + com.google.container.v1beta1.NodePool.Builder, + com.google.container.v1beta1.NodePoolOrBuilder> + getNodePoolsFieldBuilder() { + if (nodePoolsBuilder_ == null) { + nodePoolsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.NodePool, + com.google.container.v1beta1.NodePool.Builder, + com.google.container.v1beta1.NodePoolOrBuilder>( + nodePools_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + nodePools_ = null; + } + return nodePoolsBuilder_; + } + + private com.google.protobuf.LazyStringList locations_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureLocationsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + locations_ = new com.google.protobuf.LazyStringArrayList(locations_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This field provides a default value if
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * are not specified during node pool creation.
+     * Warning: changing cluster locations will update the
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * of all node pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @return A list containing the locations. + */ + public com.google.protobuf.ProtocolStringList getLocationsList() { + return locations_.getUnmodifiableView(); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This field provides a default value if
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * are not specified during node pool creation.
+     * Warning: changing cluster locations will update the
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * of all node pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @return The count of locations. + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This field provides a default value if
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * are not specified during node pool creation.
+     * Warning: changing cluster locations will update the
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * of all node pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This field provides a default value if
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * are not specified during node pool creation.
+     * Warning: changing cluster locations will update the
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * of all node pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + public com.google.protobuf.ByteString getLocationsBytes(int index) { + return locations_.getByteString(index); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This field provides a default value if
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * are not specified during node pool creation.
+     * Warning: changing cluster locations will update the
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * of all node pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param index The index to set the value at. + * @param value The locations to set. + * @return This builder for chaining. + */ + public Builder setLocations(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This field provides a default value if
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * are not specified during node pool creation.
+     * Warning: changing cluster locations will update the
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * of all node pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param value The locations to add. + * @return This builder for chaining. + */ + public Builder addLocations(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This field provides a default value if
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * are not specified during node pool creation.
+     * Warning: changing cluster locations will update the
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * of all node pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param values The locations to add. + * @return This builder for chaining. + */ + public Builder addAllLocations(java.lang.Iterable values) { + ensureLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This field provides a default value if
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * are not specified during node pool creation.
+     * Warning: changing cluster locations will update the
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * of all node pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @return This builder for chaining. + */ + public Builder clearLocations() { + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This field provides a default value if
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * are not specified during node pool creation.
+     * Warning: changing cluster locations will update the
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * of all node pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param value The bytes of the locations to add. + * @return This builder for chaining. + */ + public Builder addLocationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + return this; + } + + private boolean enableKubernetesAlpha_; + /** + * + * + *
+     * Kubernetes alpha features are enabled on this cluster. This includes alpha
+     * API groups (e.g. v1beta1) and features that may not be production ready in
+     * the kubernetes version of the master and nodes.
+     * The cluster has no SLA for uptime and master/node upgrades are disabled.
+     * Alpha enabled clusters are automatically deleted thirty days after
+     * creation.
+     * 
+ * + * bool enable_kubernetes_alpha = 14; + * + * @return The enableKubernetesAlpha. + */ + @java.lang.Override + public boolean getEnableKubernetesAlpha() { + return enableKubernetesAlpha_; + } + /** + * + * + *
+     * Kubernetes alpha features are enabled on this cluster. This includes alpha
+     * API groups (e.g. v1beta1) and features that may not be production ready in
+     * the kubernetes version of the master and nodes.
+     * The cluster has no SLA for uptime and master/node upgrades are disabled.
+     * Alpha enabled clusters are automatically deleted thirty days after
+     * creation.
+     * 
+ * + * bool enable_kubernetes_alpha = 14; + * + * @param value The enableKubernetesAlpha to set. + * @return This builder for chaining. + */ + public Builder setEnableKubernetesAlpha(boolean value) { + + enableKubernetesAlpha_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Kubernetes alpha features are enabled on this cluster. This includes alpha
+     * API groups (e.g. v1beta1) and features that may not be production ready in
+     * the kubernetes version of the master and nodes.
+     * The cluster has no SLA for uptime and master/node upgrades are disabled.
+     * Alpha enabled clusters are automatically deleted thirty days after
+     * creation.
+     * 
+ * + * bool enable_kubernetes_alpha = 14; + * + * @return This builder for chaining. + */ + public Builder clearEnableKubernetesAlpha() { + + enableKubernetesAlpha_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.MapField resourceLabels_; + + private com.google.protobuf.MapField + internalGetResourceLabels() { + if (resourceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + return resourceLabels_; + } + + private com.google.protobuf.MapField + internalGetMutableResourceLabels() { + onChanged(); + ; + if (resourceLabels_ == null) { + resourceLabels_ = + com.google.protobuf.MapField.newMapField(ResourceLabelsDefaultEntryHolder.defaultEntry); + } + if (!resourceLabels_.isMutable()) { + resourceLabels_ = resourceLabels_.copy(); + } + return resourceLabels_; + } + + public int getResourceLabelsCount() { + return internalGetResourceLabels().getMap().size(); + } + /** + * + * + *
+     * The resource labels for the cluster to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * map<string, string> resource_labels = 15; + */ + @java.lang.Override + public boolean containsResourceLabels(java.lang.String key) { + if (key == null) { + throw new 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 java.lang.String getResourceLabelsOrDefault( + java.lang.String key, 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() { + 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() { + 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); + return this; + } + /** + * + * + *
+     * The resource labels for the cluster to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * map<string, string> resource_labels = 15; + */ + public Builder putAllResourceLabels(java.util.Map values) { + internalGetMutableResourceLabels().getMutableMap().putAll(values); + return this; + } + + private java.lang.Object labelFingerprint_ = ""; + /** + * + * + *
+     * The fingerprint of the set of labels for this cluster.
+     * 
+ * + * string label_fingerprint = 16; + * + * @return The labelFingerprint. + */ + public java.lang.String getLabelFingerprint() { + java.lang.Object ref = labelFingerprint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + labelFingerprint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The fingerprint of the set of labels for this cluster.
+     * 
+ * + * string label_fingerprint = 16; + * + * @return The bytes for labelFingerprint. + */ + public com.google.protobuf.ByteString getLabelFingerprintBytes() { + java.lang.Object ref = labelFingerprint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + labelFingerprint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The fingerprint of the set of labels for this cluster.
+     * 
+ * + * string label_fingerprint = 16; + * + * @param value The labelFingerprint to set. + * @return This builder for chaining. + */ + public Builder setLabelFingerprint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + labelFingerprint_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The fingerprint of the set of labels for this cluster.
+     * 
+ * + * string label_fingerprint = 16; + * + * @return This builder for chaining. + */ + public Builder clearLabelFingerprint() { + + labelFingerprint_ = getDefaultInstance().getLabelFingerprint(); + onChanged(); + return this; + } + /** + * + * + *
+     * The fingerprint of the set of labels for this cluster.
+     * 
+ * + * string label_fingerprint = 16; + * + * @param value The bytes for labelFingerprint to set. + * @return This builder for chaining. + */ + public Builder setLabelFingerprintBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + labelFingerprint_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.LegacyAbac legacyAbac_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.LegacyAbac, + com.google.container.v1beta1.LegacyAbac.Builder, + com.google.container.v1beta1.LegacyAbacOrBuilder> + legacyAbacBuilder_; + /** + * + * + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + * + * @return Whether the legacyAbac field is set. + */ + public boolean hasLegacyAbac() { + return legacyAbacBuilder_ != null || legacyAbac_ != null; + } + /** + * + * + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + * + * @return The legacyAbac. + */ + public com.google.container.v1beta1.LegacyAbac getLegacyAbac() { + if (legacyAbacBuilder_ == null) { + return legacyAbac_ == null + ? com.google.container.v1beta1.LegacyAbac.getDefaultInstance() + : legacyAbac_; + } else { + return legacyAbacBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + */ + public Builder setLegacyAbac(com.google.container.v1beta1.LegacyAbac value) { + if (legacyAbacBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + legacyAbac_ = value; + onChanged(); + } else { + legacyAbacBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + */ + public Builder setLegacyAbac(com.google.container.v1beta1.LegacyAbac.Builder builderForValue) { + if (legacyAbacBuilder_ == null) { + legacyAbac_ = builderForValue.build(); + onChanged(); + } else { + legacyAbacBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + */ + public Builder mergeLegacyAbac(com.google.container.v1beta1.LegacyAbac value) { + if (legacyAbacBuilder_ == null) { + if (legacyAbac_ != null) { + legacyAbac_ = + com.google.container.v1beta1.LegacyAbac.newBuilder(legacyAbac_) + .mergeFrom(value) + .buildPartial(); + } else { + legacyAbac_ = value; + } + onChanged(); + } else { + legacyAbacBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + */ + public Builder clearLegacyAbac() { + if (legacyAbacBuilder_ == null) { + legacyAbac_ = null; + onChanged(); + } else { + legacyAbac_ = null; + legacyAbacBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + */ + public com.google.container.v1beta1.LegacyAbac.Builder getLegacyAbacBuilder() { + + onChanged(); + return getLegacyAbacFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + */ + public com.google.container.v1beta1.LegacyAbacOrBuilder getLegacyAbacOrBuilder() { + if (legacyAbacBuilder_ != null) { + return legacyAbacBuilder_.getMessageOrBuilder(); + } else { + return legacyAbac_ == null + ? com.google.container.v1beta1.LegacyAbac.getDefaultInstance() + : legacyAbac_; + } + } + /** + * + * + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.LegacyAbac, + com.google.container.v1beta1.LegacyAbac.Builder, + com.google.container.v1beta1.LegacyAbacOrBuilder> + getLegacyAbacFieldBuilder() { + if (legacyAbacBuilder_ == null) { + legacyAbacBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.LegacyAbac, + com.google.container.v1beta1.LegacyAbac.Builder, + com.google.container.v1beta1.LegacyAbacOrBuilder>( + getLegacyAbac(), getParentForChildren(), isClean()); + legacyAbac_ = null; + } + return legacyAbacBuilder_; + } + + private com.google.container.v1beta1.NetworkPolicy networkPolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkPolicy, + com.google.container.v1beta1.NetworkPolicy.Builder, + com.google.container.v1beta1.NetworkPolicyOrBuilder> + networkPolicyBuilder_; + /** + * + * + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + * + * @return Whether the networkPolicy field is set. + */ + public boolean hasNetworkPolicy() { + return networkPolicyBuilder_ != null || networkPolicy_ != null; + } + /** + * + * + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + * + * @return The networkPolicy. + */ + public com.google.container.v1beta1.NetworkPolicy getNetworkPolicy() { + if (networkPolicyBuilder_ == null) { + return networkPolicy_ == null + ? com.google.container.v1beta1.NetworkPolicy.getDefaultInstance() + : networkPolicy_; + } else { + return networkPolicyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + */ + public Builder setNetworkPolicy(com.google.container.v1beta1.NetworkPolicy value) { + if (networkPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkPolicy_ = value; + onChanged(); + } else { + networkPolicyBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + */ + public Builder setNetworkPolicy( + com.google.container.v1beta1.NetworkPolicy.Builder builderForValue) { + if (networkPolicyBuilder_ == null) { + networkPolicy_ = builderForValue.build(); + onChanged(); + } else { + networkPolicyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + */ + public Builder mergeNetworkPolicy(com.google.container.v1beta1.NetworkPolicy value) { + if (networkPolicyBuilder_ == null) { + if (networkPolicy_ != null) { + networkPolicy_ = + com.google.container.v1beta1.NetworkPolicy.newBuilder(networkPolicy_) + .mergeFrom(value) + .buildPartial(); + } else { + networkPolicy_ = value; + } + onChanged(); + } else { + networkPolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + */ + public Builder clearNetworkPolicy() { + if (networkPolicyBuilder_ == null) { + networkPolicy_ = null; + onChanged(); + } else { + networkPolicy_ = null; + networkPolicyBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + */ + public com.google.container.v1beta1.NetworkPolicy.Builder getNetworkPolicyBuilder() { + + onChanged(); + return getNetworkPolicyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + */ + public com.google.container.v1beta1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { + if (networkPolicyBuilder_ != null) { + return networkPolicyBuilder_.getMessageOrBuilder(); + } else { + return networkPolicy_ == null + ? com.google.container.v1beta1.NetworkPolicy.getDefaultInstance() + : networkPolicy_; + } + } + /** + * + * + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkPolicy, + com.google.container.v1beta1.NetworkPolicy.Builder, + com.google.container.v1beta1.NetworkPolicyOrBuilder> + getNetworkPolicyFieldBuilder() { + if (networkPolicyBuilder_ == null) { + networkPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkPolicy, + com.google.container.v1beta1.NetworkPolicy.Builder, + com.google.container.v1beta1.NetworkPolicyOrBuilder>( + getNetworkPolicy(), getParentForChildren(), isClean()); + networkPolicy_ = null; + } + return networkPolicyBuilder_; + } + + private com.google.container.v1beta1.IPAllocationPolicy ipAllocationPolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.IPAllocationPolicy, + com.google.container.v1beta1.IPAllocationPolicy.Builder, + com.google.container.v1beta1.IPAllocationPolicyOrBuilder> + ipAllocationPolicyBuilder_; + /** + * + * + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + * + * @return Whether the ipAllocationPolicy field is set. + */ + public boolean hasIpAllocationPolicy() { + return ipAllocationPolicyBuilder_ != null || ipAllocationPolicy_ != null; + } + /** + * + * + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + * + * @return The ipAllocationPolicy. + */ + public com.google.container.v1beta1.IPAllocationPolicy getIpAllocationPolicy() { + if (ipAllocationPolicyBuilder_ == null) { + return ipAllocationPolicy_ == null + ? com.google.container.v1beta1.IPAllocationPolicy.getDefaultInstance() + : ipAllocationPolicy_; + } else { + return ipAllocationPolicyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public Builder setIpAllocationPolicy(com.google.container.v1beta1.IPAllocationPolicy value) { + if (ipAllocationPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ipAllocationPolicy_ = value; + onChanged(); + } else { + ipAllocationPolicyBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public Builder setIpAllocationPolicy( + com.google.container.v1beta1.IPAllocationPolicy.Builder builderForValue) { + if (ipAllocationPolicyBuilder_ == null) { + ipAllocationPolicy_ = builderForValue.build(); + onChanged(); + } else { + ipAllocationPolicyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public Builder mergeIpAllocationPolicy(com.google.container.v1beta1.IPAllocationPolicy value) { + if (ipAllocationPolicyBuilder_ == null) { + if (ipAllocationPolicy_ != null) { + ipAllocationPolicy_ = + com.google.container.v1beta1.IPAllocationPolicy.newBuilder(ipAllocationPolicy_) + .mergeFrom(value) + .buildPartial(); + } else { + ipAllocationPolicy_ = value; + } + onChanged(); + } else { + ipAllocationPolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public Builder clearIpAllocationPolicy() { + if (ipAllocationPolicyBuilder_ == null) { + ipAllocationPolicy_ = null; + onChanged(); + } else { + ipAllocationPolicy_ = null; + ipAllocationPolicyBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public com.google.container.v1beta1.IPAllocationPolicy.Builder getIpAllocationPolicyBuilder() { + + onChanged(); + return getIpAllocationPolicyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public com.google.container.v1beta1.IPAllocationPolicyOrBuilder + getIpAllocationPolicyOrBuilder() { + if (ipAllocationPolicyBuilder_ != null) { + return ipAllocationPolicyBuilder_.getMessageOrBuilder(); + } else { + return ipAllocationPolicy_ == null + ? com.google.container.v1beta1.IPAllocationPolicy.getDefaultInstance() + : ipAllocationPolicy_; + } + } + /** + * + * + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.IPAllocationPolicy, + com.google.container.v1beta1.IPAllocationPolicy.Builder, + com.google.container.v1beta1.IPAllocationPolicyOrBuilder> + getIpAllocationPolicyFieldBuilder() { + if (ipAllocationPolicyBuilder_ == null) { + ipAllocationPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.IPAllocationPolicy, + com.google.container.v1beta1.IPAllocationPolicy.Builder, + com.google.container.v1beta1.IPAllocationPolicyOrBuilder>( + getIpAllocationPolicy(), getParentForChildren(), isClean()); + ipAllocationPolicy_ = null; + } + return ipAllocationPolicyBuilder_; + } + + private com.google.container.v1beta1.MasterAuthorizedNetworksConfig + masterAuthorizedNetworksConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MasterAuthorizedNetworksConfig, + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder, + com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder> + masterAuthorizedNetworksConfigBuilder_; + /** + * + * + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * + * + * @return Whether the masterAuthorizedNetworksConfig field is set. + */ + public boolean hasMasterAuthorizedNetworksConfig() { + return masterAuthorizedNetworksConfigBuilder_ != null + || masterAuthorizedNetworksConfig_ != null; + } + /** + * + * + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * + * + * @return The masterAuthorizedNetworksConfig. + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig + getMasterAuthorizedNetworksConfig() { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + return masterAuthorizedNetworksConfig_ == null + ? com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance() + : masterAuthorizedNetworksConfig_; + } else { + return masterAuthorizedNetworksConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * + */ + public Builder setMasterAuthorizedNetworksConfig( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig value) { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + masterAuthorizedNetworksConfig_ = value; + onChanged(); + } else { + masterAuthorizedNetworksConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * + */ + public Builder setMasterAuthorizedNetworksConfig( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder builderForValue) { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + masterAuthorizedNetworksConfig_ = builderForValue.build(); + onChanged(); + } else { + masterAuthorizedNetworksConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * + */ + public Builder mergeMasterAuthorizedNetworksConfig( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig value) { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + if (masterAuthorizedNetworksConfig_ != null) { + masterAuthorizedNetworksConfig_ = + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.newBuilder( + masterAuthorizedNetworksConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + masterAuthorizedNetworksConfig_ = value; + } + onChanged(); + } else { + masterAuthorizedNetworksConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * + */ + public Builder clearMasterAuthorizedNetworksConfig() { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + masterAuthorizedNetworksConfig_ = null; + onChanged(); + } else { + masterAuthorizedNetworksConfig_ = null; + masterAuthorizedNetworksConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder + getMasterAuthorizedNetworksConfigBuilder() { + + onChanged(); + return getMasterAuthorizedNetworksConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder + getMasterAuthorizedNetworksConfigOrBuilder() { + if (masterAuthorizedNetworksConfigBuilder_ != null) { + return masterAuthorizedNetworksConfigBuilder_.getMessageOrBuilder(); + } else { + return masterAuthorizedNetworksConfig_ == null + ? com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance() + : masterAuthorizedNetworksConfig_; + } + } + /** + * + * + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MasterAuthorizedNetworksConfig, + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder, + com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder> + getMasterAuthorizedNetworksConfigFieldBuilder() { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + masterAuthorizedNetworksConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MasterAuthorizedNetworksConfig, + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder, + com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder>( + getMasterAuthorizedNetworksConfig(), getParentForChildren(), isClean()); + masterAuthorizedNetworksConfig_ = null; + } + return masterAuthorizedNetworksConfigBuilder_; + } + + private com.google.container.v1beta1.MaintenancePolicy maintenancePolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaintenancePolicy, + com.google.container.v1beta1.MaintenancePolicy.Builder, + com.google.container.v1beta1.MaintenancePolicyOrBuilder> + maintenancePolicyBuilder_; + /** + * + * + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + * + * @return Whether the maintenancePolicy field is set. + */ + public boolean hasMaintenancePolicy() { + return maintenancePolicyBuilder_ != null || maintenancePolicy_ != null; + } + /** + * + * + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + * + * @return The maintenancePolicy. + */ + public com.google.container.v1beta1.MaintenancePolicy getMaintenancePolicy() { + if (maintenancePolicyBuilder_ == null) { + return maintenancePolicy_ == null + ? com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance() + : maintenancePolicy_; + } else { + return maintenancePolicyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + */ + public Builder setMaintenancePolicy(com.google.container.v1beta1.MaintenancePolicy value) { + if (maintenancePolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maintenancePolicy_ = value; + onChanged(); + } else { + maintenancePolicyBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + */ + public Builder setMaintenancePolicy( + com.google.container.v1beta1.MaintenancePolicy.Builder builderForValue) { + if (maintenancePolicyBuilder_ == null) { + maintenancePolicy_ = builderForValue.build(); + onChanged(); + } else { + maintenancePolicyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + */ + public Builder mergeMaintenancePolicy(com.google.container.v1beta1.MaintenancePolicy value) { + if (maintenancePolicyBuilder_ == null) { + if (maintenancePolicy_ != null) { + maintenancePolicy_ = + com.google.container.v1beta1.MaintenancePolicy.newBuilder(maintenancePolicy_) + .mergeFrom(value) + .buildPartial(); + } else { + maintenancePolicy_ = value; + } + onChanged(); + } else { + maintenancePolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + */ + public Builder clearMaintenancePolicy() { + if (maintenancePolicyBuilder_ == null) { + maintenancePolicy_ = null; + onChanged(); + } else { + maintenancePolicy_ = null; + maintenancePolicyBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + */ + public com.google.container.v1beta1.MaintenancePolicy.Builder getMaintenancePolicyBuilder() { + + onChanged(); + return getMaintenancePolicyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + */ + public com.google.container.v1beta1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { + if (maintenancePolicyBuilder_ != null) { + return maintenancePolicyBuilder_.getMessageOrBuilder(); + } else { + return maintenancePolicy_ == null + ? com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance() + : maintenancePolicy_; + } + } + /** + * + * + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaintenancePolicy, + com.google.container.v1beta1.MaintenancePolicy.Builder, + com.google.container.v1beta1.MaintenancePolicyOrBuilder> + getMaintenancePolicyFieldBuilder() { + if (maintenancePolicyBuilder_ == null) { + maintenancePolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaintenancePolicy, + com.google.container.v1beta1.MaintenancePolicy.Builder, + com.google.container.v1beta1.MaintenancePolicyOrBuilder>( + getMaintenancePolicy(), getParentForChildren(), isClean()); + maintenancePolicy_ = null; + } + return maintenancePolicyBuilder_; + } + + private com.google.container.v1beta1.BinaryAuthorization binaryAuthorization_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.BinaryAuthorization, + com.google.container.v1beta1.BinaryAuthorization.Builder, + com.google.container.v1beta1.BinaryAuthorizationOrBuilder> + binaryAuthorizationBuilder_; + /** + * + * + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + * + * @return Whether the binaryAuthorization field is set. + */ + public boolean hasBinaryAuthorization() { + return binaryAuthorizationBuilder_ != null || binaryAuthorization_ != null; + } + /** + * + * + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + * + * @return The binaryAuthorization. + */ + public com.google.container.v1beta1.BinaryAuthorization getBinaryAuthorization() { + if (binaryAuthorizationBuilder_ == null) { + return binaryAuthorization_ == null + ? com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance() + : binaryAuthorization_; + } else { + return binaryAuthorizationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + */ + public Builder setBinaryAuthorization(com.google.container.v1beta1.BinaryAuthorization value) { + if (binaryAuthorizationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + binaryAuthorization_ = value; + onChanged(); + } else { + binaryAuthorizationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + */ + public Builder setBinaryAuthorization( + com.google.container.v1beta1.BinaryAuthorization.Builder builderForValue) { + if (binaryAuthorizationBuilder_ == null) { + binaryAuthorization_ = builderForValue.build(); + onChanged(); + } else { + binaryAuthorizationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + */ + public Builder mergeBinaryAuthorization( + com.google.container.v1beta1.BinaryAuthorization value) { + if (binaryAuthorizationBuilder_ == null) { + if (binaryAuthorization_ != null) { + binaryAuthorization_ = + com.google.container.v1beta1.BinaryAuthorization.newBuilder(binaryAuthorization_) + .mergeFrom(value) + .buildPartial(); + } else { + binaryAuthorization_ = value; + } + onChanged(); + } else { + binaryAuthorizationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + */ + public Builder clearBinaryAuthorization() { + if (binaryAuthorizationBuilder_ == null) { + binaryAuthorization_ = null; + onChanged(); + } else { + binaryAuthorization_ = null; + binaryAuthorizationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + */ + public com.google.container.v1beta1.BinaryAuthorization.Builder + getBinaryAuthorizationBuilder() { + + onChanged(); + return getBinaryAuthorizationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + */ + public com.google.container.v1beta1.BinaryAuthorizationOrBuilder + getBinaryAuthorizationOrBuilder() { + if (binaryAuthorizationBuilder_ != null) { + return binaryAuthorizationBuilder_.getMessageOrBuilder(); + } else { + return binaryAuthorization_ == null + ? com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance() + : binaryAuthorization_; + } + } + /** + * + * + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.BinaryAuthorization, + com.google.container.v1beta1.BinaryAuthorization.Builder, + com.google.container.v1beta1.BinaryAuthorizationOrBuilder> + getBinaryAuthorizationFieldBuilder() { + if (binaryAuthorizationBuilder_ == null) { + binaryAuthorizationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.BinaryAuthorization, + com.google.container.v1beta1.BinaryAuthorization.Builder, + com.google.container.v1beta1.BinaryAuthorizationOrBuilder>( + getBinaryAuthorization(), getParentForChildren(), isClean()); + binaryAuthorization_ = null; + } + return binaryAuthorizationBuilder_; + } + + private com.google.container.v1beta1.PodSecurityPolicyConfig podSecurityPolicyConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PodSecurityPolicyConfig, + com.google.container.v1beta1.PodSecurityPolicyConfig.Builder, + com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder> + podSecurityPolicyConfigBuilder_; + /** + * + * + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + * + * + * @return Whether the podSecurityPolicyConfig field is set. + */ + public boolean hasPodSecurityPolicyConfig() { + return podSecurityPolicyConfigBuilder_ != null || podSecurityPolicyConfig_ != null; + } + /** + * + * + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + * + * + * @return The podSecurityPolicyConfig. + */ + public com.google.container.v1beta1.PodSecurityPolicyConfig getPodSecurityPolicyConfig() { + if (podSecurityPolicyConfigBuilder_ == null) { + return podSecurityPolicyConfig_ == null + ? com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance() + : podSecurityPolicyConfig_; + } else { + return podSecurityPolicyConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + * + */ + public Builder setPodSecurityPolicyConfig( + com.google.container.v1beta1.PodSecurityPolicyConfig value) { + if (podSecurityPolicyConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + podSecurityPolicyConfig_ = value; + onChanged(); + } else { + podSecurityPolicyConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + * + */ + public Builder setPodSecurityPolicyConfig( + com.google.container.v1beta1.PodSecurityPolicyConfig.Builder builderForValue) { + if (podSecurityPolicyConfigBuilder_ == null) { + podSecurityPolicyConfig_ = builderForValue.build(); + onChanged(); + } else { + podSecurityPolicyConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + * + */ + public Builder mergePodSecurityPolicyConfig( + com.google.container.v1beta1.PodSecurityPolicyConfig value) { + if (podSecurityPolicyConfigBuilder_ == null) { + if (podSecurityPolicyConfig_ != null) { + podSecurityPolicyConfig_ = + com.google.container.v1beta1.PodSecurityPolicyConfig.newBuilder( + podSecurityPolicyConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + podSecurityPolicyConfig_ = value; + } + onChanged(); + } else { + podSecurityPolicyConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + * + */ + public Builder clearPodSecurityPolicyConfig() { + if (podSecurityPolicyConfigBuilder_ == null) { + podSecurityPolicyConfig_ = null; + onChanged(); + } else { + podSecurityPolicyConfig_ = null; + podSecurityPolicyConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + * + */ + public com.google.container.v1beta1.PodSecurityPolicyConfig.Builder + getPodSecurityPolicyConfigBuilder() { + + onChanged(); + return getPodSecurityPolicyConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + * + */ + public com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder + getPodSecurityPolicyConfigOrBuilder() { + if (podSecurityPolicyConfigBuilder_ != null) { + return podSecurityPolicyConfigBuilder_.getMessageOrBuilder(); + } else { + return podSecurityPolicyConfig_ == null + ? com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance() + : podSecurityPolicyConfig_; + } + } + /** + * + * + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PodSecurityPolicyConfig, + com.google.container.v1beta1.PodSecurityPolicyConfig.Builder, + com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder> + getPodSecurityPolicyConfigFieldBuilder() { + if (podSecurityPolicyConfigBuilder_ == null) { + podSecurityPolicyConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PodSecurityPolicyConfig, + com.google.container.v1beta1.PodSecurityPolicyConfig.Builder, + com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder>( + getPodSecurityPolicyConfig(), getParentForChildren(), isClean()); + podSecurityPolicyConfig_ = null; + } + return podSecurityPolicyConfigBuilder_; + } + + private com.google.container.v1beta1.ClusterAutoscaling autoscaling_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterAutoscaling, + com.google.container.v1beta1.ClusterAutoscaling.Builder, + com.google.container.v1beta1.ClusterAutoscalingOrBuilder> + autoscalingBuilder_; + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + * + * @return Whether the autoscaling field is set. + */ + public boolean hasAutoscaling() { + return autoscalingBuilder_ != null || autoscaling_ != null; + } + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + * + * @return The autoscaling. + */ + public com.google.container.v1beta1.ClusterAutoscaling getAutoscaling() { + if (autoscalingBuilder_ == null) { + return autoscaling_ == null + ? com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance() + : autoscaling_; + } else { + return autoscalingBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + */ + public Builder setAutoscaling(com.google.container.v1beta1.ClusterAutoscaling value) { + if (autoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autoscaling_ = value; + onChanged(); + } else { + autoscalingBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + */ + public Builder setAutoscaling( + com.google.container.v1beta1.ClusterAutoscaling.Builder builderForValue) { + if (autoscalingBuilder_ == null) { + autoscaling_ = builderForValue.build(); + onChanged(); + } else { + autoscalingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + */ + public Builder mergeAutoscaling(com.google.container.v1beta1.ClusterAutoscaling value) { + if (autoscalingBuilder_ == null) { + if (autoscaling_ != null) { + autoscaling_ = + com.google.container.v1beta1.ClusterAutoscaling.newBuilder(autoscaling_) + .mergeFrom(value) + .buildPartial(); + } else { + autoscaling_ = value; + } + onChanged(); + } else { + autoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + */ + public Builder clearAutoscaling() { + if (autoscalingBuilder_ == null) { + autoscaling_ = null; + onChanged(); + } else { + autoscaling_ = null; + autoscalingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + */ + public com.google.container.v1beta1.ClusterAutoscaling.Builder getAutoscalingBuilder() { + + onChanged(); + return getAutoscalingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + */ + public com.google.container.v1beta1.ClusterAutoscalingOrBuilder getAutoscalingOrBuilder() { + if (autoscalingBuilder_ != null) { + return autoscalingBuilder_.getMessageOrBuilder(); + } else { + return autoscaling_ == null + ? com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance() + : autoscaling_; + } + } + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterAutoscaling, + com.google.container.v1beta1.ClusterAutoscaling.Builder, + com.google.container.v1beta1.ClusterAutoscalingOrBuilder> + getAutoscalingFieldBuilder() { + if (autoscalingBuilder_ == null) { + autoscalingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterAutoscaling, + com.google.container.v1beta1.ClusterAutoscaling.Builder, + com.google.container.v1beta1.ClusterAutoscalingOrBuilder>( + getAutoscaling(), getParentForChildren(), isClean()); + autoscaling_ = null; + } + return autoscalingBuilder_; + } + + private com.google.container.v1beta1.NetworkConfig networkConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkConfig, + com.google.container.v1beta1.NetworkConfig.Builder, + com.google.container.v1beta1.NetworkConfigOrBuilder> + networkConfigBuilder_; + /** + * + * + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + * + * @return Whether the networkConfig field is set. + */ + public boolean hasNetworkConfig() { + return networkConfigBuilder_ != null || networkConfig_ != null; + } + /** + * + * + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + * + * @return The networkConfig. + */ + public com.google.container.v1beta1.NetworkConfig getNetworkConfig() { + if (networkConfigBuilder_ == null) { + return networkConfig_ == null + ? com.google.container.v1beta1.NetworkConfig.getDefaultInstance() + : networkConfig_; + } else { + return networkConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + */ + public Builder setNetworkConfig(com.google.container.v1beta1.NetworkConfig value) { + if (networkConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkConfig_ = value; + onChanged(); + } else { + networkConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + */ + public Builder setNetworkConfig( + com.google.container.v1beta1.NetworkConfig.Builder builderForValue) { + if (networkConfigBuilder_ == null) { + networkConfig_ = builderForValue.build(); + onChanged(); + } else { + networkConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + */ + public Builder mergeNetworkConfig(com.google.container.v1beta1.NetworkConfig value) { + if (networkConfigBuilder_ == null) { + if (networkConfig_ != null) { + networkConfig_ = + com.google.container.v1beta1.NetworkConfig.newBuilder(networkConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + networkConfig_ = value; + } + onChanged(); + } else { + networkConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + */ + public Builder clearNetworkConfig() { + if (networkConfigBuilder_ == null) { + networkConfig_ = null; + onChanged(); + } else { + networkConfig_ = null; + networkConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + */ + public com.google.container.v1beta1.NetworkConfig.Builder getNetworkConfigBuilder() { + + onChanged(); + return getNetworkConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + */ + public com.google.container.v1beta1.NetworkConfigOrBuilder getNetworkConfigOrBuilder() { + if (networkConfigBuilder_ != null) { + return networkConfigBuilder_.getMessageOrBuilder(); + } else { + return networkConfig_ == null + ? com.google.container.v1beta1.NetworkConfig.getDefaultInstance() + : networkConfig_; + } + } + /** + * + * + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkConfig, + com.google.container.v1beta1.NetworkConfig.Builder, + com.google.container.v1beta1.NetworkConfigOrBuilder> + getNetworkConfigFieldBuilder() { + if (networkConfigBuilder_ == null) { + networkConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkConfig, + com.google.container.v1beta1.NetworkConfig.Builder, + com.google.container.v1beta1.NetworkConfigOrBuilder>( + getNetworkConfig(), getParentForChildren(), isClean()); + networkConfig_ = null; + } + return networkConfigBuilder_; + } + + private boolean privateCluster_; + /** + * + * + *
+     * If this is a private cluster setup. Private clusters are clusters that, by
+     * default have no external IP addresses on the nodes and where nodes and the
+     * master communicate over private IP addresses.
+     * This field is deprecated, use private_cluster_config.enable_private_nodes
+     * instead.
+     * 
+ * + * bool private_cluster = 28 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Cluster.private_cluster is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1713 + * @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=1713 + * @param value The privateCluster to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setPrivateCluster(boolean value) { + + privateCluster_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If this is a private cluster setup. Private clusters are clusters that, by
+     * default have no external IP addresses on the nodes and where nodes and the
+     * master communicate over private IP addresses.
+     * This field is deprecated, use private_cluster_config.enable_private_nodes
+     * instead.
+     * 
+ * + * bool private_cluster = 28 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Cluster.private_cluster is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1713 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearPrivateCluster() { + + privateCluster_ = false; + onChanged(); + return this; + } + + private java.lang.Object masterIpv4CidrBlock_ = ""; + /** + * + * + *
+     * The IP prefix in CIDR notation to use for the hosted master network.
+     * This prefix will be used for assigning private IP addresses to the
+     * master or set of masters, as well as the ILB VIP.
+     * This field is deprecated, use
+     * private_cluster_config.master_ipv4_cidr_block instead.
+     * 
+ * + * string master_ipv4_cidr_block = 29 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1720 + * @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=1720 + * @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=1720 + * @param value The masterIpv4CidrBlock to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setMasterIpv4CidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + masterIpv4CidrBlock_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The IP prefix in CIDR notation to use for the hosted master network.
+     * This prefix will be used for assigning private IP addresses to the
+     * master or set of masters, as well as the ILB VIP.
+     * This field is deprecated, use
+     * private_cluster_config.master_ipv4_cidr_block instead.
+     * 
+ * + * string master_ipv4_cidr_block = 29 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1720 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearMasterIpv4CidrBlock() { + + masterIpv4CidrBlock_ = getDefaultInstance().getMasterIpv4CidrBlock(); + onChanged(); + return this; + } + /** + * + * + *
+     * The IP prefix in CIDR notation to use for the hosted master network.
+     * This prefix will be used for assigning private IP addresses to the
+     * master or set of masters, as well as the ILB VIP.
+     * This field is deprecated, use
+     * private_cluster_config.master_ipv4_cidr_block instead.
+     * 
+ * + * string master_ipv4_cidr_block = 29 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1720 + * @param value The bytes for masterIpv4CidrBlock to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setMasterIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + masterIpv4CidrBlock_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.MaxPodsConstraint defaultMaxPodsConstraint_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaxPodsConstraint, + com.google.container.v1beta1.MaxPodsConstraint.Builder, + com.google.container.v1beta1.MaxPodsConstraintOrBuilder> + defaultMaxPodsConstraintBuilder_; + /** + * + * + *
+     * The default constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool of this cluster. Only honored
+     * if cluster created with IP Alias support.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + * + * @return Whether the defaultMaxPodsConstraint field is set. + */ + public boolean hasDefaultMaxPodsConstraint() { + return defaultMaxPodsConstraintBuilder_ != null || defaultMaxPodsConstraint_ != null; + } + /** + * + * + *
+     * The default constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool of this cluster. Only honored
+     * if cluster created with IP Alias support.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + * + * @return The defaultMaxPodsConstraint. + */ + public com.google.container.v1beta1.MaxPodsConstraint getDefaultMaxPodsConstraint() { + if (defaultMaxPodsConstraintBuilder_ == null) { + return defaultMaxPodsConstraint_ == null + ? com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance() + : defaultMaxPodsConstraint_; + } else { + return defaultMaxPodsConstraintBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The default constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool of this cluster. Only honored
+     * if cluster created with IP Alias support.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + public Builder setDefaultMaxPodsConstraint( + com.google.container.v1beta1.MaxPodsConstraint value) { + if (defaultMaxPodsConstraintBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultMaxPodsConstraint_ = value; + onChanged(); + } else { + defaultMaxPodsConstraintBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The default constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool of this cluster. Only honored
+     * if cluster created with IP Alias support.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + public Builder setDefaultMaxPodsConstraint( + com.google.container.v1beta1.MaxPodsConstraint.Builder builderForValue) { + if (defaultMaxPodsConstraintBuilder_ == null) { + defaultMaxPodsConstraint_ = builderForValue.build(); + onChanged(); + } else { + defaultMaxPodsConstraintBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The default constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool of this cluster. Only honored
+     * if cluster created with IP Alias support.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + public Builder mergeDefaultMaxPodsConstraint( + com.google.container.v1beta1.MaxPodsConstraint value) { + if (defaultMaxPodsConstraintBuilder_ == null) { + if (defaultMaxPodsConstraint_ != null) { + defaultMaxPodsConstraint_ = + com.google.container.v1beta1.MaxPodsConstraint.newBuilder(defaultMaxPodsConstraint_) + .mergeFrom(value) + .buildPartial(); + } else { + defaultMaxPodsConstraint_ = value; + } + onChanged(); + } else { + defaultMaxPodsConstraintBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The default constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool of this cluster. Only honored
+     * if cluster created with IP Alias support.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + public Builder clearDefaultMaxPodsConstraint() { + if (defaultMaxPodsConstraintBuilder_ == null) { + defaultMaxPodsConstraint_ = null; + onChanged(); + } else { + defaultMaxPodsConstraint_ = null; + defaultMaxPodsConstraintBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The default constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool of this cluster. Only honored
+     * if cluster created with IP Alias support.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + public com.google.container.v1beta1.MaxPodsConstraint.Builder + getDefaultMaxPodsConstraintBuilder() { + + onChanged(); + return getDefaultMaxPodsConstraintFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The default constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool of this cluster. Only honored
+     * if cluster created with IP Alias support.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + public com.google.container.v1beta1.MaxPodsConstraintOrBuilder + getDefaultMaxPodsConstraintOrBuilder() { + if (defaultMaxPodsConstraintBuilder_ != null) { + return defaultMaxPodsConstraintBuilder_.getMessageOrBuilder(); + } else { + return defaultMaxPodsConstraint_ == null + ? com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance() + : defaultMaxPodsConstraint_; + } + } + /** + * + * + *
+     * The default constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool of this cluster. Only honored
+     * if cluster created with IP Alias support.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaxPodsConstraint, + com.google.container.v1beta1.MaxPodsConstraint.Builder, + com.google.container.v1beta1.MaxPodsConstraintOrBuilder> + getDefaultMaxPodsConstraintFieldBuilder() { + if (defaultMaxPodsConstraintBuilder_ == null) { + defaultMaxPodsConstraintBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaxPodsConstraint, + com.google.container.v1beta1.MaxPodsConstraint.Builder, + com.google.container.v1beta1.MaxPodsConstraintOrBuilder>( + getDefaultMaxPodsConstraint(), getParentForChildren(), isClean()); + defaultMaxPodsConstraint_ = null; + } + return defaultMaxPodsConstraintBuilder_; + } + + private com.google.container.v1beta1.ResourceUsageExportConfig resourceUsageExportConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceUsageExportConfig, + com.google.container.v1beta1.ResourceUsageExportConfig.Builder, + com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder> + resourceUsageExportConfigBuilder_; + /** + * + * + *
+     * Configuration for exporting resource usages. Resource usage export is
+     * disabled when this config unspecified.
+     * 
+ * + * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; + * + * + * @return Whether the resourceUsageExportConfig field is set. + */ + public boolean hasResourceUsageExportConfig() { + return resourceUsageExportConfigBuilder_ != null || resourceUsageExportConfig_ != null; + } + /** + * + * + *
+     * Configuration for exporting resource usages. Resource usage export is
+     * disabled when this config unspecified.
+     * 
+ * + * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; + * + * + * @return The resourceUsageExportConfig. + */ + public com.google.container.v1beta1.ResourceUsageExportConfig getResourceUsageExportConfig() { + if (resourceUsageExportConfigBuilder_ == null) { + return resourceUsageExportConfig_ == null + ? com.google.container.v1beta1.ResourceUsageExportConfig.getDefaultInstance() + : resourceUsageExportConfig_; + } else { + return resourceUsageExportConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for exporting resource usages. Resource usage export is
+     * disabled when this config unspecified.
+     * 
+ * + * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; + * + */ + public Builder setResourceUsageExportConfig( + com.google.container.v1beta1.ResourceUsageExportConfig value) { + if (resourceUsageExportConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceUsageExportConfig_ = value; + onChanged(); + } else { + resourceUsageExportConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for exporting resource usages. Resource usage export is
+     * disabled when this config unspecified.
+     * 
+ * + * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; + * + */ + public Builder setResourceUsageExportConfig( + com.google.container.v1beta1.ResourceUsageExportConfig.Builder builderForValue) { + if (resourceUsageExportConfigBuilder_ == null) { + resourceUsageExportConfig_ = builderForValue.build(); + onChanged(); + } else { + resourceUsageExportConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for exporting resource usages. Resource usage export is
+     * disabled when this config unspecified.
+     * 
+ * + * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; + * + */ + public Builder mergeResourceUsageExportConfig( + com.google.container.v1beta1.ResourceUsageExportConfig value) { + if (resourceUsageExportConfigBuilder_ == null) { + if (resourceUsageExportConfig_ != null) { + resourceUsageExportConfig_ = + com.google.container.v1beta1.ResourceUsageExportConfig.newBuilder( + resourceUsageExportConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + resourceUsageExportConfig_ = value; + } + onChanged(); + } else { + resourceUsageExportConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for exporting resource usages. Resource usage export is
+     * disabled when this config unspecified.
+     * 
+ * + * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; + * + */ + public Builder clearResourceUsageExportConfig() { + if (resourceUsageExportConfigBuilder_ == null) { + resourceUsageExportConfig_ = null; + onChanged(); + } else { + resourceUsageExportConfig_ = null; + resourceUsageExportConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for exporting resource usages. Resource usage export is
+     * disabled when this config unspecified.
+     * 
+ * + * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; + * + */ + public com.google.container.v1beta1.ResourceUsageExportConfig.Builder + getResourceUsageExportConfigBuilder() { + + onChanged(); + return getResourceUsageExportConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for exporting resource usages. Resource usage export is
+     * disabled when this config unspecified.
+     * 
+ * + * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; + * + */ + public com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder + getResourceUsageExportConfigOrBuilder() { + if (resourceUsageExportConfigBuilder_ != null) { + return resourceUsageExportConfigBuilder_.getMessageOrBuilder(); + } else { + return resourceUsageExportConfig_ == null + ? com.google.container.v1beta1.ResourceUsageExportConfig.getDefaultInstance() + : resourceUsageExportConfig_; + } + } + /** + * + * + *
+     * Configuration for exporting resource usages. Resource usage export is
+     * disabled when this config unspecified.
+     * 
+ * + * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceUsageExportConfig, + com.google.container.v1beta1.ResourceUsageExportConfig.Builder, + com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder> + getResourceUsageExportConfigFieldBuilder() { + if (resourceUsageExportConfigBuilder_ == null) { + resourceUsageExportConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceUsageExportConfig, + com.google.container.v1beta1.ResourceUsageExportConfig.Builder, + com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder>( + getResourceUsageExportConfig(), getParentForChildren(), isClean()); + resourceUsageExportConfig_ = null; + } + return resourceUsageExportConfigBuilder_; + } + + private com.google.container.v1beta1.AuthenticatorGroupsConfig authenticatorGroupsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AuthenticatorGroupsConfig, + com.google.container.v1beta1.AuthenticatorGroupsConfig.Builder, + com.google.container.v1beta1.AuthenticatorGroupsConfigOrBuilder> + authenticatorGroupsConfigBuilder_; + /** + * + * + *
+     * Configuration controlling RBAC group membership information.
+     * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * + * + * @return Whether the authenticatorGroupsConfig field is set. + */ + public boolean hasAuthenticatorGroupsConfig() { + return authenticatorGroupsConfigBuilder_ != null || authenticatorGroupsConfig_ != null; + } + /** + * + * + *
+     * Configuration controlling RBAC group membership information.
+     * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * + * + * @return The authenticatorGroupsConfig. + */ + public com.google.container.v1beta1.AuthenticatorGroupsConfig getAuthenticatorGroupsConfig() { + if (authenticatorGroupsConfigBuilder_ == null) { + return authenticatorGroupsConfig_ == null + ? com.google.container.v1beta1.AuthenticatorGroupsConfig.getDefaultInstance() + : authenticatorGroupsConfig_; + } else { + return authenticatorGroupsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration controlling RBAC group membership information.
+     * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * + */ + public Builder setAuthenticatorGroupsConfig( + com.google.container.v1beta1.AuthenticatorGroupsConfig value) { + if (authenticatorGroupsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authenticatorGroupsConfig_ = value; + onChanged(); + } else { + authenticatorGroupsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration controlling RBAC group membership information.
+     * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * + */ + public Builder setAuthenticatorGroupsConfig( + com.google.container.v1beta1.AuthenticatorGroupsConfig.Builder builderForValue) { + if (authenticatorGroupsConfigBuilder_ == null) { + authenticatorGroupsConfig_ = builderForValue.build(); + onChanged(); + } else { + authenticatorGroupsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration controlling RBAC group membership information.
+     * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * + */ + public Builder mergeAuthenticatorGroupsConfig( + com.google.container.v1beta1.AuthenticatorGroupsConfig value) { + if (authenticatorGroupsConfigBuilder_ == null) { + if (authenticatorGroupsConfig_ != null) { + authenticatorGroupsConfig_ = + com.google.container.v1beta1.AuthenticatorGroupsConfig.newBuilder( + authenticatorGroupsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + authenticatorGroupsConfig_ = value; + } + onChanged(); + } else { + authenticatorGroupsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration controlling RBAC group membership information.
+     * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * + */ + public Builder clearAuthenticatorGroupsConfig() { + if (authenticatorGroupsConfigBuilder_ == null) { + authenticatorGroupsConfig_ = null; + onChanged(); + } else { + authenticatorGroupsConfig_ = null; + authenticatorGroupsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration controlling RBAC group membership information.
+     * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * + */ + public com.google.container.v1beta1.AuthenticatorGroupsConfig.Builder + getAuthenticatorGroupsConfigBuilder() { + + onChanged(); + return getAuthenticatorGroupsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration controlling RBAC group membership information.
+     * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * + */ + public com.google.container.v1beta1.AuthenticatorGroupsConfigOrBuilder + getAuthenticatorGroupsConfigOrBuilder() { + if (authenticatorGroupsConfigBuilder_ != null) { + return authenticatorGroupsConfigBuilder_.getMessageOrBuilder(); + } else { + return authenticatorGroupsConfig_ == null + ? com.google.container.v1beta1.AuthenticatorGroupsConfig.getDefaultInstance() + : authenticatorGroupsConfig_; + } + } + /** + * + * + *
+     * Configuration controlling RBAC group membership information.
+     * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AuthenticatorGroupsConfig, + com.google.container.v1beta1.AuthenticatorGroupsConfig.Builder, + com.google.container.v1beta1.AuthenticatorGroupsConfigOrBuilder> + getAuthenticatorGroupsConfigFieldBuilder() { + if (authenticatorGroupsConfigBuilder_ == null) { + authenticatorGroupsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AuthenticatorGroupsConfig, + com.google.container.v1beta1.AuthenticatorGroupsConfig.Builder, + com.google.container.v1beta1.AuthenticatorGroupsConfigOrBuilder>( + getAuthenticatorGroupsConfig(), getParentForChildren(), isClean()); + authenticatorGroupsConfig_ = null; + } + return authenticatorGroupsConfigBuilder_; + } + + private com.google.container.v1beta1.PrivateClusterConfig privateClusterConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PrivateClusterConfig, + com.google.container.v1beta1.PrivateClusterConfig.Builder, + com.google.container.v1beta1.PrivateClusterConfigOrBuilder> + privateClusterConfigBuilder_; + /** + * + * + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + * + * @return Whether the privateClusterConfig field is set. + */ + public boolean hasPrivateClusterConfig() { + return privateClusterConfigBuilder_ != null || privateClusterConfig_ != null; + } + /** + * + * + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + * + * @return The privateClusterConfig. + */ + public com.google.container.v1beta1.PrivateClusterConfig getPrivateClusterConfig() { + if (privateClusterConfigBuilder_ == null) { + return privateClusterConfig_ == null + ? com.google.container.v1beta1.PrivateClusterConfig.getDefaultInstance() + : privateClusterConfig_; + } else { + return privateClusterConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + */ + public Builder setPrivateClusterConfig( + com.google.container.v1beta1.PrivateClusterConfig value) { + if (privateClusterConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + privateClusterConfig_ = value; + onChanged(); + } else { + privateClusterConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + */ + public Builder setPrivateClusterConfig( + com.google.container.v1beta1.PrivateClusterConfig.Builder builderForValue) { + if (privateClusterConfigBuilder_ == null) { + privateClusterConfig_ = builderForValue.build(); + onChanged(); + } else { + privateClusterConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + */ + public Builder mergePrivateClusterConfig( + com.google.container.v1beta1.PrivateClusterConfig value) { + if (privateClusterConfigBuilder_ == null) { + if (privateClusterConfig_ != null) { + privateClusterConfig_ = + com.google.container.v1beta1.PrivateClusterConfig.newBuilder(privateClusterConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + privateClusterConfig_ = value; + } + onChanged(); + } else { + privateClusterConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + */ + public Builder clearPrivateClusterConfig() { + if (privateClusterConfigBuilder_ == null) { + privateClusterConfig_ = null; + onChanged(); + } else { + privateClusterConfig_ = null; + privateClusterConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + */ + public com.google.container.v1beta1.PrivateClusterConfig.Builder + getPrivateClusterConfigBuilder() { + + onChanged(); + return getPrivateClusterConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + */ + public com.google.container.v1beta1.PrivateClusterConfigOrBuilder + getPrivateClusterConfigOrBuilder() { + if (privateClusterConfigBuilder_ != null) { + return privateClusterConfigBuilder_.getMessageOrBuilder(); + } else { + return privateClusterConfig_ == null + ? com.google.container.v1beta1.PrivateClusterConfig.getDefaultInstance() + : privateClusterConfig_; + } + } + /** + * + * + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PrivateClusterConfig, + com.google.container.v1beta1.PrivateClusterConfig.Builder, + com.google.container.v1beta1.PrivateClusterConfigOrBuilder> + getPrivateClusterConfigFieldBuilder() { + if (privateClusterConfigBuilder_ == null) { + privateClusterConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PrivateClusterConfig, + com.google.container.v1beta1.PrivateClusterConfig.Builder, + com.google.container.v1beta1.PrivateClusterConfigOrBuilder>( + getPrivateClusterConfig(), getParentForChildren(), isClean()); + privateClusterConfig_ = null; + } + return privateClusterConfigBuilder_; + } + + private com.google.container.v1beta1.VerticalPodAutoscaling verticalPodAutoscaling_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.VerticalPodAutoscaling, + com.google.container.v1beta1.VerticalPodAutoscaling.Builder, + com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder> + verticalPodAutoscalingBuilder_; + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + * + * @return Whether the verticalPodAutoscaling field is set. + */ + public boolean hasVerticalPodAutoscaling() { + return verticalPodAutoscalingBuilder_ != null || verticalPodAutoscaling_ != null; + } + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + * + * @return The verticalPodAutoscaling. + */ + public com.google.container.v1beta1.VerticalPodAutoscaling getVerticalPodAutoscaling() { + if (verticalPodAutoscalingBuilder_ == null) { + return verticalPodAutoscaling_ == null + ? com.google.container.v1beta1.VerticalPodAutoscaling.getDefaultInstance() + : verticalPodAutoscaling_; + } else { + return verticalPodAutoscalingBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + */ + public Builder setVerticalPodAutoscaling( + com.google.container.v1beta1.VerticalPodAutoscaling value) { + if (verticalPodAutoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + verticalPodAutoscaling_ = value; + onChanged(); + } else { + verticalPodAutoscalingBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + */ + public Builder setVerticalPodAutoscaling( + com.google.container.v1beta1.VerticalPodAutoscaling.Builder builderForValue) { + if (verticalPodAutoscalingBuilder_ == null) { + verticalPodAutoscaling_ = builderForValue.build(); + onChanged(); + } else { + verticalPodAutoscalingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + */ + public Builder mergeVerticalPodAutoscaling( + com.google.container.v1beta1.VerticalPodAutoscaling value) { + if (verticalPodAutoscalingBuilder_ == null) { + if (verticalPodAutoscaling_ != null) { + verticalPodAutoscaling_ = + com.google.container.v1beta1.VerticalPodAutoscaling.newBuilder( + verticalPodAutoscaling_) + .mergeFrom(value) + .buildPartial(); + } else { + verticalPodAutoscaling_ = value; + } + onChanged(); + } else { + verticalPodAutoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + */ + public Builder clearVerticalPodAutoscaling() { + if (verticalPodAutoscalingBuilder_ == null) { + verticalPodAutoscaling_ = null; + onChanged(); + } else { + verticalPodAutoscaling_ = null; + verticalPodAutoscalingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + */ + public com.google.container.v1beta1.VerticalPodAutoscaling.Builder + getVerticalPodAutoscalingBuilder() { + + onChanged(); + return getVerticalPodAutoscalingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + */ + public com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder + getVerticalPodAutoscalingOrBuilder() { + if (verticalPodAutoscalingBuilder_ != null) { + return verticalPodAutoscalingBuilder_.getMessageOrBuilder(); + } else { + return verticalPodAutoscaling_ == null + ? com.google.container.v1beta1.VerticalPodAutoscaling.getDefaultInstance() + : verticalPodAutoscaling_; + } + } + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.VerticalPodAutoscaling, + com.google.container.v1beta1.VerticalPodAutoscaling.Builder, + com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder> + getVerticalPodAutoscalingFieldBuilder() { + if (verticalPodAutoscalingBuilder_ == null) { + verticalPodAutoscalingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.VerticalPodAutoscaling, + com.google.container.v1beta1.VerticalPodAutoscaling.Builder, + com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder>( + getVerticalPodAutoscaling(), getParentForChildren(), isClean()); + verticalPodAutoscaling_ = null; + } + return verticalPodAutoscalingBuilder_; + } + + private com.google.container.v1beta1.ShieldedNodes shieldedNodes_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ShieldedNodes, + com.google.container.v1beta1.ShieldedNodes.Builder, + com.google.container.v1beta1.ShieldedNodesOrBuilder> + shieldedNodesBuilder_; + /** + * + * + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; + * + * @return Whether the shieldedNodes field is set. + */ + public boolean hasShieldedNodes() { + return shieldedNodesBuilder_ != null || shieldedNodes_ != null; + } + /** + * + * + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; + * + * @return The shieldedNodes. + */ + public com.google.container.v1beta1.ShieldedNodes getShieldedNodes() { + if (shieldedNodesBuilder_ == null) { + return shieldedNodes_ == null + ? com.google.container.v1beta1.ShieldedNodes.getDefaultInstance() + : shieldedNodes_; + } else { + return shieldedNodesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; + */ + public Builder setShieldedNodes(com.google.container.v1beta1.ShieldedNodes value) { + if (shieldedNodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + shieldedNodes_ = value; + onChanged(); + } else { + shieldedNodesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; + */ + public Builder setShieldedNodes( + com.google.container.v1beta1.ShieldedNodes.Builder builderForValue) { + if (shieldedNodesBuilder_ == null) { + shieldedNodes_ = builderForValue.build(); + onChanged(); + } else { + shieldedNodesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; + */ + public Builder mergeShieldedNodes(com.google.container.v1beta1.ShieldedNodes value) { + if (shieldedNodesBuilder_ == null) { + if (shieldedNodes_ != null) { + shieldedNodes_ = + com.google.container.v1beta1.ShieldedNodes.newBuilder(shieldedNodes_) + .mergeFrom(value) + .buildPartial(); + } else { + shieldedNodes_ = value; + } + onChanged(); + } else { + shieldedNodesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; + */ + public Builder clearShieldedNodes() { + if (shieldedNodesBuilder_ == null) { + shieldedNodes_ = null; + onChanged(); + } else { + shieldedNodes_ = null; + shieldedNodesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; + */ + public com.google.container.v1beta1.ShieldedNodes.Builder getShieldedNodesBuilder() { + + onChanged(); + return getShieldedNodesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; + */ + public com.google.container.v1beta1.ShieldedNodesOrBuilder getShieldedNodesOrBuilder() { + if (shieldedNodesBuilder_ != null) { + return shieldedNodesBuilder_.getMessageOrBuilder(); + } else { + return shieldedNodes_ == null + ? com.google.container.v1beta1.ShieldedNodes.getDefaultInstance() + : shieldedNodes_; + } + } + /** + * + * + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ShieldedNodes, + com.google.container.v1beta1.ShieldedNodes.Builder, + com.google.container.v1beta1.ShieldedNodesOrBuilder> + getShieldedNodesFieldBuilder() { + if (shieldedNodesBuilder_ == null) { + shieldedNodesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ShieldedNodes, + com.google.container.v1beta1.ShieldedNodes.Builder, + com.google.container.v1beta1.ShieldedNodesOrBuilder>( + getShieldedNodes(), getParentForChildren(), isClean()); + shieldedNodes_ = null; + } + return shieldedNodesBuilder_; + } + + private com.google.container.v1beta1.ReleaseChannel releaseChannel_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ReleaseChannel, + com.google.container.v1beta1.ReleaseChannel.Builder, + com.google.container.v1beta1.ReleaseChannelOrBuilder> + releaseChannelBuilder_; + /** + * + * + *
+     * Release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + * + * @return Whether the releaseChannel field is set. + */ + public boolean hasReleaseChannel() { + return releaseChannelBuilder_ != null || releaseChannel_ != null; + } + /** + * + * + *
+     * Release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + * + * @return The releaseChannel. + */ + public com.google.container.v1beta1.ReleaseChannel getReleaseChannel() { + if (releaseChannelBuilder_ == null) { + return releaseChannel_ == null + ? com.google.container.v1beta1.ReleaseChannel.getDefaultInstance() + : releaseChannel_; + } else { + return releaseChannelBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + */ + public Builder setReleaseChannel(com.google.container.v1beta1.ReleaseChannel value) { + if (releaseChannelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + releaseChannel_ = value; + onChanged(); + } else { + releaseChannelBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + */ + public Builder setReleaseChannel( + com.google.container.v1beta1.ReleaseChannel.Builder builderForValue) { + if (releaseChannelBuilder_ == null) { + releaseChannel_ = builderForValue.build(); + onChanged(); + } else { + releaseChannelBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + */ + public Builder mergeReleaseChannel(com.google.container.v1beta1.ReleaseChannel value) { + if (releaseChannelBuilder_ == null) { + if (releaseChannel_ != null) { + releaseChannel_ = + com.google.container.v1beta1.ReleaseChannel.newBuilder(releaseChannel_) + .mergeFrom(value) + .buildPartial(); + } else { + releaseChannel_ = value; + } + onChanged(); + } else { + releaseChannelBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + */ + public Builder clearReleaseChannel() { + if (releaseChannelBuilder_ == null) { + releaseChannel_ = null; + onChanged(); + } else { + releaseChannel_ = null; + releaseChannelBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + */ + public com.google.container.v1beta1.ReleaseChannel.Builder getReleaseChannelBuilder() { + + onChanged(); + return getReleaseChannelFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + */ + public com.google.container.v1beta1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder() { + if (releaseChannelBuilder_ != null) { + return releaseChannelBuilder_.getMessageOrBuilder(); + } else { + return releaseChannel_ == null + ? com.google.container.v1beta1.ReleaseChannel.getDefaultInstance() + : releaseChannel_; + } + } + /** + * + * + *
+     * Release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ReleaseChannel, + com.google.container.v1beta1.ReleaseChannel.Builder, + com.google.container.v1beta1.ReleaseChannelOrBuilder> + getReleaseChannelFieldBuilder() { + if (releaseChannelBuilder_ == null) { + releaseChannelBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ReleaseChannel, + com.google.container.v1beta1.ReleaseChannel.Builder, + com.google.container.v1beta1.ReleaseChannelOrBuilder>( + getReleaseChannel(), getParentForChildren(), isClean()); + releaseChannel_ = null; + } + return releaseChannelBuilder_; + } + + private com.google.container.v1beta1.WorkloadIdentityConfig workloadIdentityConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadIdentityConfig, + com.google.container.v1beta1.WorkloadIdentityConfig.Builder, + com.google.container.v1beta1.WorkloadIdentityConfigOrBuilder> + workloadIdentityConfigBuilder_; + /** + * + * + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; + * + * @return Whether the workloadIdentityConfig field is set. + */ + public boolean hasWorkloadIdentityConfig() { + return workloadIdentityConfigBuilder_ != null || workloadIdentityConfig_ != null; + } + /** + * + * + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; + * + * @return The workloadIdentityConfig. + */ + public com.google.container.v1beta1.WorkloadIdentityConfig getWorkloadIdentityConfig() { + if (workloadIdentityConfigBuilder_ == null) { + return workloadIdentityConfig_ == null + ? com.google.container.v1beta1.WorkloadIdentityConfig.getDefaultInstance() + : workloadIdentityConfig_; + } else { + return workloadIdentityConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; + */ + public Builder setWorkloadIdentityConfig( + com.google.container.v1beta1.WorkloadIdentityConfig value) { + if (workloadIdentityConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workloadIdentityConfig_ = value; + onChanged(); + } else { + workloadIdentityConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; + */ + public Builder setWorkloadIdentityConfig( + com.google.container.v1beta1.WorkloadIdentityConfig.Builder builderForValue) { + if (workloadIdentityConfigBuilder_ == null) { + workloadIdentityConfig_ = builderForValue.build(); + onChanged(); + } else { + workloadIdentityConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; + */ + public Builder mergeWorkloadIdentityConfig( + com.google.container.v1beta1.WorkloadIdentityConfig value) { + if (workloadIdentityConfigBuilder_ == null) { + if (workloadIdentityConfig_ != null) { + workloadIdentityConfig_ = + com.google.container.v1beta1.WorkloadIdentityConfig.newBuilder( + workloadIdentityConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + workloadIdentityConfig_ = value; + } + onChanged(); + } else { + workloadIdentityConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; + */ + public Builder clearWorkloadIdentityConfig() { + if (workloadIdentityConfigBuilder_ == null) { + workloadIdentityConfig_ = null; + onChanged(); + } else { + workloadIdentityConfig_ = null; + workloadIdentityConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; + */ + public com.google.container.v1beta1.WorkloadIdentityConfig.Builder + getWorkloadIdentityConfigBuilder() { + + onChanged(); + return getWorkloadIdentityConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; + */ + public com.google.container.v1beta1.WorkloadIdentityConfigOrBuilder + getWorkloadIdentityConfigOrBuilder() { + if (workloadIdentityConfigBuilder_ != null) { + return workloadIdentityConfigBuilder_.getMessageOrBuilder(); + } else { + return workloadIdentityConfig_ == null + ? com.google.container.v1beta1.WorkloadIdentityConfig.getDefaultInstance() + : workloadIdentityConfig_; + } + } + /** + * + * + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadIdentityConfig, + com.google.container.v1beta1.WorkloadIdentityConfig.Builder, + com.google.container.v1beta1.WorkloadIdentityConfigOrBuilder> + getWorkloadIdentityConfigFieldBuilder() { + if (workloadIdentityConfigBuilder_ == null) { + workloadIdentityConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadIdentityConfig, + com.google.container.v1beta1.WorkloadIdentityConfig.Builder, + com.google.container.v1beta1.WorkloadIdentityConfigOrBuilder>( + getWorkloadIdentityConfig(), getParentForChildren(), isClean()); + workloadIdentityConfig_ = null; + } + return workloadIdentityConfigBuilder_; + } + + private com.google.container.v1beta1.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 workloadCertificatesBuilder_ != null || workloadCertificates_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + workloadCertificatesBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + workloadCertificatesBuilder_.setMessage(builderForValue.build()); + } + + 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 (workloadCertificates_ != null) { + workloadCertificates_ = + com.google.container.v1beta1.WorkloadCertificates.newBuilder(workloadCertificates_) + .mergeFrom(value) + .buildPartial(); + } else { + workloadCertificates_ = value; + } + onChanged(); + } else { + workloadCertificatesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.WorkloadCertificates workload_certificates = 52; + */ + public Builder clearWorkloadCertificates() { + if (workloadCertificatesBuilder_ == null) { + workloadCertificates_ = null; + onChanged(); + } else { + workloadCertificates_ = null; + workloadCertificatesBuilder_ = null; + } + + 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() { + + 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 meshCertificatesBuilder_ != null || meshCertificates_ != null; + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + * + * @return The meshCertificates. + */ + public com.google.container.v1beta1.MeshCertificates getMeshCertificates() { + if (meshCertificatesBuilder_ == null) { + return meshCertificates_ == null + ? com.google.container.v1beta1.MeshCertificates.getDefaultInstance() + : meshCertificates_; + } else { + return meshCertificatesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + */ + public Builder setMeshCertificates(com.google.container.v1beta1.MeshCertificates value) { + if (meshCertificatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + meshCertificates_ = value; + onChanged(); + } else { + meshCertificatesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + */ + public Builder setMeshCertificates( + com.google.container.v1beta1.MeshCertificates.Builder builderForValue) { + if (meshCertificatesBuilder_ == null) { + meshCertificates_ = builderForValue.build(); + onChanged(); + } else { + meshCertificatesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + */ + public Builder mergeMeshCertificates(com.google.container.v1beta1.MeshCertificates value) { + if (meshCertificatesBuilder_ == null) { + if (meshCertificates_ != null) { + meshCertificates_ = + com.google.container.v1beta1.MeshCertificates.newBuilder(meshCertificates_) + .mergeFrom(value) + .buildPartial(); + } else { + meshCertificates_ = value; + } + onChanged(); + } else { + meshCertificatesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + */ + public Builder clearMeshCertificates() { + if (meshCertificatesBuilder_ == null) { + meshCertificates_ = null; + onChanged(); + } else { + meshCertificates_ = null; + meshCertificatesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + */ + public com.google.container.v1beta1.MeshCertificates.Builder getMeshCertificatesBuilder() { + + onChanged(); + return getMeshCertificatesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + */ + public com.google.container.v1beta1.MeshCertificatesOrBuilder getMeshCertificatesOrBuilder() { + if (meshCertificatesBuilder_ != null) { + return meshCertificatesBuilder_.getMessageOrBuilder(); + } else { + return meshCertificates_ == null + ? com.google.container.v1beta1.MeshCertificates.getDefaultInstance() + : meshCertificates_; + } + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MeshCertificates, + com.google.container.v1beta1.MeshCertificates.Builder, + com.google.container.v1beta1.MeshCertificatesOrBuilder> + getMeshCertificatesFieldBuilder() { + if (meshCertificatesBuilder_ == null) { + meshCertificatesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MeshCertificates, + com.google.container.v1beta1.MeshCertificates.Builder, + com.google.container.v1beta1.MeshCertificatesOrBuilder>( + getMeshCertificates(), getParentForChildren(), isClean()); + meshCertificates_ = null; + } + return meshCertificatesBuilder_; + } + + private com.google.container.v1beta1.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 workloadAltsConfigBuilder_ != null || workloadAltsConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + workloadAltsConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + workloadAltsConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (workloadAltsConfig_ != null) { + workloadAltsConfig_ = + com.google.container.v1beta1.WorkloadALTSConfig.newBuilder(workloadAltsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + workloadAltsConfig_ = value; + } + onChanged(); + } else { + workloadAltsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for direct-path (via ALTS) with workload identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadALTSConfig workload_alts_config = 53; + */ + public Builder clearWorkloadAltsConfig() { + if (workloadAltsConfigBuilder_ == null) { + workloadAltsConfig_ = null; + onChanged(); + } else { + workloadAltsConfig_ = null; + workloadAltsConfigBuilder_ = null; + } + + 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() { + + 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 costManagementConfigBuilder_ != null || costManagementConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + costManagementConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + costManagementConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (costManagementConfig_ != null) { + costManagementConfig_ = + com.google.container.v1beta1.CostManagementConfig.newBuilder(costManagementConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + costManagementConfig_ = value; + } + onChanged(); + } else { + costManagementConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1beta1.CostManagementConfig cost_management_config = 45; + */ + public Builder clearCostManagementConfig() { + if (costManagementConfigBuilder_ == null) { + costManagementConfig_ = null; + onChanged(); + } else { + costManagementConfig_ = null; + costManagementConfigBuilder_ = null; + } + + 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() { + + 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 clusterTelemetryBuilder_ != null || clusterTelemetry_ != null; + } + /** + * + * + *
+     * Telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; + * + * @return The clusterTelemetry. + */ + public com.google.container.v1beta1.ClusterTelemetry getClusterTelemetry() { + if (clusterTelemetryBuilder_ == null) { + return clusterTelemetry_ == null + ? com.google.container.v1beta1.ClusterTelemetry.getDefaultInstance() + : clusterTelemetry_; + } else { + return clusterTelemetryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; + */ + public Builder setClusterTelemetry(com.google.container.v1beta1.ClusterTelemetry value) { + if (clusterTelemetryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + clusterTelemetry_ = value; + onChanged(); + } else { + clusterTelemetryBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; + */ + public Builder setClusterTelemetry( + com.google.container.v1beta1.ClusterTelemetry.Builder builderForValue) { + if (clusterTelemetryBuilder_ == null) { + clusterTelemetry_ = builderForValue.build(); + onChanged(); + } else { + clusterTelemetryBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; + */ + public Builder mergeClusterTelemetry(com.google.container.v1beta1.ClusterTelemetry value) { + if (clusterTelemetryBuilder_ == null) { + if (clusterTelemetry_ != null) { + clusterTelemetry_ = + com.google.container.v1beta1.ClusterTelemetry.newBuilder(clusterTelemetry_) + .mergeFrom(value) + .buildPartial(); + } else { + clusterTelemetry_ = value; + } + onChanged(); + } else { + clusterTelemetryBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; + */ + public Builder clearClusterTelemetry() { + if (clusterTelemetryBuilder_ == null) { + clusterTelemetry_ = null; + onChanged(); + } else { + clusterTelemetry_ = null; + clusterTelemetryBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; + */ + public com.google.container.v1beta1.ClusterTelemetry.Builder getClusterTelemetryBuilder() { + + onChanged(); + return getClusterTelemetryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; + */ + public com.google.container.v1beta1.ClusterTelemetryOrBuilder getClusterTelemetryOrBuilder() { + if (clusterTelemetryBuilder_ != null) { + return clusterTelemetryBuilder_.getMessageOrBuilder(); + } else { + return clusterTelemetry_ == null + ? com.google.container.v1beta1.ClusterTelemetry.getDefaultInstance() + : clusterTelemetry_; + } + } + /** + * + * + *
+     * Telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterTelemetry, + com.google.container.v1beta1.ClusterTelemetry.Builder, + com.google.container.v1beta1.ClusterTelemetryOrBuilder> + getClusterTelemetryFieldBuilder() { + if (clusterTelemetryBuilder_ == null) { + clusterTelemetryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterTelemetry, + com.google.container.v1beta1.ClusterTelemetry.Builder, + com.google.container.v1beta1.ClusterTelemetryOrBuilder>( + getClusterTelemetry(), getParentForChildren(), isClean()); + clusterTelemetry_ = null; + } + return clusterTelemetryBuilder_; + } + + private com.google.container.v1beta1.TpuConfig tpuConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.TpuConfig, + com.google.container.v1beta1.TpuConfig.Builder, + com.google.container.v1beta1.TpuConfigOrBuilder> + tpuConfigBuilder_; + /** + * + * + *
+     * Configuration for Cloud TPU support;
+     * 
+ * + * .google.container.v1beta1.TpuConfig tpu_config = 47; + * + * @return Whether the tpuConfig field is set. + */ + public boolean hasTpuConfig() { + return tpuConfigBuilder_ != null || tpuConfig_ != null; + } + /** + * + * + *
+     * Configuration for Cloud TPU support;
+     * 
+ * + * .google.container.v1beta1.TpuConfig tpu_config = 47; + * + * @return The tpuConfig. + */ + public com.google.container.v1beta1.TpuConfig getTpuConfig() { + if (tpuConfigBuilder_ == null) { + return tpuConfig_ == null + ? com.google.container.v1beta1.TpuConfig.getDefaultInstance() + : tpuConfig_; + } else { + return tpuConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for Cloud TPU support;
+     * 
+ * + * .google.container.v1beta1.TpuConfig tpu_config = 47; + */ + public Builder setTpuConfig(com.google.container.v1beta1.TpuConfig value) { + if (tpuConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tpuConfig_ = value; + onChanged(); + } else { + tpuConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for Cloud TPU support;
+     * 
+ * + * .google.container.v1beta1.TpuConfig tpu_config = 47; + */ + public Builder setTpuConfig(com.google.container.v1beta1.TpuConfig.Builder builderForValue) { + if (tpuConfigBuilder_ == null) { + tpuConfig_ = builderForValue.build(); + onChanged(); + } else { + tpuConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for Cloud TPU support;
+     * 
+ * + * .google.container.v1beta1.TpuConfig tpu_config = 47; + */ + public Builder mergeTpuConfig(com.google.container.v1beta1.TpuConfig value) { + if (tpuConfigBuilder_ == null) { + if (tpuConfig_ != null) { + tpuConfig_ = + com.google.container.v1beta1.TpuConfig.newBuilder(tpuConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + tpuConfig_ = value; + } + onChanged(); + } else { + tpuConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for Cloud TPU support;
+     * 
+ * + * .google.container.v1beta1.TpuConfig tpu_config = 47; + */ + public Builder clearTpuConfig() { + if (tpuConfigBuilder_ == null) { + tpuConfig_ = null; + onChanged(); + } else { + tpuConfig_ = null; + tpuConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for Cloud TPU support;
+     * 
+ * + * .google.container.v1beta1.TpuConfig tpu_config = 47; + */ + public com.google.container.v1beta1.TpuConfig.Builder getTpuConfigBuilder() { + + onChanged(); + return getTpuConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for Cloud TPU support;
+     * 
+ * + * .google.container.v1beta1.TpuConfig tpu_config = 47; + */ + public com.google.container.v1beta1.TpuConfigOrBuilder getTpuConfigOrBuilder() { + if (tpuConfigBuilder_ != null) { + return tpuConfigBuilder_.getMessageOrBuilder(); + } else { + return tpuConfig_ == null + ? com.google.container.v1beta1.TpuConfig.getDefaultInstance() + : tpuConfig_; + } + } + /** + * + * + *
+     * Configuration for Cloud TPU support;
+     * 
+ * + * .google.container.v1beta1.TpuConfig tpu_config = 47; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.TpuConfig, + com.google.container.v1beta1.TpuConfig.Builder, + com.google.container.v1beta1.TpuConfigOrBuilder> + getTpuConfigFieldBuilder() { + if (tpuConfigBuilder_ == null) { + tpuConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.TpuConfig, + com.google.container.v1beta1.TpuConfig.Builder, + com.google.container.v1beta1.TpuConfigOrBuilder>( + getTpuConfig(), getParentForChildren(), isClean()); + tpuConfig_ = null; + } + return tpuConfigBuilder_; + } + + private com.google.container.v1beta1.NotificationConfig notificationConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NotificationConfig, + com.google.container.v1beta1.NotificationConfig.Builder, + com.google.container.v1beta1.NotificationConfigOrBuilder> + notificationConfigBuilder_; + /** + * + * + *
+     * Notification configuration of the cluster.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig notification_config = 49; + * + * @return Whether the notificationConfig field is set. + */ + public boolean hasNotificationConfig() { + return notificationConfigBuilder_ != null || notificationConfig_ != null; + } + /** + * + * + *
+     * Notification configuration of the cluster.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig notification_config = 49; + * + * @return The notificationConfig. + */ + public com.google.container.v1beta1.NotificationConfig getNotificationConfig() { + if (notificationConfigBuilder_ == null) { + return notificationConfig_ == null + ? com.google.container.v1beta1.NotificationConfig.getDefaultInstance() + : notificationConfig_; + } else { + return notificationConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Notification configuration of the cluster.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig notification_config = 49; + */ + public Builder setNotificationConfig(com.google.container.v1beta1.NotificationConfig value) { + if (notificationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + notificationConfig_ = value; + onChanged(); + } else { + notificationConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Notification configuration of the cluster.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig notification_config = 49; + */ + public Builder setNotificationConfig( + com.google.container.v1beta1.NotificationConfig.Builder builderForValue) { + if (notificationConfigBuilder_ == null) { + notificationConfig_ = builderForValue.build(); + onChanged(); + } else { + notificationConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Notification configuration of the cluster.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig notification_config = 49; + */ + public Builder mergeNotificationConfig(com.google.container.v1beta1.NotificationConfig value) { + if (notificationConfigBuilder_ == null) { + if (notificationConfig_ != null) { + notificationConfig_ = + com.google.container.v1beta1.NotificationConfig.newBuilder(notificationConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + notificationConfig_ = value; + } + onChanged(); + } else { + notificationConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Notification configuration of the cluster.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig notification_config = 49; + */ + public Builder clearNotificationConfig() { + if (notificationConfigBuilder_ == null) { + notificationConfig_ = null; + onChanged(); + } else { + notificationConfig_ = null; + notificationConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Notification configuration of the cluster.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig notification_config = 49; + */ + public com.google.container.v1beta1.NotificationConfig.Builder getNotificationConfigBuilder() { + + onChanged(); + return getNotificationConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Notification configuration of the cluster.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig notification_config = 49; + */ + public com.google.container.v1beta1.NotificationConfigOrBuilder + getNotificationConfigOrBuilder() { + if (notificationConfigBuilder_ != null) { + return notificationConfigBuilder_.getMessageOrBuilder(); + } else { + return notificationConfig_ == null + ? com.google.container.v1beta1.NotificationConfig.getDefaultInstance() + : notificationConfig_; + } + } + /** + * + * + *
+     * Notification configuration of the cluster.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig notification_config = 49; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NotificationConfig, + com.google.container.v1beta1.NotificationConfig.Builder, + com.google.container.v1beta1.NotificationConfigOrBuilder> + getNotificationConfigFieldBuilder() { + if (notificationConfigBuilder_ == null) { + notificationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NotificationConfig, + com.google.container.v1beta1.NotificationConfig.Builder, + com.google.container.v1beta1.NotificationConfigOrBuilder>( + getNotificationConfig(), getParentForChildren(), isClean()); + notificationConfig_ = null; + } + return notificationConfigBuilder_; + } + + private com.google.container.v1beta1.ConfidentialNodes confidentialNodes_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ConfidentialNodes, + com.google.container.v1beta1.ConfidentialNodes.Builder, + com.google.container.v1beta1.ConfidentialNodesOrBuilder> + confidentialNodesBuilder_; + /** + * + * + *
+     * Configuration of Confidential Nodes.
+     * 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 confidentialNodesBuilder_ != null || confidentialNodes_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + confidentialNodesBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + confidentialNodesBuilder_.setMessage(builderForValue.build()); + } + + 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 (confidentialNodes_ != null) { + confidentialNodes_ = + com.google.container.v1beta1.ConfidentialNodes.newBuilder(confidentialNodes_) + .mergeFrom(value) + .buildPartial(); + } else { + confidentialNodes_ = value; + } + onChanged(); + } else { + confidentialNodesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration of Confidential Nodes.
+     * All the nodes in the cluster will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 50; + */ + public Builder clearConfidentialNodes() { + if (confidentialNodesBuilder_ == null) { + confidentialNodes_ = null; + onChanged(); + } else { + confidentialNodes_ = null; + confidentialNodesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration of Confidential Nodes.
+     * 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() { + + 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 identityServiceConfigBuilder_ != null || identityServiceConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + identityServiceConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + identityServiceConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (identityServiceConfig_ != null) { + identityServiceConfig_ = + com.google.container.v1beta1.IdentityServiceConfig.newBuilder(identityServiceConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + identityServiceConfig_ = value; + } + onChanged(); + } else { + identityServiceConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for Identity Service component.
+     * 
+ * + * .google.container.v1beta1.IdentityServiceConfig identity_service_config = 54; + */ + public Builder clearIdentityServiceConfig() { + if (identityServiceConfigBuilder_ == null) { + identityServiceConfig_ = null; + onChanged(); + } else { + identityServiceConfig_ = null; + identityServiceConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for Identity Service component.
+     * 
+ * + * .google.container.v1beta1.IdentityServiceConfig identity_service_config = 54; + */ + public com.google.container.v1beta1.IdentityServiceConfig.Builder + getIdentityServiceConfigBuilder() { + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + * + * @return This builder for chaining. + */ + public Builder clearSelfLink() { + + selfLink_ = getDefaultInstance().getSelfLink(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + * + * @param value The bytes for selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + selfLink_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field is deprecated, use location instead.
+     * 
+ * + * string zone = 101 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Cluster.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1786 + * @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=1786 + * @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=1786 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field is deprecated, use location instead.
+     * 
+ * + * string zone = 101 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Cluster.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1786 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field is deprecated, use location instead.
+     * 
+ * + * string zone = 101 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Cluster.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1786 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object endpoint_ = ""; + /** + * + * + *
+     * [Output only] The IP address of this cluster's master endpoint.
+     * The endpoint can be accessed from the internet at
+     * `https://username:password@endpoint/`.
+     * See the `masterAuth` property of this resource for username and
+     * password information.
+     * 
+ * + * string endpoint = 102; + * + * @return The endpoint. + */ + public java.lang.String getEndpoint() { + java.lang.Object ref = endpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] The IP address of this cluster's master endpoint.
+     * The endpoint can be accessed from the internet at
+     * `https://username:password@endpoint/`.
+     * See the `masterAuth` property of this resource for username and
+     * password information.
+     * 
+ * + * string endpoint = 102; + * + * @return The bytes for endpoint. + */ + public com.google.protobuf.ByteString getEndpointBytes() { + java.lang.Object ref = endpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] The IP address of this cluster's master endpoint.
+     * The endpoint can be accessed from the internet at
+     * `https://username:password@endpoint/`.
+     * See the `masterAuth` property of this resource for username and
+     * password information.
+     * 
+ * + * string endpoint = 102; + * + * @param value The endpoint to set. + * @return This builder for chaining. + */ + public Builder setEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + endpoint_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The IP address of this cluster's master endpoint.
+     * The endpoint can be accessed from the internet at
+     * `https://username:password@endpoint/`.
+     * See the `masterAuth` property of this resource for username and
+     * password information.
+     * 
+ * + * string endpoint = 102; + * + * @return This builder for chaining. + */ + public Builder clearEndpoint() { + + endpoint_ = getDefaultInstance().getEndpoint(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The IP address of this cluster's master endpoint.
+     * The endpoint can be accessed from the internet at
+     * `https://username:password@endpoint/`.
+     * See the `masterAuth` property of this resource for username and
+     * password information.
+     * 
+ * + * string endpoint = 102; + * + * @param value The bytes for endpoint to set. + * @return This builder for chaining. + */ + public Builder setEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + endpoint_ = value; + onChanged(); + return this; + } + + private java.lang.Object initialClusterVersion_ = ""; + /** + * + * + *
+     * The initial Kubernetes version for this cluster.  Valid versions are those
+     * found in validMasterVersions returned by getServerConfig.  The version can
+     * be upgraded over time; such upgrades are reflected in
+     * currentMasterVersion and currentNodeVersion.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "","-": picks the default Kubernetes version
+     * 
+ * + * string initial_cluster_version = 103; + * + * @return The initialClusterVersion. + */ + public java.lang.String getInitialClusterVersion() { + java.lang.Object ref = initialClusterVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + initialClusterVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The initial Kubernetes version for this cluster.  Valid versions are those
+     * found in validMasterVersions returned by getServerConfig.  The version can
+     * be upgraded over time; such upgrades are reflected in
+     * currentMasterVersion and currentNodeVersion.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "","-": picks the default Kubernetes version
+     * 
+ * + * string initial_cluster_version = 103; + * + * @return The bytes for initialClusterVersion. + */ + public com.google.protobuf.ByteString getInitialClusterVersionBytes() { + java.lang.Object ref = initialClusterVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + initialClusterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The initial Kubernetes version for this cluster.  Valid versions are those
+     * found in validMasterVersions returned by getServerConfig.  The version can
+     * be upgraded over time; such upgrades are reflected in
+     * currentMasterVersion and currentNodeVersion.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "","-": picks the default Kubernetes version
+     * 
+ * + * string initial_cluster_version = 103; + * + * @param value The initialClusterVersion to set. + * @return This builder for chaining. + */ + public Builder setInitialClusterVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + initialClusterVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The initial Kubernetes version for this cluster.  Valid versions are those
+     * found in validMasterVersions returned by getServerConfig.  The version can
+     * be upgraded over time; such upgrades are reflected in
+     * currentMasterVersion and currentNodeVersion.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "","-": picks the default Kubernetes version
+     * 
+ * + * string initial_cluster_version = 103; + * + * @return This builder for chaining. + */ + public Builder clearInitialClusterVersion() { + + initialClusterVersion_ = getDefaultInstance().getInitialClusterVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * The initial Kubernetes version for this cluster.  Valid versions are those
+     * found in validMasterVersions returned by getServerConfig.  The version can
+     * be upgraded over time; such upgrades are reflected in
+     * currentMasterVersion and currentNodeVersion.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "","-": picks the default Kubernetes version
+     * 
+ * + * string initial_cluster_version = 103; + * + * @param value The bytes for initialClusterVersion to set. + * @return This builder for chaining. + */ + public Builder setInitialClusterVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + initialClusterVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object currentMasterVersion_ = ""; + /** + * + * + *
+     * [Output only] The current software version of the master endpoint.
+     * 
+ * + * string current_master_version = 104; + * + * @return The currentMasterVersion. + */ + public java.lang.String getCurrentMasterVersion() { + java.lang.Object ref = currentMasterVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentMasterVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] The current software version of the master endpoint.
+     * 
+ * + * string current_master_version = 104; + * + * @return The bytes for currentMasterVersion. + */ + public com.google.protobuf.ByteString getCurrentMasterVersionBytes() { + java.lang.Object ref = currentMasterVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + currentMasterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] The current software version of the master endpoint.
+     * 
+ * + * string current_master_version = 104; + * + * @param value The currentMasterVersion to set. + * @return This builder for chaining. + */ + public Builder setCurrentMasterVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + currentMasterVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The current software version of the master endpoint.
+     * 
+ * + * string current_master_version = 104; + * + * @return This builder for chaining. + */ + public Builder clearCurrentMasterVersion() { + + currentMasterVersion_ = getDefaultInstance().getCurrentMasterVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The current software version of the master endpoint.
+     * 
+ * + * string current_master_version = 104; + * + * @param value The bytes for currentMasterVersion to set. + * @return This builder for chaining. + */ + public Builder setCurrentMasterVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + currentMasterVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object currentNodeVersion_ = ""; + /** + * + * + *
+     * [Output only] Deprecated, use
+     * [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools)
+     * instead. The current version of the node software components.
+     * If they are currently at multiple versions because they're in the process
+     * of being upgraded, this reflects the minimum version of all nodes.
+     * 
+ * + * string current_node_version = 105 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1819 + * @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=1819 + * @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=1819 + * @param value The currentNodeVersion to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setCurrentNodeVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + currentNodeVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Deprecated, use
+     * [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools)
+     * instead. The current version of the node software components.
+     * If they are currently at multiple versions because they're in the process
+     * of being upgraded, this reflects the minimum version of all nodes.
+     * 
+ * + * string current_node_version = 105 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1819 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearCurrentNodeVersion() { + + currentNodeVersion_ = getDefaultInstance().getCurrentNodeVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Deprecated, use
+     * [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools)
+     * instead. The current version of the node software components.
+     * If they are currently at multiple versions because they're in the process
+     * of being upgraded, this reflects the minimum version of all nodes.
+     * 
+ * + * string current_node_version = 105 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1819 + * @param value The bytes for currentNodeVersion to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setCurrentNodeVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + currentNodeVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object createTime_ = ""; + /** + * + * + *
+     * [Output only] The time the cluster was created, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string create_time = 106; + * + * @return The createTime. + */ + public java.lang.String getCreateTime() { + java.lang.Object ref = createTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + createTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] The time the cluster was created, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string create_time = 106; + * + * @return The bytes for createTime. + */ + public com.google.protobuf.ByteString getCreateTimeBytes() { + java.lang.Object ref = createTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + createTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] The time the cluster was created, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string create_time = 106; + * + * @param value The createTime to set. + * @return This builder for chaining. + */ + public Builder setCreateTime(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + createTime_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The time the cluster was created, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string create_time = 106; + * + * @return This builder for chaining. + */ + public Builder clearCreateTime() { + + createTime_ = getDefaultInstance().getCreateTime(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The time the cluster was created, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string create_time = 106; + * + * @param value The bytes for createTime to set. + * @return This builder for chaining. + */ + public Builder setCreateTimeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + createTime_ = value; + onChanged(); + return this; + } + + private int status_ = 0; + /** + * + * + *
+     * [Output only] The current status of this cluster.
+     * 
+ * + * .google.container.v1beta1.Cluster.Status status = 107; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + /** + * + * + *
+     * [Output only] The current status of this cluster.
+     * 
+ * + * .google.container.v1beta1.Cluster.Status status = 107; + * + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + + status_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The current status of this cluster.
+     * 
+ * + * .google.container.v1beta1.Cluster.Status status = 107; + * + * @return The status. + */ + @java.lang.Override + public com.google.container.v1beta1.Cluster.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.Cluster.Status result = + com.google.container.v1beta1.Cluster.Status.valueOf(status_); + return result == null ? com.google.container.v1beta1.Cluster.Status.UNRECOGNIZED : result; + } + /** + * + * + *
+     * [Output only] The current status of this cluster.
+     * 
+ * + * .google.container.v1beta1.Cluster.Status status = 107; + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(com.google.container.v1beta1.Cluster.Status value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The current status of this cluster.
+     * 
+ * + * .google.container.v1beta1.Cluster.Status status = 107; + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + + status_ = 0; + onChanged(); + return this; + } + + private java.lang.Object statusMessage_ = ""; + /** + * + * + *
+     * [Output only] Deprecated. Use conditions instead.
+     * Additional information about the current status of this
+     * cluster, if available.
+     * 
+ * + * string status_message = 108 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1831 + * @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=1831 + * @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=1831 + * @param value The statusMessage to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setStatusMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + statusMessage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Deprecated. Use conditions instead.
+     * Additional information about the current status of this
+     * cluster, if available.
+     * 
+ * + * string status_message = 108 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1831 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearStatusMessage() { + + statusMessage_ = getDefaultInstance().getStatusMessage(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Deprecated. Use conditions instead.
+     * Additional information about the current status of this
+     * cluster, if available.
+     * 
+ * + * string status_message = 108 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1831 + * @param value The bytes for statusMessage to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + statusMessage_ = value; + onChanged(); + return this; + } + + private int nodeIpv4CidrSize_; + /** + * + * + *
+     * [Output only] The size of the address space on each node for hosting
+     * containers. This is provisioned from within the `container_ipv4_cidr`
+     * range. This field will only be set when cluster is in route-based network
+     * mode.
+     * 
+ * + * int32 node_ipv4_cidr_size = 109; + * + * @return The nodeIpv4CidrSize. + */ + @java.lang.Override + public int getNodeIpv4CidrSize() { + return nodeIpv4CidrSize_; + } + /** + * + * + *
+     * [Output only] The size of the address space on each node for hosting
+     * containers. This is provisioned from within the `container_ipv4_cidr`
+     * range. This field will only be set when cluster is in route-based network
+     * mode.
+     * 
+ * + * int32 node_ipv4_cidr_size = 109; + * + * @param value The nodeIpv4CidrSize to set. + * @return This builder for chaining. + */ + public Builder setNodeIpv4CidrSize(int value) { + + nodeIpv4CidrSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The size of the address space on each node for hosting
+     * containers. This is provisioned from within the `container_ipv4_cidr`
+     * range. This field will only be set when cluster is in route-based network
+     * mode.
+     * 
+ * + * int32 node_ipv4_cidr_size = 109; + * + * @return This builder for chaining. + */ + public Builder clearNodeIpv4CidrSize() { + + nodeIpv4CidrSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object servicesIpv4Cidr_ = ""; + /** + * + * + *
+     * [Output only] The IP address range of the Kubernetes services in
+     * this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`). Service addresses are
+     * typically put in the last `/16` from the container CIDR.
+     * 
+ * + * string services_ipv4_cidr = 110; + * + * @return The servicesIpv4Cidr. + */ + public java.lang.String getServicesIpv4Cidr() { + java.lang.Object ref = servicesIpv4Cidr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesIpv4Cidr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] The IP address range of the Kubernetes services in
+     * this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`). Service addresses are
+     * typically put in the last `/16` from the container CIDR.
+     * 
+ * + * string services_ipv4_cidr = 110; + * + * @return The bytes for servicesIpv4Cidr. + */ + public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { + java.lang.Object ref = servicesIpv4Cidr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servicesIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] The IP address range of the Kubernetes services in
+     * this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`). Service addresses are
+     * typically put in the last `/16` from the container CIDR.
+     * 
+ * + * string services_ipv4_cidr = 110; + * + * @param value The servicesIpv4Cidr to set. + * @return This builder for chaining. + */ + public Builder setServicesIpv4Cidr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + servicesIpv4Cidr_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The IP address range of the Kubernetes services in
+     * this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`). Service addresses are
+     * typically put in the last `/16` from the container CIDR.
+     * 
+ * + * string services_ipv4_cidr = 110; + * + * @return This builder for chaining. + */ + public Builder clearServicesIpv4Cidr() { + + servicesIpv4Cidr_ = getDefaultInstance().getServicesIpv4Cidr(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The IP address range of the Kubernetes services in
+     * this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`). Service addresses are
+     * typically put in the last `/16` from the container CIDR.
+     * 
+ * + * string services_ipv4_cidr = 110; + * + * @param value The bytes for servicesIpv4Cidr to set. + * @return This builder for chaining. + */ + public Builder setServicesIpv4CidrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + servicesIpv4Cidr_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList instanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureInstanceGroupUrlsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(instanceGroupUrls_); + bitField0_ |= 0x00000008; + } + } + /** + * + * + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1847 + * @return A list containing the instanceGroupUrls. + */ + @java.lang.Deprecated + public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { + return instanceGroupUrls_.getUnmodifiableView(); + } + /** + * + * + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1847 + * @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=1847 + * @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=1847 + * @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=1847 + * @param index The index to set the value at. + * @param value The instanceGroupUrls to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setInstanceGroupUrls(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1847 + * @param value The instanceGroupUrls to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder addInstanceGroupUrls(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1847 + * @param values The instanceGroupUrls to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder addAllInstanceGroupUrls(java.lang.Iterable values) { + ensureInstanceGroupUrlsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instanceGroupUrls_); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1847 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearInstanceGroupUrls() { + instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1847 + * @param value The bytes of the instanceGroupUrls to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder addInstanceGroupUrlsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.add(value); + onChanged(); + return this; + } + + private int currentNodeCount_; + /** + * + * + *
+     * [Output only]  The number of nodes currently in the cluster. Deprecated.
+     * Call Kubernetes API directly to retrieve node information.
+     * 
+ * + * int32 current_node_count = 112 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Cluster.current_node_count is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1851 + * @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=1851 + * @param value The currentNodeCount to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setCurrentNodeCount(int value) { + + currentNodeCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only]  The number of nodes currently in the cluster. Deprecated.
+     * Call Kubernetes API directly to retrieve node information.
+     * 
+ * + * int32 current_node_count = 112 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Cluster.current_node_count is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1851 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearCurrentNodeCount() { + + currentNodeCount_ = 0; + onChanged(); + return this; + } + + private java.lang.Object expireTime_ = ""; + /** + * + * + *
+     * [Output only] The time the cluster will be automatically
+     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string expire_time = 113; + * + * @return The expireTime. + */ + public java.lang.String getExpireTime() { + java.lang.Object ref = expireTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + expireTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] The time the cluster will be automatically
+     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string expire_time = 113; + * + * @return The bytes for expireTime. + */ + public com.google.protobuf.ByteString getExpireTimeBytes() { + java.lang.Object ref = expireTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + expireTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] The time the cluster will be automatically
+     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string expire_time = 113; + * + * @param value The expireTime to set. + * @return This builder for chaining. + */ + public Builder setExpireTime(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + expireTime_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The time the cluster will be automatically
+     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string expire_time = 113; + * + * @return This builder for chaining. + */ + public Builder clearExpireTime() { + + expireTime_ = getDefaultInstance().getExpireTime(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The time the cluster will be automatically
+     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string expire_time = 113; + * + * @param value The bytes for expireTime to set. + * @return This builder for chaining. + */ + public Builder setExpireTimeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + expireTime_ = value; + onChanged(); + return this; + } + + private java.lang.Object location_ = ""; + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * or
+     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * in which the cluster resides.
+     * 
+ * + * string location = 114; + * + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * or
+     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * in which the cluster resides.
+     * 
+ * + * string location = 114; + * + * @return The bytes for location. + */ + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * or
+     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * in which the cluster resides.
+     * 
+ * + * string location = 114; + * + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + location_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * or
+     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * in which the cluster resides.
+     * 
+ * + * string location = 114; + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + + location_ = getDefaultInstance().getLocation(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * or
+     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * in which the cluster resides.
+     * 
+ * + * string location = 114; + * + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + location_ = value; + onChanged(); + return this; + } + + private boolean enableTpu_; + /** + * + * + *
+     * Enable the ability to use Cloud TPUs in this cluster.
+     * This field is deprecated, use tpu_config.enabled instead.
+     * 
+ * + * bool enable_tpu = 115; + * + * @return The enableTpu. + */ + @java.lang.Override + public boolean getEnableTpu() { + return enableTpu_; + } + /** + * + * + *
+     * Enable the ability to use Cloud TPUs in this cluster.
+     * This field is deprecated, use tpu_config.enabled instead.
+     * 
+ * + * bool enable_tpu = 115; + * + * @param value The enableTpu to set. + * @return This builder for chaining. + */ + public Builder setEnableTpu(boolean value) { + + enableTpu_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Enable the ability to use Cloud TPUs in this cluster.
+     * This field is deprecated, use tpu_config.enabled instead.
+     * 
+ * + * bool enable_tpu = 115; + * + * @return This builder for chaining. + */ + public Builder clearEnableTpu() { + + enableTpu_ = false; + onChanged(); + return this; + } + + private java.lang.Object tpuIpv4CidrBlock_ = ""; + /** + * + * + *
+     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`).
+     * 
+ * + * string tpu_ipv4_cidr_block = 116; + * + * @return The tpuIpv4CidrBlock. + */ + public java.lang.String getTpuIpv4CidrBlock() { + java.lang.Object ref = tpuIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tpuIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`).
+     * 
+ * + * string tpu_ipv4_cidr_block = 116; + * + * @return The bytes for tpuIpv4CidrBlock. + */ + public com.google.protobuf.ByteString getTpuIpv4CidrBlockBytes() { + java.lang.Object ref = tpuIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tpuIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`).
+     * 
+ * + * string tpu_ipv4_cidr_block = 116; + * + * @param value The tpuIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setTpuIpv4CidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tpuIpv4CidrBlock_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`).
+     * 
+ * + * string tpu_ipv4_cidr_block = 116; + * + * @return This builder for chaining. + */ + public Builder clearTpuIpv4CidrBlock() { + + tpuIpv4CidrBlock_ = getDefaultInstance().getTpuIpv4CidrBlock(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`).
+     * 
+ * + * string tpu_ipv4_cidr_block = 116; + * + * @param value The bytes for tpuIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setTpuIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tpuIpv4CidrBlock_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.DatabaseEncryption databaseEncryption_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DatabaseEncryption, + com.google.container.v1beta1.DatabaseEncryption.Builder, + com.google.container.v1beta1.DatabaseEncryptionOrBuilder> + databaseEncryptionBuilder_; + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; + * + * @return Whether the databaseEncryption field is set. + */ + public boolean hasDatabaseEncryption() { + return databaseEncryptionBuilder_ != null || databaseEncryption_ != null; + } + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; + * + * @return The databaseEncryption. + */ + public com.google.container.v1beta1.DatabaseEncryption getDatabaseEncryption() { + if (databaseEncryptionBuilder_ == null) { + return databaseEncryption_ == null + ? com.google.container.v1beta1.DatabaseEncryption.getDefaultInstance() + : databaseEncryption_; + } else { + return databaseEncryptionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; + */ + public Builder setDatabaseEncryption(com.google.container.v1beta1.DatabaseEncryption value) { + if (databaseEncryptionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + databaseEncryption_ = value; + onChanged(); + } else { + databaseEncryptionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; + */ + public Builder setDatabaseEncryption( + com.google.container.v1beta1.DatabaseEncryption.Builder builderForValue) { + if (databaseEncryptionBuilder_ == null) { + databaseEncryption_ = builderForValue.build(); + onChanged(); + } else { + databaseEncryptionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; + */ + public Builder mergeDatabaseEncryption(com.google.container.v1beta1.DatabaseEncryption value) { + if (databaseEncryptionBuilder_ == null) { + if (databaseEncryption_ != null) { + databaseEncryption_ = + com.google.container.v1beta1.DatabaseEncryption.newBuilder(databaseEncryption_) + .mergeFrom(value) + .buildPartial(); + } else { + databaseEncryption_ = value; + } + onChanged(); + } else { + databaseEncryptionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; + */ + public Builder clearDatabaseEncryption() { + if (databaseEncryptionBuilder_ == null) { + databaseEncryption_ = null; + onChanged(); + } else { + databaseEncryption_ = null; + databaseEncryptionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; + */ + public com.google.container.v1beta1.DatabaseEncryption.Builder getDatabaseEncryptionBuilder() { + + onChanged(); + return getDatabaseEncryptionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; + */ + public com.google.container.v1beta1.DatabaseEncryptionOrBuilder + getDatabaseEncryptionOrBuilder() { + if (databaseEncryptionBuilder_ != null) { + return databaseEncryptionBuilder_.getMessageOrBuilder(); + } else { + return databaseEncryption_ == null + ? com.google.container.v1beta1.DatabaseEncryption.getDefaultInstance() + : databaseEncryption_; + } + } + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DatabaseEncryption, + com.google.container.v1beta1.DatabaseEncryption.Builder, + com.google.container.v1beta1.DatabaseEncryptionOrBuilder> + getDatabaseEncryptionFieldBuilder() { + if (databaseEncryptionBuilder_ == null) { + databaseEncryptionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DatabaseEncryption, + com.google.container.v1beta1.DatabaseEncryption.Builder, + com.google.container.v1beta1.DatabaseEncryptionOrBuilder>( + getDatabaseEncryption(), getParentForChildren(), isClean()); + databaseEncryption_ = null; + } + return databaseEncryptionBuilder_; + } + + private java.util.List conditions_ = + java.util.Collections.emptyList(); + + private void ensureConditionsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + conditions_ = + new java.util.ArrayList(conditions_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, + com.google.container.v1beta1.StatusCondition.Builder, + com.google.container.v1beta1.StatusConditionOrBuilder> + conditionsBuilder_; + + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public java.util.List getConditionsList() { + if (conditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conditions_); + } else { + return conditionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public int getConditionsCount() { + if (conditionsBuilder_ == null) { + return conditions_.size(); + } else { + return conditionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public com.google.container.v1beta1.StatusCondition getConditions(int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public Builder setConditions(int index, com.google.container.v1beta1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.set(index, value); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public Builder setConditions( + int index, com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.set(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public Builder addConditions(com.google.container.v1beta1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(value); + onChanged(); + } else { + conditionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public Builder addConditions(int index, com.google.container.v1beta1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(index, value); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public Builder addConditions( + com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public Builder addConditions( + int index, com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public Builder addAllConditions( + java.lang.Iterable values) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); + onChanged(); + } else { + conditionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public Builder clearConditions() { + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + conditionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public Builder removeConditions(int index) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.remove(index); + onChanged(); + } else { + conditionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public com.google.container.v1beta1.StatusCondition.Builder getConditionsBuilder(int index) { + return getConditionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public com.google.container.v1beta1.StatusConditionOrBuilder getConditionsOrBuilder(int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public java.util.List + getConditionsOrBuilderList() { + if (conditionsBuilder_ != null) { + return conditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conditions_); + } + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public com.google.container.v1beta1.StatusCondition.Builder addConditionsBuilder() { + return getConditionsFieldBuilder() + .addBuilder(com.google.container.v1beta1.StatusCondition.getDefaultInstance()); + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public com.google.container.v1beta1.StatusCondition.Builder addConditionsBuilder(int index) { + return getConditionsFieldBuilder() + .addBuilder(index, com.google.container.v1beta1.StatusCondition.getDefaultInstance()); + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public java.util.List + getConditionsBuilderList() { + return getConditionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, + com.google.container.v1beta1.StatusCondition.Builder, + com.google.container.v1beta1.StatusConditionOrBuilder> + getConditionsFieldBuilder() { + if (conditionsBuilder_ == null) { + conditionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, + com.google.container.v1beta1.StatusCondition.Builder, + com.google.container.v1beta1.StatusConditionOrBuilder>( + conditions_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + conditions_ = null; + } + return conditionsBuilder_; + } + + private com.google.container.v1beta1.Master master_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.Master, + com.google.container.v1beta1.Master.Builder, + com.google.container.v1beta1.MasterOrBuilder> + masterBuilder_; + /** + * + * + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master master = 124; + * + * @return Whether the master field is set. + */ + public boolean hasMaster() { + return masterBuilder_ != null || master_ != null; + } + /** + * + * + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master master = 124; + * + * @return The master. + */ + public com.google.container.v1beta1.Master getMaster() { + if (masterBuilder_ == null) { + return master_ == null ? com.google.container.v1beta1.Master.getDefaultInstance() : master_; + } else { + return masterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master master = 124; + */ + public Builder setMaster(com.google.container.v1beta1.Master value) { + if (masterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + master_ = value; + onChanged(); + } else { + masterBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master master = 124; + */ + public Builder setMaster(com.google.container.v1beta1.Master.Builder builderForValue) { + if (masterBuilder_ == null) { + master_ = builderForValue.build(); + onChanged(); + } else { + masterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master master = 124; + */ + public Builder mergeMaster(com.google.container.v1beta1.Master value) { + if (masterBuilder_ == null) { + if (master_ != null) { + master_ = + com.google.container.v1beta1.Master.newBuilder(master_) + .mergeFrom(value) + .buildPartial(); + } else { + master_ = value; + } + onChanged(); + } else { + masterBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master master = 124; + */ + public Builder clearMaster() { + if (masterBuilder_ == null) { + master_ = null; + onChanged(); + } else { + master_ = null; + masterBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master master = 124; + */ + public com.google.container.v1beta1.Master.Builder getMasterBuilder() { + + onChanged(); + return getMasterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master master = 124; + */ + public com.google.container.v1beta1.MasterOrBuilder getMasterOrBuilder() { + if (masterBuilder_ != null) { + return masterBuilder_.getMessageOrBuilder(); + } else { + return master_ == null ? com.google.container.v1beta1.Master.getDefaultInstance() : master_; + } + } + /** + * + * + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master master = 124; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.Master, + com.google.container.v1beta1.Master.Builder, + com.google.container.v1beta1.MasterOrBuilder> + getMasterFieldBuilder() { + if (masterBuilder_ == null) { + masterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.Master, + com.google.container.v1beta1.Master.Builder, + com.google.container.v1beta1.MasterOrBuilder>( + getMaster(), getParentForChildren(), isClean()); + master_ = null; + } + return masterBuilder_; + } + + 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 autopilotBuilder_ != null || autopilot_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + autopilotBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + autopilotBuilder_.setMessage(builderForValue.build()); + } + + 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 (autopilot_ != null) { + autopilot_ = + com.google.container.v1beta1.Autopilot.newBuilder(autopilot_) + .mergeFrom(value) + .buildPartial(); + } else { + autopilot_ = value; + } + onChanged(); + } else { + autopilotBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Autopilot configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.Autopilot autopilot = 128; + */ + public Builder clearAutopilot() { + if (autopilotBuilder_ == null) { + autopilot_ = null; + onChanged(); + } else { + autopilot_ = null; + autopilotBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Autopilot configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.Autopilot autopilot = 128; + */ + public com.google.container.v1beta1.Autopilot.Builder getAutopilotBuilder() { + + 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; + 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(); + 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; + 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 ((bitField0_ & 0x00000020) != 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; + onChanged(); + } else { + nodePoolDefaultsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + 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(); + onChanged(); + } else { + nodePoolDefaultsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + 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 (((bitField0_ & 0x00000020) != 0) + && nodePoolDefaults_ != null + && nodePoolDefaults_ + != com.google.container.v1beta1.NodePoolDefaults.getDefaultInstance()) { + nodePoolDefaults_ = + com.google.container.v1beta1.NodePoolDefaults.newBuilder(nodePoolDefaults_) + .mergeFrom(value) + .buildPartial(); + } else { + nodePoolDefaults_ = value; + } + onChanged(); + } else { + nodePoolDefaultsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + 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() { + if (nodePoolDefaultsBuilder_ == null) { + nodePoolDefaults_ = null; + onChanged(); + } else { + nodePoolDefaultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + 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() { + bitField0_ |= 0x00000020; + 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 loggingConfigBuilder_ != null || loggingConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + loggingConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + loggingConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (loggingConfig_ != null) { + loggingConfig_ = + com.google.container.v1beta1.LoggingConfig.newBuilder(loggingConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + loggingConfig_ = value; + } + onChanged(); + } else { + loggingConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Logging configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.LoggingConfig logging_config = 132; + */ + public Builder clearLoggingConfig() { + if (loggingConfigBuilder_ == null) { + loggingConfig_ = null; + onChanged(); + } else { + loggingConfig_ = null; + loggingConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Logging configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.LoggingConfig logging_config = 132; + */ + public com.google.container.v1beta1.LoggingConfig.Builder getLoggingConfigBuilder() { + + 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 monitoringConfigBuilder_ != null || monitoringConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + monitoringConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + monitoringConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (monitoringConfig_ != null) { + monitoringConfig_ = + com.google.container.v1beta1.MonitoringConfig.newBuilder(monitoringConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + monitoringConfig_ = value; + } + onChanged(); + } else { + monitoringConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Monitoring configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.MonitoringConfig monitoring_config = 133; + */ + public Builder clearMonitoringConfig() { + if (monitoringConfigBuilder_ == null) { + monitoringConfig_ = null; + onChanged(); + } else { + monitoringConfig_ = null; + monitoringConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Monitoring configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.MonitoringConfig monitoring_config = 133; + */ + public com.google.container.v1beta1.MonitoringConfig.Builder getMonitoringConfigBuilder() { + + 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 nodePoolAutoConfigBuilder_ != null || nodePoolAutoConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + nodePoolAutoConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + nodePoolAutoConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (nodePoolAutoConfig_ != null) { + nodePoolAutoConfig_ = + com.google.container.v1beta1.NodePoolAutoConfig.newBuilder(nodePoolAutoConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + nodePoolAutoConfig_ = value; + } + onChanged(); + } else { + nodePoolAutoConfigBuilder_.mergeFrom(value); + } + + 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() { + if (nodePoolAutoConfigBuilder_ == null) { + nodePoolAutoConfig_ = null; + onChanged(); + } else { + nodePoolAutoConfig_ = null; + nodePoolAutoConfigBuilder_ = null; + } + + 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() { + + 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_; + /** + * + * + *
+     * Enable/Disable Protect API features for the cluster.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig protect_config = 137; + * + * @return Whether the protectConfig field is set. + */ + public boolean hasProtectConfig() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
+     * Enable/Disable Protect API features for the cluster.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig protect_config = 137; + * + * @return The protectConfig. + */ + public com.google.container.v1beta1.ProtectConfig getProtectConfig() { + if (protectConfigBuilder_ == null) { + return protectConfig_ == null + ? com.google.container.v1beta1.ProtectConfig.getDefaultInstance() + : protectConfig_; + } else { + return protectConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Enable/Disable Protect API features for the cluster.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig protect_config = 137; + */ + public Builder setProtectConfig(com.google.container.v1beta1.ProtectConfig value) { + if (protectConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + protectConfig_ = value; + onChanged(); + } else { + protectConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + return this; + } + /** + * + * + *
+     * Enable/Disable Protect API features for the cluster.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig protect_config = 137; + */ + public Builder setProtectConfig( + com.google.container.v1beta1.ProtectConfig.Builder builderForValue) { + if (protectConfigBuilder_ == null) { + protectConfig_ = builderForValue.build(); + onChanged(); + } else { + protectConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + return this; + } + /** + * + * + *
+     * Enable/Disable Protect API features for the cluster.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig protect_config = 137; + */ + public Builder mergeProtectConfig(com.google.container.v1beta1.ProtectConfig value) { + if (protectConfigBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && protectConfig_ != null + && protectConfig_ != com.google.container.v1beta1.ProtectConfig.getDefaultInstance()) { + protectConfig_ = + com.google.container.v1beta1.ProtectConfig.newBuilder(protectConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + protectConfig_ = value; + } + onChanged(); + } else { + protectConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000040; + return this; + } + /** + * + * + *
+     * Enable/Disable Protect API features for the cluster.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig protect_config = 137; + */ + public Builder clearProtectConfig() { + if (protectConfigBuilder_ == null) { + protectConfig_ = null; + onChanged(); + } else { + protectConfigBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + return this; + } + /** + * + * + *
+     * Enable/Disable Protect API features for the cluster.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig protect_config = 137; + */ + public com.google.container.v1beta1.ProtectConfig.Builder getProtectConfigBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getProtectConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Enable/Disable Protect API features for the cluster.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig protect_config = 137; + */ + public com.google.container.v1beta1.ProtectConfigOrBuilder getProtectConfigOrBuilder() { + if (protectConfigBuilder_ != null) { + return protectConfigBuilder_.getMessageOrBuilder(); + } else { + return protectConfig_ == null + ? com.google.container.v1beta1.ProtectConfig.getDefaultInstance() + : protectConfig_; + } + } + /** + * + * + *
+     * Enable/Disable Protect API features for the cluster.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig protect_config = 137; + */ + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..de5c14b1d281 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterAutoscaling.java @@ -0,0 +1,2006 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * ClusterAutoscaling contains global, per-cluster information
+ * required by Cluster Autoscaler to automatically adjust
+ * the size of the cluster and create/delete
+ * node pools based on the current needs.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ClusterAutoscaling} + */ +public final class ClusterAutoscaling extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ClusterAutoscaling) + ClusterAutoscalingOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClusterAutoscaling.newBuilder() to construct. + private ClusterAutoscaling(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ClusterAutoscaling() { + resourceLimits_ = java.util.Collections.emptyList(); + autoscalingProfile_ = 0; + autoprovisioningLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ClusterAutoscaling(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ClusterAutoscaling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ClusterAutoscaling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ClusterAutoscaling.class, + com.google.container.v1beta1.ClusterAutoscaling.Builder.class); + } + + /** + * + * + *
+   * Defines possible options for autoscaling_profile field.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile} + */ + public enum AutoscalingProfile implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * No change to autoscaling configuration.
+     * 
+ * + * PROFILE_UNSPECIFIED = 0; + */ + PROFILE_UNSPECIFIED(0), + /** + * + * + *
+     * Prioritize optimizing utilization of resources.
+     * 
+ * + * OPTIMIZE_UTILIZATION = 1; + */ + OPTIMIZE_UTILIZATION(1), + /** + * + * + *
+     * Use default (balanced) autoscaling configuration.
+     * 
+ * + * BALANCED = 2; + */ + BALANCED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * No change to autoscaling configuration.
+     * 
+ * + * PROFILE_UNSPECIFIED = 0; + */ + public static final int PROFILE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Prioritize optimizing utilization of resources.
+     * 
+ * + * OPTIMIZE_UTILIZATION = 1; + */ + public static final int OPTIMIZE_UTILIZATION_VALUE = 1; + /** + * + * + *
+     * Use default (balanced) autoscaling configuration.
+     * 
+ * + * BALANCED = 2; + */ + public static final int BALANCED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AutoscalingProfile valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static AutoscalingProfile forNumber(int value) { + switch (value) { + case 0: + return PROFILE_UNSPECIFIED; + case 1: + return OPTIMIZE_UTILIZATION; + case 2: + return BALANCED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AutoscalingProfile findValueByNumber(int number) { + return AutoscalingProfile.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1beta1.ClusterAutoscaling.getDescriptor().getEnumTypes().get(0); + } + + private static final AutoscalingProfile[] VALUES = values(); + + public static AutoscalingProfile valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private AutoscalingProfile(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile) + } + + public static final int ENABLE_NODE_AUTOPROVISIONING_FIELD_NUMBER = 1; + private boolean enableNodeAutoprovisioning_; + /** + * + * + *
+   * Enables automatic node pool creation and deletion.
+   * 
+ * + * bool enable_node_autoprovisioning = 1; + * + * @return The enableNodeAutoprovisioning. + */ + @java.lang.Override + public boolean getEnableNodeAutoprovisioning() { + return enableNodeAutoprovisioning_; + } + + public static final int RESOURCE_LIMITS_FIELD_NUMBER = 2; + private java.util.List resourceLimits_; + /** + * + * + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + @java.lang.Override + public java.util.List getResourceLimitsList() { + return resourceLimits_; + } + /** + * + * + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + @java.lang.Override + public java.util.List + getResourceLimitsOrBuilderList() { + return resourceLimits_; + } + /** + * + * + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + @java.lang.Override + public int getResourceLimitsCount() { + return resourceLimits_.size(); + } + /** + * + * + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + @java.lang.Override + public com.google.container.v1beta1.ResourceLimit getResourceLimits(int index) { + return resourceLimits_.get(index); + } + /** + * + * + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + @java.lang.Override + public com.google.container.v1beta1.ResourceLimitOrBuilder getResourceLimitsOrBuilder(int index) { + return resourceLimits_.get(index); + } + + public static final int AUTOSCALING_PROFILE_FIELD_NUMBER = 3; + private int autoscalingProfile_; + /** + * + * + *
+   * Defines autoscaling behaviour.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * + * + * @return The enum numeric value on the wire for autoscalingProfile. + */ + @java.lang.Override + public int getAutoscalingProfileValue() { + return autoscalingProfile_; + } + /** + * + * + *
+   * Defines autoscaling behaviour.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * + * + * @return The autoscalingProfile. + */ + @java.lang.Override + public com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile + getAutoscalingProfile() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile result = + com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile.valueOf( + autoscalingProfile_); + return result == null + ? com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile.UNRECOGNIZED + : result; + } + + public static final int AUTOPROVISIONING_NODE_POOL_DEFAULTS_FIELD_NUMBER = 4; + private com.google.container.v1beta1.AutoprovisioningNodePoolDefaults + autoprovisioningNodePoolDefaults_; + /** + * + * + *
+   * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+   * created by NAP.
+   * 
+ * + * + * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * + * + * @return Whether the autoprovisioningNodePoolDefaults field is set. + */ + @java.lang.Override + public boolean hasAutoprovisioningNodePoolDefaults() { + return autoprovisioningNodePoolDefaults_ != null; + } + /** + * + * + *
+   * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+   * created by NAP.
+   * 
+ * + * + * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * + * + * @return The autoprovisioningNodePoolDefaults. + */ + @java.lang.Override + public com.google.container.v1beta1.AutoprovisioningNodePoolDefaults + getAutoprovisioningNodePoolDefaults() { + return autoprovisioningNodePoolDefaults_ == null + ? com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.getDefaultInstance() + : autoprovisioningNodePoolDefaults_; + } + /** + * + * + *
+   * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+   * created by NAP.
+   * 
+ * + * + * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * + */ + @java.lang.Override + public com.google.container.v1beta1.AutoprovisioningNodePoolDefaultsOrBuilder + getAutoprovisioningNodePoolDefaultsOrBuilder() { + return getAutoprovisioningNodePoolDefaults(); + } + + public static final int AUTOPROVISIONING_LOCATIONS_FIELD_NUMBER = 5; + private com.google.protobuf.LazyStringList autoprovisioningLocations_; + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes can be created by NAP.
+   * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @return A list containing the autoprovisioningLocations. + */ + public com.google.protobuf.ProtocolStringList getAutoprovisioningLocationsList() { + return autoprovisioningLocations_; + } + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes can be created by NAP.
+   * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @return The count of autoprovisioningLocations. + */ + public int getAutoprovisioningLocationsCount() { + return autoprovisioningLocations_.size(); + } + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes can be created by NAP.
+   * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @param index The index of the element to return. + * @return The autoprovisioningLocations at the given index. + */ + public java.lang.String getAutoprovisioningLocations(int index) { + return autoprovisioningLocations_.get(index); + } + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes can be created by NAP.
+   * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @param index The index of the value to return. + * @return The bytes of the autoprovisioningLocations at the given index. + */ + public com.google.protobuf.ByteString getAutoprovisioningLocationsBytes(int index) { + return autoprovisioningLocations_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enableNodeAutoprovisioning_ != false) { + output.writeBool(1, enableNodeAutoprovisioning_); + } + for (int i = 0; i < resourceLimits_.size(); i++) { + output.writeMessage(2, resourceLimits_.get(i)); + } + if (autoscalingProfile_ + != com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile.PROFILE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, autoscalingProfile_); + } + if (autoprovisioningNodePoolDefaults_ != null) { + output.writeMessage(4, getAutoprovisioningNodePoolDefaults()); + } + for (int i = 0; i < autoprovisioningLocations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 5, autoprovisioningLocations_.getRaw(i)); + } + 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 (autoprovisioningNodePoolDefaults_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getAutoprovisioningNodePoolDefaults()); + } + { + int dataSize = 0; + for (int i = 0; i < autoprovisioningLocations_.size(); i++) { + dataSize += computeStringSizeNoTag(autoprovisioningLocations_.getRaw(i)); + } + size += dataSize; + size += 1 * getAutoprovisioningLocationsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enableNodeAutoprovisioning_ = false; + + if (resourceLimitsBuilder_ == null) { + resourceLimits_ = java.util.Collections.emptyList(); + } else { + resourceLimits_ = null; + resourceLimitsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + autoscalingProfile_ = 0; + + if (autoprovisioningNodePoolDefaultsBuilder_ == null) { + autoprovisioningNodePoolDefaults_ = null; + } else { + autoprovisioningNodePoolDefaults_ = null; + autoprovisioningNodePoolDefaultsBuilder_ = null; + } + autoprovisioningLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ClusterAutoscaling_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ClusterAutoscaling getDefaultInstanceForType() { + return com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ClusterAutoscaling build() { + com.google.container.v1beta1.ClusterAutoscaling result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ClusterAutoscaling buildPartial() { + com.google.container.v1beta1.ClusterAutoscaling result = + new com.google.container.v1beta1.ClusterAutoscaling(this); + int from_bitField0_ = bitField0_; + result.enableNodeAutoprovisioning_ = enableNodeAutoprovisioning_; + if (resourceLimitsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + resourceLimits_ = java.util.Collections.unmodifiableList(resourceLimits_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.resourceLimits_ = resourceLimits_; + } else { + result.resourceLimits_ = resourceLimitsBuilder_.build(); + } + result.autoscalingProfile_ = autoscalingProfile_; + if (autoprovisioningNodePoolDefaultsBuilder_ == null) { + result.autoprovisioningNodePoolDefaults_ = autoprovisioningNodePoolDefaults_; + } else { + result.autoprovisioningNodePoolDefaults_ = autoprovisioningNodePoolDefaultsBuilder_.build(); + } + if (((bitField0_ & 0x00000002) != 0)) { + autoprovisioningLocations_ = autoprovisioningLocations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.autoprovisioningLocations_ = autoprovisioningLocations_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ClusterAutoscaling) { + return mergeFrom((com.google.container.v1beta1.ClusterAutoscaling) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ClusterAutoscaling other) { + if (other == com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance()) + return this; + if (other.getEnableNodeAutoprovisioning() != false) { + setEnableNodeAutoprovisioning(other.getEnableNodeAutoprovisioning()); + } + if (resourceLimitsBuilder_ == null) { + if (!other.resourceLimits_.isEmpty()) { + if (resourceLimits_.isEmpty()) { + resourceLimits_ = other.resourceLimits_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResourceLimitsIsMutable(); + resourceLimits_.addAll(other.resourceLimits_); + } + onChanged(); + } + } else { + if (!other.resourceLimits_.isEmpty()) { + if (resourceLimitsBuilder_.isEmpty()) { + resourceLimitsBuilder_.dispose(); + resourceLimitsBuilder_ = null; + resourceLimits_ = other.resourceLimits_; + bitField0_ = (bitField0_ & ~0x00000001); + resourceLimitsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResourceLimitsFieldBuilder() + : null; + } else { + resourceLimitsBuilder_.addAllMessages(other.resourceLimits_); + } + } + } + if (other.autoscalingProfile_ != 0) { + setAutoscalingProfileValue(other.getAutoscalingProfileValue()); + } + if (other.hasAutoprovisioningNodePoolDefaults()) { + mergeAutoprovisioningNodePoolDefaults(other.getAutoprovisioningNodePoolDefaults()); + } + if (!other.autoprovisioningLocations_.isEmpty()) { + if (autoprovisioningLocations_.isEmpty()) { + autoprovisioningLocations_ = other.autoprovisioningLocations_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAutoprovisioningLocationsIsMutable(); + autoprovisioningLocations_.addAll(other.autoprovisioningLocations_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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(); + + break; + } // case 24 + case 34: + { + input.readMessage( + getAutoprovisioningNodePoolDefaultsFieldBuilder().getBuilder(), + extensionRegistry); + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Enables automatic node pool creation and deletion.
+     * 
+ * + * bool enable_node_autoprovisioning = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnableNodeAutoprovisioning() { + + enableNodeAutoprovisioning_ = false; + onChanged(); + return this; + } + + private java.util.List resourceLimits_ = + java.util.Collections.emptyList(); + + private void ensureResourceLimitsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + resourceLimits_ = + new java.util.ArrayList(resourceLimits_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.ResourceLimit, + com.google.container.v1beta1.ResourceLimit.Builder, + com.google.container.v1beta1.ResourceLimitOrBuilder> + resourceLimitsBuilder_; + + /** + * + * + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public java.util.List getResourceLimitsList() { + if (resourceLimitsBuilder_ == null) { + return java.util.Collections.unmodifiableList(resourceLimits_); + } else { + return resourceLimitsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public int getResourceLimitsCount() { + if (resourceLimitsBuilder_ == null) { + return resourceLimits_.size(); + } else { + return resourceLimitsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public com.google.container.v1beta1.ResourceLimit getResourceLimits(int index) { + if (resourceLimitsBuilder_ == null) { + return resourceLimits_.get(index); + } else { + return resourceLimitsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public Builder setResourceLimits(int index, com.google.container.v1beta1.ResourceLimit value) { + if (resourceLimitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceLimitsIsMutable(); + resourceLimits_.set(index, value); + onChanged(); + } else { + resourceLimitsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public Builder setResourceLimits( + int index, com.google.container.v1beta1.ResourceLimit.Builder builderForValue) { + if (resourceLimitsBuilder_ == null) { + ensureResourceLimitsIsMutable(); + resourceLimits_.set(index, builderForValue.build()); + onChanged(); + } else { + resourceLimitsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public Builder addResourceLimits(com.google.container.v1beta1.ResourceLimit value) { + if (resourceLimitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceLimitsIsMutable(); + resourceLimits_.add(value); + onChanged(); + } else { + resourceLimitsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public Builder addResourceLimits(int index, com.google.container.v1beta1.ResourceLimit value) { + if (resourceLimitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceLimitsIsMutable(); + resourceLimits_.add(index, value); + onChanged(); + } else { + resourceLimitsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public Builder addResourceLimits( + com.google.container.v1beta1.ResourceLimit.Builder builderForValue) { + if (resourceLimitsBuilder_ == null) { + ensureResourceLimitsIsMutable(); + resourceLimits_.add(builderForValue.build()); + onChanged(); + } else { + resourceLimitsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public Builder addResourceLimits( + int index, com.google.container.v1beta1.ResourceLimit.Builder builderForValue) { + if (resourceLimitsBuilder_ == null) { + ensureResourceLimitsIsMutable(); + resourceLimits_.add(index, builderForValue.build()); + onChanged(); + } else { + resourceLimitsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public Builder addAllResourceLimits( + java.lang.Iterable values) { + if (resourceLimitsBuilder_ == null) { + ensureResourceLimitsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceLimits_); + onChanged(); + } else { + resourceLimitsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public Builder clearResourceLimits() { + if (resourceLimitsBuilder_ == null) { + resourceLimits_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + resourceLimitsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public Builder removeResourceLimits(int index) { + if (resourceLimitsBuilder_ == null) { + ensureResourceLimitsIsMutable(); + resourceLimits_.remove(index); + onChanged(); + } else { + resourceLimitsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public com.google.container.v1beta1.ResourceLimit.Builder getResourceLimitsBuilder(int index) { + return getResourceLimitsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public com.google.container.v1beta1.ResourceLimitOrBuilder getResourceLimitsOrBuilder( + int index) { + if (resourceLimitsBuilder_ == null) { + return resourceLimits_.get(index); + } else { + return resourceLimitsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public java.util.List + getResourceLimitsOrBuilderList() { + if (resourceLimitsBuilder_ != null) { + return resourceLimitsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(resourceLimits_); + } + } + /** + * + * + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public com.google.container.v1beta1.ResourceLimit.Builder addResourceLimitsBuilder() { + return getResourceLimitsFieldBuilder() + .addBuilder(com.google.container.v1beta1.ResourceLimit.getDefaultInstance()); + } + /** + * + * + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public com.google.container.v1beta1.ResourceLimit.Builder addResourceLimitsBuilder(int index) { + return getResourceLimitsFieldBuilder() + .addBuilder(index, com.google.container.v1beta1.ResourceLimit.getDefaultInstance()); + } + /** + * + * + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public java.util.List + getResourceLimitsBuilderList() { + return getResourceLimitsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.ResourceLimit, + com.google.container.v1beta1.ResourceLimit.Builder, + com.google.container.v1beta1.ResourceLimitOrBuilder> + getResourceLimitsFieldBuilder() { + if (resourceLimitsBuilder_ == null) { + resourceLimitsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.ResourceLimit, + com.google.container.v1beta1.ResourceLimit.Builder, + com.google.container.v1beta1.ResourceLimitOrBuilder>( + resourceLimits_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + resourceLimits_ = null; + } + return resourceLimitsBuilder_; + } + + private int autoscalingProfile_ = 0; + /** + * + * + *
+     * Defines autoscaling behaviour.
+     * 
+ * + * + * .google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * + * + * @return The enum numeric value on the wire for autoscalingProfile. + */ + @java.lang.Override + public int getAutoscalingProfileValue() { + return autoscalingProfile_; + } + /** + * + * + *
+     * Defines autoscaling behaviour.
+     * 
+ * + * + * .google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * + * + * @param value The enum numeric value on the wire for autoscalingProfile to set. + * @return This builder for chaining. + */ + public Builder setAutoscalingProfileValue(int value) { + + autoscalingProfile_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Defines autoscaling behaviour.
+     * 
+ * + * + * .google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * + * + * @return The autoscalingProfile. + */ + @java.lang.Override + public com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile + getAutoscalingProfile() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile result = + com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile.valueOf( + autoscalingProfile_); + return result == null + ? com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Defines autoscaling behaviour.
+     * 
+ * + * + * .google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * + * + * @param value The autoscalingProfile to set. + * @return This builder for chaining. + */ + public Builder setAutoscalingProfile( + com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile value) { + if (value == null) { + throw new NullPointerException(); + } + + autoscalingProfile_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Defines autoscaling behaviour.
+     * 
+ * + * + * .google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * + * + * @return This builder for chaining. + */ + public Builder clearAutoscalingProfile() { + + autoscalingProfile_ = 0; + onChanged(); + return this; + } + + private com.google.container.v1beta1.AutoprovisioningNodePoolDefaults + autoprovisioningNodePoolDefaults_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AutoprovisioningNodePoolDefaults, + com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.Builder, + com.google.container.v1beta1.AutoprovisioningNodePoolDefaultsOrBuilder> + autoprovisioningNodePoolDefaultsBuilder_; + /** + * + * + *
+     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+     * created by NAP.
+     * 
+ * + * + * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * + * + * @return Whether the autoprovisioningNodePoolDefaults field is set. + */ + public boolean hasAutoprovisioningNodePoolDefaults() { + return autoprovisioningNodePoolDefaultsBuilder_ != null + || autoprovisioningNodePoolDefaults_ != null; + } + /** + * + * + *
+     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+     * created by NAP.
+     * 
+ * + * + * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * + * + * @return The autoprovisioningNodePoolDefaults. + */ + public com.google.container.v1beta1.AutoprovisioningNodePoolDefaults + getAutoprovisioningNodePoolDefaults() { + if (autoprovisioningNodePoolDefaultsBuilder_ == null) { + return autoprovisioningNodePoolDefaults_ == null + ? com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.getDefaultInstance() + : autoprovisioningNodePoolDefaults_; + } else { + return autoprovisioningNodePoolDefaultsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+     * created by NAP.
+     * 
+ * + * + * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * + */ + public Builder setAutoprovisioningNodePoolDefaults( + com.google.container.v1beta1.AutoprovisioningNodePoolDefaults value) { + if (autoprovisioningNodePoolDefaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autoprovisioningNodePoolDefaults_ = value; + onChanged(); + } else { + autoprovisioningNodePoolDefaultsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+     * created by NAP.
+     * 
+ * + * + * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * + */ + public Builder setAutoprovisioningNodePoolDefaults( + com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.Builder builderForValue) { + if (autoprovisioningNodePoolDefaultsBuilder_ == null) { + autoprovisioningNodePoolDefaults_ = builderForValue.build(); + onChanged(); + } else { + autoprovisioningNodePoolDefaultsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+     * created by NAP.
+     * 
+ * + * + * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * + */ + public Builder mergeAutoprovisioningNodePoolDefaults( + com.google.container.v1beta1.AutoprovisioningNodePoolDefaults value) { + if (autoprovisioningNodePoolDefaultsBuilder_ == null) { + if (autoprovisioningNodePoolDefaults_ != null) { + autoprovisioningNodePoolDefaults_ = + com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.newBuilder( + autoprovisioningNodePoolDefaults_) + .mergeFrom(value) + .buildPartial(); + } else { + autoprovisioningNodePoolDefaults_ = value; + } + onChanged(); + } else { + autoprovisioningNodePoolDefaultsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+     * created by NAP.
+     * 
+ * + * + * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * + */ + public Builder clearAutoprovisioningNodePoolDefaults() { + if (autoprovisioningNodePoolDefaultsBuilder_ == null) { + autoprovisioningNodePoolDefaults_ = null; + onChanged(); + } else { + autoprovisioningNodePoolDefaults_ = null; + autoprovisioningNodePoolDefaultsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+     * created by NAP.
+     * 
+ * + * + * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * + */ + public com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.Builder + getAutoprovisioningNodePoolDefaultsBuilder() { + + onChanged(); + return getAutoprovisioningNodePoolDefaultsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+     * created by NAP.
+     * 
+ * + * + * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * + */ + public com.google.container.v1beta1.AutoprovisioningNodePoolDefaultsOrBuilder + getAutoprovisioningNodePoolDefaultsOrBuilder() { + if (autoprovisioningNodePoolDefaultsBuilder_ != null) { + return autoprovisioningNodePoolDefaultsBuilder_.getMessageOrBuilder(); + } else { + return autoprovisioningNodePoolDefaults_ == null + ? com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.getDefaultInstance() + : autoprovisioningNodePoolDefaults_; + } + } + /** + * + * + *
+     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+     * created by NAP.
+     * 
+ * + * + * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AutoprovisioningNodePoolDefaults, + com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.Builder, + com.google.container.v1beta1.AutoprovisioningNodePoolDefaultsOrBuilder> + getAutoprovisioningNodePoolDefaultsFieldBuilder() { + if (autoprovisioningNodePoolDefaultsBuilder_ == null) { + autoprovisioningNodePoolDefaultsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AutoprovisioningNodePoolDefaults, + com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.Builder, + com.google.container.v1beta1.AutoprovisioningNodePoolDefaultsOrBuilder>( + getAutoprovisioningNodePoolDefaults(), getParentForChildren(), isClean()); + autoprovisioningNodePoolDefaults_ = null; + } + return autoprovisioningNodePoolDefaultsBuilder_; + } + + private com.google.protobuf.LazyStringList autoprovisioningLocations_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAutoprovisioningLocationsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + autoprovisioningLocations_ = + new com.google.protobuf.LazyStringArrayList(autoprovisioningLocations_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes can be created by NAP.
+     * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @return A list containing the autoprovisioningLocations. + */ + public com.google.protobuf.ProtocolStringList getAutoprovisioningLocationsList() { + return autoprovisioningLocations_.getUnmodifiableView(); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes can be created by NAP.
+     * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @return The count of autoprovisioningLocations. + */ + public int getAutoprovisioningLocationsCount() { + return autoprovisioningLocations_.size(); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes can be created by NAP.
+     * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @param index The index of the element to return. + * @return The autoprovisioningLocations at the given index. + */ + public java.lang.String getAutoprovisioningLocations(int index) { + return autoprovisioningLocations_.get(index); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes can be created by NAP.
+     * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @param index The index of the value to return. + * @return The bytes of the autoprovisioningLocations at the given index. + */ + public com.google.protobuf.ByteString getAutoprovisioningLocationsBytes(int index) { + return autoprovisioningLocations_.getByteString(index); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes can be created by NAP.
+     * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @param index The index to set the value at. + * @param value The autoprovisioningLocations to set. + * @return This builder for chaining. + */ + public Builder setAutoprovisioningLocations(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAutoprovisioningLocationsIsMutable(); + autoprovisioningLocations_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes can be created by NAP.
+     * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @param value The autoprovisioningLocations to add. + * @return This builder for chaining. + */ + public Builder addAutoprovisioningLocations(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAutoprovisioningLocationsIsMutable(); + autoprovisioningLocations_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes can be created by NAP.
+     * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @param values The autoprovisioningLocations to add. + * @return This builder for chaining. + */ + public Builder addAllAutoprovisioningLocations(java.lang.Iterable values) { + ensureAutoprovisioningLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, autoprovisioningLocations_); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes can be created by NAP.
+     * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @return This builder for chaining. + */ + public Builder clearAutoprovisioningLocations() { + autoprovisioningLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes can be created by NAP.
+     * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @param value The bytes of the autoprovisioningLocations to add. + * @return This builder for chaining. + */ + public Builder addAutoprovisioningLocationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAutoprovisioningLocationsIsMutable(); + autoprovisioningLocations_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ClusterAutoscaling) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ClusterAutoscaling) + private static final com.google.container.v1beta1.ClusterAutoscaling DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ClusterAutoscaling(); + } + + public static com.google.container.v1beta1.ClusterAutoscaling getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterAutoscaling parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..de9c66f772bd --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterAutoscalingOrBuilder.java @@ -0,0 +1,227 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ClusterAutoscalingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ClusterAutoscaling) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Enables automatic node pool creation and deletion.
+   * 
+ * + * bool enable_node_autoprovisioning = 1; + * + * @return The enableNodeAutoprovisioning. + */ + boolean getEnableNodeAutoprovisioning(); + + /** + * + * + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + java.util.List getResourceLimitsList(); + /** + * + * + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + com.google.container.v1beta1.ResourceLimit getResourceLimits(int index); + /** + * + * + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + int getResourceLimitsCount(); + /** + * + * + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + java.util.List + getResourceLimitsOrBuilderList(); + /** + * + * + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + com.google.container.v1beta1.ResourceLimitOrBuilder getResourceLimitsOrBuilder(int index); + + /** + * + * + *
+   * Defines autoscaling behaviour.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * + * + * @return The enum numeric value on the wire for autoscalingProfile. + */ + int getAutoscalingProfileValue(); + /** + * + * + *
+   * Defines autoscaling behaviour.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * + * + * @return The autoscalingProfile. + */ + com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile getAutoscalingProfile(); + + /** + * + * + *
+   * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+   * created by NAP.
+   * 
+ * + * + * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * + * + * @return Whether the autoprovisioningNodePoolDefaults field is set. + */ + boolean hasAutoprovisioningNodePoolDefaults(); + /** + * + * + *
+   * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+   * created by NAP.
+   * 
+ * + * + * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * + * + * @return The autoprovisioningNodePoolDefaults. + */ + com.google.container.v1beta1.AutoprovisioningNodePoolDefaults + getAutoprovisioningNodePoolDefaults(); + /** + * + * + *
+   * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+   * created by NAP.
+   * 
+ * + * + * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * + */ + com.google.container.v1beta1.AutoprovisioningNodePoolDefaultsOrBuilder + getAutoprovisioningNodePoolDefaultsOrBuilder(); + + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes can be created by NAP.
+   * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @return A list containing the autoprovisioningLocations. + */ + java.util.List getAutoprovisioningLocationsList(); + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes can be created by NAP.
+   * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @return The count of autoprovisioningLocations. + */ + int getAutoprovisioningLocationsCount(); + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes can be created by NAP.
+   * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @param index The index of the element to return. + * @return The autoprovisioningLocations at the given index. + */ + java.lang.String getAutoprovisioningLocations(int index); + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes can be created by NAP.
+   * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @param index The index of the value to return. + * @return The bytes of the autoprovisioningLocations at the given index. + */ + com.google.protobuf.ByteString getAutoprovisioningLocationsBytes(int index); +} diff --git a/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 new file mode 100644 index 000000000000..9a2295f80446 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterOrBuilder.java @@ -0,0 +1,2579 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ClusterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.Cluster) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of this cluster. The name must be unique within this project
+   * and location (e.g. zone or region), and can be up to 40 characters with
+   * the following restrictions:
+   * * Lowercase letters, numbers, and hyphens only.
+   * * Must start with a letter.
+   * * Must end with a number or a letter.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name of this cluster. The name must be unique within this project
+   * and location (e.g. zone or region), and can be up to 40 characters with
+   * the following restrictions:
+   * * Lowercase letters, numbers, and hyphens only.
+   * * Must start with a letter.
+   * * Must end with a number or a letter.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * An optional description of this cluster.
+   * 
+ * + * string description = 2; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * An optional description of this cluster.
+   * 
+ * + * string description = 2; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * The number of nodes to create in this cluster. You must ensure that your
+   * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
+   * is sufficient for this number of instances. You must also have available
+   * firewall and routes quota.
+   * For requests, this field should only be used in lieu of a
+   * "node_pool" object, since this configuration (along with the
+   * "node_config") will be used to create a "NodePool" object with an
+   * auto-generated name. Do not use this and a node_pool at the same time.
+   * This field is deprecated, use node_pool.initial_node_count instead.
+   * 
+ * + * int32 initial_node_count = 3 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Cluster.initial_node_count is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1578 + * @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=1591 + * @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=1591 + * @return The nodeConfig. + */ + @java.lang.Deprecated + com.google.container.v1beta1.NodeConfig getNodeConfig(); + /** + * + * + *
+   * Parameters used in creating the cluster's nodes.
+   * For requests, this field should only be used in lieu of a
+   * "node_pool" object, since this configuration (along with the
+   * "initial_node_count") will be used to create a "NodePool" object with an
+   * auto-generated name. Do not use this and a node_pool at the same time.
+   * For responses, this field will be populated with the node configuration of
+   * the first node pool. (For configuration of each node pool, see
+   * `node_pool.config`)
+   * If unspecified, the defaults are used.
+   * This field is deprecated, use node_pool.config instead.
+   * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; + */ + @java.lang.Deprecated + com.google.container.v1beta1.NodeConfigOrBuilder getNodeConfigOrBuilder(); + + /** + * + * + *
+   * The authentication information for accessing the master endpoint.
+   * If unspecified, the defaults are used:
+   * For clusters before v1.12, if master_auth is unspecified, `username` will
+   * be set to "admin", a random password will be generated, and a client
+   * certificate will be issued.
+   * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + * + * @return Whether the masterAuth field is set. + */ + boolean hasMasterAuth(); + /** + * + * + *
+   * The authentication information for accessing the master endpoint.
+   * If unspecified, the defaults are used:
+   * For clusters before v1.12, if master_auth is unspecified, `username` will
+   * be set to "admin", a random password will be generated, and a client
+   * certificate will be issued.
+   * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + * + * @return The masterAuth. + */ + com.google.container.v1beta1.MasterAuth getMasterAuth(); + /** + * + * + *
+   * The authentication information for accessing the master endpoint.
+   * If unspecified, the defaults are used:
+   * For clusters before v1.12, if master_auth is unspecified, `username` will
+   * be set to "admin", a random password will be generated, and a client
+   * certificate will be issued.
+   * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + */ + com.google.container.v1beta1.MasterAuthOrBuilder getMasterAuthOrBuilder(); + + /** + * + * + *
+   * The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
+   * * `none` - no logs will be exported from the cluster.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+   * 
+ * + * string logging_service = 6; + * + * @return The loggingService. + */ + java.lang.String getLoggingService(); + /** + * + * + *
+   * The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
+   * * `none` - no logs will be exported from the cluster.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+   * 
+ * + * string logging_service = 6; + * + * @return The bytes for loggingService. + */ + com.google.protobuf.ByteString getLoggingServiceBytes(); + + /** + * + * + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+   * 
+ * + * string monitoring_service = 7; + * + * @return The monitoringService. + */ + java.lang.String getMonitoringService(); + /** + * + * + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+   * 
+ * + * string monitoring_service = 7; + * + * @return The bytes for monitoringService. + */ + com.google.protobuf.ByteString getMonitoringServiceBytes(); + + /** + * + * + *
+   * The name of the Google Compute Engine
+   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * to which the cluster is connected. If left unspecified, the `default`
+   * network will be used. On output this shows the network ID instead of the
+   * name.
+   * 
+ * + * string network = 8; + * + * @return The network. + */ + java.lang.String getNetwork(); + /** + * + * + *
+   * The name of the Google Compute Engine
+   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * to which the cluster is connected. If left unspecified, the `default`
+   * network will be used. On output this shows the network ID instead of the
+   * name.
+   * 
+ * + * string network = 8; + * + * @return The bytes for network. + */ + com.google.protobuf.ByteString getNetworkBytes(); + + /** + * + * + *
+   * The IP address range of the container pods in this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`). Leave blank to have
+   * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+   * 
+ * + * string cluster_ipv4_cidr = 9; + * + * @return The clusterIpv4Cidr. + */ + java.lang.String getClusterIpv4Cidr(); + /** + * + * + *
+   * The IP address range of the container pods in this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`). Leave blank to have
+   * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+   * 
+ * + * string cluster_ipv4_cidr = 9; + * + * @return The bytes for clusterIpv4Cidr. + */ + com.google.protobuf.ByteString getClusterIpv4CidrBytes(); + + /** + * + * + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + * + * @return Whether the addonsConfig field is set. + */ + boolean hasAddonsConfig(); + /** + * + * + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + * + * @return The addonsConfig. + */ + com.google.container.v1beta1.AddonsConfig getAddonsConfig(); + /** + * + * + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + */ + com.google.container.v1beta1.AddonsConfigOrBuilder getAddonsConfigOrBuilder(); + + /** + * + * + *
+   * The name of the Google Compute Engine
+   * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
+   * the cluster is connected. On output this shows the subnetwork ID instead of
+   * the name.
+   * 
+ * + * string subnetwork = 11; + * + * @return The subnetwork. + */ + java.lang.String getSubnetwork(); + /** + * + * + *
+   * The name of the Google Compute Engine
+   * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
+   * the cluster is connected. On output this shows the subnetwork ID instead of
+   * the name.
+   * 
+ * + * string subnetwork = 11; + * + * @return The bytes for subnetwork. + */ + com.google.protobuf.ByteString getSubnetworkBytes(); + + /** + * + * + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + java.util.List getNodePoolsList(); + /** + * + * + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + com.google.container.v1beta1.NodePool getNodePools(int index); + /** + * + * + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + int getNodePoolsCount(); + /** + * + * + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + java.util.List + getNodePoolsOrBuilderList(); + /** + * + * + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + com.google.container.v1beta1.NodePoolOrBuilder getNodePoolsOrBuilder(int index); + + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This field provides a default value if
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * are not specified during node pool creation.
+   * Warning: changing cluster locations will update the
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * of all node pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return A list containing the locations. + */ + java.util.List getLocationsList(); + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This field provides a default value if
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * are not specified during node pool creation.
+   * Warning: changing cluster locations will update the
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * of all node pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return The count of locations. + */ + int getLocationsCount(); + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This field provides a default value if
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * are not specified during node pool creation.
+   * Warning: changing cluster locations will update the
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * of all node pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + java.lang.String getLocations(int index); + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This field provides a default value if
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * are not specified during node pool creation.
+   * Warning: changing cluster locations will update the
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * of all node pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + com.google.protobuf.ByteString getLocationsBytes(int index); + + /** + * + * + *
+   * Kubernetes alpha features are enabled on this cluster. This includes alpha
+   * API groups (e.g. v1beta1) and features that may not be production ready in
+   * the kubernetes version of the master and nodes.
+   * The cluster has no SLA for uptime and master/node upgrades are disabled.
+   * Alpha enabled clusters are automatically deleted thirty days after
+   * creation.
+   * 
+ * + * bool enable_kubernetes_alpha = 14; + * + * @return The enableKubernetesAlpha. + */ + boolean getEnableKubernetesAlpha(); + + /** + * + * + *
+   * The resource labels for the cluster to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 15; + */ + int getResourceLabelsCount(); + /** + * + * + *
+   * The resource labels for the cluster to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 15; + */ + boolean containsResourceLabels(java.lang.String key); + /** Use {@link #getResourceLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getResourceLabels(); + /** + * + * + *
+   * The resource labels for the cluster to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 15; + */ + java.util.Map getResourceLabelsMap(); + /** + * + * + *
+   * The resource labels for the cluster to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 15; + */ + + /* 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=1713 + * @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=1720 + * @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=1720 + * @return The bytes for masterIpv4CidrBlock. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes(); + + /** + * + * + *
+   * The default constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool of this cluster. Only honored
+   * if cluster created with IP Alias support.
+   * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + * + * @return Whether the defaultMaxPodsConstraint field is set. + */ + boolean hasDefaultMaxPodsConstraint(); + /** + * + * + *
+   * The default constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool of this cluster. Only honored
+   * if cluster created with IP Alias support.
+   * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + * + * @return The defaultMaxPodsConstraint. + */ + com.google.container.v1beta1.MaxPodsConstraint getDefaultMaxPodsConstraint(); + /** + * + * + *
+   * The default constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool of this cluster. Only honored
+   * if cluster created with IP Alias support.
+   * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + com.google.container.v1beta1.MaxPodsConstraintOrBuilder getDefaultMaxPodsConstraintOrBuilder(); + + /** + * + * + *
+   * Configuration for exporting resource usages. Resource usage export is
+   * disabled when this config unspecified.
+   * 
+ * + * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; + * + * + * @return Whether the resourceUsageExportConfig field is set. + */ + boolean hasResourceUsageExportConfig(); + /** + * + * + *
+   * Configuration for exporting resource usages. Resource usage export is
+   * disabled when this config unspecified.
+   * 
+ * + * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; + * + * + * @return The resourceUsageExportConfig. + */ + com.google.container.v1beta1.ResourceUsageExportConfig getResourceUsageExportConfig(); + /** + * + * + *
+   * Configuration for exporting resource usages. Resource usage export is
+   * disabled when this config unspecified.
+   * 
+ * + * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; + * + */ + com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder + getResourceUsageExportConfigOrBuilder(); + + /** + * + * + *
+   * Configuration controlling RBAC group membership information.
+   * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * + * + * @return Whether the authenticatorGroupsConfig field is set. + */ + boolean hasAuthenticatorGroupsConfig(); + /** + * + * + *
+   * Configuration controlling RBAC group membership information.
+   * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * + * + * @return The authenticatorGroupsConfig. + */ + com.google.container.v1beta1.AuthenticatorGroupsConfig getAuthenticatorGroupsConfig(); + /** + * + * + *
+   * Configuration controlling RBAC group membership information.
+   * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * + */ + com.google.container.v1beta1.AuthenticatorGroupsConfigOrBuilder + getAuthenticatorGroupsConfigOrBuilder(); + + /** + * + * + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + * + * @return Whether the privateClusterConfig field is set. + */ + boolean hasPrivateClusterConfig(); + /** + * + * + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + * + * @return The privateClusterConfig. + */ + com.google.container.v1beta1.PrivateClusterConfig getPrivateClusterConfig(); + /** + * + * + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + */ + com.google.container.v1beta1.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder(); + + /** + * + * + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + * + * @return Whether the verticalPodAutoscaling field is set. + */ + boolean hasVerticalPodAutoscaling(); + /** + * + * + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + * + * @return The verticalPodAutoscaling. + */ + com.google.container.v1beta1.VerticalPodAutoscaling getVerticalPodAutoscaling(); + /** + * + * + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + */ + com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder getVerticalPodAutoscalingOrBuilder(); + + /** + * + * + *
+   * Shielded Nodes configuration.
+   * 
+ * + * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; + * + * @return Whether the shieldedNodes field is set. + */ + boolean hasShieldedNodes(); + /** + * + * + *
+   * Shielded Nodes configuration.
+   * 
+ * + * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; + * + * @return The shieldedNodes. + */ + com.google.container.v1beta1.ShieldedNodes getShieldedNodes(); + /** + * + * + *
+   * Shielded Nodes configuration.
+   * 
+ * + * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; + */ + com.google.container.v1beta1.ShieldedNodesOrBuilder getShieldedNodesOrBuilder(); + + /** + * + * + *
+   * Release channel configuration.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + * + * @return Whether the releaseChannel field is set. + */ + boolean hasReleaseChannel(); + /** + * + * + *
+   * Release channel configuration.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + * + * @return The releaseChannel. + */ + com.google.container.v1beta1.ReleaseChannel getReleaseChannel(); + /** + * + * + *
+   * Release channel configuration.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + */ + com.google.container.v1beta1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder(); + + /** + * + * + *
+   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+   * policies.
+   * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; + * + * @return Whether the workloadIdentityConfig field is set. + */ + boolean hasWorkloadIdentityConfig(); + /** + * + * + *
+   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+   * policies.
+   * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; + * + * @return The workloadIdentityConfig. + */ + com.google.container.v1beta1.WorkloadIdentityConfig getWorkloadIdentityConfig(); + /** + * + * + *
+   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+   * policies.
+   * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; + */ + com.google.container.v1beta1.WorkloadIdentityConfigOrBuilder getWorkloadIdentityConfigOrBuilder(); + + /** + * + * + *
+   * 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=1786 + * @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=1786 + * @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=1819 + * @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=1819 + * @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=1831 + * @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=1831 + * @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=1847 + * @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=1847 + * @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=1847 + * @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=1847 + * @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=1851 + * @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(); + + /** + * + * + *
+   * Enable/Disable Protect API features for the cluster.
+   * 
+ * + * optional .google.container.v1beta1.ProtectConfig protect_config = 137; + * + * @return Whether the protectConfig field is set. + */ + boolean hasProtectConfig(); + /** + * + * + *
+   * Enable/Disable Protect API features for the cluster.
+   * 
+ * + * optional .google.container.v1beta1.ProtectConfig protect_config = 137; + * + * @return The protectConfig. + */ + com.google.container.v1beta1.ProtectConfig getProtectConfig(); + /** + * + * + *
+   * Enable/Disable Protect API features for the cluster.
+   * 
+ * + * optional .google.container.v1beta1.ProtectConfig protect_config = 137; + */ + com.google.container.v1beta1.ProtectConfigOrBuilder getProtectConfigOrBuilder(); +} 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 new file mode 100644 index 000000000000..946a15434b19 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterServiceProto.java @@ -0,0 +1,3737 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public final class ClusterServiceProto { + private ClusterServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_LinuxNodeConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_LinuxNodeConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_LinuxNodeConfig_SysctlsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_LinuxNodeConfig_SysctlsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NodeKubeletConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NodeKubeletConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NodeConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NodeConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NodeConfig_MetadataEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NodeConfig_MetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NodeConfig_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NodeConfig_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_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_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_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_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_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_PrivateClusterMasterGlobalAccessConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_PrivateClusterMasterGlobalAccessConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_PrivateClusterConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_PrivateClusterConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_IstioConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_IstioConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_CloudRunConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_CloudRunConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_CidrBlock_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_LegacyAbac_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_LegacyAbac_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NetworkPolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NetworkPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_IPAllocationPolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_IPAllocationPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_BinaryAuthorization_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_BinaryAuthorization_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_PodSecurityPolicyConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_PodSecurityPolicyConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_AuthenticatorGroupsConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_AuthenticatorGroupsConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ClusterTelemetry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ClusterTelemetry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_Cluster_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_Cluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_Cluster_ResourceLabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_Cluster_ResourceLabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_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_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_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_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_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_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_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_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_GetOpenIDConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_GetOpenIDConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_GetOpenIDConfigResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_GetOpenIDConfigResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_GetJSONWebKeysRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_GetJSONWebKeysRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_Jwk_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_Jwk_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_GetJSONWebKeysResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_GetJSONWebKeysResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ReleaseChannel_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ReleaseChannel_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_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_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_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_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; + + 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\"\230\001\n\021NodeKubeletConfig\022\032\n\022cpu_mana" + + "ger_policy\030\001 \001(\t\0221\n\rcpu_cfs_quota\030\002 \001(\0132" + + "\032.google.protobuf.BoolValue\022\034\n\024cpu_cfs_q" + + "uota_period\030\003 \001(\t\022\026\n\016pod_pids_limit\030\004 \001(" + + "\003\"\370\014\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\010metadata\030" + + "\004 \003(\01322.google.container.v1beta1.NodeCon" + + "fig.MetadataEntry\022\022\n\nimage_type\030\005 \001(\t\022@\n" + + "\006labels\030\006 \003(\01320.google.container.v1beta1" + + ".NodeConfig.LabelsEntry\022\027\n\017local_ssd_cou" + + "nt\030\007 \001(\005\022\014\n\004tags\030\010 \003(\t\022\023\n\013preemptible\030\n " + + "\001(\010\022A\n\014accelerators\030\013 \003(\0132+.google.conta" + + "iner.v1beta1.AcceleratorConfig\022?\n\016sandbo" + + "x_config\030\021 \001(\0132\'.google.container.v1beta" + + "1.SandboxConfig\022\022\n\nnode_group\030\022 \001(\t\022K\n\024r" + + "eservation_affinity\030\023 \001(\0132-.google.conta" + + "iner.v1beta1.ReservationAffinity\022\021\n\tdisk" + + "_type\030\014 \001(\t\022\030\n\020min_cpu_platform\030\r \001(\t\022R\n" + + "\030workload_metadata_config\030\016 \001(\01320.google" + + ".container.v1beta1.WorkloadMetadataConfi" + + "g\0223\n\006taints\030\017 \003(\0132#.google.container.v1b" + + "eta1.NodeTaint\022\031\n\021boot_disk_kms_key\030\027 \001(" + + "\t\022R\n\030shielded_instance_config\030\024 \001(\01320.go" + + "ogle.container.v1beta1.ShieldedInstanceC" + + "onfig\022D\n\021linux_node_config\030\025 \001(\0132).googl" + + "e.container.v1beta1.LinuxNodeConfig\022C\n\016k" + + "ubelet_config\030\026 \001(\0132+.google.container.v" + + "1beta1.NodeKubeletConfig\022R\n\030ephemeral_st" + + "orage_config\030\030 \001(\01320.google.container.v1" + + "beta1.EphemeralStorageConfig\0229\n\013gcfs_con" + + "fig\030\031 \001(\0132$.google.container.v1beta1.Gcf" + + "sConfig\022T\n\031advanced_machine_features\030\032 \001" + + "(\01321.google.container.v1beta1.AdvancedMa" + + "chineFeatures\0223\n\005gvnic\030\035 \001(\0132$.google.co" + + "ntainer.v1beta1.VirtualNIC\022\014\n\004spot\030 \001(\010" + + "\022G\n\022confidential_nodes\030# \001(\0132+.google.co" + + "ntainer.v1beta1.ConfidentialNodes\022Q\n\017res" + + "ource_labels\030% \003(\01328.google.container.v1" + + "beta1.NodeConfig.ResourceLabelsEntry\022G\n\016" + + "logging_config\030& \001(\0132/.google.container." + + "v1beta1.NodePoolLoggingConfig\032/\n\rMetadat" + + "aEntry\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\001\"M\n\027AdvancedMachineF" + + "eatures\022\035\n\020threads_per_core\030\001 \001(\003H\000\210\001\001B\023" + + "\n\021_threads_per_core\"\251\005\n\021NodeNetworkConfi" + + "g\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_cidr_block\030\006 \001(\t" + + "\022!\n\024enable_private_nodes\030\t \001(\010H\000\210\001\001\022m\n\032n" + + "etwork_performance_config\030\013 \001(\0132D.google" + + ".container.v1beta1.NodeNetworkConfig.Net" + + "workPerformanceConfigH\001\210\001\001\032\372\002\n\030NetworkPe" + + "rformanceConfig\022s\n\033total_egress_bandwidt" + + "h_tier\030\001 \001(\0162I.google.container.v1beta1." + + "NodeNetworkConfig.NetworkPerformanceConf" + + "ig.TierH\000\210\001\001\022y\n!external_ip_egress_bandw" + + "idth_tier\030\002 \001(\0162I.google.container.v1bet" + + "a1.NodeNetworkConfig.NetworkPerformanceC" + + "onfig.TierH\001\210\001\001\"(\n\004Tier\022\024\n\020TIER_UNSPECIF" + + "IED\020\000\022\n\n\006TIER_1\020\001B\036\n\034_total_egress_bandw" + + "idth_tierB$\n\"_external_ip_egress_bandwid" + + "th_tierB\027\n\025_enable_private_nodesB\035\n\033_net" + + "work_performance_config\"Y\n\026ShieldedInsta" + + "nceConfig\022\032\n\022enable_secure_boot\030\001 \001(\010\022#\n" + + "\033enable_integrity_monitoring\030\002 \001(\010\"\212\001\n\rS" + + "andboxConfig\022\030\n\014sandbox_type\030\001 \001(\tB\002\030\001\022:" + + "\n\004type\030\002 \001(\0162,.google.container.v1beta1." + + "SandboxConfig.Type\"#\n\004Type\022\017\n\013UNSPECIFIE" + + "D\020\000\022\n\n\006GVISOR\020\001\"1\n\026EphemeralStorageConfi" + + "g\022\027\n\017local_ssd_count\030\001 \001(\005\"\035\n\nGcfsConfig" + + "\022\017\n\007enabled\030\001 \001(\010\"\344\001\n\023ReservationAffinit" + + "y\022T\n\030consume_reservation_type\030\001 \001(\01622.go" + + "ogle.container.v1beta1.ReservationAffini" + + "ty.Type\022\013\n\003key\030\002 \001(\t\022\016\n\006values\030\003 \003(\t\"Z\n\004" + + "Type\022\017\n\013UNSPECIFIED\020\000\022\022\n\016NO_RESERVATION\020" + + "\001\022\023\n\017ANY_RESERVATION\020\002\022\030\n\024SPECIFIC_RESER" + + "VATION\020\003\"\276\001\n\tNodeTaint\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t\022:\n\006effect\030\003 \001(\0162*.google.cont" + + "ainer.v1beta1.NodeTaint.Effect\"Y\n\006Effect" + + "\022\026\n\022EFFECT_UNSPECIFIED\020\000\022\017\n\013NO_SCHEDULE\020" + + "\001\022\026\n\022PREFER_NO_SCHEDULE\020\002\022\016\n\nNO_EXECUTE\020" + + "\003\"A\n\nNodeTaints\0223\n\006taints\030\001 \003(\0132#.google" + + ".container.v1beta1.NodeTaint\"}\n\nNodeLabe" + + "ls\022@\n\006labels\030\001 \003(\01320.google.container.v1" + + "beta1.NodeLabels.LabelsEntry\032-\n\013LabelsEn" + + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\205\001\n\016" + + "ResourceLabels\022D\n\006labels\030\001 \003(\01324.google." + + "container.v1beta1.ResourceLabels.LabelsE" + + "ntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\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_certificat" + + "e_config\030\003 \001(\01321.google.container.v1beta" + + "1.ClientCertificateConfig\022\036\n\026cluster_ca_" + + "certificate\030d \001(\t\022\032\n\022client_certificate\030" + + "e \001(\t\022\022\n\nclient_key\030f \001(\t\";\n\027ClientCerti" + + "ficateConfig\022 \n\030issue_client_certificate" + + "\030\001 \001(\010\"\305\007\n\014AddonsConfig\022H\n\023http_load_bal" + + "ancing\030\001 \001(\0132+.google.container.v1beta1." + + "HttpLoadBalancing\022V\n\032horizontal_pod_auto" + + "scaling\030\002 \001(\01322.google.container.v1beta1" + + ".HorizontalPodAutoscaling\022O\n\024kubernetes_" + + "dashboard\030\003 \001(\0132-.google.container.v1bet" + + "a1.KubernetesDashboardB\002\030\001\022L\n\025network_po" + + "licy_config\030\004 \001(\0132-.google.container.v1b" + + "eta1.NetworkPolicyConfig\022?\n\014istio_config" + + "\030\005 \001(\0132%.google.container.v1beta1.IstioC" + + "onfigB\002\030\001\022B\n\020cloud_run_config\030\007 \001(\0132(.go" + + "ogle.container.v1beta1.CloudRunConfig\022B\n" + + "\020dns_cache_config\030\010 \001(\0132(.google.contain" + + "er.v1beta1.DnsCacheConfig\022P\n\027config_conn" + + "ector_config\030\n \001(\0132/.google.container.v1" + + "beta1.ConfigConnectorConfig\022i\n%gce_persi" + + "stent_disk_csi_driver_config\030\013 \001(\0132:.goo" + + "gle.container.v1beta1.GcePersistentDiskC" + + "siDriverConfig\022=\n\013kalm_config\030\014 \001(\0132$.go" + + "ogle.container.v1beta1.KalmConfigB\002\030\001\022^\n" + + "\037gcp_filestore_csi_driver_config\030\016 \001(\01325" + + ".google.container.v1beta1.GcpFilestoreCs" + + "iDriverConfig\022O\n\027gke_backup_agent_config" + + "\030\020 \001(\0132..google.container.v1beta1.GkeBac" + + "kupAgentConfig\"%\n\021HttpLoadBalancing\022\020\n\010d" + + "isabled\030\001 \001(\010\",\n\030HorizontalPodAutoscalin" + + "g\022\020\n\010disabled\030\001 \001(\010\"\'\n\023KubernetesDashboa" + + "rd\022\020\n\010disabled\030\001 \001(\010\"\'\n\023NetworkPolicyCon" + + "fig\022\020\n\010disabled\030\001 \001(\010\"!\n\016DnsCacheConfig\022" + + "\017\n\007enabled\030\001 \001(\010\"!\n\nKalmConfig\022\023\n\007enable" + + "d\030\001 \001(\010B\002\030\001\"\'\n\024GkeBackupAgentConfig\022\017\n\007e" + + "nabled\030\001 \001(\010\"(\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\"9\n&P" + + "rivateClusterMasterGlobalAccessConfig\022\017\n" + + "\007enabled\030\001 \001(\010\"\312\002\n\024PrivateClusterConfig\022" + + "\034\n\024enable_private_nodes\030\001 \001(\010\022\037\n\027enable_" + + "private_endpoint\030\002 \001(\010\022\036\n\026master_ipv4_ci" + + "dr_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_nam" + + "e\030\007 \001(\t\022e\n\033master_global_access_config\030\010" + + " \001(\0132@.google.container.v1beta1.PrivateC" + + "lusterMasterGlobalAccessConfig\022#\n\033privat" + + "e_endpoint_subnetwork\030\n \001(\t\"\237\001\n\013IstioCon" + + "fig\022\024\n\010disabled\030\001 \001(\010B\002\030\001\022E\n\004auth\030\002 \001(\0162" + + "3.google.container.v1beta1.IstioConfig.I" + + "stioAuthModeB\002\030\001\"3\n\rIstioAuthMode\022\r\n\tAUT" + + "H_NONE\020\000\022\023\n\017AUTH_MUTUAL_TLS\020\001\"\363\001\n\016CloudR" + + "unConfig\022\020\n\010disabled\030\001 \001(\010\022U\n\022load_balan" + + "cer_type\030\003 \001(\01629.google.container.v1beta" + + "1.CloudRunConfig.LoadBalancerType\"x\n\020Loa" + + "dBalancerType\022\"\n\036LOAD_BALANCER_TYPE_UNSP" + + "ECIFIED\020\000\022\037\n\033LOAD_BALANCER_TYPE_EXTERNAL" + + "\020\001\022\037\n\033LOAD_BALANCER_TYPE_INTERNAL\020\002\"\223\002\n\036" + + "MasterAuthorizedNetworksConfig\022\017\n\007enable" + + "d\030\001 \001(\010\022W\n\013cidr_blocks\030\002 \003(\0132B.google.co" + + "ntainer.v1beta1.MasterAuthorizedNetworks" + + "Config.CidrBlock\022,\n\037gcp_public_cidrs_acc" + + "ess_enabled\030\003 \001(\010H\000\210\001\001\0325\n\tCidrBlock\022\024\n\014d" + + "isplay_name\030\001 \001(\t\022\022\n\ncidr_block\030\002 \001(\tB\"\n" + + " _gcp_public_cidrs_access_enabled\"\035\n\nLeg" + + "acyAbac\022\017\n\007enabled\030\001 \001(\010\"\226\001\n\rNetworkPoli" + + "cy\022B\n\010provider\030\001 \001(\01620.google.container." + + "v1beta1.NetworkPolicy.Provider\022\017\n\007enable" + + "d\030\002 \001(\010\"0\n\010Provider\022\030\n\024PROVIDER_UNSPECIF" + + "IED\020\000\022\n\n\006CALICO\020\001\"\270\006\n\022IPAllocationPolicy" + + "\022\026\n\016use_ip_aliases\030\001 \001(\010\022\031\n\021create_subne" + + "twork\030\002 \001(\010\022\027\n\017subnetwork_name\030\003 \001(\t\022\035\n\021" + + "cluster_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_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\023allow_route_ove" + + "rlap\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\nstack_type\030\020 \001(\0162" + + "6.google.container.v1beta1.IPAllocationP" + + "olicy.StackType\022U\n\020ipv6_access_type\030\021 \001(" + + "\0162;.google.container.v1beta1.IPAllocatio" + + "nPolicy.IPv6AccessType\022#\n\026subnet_ipv6_ci" + + "dr_block\030\026 \001(\tB\003\340A\003\022%\n\030services_ipv6_cid" + + "r_block\030\027 \001(\tB\003\340A\003\"@\n\tStackType\022\032\n\026STACK" + + "_TYPE_UNSPECIFIED\020\000\022\010\n\004IPV4\020\001\022\r\n\tIPV4_IP" + + "V6\020\002\"N\n\016IPv6AccessType\022 \n\034IPV6_ACCESS_TY" + + "PE_UNSPECIFIED\020\000\022\014\n\010INTERNAL\020\001\022\014\n\010EXTERN" + + "AL\020\002\"\350\001\n\023BinaryAuthorization\022\023\n\007enabled\030" + + "\001 \001(\010B\002\030\001\022U\n\017evaluation_mode\030\002 \001(\0162<.goo" + + "gle.container.v1beta1.BinaryAuthorizatio" + + "n.EvaluationMode\"e\n\016EvaluationMode\022\037\n\033EV" + + "ALUATION_MODE_UNSPECIFIED\020\000\022\014\n\010DISABLED\020" + + "\001\022$\n PROJECT_SINGLETON_POLICY_ENFORCE\020\002\"" + + "*\n\027PodSecurityPolicyConfig\022\017\n\007enabled\030\001 " + + "\001(\010\"D\n\031AuthenticatorGroupsConfig\022\017\n\007enab" + + "led\030\001 \001(\010\022\026\n\016security_group\030\002 \001(\t\"\226\001\n\020Cl" + + "usterTelemetry\022=\n\004type\030\001 \001(\0162/.google.co" + + "ntainer.v1beta1.ClusterTelemetry.Type\"C\n" + + "\004Type\022\017\n\013UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\013\n\007" + + "ENABLED\020\002\022\017\n\013SYSTEM_ONLY\020\003\"\360\036\n\007Cluster\022\014" + + "\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022\036\n\022ini" + + "tial_node_count\030\003 \001(\005B\002\030\001\022=\n\013node_config" + + "\030\004 \001(\0132$.google.container.v1beta1.NodeCo" + + "nfigB\002\030\001\0229\n\013master_auth\030\005 \001(\0132$.google.c" + + "ontainer.v1beta1.MasterAuth\022\027\n\017logging_s" + + "ervice\030\006 \001(\t\022\032\n\022monitoring_service\030\007 \001(\t" + + "\022\017\n\007network\030\010 \001(\t\022\031\n\021cluster_ipv4_cidr\030\t" + + " \001(\t\022=\n\raddons_config\030\n \001(\0132&.google.con" + + "tainer.v1beta1.AddonsConfig\022\022\n\nsubnetwor" + + "k\030\013 \001(\t\0226\n\nnode_pools\030\014 \003(\0132\".google.con" + + "tainer.v1beta1.NodePool\022\021\n\tlocations\030\r \003" + + "(\t\022\037\n\027enable_kubernetes_alpha\030\016 \001(\010\022N\n\017r" + + "esource_labels\030\017 \003(\01325.google.container." + + "v1beta1.Cluster.ResourceLabelsEntry\022\031\n\021l" + + "abel_fingerprint\030\020 \001(\t\0229\n\013legacy_abac\030\022 " + + "\001(\0132$.google.container.v1beta1.LegacyAba" + + "c\022?\n\016network_policy\030\023 \001(\0132\'.google.conta" + + "iner.v1beta1.NetworkPolicy\022J\n\024ip_allocat" + + "ion_policy\030\024 \001(\0132,.google.container.v1be" + + "ta1.IPAllocationPolicy\022c\n!master_authori" + + "zed_networks_config\030\026 \001(\01328.google.conta" + + "iner.v1beta1.MasterAuthorizedNetworksCon" + + "fig\022G\n\022maintenance_policy\030\027 \001(\0132+.google" + + ".container.v1beta1.MaintenancePolicy\022K\n\024" + + "binary_authorization\030\030 \001(\0132-.google.cont" + + "ainer.v1beta1.BinaryAuthorization\022U\n\032pod" + + "_security_policy_config\030\031 \001(\01321.google.c" + + "ontainer.v1beta1.PodSecurityPolicyConfig" + + "\022A\n\013autoscaling\030\032 \001(\0132,.google.container" + + ".v1beta1.ClusterAutoscaling\022?\n\016network_c" + + "onfig\030\033 \001(\0132\'.google.container.v1beta1.N" + + "etworkConfig\022\033\n\017private_cluster\030\034 \001(\010B\002\030" + + "\001\022\"\n\026master_ipv4_cidr_block\030\035 \001(\tB\002\030\001\022P\n" + + "\033default_max_pods_constraint\030\036 \001(\0132+.goo" + + "gle.container.v1beta1.MaxPodsConstraint\022" + + "Y\n\034resource_usage_export_config\030! \001(\01323." + + "google.container.v1beta1.ResourceUsageEx" + + "portConfig\022X\n\033authenticator_groups_confi" + + "g\030\" \001(\01323.google.container.v1beta1.Authe" + + "nticatorGroupsConfig\022N\n\026private_cluster_" + + "config\030% \001(\0132..google.container.v1beta1." + + "PrivateClusterConfig\022R\n\030vertical_pod_aut" + + "oscaling\030\' \001(\01320.google.container.v1beta" + + "1.VerticalPodAutoscaling\022?\n\016shielded_nod" + + "es\030( \001(\0132\'.google.container.v1beta1.Shie" + + "ldedNodes\022A\n\017release_channel\030) \001(\0132(.goo" + + "gle.container.v1beta1.ReleaseChannel\022R\n\030" + + "workload_identity_config\030+ \001(\01320.google." + + "container.v1beta1.WorkloadIdentityConfig" + + "\022M\n\025workload_certificates\0304 \001(\0132..google" + + ".container.v1beta1.WorkloadCertificates\022" + + "E\n\021mesh_certificates\030C \001(\0132*.google.cont" + + "ainer.v1beta1.MeshCertificates\022J\n\024worklo" + + "ad_alts_config\0305 \001(\0132,.google.container." + + "v1beta1.WorkloadALTSConfig\022N\n\026cost_manag" + + "ement_config\030- \001(\0132..google.container.v1" + + "beta1.CostManagementConfig\022E\n\021cluster_te" + + "lemetry\030. \001(\0132*.google.container.v1beta1" + + ".ClusterTelemetry\0227\n\ntpu_config\030/ \001(\0132#." + + "google.container.v1beta1.TpuConfig\022I\n\023no" + + "tification_config\0301 \001(\0132,.google.contain" + + "er.v1beta1.NotificationConfig\022G\n\022confide" + + "ntial_nodes\0302 \001(\0132+.google.container.v1b" + + "eta1.ConfidentialNodes\022P\n\027identity_servi" + + "ce_config\0306 \001(\0132/.google.container.v1bet" + + "a1.IdentityServiceConfig\022\021\n\tself_link\030d " + + "\001(\t\022\020\n\004zone\030e \001(\tB\002\030\001\022\020\n\010endpoint\030f \001(\t\022" + + "\037\n\027initial_cluster_version\030g \001(\t\022\036\n\026curr" + + "ent_master_version\030h \001(\t\022 \n\024current_node" + + "_version\030i \001(\tB\002\030\001\022\023\n\013create_time\030j \001(\t\022" + + "8\n\006status\030k \001(\0162(.google.container.v1bet" + + "a1.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\022se" + + "rvices_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_tpu\030s \001(\010\022\033\n\023tpu_ipv4_c" + + "idr_block\030t \001(\t\022I\n\023database_encryption\030&" + + " \001(\0132,.google.container.v1beta1.Database" + + "Encryption\022=\n\nconditions\030v \003(\0132).google." + + "container.v1beta1.StatusCondition\0220\n\006mas" + + "ter\030| \001(\0132 .google.container.v1beta1.Mas" + + "ter\0227\n\tautopilot\030\200\001 \001(\0132#.google.contain" + + "er.v1beta1.Autopilot\022\020\n\002id\030\201\001 \001(\tB\003\340A\003\022L" + + "\n\022node_pool_defaults\030\203\001 \001(\0132*.google.con" + + "tainer.v1beta1.NodePoolDefaultsH\000\210\001\001\022@\n\016" + + "logging_config\030\204\001 \001(\0132\'.google.container" + + ".v1beta1.LoggingConfig\022F\n\021monitoring_con" + + "fig\030\205\001 \001(\0132*.google.container.v1beta1.Mo" + + "nitoringConfig\022L\n\025node_pool_auto_config\030" + + "\210\001 \001(\0132,.google.container.v1beta1.NodePo" + + "olAutoConfig\022E\n\016protect_config\030\211\001 \001(\0132\'." + + "google.container.v1beta1.ProtectConfigH\001" + + "\210\001\001\0325\n\023ResourceLabelsEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001\"w\n\006Status\022\026\n\022STATUS_U" + + "NSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007RUNNIN" + + "G\020\002\022\017\n\013RECONCILING\020\003\022\014\n\010STOPPING\020\004\022\t\n\005ER" + + "ROR\020\005\022\014\n\010DEGRADED\020\006B\025\n\023_node_pool_defaul" + + "tsB\021\n\017_protect_config\"\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\005" + + "BASIC\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(\0132(.google.contain" + + "er.v1beta1.WorkloadConfigH\000\210\001\001\022k\n\033worklo" + + "ad_vulnerability_mode\030\002 \001(\0162A.google.con" + + "tainer.v1beta1.ProtectConfig.WorkloadVul" + + "nerabilityModeH\001\210\001\001\"a\n\031WorkloadVulnerabi" + + "lityMode\022+\n\'WORKLOAD_VULNERABILITY_MODE_" + + "UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\t\n\005BASIC\020\002B\022" + + "\n\020_workload_configB\036\n\034_workload_vulnerab" + + "ility_mode\"^\n\020NodePoolDefaults\022J\n\024node_c" + + "onfig_defaults\030\001 \001(\0132,.google.container." + + "v1beta1.NodeConfigDefaults\"\230\001\n\022NodeConfi" + + "gDefaults\0229\n\013gcfs_config\030\001 \001(\0132$.google." + + "container.v1beta1.GcfsConfig\022G\n\016logging_" + + "config\030\003 \001(\0132/.google.container.v1beta1." + + "NodePoolLoggingConfig\"Q\n\022NodePoolAutoCon" + + "fig\022;\n\014network_tags\030\001 \001(\0132%.google.conta" + + "iner.v1beta1.NetworkTags\"\366\032\n\rClusterUpda" + + "te\022\034\n\024desired_node_version\030\004 \001(\t\022\"\n\032desi" + + "red_monitoring_service\030\005 \001(\t\022E\n\025desired_" + + "addons_config\030\006 \001(\0132&.google.container.v" + + "1beta1.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-.g" + + "oogle.container.v1beta1.NodePoolAutoscal" + + "ing\022\031\n\021desired_locations\030\n \003(\t\022k\n)desire" + + "d_master_authorized_networks_config\030\014 \001(" + + "\01328.google.container.v1beta1.MasterAutho" + + "rizedNetworksConfig\022]\n\"desired_pod_secur" + + "ity_policy_config\030\016 \001(\01321.google.contain" + + "er.v1beta1.PodSecurityPolicyConfig\022Q\n\033de" + + "sired_cluster_autoscaling\030\017 \001(\0132,.google" + + ".container.v1beta1.ClusterAutoscaling\022S\n" + + "\034desired_binary_authorization\030\020 \001(\0132-.go" + + "ogle.container.v1beta1.BinaryAuthorizati" + + "on\022\037\n\027desired_logging_service\030\023 \001(\t\022a\n$d" + + "esired_resource_usage_export_config\030\025 \001(" + + "\01323.google.container.v1beta1.ResourceUsa" + + "geExportConfig\022Z\n desired_vertical_pod_a" + + "utoscaling\030\026 \001(\01320.google.container.v1be" + + "ta1.VerticalPodAutoscaling\022V\n\036desired_pr" + + "ivate_cluster_config\030\031 \001(\0132..google.cont" + + "ainer.v1beta1.PrivateClusterConfig\022a\n$de" + + "sired_intra_node_visibility_config\030\032 \001(\013" + + "23.google.container.v1beta1.IntraNodeVis" + + "ibilityConfig\022P\n\033desired_default_snat_st" + + "atus\030\034 \001(\0132+.google.container.v1beta1.De" + + "faultSnatStatus\022M\n\031desired_cluster_telem" + + "etry\030\036 \001(\0132*.google.container.v1beta1.Cl" + + "usterTelemetry\022I\n\027desired_release_channe" + + "l\030\037 \001(\0132(.google.container.v1beta1.Relea" + + "seChannel\022?\n\022desired_tpu_config\030& \001(\0132#." + + "google.container.v1beta1.TpuConfig\022V\n\037de" + + "sired_l4ilb_subsetting_config\030\' \001(\0132-.go" + + "ogle.container.v1beta1.ILBSubsettingConf" + + "ig\022M\n\031desired_datapath_provider\0302 \001(\0162*." + + "google.container.v1beta1.DatapathProvide" + + "r\022]\n\"desired_private_ipv6_google_access\030" + + "3 \001(\01621.google.container.v1beta1.Private" + + "IPv6GoogleAccess\022Q\n\033desired_notification" + + "_config\0307 \001(\0132,.google.container.v1beta1" + + ".NotificationConfig\022\036\n\026desired_master_ve" + + "rsion\030d \001(\t\022A\n\023desired_gcfs_config\030m \001(\013" + + "2$.google.container.v1beta1.GcfsConfig\022Q" + + "\n\033desired_database_encryption\030. \001(\0132,.go" + + "ogle.container.v1beta1.DatabaseEncryptio" + + "n\022Z\n desired_workload_identity_config\030/ " + + "\001(\01320.google.container.v1beta1.WorkloadI" + + "dentityConfig\022U\n\035desired_workload_certif" + + "icates\030= \001(\0132..google.container.v1beta1." + + "WorkloadCertificates\022M\n\031desired_mesh_cer" + + "tificates\030C \001(\0132*.google.container.v1bet" + + "a1.MeshCertificates\022R\n\034desired_workload_" + + "alts_config\030> \001(\0132,.google.container.v1b" + + "eta1.WorkloadALTSConfig\022G\n\026desired_shiel" + + "ded_nodes\0300 \001(\0132\'.google.container.v1bet" + + "a1.ShieldedNodes\022V\n\036desired_cost_managem" + + "ent_config\0301 \001(\0132..google.container.v1be" + + "ta1.CostManagementConfig\0228\n\016desired_mast" + + "er\0304 \001(\0132 .google.container.v1beta1.Mast" + + "er\022?\n\022desired_dns_config\0305 \001(\0132#.google.", + "container.v1beta1.DNSConfig\022_\n#desired_s" + + "ervice_external_ips_config\030< \001(\01322.googl" + + "e.container.v1beta1.ServiceExternalIPsCo" + + "nfig\022`\n#desired_authenticator_groups_con" + + "fig\030? \001(\01323.google.container.v1beta1.Aut" + + "henticatorGroupsConfig\022G\n\026desired_loggin" + + "g_config\030@ \001(\0132\'.google.container.v1beta" + + "1.LoggingConfig\022M\n\031desired_monitoring_co" + + "nfig\030A \001(\0132*.google.container.v1beta1.Mo" + + "nitoringConfig\022X\n\037desired_identity_servi" + + "ce_config\030B \001(\0132/.google.container.v1bet" + + "a1.IdentityServiceConfig\022,\n\037desired_enab" + + "le_private_endpoint\030G \001(\010H\000\210\001\001\022Y\n*desire" + + "d_node_pool_auto_config_network_tags\030n \001" + + "(\0132%.google.container.v1beta1.NetworkTag" + + "s\022L\n\026desired_protect_config\030p \001(\0132\'.goog" + + "le.container.v1beta1.ProtectConfigH\001\210\001\001\022" + + "N\n\032desired_gateway_api_config\030r \001(\0132*.go" + + "ogle.container.v1beta1.GatewayAPIConfig\022" + + "Y\n desired_node_pool_logging_config\030t \001(" + + "\0132/.google.container.v1beta1.NodePoolLog" + + "gingConfigB\"\n _desired_enable_private_en" + + "dpointB\031\n\027_desired_protect_config\"\212\010\n\tOp" + + "eration\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.contain" + + "er.v1beta1.Operation.Type\022:\n\006status\030\004 \001(" + + "\0162*.google.container.v1beta1.Operation.S" + + "tatus\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\013targe" + + "t_link\030\007 \001(\t\022\020\n\010location\030\t \001(\t\022\022\n\nstart_" + + "time\030\n \001(\t\022\020\n\010end_time\030\013 \001(\t\022B\n\010progress" + + "\030\014 \001(\0132+.google.container.v1beta1.Operat" + + "ionProgressB\003\340A\003\022I\n\022cluster_conditions\030\r" + + " \003(\0132).google.container.v1beta1.StatusCo" + + "nditionB\002\030\001\022J\n\023nodepool_conditions\030\016 \003(\013" + + "2).google.container.v1beta1.StatusCondit" + + "ionB\002\030\001\022!\n\005error\030\017 \001(\0132\022.google.rpc.Stat" + + "us\"R\n\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\013\n\007" + + "PENDING\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\022\014\n\010ABOR" + + "TING\020\004\"\375\002\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n" + + "\016CREATE_CLUSTER\020\001\022\022\n\016DELETE_CLUSTER\020\002\022\022\n" + + "\016UPGRADE_MASTER\020\003\022\021\n\rUPGRADE_NODES\020\004\022\022\n\016" + + "REPAIR_CLUSTER\020\005\022\022\n\016UPDATE_CLUSTER\020\006\022\024\n\020" + + "CREATE_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_R" + + "EPAIR_NODES\020\n\022\026\n\022AUTO_UPGRADE_NODES\020\013\022\016\n" + + "\nSET_LABELS\020\014\022\023\n\017SET_MASTER_AUTH\020\r\022\026\n\022SE" + + "T_NODE_POOL_SIZE\020\016\022\026\n\022SET_NETWORK_POLICY" + + "\020\017\022\032\n\026SET_MAINTENANCE_POLICY\020\020\"\312\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\032i\n\006Metric\022\021\n\004name\030\001 \001(\t" + + "B\003\340A\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\"\217\001\n\024CreateClusterRequest\022\031\n\nproject_" + + "id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\0227\n\007" + + "cluster\030\003 \001(\0132!.google.container.v1beta1" + + ".ClusterB\003\340A\002\022\016\n\006parent\030\005 \001(\t\"l\n\021GetClus" + + "terRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n" + + "\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005" + + "\030\001\340A\002\022\014\n\004name\030\005 \001(\t\"\255\001\n\024UpdateClusterReq" + + "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" + + "<\n\006update\030\004 \001(\0132\'.google.container.v1bet" + + "a1.ClusterUpdateB\003\340A\002\022\014\n\004name\030\005 \001(\t\"\261\010\n\025" + + "UpdateNodePoolRequest\022\031\n\nproject_id\030\001 \001(" + + "\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster" + + "_id\030\003 \001(\tB\005\030\001\340A\002\022\033\n\014node_pool_id\030\004 \001(\tB\005" + + "\030\001\340A\002\022\031\n\014node_version\030\005 \001(\tB\003\340A\002\022\027\n\nimag" + + "e_type\030\006 \001(\tB\003\340A\002\022\021\n\tlocations\030\r \003(\t\022R\n\030" + + "workload_metadata_config\030\016 \001(\01320.google." + + "container.v1beta1.WorkloadMetadataConfig" + + "\022\014\n\004name\030\010 \001(\t\022L\n\020upgrade_settings\030\017 \001(\013" + + "22.google.container.v1beta1.NodePool.Upg" + + "radeSettings\0223\n\004tags\030\020 \001(\0132%.google.cont" + + "ainer.v1beta1.NetworkTags\0224\n\006taints\030\021 \001(" + + "\0132$.google.container.v1beta1.NodeTaints\022" + + "4\n\006labels\030\022 \001(\0132$.google.container.v1bet" + + "a1.NodeLabels\022D\n\021linux_node_config\030\023 \001(\013" + + "2).google.container.v1beta1.LinuxNodeCon" + + "fig\022C\n\016kubelet_config\030\024 \001(\0132+.google.con" + + "tainer.v1beta1.NodeKubeletConfig\022H\n\023node" + + "_network_config\030\025 \001(\0132+.google.container" + + ".v1beta1.NodeNetworkConfig\0229\n\013gcfs_confi" + + "g\030\026 \001(\0132$.google.container.v1beta1.GcfsC" + + "onfig\022G\n\022confidential_nodes\030\027 \001(\0132+.goog" + + "le.container.v1beta1.ConfidentialNodes\0223" + + "\n\005gvnic\030\035 \001(\0132$.google.container.v1beta1" + + ".VirtualNIC\022G\n\016logging_config\030 \001(\0132/.go" + + "ogle.container.v1beta1.NodePoolLoggingCo" + + "nfig\022A\n\017resource_labels\030! \001(\0132(.google.c" + + "ontainer.v1beta1.ResourceLabels\"\336\001\n\035SetN" + + "odePoolAutoscalingRequest\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\022G\n\013autoscaling\030\005 \001(\0132-.google." + + "container.v1beta1.NodePoolAutoscalingB\003\340" + + "A\002\022\014\n\004name\030\006 \001(\t\"\221\001\n\030SetLoggingServiceRe" + + "quest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone" + + "\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002" + + "\022\034\n\017logging_service\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\005" + + " \001(\t\"\227\001\n\033SetMonitoringServiceRequest\022\031\n\n" + + "project_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030" + + "\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\037\n\022monit" + + "oring_service\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\265" + + "\001\n\026SetAddonsConfigRequest\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\022B\n\raddons_config\030\004 " + + "\001(\0132&.google.container.v1beta1.AddonsCon" + + "figB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\206\001\n\023SetLocationsR" + + "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\026\n\tlocations\030\004 \003(\tB\003\340A\002\022\014\n\004name\030\006 \001(\t\"" + + "\213\001\n\023UpdateMasterRequest\022\031\n\nproject_id\030\001 " + + "\001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\nclust" + + "er_id\030\003 \001(\tB\005\030\001\340A\002\022\033\n\016master_version\030\004 \001" + + "(\tB\003\340A\002\022\014\n\004name\030\007 \001(\t\"\310\002\n\024SetMasterAuthR" + + "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\022J\n\006action\030\004 \001(\01625.google.container.v1b" + + "eta1.SetMasterAuthRequest.ActionB\003\340A\002\0229\n" + + "\006update\030\005 \001(\0132$.google.container.v1beta1" + + ".MasterAuthB\003\340A\002\022\014\n\004name\030\007 \001(\t\"P\n\006Action" + + "\022\013\n\007UNKNOWN\020\000\022\020\n\014SET_PASSWORD\020\001\022\025\n\021GENER" + + "ATE_PASSWORD\020\002\022\020\n\014SET_USERNAME\020\003\"o\n\024Dele" + + "teClusterRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001" + + "\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003" + + " \001(\tB\005\030\001\340A\002\022\014\n\004name\030\004 \001(\t\"U\n\023ListCluster" + + "sRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004z" + + "one\030\002 \001(\tB\005\030\001\340A\002\022\016\n\006parent\030\004 \001(\t\"b\n\024List" + + "ClustersResponse\0223\n\010clusters\030\001 \003(\0132!.goo" + + "gle.container.v1beta1.Cluster\022\025\n\rmissing" + + "_zones\030\002 \003(\t\"p\n\023GetOperationRequest\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\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\nproje" + + "ct_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022" + + "\016\n\006parent\030\004 \001(\t\"s\n\026CancelOperationReques" + + "t\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001" + + "(\tB\005\030\001\340A\002\022\033\n\014operation_id\030\003 \001(\tB\005\030\001\340A\002\022\014" + + "\n\004name\030\004 \001(\t\"h\n\026ListOperationsResponse\0227" + + "\n\noperations\030\001 \003(\0132#.google.container.v1" + + "beta1.Operation\022\025\n\rmissing_zones\030\002 \003(\t\"V" + + "\n\026GetServerConfigRequest\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\014\n\004name" + + "\030\004 \001(\t\"\351\005\n\014ServerConfig\022\037\n\027default_clust" + + "er_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\021val" + + "id_image_types\030\005 \003(\t\022\035\n\025valid_master_ver" + + "sions\030\006 \003(\t\022M\n\010channels\030\t \003(\0132;.google.c" + + "ontainer.v1beta1.ServerConfig.ReleaseCha" + + "nnelConfig\022\\\n\024windows_version_maps\030\n \003(\013" + + "2>.google.container.v1beta1.ServerConfig" + + ".WindowsVersionMapsEntry\032\261\002\n\024ReleaseChan" + + "nelConfig\022A\n\007channel\030\001 \001(\01620.google.cont" + + "ainer.v1beta1.ReleaseChannel.Channel\022\027\n\017" + + "default_version\030\002 \001(\t\022l\n\022available_versi" + + "ons\030\003 \003(\0132L.google.container.v1beta1.Ser" + + "verConfig.ReleaseChannelConfig.Available" + + "VersionB\002\030\001\022\026\n\016valid_versions\030\004 \003(\t\0327\n\020A" + + "vailableVersion\022\017\n\007version\030\001 \001(\t\022\016\n\006reas" + + "on\030\002 \001(\t:\002\030\001\032d\n\027WindowsVersionMapsEntry\022" + + "\013\n\003key\030\001 \001(\t\0228\n\005value\030\002 \001(\0132).google.con" + + "tainer.v1beta1.WindowsVersions:\0028\001\"\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\"\244\003\n\021BlueGreenSettings" + + "\022d\n\027standard_rollout_policy\030\001 \001(\0132A.goog" + + "le.container.v1beta1.BlueGreenSettings.S" + + "tandardRolloutPolicyH\000\022?\n\027node_pool_soak" + + "_duration\030\002 \001(\0132\031.google.protobuf.Durati" + + "onH\001\210\001\001\032\271\001\n\025StandardRolloutPolicy\022\032\n\020bat" + + "ch_percentage\030\001 \001(\002H\000\022\032\n\020batch_node_coun" + + "t\030\002 \001(\005H\000\022;\n\023batch_soak_duration\030\003 \001(\0132\031" + + ".google.protobuf.DurationH\001\210\001\001B\023\n\021update" + + "_batch_sizeB\026\n\024_batch_soak_durationB\020\n\016r" + + "ollout_policyB\032\n\030_node_pool_soak_duratio" + + "n\"\202\017\n\010NodePool\022\014\n\004name\030\001 \001(\t\0224\n\006config\030\002" + + " \001(\0132$.google.container.v1beta1.NodeConf" + + "ig\022\032\n\022initial_node_count\030\003 \001(\005\022\021\n\tlocati" + + "ons\030\r \003(\t\022C\n\016network_config\030\016 \001(\0132+.goog" + + "le.container.v1beta1.NodeNetworkConfig\022\021" + + "\n\tself_link\030d \001(\t\022\017\n\007version\030e \001(\t\022\033\n\023in" + + "stance_group_urls\030f \003(\t\0229\n\006status\030g \001(\0162" + + ").google.container.v1beta1.NodePool.Stat" + + "us\022\032\n\016status_message\030h \001(\tB\002\030\001\022B\n\013autosc" + + "aling\030\004 \001(\0132-.google.container.v1beta1.N" + + "odePoolAutoscaling\022<\n\nmanagement\030\005 \001(\0132(" + + ".google.container.v1beta1.NodeManagement" + + "\022H\n\023max_pods_constraint\030\006 \001(\0132+.google.c" + + "ontainer.v1beta1.MaxPodsConstraint\022=\n\nco" + + "nditions\030i \003(\0132).google.container.v1beta" + + "1.StatusCondition\022\032\n\022pod_ipv4_cidr_size\030" + + "\007 \001(\005\022L\n\020upgrade_settings\030k \001(\01322.google" + + ".container.v1beta1.NodePool.UpgradeSetti" + + "ngs\022L\n\020placement_policy\030l \001(\01322.google.c" + + "ontainer.v1beta1.NodePool.PlacementPolic" + + "y\022G\n\013update_info\030m \001(\0132-.google.containe" + + "r.v1beta1.NodePool.UpdateInfoB\003\340A\003\032\372\001\n\017U" + + "pgradeSettings\022\021\n\tmax_surge\030\001 \001(\005\022\027\n\017max" + + "_unavailable\030\002 \001(\005\022G\n\010strategy\030\003 \001(\01620.g" + + "oogle.container.v1beta1.NodePoolUpdateSt" + + "rategyH\000\210\001\001\022M\n\023blue_green_settings\030\004 \001(\013" + + "2+.google.container.v1beta1.BlueGreenSet" + + "tingsH\001\210\001\001B\013\n\t_strategyB\026\n\024_blue_green_s" + + "ettings\032\222\004\n\nUpdateInfo\022T\n\017blue_green_inf" + + "o\030\001 \001(\0132;.google.container.v1beta1.NodeP" + + "ool.UpdateInfo.BlueGreenInfo\032\255\003\n\rBlueGre" + + "enInfo\022P\n\005phase\030\001 \001(\0162A.google.container" + + ".v1beta1.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\203\001\n\017PlacementPolicy" + + "\022E\n\004type\030\001 \001(\01627.google.container.v1beta" + + "1.NodePool.PlacementPolicy.Type\")\n\004Type\022" + + "\024\n\020TYPE_UNSPECIFIED\020\000\022\013\n\007COMPACT\020\001\"\201\001\n\006S" + + "tatus\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014PROVISI" + + "ONING\020\001\022\013\n\007RUNNING\020\002\022\026\n\022RUNNING_WITH_ERR" + + "OR\020\003\022\017\n\013RECONCILING\020\004\022\014\n\010STOPPING\020\005\022\t\n\005E" + + "RROR\020\006\"\202\001\n\016NodeManagement\022\024\n\014auto_upgrad" + + "e\030\001 \001(\010\022\023\n\013auto_repair\030\002 \001(\010\022E\n\017upgrade_" + + "options\030\n \001(\0132,.google.container.v1beta1" + + ".AutoUpgradeOptions\"J\n\022AutoUpgradeOption" + + "s\022\037\n\027auto_upgrade_start_time\030\001 \001(\t\022\023\n\013de" + + "scription\030\002 \001(\t\"j\n\021MaintenancePolicy\022;\n\006" + + "window\030\001 \001(\0132+.google.container.v1beta1." + + "MaintenanceWindow\022\030\n\020resource_version\030\003 " + + "\001(\t\"\212\003\n\021MaintenanceWindow\022T\n\030daily_maint" + + "enance_window\030\002 \001(\01320.google.container.v" + + "1beta1.DailyMaintenanceWindowH\000\022I\n\020recur" + + "ring_window\030\003 \001(\0132-.google.container.v1b" + + "eta1.RecurringTimeWindowH\000\022f\n\026maintenanc" + + "e_exclusions\030\004 \003(\0132F.google.container.v1" + + "beta1.MaintenanceWindow.MaintenanceExclu" + + "sionsEntry\032b\n\032MaintenanceExclusionsEntry" + + "\022\013\n\003key\030\001 \001(\t\0223\n\005value\030\002 \001(\0132$.google.co" + + "ntainer.v1beta1.TimeWindow:\0028\001B\010\n\006policy" + + "\"\325\001\n\nTimeWindow\022^\n\035maintenance_exclusion" + + "_options\030\003 \001(\01325.google.container.v1beta" + + "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\"\271\001\n\033MaintenanceExclusio" + + "nOptions\022J\n\005scope\030\001 \001(\0162;.google.contain" + + "er.v1beta1.MaintenanceExclusionOptions.S" + + "cope\"N\n\005Scope\022\017\n\013NO_UPGRADES\020\000\022\025\n\021NO_MIN" + + "OR_UPGRADES\020\001\022\035\n\031NO_MINOR_OR_NODE_UPGRAD" + + "ES\020\002\"_\n\023RecurringTimeWindow\0224\n\006window\030\001 " + + "\001(\0132$.google.container.v1beta1.TimeWindo" + + "w\022\022\n\nrecurrence\030\002 \001(\t\">\n\026DailyMaintenanc" + + "eWindow\022\022\n\nstart_time\030\002 \001(\t\022\020\n\010duration\030" + + "\003 \001(\t\"\327\001\n\034SetNodePoolManagementRequest\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\014nod" + + "e_pool_id\030\004 \001(\tB\005\030\001\340A\002\022A\n\nmanagement\030\005 \001" + + "(\0132(.google.container.v1beta1.NodeManage" + + "mentB\003\340A\002\022\014\n\004name\030\007 \001(\t\"\247\001\n\026SetNodePoolS" + + "izeRequest\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\027\n\nno" + + "de_count\030\005 \001(\005B\003\340A\002\022\014\n\004name\030\007 \001(\t\".\n\036Com" + + "pleteNodePoolUpgradeRequest\022\014\n\004name\030\001 \001(" + + "\t\"\253\001\n\036RollbackNodePoolUpgradeRequest\022\031\n\n" + + "project_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030" + + "\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\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\013re" + + "spect_pdb\030\007 \001(\010\"O\n\025ListNodePoolsResponse" + + "\0226\n\nnode_pools\030\001 \003(\0132\".google.container." + + "v1beta1.NodePool\"\276\003\n\022ClusterAutoscaling\022" + + "$\n\034enable_node_autoprovisioning\030\001 \001(\010\022@\n" + + "\017resource_limits\030\002 \003(\0132\'.google.containe" + + "r.v1beta1.ResourceLimit\022\\\n\023autoscaling_p" + + "rofile\030\003 \001(\0162?.google.container.v1beta1." + + "ClusterAutoscaling.AutoscalingProfile\022g\n" + + "#autoprovisioning_node_pool_defaults\030\004 \001" + + "(\0132:.google.container.v1beta1.Autoprovis" + + "ioningNodePoolDefaults\022\"\n\032autoprovisioni" + + "ng_locations\030\005 \003(\t\"U\n\022AutoscalingProfile" + + "\022\027\n\023PROFILE_UNSPECIFIED\020\000\022\030\n\024OPTIMIZE_UT" + + "ILIZATION\020\001\022\014\n\010BALANCED\020\002\"\247\003\n Autoprovis" + + "ioningNodePoolDefaults\022\024\n\014oauth_scopes\030\001" + + " \003(\t\022\027\n\017service_account\030\002 \001(\t\022L\n\020upgrade" + + "_settings\030\003 \001(\01322.google.container.v1bet" + + "a1.NodePool.UpgradeSettings\022<\n\nmanagemen" + + "t\030\004 \001(\0132(.google.container.v1beta1.NodeM" + + "anagement\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.goo" + + "gle.container.v1beta1.ShieldedInstanceCo" + + "nfig\022\031\n\021boot_disk_kms_key\030\t \001(\t\022\022\n\nimage" + + "_type\030\n \001(\t\"H\n\rResourceLimit\022\025\n\rresource" + + "_type\030\001 \001(\t\022\017\n\007minimum\030\002 \001(\003\022\017\n\007maximum\030" + + "\003 \001(\003\"\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_no" + + "de_count\030\003 \001(\005\022\027\n\017autoprovisioned\030\004 \001(\010\022" + + "U\n\017location_policy\030\005 \001(\0162<.google.contai" + + "ner.v1beta1.NodePoolAutoscaling.Location" + + "Policy\022\034\n\024total_min_node_count\030\006 \001(\005\022\034\n\024" + + "total_max_node_count\030\007 \001(\005\"H\n\016LocationPo" + + "licy\022\037\n\033LOCATION_POLICY_UNSPECIFIED\020\000\022\014\n" + + "\010BALANCED\020\001\022\007\n\003ANY\020\002\"\240\002\n\020SetLabelsReques" + + "t\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001" + + "(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\\\n\017" + + "resource_labels\030\004 \003(\0132>.google.container" + + ".v1beta1.SetLabelsRequest.ResourceLabels" + + "EntryB\003\340A\002\022\036\n\021label_fingerprint\030\005 \001(\tB\003\340" + + "A\002\022\014\n\004name\030\007 \001(\t\0325\n\023ResourceLabelsEntry\022" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\205\001\n\024SetL" + + "egacyAbacRequest\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\004nam" + + "e\030\006 \001(\t\"\215\001\n\026StartIPRotationRequest\022\031\n\npr" + + "oject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340" + + "A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\006 " + + "\001(\t\022\032\n\022rotate_credentials\030\007 \001(\010\"t\n\031Compl" + + "eteIPRotationRequest\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\014\n\004name\030\007 \001(\t\"\365\001\n\021Accele" + + "ratorConfig\022\031\n\021accelerator_count\030\001 \001(\003\022\030" + + "\n\020accelerator_type\030\002 \001(\t\022\032\n\022gpu_partitio" + + "n_size\030\003 \001(\t\022+\n\037max_time_shared_clients_" + + "per_gpu\030\004 \001(\003B\002\030\001\022K\n\022gpu_sharing_config\030" + + "\005 \001(\0132*.google.container.v1beta1.GPUShar" + + "ingConfigH\000\210\001\001B\025\n\023_gpu_sharing_config\"\377\001" + + "\n\020GPUSharingConfig\022\"\n\032max_shared_clients" + + "_per_gpu\030\001 \001(\003\022`\n\024gpu_sharing_strategy\030\002" + + " \001(\0162=.google.container.v1beta1.GPUShari" + + "ngConfig.GPUSharingStrategyH\000\210\001\001\"L\n\022GPUS" + + "haringStrategy\022$\n GPU_SHARING_STRATEGY_U" + + "NSPECIFIED\020\000\022\020\n\014TIME_SHARING\020\001B\027\n\025_gpu_s" + + "haring_strategy\"*\n\027ManagedPrometheusConf" + + "ig\022\017\n\007enabled\030\001 \001(\010\"\313\002\n\026WorkloadMetadata" + + "Config\022X\n\rnode_metadata\030\001 \001(\0162=.google.c" + + "ontainer.v1beta1.WorkloadMetadataConfig." + + "NodeMetadataB\002\030\001\022C\n\004mode\030\002 \001(\01625.google." + + "container.v1beta1.WorkloadMetadataConfig" + + ".Mode\"P\n\014NodeMetadata\022\017\n\013UNSPECIFIED\020\000\022\n" + + "\n\006SECURE\020\001\022\n\n\006EXPOSE\020\002\022\027\n\023GKE_METADATA_S" + + "ERVER\020\003\"@\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\020\n" + + "\014GCE_METADATA\020\001\022\020\n\014GKE_METADATA\020\002\"\270\001\n\027Se" + + "tNetworkPolicyRequest\022\031\n\nproject_id\030\001 \001(" + + "\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster" + + "_id\030\003 \001(\tB\005\030\001\340A\002\022D\n\016network_policy\030\004 \001(\013" + + "2\'.google.container.v1beta1.NetworkPolic" + + "yB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\276\001\n\033SetMaintenanceP" + + "olicyRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\021\n" + + "\004zone\030\002 \001(\tB\003\340A\002\022\027\n\ncluster_id\030\003 \001(\tB\003\340A" + + "\002\022L\n\022maintenance_policy\030\004 \001(\0132+.google.c" + + "ontainer.v1beta1.MaintenancePolicyB\003\340A\002\022" + + "\014\n\004name\030\005 \001(\t\"+\n\024ListLocationsRequest\022\023\n" + + "\006parent\030\001 \001(\tB\003\340A\002\"g\n\025ListLocationsRespo" + + "nse\0225\n\tlocations\030\001 \003(\0132\".google.containe" + + "r.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\013recommended\030\003 \001(\010\"C\n\014Lo" + + "cationType\022\035\n\031LOCATION_TYPE_UNSPECIFIED\020" + + "\000\022\010\n\004ZONE\020\001\022\n\n\006REGION\020\002\"\262\002\n\017StatusCondit" + + "ion\022@\n\004code\030\001 \001(\0162..google.container.v1b" + + "eta1.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_ST" + + "OCKOUT\020\001\022\037\n\033GKE_SERVICE_ACCOUNT_DELETED\020" + + "\002\022\026\n\022GCE_QUOTA_EXCEEDED\020\003\022\023\n\017SET_BY_OPER" + + "ATOR\020\004\022\027\n\023CLOUD_KMS_KEY_ERROR\020\007\022\017\n\013CA_EX" + + "PIRING\020\t\032\002\030\001\"\275\004\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\022H\n\023default_sna" + + "t_status\030\007 \001(\0132+.google.container.v1beta" + + "1.DefaultSnatStatus\022\037\n\027enable_l4ilb_subs" + + "etting\030\n \001(\010\022E\n\021datapath_provider\030\013 \001(\0162" + + "*.google.container.v1beta1.DatapathProvi" + + "der\022U\n\032private_ipv6_google_access\030\014 \001(\0162" + + "1.google.container.v1beta1.PrivateIPv6Go", + "ogleAccess\0227\n\ndns_config\030\r \001(\0132#.google." + + "container.v1beta1.DNSConfig\022W\n\033service_e" + + "xternal_ips_config\030\017 \001(\01322.google.contai" + + "ner.v1beta1.ServiceExternalIPsConfig\022F\n\022" + + "gateway_api_config\030\020 \001(\0132*.google.contai" + + "ner.v1beta1.GatewayAPIConfig\"\301\001\n\020Gateway" + + "APIConfig\022C\n\007channel\030\001 \001(\01622.google.cont" + + "ainer.v1beta1.GatewayAPIConfig.Channel\"h" + + "\n\007Channel\022\027\n\023CHANNEL_UNSPECIFIED\020\000\022\024\n\020CH" + + "ANNEL_DISABLED\020\001\022\030\n\024CHANNEL_EXPERIMENTAL" + + "\020\003\022\024\n\020CHANNEL_STANDARD\020\004\"+\n\030ServiceExter" + + "nalIPsConfig\022\017\n\007enabled\030\001 \001(\010\"j\n\034ListUsa" + + "bleSubnetworksRequest\022\023\n\006parent\030\001 \001(\tB\003\340" + + "A\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\035ListUsableSubnetwor" + + "ksResponse\022?\n\013subnetworks\030\001 \003(\0132*.google" + + ".container.v1beta1.UsableSubnetwork\022\027\n\017n" + + "ext_page_token\030\002 \001(\t\"\205\002\n\036UsableSubnetwor" + + "kSecondaryRange\022\022\n\nrange_name\030\001 \001(\t\022\025\n\ri" + + "p_cidr_range\030\002 \001(\t\022O\n\006status\030\003 \001(\0162?.goo" + + "gle.container.v1beta1.UsableSubnetworkSe" + + "condaryRange.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_P" + + "OD\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.goo" + + "gle.container.v1beta1.UsableSubnetworkSe" + + "condaryRange\022\026\n\016status_message\030\005 \001(\t\")\n\026" + + "VerticalPodAutoscaling\022\017\n\007enabled\030\001 \001(\010\"" + + "%\n\021DefaultSnatStatus\022\020\n\010disabled\030\001 \001(\010\"," + + "\n\031IntraNodeVisibilityConfig\022\017\n\007enabled\030\001" + + " \001(\010\"&\n\023ILBSubsettingConfig\022\017\n\007enabled\030\001" + + " \001(\010\"\307\002\n\tDNSConfig\022A\n\013cluster_dns\030\001 \001(\0162" + + ",.google.container.v1beta1.DNSConfig.Pro" + + "vider\022G\n\021cluster_dns_scope\030\002 \001(\0162,.googl" + + "e.container.v1beta1.DNSConfig.DNSScope\022\032" + + "\n\022cluster_dns_domain\030\003 \001(\t\"I\n\010Provider\022\030" + + "\n\024PROVIDER_UNSPECIFIED\020\000\022\024\n\020PLATFORM_DEF" + + "AULT\020\001\022\r\n\tCLOUD_DNS\020\002\"G\n\010DNSScope\022\031\n\025DNS" + + "_SCOPE_UNSPECIFIED\020\000\022\021\n\rCLUSTER_SCOPE\020\001\022" + + "\r\n\tVPC_SCOPE\020\002\".\n\021MaxPodsConstraint\022\031\n\021m" + + "ax_pods_per_node\030\001 \001(\003\"j\n\026WorkloadIdenti" + + "tyConfig\022\036\n\022identity_namespace\030\001 \001(\tB\002\030\001" + + "\022\025\n\rworkload_pool\030\002 \001(\t\022\031\n\021identity_prov" + + "ider\030\003 \001(\t\"E\n\022WorkloadALTSConfig\022/\n\013enab" + + "le_alts\030\001 \001(\0132\032.google.protobuf.BoolValu" + + "e\"O\n\024WorkloadCertificates\0227\n\023enable_cert" + + "ificates\030\001 \001(\0132\032.google.protobuf.BoolVal" + + "ue\"K\n\020MeshCertificates\0227\n\023enable_certifi" + + "cates\030\001 \001(\0132\032.google.protobuf.BoolValue\"" + + "\235\001\n\022DatabaseEncryption\022A\n\005state\030\002 \001(\01622." + + "google.container.v1beta1.DatabaseEncrypt" + + "ion.State\022\020\n\010key_name\030\001 \001(\t\"2\n\005State\022\013\n\007" + + "UNKNOWN\020\000\022\r\n\tENCRYPTED\020\001\022\r\n\tDECRYPTED\020\002\"" + + "\367\002\n\031ResourceUsageExportConfig\022e\n\024bigquer" + + "y_destination\030\001 \001(\0132G.google.container.v" + + "1beta1.ResourceUsageExportConfig.BigQuer" + + "yDestination\022&\n\036enable_network_egress_me" + + "tering\030\002 \001(\010\022r\n\033consumption_metering_con" + + "fig\030\003 \001(\0132M.google.container.v1beta1.Res" + + "ourceUsageExportConfig.ConsumptionMeteri" + + "ngConfig\032)\n\023BigQueryDestination\022\022\n\ndatas" + + "et_id\030\001 \001(\t\032,\n\031ConsumptionMeteringConfig" + + "\022\017\n\007enabled\030\001 \001(\010\" \n\rShieldedNodes\022\017\n\007en" + + "abled\030\001 \001(\010\"\035\n\nVirtualNIC\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\006issu" + + "er\030\001 \001(\t\022\020\n\010jwks_uri\030\002 \001(\t\022 \n\030response_t" + + "ypes_supported\030\003 \003(\t\022\037\n\027subject_types_su" + + "pported\030\004 \003(\t\022-\n%id_token_signing_alg_va" + + "lues_supported\030\005 \003(\t\022\030\n\020claims_supported" + + "\030\006 \003(\t\022\023\n\013grant_types\030\007 \003(\t\"\'\n\025GetJSONWe" + + "bKeysRequest\022\016\n\006parent\030\001 \001(\t\"r\n\003Jwk\022\013\n\003k" + + "ty\030\001 \001(\t\022\013\n\003alg\030\002 \001(\t\022\013\n\003use\030\003 \001(\t\022\013\n\003ki" + + "d\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\026GetJSONWebKe" + + "ysResponse\022+\n\004keys\030\001 \003(\0132\035.google.contai" + + "ner.v1beta1.Jwk\"\223\001\n\016ReleaseChannel\022A\n\007ch" + + "annel\030\001 \001(\01620.google.container.v1beta1.R" + + "eleaseChannel.Channel\">\n\007Channel\022\017\n\013UNSP" + + "ECIFIED\020\000\022\t\n\005RAPID\020\001\022\013\n\007REGULAR\020\002\022\n\n\006STA" + + "BLE\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\026" + + "use_service_networking\030\002 \001(\010\022\027\n\017ipv4_cid" + + "r_block\030\003 \001(\t\"\010\n\006Master\"\034\n\tAutopilot\022\017\n\007" + + "enabled\030\001 \001(\010\"\267\003\n\022NotificationConfig\022C\n\006" + + "pubsub\030\001 \001(\01323.google.container.v1beta1." + + "NotificationConfig.PubSub\032\217\001\n\006PubSub\022\017\n\007" + + "enabled\030\001 \001(\010\022/\n\005topic\030\002 \001(\tB \372A\035\n\033pubsu" + + "b.googleapis.com/Topic\022C\n\006filter\030\003 \001(\01323" + + ".google.container.v1beta1.NotificationCo" + + "nfig.Filter\032T\n\006Filter\022J\n\nevent_type\030\001 \003(" + + "\01626.google.container.v1beta1.Notificatio" + + "nConfig.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_B" + + "ULLETIN_EVENT\020\003\"$\n\021ConfidentialNodes\022\017\n\007" + + "enabled\030\001 \001(\010\"\344\001\n\014UpgradeEvent\022D\n\rresour" + + "ce_type\030\001 \001(\0162-.google.container.v1beta1" + + ".UpgradeResourceType\022\021\n\toperation\030\002 \001(\t\022" + + "8\n\024operation_start_time\030\003 \001(\0132\032.google.p" + + "rotobuf.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\007versio" + + "n\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.containe" + + "r.v1beta1.ReleaseChannel\022\020\n\010resource\030\004 \001" + + "(\t\022C\n\020windows_versions\030\005 \001(\0132).google.co" + + "ntainer.v1beta1.WindowsVersions\"\236\002\n\025Secu" + + "rityBulletinEvent\022\036\n\026resource_type_affec" + + "ted\030\001 \001(\t\022\023\n\013bulletin_id\030\002 \001(\t\022\017\n\007cve_id" + + "s\030\003 \003(\t\022\020\n\010severity\030\004 \001(\t\022\024\n\014bulletin_ur" + + "i\030\005 \001(\t\022\031\n\021brief_description\030\006 \001(\t\022!\n\031af" + + "fected_supported_minors\030\007 \003(\t\022\030\n\020patched" + + "_versions\030\010 \003(\t\022 \n\030suggested_upgrade_tar" + + "get\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.Logging" + + "ComponentConfig\"\364\001\n\026LoggingComponentConf" + + "ig\022U\n\021enable_components\030\001 \003(\0162:.google.c" + + "ontainer.v1beta1.LoggingComponentConfig." + + "Component\"\202\001\n\tComponent\022\031\n\025COMPONENT_UNS" + + "PECIFIED\020\000\022\025\n\021SYSTEM_COMPONENTS\020\001\022\r\n\tWOR" + + "KLOADS\020\002\022\r\n\tAPISERVER\020\003\022\r\n\tSCHEDULER\020\004\022\026" + + "\n\022CONTROLLER_MANAGER\020\005\"\267\001\n\020MonitoringCon" + + "fig\022M\n\020component_config\030\001 \001(\01323.google.c" + + "ontainer.v1beta1.MonitoringComponentConf" + + "ig\022T\n\031managed_prometheus_config\030\002 \001(\01321." + + "google.container.v1beta1.ManagedPromethe" + + "usConfig\"_\n\025NodePoolLoggingConfig\022F\n\016var" + + "iant_config\030\001 \001(\0132..google.container.v1b" + + "eta1.LoggingVariantConfig\"\244\001\n\024LoggingVar" + + "iantConfig\022G\n\007variant\030\001 \001(\01626.google.con" + + "tainer.v1beta1.LoggingVariantConfig.Vari" + + "ant\"C\n\007Variant\022\027\n\023VARIANT_UNSPECIFIED\020\000\022" + + "\013\n\007DEFAULT\020\001\022\022\n\016MAX_THROUGHPUT\020\002\"\376\001\n\031Mon" + + "itoringComponentConfig\022X\n\021enable_compone" + + "nts\030\001 \003(\0162=.google.container.v1beta1.Mon" + + "itoringComponentConfig.Component\"\206\001\n\tCom" + + "ponent\022\031\n\025COMPONENT_UNSPECIFIED\020\000\022\025\n\021SYS" + + "TEM_COMPONENTS\020\001\022\021\n\tWORKLOADS\020\002\032\002\010\001\022\r\n\tA" + + "PISERVER\020\003\022\r\n\tSCHEDULER\020\004\022\026\n\022CONTROLLER_" + + "MANAGER\020\005*\306\001\n\027PrivateIPv6GoogleAccess\022*\n" + + "&PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED\020" + + "\000\022\'\n#PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED" + + "\020\001\022(\n$PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOG" + + "LE\020\002\022,\n(PRIVATE_IPV6_GOOGLE_ACCESS_BIDIR" + + "ECTIONAL\020\003*W\n\023UpgradeResourceType\022%\n!UPG" + + "RADE_RESOURCE_TYPE_UNSPECIFIED\020\000\022\n\n\006MAST" + + "ER\020\001\022\r\n\tNODE_POOL\020\002*^\n\026NodePoolUpdateStr" + + "ategy\022)\n%NODE_POOL_UPDATE_STRATEGY_UNSPE" + + "CIFIED\020\000\022\016\n\nBLUE_GREEN\020\002\022\t\n\005SURGE\020\003*a\n\020D" + + "atapathProvider\022!\n\035DATAPATH_PROVIDER_UNS" + + "PECIFIED\020\000\022\023\n\017LEGACY_DATAPATH\020\001\022\025\n\021ADVAN" + + "CED_DATAPATH\020\0022\262L\n\016ClusterManager\022\363\001\n\014Li" + + "stClusters\022-.google.container.v1beta1.Li" + + "stClustersRequest\032..google.container.v1b" + + "eta1.ListClustersResponse\"\203\001\202\323\344\223\002k\0221/v1b" + + "eta1/{parent=projects/*/locations/*}/clu" + + "stersZ6\0224/v1beta1/projects/{project_id}/" + + "zones/{zone}/clusters\332A\017project_id,zone\022" + + "\372\001\n\nGetCluster\022+.google.container.v1beta" + + "1.GetClusterRequest\032!.google.container.v" + + "1beta1.Cluster\"\233\001\202\323\344\223\002x\0221/v1beta1/{name=" + + "projects/*/locations/*/clusters/*}ZC\022A/v" + + "1beta1/projects/{project_id}/zones/{zone" + + "}/clusters/{cluster_id}\332A\032project_id,zon" + + "e,cluster_id\022\370\001\n\rCreateCluster\022..google." + + "container.v1beta1.CreateClusterRequest\032#" + + ".google.container.v1beta1.Operation\"\221\001\202\323" + + "\344\223\002q\"1/v1beta1/{parent=projects/*/locati" + + "ons/*}/clusters:\001*Z9\"4/v1beta1/projects/" + + "{project_id}/zones/{zone}/clusters:\001*\332A\027" + + "project_id,zone,cluster\022\217\002\n\rUpdateCluste" + + "r\022..google.container.v1beta1.UpdateClust" + + "erRequest\032#.google.container.v1beta1.Ope" + + "ration\"\250\001\202\323\344\223\002~\0321/v1beta1/{name=projects" + + "/*/locations/*/clusters/*}:\001*ZF\032A/v1beta" + + "1/projects/{project_id}/zones/{zone}/clu" + + "sters/{cluster_id}:\001*\332A!project_id,zone," + + "cluster_id,update\022\232\002\n\016UpdateNodePool\022/.g" + + "oogle.container.v1beta1.UpdateNodePoolRe" + + "quest\032#.google.container.v1beta1.Operati" + + "on\"\261\001\202\323\344\223\002\252\001\032=/v1beta1/{name=projects/*/" + + "locations/*/clusters/*/nodePools/*}:\001*Zf" + + "\"a/v1beta1/projects/{project_id}/zones/{" + + "zone}/clusters/{cluster_id}/nodePools/{n" + + "ode_pool_id}/update:\001*\022\276\002\n\026SetNodePoolAu" + + "toscaling\0227.google.container.v1beta1.Set" + + "NodePoolAutoscalingRequest\032#.google.cont" + + "ainer.v1beta1.Operation\"\305\001\202\323\344\223\002\276\001\"L/v1be" + + "ta1/{name=projects/*/locations/*/cluster" + + "s/*/nodePools/*}:setAutoscaling:\001*Zk\"f/v" + + "1beta1/projects/{project_id}/zones/{zone" + + "}/clusters/{cluster_id}/nodePools/{node_" + + "pool_id}/autoscaling:\001*\022\264\002\n\021SetLoggingSe" + + "rvice\0222.google.container.v1beta1.SetLogg" + + "ingServiceRequest\032#.google.container.v1b" + + "eta1.Operation\"\305\001\202\323\344\223\002\221\001\"/" + + "v1beta1/{name=projects/*/locations/*/clu" + + "sters/*}:setLocations:\001*ZP\"K/v1beta1/pro" + + "jects/{project_id}/zones/{zone}/clusters" + + "/{cluster_id}/locations:\001*\332A$project_id," + + "zone,cluster_id,locations\022\252\002\n\014UpdateMast" + + "er\022-.google.container.v1beta1.UpdateMast" + + "erRequest\032#.google.container.v1beta1.Ope" + + "ration\"\305\001\202\323\344\223\002\222\001\">/v1beta1/{name=project" + + "s/*/locations/*/clusters/*}:updateMaster" + + ":\001*ZM\"H/v1beta1/projects/{project_id}/zo" + + "nes/{zone}/clusters/{cluster_id}/master:" + + "\001*\332A)project_id,zone,cluster_id,master_v" + + "ersion\022\210\002\n\rSetMasterAuth\022..google.contai" + + "ner.v1beta1.SetMasterAuthRequest\032#.googl" + + "e.container.v1beta1.Operation\"\241\001\202\323\344\223\002\232\001\"" + + "?/v1beta1/{name=projects/*/locations/*/c" + + "lusters/*}:setMasterAuth:\001*ZT\"O/v1beta1/" + + "projects/{project_id}/zones/{zone}/clust" + + "ers/{cluster_id}:setMasterAuth:\001*\022\202\002\n\rDe" + + "leteCluster\022..google.container.v1beta1.D" + + "eleteClusterRequest\032#.google.container.v" + + "1beta1.Operation\"\233\001\202\323\344\223\002x*1/v1beta1/{nam" + + "e=projects/*/locations/*/clusters/*}ZC*A" + + "/v1beta1/projects/{project_id}/zones/{zo" + + "ne}/clusters/{cluster_id}\332A\032project_id,z" + + "one,cluster_id\022\375\001\n\016ListOperations\022/.goog" + + "le.container.v1beta1.ListOperationsReque" + + "st\0320.google.container.v1beta1.ListOperat" + + "ionsResponse\"\207\001\202\323\344\223\002o\0223/v1beta1/{parent=" + + "projects/*/locations/*}/operationsZ8\0226/v" + + "1beta1/projects/{project_id}/zones/{zone" + + "}/operations\332A\017project_id,zone\022\210\002\n\014GetOp" + + "eration\022-.google.container.v1beta1.GetOp" + + "erationRequest\032#.google.container.v1beta" + + "1.Operation\"\243\001\202\323\344\223\002~\0223/v1beta1/{name=pro" + + "jects/*/locations/*/operations/*}ZG\022E/v1" + + "beta1/projects/{project_id}/zones/{zone}" + + "/operations/{operation_id}\332A\034project_id," + + "zone,operation_id\022\226\002\n\017CancelOperation\0220." + + "google.container.v1beta1.CancelOperation" + + "Request\032\026.google.protobuf.Empty\"\270\001\202\323\344\223\002\222" + + "\001\":/v1beta1/{name=projects/*/locations/*" + + "/operations/*}:cancel:\001*ZQ\"L/v1beta1/pro" + + "jects/{project_id}/zones/{zone}/operatio" + + "ns/{operation_id}:cancel:\001*\332A\034project_id" + + ",zone,operation_id\022\367\001\n\017GetServerConfig\0220" + + ".google.container.v1beta1.GetServerConfi" + + "gRequest\032&.google.container.v1beta1.Serv" + + "erConfig\"\211\001\202\323\344\223\002q\0223/v1beta1/{name=projec" + + "ts/*/locations/*}/serverConfigZ:\0228/v1bet" + + "a1/projects/{project_id}/zones/{zone}/se" + + "rverconfig\332A\017project_id,zone\022\245\002\n\rListNod" + + "ePools\022..google.container.v1beta1.ListNo" + + "dePoolsRequest\032/.google.container.v1beta" + + "1.ListNodePoolsResponse\"\262\001\202\323\344\223\002\216\001\022=/v1be" + + "ta1/{parent=projects/*/locations/*/clust" + + "ers/*}/nodePoolsZM\022K/v1beta1/projects/{p" + + "roject_id}/zones/{zone}/clusters/{cluste" + + "r_id}/nodePools\332A\032project_id,zone,cluste" + + "r_id\022\265\001\n\016GetJSONWebKeys\022/.google.contain" + + "er.v1beta1.GetJSONWebKeysRequest\0320.googl" + + "e.container.v1beta1.GetJSONWebKeysRespon" + + "se\"@\202\323\344\223\002:\0228/v1beta1/{parent=projects/*/" + + "locations/*/clusters/*}/jwks\022\260\002\n\013GetNode" + + "Pool\022,.google.container.v1beta1.GetNodeP" + + "oolRequest\032\".google.container.v1beta1.No" + + "dePool\"\316\001\202\323\344\223\002\235\001\022=/v1beta1/{name=project" + + "s/*/locations/*/clusters/*/nodePools/*}Z" + + "\\\022Z/v1beta1/projects/{project_id}/zones/" + + "{zone}/clusters/{cluster_id}/nodePools/{" + + "node_pool_id}\332A\'project_id,zone,cluster_" + + "id,node_pool_id\022\253\002\n\016CreateNodePool\022/.goo" + + "gle.container.v1beta1.CreateNodePoolRequ" + + "est\032#.google.container.v1beta1.Operation" + + "\"\302\001\202\323\344\223\002\224\001\"=/v1beta1/{parent=projects/*/" + + "locations/*/clusters/*}/nodePools:\001*ZP\"K" + + "/v1beta1/projects/{project_id}/zones/{zo" + + "ne}/clusters/{cluster_id}/nodePools:\001*\332A" + + "$project_id,zone,cluster_id,node_pool\022\267\002" + + "\n\016DeleteNodePool\022/.google.container.v1be" + + "ta1.DeleteNodePoolRequest\032#.google.conta" + + "iner.v1beta1.Operation\"\316\001\202\323\344\223\002\235\001*=/v1bet" + + "a1/{name=projects/*/locations/*/clusters" + + "/*/nodePools/*}Z\\*Z/v1beta1/projects/{pr" + + "oject_id}/zones/{zone}/clusters/{cluster" + + "_id}/nodePools/{node_pool_id}\332A\'project_" + + "id,zone,cluster_id,node_pool_id\022\305\001\n\027Comp" + + "leteNodePoolUpgrade\0228.google.container.v" + + "1beta1.CompleteNodePoolUpgradeRequest\032\026." + + "google.protobuf.Empty\"X\202\323\344\223\002R\"M/v1beta1/" + + "{name=projects/*/locations/*/clusters/*/" + + "nodePools/*}:completeUpgrade:\001*\022\341\002\n\027Roll" + + "backNodePoolUpgrade\0228.google.container.v" + + "1beta1.RollbackNodePoolUpgradeRequest\032#." + + "google.container.v1beta1.Operation\"\346\001\202\323\344" + + "\223\002\265\001\"F/v1beta1/{name=projects/*/location" + + "s/*/clusters/*/nodePools/*}:rollback:\001*Z" + + "h\"c/v1beta1/projects/{project_id}/zones/" + + "{zone}/clusters/{cluster_id}/nodePools/{" + + "node_pool_id}:rollback:\001*\332A\'project_id,z" + + "one,cluster_id,node_pool_id\022\362\002\n\025SetNodeP" + + "oolManagement\0226.google.container.v1beta1" + + ".SetNodePoolManagementRequest\032#.google.c" + + "ontainer.v1beta1.Operation\"\373\001\202\323\344\223\002\277\001\"K/v" + + "1beta1/{name=projects/*/locations/*/clus" + + "ters/*/nodePools/*}:setManagement:\001*Zm\"h" + + "/v1beta1/projects/{project_id}/zones/{zo" + + "ne}/clusters/{cluster_id}/nodePools/{nod" + + "e_pool_id}/setManagement:\001*\332A2project_id" + + ",zone,cluster_id,node_pool_id,management" + + "\022\304\002\n\tSetLabels\022*.google.container.v1beta" + + "1.SetLabelsRequest\032#.google.container.v1" + + "beta1.Operation\"\345\001\202\323\344\223\002\237\001\"C/v1beta1/{nam" + + "e=projects/*/locations/*/clusters/*}:set" + + "ResourceLabels:\001*ZU\"P/v1beta1/projects/{" + + "project_id}/zones/{zone}/clusters/{clust" + + "er_id}/resourceLabels:\001*\332A + * Telemetry integration for the cluster. + * + * + * Protobuf type {@code google.container.v1beta1.ClusterTelemetry} + */ +public final class ClusterTelemetry extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ClusterTelemetry) + ClusterTelemetryOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClusterTelemetry.newBuilder() to construct. + private ClusterTelemetry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ClusterTelemetry() { + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ClusterTelemetry(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ClusterTelemetry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ClusterTelemetry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ClusterTelemetry.class, + com.google.container.v1beta1.ClusterTelemetry.Builder.class); + } + + /** + * + * + *
+   * Type of the integration.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.ClusterTelemetry.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not set.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + * + * + *
+     * Monitoring integration is disabled.
+     * 
+ * + * DISABLED = 1; + */ + DISABLED(1), + /** + * + * + *
+     * Monitoring integration is enabled.
+     * 
+ * + * ENABLED = 2; + */ + ENABLED(2), + /** + * + * + *
+     * Only system components are monitored and logged.
+     * 
+ * + * SYSTEM_ONLY = 3; + */ + SYSTEM_ONLY(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not set.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Monitoring integration is disabled.
+     * 
+ * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + /** + * + * + *
+     * Monitoring integration is enabled.
+     * 
+ * + * ENABLED = 2; + */ + public static final int ENABLED_VALUE = 2; + /** + * + * + *
+     * Only system components are monitored and logged.
+     * 
+ * + * SYSTEM_ONLY = 3; + */ + public static final int SYSTEM_ONLY_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: + return UNSPECIFIED; + case 1: + return DISABLED; + case 2: + return ENABLED; + case 3: + return SYSTEM_ONLY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1beta1.ClusterTelemetry.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.ClusterTelemetry.Type) + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + * + * + *
+   * Type of the integration.
+   * 
+ * + * .google.container.v1beta1.ClusterTelemetry.Type type = 1; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * Type of the integration.
+   * 
+ * + * .google.container.v1beta1.ClusterTelemetry.Type type = 1; + * + * @return The type. + */ + @java.lang.Override + public com.google.container.v1beta1.ClusterTelemetry.Type getType() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.ClusterTelemetry.Type result = + com.google.container.v1beta1.ClusterTelemetry.Type.valueOf(type_); + return result == null + ? com.google.container.v1beta1.ClusterTelemetry.Type.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (type_ != com.google.container.v1beta1.ClusterTelemetry.Type.UNSPECIFIED.getNumber()) { + output.writeEnum(1, type_); + } + 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(); + type_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ClusterTelemetry_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ClusterTelemetry getDefaultInstanceForType() { + return com.google.container.v1beta1.ClusterTelemetry.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ClusterTelemetry build() { + com.google.container.v1beta1.ClusterTelemetry result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ClusterTelemetry buildPartial() { + com.google.container.v1beta1.ClusterTelemetry result = + new com.google.container.v1beta1.ClusterTelemetry(this); + result.type_ = type_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ClusterTelemetry) { + return mergeFrom((com.google.container.v1beta1.ClusterTelemetry) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ClusterTelemetry other) { + if (other == com.google.container.v1beta1.ClusterTelemetry.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 type_ = 0; + /** + * + * + *
+     * Type of the integration.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry.Type type = 1; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Type of the integration.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry.Type type = 1; + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Type of the integration.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry.Type type = 1; + * + * @return The type. + */ + @java.lang.Override + public com.google.container.v1beta1.ClusterTelemetry.Type getType() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.ClusterTelemetry.Type result = + com.google.container.v1beta1.ClusterTelemetry.Type.valueOf(type_); + return result == null + ? com.google.container.v1beta1.ClusterTelemetry.Type.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Type of the integration.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry.Type type = 1; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.container.v1beta1.ClusterTelemetry.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Type of the integration.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry.Type type = 1; + * + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ClusterTelemetry) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ClusterTelemetry) + private static final com.google.container.v1beta1.ClusterTelemetry DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ClusterTelemetry(); + } + + public static com.google.container.v1beta1.ClusterTelemetry getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterTelemetry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..1729bb55e8a4 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterTelemetryOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ClusterTelemetryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ClusterTelemetry) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Type of the integration.
+   * 
+ * + * .google.container.v1beta1.ClusterTelemetry.Type type = 1; + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *
+   * Type of the integration.
+   * 
+ * + * .google.container.v1beta1.ClusterTelemetry.Type type = 1; + * + * @return The type. + */ + com.google.container.v1beta1.ClusterTelemetry.Type getType(); +} diff --git a/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 new file mode 100644 index 000000000000..6b05ad61a8d9 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdate.java @@ -0,0 +1,12605 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * ClusterUpdate describes an update to the cluster. Exactly one update can
+ * be applied to a cluster with each request, so at most one field can be
+ * provided.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ClusterUpdate} + */ +public final class ClusterUpdate extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ClusterUpdate) + ClusterUpdateOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClusterUpdate.newBuilder() to construct. + private ClusterUpdate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ClusterUpdate() { + desiredNodeVersion_ = ""; + desiredMonitoringService_ = ""; + desiredNodePoolId_ = ""; + desiredImageType_ = ""; + desiredLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + desiredLoggingService_ = ""; + desiredDatapathProvider_ = 0; + desiredPrivateIpv6GoogleAccess_ = 0; + desiredMasterVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ClusterUpdate(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ClusterUpdate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ClusterUpdate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ClusterUpdate.class, + com.google.container.v1beta1.ClusterUpdate.Builder.class); + } + + private int bitField0_; + public static final int DESIRED_NODE_VERSION_FIELD_NUMBER = 4; + private volatile java.lang.Object desiredNodeVersion_; + /** + * + * + *
+   * The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string desired_node_version = 4; + * + * @return The desiredNodeVersion. + */ + @java.lang.Override + public java.lang.String getDesiredNodeVersion() { + java.lang.Object ref = desiredNodeVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredNodeVersion_ = s; + return s; + } + } + /** + * + * + *
+   * The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string desired_node_version = 4; + * + * @return The bytes for desiredNodeVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDesiredNodeVersionBytes() { + java.lang.Object ref = desiredNodeVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + desiredNodeVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESIRED_MONITORING_SERVICE_FIELD_NUMBER = 5; + private volatile java.lang.Object desiredMonitoringService_; + /** + * + * + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+   * 
+ * + * string desired_monitoring_service = 5; + * + * @return The desiredMonitoringService. + */ + @java.lang.Override + public java.lang.String getDesiredMonitoringService() { + java.lang.Object ref = desiredMonitoringService_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredMonitoringService_ = s; + return s; + } + } + /** + * + * + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+   * 
+ * + * string desired_monitoring_service = 5; + * + * @return The bytes for desiredMonitoringService. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDesiredMonitoringServiceBytes() { + java.lang.Object ref = desiredMonitoringService_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + desiredMonitoringService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESIRED_ADDONS_CONFIG_FIELD_NUMBER = 6; + private com.google.container.v1beta1.AddonsConfig desiredAddonsConfig_; + /** + * + * + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + * + * @return Whether the desiredAddonsConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredAddonsConfig() { + return desiredAddonsConfig_ != null; + } + /** + * + * + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + * + * @return The desiredAddonsConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.AddonsConfig getDesiredAddonsConfig() { + return desiredAddonsConfig_ == null + ? com.google.container.v1beta1.AddonsConfig.getDefaultInstance() + : desiredAddonsConfig_; + } + /** + * + * + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + */ + @java.lang.Override + public com.google.container.v1beta1.AddonsConfigOrBuilder getDesiredAddonsConfigOrBuilder() { + return getDesiredAddonsConfig(); + } + + public static final int DESIRED_NODE_POOL_ID_FIELD_NUMBER = 7; + private volatile java.lang.Object desiredNodePoolId_; + /** + * + * + *
+   * The node pool to be upgraded. This field is mandatory if
+   * "desired_node_version", "desired_image_family",
+   * "desired_node_pool_autoscaling", or "desired_workload_metadata_config"
+   * is specified and there is more than one node pool on the cluster.
+   * 
+ * + * string desired_node_pool_id = 7; + * + * @return The desiredNodePoolId. + */ + @java.lang.Override + public java.lang.String getDesiredNodePoolId() { + java.lang.Object ref = desiredNodePoolId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredNodePoolId_ = s; + return s; + } + } + /** + * + * + *
+   * The node pool to be upgraded. This field is mandatory if
+   * "desired_node_version", "desired_image_family",
+   * "desired_node_pool_autoscaling", or "desired_workload_metadata_config"
+   * is specified and there is more than one node pool on the cluster.
+   * 
+ * + * string desired_node_pool_id = 7; + * + * @return The bytes for desiredNodePoolId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDesiredNodePoolIdBytes() { + java.lang.Object ref = desiredNodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + desiredNodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESIRED_IMAGE_TYPE_FIELD_NUMBER = 8; + private volatile java.lang.Object desiredImageType_; + /** + * + * + *
+   * The desired image type for the node pool.
+   * NOTE: Set the "desired_node_pool" field as well.
+   * 
+ * + * string desired_image_type = 8; + * + * @return The desiredImageType. + */ + @java.lang.Override + public java.lang.String getDesiredImageType() { + java.lang.Object ref = desiredImageType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredImageType_ = s; + return s; + } + } + /** + * + * + *
+   * The desired image type for the node pool.
+   * NOTE: Set the "desired_node_pool" field as well.
+   * 
+ * + * string desired_image_type = 8; + * + * @return The bytes for desiredImageType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDesiredImageTypeBytes() { + java.lang.Object ref = desiredImageType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + desiredImageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESIRED_NODE_POOL_AUTOSCALING_FIELD_NUMBER = 9; + private com.google.container.v1beta1.NodePoolAutoscaling desiredNodePoolAutoscaling_; + /** + * + * + *
+   * Autoscaler configuration for the node pool specified in
+   * desired_node_pool_id. If there is only one pool in the
+   * cluster and desired_node_pool_id is not provided then
+   * the change applies to that single node pool.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + * + * @return Whether the desiredNodePoolAutoscaling field is set. + */ + @java.lang.Override + public boolean hasDesiredNodePoolAutoscaling() { + return desiredNodePoolAutoscaling_ != null; + } + /** + * + * + *
+   * Autoscaler configuration for the node pool specified in
+   * desired_node_pool_id. If there is only one pool in the
+   * cluster and desired_node_pool_id is not provided then
+   * the change applies to that single node pool.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + * + * @return The desiredNodePoolAutoscaling. + */ + @java.lang.Override + public com.google.container.v1beta1.NodePoolAutoscaling getDesiredNodePoolAutoscaling() { + return desiredNodePoolAutoscaling_ == null + ? com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() + : desiredNodePoolAutoscaling_; + } + /** + * + * + *
+   * Autoscaler configuration for the node pool specified in
+   * desired_node_pool_id. If there is only one pool in the
+   * cluster and desired_node_pool_id is not provided then
+   * the change applies to that single node pool.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + @java.lang.Override + public com.google.container.v1beta1.NodePoolAutoscalingOrBuilder + getDesiredNodePoolAutoscalingOrBuilder() { + return getDesiredNodePoolAutoscaling(); + } + + public static final int DESIRED_LOCATIONS_FIELD_NUMBER = 10; + private com.google.protobuf.LazyStringList desiredLocations_; + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This list must always include the cluster's primary zone.
+   * Warning: changing cluster locations will update the locations of all node
+   * pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string desired_locations = 10; + * + * @return A list containing the desiredLocations. + */ + public com.google.protobuf.ProtocolStringList getDesiredLocationsList() { + return desiredLocations_; + } + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This list must always include the cluster's primary zone.
+   * Warning: changing cluster locations will update the locations of all node
+   * pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string desired_locations = 10; + * + * @return The count of desiredLocations. + */ + public int getDesiredLocationsCount() { + return desiredLocations_.size(); + } + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This list must always include the cluster's primary zone.
+   * Warning: changing cluster locations will update the locations of all node
+   * pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string desired_locations = 10; + * + * @param index The index of the element to return. + * @return The desiredLocations at the given index. + */ + public java.lang.String getDesiredLocations(int index) { + return desiredLocations_.get(index); + } + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This list must always include the cluster's primary zone.
+   * Warning: changing cluster locations will update the locations of all node
+   * pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string desired_locations = 10; + * + * @param index The index of the value to return. + * @return The bytes of the desiredLocations at the given index. + */ + public com.google.protobuf.ByteString getDesiredLocationsBytes(int index) { + return desiredLocations_.getByteString(index); + } + + public static final int DESIRED_MASTER_AUTHORIZED_NETWORKS_CONFIG_FIELD_NUMBER = 12; + private com.google.container.v1beta1.MasterAuthorizedNetworksConfig + desiredMasterAuthorizedNetworksConfig_; + /** + * + * + *
+   * The desired configuration options for master authorized networks feature.
+   * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * + * + * @return Whether the desiredMasterAuthorizedNetworksConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredMasterAuthorizedNetworksConfig() { + return desiredMasterAuthorizedNetworksConfig_ != null; + } + /** + * + * + *
+   * The desired configuration options for master authorized networks feature.
+   * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * + * + * @return The desiredMasterAuthorizedNetworksConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig + getDesiredMasterAuthorizedNetworksConfig() { + return desiredMasterAuthorizedNetworksConfig_ == null + ? com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance() + : desiredMasterAuthorizedNetworksConfig_; + } + /** + * + * + *
+   * The desired configuration options for master authorized networks feature.
+   * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * + */ + @java.lang.Override + public com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder + getDesiredMasterAuthorizedNetworksConfigOrBuilder() { + return getDesiredMasterAuthorizedNetworksConfig(); + } + + public static final int DESIRED_POD_SECURITY_POLICY_CONFIG_FIELD_NUMBER = 14; + private com.google.container.v1beta1.PodSecurityPolicyConfig desiredPodSecurityPolicyConfig_; + /** + * + * + *
+   * The desired configuration options for the PodSecurityPolicy feature.
+   * 
+ * + * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + * + * + * @return Whether the desiredPodSecurityPolicyConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredPodSecurityPolicyConfig() { + return desiredPodSecurityPolicyConfig_ != null; + } + /** + * + * + *
+   * The desired configuration options for the PodSecurityPolicy feature.
+   * 
+ * + * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + * + * + * @return The desiredPodSecurityPolicyConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.PodSecurityPolicyConfig getDesiredPodSecurityPolicyConfig() { + return desiredPodSecurityPolicyConfig_ == null + ? com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance() + : desiredPodSecurityPolicyConfig_; + } + /** + * + * + *
+   * The desired configuration options for the PodSecurityPolicy feature.
+   * 
+ * + * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + * + */ + @java.lang.Override + public com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder + getDesiredPodSecurityPolicyConfigOrBuilder() { + return getDesiredPodSecurityPolicyConfig(); + } + + public static final int DESIRED_CLUSTER_AUTOSCALING_FIELD_NUMBER = 15; + private com.google.container.v1beta1.ClusterAutoscaling desiredClusterAutoscaling_; + /** + * + * + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + * + * @return Whether the desiredClusterAutoscaling field is set. + */ + @java.lang.Override + public boolean hasDesiredClusterAutoscaling() { + return desiredClusterAutoscaling_ != null; + } + /** + * + * + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + * + * @return The desiredClusterAutoscaling. + */ + @java.lang.Override + public com.google.container.v1beta1.ClusterAutoscaling getDesiredClusterAutoscaling() { + return desiredClusterAutoscaling_ == null + ? com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance() + : desiredClusterAutoscaling_; + } + /** + * + * + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + @java.lang.Override + public com.google.container.v1beta1.ClusterAutoscalingOrBuilder + getDesiredClusterAutoscalingOrBuilder() { + return getDesiredClusterAutoscaling(); + } + + public static final int DESIRED_BINARY_AUTHORIZATION_FIELD_NUMBER = 16; + private com.google.container.v1beta1.BinaryAuthorization desiredBinaryAuthorization_; + /** + * + * + *
+   * The desired configuration options for the Binary Authorization feature.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + * + * @return Whether the desiredBinaryAuthorization field is set. + */ + @java.lang.Override + public boolean hasDesiredBinaryAuthorization() { + return desiredBinaryAuthorization_ != null; + } + /** + * + * + *
+   * The desired configuration options for the Binary Authorization feature.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + * + * @return The desiredBinaryAuthorization. + */ + @java.lang.Override + public com.google.container.v1beta1.BinaryAuthorization getDesiredBinaryAuthorization() { + return desiredBinaryAuthorization_ == null + ? com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance() + : desiredBinaryAuthorization_; + } + /** + * + * + *
+   * The desired configuration options for the Binary Authorization feature.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + */ + @java.lang.Override + public com.google.container.v1beta1.BinaryAuthorizationOrBuilder + getDesiredBinaryAuthorizationOrBuilder() { + return getDesiredBinaryAuthorization(); + } + + public static final int DESIRED_LOGGING_SERVICE_FIELD_NUMBER = 19; + private volatile java.lang.Object desiredLoggingService_; + /** + * + * + *
+   * The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
+   * * `none` - no logs will be exported from the cluster.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+   * 
+ * + * string desired_logging_service = 19; + * + * @return The desiredLoggingService. + */ + @java.lang.Override + public java.lang.String getDesiredLoggingService() { + java.lang.Object ref = desiredLoggingService_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredLoggingService_ = s; + return s; + } + } + /** + * + * + *
+   * The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
+   * * `none` - no logs will be exported from the cluster.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+   * 
+ * + * string desired_logging_service = 19; + * + * @return The bytes for desiredLoggingService. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDesiredLoggingServiceBytes() { + java.lang.Object ref = desiredLoggingService_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + desiredLoggingService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESIRED_RESOURCE_USAGE_EXPORT_CONFIG_FIELD_NUMBER = 21; + private com.google.container.v1beta1.ResourceUsageExportConfig desiredResourceUsageExportConfig_; + /** + * + * + *
+   * The desired configuration for exporting resource usage.
+   * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * + * + * @return Whether the desiredResourceUsageExportConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredResourceUsageExportConfig() { + return desiredResourceUsageExportConfig_ != null; + } + /** + * + * + *
+   * The desired configuration for exporting resource usage.
+   * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * + * + * @return The desiredResourceUsageExportConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.ResourceUsageExportConfig + getDesiredResourceUsageExportConfig() { + return desiredResourceUsageExportConfig_ == null + ? com.google.container.v1beta1.ResourceUsageExportConfig.getDefaultInstance() + : desiredResourceUsageExportConfig_; + } + /** + * + * + *
+   * The desired configuration for exporting resource usage.
+   * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * + */ + @java.lang.Override + public com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder + getDesiredResourceUsageExportConfigOrBuilder() { + return getDesiredResourceUsageExportConfig(); + } + + public static final int DESIRED_VERTICAL_POD_AUTOSCALING_FIELD_NUMBER = 22; + private com.google.container.v1beta1.VerticalPodAutoscaling desiredVerticalPodAutoscaling_; + /** + * + * + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * + * + * @return Whether the desiredVerticalPodAutoscaling field is set. + */ + @java.lang.Override + public boolean hasDesiredVerticalPodAutoscaling() { + return desiredVerticalPodAutoscaling_ != null; + } + /** + * + * + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * + * + * @return The desiredVerticalPodAutoscaling. + */ + @java.lang.Override + public com.google.container.v1beta1.VerticalPodAutoscaling getDesiredVerticalPodAutoscaling() { + return desiredVerticalPodAutoscaling_ == null + ? com.google.container.v1beta1.VerticalPodAutoscaling.getDefaultInstance() + : desiredVerticalPodAutoscaling_; + } + /** + * + * + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * + */ + @java.lang.Override + public com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder + getDesiredVerticalPodAutoscalingOrBuilder() { + return getDesiredVerticalPodAutoscaling(); + } + + public static final int DESIRED_PRIVATE_CLUSTER_CONFIG_FIELD_NUMBER = 25; + private com.google.container.v1beta1.PrivateClusterConfig desiredPrivateClusterConfig_; + /** + * + * + *
+   * The desired private cluster configuration.
+   * 
+ * + * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; + * + * + * @return Whether the desiredPrivateClusterConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredPrivateClusterConfig() { + return desiredPrivateClusterConfig_ != null; + } + /** + * + * + *
+   * The desired private cluster configuration.
+   * 
+ * + * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; + * + * + * @return The desiredPrivateClusterConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.PrivateClusterConfig getDesiredPrivateClusterConfig() { + return desiredPrivateClusterConfig_ == null + ? com.google.container.v1beta1.PrivateClusterConfig.getDefaultInstance() + : desiredPrivateClusterConfig_; + } + /** + * + * + *
+   * The desired private cluster configuration.
+   * 
+ * + * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; + * + */ + @java.lang.Override + public com.google.container.v1beta1.PrivateClusterConfigOrBuilder + getDesiredPrivateClusterConfigOrBuilder() { + return getDesiredPrivateClusterConfig(); + } + + public static final int DESIRED_INTRA_NODE_VISIBILITY_CONFIG_FIELD_NUMBER = 26; + private com.google.container.v1beta1.IntraNodeVisibilityConfig desiredIntraNodeVisibilityConfig_; + /** + * + * + *
+   * The desired config of Intra-node visibility.
+   * 
+ * + * + * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * + * + * @return Whether the desiredIntraNodeVisibilityConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredIntraNodeVisibilityConfig() { + return desiredIntraNodeVisibilityConfig_ != null; + } + /** + * + * + *
+   * The desired config of Intra-node visibility.
+   * 
+ * + * + * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * + * + * @return The desiredIntraNodeVisibilityConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.IntraNodeVisibilityConfig + getDesiredIntraNodeVisibilityConfig() { + return desiredIntraNodeVisibilityConfig_ == null + ? com.google.container.v1beta1.IntraNodeVisibilityConfig.getDefaultInstance() + : desiredIntraNodeVisibilityConfig_; + } + /** + * + * + *
+   * The desired config of Intra-node visibility.
+   * 
+ * + * + * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * + */ + @java.lang.Override + public com.google.container.v1beta1.IntraNodeVisibilityConfigOrBuilder + getDesiredIntraNodeVisibilityConfigOrBuilder() { + return getDesiredIntraNodeVisibilityConfig(); + } + + public static final int DESIRED_DEFAULT_SNAT_STATUS_FIELD_NUMBER = 28; + private com.google.container.v1beta1.DefaultSnatStatus desiredDefaultSnatStatus_; + /** + * + * + *
+   * The desired status of whether to disable default sNAT for this cluster.
+   * 
+ * + * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; + * + * @return Whether the desiredDefaultSnatStatus field is set. + */ + @java.lang.Override + public boolean hasDesiredDefaultSnatStatus() { + return desiredDefaultSnatStatus_ != null; + } + /** + * + * + *
+   * The desired status of whether to disable default sNAT for this cluster.
+   * 
+ * + * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; + * + * @return The desiredDefaultSnatStatus. + */ + @java.lang.Override + public com.google.container.v1beta1.DefaultSnatStatus getDesiredDefaultSnatStatus() { + return desiredDefaultSnatStatus_ == null + ? com.google.container.v1beta1.DefaultSnatStatus.getDefaultInstance() + : desiredDefaultSnatStatus_; + } + /** + * + * + *
+   * The desired status of whether to disable default sNAT for this cluster.
+   * 
+ * + * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; + */ + @java.lang.Override + public com.google.container.v1beta1.DefaultSnatStatusOrBuilder + getDesiredDefaultSnatStatusOrBuilder() { + return getDesiredDefaultSnatStatus(); + } + + public static final int DESIRED_CLUSTER_TELEMETRY_FIELD_NUMBER = 30; + private com.google.container.v1beta1.ClusterTelemetry desiredClusterTelemetry_; + /** + * + * + *
+   * The desired telemetry integration for the cluster.
+   * 
+ * + * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; + * + * @return Whether the desiredClusterTelemetry field is set. + */ + @java.lang.Override + public boolean hasDesiredClusterTelemetry() { + return desiredClusterTelemetry_ != null; + } + /** + * + * + *
+   * The desired telemetry integration for the cluster.
+   * 
+ * + * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; + * + * @return The desiredClusterTelemetry. + */ + @java.lang.Override + public com.google.container.v1beta1.ClusterTelemetry getDesiredClusterTelemetry() { + return desiredClusterTelemetry_ == null + ? com.google.container.v1beta1.ClusterTelemetry.getDefaultInstance() + : desiredClusterTelemetry_; + } + /** + * + * + *
+   * The desired telemetry integration for the cluster.
+   * 
+ * + * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; + */ + @java.lang.Override + public com.google.container.v1beta1.ClusterTelemetryOrBuilder + getDesiredClusterTelemetryOrBuilder() { + return getDesiredClusterTelemetry(); + } + + public static final int DESIRED_RELEASE_CHANNEL_FIELD_NUMBER = 31; + private com.google.container.v1beta1.ReleaseChannel desiredReleaseChannel_; + /** + * + * + *
+   * The desired release channel configuration.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; + * + * @return Whether the desiredReleaseChannel field is set. + */ + @java.lang.Override + public boolean hasDesiredReleaseChannel() { + return desiredReleaseChannel_ != null; + } + /** + * + * + *
+   * The desired release channel configuration.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; + * + * @return The desiredReleaseChannel. + */ + @java.lang.Override + public com.google.container.v1beta1.ReleaseChannel getDesiredReleaseChannel() { + return desiredReleaseChannel_ == null + ? com.google.container.v1beta1.ReleaseChannel.getDefaultInstance() + : desiredReleaseChannel_; + } + /** + * + * + *
+   * The desired release channel configuration.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; + */ + @java.lang.Override + public com.google.container.v1beta1.ReleaseChannelOrBuilder getDesiredReleaseChannelOrBuilder() { + return getDesiredReleaseChannel(); + } + + public static final int DESIRED_TPU_CONFIG_FIELD_NUMBER = 38; + private com.google.container.v1beta1.TpuConfig desiredTpuConfig_; + /** + * + * + *
+   * The desired Cloud TPU configuration.
+   * 
+ * + * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; + * + * @return Whether the desiredTpuConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredTpuConfig() { + return desiredTpuConfig_ != null; + } + /** + * + * + *
+   * The desired Cloud TPU configuration.
+   * 
+ * + * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; + * + * @return The desiredTpuConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.TpuConfig getDesiredTpuConfig() { + return desiredTpuConfig_ == null + ? com.google.container.v1beta1.TpuConfig.getDefaultInstance() + : desiredTpuConfig_; + } + /** + * + * + *
+   * The desired Cloud TPU configuration.
+   * 
+ * + * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; + */ + @java.lang.Override + public com.google.container.v1beta1.TpuConfigOrBuilder getDesiredTpuConfigOrBuilder() { + return getDesiredTpuConfig(); + } + + public static final int DESIRED_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 desiredL4IlbSubsettingConfig_ != null; + } + /** + * + * + *
+   * 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 getDesiredL4IlbSubsettingConfig(); + } + + public static final int DESIRED_DATAPATH_PROVIDER_FIELD_NUMBER = 50; + private int desiredDatapathProvider_; + /** + * + * + *
+   * The desired datapath provider for the cluster.
+   * 
+ * + * .google.container.v1beta1.DatapathProvider desired_datapath_provider = 50; + * + * @return The enum numeric value on the wire for desiredDatapathProvider. + */ + @java.lang.Override + public int getDesiredDatapathProviderValue() { + return desiredDatapathProvider_; + } + /** + * + * + *
+   * The desired datapath provider for the cluster.
+   * 
+ * + * .google.container.v1beta1.DatapathProvider desired_datapath_provider = 50; + * + * @return The desiredDatapathProvider. + */ + @java.lang.Override + public com.google.container.v1beta1.DatapathProvider getDesiredDatapathProvider() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.DatapathProvider result = + com.google.container.v1beta1.DatapathProvider.valueOf(desiredDatapathProvider_); + return result == null ? com.google.container.v1beta1.DatapathProvider.UNRECOGNIZED : result; + } + + public static final int DESIRED_PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER = 51; + private int desiredPrivateIpv6GoogleAccess_; + /** + * + * + *
+   * 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.PrivateIPv6GoogleAccess result = + com.google.container.v1beta1.PrivateIPv6GoogleAccess.valueOf( + 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 desiredNotificationConfig_ != null; + } + /** + * + * + *
+   * The desired notification configuration.
+   * 
+ * + * .google.container.v1beta1.NotificationConfig desired_notification_config = 55; + * + * @return The desiredNotificationConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig getDesiredNotificationConfig() { + return desiredNotificationConfig_ == null + ? com.google.container.v1beta1.NotificationConfig.getDefaultInstance() + : desiredNotificationConfig_; + } + /** + * + * + *
+   * The desired notification configuration.
+   * 
+ * + * .google.container.v1beta1.NotificationConfig desired_notification_config = 55; + */ + @java.lang.Override + public com.google.container.v1beta1.NotificationConfigOrBuilder + getDesiredNotificationConfigOrBuilder() { + return getDesiredNotificationConfig(); + } + + public static final int DESIRED_MASTER_VERSION_FIELD_NUMBER = 100; + private volatile java.lang.Object desiredMasterVersion_; + /** + * + * + *
+   * The Kubernetes version to change the master to. The only valid value is the
+   * latest supported version.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
+   * 
+ * + * string desired_master_version = 100; + * + * @return The desiredMasterVersion. + */ + @java.lang.Override + public java.lang.String getDesiredMasterVersion() { + java.lang.Object ref = desiredMasterVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredMasterVersion_ = s; + return s; + } + } + /** + * + * + *
+   * The Kubernetes version to change the master to. The only valid value is the
+   * latest supported version.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
+   * 
+ * + * string desired_master_version = 100; + * + * @return The bytes for desiredMasterVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDesiredMasterVersionBytes() { + java.lang.Object ref = desiredMasterVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + desiredMasterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESIRED_GCFS_CONFIG_FIELD_NUMBER = 109; + private com.google.container.v1beta1.GcfsConfig desiredGcfsConfig_; + /** + * + * + *
+   * The desired GCFS config for the cluster.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + * + * @return Whether the desiredGcfsConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredGcfsConfig() { + return desiredGcfsConfig_ != null; + } + /** + * + * + *
+   * The desired GCFS config for the cluster.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + * + * @return The desiredGcfsConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.GcfsConfig getDesiredGcfsConfig() { + return desiredGcfsConfig_ == null + ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() + : desiredGcfsConfig_; + } + /** + * + * + *
+   * The desired GCFS config for the cluster.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + */ + @java.lang.Override + public com.google.container.v1beta1.GcfsConfigOrBuilder getDesiredGcfsConfigOrBuilder() { + return getDesiredGcfsConfig(); + } + + public static final int DESIRED_DATABASE_ENCRYPTION_FIELD_NUMBER = 46; + private com.google.container.v1beta1.DatabaseEncryption desiredDatabaseEncryption_; + /** + * + * + *
+   * Configuration of etcd encryption.
+   * 
+ * + * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; + * + * @return Whether the desiredDatabaseEncryption field is set. + */ + @java.lang.Override + public boolean hasDesiredDatabaseEncryption() { + return desiredDatabaseEncryption_ != null; + } + /** + * + * + *
+   * Configuration of etcd encryption.
+   * 
+ * + * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; + * + * @return The desiredDatabaseEncryption. + */ + @java.lang.Override + public com.google.container.v1beta1.DatabaseEncryption getDesiredDatabaseEncryption() { + return desiredDatabaseEncryption_ == null + ? com.google.container.v1beta1.DatabaseEncryption.getDefaultInstance() + : desiredDatabaseEncryption_; + } + /** + * + * + *
+   * Configuration of etcd encryption.
+   * 
+ * + * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; + */ + @java.lang.Override + public com.google.container.v1beta1.DatabaseEncryptionOrBuilder + getDesiredDatabaseEncryptionOrBuilder() { + return getDesiredDatabaseEncryption(); + } + + public static final int DESIRED_WORKLOAD_IDENTITY_CONFIG_FIELD_NUMBER = 47; + private com.google.container.v1beta1.WorkloadIdentityConfig desiredWorkloadIdentityConfig_; + /** + * + * + *
+   * Configuration for Workload Identity.
+   * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + * + * @return Whether the desiredWorkloadIdentityConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredWorkloadIdentityConfig() { + return desiredWorkloadIdentityConfig_ != null; + } + /** + * + * + *
+   * Configuration for Workload Identity.
+   * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + * + * @return The desiredWorkloadIdentityConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.WorkloadIdentityConfig getDesiredWorkloadIdentityConfig() { + return desiredWorkloadIdentityConfig_ == null + ? com.google.container.v1beta1.WorkloadIdentityConfig.getDefaultInstance() + : desiredWorkloadIdentityConfig_; + } + /** + * + * + *
+   * Configuration for Workload Identity.
+   * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + */ + @java.lang.Override + public com.google.container.v1beta1.WorkloadIdentityConfigOrBuilder + getDesiredWorkloadIdentityConfigOrBuilder() { + return getDesiredWorkloadIdentityConfig(); + } + + public static final int DESIRED_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 desiredWorkloadCertificates_ != null; + } + /** + * + * + *
+   * 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 getDesiredWorkloadCertificates(); + } + + public static final int DESIRED_MESH_CERTIFICATES_FIELD_NUMBER = 67; + private com.google.container.v1beta1.MeshCertificates desiredMeshCertificates_; + /** + * + * + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + * + * @return Whether the desiredMeshCertificates field is set. + */ + @java.lang.Override + public boolean hasDesiredMeshCertificates() { + return desiredMeshCertificates_ != null; + } + /** + * + * + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + * + * @return The desiredMeshCertificates. + */ + @java.lang.Override + public com.google.container.v1beta1.MeshCertificates getDesiredMeshCertificates() { + return desiredMeshCertificates_ == null + ? com.google.container.v1beta1.MeshCertificates.getDefaultInstance() + : desiredMeshCertificates_; + } + /** + * + * + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + */ + @java.lang.Override + public com.google.container.v1beta1.MeshCertificatesOrBuilder + getDesiredMeshCertificatesOrBuilder() { + return getDesiredMeshCertificates(); + } + + public static final int DESIRED_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 desiredWorkloadAltsConfig_ != null; + } + /** + * + * + *
+   * 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 getDesiredWorkloadAltsConfig(); + } + + public static final int DESIRED_SHIELDED_NODES_FIELD_NUMBER = 48; + private com.google.container.v1beta1.ShieldedNodes desiredShieldedNodes_; + /** + * + * + *
+   * Configuration for Shielded Nodes.
+   * 
+ * + * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; + * + * @return Whether the desiredShieldedNodes field is set. + */ + @java.lang.Override + public boolean hasDesiredShieldedNodes() { + return desiredShieldedNodes_ != null; + } + /** + * + * + *
+   * Configuration for Shielded Nodes.
+   * 
+ * + * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; + * + * @return The desiredShieldedNodes. + */ + @java.lang.Override + public com.google.container.v1beta1.ShieldedNodes getDesiredShieldedNodes() { + return desiredShieldedNodes_ == null + ? com.google.container.v1beta1.ShieldedNodes.getDefaultInstance() + : desiredShieldedNodes_; + } + /** + * + * + *
+   * Configuration for Shielded Nodes.
+   * 
+ * + * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; + */ + @java.lang.Override + public com.google.container.v1beta1.ShieldedNodesOrBuilder getDesiredShieldedNodesOrBuilder() { + return getDesiredShieldedNodes(); + } + + public static final int DESIRED_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 desiredCostManagementConfig_ != null; + } + /** + * + * + *
+   * 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 getDesiredCostManagementConfig(); + } + + public static final int DESIRED_MASTER_FIELD_NUMBER = 52; + private com.google.container.v1beta1.Master desiredMaster_; + /** + * + * + *
+   * Configuration for master components.
+   * 
+ * + * .google.container.v1beta1.Master desired_master = 52; + * + * @return Whether the desiredMaster field is set. + */ + @java.lang.Override + public boolean hasDesiredMaster() { + return desiredMaster_ != null; + } + /** + * + * + *
+   * Configuration for master components.
+   * 
+ * + * .google.container.v1beta1.Master desired_master = 52; + * + * @return The desiredMaster. + */ + @java.lang.Override + public com.google.container.v1beta1.Master getDesiredMaster() { + return desiredMaster_ == null + ? com.google.container.v1beta1.Master.getDefaultInstance() + : desiredMaster_; + } + /** + * + * + *
+   * Configuration for master components.
+   * 
+ * + * .google.container.v1beta1.Master desired_master = 52; + */ + @java.lang.Override + public com.google.container.v1beta1.MasterOrBuilder getDesiredMasterOrBuilder() { + return getDesiredMaster(); + } + + 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 desiredDnsConfig_ != null; + } + /** + * + * + *
+   * 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 getDesiredDnsConfig(); + } + + 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 desiredServiceExternalIpsConfig_ != null; + } + /** + * + * + *
+   * 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 getDesiredServiceExternalIpsConfig(); + } + + 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 desiredAuthenticatorGroupsConfig_ != null; + } + /** + * + * + *
+   * 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 getDesiredAuthenticatorGroupsConfig(); + } + + 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 desiredLoggingConfig_ != null; + } + /** + * + * + *
+   * 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 getDesiredLoggingConfig(); + } + + 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 desiredMonitoringConfig_ != null; + } + /** + * + * + *
+   * 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 getDesiredMonitoringConfig(); + } + + 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 desiredIdentityServiceConfig_ != null; + } + /** + * + * + *
+   * 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 getDesiredIdentityServiceConfig(); + } + + public static final int DESIRED_ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER = 71; + 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 ((bitField0_ & 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_; + } + + 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 desiredNodePoolAutoConfigNetworkTags_ != null; + } + /** + * + * + *
+   * 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 getDesiredNodePoolAutoConfigNetworkTags(); + } + + public static final int DESIRED_PROTECT_CONFIG_FIELD_NUMBER = 112; + private com.google.container.v1beta1.ProtectConfig desiredProtectConfig_; + /** + * + * + *
+   * Enable/Disable Protect API features for the cluster.
+   * 
+ * + * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112; + * + * @return Whether the desiredProtectConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredProtectConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Enable/Disable Protect API features for the cluster.
+   * 
+ * + * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112; + * + * @return The desiredProtectConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.ProtectConfig getDesiredProtectConfig() { + return desiredProtectConfig_ == null + ? com.google.container.v1beta1.ProtectConfig.getDefaultInstance() + : desiredProtectConfig_; + } + /** + * + * + *
+   * Enable/Disable Protect API features for the cluster.
+   * 
+ * + * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112; + */ + @java.lang.Override + 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 desiredGatewayApiConfig_ != null; + } + /** + * + * + *
+   * 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 getDesiredGatewayApiConfig(); + } + + 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 desiredNodePoolLoggingConfig_ != null; + } + /** + * + * + *
+   * 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 getDesiredNodePoolLoggingConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 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 (desiredAddonsConfig_ != null) { + 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 (desiredNodePoolAutoscaling_ != null) { + output.writeMessage(9, getDesiredNodePoolAutoscaling()); + } + for (int i = 0; i < desiredLocations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, desiredLocations_.getRaw(i)); + } + if (desiredMasterAuthorizedNetworksConfig_ != null) { + output.writeMessage(12, getDesiredMasterAuthorizedNetworksConfig()); + } + if (desiredPodSecurityPolicyConfig_ != null) { + output.writeMessage(14, getDesiredPodSecurityPolicyConfig()); + } + if (desiredClusterAutoscaling_ != null) { + output.writeMessage(15, getDesiredClusterAutoscaling()); + } + if (desiredBinaryAuthorization_ != null) { + output.writeMessage(16, getDesiredBinaryAuthorization()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredLoggingService_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 19, desiredLoggingService_); + } + if (desiredResourceUsageExportConfig_ != null) { + output.writeMessage(21, getDesiredResourceUsageExportConfig()); + } + if (desiredVerticalPodAutoscaling_ != null) { + output.writeMessage(22, getDesiredVerticalPodAutoscaling()); + } + if (desiredPrivateClusterConfig_ != null) { + output.writeMessage(25, getDesiredPrivateClusterConfig()); + } + if (desiredIntraNodeVisibilityConfig_ != null) { + output.writeMessage(26, getDesiredIntraNodeVisibilityConfig()); + } + if (desiredDefaultSnatStatus_ != null) { + output.writeMessage(28, getDesiredDefaultSnatStatus()); + } + if (desiredClusterTelemetry_ != null) { + output.writeMessage(30, getDesiredClusterTelemetry()); + } + if (desiredReleaseChannel_ != null) { + output.writeMessage(31, getDesiredReleaseChannel()); + } + if (desiredTpuConfig_ != null) { + output.writeMessage(38, getDesiredTpuConfig()); + } + if (desiredL4IlbSubsettingConfig_ != null) { + output.writeMessage(39, getDesiredL4IlbSubsettingConfig()); + } + if (desiredDatabaseEncryption_ != null) { + output.writeMessage(46, getDesiredDatabaseEncryption()); + } + if (desiredWorkloadIdentityConfig_ != null) { + output.writeMessage(47, getDesiredWorkloadIdentityConfig()); + } + if (desiredShieldedNodes_ != null) { + output.writeMessage(48, getDesiredShieldedNodes()); + } + if (desiredCostManagementConfig_ != null) { + 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 (desiredMaster_ != null) { + output.writeMessage(52, getDesiredMaster()); + } + if (desiredDnsConfig_ != null) { + output.writeMessage(53, getDesiredDnsConfig()); + } + if (desiredNotificationConfig_ != null) { + output.writeMessage(55, getDesiredNotificationConfig()); + } + if (desiredServiceExternalIpsConfig_ != null) { + output.writeMessage(60, getDesiredServiceExternalIpsConfig()); + } + if (desiredWorkloadCertificates_ != null) { + output.writeMessage(61, getDesiredWorkloadCertificates()); + } + if (desiredWorkloadAltsConfig_ != null) { + output.writeMessage(62, getDesiredWorkloadAltsConfig()); + } + if (desiredAuthenticatorGroupsConfig_ != null) { + output.writeMessage(63, getDesiredAuthenticatorGroupsConfig()); + } + if (desiredLoggingConfig_ != null) { + output.writeMessage(64, getDesiredLoggingConfig()); + } + if (desiredMonitoringConfig_ != null) { + output.writeMessage(65, getDesiredMonitoringConfig()); + } + if (desiredIdentityServiceConfig_ != null) { + output.writeMessage(66, getDesiredIdentityServiceConfig()); + } + if (desiredMeshCertificates_ != null) { + output.writeMessage(67, getDesiredMeshCertificates()); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(71, desiredEnablePrivateEndpoint_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredMasterVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, desiredMasterVersion_); + } + if (desiredGcfsConfig_ != null) { + output.writeMessage(109, getDesiredGcfsConfig()); + } + if (desiredNodePoolAutoConfigNetworkTags_ != null) { + output.writeMessage(110, getDesiredNodePoolAutoConfigNetworkTags()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(112, getDesiredProtectConfig()); + } + if (desiredGatewayApiConfig_ != null) { + output.writeMessage(114, getDesiredGatewayApiConfig()); + } + if (desiredNodePoolLoggingConfig_ != null) { + output.writeMessage(116, getDesiredNodePoolLoggingConfig()); + } + getUnknownFields().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 (desiredAddonsConfig_ != null) { + 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 (desiredNodePoolAutoscaling_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, getDesiredNodePoolAutoscaling()); + } + { + int dataSize = 0; + for (int i = 0; i < desiredLocations_.size(); i++) { + dataSize += computeStringSizeNoTag(desiredLocations_.getRaw(i)); + } + size += dataSize; + size += 1 * getDesiredLocationsList().size(); + } + if (desiredMasterAuthorizedNetworksConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, getDesiredMasterAuthorizedNetworksConfig()); + } + if (desiredPodSecurityPolicyConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, getDesiredPodSecurityPolicyConfig()); + } + if (desiredClusterAutoscaling_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 15, getDesiredClusterAutoscaling()); + } + if (desiredBinaryAuthorization_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 16, getDesiredBinaryAuthorization()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredLoggingService_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, desiredLoggingService_); + } + if (desiredResourceUsageExportConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 21, getDesiredResourceUsageExportConfig()); + } + if (desiredVerticalPodAutoscaling_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 22, getDesiredVerticalPodAutoscaling()); + } + if (desiredPrivateClusterConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 25, getDesiredPrivateClusterConfig()); + } + if (desiredIntraNodeVisibilityConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 26, getDesiredIntraNodeVisibilityConfig()); + } + if (desiredDefaultSnatStatus_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 28, getDesiredDefaultSnatStatus()); + } + if (desiredClusterTelemetry_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 30, getDesiredClusterTelemetry()); + } + if (desiredReleaseChannel_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(31, getDesiredReleaseChannel()); + } + if (desiredTpuConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(38, getDesiredTpuConfig()); + } + if (desiredL4IlbSubsettingConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 39, getDesiredL4IlbSubsettingConfig()); + } + if (desiredDatabaseEncryption_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 46, getDesiredDatabaseEncryption()); + } + if (desiredWorkloadIdentityConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 47, getDesiredWorkloadIdentityConfig()); + } + if (desiredShieldedNodes_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(48, getDesiredShieldedNodes()); + } + if (desiredCostManagementConfig_ != null) { + 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 (desiredMaster_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(52, getDesiredMaster()); + } + if (desiredDnsConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(53, getDesiredDnsConfig()); + } + if (desiredNotificationConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 55, getDesiredNotificationConfig()); + } + if (desiredServiceExternalIpsConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 60, getDesiredServiceExternalIpsConfig()); + } + if (desiredWorkloadCertificates_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 61, getDesiredWorkloadCertificates()); + } + if (desiredWorkloadAltsConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 62, getDesiredWorkloadAltsConfig()); + } + if (desiredAuthenticatorGroupsConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 63, getDesiredAuthenticatorGroupsConfig()); + } + if (desiredLoggingConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(64, getDesiredLoggingConfig()); + } + if (desiredMonitoringConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 65, getDesiredMonitoringConfig()); + } + if (desiredIdentityServiceConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 66, getDesiredIdentityServiceConfig()); + } + if (desiredMeshCertificates_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 67, getDesiredMeshCertificates()); + } + if (((bitField0_ & 0x00000001) != 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 (desiredGcfsConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(109, getDesiredGcfsConfig()); + } + if (desiredNodePoolAutoConfigNetworkTags_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 110, getDesiredNodePoolAutoConfigNetworkTags()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(112, getDesiredProtectConfig()); + } + if (desiredGatewayApiConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 114, getDesiredGatewayApiConfig()); + } + if (desiredNodePoolLoggingConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 116, getDesiredNodePoolLoggingConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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 (hasDesiredNodePoolLoggingConfig() != other.hasDesiredNodePoolLoggingConfig()) return false; + if (hasDesiredNodePoolLoggingConfig()) { + if (!getDesiredNodePoolLoggingConfig().equals(other.getDesiredNodePoolLoggingConfig())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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(); + } + if (hasDesiredNodePoolLoggingConfig()) { + hash = (37 * hash) + DESIRED_NODE_POOL_LOGGING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredNodePoolLoggingConfig().hashCode(); + } + 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) { + getDesiredProtectConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + desiredNodeVersion_ = ""; + + desiredMonitoringService_ = ""; + + if (desiredAddonsConfigBuilder_ == null) { + desiredAddonsConfig_ = null; + } else { + desiredAddonsConfig_ = null; + desiredAddonsConfigBuilder_ = null; + } + desiredNodePoolId_ = ""; + + desiredImageType_ = ""; + + if (desiredNodePoolAutoscalingBuilder_ == null) { + desiredNodePoolAutoscaling_ = null; + } else { + desiredNodePoolAutoscaling_ = null; + desiredNodePoolAutoscalingBuilder_ = null; + } + desiredLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + desiredMasterAuthorizedNetworksConfig_ = null; + } else { + desiredMasterAuthorizedNetworksConfig_ = null; + desiredMasterAuthorizedNetworksConfigBuilder_ = null; + } + if (desiredPodSecurityPolicyConfigBuilder_ == null) { + desiredPodSecurityPolicyConfig_ = null; + } else { + desiredPodSecurityPolicyConfig_ = null; + desiredPodSecurityPolicyConfigBuilder_ = null; + } + if (desiredClusterAutoscalingBuilder_ == null) { + desiredClusterAutoscaling_ = null; + } else { + desiredClusterAutoscaling_ = null; + desiredClusterAutoscalingBuilder_ = null; + } + if (desiredBinaryAuthorizationBuilder_ == null) { + desiredBinaryAuthorization_ = null; + } else { + desiredBinaryAuthorization_ = null; + desiredBinaryAuthorizationBuilder_ = null; + } + desiredLoggingService_ = ""; + + if (desiredResourceUsageExportConfigBuilder_ == null) { + desiredResourceUsageExportConfig_ = null; + } else { + desiredResourceUsageExportConfig_ = null; + desiredResourceUsageExportConfigBuilder_ = null; + } + if (desiredVerticalPodAutoscalingBuilder_ == null) { + desiredVerticalPodAutoscaling_ = null; + } else { + desiredVerticalPodAutoscaling_ = null; + desiredVerticalPodAutoscalingBuilder_ = null; + } + if (desiredPrivateClusterConfigBuilder_ == null) { + desiredPrivateClusterConfig_ = null; + } else { + desiredPrivateClusterConfig_ = null; + desiredPrivateClusterConfigBuilder_ = null; + } + if (desiredIntraNodeVisibilityConfigBuilder_ == null) { + desiredIntraNodeVisibilityConfig_ = null; + } else { + desiredIntraNodeVisibilityConfig_ = null; + desiredIntraNodeVisibilityConfigBuilder_ = null; + } + if (desiredDefaultSnatStatusBuilder_ == null) { + desiredDefaultSnatStatus_ = null; + } else { + desiredDefaultSnatStatus_ = null; + desiredDefaultSnatStatusBuilder_ = null; + } + if (desiredClusterTelemetryBuilder_ == null) { + desiredClusterTelemetry_ = null; + } else { + desiredClusterTelemetry_ = null; + desiredClusterTelemetryBuilder_ = null; + } + if (desiredReleaseChannelBuilder_ == null) { + desiredReleaseChannel_ = null; + } else { + desiredReleaseChannel_ = null; + desiredReleaseChannelBuilder_ = null; + } + if (desiredTpuConfigBuilder_ == null) { + desiredTpuConfig_ = null; + } else { + desiredTpuConfig_ = null; + desiredTpuConfigBuilder_ = null; + } + if (desiredL4IlbSubsettingConfigBuilder_ == null) { + desiredL4IlbSubsettingConfig_ = null; + } else { + desiredL4IlbSubsettingConfig_ = null; + desiredL4IlbSubsettingConfigBuilder_ = null; + } + desiredDatapathProvider_ = 0; + + desiredPrivateIpv6GoogleAccess_ = 0; + + if (desiredNotificationConfigBuilder_ == null) { + desiredNotificationConfig_ = null; + } else { + desiredNotificationConfig_ = null; + desiredNotificationConfigBuilder_ = null; + } + desiredMasterVersion_ = ""; + + if (desiredGcfsConfigBuilder_ == null) { + desiredGcfsConfig_ = null; + } else { + desiredGcfsConfig_ = null; + desiredGcfsConfigBuilder_ = null; + } + if (desiredDatabaseEncryptionBuilder_ == null) { + desiredDatabaseEncryption_ = null; + } else { + desiredDatabaseEncryption_ = null; + desiredDatabaseEncryptionBuilder_ = null; + } + if (desiredWorkloadIdentityConfigBuilder_ == null) { + desiredWorkloadIdentityConfig_ = null; + } else { + desiredWorkloadIdentityConfig_ = null; + desiredWorkloadIdentityConfigBuilder_ = null; + } + if (desiredWorkloadCertificatesBuilder_ == null) { + desiredWorkloadCertificates_ = null; + } else { + desiredWorkloadCertificates_ = null; + desiredWorkloadCertificatesBuilder_ = null; + } + if (desiredMeshCertificatesBuilder_ == null) { + desiredMeshCertificates_ = null; + } else { + desiredMeshCertificates_ = null; + desiredMeshCertificatesBuilder_ = null; + } + if (desiredWorkloadAltsConfigBuilder_ == null) { + desiredWorkloadAltsConfig_ = null; + } else { + desiredWorkloadAltsConfig_ = null; + desiredWorkloadAltsConfigBuilder_ = null; + } + if (desiredShieldedNodesBuilder_ == null) { + desiredShieldedNodes_ = null; + } else { + desiredShieldedNodes_ = null; + desiredShieldedNodesBuilder_ = null; + } + if (desiredCostManagementConfigBuilder_ == null) { + desiredCostManagementConfig_ = null; + } else { + desiredCostManagementConfig_ = null; + desiredCostManagementConfigBuilder_ = null; + } + if (desiredMasterBuilder_ == null) { + desiredMaster_ = null; + } else { + desiredMaster_ = null; + desiredMasterBuilder_ = null; + } + if (desiredDnsConfigBuilder_ == null) { + desiredDnsConfig_ = null; + } else { + desiredDnsConfig_ = null; + desiredDnsConfigBuilder_ = null; + } + if (desiredServiceExternalIpsConfigBuilder_ == null) { + desiredServiceExternalIpsConfig_ = null; + } else { + desiredServiceExternalIpsConfig_ = null; + desiredServiceExternalIpsConfigBuilder_ = null; + } + if (desiredAuthenticatorGroupsConfigBuilder_ == null) { + desiredAuthenticatorGroupsConfig_ = null; + } else { + desiredAuthenticatorGroupsConfig_ = null; + desiredAuthenticatorGroupsConfigBuilder_ = null; + } + if (desiredLoggingConfigBuilder_ == null) { + desiredLoggingConfig_ = null; + } else { + desiredLoggingConfig_ = null; + desiredLoggingConfigBuilder_ = null; + } + if (desiredMonitoringConfigBuilder_ == null) { + desiredMonitoringConfig_ = null; + } else { + desiredMonitoringConfig_ = null; + desiredMonitoringConfigBuilder_ = null; + } + if (desiredIdentityServiceConfigBuilder_ == null) { + desiredIdentityServiceConfig_ = null; + } else { + desiredIdentityServiceConfig_ = null; + desiredIdentityServiceConfigBuilder_ = null; + } + desiredEnablePrivateEndpoint_ = false; + bitField0_ = (bitField0_ & ~0x00000002); + if (desiredNodePoolAutoConfigNetworkTagsBuilder_ == null) { + desiredNodePoolAutoConfigNetworkTags_ = null; + } else { + desiredNodePoolAutoConfigNetworkTags_ = null; + desiredNodePoolAutoConfigNetworkTagsBuilder_ = null; + } + if (desiredProtectConfigBuilder_ == null) { + desiredProtectConfig_ = null; + } else { + desiredProtectConfigBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (desiredGatewayApiConfigBuilder_ == null) { + desiredGatewayApiConfig_ = null; + } else { + desiredGatewayApiConfig_ = null; + desiredGatewayApiConfigBuilder_ = null; + } + if (desiredNodePoolLoggingConfigBuilder_ == null) { + desiredNodePoolLoggingConfig_ = null; + } else { + desiredNodePoolLoggingConfig_ = null; + desiredNodePoolLoggingConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ClusterUpdate_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ClusterUpdate getDefaultInstanceForType() { + return com.google.container.v1beta1.ClusterUpdate.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ClusterUpdate build() { + com.google.container.v1beta1.ClusterUpdate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ClusterUpdate buildPartial() { + com.google.container.v1beta1.ClusterUpdate result = + new com.google.container.v1beta1.ClusterUpdate(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.desiredNodeVersion_ = desiredNodeVersion_; + result.desiredMonitoringService_ = desiredMonitoringService_; + if (desiredAddonsConfigBuilder_ == null) { + result.desiredAddonsConfig_ = desiredAddonsConfig_; + } else { + result.desiredAddonsConfig_ = desiredAddonsConfigBuilder_.build(); + } + result.desiredNodePoolId_ = desiredNodePoolId_; + result.desiredImageType_ = desiredImageType_; + if (desiredNodePoolAutoscalingBuilder_ == null) { + result.desiredNodePoolAutoscaling_ = desiredNodePoolAutoscaling_; + } else { + result.desiredNodePoolAutoscaling_ = desiredNodePoolAutoscalingBuilder_.build(); + } + if (((bitField0_ & 0x00000001) != 0)) { + desiredLocations_ = desiredLocations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.desiredLocations_ = desiredLocations_; + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + result.desiredMasterAuthorizedNetworksConfig_ = desiredMasterAuthorizedNetworksConfig_; + } else { + result.desiredMasterAuthorizedNetworksConfig_ = + desiredMasterAuthorizedNetworksConfigBuilder_.build(); + } + if (desiredPodSecurityPolicyConfigBuilder_ == null) { + result.desiredPodSecurityPolicyConfig_ = desiredPodSecurityPolicyConfig_; + } else { + result.desiredPodSecurityPolicyConfig_ = desiredPodSecurityPolicyConfigBuilder_.build(); + } + if (desiredClusterAutoscalingBuilder_ == null) { + result.desiredClusterAutoscaling_ = desiredClusterAutoscaling_; + } else { + result.desiredClusterAutoscaling_ = desiredClusterAutoscalingBuilder_.build(); + } + if (desiredBinaryAuthorizationBuilder_ == null) { + result.desiredBinaryAuthorization_ = desiredBinaryAuthorization_; + } else { + result.desiredBinaryAuthorization_ = desiredBinaryAuthorizationBuilder_.build(); + } + result.desiredLoggingService_ = desiredLoggingService_; + if (desiredResourceUsageExportConfigBuilder_ == null) { + result.desiredResourceUsageExportConfig_ = desiredResourceUsageExportConfig_; + } else { + result.desiredResourceUsageExportConfig_ = desiredResourceUsageExportConfigBuilder_.build(); + } + if (desiredVerticalPodAutoscalingBuilder_ == null) { + result.desiredVerticalPodAutoscaling_ = desiredVerticalPodAutoscaling_; + } else { + result.desiredVerticalPodAutoscaling_ = desiredVerticalPodAutoscalingBuilder_.build(); + } + if (desiredPrivateClusterConfigBuilder_ == null) { + result.desiredPrivateClusterConfig_ = desiredPrivateClusterConfig_; + } else { + result.desiredPrivateClusterConfig_ = desiredPrivateClusterConfigBuilder_.build(); + } + if (desiredIntraNodeVisibilityConfigBuilder_ == null) { + result.desiredIntraNodeVisibilityConfig_ = desiredIntraNodeVisibilityConfig_; + } else { + result.desiredIntraNodeVisibilityConfig_ = desiredIntraNodeVisibilityConfigBuilder_.build(); + } + if (desiredDefaultSnatStatusBuilder_ == null) { + result.desiredDefaultSnatStatus_ = desiredDefaultSnatStatus_; + } else { + result.desiredDefaultSnatStatus_ = desiredDefaultSnatStatusBuilder_.build(); + } + if (desiredClusterTelemetryBuilder_ == null) { + result.desiredClusterTelemetry_ = desiredClusterTelemetry_; + } else { + result.desiredClusterTelemetry_ = desiredClusterTelemetryBuilder_.build(); + } + if (desiredReleaseChannelBuilder_ == null) { + result.desiredReleaseChannel_ = desiredReleaseChannel_; + } else { + result.desiredReleaseChannel_ = desiredReleaseChannelBuilder_.build(); + } + if (desiredTpuConfigBuilder_ == null) { + result.desiredTpuConfig_ = desiredTpuConfig_; + } else { + result.desiredTpuConfig_ = desiredTpuConfigBuilder_.build(); + } + if (desiredL4IlbSubsettingConfigBuilder_ == null) { + result.desiredL4IlbSubsettingConfig_ = desiredL4IlbSubsettingConfig_; + } else { + result.desiredL4IlbSubsettingConfig_ = desiredL4IlbSubsettingConfigBuilder_.build(); + } + result.desiredDatapathProvider_ = desiredDatapathProvider_; + result.desiredPrivateIpv6GoogleAccess_ = desiredPrivateIpv6GoogleAccess_; + if (desiredNotificationConfigBuilder_ == null) { + result.desiredNotificationConfig_ = desiredNotificationConfig_; + } else { + result.desiredNotificationConfig_ = desiredNotificationConfigBuilder_.build(); + } + result.desiredMasterVersion_ = desiredMasterVersion_; + if (desiredGcfsConfigBuilder_ == null) { + result.desiredGcfsConfig_ = desiredGcfsConfig_; + } else { + result.desiredGcfsConfig_ = desiredGcfsConfigBuilder_.build(); + } + if (desiredDatabaseEncryptionBuilder_ == null) { + result.desiredDatabaseEncryption_ = desiredDatabaseEncryption_; + } else { + result.desiredDatabaseEncryption_ = desiredDatabaseEncryptionBuilder_.build(); + } + if (desiredWorkloadIdentityConfigBuilder_ == null) { + result.desiredWorkloadIdentityConfig_ = desiredWorkloadIdentityConfig_; + } else { + result.desiredWorkloadIdentityConfig_ = desiredWorkloadIdentityConfigBuilder_.build(); + } + if (desiredWorkloadCertificatesBuilder_ == null) { + result.desiredWorkloadCertificates_ = desiredWorkloadCertificates_; + } else { + result.desiredWorkloadCertificates_ = desiredWorkloadCertificatesBuilder_.build(); + } + if (desiredMeshCertificatesBuilder_ == null) { + result.desiredMeshCertificates_ = desiredMeshCertificates_; + } else { + result.desiredMeshCertificates_ = desiredMeshCertificatesBuilder_.build(); + } + if (desiredWorkloadAltsConfigBuilder_ == null) { + result.desiredWorkloadAltsConfig_ = desiredWorkloadAltsConfig_; + } else { + result.desiredWorkloadAltsConfig_ = desiredWorkloadAltsConfigBuilder_.build(); + } + if (desiredShieldedNodesBuilder_ == null) { + result.desiredShieldedNodes_ = desiredShieldedNodes_; + } else { + result.desiredShieldedNodes_ = desiredShieldedNodesBuilder_.build(); + } + if (desiredCostManagementConfigBuilder_ == null) { + result.desiredCostManagementConfig_ = desiredCostManagementConfig_; + } else { + result.desiredCostManagementConfig_ = desiredCostManagementConfigBuilder_.build(); + } + if (desiredMasterBuilder_ == null) { + result.desiredMaster_ = desiredMaster_; + } else { + result.desiredMaster_ = desiredMasterBuilder_.build(); + } + if (desiredDnsConfigBuilder_ == null) { + result.desiredDnsConfig_ = desiredDnsConfig_; + } else { + result.desiredDnsConfig_ = desiredDnsConfigBuilder_.build(); + } + if (desiredServiceExternalIpsConfigBuilder_ == null) { + result.desiredServiceExternalIpsConfig_ = desiredServiceExternalIpsConfig_; + } else { + result.desiredServiceExternalIpsConfig_ = desiredServiceExternalIpsConfigBuilder_.build(); + } + if (desiredAuthenticatorGroupsConfigBuilder_ == null) { + result.desiredAuthenticatorGroupsConfig_ = desiredAuthenticatorGroupsConfig_; + } else { + result.desiredAuthenticatorGroupsConfig_ = desiredAuthenticatorGroupsConfigBuilder_.build(); + } + if (desiredLoggingConfigBuilder_ == null) { + result.desiredLoggingConfig_ = desiredLoggingConfig_; + } else { + result.desiredLoggingConfig_ = desiredLoggingConfigBuilder_.build(); + } + if (desiredMonitoringConfigBuilder_ == null) { + result.desiredMonitoringConfig_ = desiredMonitoringConfig_; + } else { + result.desiredMonitoringConfig_ = desiredMonitoringConfigBuilder_.build(); + } + if (desiredIdentityServiceConfigBuilder_ == null) { + result.desiredIdentityServiceConfig_ = desiredIdentityServiceConfig_; + } else { + result.desiredIdentityServiceConfig_ = desiredIdentityServiceConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.desiredEnablePrivateEndpoint_ = desiredEnablePrivateEndpoint_; + to_bitField0_ |= 0x00000001; + } + if (desiredNodePoolAutoConfigNetworkTagsBuilder_ == null) { + result.desiredNodePoolAutoConfigNetworkTags_ = desiredNodePoolAutoConfigNetworkTags_; + } else { + result.desiredNodePoolAutoConfigNetworkTags_ = + desiredNodePoolAutoConfigNetworkTagsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + if (desiredProtectConfigBuilder_ == null) { + result.desiredProtectConfig_ = desiredProtectConfig_; + } else { + result.desiredProtectConfig_ = desiredProtectConfigBuilder_.build(); + } + to_bitField0_ |= 0x00000002; + } + if (desiredGatewayApiConfigBuilder_ == null) { + result.desiredGatewayApiConfig_ = desiredGatewayApiConfig_; + } else { + result.desiredGatewayApiConfig_ = desiredGatewayApiConfigBuilder_.build(); + } + if (desiredNodePoolLoggingConfigBuilder_ == null) { + result.desiredNodePoolLoggingConfig_ = desiredNodePoolLoggingConfig_; + } else { + result.desiredNodePoolLoggingConfig_ = desiredNodePoolLoggingConfigBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ClusterUpdate) { + return mergeFrom((com.google.container.v1beta1.ClusterUpdate) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ClusterUpdate other) { + if (other == com.google.container.v1beta1.ClusterUpdate.getDefaultInstance()) return this; + if (!other.getDesiredNodeVersion().isEmpty()) { + desiredNodeVersion_ = other.desiredNodeVersion_; + onChanged(); + } + if (!other.getDesiredMonitoringService().isEmpty()) { + desiredMonitoringService_ = other.desiredMonitoringService_; + onChanged(); + } + if (other.hasDesiredAddonsConfig()) { + mergeDesiredAddonsConfig(other.getDesiredAddonsConfig()); + } + if (!other.getDesiredNodePoolId().isEmpty()) { + desiredNodePoolId_ = other.desiredNodePoolId_; + onChanged(); + } + if (!other.getDesiredImageType().isEmpty()) { + desiredImageType_ = other.desiredImageType_; + onChanged(); + } + if (other.hasDesiredNodePoolAutoscaling()) { + mergeDesiredNodePoolAutoscaling(other.getDesiredNodePoolAutoscaling()); + } + if (!other.desiredLocations_.isEmpty()) { + if (desiredLocations_.isEmpty()) { + desiredLocations_ = other.desiredLocations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDesiredLocationsIsMutable(); + desiredLocations_.addAll(other.desiredLocations_); + } + onChanged(); + } + if (other.hasDesiredMasterAuthorizedNetworksConfig()) { + mergeDesiredMasterAuthorizedNetworksConfig( + other.getDesiredMasterAuthorizedNetworksConfig()); + } + if (other.hasDesiredPodSecurityPolicyConfig()) { + mergeDesiredPodSecurityPolicyConfig(other.getDesiredPodSecurityPolicyConfig()); + } + if (other.hasDesiredClusterAutoscaling()) { + mergeDesiredClusterAutoscaling(other.getDesiredClusterAutoscaling()); + } + if (other.hasDesiredBinaryAuthorization()) { + mergeDesiredBinaryAuthorization(other.getDesiredBinaryAuthorization()); + } + if (!other.getDesiredLoggingService().isEmpty()) { + desiredLoggingService_ = other.desiredLoggingService_; + onChanged(); + } + if (other.hasDesiredResourceUsageExportConfig()) { + mergeDesiredResourceUsageExportConfig(other.getDesiredResourceUsageExportConfig()); + } + if (other.hasDesiredVerticalPodAutoscaling()) { + mergeDesiredVerticalPodAutoscaling(other.getDesiredVerticalPodAutoscaling()); + } + if (other.hasDesiredPrivateClusterConfig()) { + mergeDesiredPrivateClusterConfig(other.getDesiredPrivateClusterConfig()); + } + if (other.hasDesiredIntraNodeVisibilityConfig()) { + mergeDesiredIntraNodeVisibilityConfig(other.getDesiredIntraNodeVisibilityConfig()); + } + if (other.hasDesiredDefaultSnatStatus()) { + mergeDesiredDefaultSnatStatus(other.getDesiredDefaultSnatStatus()); + } + if (other.hasDesiredClusterTelemetry()) { + mergeDesiredClusterTelemetry(other.getDesiredClusterTelemetry()); + } + if (other.hasDesiredReleaseChannel()) { + mergeDesiredReleaseChannel(other.getDesiredReleaseChannel()); + } + if (other.hasDesiredTpuConfig()) { + mergeDesiredTpuConfig(other.getDesiredTpuConfig()); + } + if (other.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_; + 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.hasDesiredNodePoolLoggingConfig()) { + mergeDesiredNodePoolLoggingConfig(other.getDesiredNodePoolLoggingConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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(); + + break; + } // case 34 + case 42: + { + desiredMonitoringService_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + input.readMessage( + getDesiredAddonsConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 58: + { + desiredNodePoolId_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + desiredImageType_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: + { + input.readMessage( + getDesiredNodePoolAutoscalingFieldBuilder().getBuilder(), extensionRegistry); + + 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); + + break; + } // case 98 + case 114: + { + input.readMessage( + getDesiredPodSecurityPolicyConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 114 + case 122: + { + input.readMessage( + getDesiredClusterAutoscalingFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 122 + case 130: + { + input.readMessage( + getDesiredBinaryAuthorizationFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 130 + case 154: + { + desiredLoggingService_ = input.readStringRequireUtf8(); + + break; + } // case 154 + case 170: + { + input.readMessage( + getDesiredResourceUsageExportConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 170 + case 178: + { + input.readMessage( + getDesiredVerticalPodAutoscalingFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 178 + case 202: + { + input.readMessage( + getDesiredPrivateClusterConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 202 + case 210: + { + input.readMessage( + getDesiredIntraNodeVisibilityConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 210 + case 226: + { + input.readMessage( + getDesiredDefaultSnatStatusFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 226 + case 242: + { + input.readMessage( + getDesiredClusterTelemetryFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 242 + case 250: + { + input.readMessage( + getDesiredReleaseChannelFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 250 + case 306: + { + input.readMessage( + getDesiredTpuConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 306 + case 314: + { + input.readMessage( + getDesiredL4IlbSubsettingConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 314 + case 370: + { + input.readMessage( + getDesiredDatabaseEncryptionFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 370 + case 378: + { + input.readMessage( + getDesiredWorkloadIdentityConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 378 + case 386: + { + input.readMessage( + getDesiredShieldedNodesFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 386 + case 394: + { + input.readMessage( + getDesiredCostManagementConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 394 + case 400: + { + desiredDatapathProvider_ = input.readEnum(); + + break; + } // case 400 + case 408: + { + desiredPrivateIpv6GoogleAccess_ = input.readEnum(); + + break; + } // case 408 + case 418: + { + input.readMessage(getDesiredMasterFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 418 + case 426: + { + input.readMessage( + getDesiredDnsConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 426 + case 442: + { + input.readMessage( + getDesiredNotificationConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 442 + case 482: + { + input.readMessage( + getDesiredServiceExternalIpsConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 482 + case 490: + { + input.readMessage( + getDesiredWorkloadCertificatesFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 490 + case 498: + { + input.readMessage( + getDesiredWorkloadAltsConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 498 + case 506: + { + input.readMessage( + getDesiredAuthenticatorGroupsConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 506 + case 514: + { + input.readMessage( + getDesiredLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 514 + case 522: + { + input.readMessage( + getDesiredMonitoringConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 522 + case 530: + { + input.readMessage( + getDesiredIdentityServiceConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 530 + case 538: + { + input.readMessage( + getDesiredMeshCertificatesFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 538 + case 568: + { + desiredEnablePrivateEndpoint_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 568 + case 802: + { + desiredMasterVersion_ = input.readStringRequireUtf8(); + + break; + } // case 802 + case 874: + { + input.readMessage( + getDesiredGcfsConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 874 + case 882: + { + input.readMessage( + getDesiredNodePoolAutoConfigNetworkTagsFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 882 + case 898: + { + input.readMessage( + getDesiredProtectConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 898 + case 914: + { + input.readMessage( + getDesiredGatewayApiConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 914 + case 930: + { + input.readMessage( + getDesiredNodePoolLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 930 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // 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 desiredNodeVersion_ = ""; + /** + * + * + *
+     * The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string desired_node_version = 4; + * + * @return The desiredNodeVersion. + */ + public java.lang.String getDesiredNodeVersion() { + java.lang.Object ref = desiredNodeVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredNodeVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string desired_node_version = 4; + * + * @return The bytes for desiredNodeVersion. + */ + public com.google.protobuf.ByteString getDesiredNodeVersionBytes() { + java.lang.Object ref = desiredNodeVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + desiredNodeVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string desired_node_version = 4; + * + * @param value The desiredNodeVersion to set. + * @return This builder for chaining. + */ + public Builder setDesiredNodeVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + desiredNodeVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string desired_node_version = 4; + * + * @return This builder for chaining. + */ + public Builder clearDesiredNodeVersion() { + + desiredNodeVersion_ = getDefaultInstance().getDesiredNodeVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string desired_node_version = 4; + * + * @param value The bytes for desiredNodeVersion to set. + * @return This builder for chaining. + */ + public Builder setDesiredNodeVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + desiredNodeVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object desiredMonitoringService_ = ""; + /** + * + * + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string desired_monitoring_service = 5; + * + * @return The desiredMonitoringService. + */ + public java.lang.String getDesiredMonitoringService() { + java.lang.Object ref = desiredMonitoringService_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredMonitoringService_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string desired_monitoring_service = 5; + * + * @return The bytes for desiredMonitoringService. + */ + public com.google.protobuf.ByteString getDesiredMonitoringServiceBytes() { + java.lang.Object ref = desiredMonitoringService_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + desiredMonitoringService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string desired_monitoring_service = 5; + * + * @param value The desiredMonitoringService to set. + * @return This builder for chaining. + */ + public Builder setDesiredMonitoringService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + desiredMonitoringService_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string desired_monitoring_service = 5; + * + * @return This builder for chaining. + */ + public Builder clearDesiredMonitoringService() { + + desiredMonitoringService_ = getDefaultInstance().getDesiredMonitoringService(); + onChanged(); + return this; + } + /** + * + * + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string desired_monitoring_service = 5; + * + * @param value The bytes for desiredMonitoringService to set. + * @return This builder for chaining. + */ + public Builder setDesiredMonitoringServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + desiredMonitoringService_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.AddonsConfig desiredAddonsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AddonsConfig, + com.google.container.v1beta1.AddonsConfig.Builder, + com.google.container.v1beta1.AddonsConfigOrBuilder> + desiredAddonsConfigBuilder_; + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + * + * @return Whether the desiredAddonsConfig field is set. + */ + public boolean hasDesiredAddonsConfig() { + return desiredAddonsConfigBuilder_ != null || desiredAddonsConfig_ != null; + } + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + * + * @return The desiredAddonsConfig. + */ + public com.google.container.v1beta1.AddonsConfig getDesiredAddonsConfig() { + if (desiredAddonsConfigBuilder_ == null) { + return desiredAddonsConfig_ == null + ? com.google.container.v1beta1.AddonsConfig.getDefaultInstance() + : desiredAddonsConfig_; + } else { + return desiredAddonsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + */ + public Builder setDesiredAddonsConfig(com.google.container.v1beta1.AddonsConfig value) { + if (desiredAddonsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredAddonsConfig_ = value; + onChanged(); + } else { + desiredAddonsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + */ + public Builder setDesiredAddonsConfig( + com.google.container.v1beta1.AddonsConfig.Builder builderForValue) { + if (desiredAddonsConfigBuilder_ == null) { + desiredAddonsConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredAddonsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + */ + public Builder mergeDesiredAddonsConfig(com.google.container.v1beta1.AddonsConfig value) { + if (desiredAddonsConfigBuilder_ == null) { + if (desiredAddonsConfig_ != null) { + desiredAddonsConfig_ = + com.google.container.v1beta1.AddonsConfig.newBuilder(desiredAddonsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredAddonsConfig_ = value; + } + onChanged(); + } else { + desiredAddonsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + */ + public Builder clearDesiredAddonsConfig() { + if (desiredAddonsConfigBuilder_ == null) { + desiredAddonsConfig_ = null; + onChanged(); + } else { + desiredAddonsConfig_ = null; + desiredAddonsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + */ + public com.google.container.v1beta1.AddonsConfig.Builder getDesiredAddonsConfigBuilder() { + + onChanged(); + return getDesiredAddonsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + */ + public com.google.container.v1beta1.AddonsConfigOrBuilder getDesiredAddonsConfigOrBuilder() { + if (desiredAddonsConfigBuilder_ != null) { + return desiredAddonsConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredAddonsConfig_ == null + ? com.google.container.v1beta1.AddonsConfig.getDefaultInstance() + : desiredAddonsConfig_; + } + } + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AddonsConfig, + com.google.container.v1beta1.AddonsConfig.Builder, + com.google.container.v1beta1.AddonsConfigOrBuilder> + getDesiredAddonsConfigFieldBuilder() { + if (desiredAddonsConfigBuilder_ == null) { + desiredAddonsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AddonsConfig, + com.google.container.v1beta1.AddonsConfig.Builder, + com.google.container.v1beta1.AddonsConfigOrBuilder>( + getDesiredAddonsConfig(), getParentForChildren(), isClean()); + desiredAddonsConfig_ = null; + } + return desiredAddonsConfigBuilder_; + } + + private java.lang.Object desiredNodePoolId_ = ""; + /** + * + * + *
+     * The node pool to be upgraded. This field is mandatory if
+     * "desired_node_version", "desired_image_family",
+     * "desired_node_pool_autoscaling", or "desired_workload_metadata_config"
+     * is specified and there is more than one node pool on the cluster.
+     * 
+ * + * string desired_node_pool_id = 7; + * + * @return The desiredNodePoolId. + */ + public java.lang.String getDesiredNodePoolId() { + java.lang.Object ref = desiredNodePoolId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredNodePoolId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The node pool to be upgraded. This field is mandatory if
+     * "desired_node_version", "desired_image_family",
+     * "desired_node_pool_autoscaling", or "desired_workload_metadata_config"
+     * is specified and there is more than one node pool on the cluster.
+     * 
+ * + * string desired_node_pool_id = 7; + * + * @return The bytes for desiredNodePoolId. + */ + public com.google.protobuf.ByteString getDesiredNodePoolIdBytes() { + java.lang.Object ref = desiredNodePoolId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + desiredNodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The node pool to be upgraded. This field is mandatory if
+     * "desired_node_version", "desired_image_family",
+     * "desired_node_pool_autoscaling", or "desired_workload_metadata_config"
+     * is specified and there is more than one node pool on the cluster.
+     * 
+ * + * string desired_node_pool_id = 7; + * + * @param value The desiredNodePoolId to set. + * @return This builder for chaining. + */ + public Builder setDesiredNodePoolId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + desiredNodePoolId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The node pool to be upgraded. This field is mandatory if
+     * "desired_node_version", "desired_image_family",
+     * "desired_node_pool_autoscaling", or "desired_workload_metadata_config"
+     * is specified and there is more than one node pool on the cluster.
+     * 
+ * + * string desired_node_pool_id = 7; + * + * @return This builder for chaining. + */ + public Builder clearDesiredNodePoolId() { + + desiredNodePoolId_ = getDefaultInstance().getDesiredNodePoolId(); + onChanged(); + return this; + } + /** + * + * + *
+     * The node pool to be upgraded. This field is mandatory if
+     * "desired_node_version", "desired_image_family",
+     * "desired_node_pool_autoscaling", or "desired_workload_metadata_config"
+     * is specified and there is more than one node pool on the cluster.
+     * 
+ * + * string desired_node_pool_id = 7; + * + * @param value The bytes for desiredNodePoolId to set. + * @return This builder for chaining. + */ + public Builder setDesiredNodePoolIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + desiredNodePoolId_ = value; + onChanged(); + return this; + } + + private java.lang.Object desiredImageType_ = ""; + /** + * + * + *
+     * The desired image type for the node pool.
+     * NOTE: Set the "desired_node_pool" field as well.
+     * 
+ * + * string desired_image_type = 8; + * + * @return The desiredImageType. + */ + public java.lang.String getDesiredImageType() { + java.lang.Object ref = desiredImageType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredImageType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The desired image type for the node pool.
+     * NOTE: Set the "desired_node_pool" field as well.
+     * 
+ * + * string desired_image_type = 8; + * + * @return The bytes for desiredImageType. + */ + public com.google.protobuf.ByteString getDesiredImageTypeBytes() { + java.lang.Object ref = desiredImageType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + desiredImageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The desired image type for the node pool.
+     * NOTE: Set the "desired_node_pool" field as well.
+     * 
+ * + * string desired_image_type = 8; + * + * @param value The desiredImageType to set. + * @return This builder for chaining. + */ + public Builder setDesiredImageType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + desiredImageType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The desired image type for the node pool.
+     * NOTE: Set the "desired_node_pool" field as well.
+     * 
+ * + * string desired_image_type = 8; + * + * @return This builder for chaining. + */ + public Builder clearDesiredImageType() { + + desiredImageType_ = getDefaultInstance().getDesiredImageType(); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired image type for the node pool.
+     * NOTE: Set the "desired_node_pool" field as well.
+     * 
+ * + * string desired_image_type = 8; + * + * @param value The bytes for desiredImageType to set. + * @return This builder for chaining. + */ + public Builder setDesiredImageTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + desiredImageType_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NodePoolAutoscaling desiredNodePoolAutoscaling_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolAutoscaling, + com.google.container.v1beta1.NodePoolAutoscaling.Builder, + com.google.container.v1beta1.NodePoolAutoscalingOrBuilder> + desiredNodePoolAutoscalingBuilder_; + /** + * + * + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + * + * @return Whether the desiredNodePoolAutoscaling field is set. + */ + public boolean hasDesiredNodePoolAutoscaling() { + return desiredNodePoolAutoscalingBuilder_ != null || desiredNodePoolAutoscaling_ != null; + } + /** + * + * + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + * + * @return The desiredNodePoolAutoscaling. + */ + public com.google.container.v1beta1.NodePoolAutoscaling getDesiredNodePoolAutoscaling() { + if (desiredNodePoolAutoscalingBuilder_ == null) { + return desiredNodePoolAutoscaling_ == null + ? com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() + : desiredNodePoolAutoscaling_; + } else { + return desiredNodePoolAutoscalingBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public Builder setDesiredNodePoolAutoscaling( + com.google.container.v1beta1.NodePoolAutoscaling value) { + if (desiredNodePoolAutoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredNodePoolAutoscaling_ = value; + onChanged(); + } else { + desiredNodePoolAutoscalingBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public Builder setDesiredNodePoolAutoscaling( + com.google.container.v1beta1.NodePoolAutoscaling.Builder builderForValue) { + if (desiredNodePoolAutoscalingBuilder_ == null) { + desiredNodePoolAutoscaling_ = builderForValue.build(); + onChanged(); + } else { + desiredNodePoolAutoscalingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public Builder mergeDesiredNodePoolAutoscaling( + com.google.container.v1beta1.NodePoolAutoscaling value) { + if (desiredNodePoolAutoscalingBuilder_ == null) { + if (desiredNodePoolAutoscaling_ != null) { + desiredNodePoolAutoscaling_ = + com.google.container.v1beta1.NodePoolAutoscaling.newBuilder( + desiredNodePoolAutoscaling_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredNodePoolAutoscaling_ = value; + } + onChanged(); + } else { + desiredNodePoolAutoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public Builder clearDesiredNodePoolAutoscaling() { + if (desiredNodePoolAutoscalingBuilder_ == null) { + desiredNodePoolAutoscaling_ = null; + onChanged(); + } else { + desiredNodePoolAutoscaling_ = null; + desiredNodePoolAutoscalingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public com.google.container.v1beta1.NodePoolAutoscaling.Builder + getDesiredNodePoolAutoscalingBuilder() { + + onChanged(); + return getDesiredNodePoolAutoscalingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public com.google.container.v1beta1.NodePoolAutoscalingOrBuilder + getDesiredNodePoolAutoscalingOrBuilder() { + if (desiredNodePoolAutoscalingBuilder_ != null) { + return desiredNodePoolAutoscalingBuilder_.getMessageOrBuilder(); + } else { + return desiredNodePoolAutoscaling_ == null + ? com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() + : desiredNodePoolAutoscaling_; + } + } + /** + * + * + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolAutoscaling, + com.google.container.v1beta1.NodePoolAutoscaling.Builder, + com.google.container.v1beta1.NodePoolAutoscalingOrBuilder> + getDesiredNodePoolAutoscalingFieldBuilder() { + if (desiredNodePoolAutoscalingBuilder_ == null) { + desiredNodePoolAutoscalingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolAutoscaling, + com.google.container.v1beta1.NodePoolAutoscaling.Builder, + com.google.container.v1beta1.NodePoolAutoscalingOrBuilder>( + getDesiredNodePoolAutoscaling(), getParentForChildren(), isClean()); + desiredNodePoolAutoscaling_ = null; + } + return desiredNodePoolAutoscalingBuilder_; + } + + private com.google.protobuf.LazyStringList desiredLocations_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureDesiredLocationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + desiredLocations_ = new com.google.protobuf.LazyStringArrayList(desiredLocations_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This list must always include the cluster's primary zone.
+     * Warning: changing cluster locations will update the locations of all node
+     * pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string desired_locations = 10; + * + * @return A list containing the desiredLocations. + */ + public com.google.protobuf.ProtocolStringList getDesiredLocationsList() { + return desiredLocations_.getUnmodifiableView(); + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This list must always include the cluster's primary zone.
+     * Warning: changing cluster locations will update the locations of all node
+     * pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string desired_locations = 10; + * + * @return The count of desiredLocations. + */ + public int getDesiredLocationsCount() { + return desiredLocations_.size(); + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This list must always include the cluster's primary zone.
+     * Warning: changing cluster locations will update the locations of all node
+     * pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string desired_locations = 10; + * + * @param index The index of the element to return. + * @return The desiredLocations at the given index. + */ + public java.lang.String getDesiredLocations(int index) { + return desiredLocations_.get(index); + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This list must always include the cluster's primary zone.
+     * Warning: changing cluster locations will update the locations of all node
+     * pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string desired_locations = 10; + * + * @param index The index of the value to return. + * @return The bytes of the desiredLocations at the given index. + */ + public com.google.protobuf.ByteString getDesiredLocationsBytes(int index) { + return desiredLocations_.getByteString(index); + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This list must always include the cluster's primary zone.
+     * Warning: changing cluster locations will update the locations of all node
+     * pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string desired_locations = 10; + * + * @param index The index to set the value at. + * @param value The desiredLocations to set. + * @return This builder for chaining. + */ + public Builder setDesiredLocations(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDesiredLocationsIsMutable(); + desiredLocations_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This list must always include the cluster's primary zone.
+     * Warning: changing cluster locations will update the locations of all node
+     * pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string desired_locations = 10; + * + * @param value The desiredLocations to add. + * @return This builder for chaining. + */ + public Builder addDesiredLocations(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDesiredLocationsIsMutable(); + desiredLocations_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This list must always include the cluster's primary zone.
+     * Warning: changing cluster locations will update the locations of all node
+     * pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string desired_locations = 10; + * + * @param values The desiredLocations to add. + * @return This builder for chaining. + */ + public Builder addAllDesiredLocations(java.lang.Iterable values) { + ensureDesiredLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, desiredLocations_); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This list must always include the cluster's primary zone.
+     * Warning: changing cluster locations will update the locations of all node
+     * pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string desired_locations = 10; + * + * @return This builder for chaining. + */ + public Builder clearDesiredLocations() { + desiredLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This list must always include the cluster's primary zone.
+     * Warning: changing cluster locations will update the locations of all node
+     * pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string desired_locations = 10; + * + * @param value The bytes of the desiredLocations to add. + * @return This builder for chaining. + */ + public Builder addDesiredLocationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDesiredLocationsIsMutable(); + desiredLocations_.add(value); + onChanged(); + return this; + } + + private com.google.container.v1beta1.MasterAuthorizedNetworksConfig + desiredMasterAuthorizedNetworksConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MasterAuthorizedNetworksConfig, + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder, + com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder> + desiredMasterAuthorizedNetworksConfigBuilder_; + /** + * + * + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * + * + * @return Whether the desiredMasterAuthorizedNetworksConfig field is set. + */ + public boolean hasDesiredMasterAuthorizedNetworksConfig() { + return desiredMasterAuthorizedNetworksConfigBuilder_ != null + || desiredMasterAuthorizedNetworksConfig_ != null; + } + /** + * + * + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * + * + * @return The desiredMasterAuthorizedNetworksConfig. + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig + getDesiredMasterAuthorizedNetworksConfig() { + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + return desiredMasterAuthorizedNetworksConfig_ == null + ? com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance() + : desiredMasterAuthorizedNetworksConfig_; + } else { + return desiredMasterAuthorizedNetworksConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * + */ + public Builder setDesiredMasterAuthorizedNetworksConfig( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig value) { + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredMasterAuthorizedNetworksConfig_ = value; + onChanged(); + } else { + desiredMasterAuthorizedNetworksConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * + */ + public Builder setDesiredMasterAuthorizedNetworksConfig( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder builderForValue) { + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + desiredMasterAuthorizedNetworksConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredMasterAuthorizedNetworksConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * + */ + public Builder mergeDesiredMasterAuthorizedNetworksConfig( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig value) { + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + if (desiredMasterAuthorizedNetworksConfig_ != null) { + desiredMasterAuthorizedNetworksConfig_ = + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.newBuilder( + desiredMasterAuthorizedNetworksConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredMasterAuthorizedNetworksConfig_ = value; + } + onChanged(); + } else { + desiredMasterAuthorizedNetworksConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * + */ + public Builder clearDesiredMasterAuthorizedNetworksConfig() { + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + desiredMasterAuthorizedNetworksConfig_ = null; + onChanged(); + } else { + desiredMasterAuthorizedNetworksConfig_ = null; + desiredMasterAuthorizedNetworksConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder + getDesiredMasterAuthorizedNetworksConfigBuilder() { + + onChanged(); + return getDesiredMasterAuthorizedNetworksConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder + getDesiredMasterAuthorizedNetworksConfigOrBuilder() { + if (desiredMasterAuthorizedNetworksConfigBuilder_ != null) { + return desiredMasterAuthorizedNetworksConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredMasterAuthorizedNetworksConfig_ == null + ? com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance() + : desiredMasterAuthorizedNetworksConfig_; + } + } + /** + * + * + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MasterAuthorizedNetworksConfig, + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder, + com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder> + getDesiredMasterAuthorizedNetworksConfigFieldBuilder() { + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + desiredMasterAuthorizedNetworksConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MasterAuthorizedNetworksConfig, + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder, + com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder>( + getDesiredMasterAuthorizedNetworksConfig(), getParentForChildren(), isClean()); + desiredMasterAuthorizedNetworksConfig_ = null; + } + return desiredMasterAuthorizedNetworksConfigBuilder_; + } + + private com.google.container.v1beta1.PodSecurityPolicyConfig desiredPodSecurityPolicyConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PodSecurityPolicyConfig, + com.google.container.v1beta1.PodSecurityPolicyConfig.Builder, + com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder> + desiredPodSecurityPolicyConfigBuilder_; + /** + * + * + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + * + * + * @return Whether the desiredPodSecurityPolicyConfig field is set. + */ + public boolean hasDesiredPodSecurityPolicyConfig() { + return desiredPodSecurityPolicyConfigBuilder_ != null + || desiredPodSecurityPolicyConfig_ != null; + } + /** + * + * + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + * + * + * @return The desiredPodSecurityPolicyConfig. + */ + public com.google.container.v1beta1.PodSecurityPolicyConfig + getDesiredPodSecurityPolicyConfig() { + if (desiredPodSecurityPolicyConfigBuilder_ == null) { + return desiredPodSecurityPolicyConfig_ == null + ? com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance() + : desiredPodSecurityPolicyConfig_; + } else { + return desiredPodSecurityPolicyConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + * + */ + public Builder setDesiredPodSecurityPolicyConfig( + com.google.container.v1beta1.PodSecurityPolicyConfig value) { + if (desiredPodSecurityPolicyConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredPodSecurityPolicyConfig_ = value; + onChanged(); + } else { + desiredPodSecurityPolicyConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + * + */ + public Builder setDesiredPodSecurityPolicyConfig( + com.google.container.v1beta1.PodSecurityPolicyConfig.Builder builderForValue) { + if (desiredPodSecurityPolicyConfigBuilder_ == null) { + desiredPodSecurityPolicyConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredPodSecurityPolicyConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + * + */ + public Builder mergeDesiredPodSecurityPolicyConfig( + com.google.container.v1beta1.PodSecurityPolicyConfig value) { + if (desiredPodSecurityPolicyConfigBuilder_ == null) { + if (desiredPodSecurityPolicyConfig_ != null) { + desiredPodSecurityPolicyConfig_ = + com.google.container.v1beta1.PodSecurityPolicyConfig.newBuilder( + desiredPodSecurityPolicyConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredPodSecurityPolicyConfig_ = value; + } + onChanged(); + } else { + desiredPodSecurityPolicyConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + * + */ + public Builder clearDesiredPodSecurityPolicyConfig() { + if (desiredPodSecurityPolicyConfigBuilder_ == null) { + desiredPodSecurityPolicyConfig_ = null; + onChanged(); + } else { + desiredPodSecurityPolicyConfig_ = null; + desiredPodSecurityPolicyConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + * + */ + public com.google.container.v1beta1.PodSecurityPolicyConfig.Builder + getDesiredPodSecurityPolicyConfigBuilder() { + + onChanged(); + return getDesiredPodSecurityPolicyConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + * + */ + public com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder + getDesiredPodSecurityPolicyConfigOrBuilder() { + if (desiredPodSecurityPolicyConfigBuilder_ != null) { + return desiredPodSecurityPolicyConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredPodSecurityPolicyConfig_ == null + ? com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance() + : desiredPodSecurityPolicyConfig_; + } + } + /** + * + * + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PodSecurityPolicyConfig, + com.google.container.v1beta1.PodSecurityPolicyConfig.Builder, + com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder> + getDesiredPodSecurityPolicyConfigFieldBuilder() { + if (desiredPodSecurityPolicyConfigBuilder_ == null) { + desiredPodSecurityPolicyConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PodSecurityPolicyConfig, + com.google.container.v1beta1.PodSecurityPolicyConfig.Builder, + com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder>( + getDesiredPodSecurityPolicyConfig(), getParentForChildren(), isClean()); + desiredPodSecurityPolicyConfig_ = null; + } + return desiredPodSecurityPolicyConfigBuilder_; + } + + private com.google.container.v1beta1.ClusterAutoscaling desiredClusterAutoscaling_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterAutoscaling, + com.google.container.v1beta1.ClusterAutoscaling.Builder, + com.google.container.v1beta1.ClusterAutoscalingOrBuilder> + desiredClusterAutoscalingBuilder_; + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + * + * @return Whether the desiredClusterAutoscaling field is set. + */ + public boolean hasDesiredClusterAutoscaling() { + return desiredClusterAutoscalingBuilder_ != null || desiredClusterAutoscaling_ != null; + } + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + * + * @return The desiredClusterAutoscaling. + */ + public com.google.container.v1beta1.ClusterAutoscaling getDesiredClusterAutoscaling() { + if (desiredClusterAutoscalingBuilder_ == null) { + return desiredClusterAutoscaling_ == null + ? com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance() + : desiredClusterAutoscaling_; + } else { + return desiredClusterAutoscalingBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public Builder setDesiredClusterAutoscaling( + com.google.container.v1beta1.ClusterAutoscaling value) { + if (desiredClusterAutoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredClusterAutoscaling_ = value; + onChanged(); + } else { + desiredClusterAutoscalingBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public Builder setDesiredClusterAutoscaling( + com.google.container.v1beta1.ClusterAutoscaling.Builder builderForValue) { + if (desiredClusterAutoscalingBuilder_ == null) { + desiredClusterAutoscaling_ = builderForValue.build(); + onChanged(); + } else { + desiredClusterAutoscalingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public Builder mergeDesiredClusterAutoscaling( + com.google.container.v1beta1.ClusterAutoscaling value) { + if (desiredClusterAutoscalingBuilder_ == null) { + if (desiredClusterAutoscaling_ != null) { + desiredClusterAutoscaling_ = + com.google.container.v1beta1.ClusterAutoscaling.newBuilder(desiredClusterAutoscaling_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredClusterAutoscaling_ = value; + } + onChanged(); + } else { + desiredClusterAutoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public Builder clearDesiredClusterAutoscaling() { + if (desiredClusterAutoscalingBuilder_ == null) { + desiredClusterAutoscaling_ = null; + onChanged(); + } else { + desiredClusterAutoscaling_ = null; + desiredClusterAutoscalingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public com.google.container.v1beta1.ClusterAutoscaling.Builder + getDesiredClusterAutoscalingBuilder() { + + onChanged(); + return getDesiredClusterAutoscalingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public com.google.container.v1beta1.ClusterAutoscalingOrBuilder + getDesiredClusterAutoscalingOrBuilder() { + if (desiredClusterAutoscalingBuilder_ != null) { + return desiredClusterAutoscalingBuilder_.getMessageOrBuilder(); + } else { + return desiredClusterAutoscaling_ == null + ? com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance() + : desiredClusterAutoscaling_; + } + } + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterAutoscaling, + com.google.container.v1beta1.ClusterAutoscaling.Builder, + com.google.container.v1beta1.ClusterAutoscalingOrBuilder> + getDesiredClusterAutoscalingFieldBuilder() { + if (desiredClusterAutoscalingBuilder_ == null) { + desiredClusterAutoscalingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterAutoscaling, + com.google.container.v1beta1.ClusterAutoscaling.Builder, + com.google.container.v1beta1.ClusterAutoscalingOrBuilder>( + getDesiredClusterAutoscaling(), getParentForChildren(), isClean()); + desiredClusterAutoscaling_ = null; + } + return desiredClusterAutoscalingBuilder_; + } + + private com.google.container.v1beta1.BinaryAuthorization desiredBinaryAuthorization_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.BinaryAuthorization, + com.google.container.v1beta1.BinaryAuthorization.Builder, + com.google.container.v1beta1.BinaryAuthorizationOrBuilder> + desiredBinaryAuthorizationBuilder_; + /** + * + * + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + * + * @return Whether the desiredBinaryAuthorization field is set. + */ + public boolean hasDesiredBinaryAuthorization() { + return desiredBinaryAuthorizationBuilder_ != null || desiredBinaryAuthorization_ != null; + } + /** + * + * + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + * + * @return The desiredBinaryAuthorization. + */ + public com.google.container.v1beta1.BinaryAuthorization getDesiredBinaryAuthorization() { + if (desiredBinaryAuthorizationBuilder_ == null) { + return desiredBinaryAuthorization_ == null + ? com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance() + : desiredBinaryAuthorization_; + } else { + return desiredBinaryAuthorizationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + */ + public Builder setDesiredBinaryAuthorization( + com.google.container.v1beta1.BinaryAuthorization value) { + if (desiredBinaryAuthorizationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredBinaryAuthorization_ = value; + onChanged(); + } else { + desiredBinaryAuthorizationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + */ + public Builder setDesiredBinaryAuthorization( + com.google.container.v1beta1.BinaryAuthorization.Builder builderForValue) { + if (desiredBinaryAuthorizationBuilder_ == null) { + desiredBinaryAuthorization_ = builderForValue.build(); + onChanged(); + } else { + desiredBinaryAuthorizationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + */ + public Builder mergeDesiredBinaryAuthorization( + com.google.container.v1beta1.BinaryAuthorization value) { + if (desiredBinaryAuthorizationBuilder_ == null) { + if (desiredBinaryAuthorization_ != null) { + desiredBinaryAuthorization_ = + com.google.container.v1beta1.BinaryAuthorization.newBuilder( + desiredBinaryAuthorization_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredBinaryAuthorization_ = value; + } + onChanged(); + } else { + desiredBinaryAuthorizationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + */ + public Builder clearDesiredBinaryAuthorization() { + if (desiredBinaryAuthorizationBuilder_ == null) { + desiredBinaryAuthorization_ = null; + onChanged(); + } else { + desiredBinaryAuthorization_ = null; + desiredBinaryAuthorizationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + */ + public com.google.container.v1beta1.BinaryAuthorization.Builder + getDesiredBinaryAuthorizationBuilder() { + + onChanged(); + return getDesiredBinaryAuthorizationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + */ + public com.google.container.v1beta1.BinaryAuthorizationOrBuilder + getDesiredBinaryAuthorizationOrBuilder() { + if (desiredBinaryAuthorizationBuilder_ != null) { + return desiredBinaryAuthorizationBuilder_.getMessageOrBuilder(); + } else { + return desiredBinaryAuthorization_ == null + ? com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance() + : desiredBinaryAuthorization_; + } + } + /** + * + * + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.BinaryAuthorization, + com.google.container.v1beta1.BinaryAuthorization.Builder, + com.google.container.v1beta1.BinaryAuthorizationOrBuilder> + getDesiredBinaryAuthorizationFieldBuilder() { + if (desiredBinaryAuthorizationBuilder_ == null) { + desiredBinaryAuthorizationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.BinaryAuthorization, + com.google.container.v1beta1.BinaryAuthorization.Builder, + com.google.container.v1beta1.BinaryAuthorizationOrBuilder>( + getDesiredBinaryAuthorization(), getParentForChildren(), isClean()); + desiredBinaryAuthorization_ = null; + } + return desiredBinaryAuthorizationBuilder_; + } + + private java.lang.Object desiredLoggingService_ = ""; + /** + * + * + *
+     * The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string desired_logging_service = 19; + * + * @return The desiredLoggingService. + */ + public java.lang.String getDesiredLoggingService() { + java.lang.Object ref = desiredLoggingService_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredLoggingService_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string desired_logging_service = 19; + * + * @return The bytes for desiredLoggingService. + */ + public com.google.protobuf.ByteString getDesiredLoggingServiceBytes() { + java.lang.Object ref = desiredLoggingService_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + desiredLoggingService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string desired_logging_service = 19; + * + * @param value The desiredLoggingService to set. + * @return This builder for chaining. + */ + public Builder setDesiredLoggingService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + desiredLoggingService_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string desired_logging_service = 19; + * + * @return This builder for chaining. + */ + public Builder clearDesiredLoggingService() { + + desiredLoggingService_ = getDefaultInstance().getDesiredLoggingService(); + onChanged(); + return this; + } + /** + * + * + *
+     * The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string desired_logging_service = 19; + * + * @param value The bytes for desiredLoggingService to set. + * @return This builder for chaining. + */ + public Builder setDesiredLoggingServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + desiredLoggingService_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.ResourceUsageExportConfig + desiredResourceUsageExportConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceUsageExportConfig, + com.google.container.v1beta1.ResourceUsageExportConfig.Builder, + com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder> + desiredResourceUsageExportConfigBuilder_; + /** + * + * + *
+     * The desired configuration for exporting resource usage.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * + * + * @return Whether the desiredResourceUsageExportConfig field is set. + */ + public boolean hasDesiredResourceUsageExportConfig() { + return desiredResourceUsageExportConfigBuilder_ != null + || desiredResourceUsageExportConfig_ != null; + } + /** + * + * + *
+     * The desired configuration for exporting resource usage.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * + * + * @return The desiredResourceUsageExportConfig. + */ + public com.google.container.v1beta1.ResourceUsageExportConfig + getDesiredResourceUsageExportConfig() { + if (desiredResourceUsageExportConfigBuilder_ == null) { + return desiredResourceUsageExportConfig_ == null + ? com.google.container.v1beta1.ResourceUsageExportConfig.getDefaultInstance() + : desiredResourceUsageExportConfig_; + } else { + return desiredResourceUsageExportConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired configuration for exporting resource usage.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * + */ + public Builder setDesiredResourceUsageExportConfig( + com.google.container.v1beta1.ResourceUsageExportConfig value) { + if (desiredResourceUsageExportConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredResourceUsageExportConfig_ = value; + onChanged(); + } else { + desiredResourceUsageExportConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired configuration for exporting resource usage.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * + */ + public Builder setDesiredResourceUsageExportConfig( + com.google.container.v1beta1.ResourceUsageExportConfig.Builder builderForValue) { + if (desiredResourceUsageExportConfigBuilder_ == null) { + desiredResourceUsageExportConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredResourceUsageExportConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired configuration for exporting resource usage.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * + */ + public Builder mergeDesiredResourceUsageExportConfig( + com.google.container.v1beta1.ResourceUsageExportConfig value) { + if (desiredResourceUsageExportConfigBuilder_ == null) { + if (desiredResourceUsageExportConfig_ != null) { + desiredResourceUsageExportConfig_ = + com.google.container.v1beta1.ResourceUsageExportConfig.newBuilder( + desiredResourceUsageExportConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredResourceUsageExportConfig_ = value; + } + onChanged(); + } else { + desiredResourceUsageExportConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired configuration for exporting resource usage.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * + */ + public Builder clearDesiredResourceUsageExportConfig() { + if (desiredResourceUsageExportConfigBuilder_ == null) { + desiredResourceUsageExportConfig_ = null; + onChanged(); + } else { + desiredResourceUsageExportConfig_ = null; + desiredResourceUsageExportConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired configuration for exporting resource usage.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * + */ + public com.google.container.v1beta1.ResourceUsageExportConfig.Builder + getDesiredResourceUsageExportConfigBuilder() { + + onChanged(); + return getDesiredResourceUsageExportConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired configuration for exporting resource usage.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * + */ + public com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder + getDesiredResourceUsageExportConfigOrBuilder() { + if (desiredResourceUsageExportConfigBuilder_ != null) { + return desiredResourceUsageExportConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredResourceUsageExportConfig_ == null + ? com.google.container.v1beta1.ResourceUsageExportConfig.getDefaultInstance() + : desiredResourceUsageExportConfig_; + } + } + /** + * + * + *
+     * The desired configuration for exporting resource usage.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceUsageExportConfig, + com.google.container.v1beta1.ResourceUsageExportConfig.Builder, + com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder> + getDesiredResourceUsageExportConfigFieldBuilder() { + if (desiredResourceUsageExportConfigBuilder_ == null) { + desiredResourceUsageExportConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceUsageExportConfig, + com.google.container.v1beta1.ResourceUsageExportConfig.Builder, + com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder>( + getDesiredResourceUsageExportConfig(), getParentForChildren(), isClean()); + desiredResourceUsageExportConfig_ = null; + } + return desiredResourceUsageExportConfigBuilder_; + } + + private com.google.container.v1beta1.VerticalPodAutoscaling desiredVerticalPodAutoscaling_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.VerticalPodAutoscaling, + com.google.container.v1beta1.VerticalPodAutoscaling.Builder, + com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder> + desiredVerticalPodAutoscalingBuilder_; + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * + * + * @return Whether the desiredVerticalPodAutoscaling field is set. + */ + public boolean hasDesiredVerticalPodAutoscaling() { + return desiredVerticalPodAutoscalingBuilder_ != null + || desiredVerticalPodAutoscaling_ != null; + } + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * + * + * @return The desiredVerticalPodAutoscaling. + */ + public com.google.container.v1beta1.VerticalPodAutoscaling getDesiredVerticalPodAutoscaling() { + if (desiredVerticalPodAutoscalingBuilder_ == null) { + return desiredVerticalPodAutoscaling_ == null + ? com.google.container.v1beta1.VerticalPodAutoscaling.getDefaultInstance() + : desiredVerticalPodAutoscaling_; + } else { + return desiredVerticalPodAutoscalingBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * + */ + public Builder setDesiredVerticalPodAutoscaling( + com.google.container.v1beta1.VerticalPodAutoscaling value) { + if (desiredVerticalPodAutoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredVerticalPodAutoscaling_ = value; + onChanged(); + } else { + desiredVerticalPodAutoscalingBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * + */ + public Builder setDesiredVerticalPodAutoscaling( + com.google.container.v1beta1.VerticalPodAutoscaling.Builder builderForValue) { + if (desiredVerticalPodAutoscalingBuilder_ == null) { + desiredVerticalPodAutoscaling_ = builderForValue.build(); + onChanged(); + } else { + desiredVerticalPodAutoscalingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * + */ + public Builder mergeDesiredVerticalPodAutoscaling( + com.google.container.v1beta1.VerticalPodAutoscaling value) { + if (desiredVerticalPodAutoscalingBuilder_ == null) { + if (desiredVerticalPodAutoscaling_ != null) { + desiredVerticalPodAutoscaling_ = + com.google.container.v1beta1.VerticalPodAutoscaling.newBuilder( + desiredVerticalPodAutoscaling_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredVerticalPodAutoscaling_ = value; + } + onChanged(); + } else { + desiredVerticalPodAutoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * + */ + public Builder clearDesiredVerticalPodAutoscaling() { + if (desiredVerticalPodAutoscalingBuilder_ == null) { + desiredVerticalPodAutoscaling_ = null; + onChanged(); + } else { + desiredVerticalPodAutoscaling_ = null; + desiredVerticalPodAutoscalingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * + */ + public com.google.container.v1beta1.VerticalPodAutoscaling.Builder + getDesiredVerticalPodAutoscalingBuilder() { + + onChanged(); + return getDesiredVerticalPodAutoscalingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * + */ + public com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder + getDesiredVerticalPodAutoscalingOrBuilder() { + if (desiredVerticalPodAutoscalingBuilder_ != null) { + return desiredVerticalPodAutoscalingBuilder_.getMessageOrBuilder(); + } else { + return desiredVerticalPodAutoscaling_ == null + ? com.google.container.v1beta1.VerticalPodAutoscaling.getDefaultInstance() + : desiredVerticalPodAutoscaling_; + } + } + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.VerticalPodAutoscaling, + com.google.container.v1beta1.VerticalPodAutoscaling.Builder, + com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder> + getDesiredVerticalPodAutoscalingFieldBuilder() { + if (desiredVerticalPodAutoscalingBuilder_ == null) { + desiredVerticalPodAutoscalingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.VerticalPodAutoscaling, + com.google.container.v1beta1.VerticalPodAutoscaling.Builder, + com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder>( + getDesiredVerticalPodAutoscaling(), getParentForChildren(), isClean()); + desiredVerticalPodAutoscaling_ = null; + } + return desiredVerticalPodAutoscalingBuilder_; + } + + private com.google.container.v1beta1.PrivateClusterConfig desiredPrivateClusterConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PrivateClusterConfig, + com.google.container.v1beta1.PrivateClusterConfig.Builder, + com.google.container.v1beta1.PrivateClusterConfigOrBuilder> + desiredPrivateClusterConfigBuilder_; + /** + * + * + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; + * + * + * @return Whether the desiredPrivateClusterConfig field is set. + */ + public boolean hasDesiredPrivateClusterConfig() { + return desiredPrivateClusterConfigBuilder_ != null || desiredPrivateClusterConfig_ != null; + } + /** + * + * + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; + * + * + * @return The desiredPrivateClusterConfig. + */ + public com.google.container.v1beta1.PrivateClusterConfig getDesiredPrivateClusterConfig() { + if (desiredPrivateClusterConfigBuilder_ == null) { + return desiredPrivateClusterConfig_ == null + ? com.google.container.v1beta1.PrivateClusterConfig.getDefaultInstance() + : desiredPrivateClusterConfig_; + } else { + return desiredPrivateClusterConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; + * + */ + public Builder setDesiredPrivateClusterConfig( + com.google.container.v1beta1.PrivateClusterConfig value) { + if (desiredPrivateClusterConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredPrivateClusterConfig_ = value; + onChanged(); + } else { + desiredPrivateClusterConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; + * + */ + public Builder setDesiredPrivateClusterConfig( + com.google.container.v1beta1.PrivateClusterConfig.Builder builderForValue) { + if (desiredPrivateClusterConfigBuilder_ == null) { + desiredPrivateClusterConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredPrivateClusterConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; + * + */ + public Builder mergeDesiredPrivateClusterConfig( + com.google.container.v1beta1.PrivateClusterConfig value) { + if (desiredPrivateClusterConfigBuilder_ == null) { + if (desiredPrivateClusterConfig_ != null) { + desiredPrivateClusterConfig_ = + com.google.container.v1beta1.PrivateClusterConfig.newBuilder( + desiredPrivateClusterConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredPrivateClusterConfig_ = value; + } + onChanged(); + } else { + desiredPrivateClusterConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; + * + */ + public Builder clearDesiredPrivateClusterConfig() { + if (desiredPrivateClusterConfigBuilder_ == null) { + desiredPrivateClusterConfig_ = null; + onChanged(); + } else { + desiredPrivateClusterConfig_ = null; + desiredPrivateClusterConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; + * + */ + public com.google.container.v1beta1.PrivateClusterConfig.Builder + getDesiredPrivateClusterConfigBuilder() { + + onChanged(); + return getDesiredPrivateClusterConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; + * + */ + public com.google.container.v1beta1.PrivateClusterConfigOrBuilder + getDesiredPrivateClusterConfigOrBuilder() { + if (desiredPrivateClusterConfigBuilder_ != null) { + return desiredPrivateClusterConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredPrivateClusterConfig_ == null + ? com.google.container.v1beta1.PrivateClusterConfig.getDefaultInstance() + : desiredPrivateClusterConfig_; + } + } + /** + * + * + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PrivateClusterConfig, + com.google.container.v1beta1.PrivateClusterConfig.Builder, + com.google.container.v1beta1.PrivateClusterConfigOrBuilder> + getDesiredPrivateClusterConfigFieldBuilder() { + if (desiredPrivateClusterConfigBuilder_ == null) { + desiredPrivateClusterConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PrivateClusterConfig, + com.google.container.v1beta1.PrivateClusterConfig.Builder, + com.google.container.v1beta1.PrivateClusterConfigOrBuilder>( + getDesiredPrivateClusterConfig(), getParentForChildren(), isClean()); + desiredPrivateClusterConfig_ = null; + } + return desiredPrivateClusterConfigBuilder_; + } + + private com.google.container.v1beta1.IntraNodeVisibilityConfig + desiredIntraNodeVisibilityConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.IntraNodeVisibilityConfig, + com.google.container.v1beta1.IntraNodeVisibilityConfig.Builder, + com.google.container.v1beta1.IntraNodeVisibilityConfigOrBuilder> + desiredIntraNodeVisibilityConfigBuilder_; + /** + * + * + *
+     * The desired config of Intra-node visibility.
+     * 
+ * + * + * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * + * + * @return Whether the desiredIntraNodeVisibilityConfig field is set. + */ + public boolean hasDesiredIntraNodeVisibilityConfig() { + return desiredIntraNodeVisibilityConfigBuilder_ != null + || desiredIntraNodeVisibilityConfig_ != null; + } + /** + * + * + *
+     * The desired config of Intra-node visibility.
+     * 
+ * + * + * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * + * + * @return The desiredIntraNodeVisibilityConfig. + */ + public com.google.container.v1beta1.IntraNodeVisibilityConfig + getDesiredIntraNodeVisibilityConfig() { + if (desiredIntraNodeVisibilityConfigBuilder_ == null) { + return desiredIntraNodeVisibilityConfig_ == null + ? com.google.container.v1beta1.IntraNodeVisibilityConfig.getDefaultInstance() + : desiredIntraNodeVisibilityConfig_; + } else { + return desiredIntraNodeVisibilityConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired config of Intra-node visibility.
+     * 
+ * + * + * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * + */ + public Builder setDesiredIntraNodeVisibilityConfig( + com.google.container.v1beta1.IntraNodeVisibilityConfig value) { + if (desiredIntraNodeVisibilityConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredIntraNodeVisibilityConfig_ = value; + onChanged(); + } else { + desiredIntraNodeVisibilityConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired config of Intra-node visibility.
+     * 
+ * + * + * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * + */ + public Builder setDesiredIntraNodeVisibilityConfig( + com.google.container.v1beta1.IntraNodeVisibilityConfig.Builder builderForValue) { + if (desiredIntraNodeVisibilityConfigBuilder_ == null) { + desiredIntraNodeVisibilityConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredIntraNodeVisibilityConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired config of Intra-node visibility.
+     * 
+ * + * + * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * + */ + public Builder mergeDesiredIntraNodeVisibilityConfig( + com.google.container.v1beta1.IntraNodeVisibilityConfig value) { + if (desiredIntraNodeVisibilityConfigBuilder_ == null) { + if (desiredIntraNodeVisibilityConfig_ != null) { + desiredIntraNodeVisibilityConfig_ = + com.google.container.v1beta1.IntraNodeVisibilityConfig.newBuilder( + desiredIntraNodeVisibilityConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredIntraNodeVisibilityConfig_ = value; + } + onChanged(); + } else { + desiredIntraNodeVisibilityConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired config of Intra-node visibility.
+     * 
+ * + * + * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * + */ + public Builder clearDesiredIntraNodeVisibilityConfig() { + if (desiredIntraNodeVisibilityConfigBuilder_ == null) { + desiredIntraNodeVisibilityConfig_ = null; + onChanged(); + } else { + desiredIntraNodeVisibilityConfig_ = null; + desiredIntraNodeVisibilityConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired config of Intra-node visibility.
+     * 
+ * + * + * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * + */ + public com.google.container.v1beta1.IntraNodeVisibilityConfig.Builder + getDesiredIntraNodeVisibilityConfigBuilder() { + + onChanged(); + return getDesiredIntraNodeVisibilityConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired config of Intra-node visibility.
+     * 
+ * + * + * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * + */ + public com.google.container.v1beta1.IntraNodeVisibilityConfigOrBuilder + getDesiredIntraNodeVisibilityConfigOrBuilder() { + if (desiredIntraNodeVisibilityConfigBuilder_ != null) { + return desiredIntraNodeVisibilityConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredIntraNodeVisibilityConfig_ == null + ? com.google.container.v1beta1.IntraNodeVisibilityConfig.getDefaultInstance() + : desiredIntraNodeVisibilityConfig_; + } + } + /** + * + * + *
+     * The desired config of Intra-node visibility.
+     * 
+ * + * + * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.IntraNodeVisibilityConfig, + com.google.container.v1beta1.IntraNodeVisibilityConfig.Builder, + com.google.container.v1beta1.IntraNodeVisibilityConfigOrBuilder> + getDesiredIntraNodeVisibilityConfigFieldBuilder() { + if (desiredIntraNodeVisibilityConfigBuilder_ == null) { + desiredIntraNodeVisibilityConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.IntraNodeVisibilityConfig, + com.google.container.v1beta1.IntraNodeVisibilityConfig.Builder, + com.google.container.v1beta1.IntraNodeVisibilityConfigOrBuilder>( + getDesiredIntraNodeVisibilityConfig(), getParentForChildren(), isClean()); + desiredIntraNodeVisibilityConfig_ = null; + } + return desiredIntraNodeVisibilityConfigBuilder_; + } + + private com.google.container.v1beta1.DefaultSnatStatus desiredDefaultSnatStatus_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DefaultSnatStatus, + com.google.container.v1beta1.DefaultSnatStatus.Builder, + com.google.container.v1beta1.DefaultSnatStatusOrBuilder> + desiredDefaultSnatStatusBuilder_; + /** + * + * + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; + * + * @return Whether the desiredDefaultSnatStatus field is set. + */ + public boolean hasDesiredDefaultSnatStatus() { + return desiredDefaultSnatStatusBuilder_ != null || desiredDefaultSnatStatus_ != null; + } + /** + * + * + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; + * + * @return The desiredDefaultSnatStatus. + */ + public com.google.container.v1beta1.DefaultSnatStatus getDesiredDefaultSnatStatus() { + if (desiredDefaultSnatStatusBuilder_ == null) { + return desiredDefaultSnatStatus_ == null + ? com.google.container.v1beta1.DefaultSnatStatus.getDefaultInstance() + : desiredDefaultSnatStatus_; + } else { + return desiredDefaultSnatStatusBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; + */ + public Builder setDesiredDefaultSnatStatus( + com.google.container.v1beta1.DefaultSnatStatus value) { + if (desiredDefaultSnatStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredDefaultSnatStatus_ = value; + onChanged(); + } else { + desiredDefaultSnatStatusBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; + */ + public Builder setDesiredDefaultSnatStatus( + com.google.container.v1beta1.DefaultSnatStatus.Builder builderForValue) { + if (desiredDefaultSnatStatusBuilder_ == null) { + desiredDefaultSnatStatus_ = builderForValue.build(); + onChanged(); + } else { + desiredDefaultSnatStatusBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; + */ + public Builder mergeDesiredDefaultSnatStatus( + com.google.container.v1beta1.DefaultSnatStatus value) { + if (desiredDefaultSnatStatusBuilder_ == null) { + if (desiredDefaultSnatStatus_ != null) { + desiredDefaultSnatStatus_ = + com.google.container.v1beta1.DefaultSnatStatus.newBuilder(desiredDefaultSnatStatus_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredDefaultSnatStatus_ = value; + } + onChanged(); + } else { + desiredDefaultSnatStatusBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; + */ + public Builder clearDesiredDefaultSnatStatus() { + if (desiredDefaultSnatStatusBuilder_ == null) { + desiredDefaultSnatStatus_ = null; + onChanged(); + } else { + desiredDefaultSnatStatus_ = null; + desiredDefaultSnatStatusBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; + */ + public com.google.container.v1beta1.DefaultSnatStatus.Builder + getDesiredDefaultSnatStatusBuilder() { + + onChanged(); + return getDesiredDefaultSnatStatusFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; + */ + public com.google.container.v1beta1.DefaultSnatStatusOrBuilder + getDesiredDefaultSnatStatusOrBuilder() { + if (desiredDefaultSnatStatusBuilder_ != null) { + return desiredDefaultSnatStatusBuilder_.getMessageOrBuilder(); + } else { + return desiredDefaultSnatStatus_ == null + ? com.google.container.v1beta1.DefaultSnatStatus.getDefaultInstance() + : desiredDefaultSnatStatus_; + } + } + /** + * + * + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DefaultSnatStatus, + com.google.container.v1beta1.DefaultSnatStatus.Builder, + com.google.container.v1beta1.DefaultSnatStatusOrBuilder> + getDesiredDefaultSnatStatusFieldBuilder() { + if (desiredDefaultSnatStatusBuilder_ == null) { + desiredDefaultSnatStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DefaultSnatStatus, + com.google.container.v1beta1.DefaultSnatStatus.Builder, + com.google.container.v1beta1.DefaultSnatStatusOrBuilder>( + getDesiredDefaultSnatStatus(), getParentForChildren(), isClean()); + desiredDefaultSnatStatus_ = null; + } + return desiredDefaultSnatStatusBuilder_; + } + + private com.google.container.v1beta1.ClusterTelemetry desiredClusterTelemetry_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterTelemetry, + com.google.container.v1beta1.ClusterTelemetry.Builder, + com.google.container.v1beta1.ClusterTelemetryOrBuilder> + desiredClusterTelemetryBuilder_; + /** + * + * + *
+     * The desired telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; + * + * @return Whether the desiredClusterTelemetry field is set. + */ + public boolean hasDesiredClusterTelemetry() { + return desiredClusterTelemetryBuilder_ != null || desiredClusterTelemetry_ != null; + } + /** + * + * + *
+     * The desired telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; + * + * @return The desiredClusterTelemetry. + */ + public com.google.container.v1beta1.ClusterTelemetry getDesiredClusterTelemetry() { + if (desiredClusterTelemetryBuilder_ == null) { + return desiredClusterTelemetry_ == null + ? com.google.container.v1beta1.ClusterTelemetry.getDefaultInstance() + : desiredClusterTelemetry_; + } else { + return desiredClusterTelemetryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; + */ + public Builder setDesiredClusterTelemetry(com.google.container.v1beta1.ClusterTelemetry value) { + if (desiredClusterTelemetryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredClusterTelemetry_ = value; + onChanged(); + } else { + desiredClusterTelemetryBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; + */ + public Builder setDesiredClusterTelemetry( + com.google.container.v1beta1.ClusterTelemetry.Builder builderForValue) { + if (desiredClusterTelemetryBuilder_ == null) { + desiredClusterTelemetry_ = builderForValue.build(); + onChanged(); + } else { + desiredClusterTelemetryBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; + */ + public Builder mergeDesiredClusterTelemetry( + com.google.container.v1beta1.ClusterTelemetry value) { + if (desiredClusterTelemetryBuilder_ == null) { + if (desiredClusterTelemetry_ != null) { + desiredClusterTelemetry_ = + com.google.container.v1beta1.ClusterTelemetry.newBuilder(desiredClusterTelemetry_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredClusterTelemetry_ = value; + } + onChanged(); + } else { + desiredClusterTelemetryBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; + */ + public Builder clearDesiredClusterTelemetry() { + if (desiredClusterTelemetryBuilder_ == null) { + desiredClusterTelemetry_ = null; + onChanged(); + } else { + desiredClusterTelemetry_ = null; + desiredClusterTelemetryBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; + */ + public com.google.container.v1beta1.ClusterTelemetry.Builder + getDesiredClusterTelemetryBuilder() { + + onChanged(); + return getDesiredClusterTelemetryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; + */ + public com.google.container.v1beta1.ClusterTelemetryOrBuilder + getDesiredClusterTelemetryOrBuilder() { + if (desiredClusterTelemetryBuilder_ != null) { + return desiredClusterTelemetryBuilder_.getMessageOrBuilder(); + } else { + return desiredClusterTelemetry_ == null + ? com.google.container.v1beta1.ClusterTelemetry.getDefaultInstance() + : desiredClusterTelemetry_; + } + } + /** + * + * + *
+     * The desired telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterTelemetry, + com.google.container.v1beta1.ClusterTelemetry.Builder, + com.google.container.v1beta1.ClusterTelemetryOrBuilder> + getDesiredClusterTelemetryFieldBuilder() { + if (desiredClusterTelemetryBuilder_ == null) { + desiredClusterTelemetryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterTelemetry, + com.google.container.v1beta1.ClusterTelemetry.Builder, + com.google.container.v1beta1.ClusterTelemetryOrBuilder>( + getDesiredClusterTelemetry(), getParentForChildren(), isClean()); + desiredClusterTelemetry_ = null; + } + return desiredClusterTelemetryBuilder_; + } + + private com.google.container.v1beta1.ReleaseChannel desiredReleaseChannel_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ReleaseChannel, + com.google.container.v1beta1.ReleaseChannel.Builder, + com.google.container.v1beta1.ReleaseChannelOrBuilder> + desiredReleaseChannelBuilder_; + /** + * + * + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; + * + * @return Whether the desiredReleaseChannel field is set. + */ + public boolean hasDesiredReleaseChannel() { + return desiredReleaseChannelBuilder_ != null || desiredReleaseChannel_ != null; + } + /** + * + * + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; + * + * @return The desiredReleaseChannel. + */ + public com.google.container.v1beta1.ReleaseChannel getDesiredReleaseChannel() { + if (desiredReleaseChannelBuilder_ == null) { + return desiredReleaseChannel_ == null + ? com.google.container.v1beta1.ReleaseChannel.getDefaultInstance() + : desiredReleaseChannel_; + } else { + return desiredReleaseChannelBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; + */ + public Builder setDesiredReleaseChannel(com.google.container.v1beta1.ReleaseChannel value) { + if (desiredReleaseChannelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredReleaseChannel_ = value; + onChanged(); + } else { + desiredReleaseChannelBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; + */ + public Builder setDesiredReleaseChannel( + com.google.container.v1beta1.ReleaseChannel.Builder builderForValue) { + if (desiredReleaseChannelBuilder_ == null) { + desiredReleaseChannel_ = builderForValue.build(); + onChanged(); + } else { + desiredReleaseChannelBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; + */ + public Builder mergeDesiredReleaseChannel(com.google.container.v1beta1.ReleaseChannel value) { + if (desiredReleaseChannelBuilder_ == null) { + if (desiredReleaseChannel_ != null) { + desiredReleaseChannel_ = + com.google.container.v1beta1.ReleaseChannel.newBuilder(desiredReleaseChannel_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredReleaseChannel_ = value; + } + onChanged(); + } else { + desiredReleaseChannelBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; + */ + public Builder clearDesiredReleaseChannel() { + if (desiredReleaseChannelBuilder_ == null) { + desiredReleaseChannel_ = null; + onChanged(); + } else { + desiredReleaseChannel_ = null; + desiredReleaseChannelBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; + */ + public com.google.container.v1beta1.ReleaseChannel.Builder getDesiredReleaseChannelBuilder() { + + onChanged(); + return getDesiredReleaseChannelFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; + */ + public com.google.container.v1beta1.ReleaseChannelOrBuilder + getDesiredReleaseChannelOrBuilder() { + if (desiredReleaseChannelBuilder_ != null) { + return desiredReleaseChannelBuilder_.getMessageOrBuilder(); + } else { + return desiredReleaseChannel_ == null + ? com.google.container.v1beta1.ReleaseChannel.getDefaultInstance() + : desiredReleaseChannel_; + } + } + /** + * + * + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ReleaseChannel, + com.google.container.v1beta1.ReleaseChannel.Builder, + com.google.container.v1beta1.ReleaseChannelOrBuilder> + getDesiredReleaseChannelFieldBuilder() { + if (desiredReleaseChannelBuilder_ == null) { + desiredReleaseChannelBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ReleaseChannel, + com.google.container.v1beta1.ReleaseChannel.Builder, + com.google.container.v1beta1.ReleaseChannelOrBuilder>( + getDesiredReleaseChannel(), getParentForChildren(), isClean()); + desiredReleaseChannel_ = null; + } + return desiredReleaseChannelBuilder_; + } + + private com.google.container.v1beta1.TpuConfig desiredTpuConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.TpuConfig, + com.google.container.v1beta1.TpuConfig.Builder, + com.google.container.v1beta1.TpuConfigOrBuilder> + desiredTpuConfigBuilder_; + /** + * + * + *
+     * The desired Cloud TPU configuration.
+     * 
+ * + * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; + * + * @return Whether the desiredTpuConfig field is set. + */ + public boolean hasDesiredTpuConfig() { + return desiredTpuConfigBuilder_ != null || desiredTpuConfig_ != null; + } + /** + * + * + *
+     * The desired Cloud TPU configuration.
+     * 
+ * + * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; + * + * @return The desiredTpuConfig. + */ + public com.google.container.v1beta1.TpuConfig getDesiredTpuConfig() { + if (desiredTpuConfigBuilder_ == null) { + return desiredTpuConfig_ == null + ? com.google.container.v1beta1.TpuConfig.getDefaultInstance() + : desiredTpuConfig_; + } else { + return desiredTpuConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired Cloud TPU configuration.
+     * 
+ * + * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; + */ + public Builder setDesiredTpuConfig(com.google.container.v1beta1.TpuConfig value) { + if (desiredTpuConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredTpuConfig_ = value; + onChanged(); + } else { + desiredTpuConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired Cloud TPU configuration.
+     * 
+ * + * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; + */ + public Builder setDesiredTpuConfig( + com.google.container.v1beta1.TpuConfig.Builder builderForValue) { + if (desiredTpuConfigBuilder_ == null) { + desiredTpuConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredTpuConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired Cloud TPU configuration.
+     * 
+ * + * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; + */ + public Builder mergeDesiredTpuConfig(com.google.container.v1beta1.TpuConfig value) { + if (desiredTpuConfigBuilder_ == null) { + if (desiredTpuConfig_ != null) { + desiredTpuConfig_ = + com.google.container.v1beta1.TpuConfig.newBuilder(desiredTpuConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredTpuConfig_ = value; + } + onChanged(); + } else { + desiredTpuConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired Cloud TPU configuration.
+     * 
+ * + * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; + */ + public Builder clearDesiredTpuConfig() { + if (desiredTpuConfigBuilder_ == null) { + desiredTpuConfig_ = null; + onChanged(); + } else { + desiredTpuConfig_ = null; + desiredTpuConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired Cloud TPU configuration.
+     * 
+ * + * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; + */ + public com.google.container.v1beta1.TpuConfig.Builder getDesiredTpuConfigBuilder() { + + onChanged(); + return getDesiredTpuConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired Cloud TPU configuration.
+     * 
+ * + * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; + */ + public com.google.container.v1beta1.TpuConfigOrBuilder getDesiredTpuConfigOrBuilder() { + if (desiredTpuConfigBuilder_ != null) { + return desiredTpuConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredTpuConfig_ == null + ? com.google.container.v1beta1.TpuConfig.getDefaultInstance() + : desiredTpuConfig_; + } + } + /** + * + * + *
+     * The desired Cloud TPU configuration.
+     * 
+ * + * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.TpuConfig, + com.google.container.v1beta1.TpuConfig.Builder, + com.google.container.v1beta1.TpuConfigOrBuilder> + getDesiredTpuConfigFieldBuilder() { + if (desiredTpuConfigBuilder_ == null) { + desiredTpuConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.TpuConfig, + com.google.container.v1beta1.TpuConfig.Builder, + com.google.container.v1beta1.TpuConfigOrBuilder>( + getDesiredTpuConfig(), getParentForChildren(), isClean()); + desiredTpuConfig_ = null; + } + return desiredTpuConfigBuilder_; + } + + private 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 desiredL4IlbSubsettingConfigBuilder_ != null || desiredL4IlbSubsettingConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + desiredL4IlbSubsettingConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + desiredL4IlbSubsettingConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (desiredL4IlbSubsettingConfig_ != null) { + desiredL4IlbSubsettingConfig_ = + com.google.container.v1beta1.ILBSubsettingConfig.newBuilder( + desiredL4IlbSubsettingConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredL4IlbSubsettingConfig_ = value; + } + onChanged(); + } else { + desiredL4IlbSubsettingConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired L4 Internal Load Balancer Subsetting configuration.
+     * 
+ * + * .google.container.v1beta1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + * + */ + public Builder clearDesiredL4IlbSubsettingConfig() { + if (desiredL4IlbSubsettingConfigBuilder_ == null) { + desiredL4IlbSubsettingConfig_ = null; + onChanged(); + } else { + desiredL4IlbSubsettingConfig_ = null; + desiredL4IlbSubsettingConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired L4 Internal Load Balancer Subsetting configuration.
+     * 
+ * + * .google.container.v1beta1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + * + */ + public com.google.container.v1beta1.ILBSubsettingConfig.Builder + getDesiredL4IlbSubsettingConfigBuilder() { + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * The desired datapath provider for the cluster.
+     * 
+ * + * .google.container.v1beta1.DatapathProvider desired_datapath_provider = 50; + * + * @return The desiredDatapathProvider. + */ + @java.lang.Override + public com.google.container.v1beta1.DatapathProvider getDesiredDatapathProvider() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.DatapathProvider result = + com.google.container.v1beta1.DatapathProvider.valueOf(desiredDatapathProvider_); + return result == null ? com.google.container.v1beta1.DatapathProvider.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The desired datapath provider for the cluster.
+     * 
+ * + * .google.container.v1beta1.DatapathProvider desired_datapath_provider = 50; + * + * @param value The desiredDatapathProvider to set. + * @return This builder for chaining. + */ + public Builder setDesiredDatapathProvider(com.google.container.v1beta1.DatapathProvider value) { + if (value == null) { + throw new NullPointerException(); + } + + desiredDatapathProvider_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired datapath provider for the cluster.
+     * 
+ * + * .google.container.v1beta1.DatapathProvider desired_datapath_provider = 50; + * + * @return This builder for chaining. + */ + public Builder clearDesiredDatapathProvider() { + + desiredDatapathProvider_ = 0; + onChanged(); + return this; + } + + private 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; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.PrivateIPv6GoogleAccess result = + com.google.container.v1beta1.PrivateIPv6GoogleAccess.valueOf( + 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(); + } + + 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() { + + 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 desiredNotificationConfigBuilder_ != null || desiredNotificationConfig_ != null; + } + /** + * + * + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig desired_notification_config = 55; + * + * @return The desiredNotificationConfig. + */ + public com.google.container.v1beta1.NotificationConfig getDesiredNotificationConfig() { + if (desiredNotificationConfigBuilder_ == null) { + return desiredNotificationConfig_ == null + ? com.google.container.v1beta1.NotificationConfig.getDefaultInstance() + : desiredNotificationConfig_; + } else { + return desiredNotificationConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig desired_notification_config = 55; + */ + public Builder setDesiredNotificationConfig( + com.google.container.v1beta1.NotificationConfig value) { + if (desiredNotificationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredNotificationConfig_ = value; + onChanged(); + } else { + desiredNotificationConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig desired_notification_config = 55; + */ + public Builder setDesiredNotificationConfig( + com.google.container.v1beta1.NotificationConfig.Builder builderForValue) { + if (desiredNotificationConfigBuilder_ == null) { + desiredNotificationConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredNotificationConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig desired_notification_config = 55; + */ + public Builder mergeDesiredNotificationConfig( + com.google.container.v1beta1.NotificationConfig value) { + if (desiredNotificationConfigBuilder_ == null) { + if (desiredNotificationConfig_ != null) { + desiredNotificationConfig_ = + com.google.container.v1beta1.NotificationConfig.newBuilder(desiredNotificationConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredNotificationConfig_ = value; + } + onChanged(); + } else { + desiredNotificationConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig desired_notification_config = 55; + */ + public Builder clearDesiredNotificationConfig() { + if (desiredNotificationConfigBuilder_ == null) { + desiredNotificationConfig_ = null; + onChanged(); + } else { + desiredNotificationConfig_ = null; + desiredNotificationConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig desired_notification_config = 55; + */ + public com.google.container.v1beta1.NotificationConfig.Builder + getDesiredNotificationConfigBuilder() { + + onChanged(); + return getDesiredNotificationConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig desired_notification_config = 55; + */ + public com.google.container.v1beta1.NotificationConfigOrBuilder + getDesiredNotificationConfigOrBuilder() { + if (desiredNotificationConfigBuilder_ != null) { + return desiredNotificationConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredNotificationConfig_ == null + ? com.google.container.v1beta1.NotificationConfig.getDefaultInstance() + : desiredNotificationConfig_; + } + } + /** + * + * + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig desired_notification_config = 55; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NotificationConfig, + com.google.container.v1beta1.NotificationConfig.Builder, + com.google.container.v1beta1.NotificationConfigOrBuilder> + getDesiredNotificationConfigFieldBuilder() { + if (desiredNotificationConfigBuilder_ == null) { + desiredNotificationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NotificationConfig, + com.google.container.v1beta1.NotificationConfig.Builder, + com.google.container.v1beta1.NotificationConfigOrBuilder>( + getDesiredNotificationConfig(), getParentForChildren(), isClean()); + desiredNotificationConfig_ = null; + } + return desiredNotificationConfigBuilder_; + } + + private java.lang.Object desiredMasterVersion_ = ""; + /** + * + * + *
+     * The Kubernetes version to change the master to. The only valid value is the
+     * latest supported version.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string desired_master_version = 100; + * + * @return The desiredMasterVersion. + */ + public java.lang.String getDesiredMasterVersion() { + java.lang.Object ref = desiredMasterVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredMasterVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The Kubernetes version to change the master to. The only valid value is the
+     * latest supported version.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string desired_master_version = 100; + * + * @return The bytes for desiredMasterVersion. + */ + public com.google.protobuf.ByteString getDesiredMasterVersionBytes() { + java.lang.Object ref = desiredMasterVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + desiredMasterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The Kubernetes version to change the master to. The only valid value is the
+     * latest supported version.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string desired_master_version = 100; + * + * @param value The desiredMasterVersion to set. + * @return This builder for chaining. + */ + public Builder setDesiredMasterVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + desiredMasterVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The Kubernetes version to change the master to. The only valid value is the
+     * latest supported version.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string desired_master_version = 100; + * + * @return This builder for chaining. + */ + public Builder clearDesiredMasterVersion() { + + desiredMasterVersion_ = getDefaultInstance().getDesiredMasterVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * The Kubernetes version to change the master to. The only valid value is the
+     * latest supported version.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string desired_master_version = 100; + * + * @param value The bytes for desiredMasterVersion to set. + * @return This builder for chaining. + */ + public Builder setDesiredMasterVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + desiredMasterVersion_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.GcfsConfig desiredGcfsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcfsConfig, + com.google.container.v1beta1.GcfsConfig.Builder, + com.google.container.v1beta1.GcfsConfigOrBuilder> + desiredGcfsConfigBuilder_; + /** + * + * + *
+     * The desired GCFS config for the cluster.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + * + * @return Whether the desiredGcfsConfig field is set. + */ + public boolean hasDesiredGcfsConfig() { + return desiredGcfsConfigBuilder_ != null || desiredGcfsConfig_ != null; + } + /** + * + * + *
+     * The desired GCFS config for the cluster.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + * + * @return The desiredGcfsConfig. + */ + public com.google.container.v1beta1.GcfsConfig getDesiredGcfsConfig() { + if (desiredGcfsConfigBuilder_ == null) { + return desiredGcfsConfig_ == null + ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() + : desiredGcfsConfig_; + } else { + return desiredGcfsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired GCFS config for the cluster.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + */ + public Builder setDesiredGcfsConfig(com.google.container.v1beta1.GcfsConfig value) { + if (desiredGcfsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredGcfsConfig_ = value; + onChanged(); + } else { + desiredGcfsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired GCFS config for the cluster.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + */ + public Builder setDesiredGcfsConfig( + com.google.container.v1beta1.GcfsConfig.Builder builderForValue) { + if (desiredGcfsConfigBuilder_ == null) { + desiredGcfsConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredGcfsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired GCFS config for the cluster.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + */ + public Builder mergeDesiredGcfsConfig(com.google.container.v1beta1.GcfsConfig value) { + if (desiredGcfsConfigBuilder_ == null) { + if (desiredGcfsConfig_ != null) { + desiredGcfsConfig_ = + com.google.container.v1beta1.GcfsConfig.newBuilder(desiredGcfsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredGcfsConfig_ = value; + } + onChanged(); + } else { + desiredGcfsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired GCFS config for the cluster.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + */ + public Builder clearDesiredGcfsConfig() { + if (desiredGcfsConfigBuilder_ == null) { + desiredGcfsConfig_ = null; + onChanged(); + } else { + desiredGcfsConfig_ = null; + desiredGcfsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired GCFS config for the cluster.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + */ + public com.google.container.v1beta1.GcfsConfig.Builder getDesiredGcfsConfigBuilder() { + + onChanged(); + return getDesiredGcfsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired GCFS config for the cluster.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + */ + public com.google.container.v1beta1.GcfsConfigOrBuilder getDesiredGcfsConfigOrBuilder() { + if (desiredGcfsConfigBuilder_ != null) { + return desiredGcfsConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredGcfsConfig_ == null + ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() + : desiredGcfsConfig_; + } + } + /** + * + * + *
+     * The desired GCFS config for the cluster.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcfsConfig, + com.google.container.v1beta1.GcfsConfig.Builder, + com.google.container.v1beta1.GcfsConfigOrBuilder> + getDesiredGcfsConfigFieldBuilder() { + if (desiredGcfsConfigBuilder_ == null) { + desiredGcfsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcfsConfig, + com.google.container.v1beta1.GcfsConfig.Builder, + com.google.container.v1beta1.GcfsConfigOrBuilder>( + getDesiredGcfsConfig(), getParentForChildren(), isClean()); + desiredGcfsConfig_ = null; + } + return desiredGcfsConfigBuilder_; + } + + private com.google.container.v1beta1.DatabaseEncryption desiredDatabaseEncryption_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DatabaseEncryption, + com.google.container.v1beta1.DatabaseEncryption.Builder, + com.google.container.v1beta1.DatabaseEncryptionOrBuilder> + desiredDatabaseEncryptionBuilder_; + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; + * + * @return Whether the desiredDatabaseEncryption field is set. + */ + public boolean hasDesiredDatabaseEncryption() { + return desiredDatabaseEncryptionBuilder_ != null || desiredDatabaseEncryption_ != null; + } + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; + * + * @return The desiredDatabaseEncryption. + */ + public com.google.container.v1beta1.DatabaseEncryption getDesiredDatabaseEncryption() { + if (desiredDatabaseEncryptionBuilder_ == null) { + return desiredDatabaseEncryption_ == null + ? com.google.container.v1beta1.DatabaseEncryption.getDefaultInstance() + : desiredDatabaseEncryption_; + } else { + return desiredDatabaseEncryptionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; + */ + public Builder setDesiredDatabaseEncryption( + com.google.container.v1beta1.DatabaseEncryption value) { + if (desiredDatabaseEncryptionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredDatabaseEncryption_ = value; + onChanged(); + } else { + desiredDatabaseEncryptionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; + */ + public Builder setDesiredDatabaseEncryption( + com.google.container.v1beta1.DatabaseEncryption.Builder builderForValue) { + if (desiredDatabaseEncryptionBuilder_ == null) { + desiredDatabaseEncryption_ = builderForValue.build(); + onChanged(); + } else { + desiredDatabaseEncryptionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; + */ + public Builder mergeDesiredDatabaseEncryption( + com.google.container.v1beta1.DatabaseEncryption value) { + if (desiredDatabaseEncryptionBuilder_ == null) { + if (desiredDatabaseEncryption_ != null) { + desiredDatabaseEncryption_ = + com.google.container.v1beta1.DatabaseEncryption.newBuilder(desiredDatabaseEncryption_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredDatabaseEncryption_ = value; + } + onChanged(); + } else { + desiredDatabaseEncryptionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; + */ + public Builder clearDesiredDatabaseEncryption() { + if (desiredDatabaseEncryptionBuilder_ == null) { + desiredDatabaseEncryption_ = null; + onChanged(); + } else { + desiredDatabaseEncryption_ = null; + desiredDatabaseEncryptionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; + */ + public com.google.container.v1beta1.DatabaseEncryption.Builder + getDesiredDatabaseEncryptionBuilder() { + + onChanged(); + return getDesiredDatabaseEncryptionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; + */ + public com.google.container.v1beta1.DatabaseEncryptionOrBuilder + getDesiredDatabaseEncryptionOrBuilder() { + if (desiredDatabaseEncryptionBuilder_ != null) { + return desiredDatabaseEncryptionBuilder_.getMessageOrBuilder(); + } else { + return desiredDatabaseEncryption_ == null + ? com.google.container.v1beta1.DatabaseEncryption.getDefaultInstance() + : desiredDatabaseEncryption_; + } + } + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DatabaseEncryption, + com.google.container.v1beta1.DatabaseEncryption.Builder, + com.google.container.v1beta1.DatabaseEncryptionOrBuilder> + getDesiredDatabaseEncryptionFieldBuilder() { + if (desiredDatabaseEncryptionBuilder_ == null) { + desiredDatabaseEncryptionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DatabaseEncryption, + com.google.container.v1beta1.DatabaseEncryption.Builder, + com.google.container.v1beta1.DatabaseEncryptionOrBuilder>( + getDesiredDatabaseEncryption(), getParentForChildren(), isClean()); + desiredDatabaseEncryption_ = null; + } + return desiredDatabaseEncryptionBuilder_; + } + + private com.google.container.v1beta1.WorkloadIdentityConfig desiredWorkloadIdentityConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadIdentityConfig, + com.google.container.v1beta1.WorkloadIdentityConfig.Builder, + com.google.container.v1beta1.WorkloadIdentityConfigOrBuilder> + desiredWorkloadIdentityConfigBuilder_; + /** + * + * + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + * + * @return Whether the desiredWorkloadIdentityConfig field is set. + */ + public boolean hasDesiredWorkloadIdentityConfig() { + return desiredWorkloadIdentityConfigBuilder_ != null + || desiredWorkloadIdentityConfig_ != null; + } + /** + * + * + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + * + * @return The desiredWorkloadIdentityConfig. + */ + public com.google.container.v1beta1.WorkloadIdentityConfig getDesiredWorkloadIdentityConfig() { + if (desiredWorkloadIdentityConfigBuilder_ == null) { + return desiredWorkloadIdentityConfig_ == null + ? com.google.container.v1beta1.WorkloadIdentityConfig.getDefaultInstance() + : desiredWorkloadIdentityConfig_; + } else { + return desiredWorkloadIdentityConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + */ + public Builder setDesiredWorkloadIdentityConfig( + com.google.container.v1beta1.WorkloadIdentityConfig value) { + if (desiredWorkloadIdentityConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredWorkloadIdentityConfig_ = value; + onChanged(); + } else { + desiredWorkloadIdentityConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + */ + public Builder setDesiredWorkloadIdentityConfig( + com.google.container.v1beta1.WorkloadIdentityConfig.Builder builderForValue) { + if (desiredWorkloadIdentityConfigBuilder_ == null) { + desiredWorkloadIdentityConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredWorkloadIdentityConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + */ + public Builder mergeDesiredWorkloadIdentityConfig( + com.google.container.v1beta1.WorkloadIdentityConfig value) { + if (desiredWorkloadIdentityConfigBuilder_ == null) { + if (desiredWorkloadIdentityConfig_ != null) { + desiredWorkloadIdentityConfig_ = + com.google.container.v1beta1.WorkloadIdentityConfig.newBuilder( + desiredWorkloadIdentityConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredWorkloadIdentityConfig_ = value; + } + onChanged(); + } else { + desiredWorkloadIdentityConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + */ + public Builder clearDesiredWorkloadIdentityConfig() { + if (desiredWorkloadIdentityConfigBuilder_ == null) { + desiredWorkloadIdentityConfig_ = null; + onChanged(); + } else { + desiredWorkloadIdentityConfig_ = null; + desiredWorkloadIdentityConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + */ + public com.google.container.v1beta1.WorkloadIdentityConfig.Builder + getDesiredWorkloadIdentityConfigBuilder() { + + onChanged(); + return getDesiredWorkloadIdentityConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + */ + public com.google.container.v1beta1.WorkloadIdentityConfigOrBuilder + getDesiredWorkloadIdentityConfigOrBuilder() { + if (desiredWorkloadIdentityConfigBuilder_ != null) { + return desiredWorkloadIdentityConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredWorkloadIdentityConfig_ == null + ? com.google.container.v1beta1.WorkloadIdentityConfig.getDefaultInstance() + : desiredWorkloadIdentityConfig_; + } + } + /** + * + * + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadIdentityConfig, + com.google.container.v1beta1.WorkloadIdentityConfig.Builder, + com.google.container.v1beta1.WorkloadIdentityConfigOrBuilder> + getDesiredWorkloadIdentityConfigFieldBuilder() { + if (desiredWorkloadIdentityConfigBuilder_ == null) { + desiredWorkloadIdentityConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadIdentityConfig, + com.google.container.v1beta1.WorkloadIdentityConfig.Builder, + com.google.container.v1beta1.WorkloadIdentityConfigOrBuilder>( + getDesiredWorkloadIdentityConfig(), getParentForChildren(), isClean()); + desiredWorkloadIdentityConfig_ = null; + } + return desiredWorkloadIdentityConfigBuilder_; + } + + private com.google.container.v1beta1.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 desiredWorkloadCertificatesBuilder_ != null || desiredWorkloadCertificates_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + desiredWorkloadCertificatesBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + desiredWorkloadCertificatesBuilder_.setMessage(builderForValue.build()); + } + + 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 (desiredWorkloadCertificates_ != null) { + desiredWorkloadCertificates_ = + com.google.container.v1beta1.WorkloadCertificates.newBuilder( + desiredWorkloadCertificates_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredWorkloadCertificates_ = value; + } + onChanged(); + } else { + desiredWorkloadCertificatesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.WorkloadCertificates desired_workload_certificates = 61; + * + */ + public Builder clearDesiredWorkloadCertificates() { + if (desiredWorkloadCertificatesBuilder_ == null) { + desiredWorkloadCertificates_ = null; + onChanged(); + } else { + desiredWorkloadCertificates_ = null; + desiredWorkloadCertificatesBuilder_ = null; + } + + 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() { + + 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 desiredMeshCertificatesBuilder_ != null || desiredMeshCertificates_ != null; + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + * + * @return The desiredMeshCertificates. + */ + public com.google.container.v1beta1.MeshCertificates getDesiredMeshCertificates() { + if (desiredMeshCertificatesBuilder_ == null) { + return desiredMeshCertificates_ == null + ? com.google.container.v1beta1.MeshCertificates.getDefaultInstance() + : desiredMeshCertificates_; + } else { + return desiredMeshCertificatesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + */ + public Builder setDesiredMeshCertificates(com.google.container.v1beta1.MeshCertificates value) { + if (desiredMeshCertificatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredMeshCertificates_ = value; + onChanged(); + } else { + desiredMeshCertificatesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + */ + public Builder setDesiredMeshCertificates( + com.google.container.v1beta1.MeshCertificates.Builder builderForValue) { + if (desiredMeshCertificatesBuilder_ == null) { + desiredMeshCertificates_ = builderForValue.build(); + onChanged(); + } else { + desiredMeshCertificatesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + */ + public Builder mergeDesiredMeshCertificates( + com.google.container.v1beta1.MeshCertificates value) { + if (desiredMeshCertificatesBuilder_ == null) { + if (desiredMeshCertificates_ != null) { + desiredMeshCertificates_ = + com.google.container.v1beta1.MeshCertificates.newBuilder(desiredMeshCertificates_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredMeshCertificates_ = value; + } + onChanged(); + } else { + desiredMeshCertificatesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + */ + public Builder clearDesiredMeshCertificates() { + if (desiredMeshCertificatesBuilder_ == null) { + desiredMeshCertificates_ = null; + onChanged(); + } else { + desiredMeshCertificates_ = null; + desiredMeshCertificatesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + */ + public com.google.container.v1beta1.MeshCertificates.Builder + getDesiredMeshCertificatesBuilder() { + + onChanged(); + return getDesiredMeshCertificatesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + */ + public com.google.container.v1beta1.MeshCertificatesOrBuilder + getDesiredMeshCertificatesOrBuilder() { + if (desiredMeshCertificatesBuilder_ != null) { + return desiredMeshCertificatesBuilder_.getMessageOrBuilder(); + } else { + return desiredMeshCertificates_ == null + ? com.google.container.v1beta1.MeshCertificates.getDefaultInstance() + : desiredMeshCertificates_; + } + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MeshCertificates, + com.google.container.v1beta1.MeshCertificates.Builder, + com.google.container.v1beta1.MeshCertificatesOrBuilder> + getDesiredMeshCertificatesFieldBuilder() { + if (desiredMeshCertificatesBuilder_ == null) { + desiredMeshCertificatesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MeshCertificates, + com.google.container.v1beta1.MeshCertificates.Builder, + com.google.container.v1beta1.MeshCertificatesOrBuilder>( + getDesiredMeshCertificates(), getParentForChildren(), isClean()); + desiredMeshCertificates_ = null; + } + return desiredMeshCertificatesBuilder_; + } + + private com.google.container.v1beta1.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 desiredWorkloadAltsConfigBuilder_ != null || desiredWorkloadAltsConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + desiredWorkloadAltsConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + desiredWorkloadAltsConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (desiredWorkloadAltsConfig_ != null) { + desiredWorkloadAltsConfig_ = + com.google.container.v1beta1.WorkloadALTSConfig.newBuilder(desiredWorkloadAltsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredWorkloadAltsConfig_ = value; + } + onChanged(); + } else { + desiredWorkloadAltsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for direct-path (via ALTS) with workload identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadALTSConfig desired_workload_alts_config = 62; + */ + public Builder clearDesiredWorkloadAltsConfig() { + if (desiredWorkloadAltsConfigBuilder_ == null) { + desiredWorkloadAltsConfig_ = null; + onChanged(); + } else { + desiredWorkloadAltsConfig_ = null; + desiredWorkloadAltsConfigBuilder_ = null; + } + + 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() { + + 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 desiredShieldedNodesBuilder_ != null || desiredShieldedNodes_ != null; + } + /** + * + * + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; + * + * @return The desiredShieldedNodes. + */ + public com.google.container.v1beta1.ShieldedNodes getDesiredShieldedNodes() { + if (desiredShieldedNodesBuilder_ == null) { + return desiredShieldedNodes_ == null + ? com.google.container.v1beta1.ShieldedNodes.getDefaultInstance() + : desiredShieldedNodes_; + } else { + return desiredShieldedNodesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; + */ + public Builder setDesiredShieldedNodes(com.google.container.v1beta1.ShieldedNodes value) { + if (desiredShieldedNodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredShieldedNodes_ = value; + onChanged(); + } else { + desiredShieldedNodesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; + */ + public Builder setDesiredShieldedNodes( + com.google.container.v1beta1.ShieldedNodes.Builder builderForValue) { + if (desiredShieldedNodesBuilder_ == null) { + desiredShieldedNodes_ = builderForValue.build(); + onChanged(); + } else { + desiredShieldedNodesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; + */ + public Builder mergeDesiredShieldedNodes(com.google.container.v1beta1.ShieldedNodes value) { + if (desiredShieldedNodesBuilder_ == null) { + if (desiredShieldedNodes_ != null) { + desiredShieldedNodes_ = + com.google.container.v1beta1.ShieldedNodes.newBuilder(desiredShieldedNodes_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredShieldedNodes_ = value; + } + onChanged(); + } else { + desiredShieldedNodesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; + */ + public Builder clearDesiredShieldedNodes() { + if (desiredShieldedNodesBuilder_ == null) { + desiredShieldedNodes_ = null; + onChanged(); + } else { + desiredShieldedNodes_ = null; + desiredShieldedNodesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; + */ + public com.google.container.v1beta1.ShieldedNodes.Builder getDesiredShieldedNodesBuilder() { + + onChanged(); + return getDesiredShieldedNodesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; + */ + public com.google.container.v1beta1.ShieldedNodesOrBuilder getDesiredShieldedNodesOrBuilder() { + if (desiredShieldedNodesBuilder_ != null) { + return desiredShieldedNodesBuilder_.getMessageOrBuilder(); + } else { + return desiredShieldedNodes_ == null + ? com.google.container.v1beta1.ShieldedNodes.getDefaultInstance() + : desiredShieldedNodes_; + } + } + /** + * + * + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ShieldedNodes, + com.google.container.v1beta1.ShieldedNodes.Builder, + com.google.container.v1beta1.ShieldedNodesOrBuilder> + getDesiredShieldedNodesFieldBuilder() { + if (desiredShieldedNodesBuilder_ == null) { + desiredShieldedNodesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ShieldedNodes, + com.google.container.v1beta1.ShieldedNodes.Builder, + com.google.container.v1beta1.ShieldedNodesOrBuilder>( + getDesiredShieldedNodes(), getParentForChildren(), isClean()); + desiredShieldedNodes_ = null; + } + return desiredShieldedNodesBuilder_; + } + + private com.google.container.v1beta1.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 desiredCostManagementConfigBuilder_ != null || desiredCostManagementConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + desiredCostManagementConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + desiredCostManagementConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (desiredCostManagementConfig_ != null) { + desiredCostManagementConfig_ = + com.google.container.v1beta1.CostManagementConfig.newBuilder( + desiredCostManagementConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredCostManagementConfig_ = value; + } + onChanged(); + } else { + desiredCostManagementConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1beta1.CostManagementConfig desired_cost_management_config = 49; + * + */ + public Builder clearDesiredCostManagementConfig() { + if (desiredCostManagementConfigBuilder_ == null) { + desiredCostManagementConfig_ = null; + onChanged(); + } else { + desiredCostManagementConfig_ = null; + desiredCostManagementConfigBuilder_ = null; + } + + 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() { + + 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 desiredMasterBuilder_ != null || desiredMaster_ != null; + } + /** + * + * + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master desired_master = 52; + * + * @return The desiredMaster. + */ + public com.google.container.v1beta1.Master getDesiredMaster() { + if (desiredMasterBuilder_ == null) { + return desiredMaster_ == null + ? com.google.container.v1beta1.Master.getDefaultInstance() + : desiredMaster_; + } else { + return desiredMasterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master desired_master = 52; + */ + public Builder setDesiredMaster(com.google.container.v1beta1.Master value) { + if (desiredMasterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredMaster_ = value; + onChanged(); + } else { + desiredMasterBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master desired_master = 52; + */ + public Builder setDesiredMaster(com.google.container.v1beta1.Master.Builder builderForValue) { + if (desiredMasterBuilder_ == null) { + desiredMaster_ = builderForValue.build(); + onChanged(); + } else { + desiredMasterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master desired_master = 52; + */ + public Builder mergeDesiredMaster(com.google.container.v1beta1.Master value) { + if (desiredMasterBuilder_ == null) { + if (desiredMaster_ != null) { + desiredMaster_ = + com.google.container.v1beta1.Master.newBuilder(desiredMaster_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredMaster_ = value; + } + onChanged(); + } else { + desiredMasterBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master desired_master = 52; + */ + public Builder clearDesiredMaster() { + if (desiredMasterBuilder_ == null) { + desiredMaster_ = null; + onChanged(); + } else { + desiredMaster_ = null; + desiredMasterBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master desired_master = 52; + */ + public com.google.container.v1beta1.Master.Builder getDesiredMasterBuilder() { + + onChanged(); + return getDesiredMasterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master desired_master = 52; + */ + public com.google.container.v1beta1.MasterOrBuilder getDesiredMasterOrBuilder() { + if (desiredMasterBuilder_ != null) { + return desiredMasterBuilder_.getMessageOrBuilder(); + } else { + return desiredMaster_ == null + ? com.google.container.v1beta1.Master.getDefaultInstance() + : desiredMaster_; + } + } + /** + * + * + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master desired_master = 52; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.Master, + com.google.container.v1beta1.Master.Builder, + com.google.container.v1beta1.MasterOrBuilder> + getDesiredMasterFieldBuilder() { + if (desiredMasterBuilder_ == null) { + desiredMasterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.Master, + com.google.container.v1beta1.Master.Builder, + com.google.container.v1beta1.MasterOrBuilder>( + getDesiredMaster(), getParentForChildren(), isClean()); + desiredMaster_ = null; + } + return desiredMasterBuilder_; + } + + 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 desiredDnsConfigBuilder_ != null || desiredDnsConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + desiredDnsConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + desiredDnsConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (desiredDnsConfig_ != null) { + desiredDnsConfig_ = + com.google.container.v1beta1.DNSConfig.newBuilder(desiredDnsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredDnsConfig_ = value; + } + onChanged(); + } else { + desiredDnsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1beta1.DNSConfig desired_dns_config = 53; + */ + public Builder clearDesiredDnsConfig() { + if (desiredDnsConfigBuilder_ == null) { + desiredDnsConfig_ = null; + onChanged(); + } else { + desiredDnsConfig_ = null; + desiredDnsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1beta1.DNSConfig desired_dns_config = 53; + */ + public com.google.container.v1beta1.DNSConfig.Builder getDesiredDnsConfigBuilder() { + + 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 desiredServiceExternalIpsConfigBuilder_ != null + || desiredServiceExternalIpsConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + desiredServiceExternalIpsConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + desiredServiceExternalIpsConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (desiredServiceExternalIpsConfig_ != null) { + desiredServiceExternalIpsConfig_ = + com.google.container.v1beta1.ServiceExternalIPsConfig.newBuilder( + desiredServiceExternalIpsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredServiceExternalIpsConfig_ = value; + } + onChanged(); + } else { + desiredServiceExternalIpsConfigBuilder_.mergeFrom(value); + } + + 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() { + if (desiredServiceExternalIpsConfigBuilder_ == null) { + desiredServiceExternalIpsConfig_ = null; + onChanged(); + } else { + desiredServiceExternalIpsConfig_ = null; + desiredServiceExternalIpsConfigBuilder_ = null; + } + + 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() { + + 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 desiredAuthenticatorGroupsConfigBuilder_ != null + || desiredAuthenticatorGroupsConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + desiredAuthenticatorGroupsConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + desiredAuthenticatorGroupsConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (desiredAuthenticatorGroupsConfig_ != null) { + desiredAuthenticatorGroupsConfig_ = + com.google.container.v1beta1.AuthenticatorGroupsConfig.newBuilder( + desiredAuthenticatorGroupsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredAuthenticatorGroupsConfig_ = value; + } + onChanged(); + } else { + desiredAuthenticatorGroupsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * AuthenticatorGroupsConfig specifies the config for the cluster security
+     * groups settings.
+     * 
+ * + * + * .google.container.v1beta1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * + */ + public Builder clearDesiredAuthenticatorGroupsConfig() { + if (desiredAuthenticatorGroupsConfigBuilder_ == null) { + desiredAuthenticatorGroupsConfig_ = null; + onChanged(); + } else { + desiredAuthenticatorGroupsConfig_ = null; + desiredAuthenticatorGroupsConfigBuilder_ = null; + } + + 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() { + + 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 desiredLoggingConfigBuilder_ != null || desiredLoggingConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + desiredLoggingConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + desiredLoggingConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (desiredLoggingConfig_ != null) { + desiredLoggingConfig_ = + com.google.container.v1beta1.LoggingConfig.newBuilder(desiredLoggingConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredLoggingConfig_ = value; + } + onChanged(); + } else { + desiredLoggingConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1beta1.LoggingConfig desired_logging_config = 64; + */ + public Builder clearDesiredLoggingConfig() { + if (desiredLoggingConfigBuilder_ == null) { + desiredLoggingConfig_ = null; + onChanged(); + } else { + desiredLoggingConfig_ = null; + desiredLoggingConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1beta1.LoggingConfig desired_logging_config = 64; + */ + public com.google.container.v1beta1.LoggingConfig.Builder getDesiredLoggingConfigBuilder() { + + 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 desiredMonitoringConfigBuilder_ != null || desiredMonitoringConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + desiredMonitoringConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + desiredMonitoringConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (desiredMonitoringConfig_ != null) { + desiredMonitoringConfig_ = + com.google.container.v1beta1.MonitoringConfig.newBuilder(desiredMonitoringConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredMonitoringConfig_ = value; + } + onChanged(); + } else { + desiredMonitoringConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1beta1.MonitoringConfig desired_monitoring_config = 65; + */ + public Builder clearDesiredMonitoringConfig() { + if (desiredMonitoringConfigBuilder_ == null) { + desiredMonitoringConfig_ = null; + onChanged(); + } else { + desiredMonitoringConfig_ = null; + desiredMonitoringConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1beta1.MonitoringConfig desired_monitoring_config = 65; + */ + public com.google.container.v1beta1.MonitoringConfig.Builder + getDesiredMonitoringConfigBuilder() { + + 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 desiredIdentityServiceConfigBuilder_ != null || desiredIdentityServiceConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + desiredIdentityServiceConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + desiredIdentityServiceConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (desiredIdentityServiceConfig_ != null) { + desiredIdentityServiceConfig_ = + com.google.container.v1beta1.IdentityServiceConfig.newBuilder( + desiredIdentityServiceConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredIdentityServiceConfig_ = value; + } + onChanged(); + } else { + desiredIdentityServiceConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired Identity Service component configuration.
+     * 
+ * + * .google.container.v1beta1.IdentityServiceConfig desired_identity_service_config = 66; + * + */ + public Builder clearDesiredIdentityServiceConfig() { + if (desiredIdentityServiceConfigBuilder_ == null) { + desiredIdentityServiceConfig_ = null; + onChanged(); + } else { + desiredIdentityServiceConfig_ = null; + desiredIdentityServiceConfigBuilder_ = null; + } + + 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() { + + 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 ((bitField0_ & 0x00000002) != 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) { + bitField0_ |= 0x00000002; + desiredEnablePrivateEndpoint_ = value; + 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() { + bitField0_ = (bitField0_ & ~0x00000002); + 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 desiredNodePoolAutoConfigNetworkTagsBuilder_ != null + || desiredNodePoolAutoConfigNetworkTags_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + desiredNodePoolAutoConfigNetworkTagsBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + desiredNodePoolAutoConfigNetworkTagsBuilder_.setMessage(builderForValue.build()); + } + + 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 (desiredNodePoolAutoConfigNetworkTags_ != null) { + desiredNodePoolAutoConfigNetworkTags_ = + com.google.container.v1beta1.NetworkTags.newBuilder( + desiredNodePoolAutoConfigNetworkTags_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredNodePoolAutoConfigNetworkTags_ = value; + } + onChanged(); + } else { + desiredNodePoolAutoConfigNetworkTagsBuilder_.mergeFrom(value); + } + + 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() { + if (desiredNodePoolAutoConfigNetworkTagsBuilder_ == null) { + desiredNodePoolAutoConfigNetworkTags_ = null; + onChanged(); + } else { + desiredNodePoolAutoConfigNetworkTags_ = null; + desiredNodePoolAutoConfigNetworkTagsBuilder_ = null; + } + + 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() { + + 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_; + /** + * + * + *
+     * Enable/Disable Protect API features for the cluster.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112; + * + * @return Whether the desiredProtectConfig field is set. + */ + public boolean hasDesiredProtectConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Enable/Disable Protect API features for the cluster.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112; + * + * @return The desiredProtectConfig. + */ + public com.google.container.v1beta1.ProtectConfig getDesiredProtectConfig() { + if (desiredProtectConfigBuilder_ == null) { + return desiredProtectConfig_ == null + ? com.google.container.v1beta1.ProtectConfig.getDefaultInstance() + : desiredProtectConfig_; + } else { + return desiredProtectConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Enable/Disable Protect API features for the cluster.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112; + */ + public Builder setDesiredProtectConfig(com.google.container.v1beta1.ProtectConfig value) { + if (desiredProtectConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredProtectConfig_ = value; + onChanged(); + } else { + desiredProtectConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * + * + *
+     * Enable/Disable Protect API features for the cluster.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112; + */ + public Builder setDesiredProtectConfig( + com.google.container.v1beta1.ProtectConfig.Builder builderForValue) { + if (desiredProtectConfigBuilder_ == null) { + desiredProtectConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredProtectConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * + * + *
+     * Enable/Disable Protect API features for the cluster.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112; + */ + public Builder mergeDesiredProtectConfig(com.google.container.v1beta1.ProtectConfig value) { + if (desiredProtectConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && desiredProtectConfig_ != null + && desiredProtectConfig_ + != com.google.container.v1beta1.ProtectConfig.getDefaultInstance()) { + desiredProtectConfig_ = + com.google.container.v1beta1.ProtectConfig.newBuilder(desiredProtectConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredProtectConfig_ = value; + } + onChanged(); + } else { + desiredProtectConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * + * + *
+     * Enable/Disable Protect API features for the cluster.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112; + */ + public Builder clearDesiredProtectConfig() { + if (desiredProtectConfigBuilder_ == null) { + desiredProtectConfig_ = null; + onChanged(); + } else { + desiredProtectConfigBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + /** + * + * + *
+     * Enable/Disable Protect API features for the cluster.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112; + */ + public com.google.container.v1beta1.ProtectConfig.Builder getDesiredProtectConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getDesiredProtectConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Enable/Disable Protect API features for the cluster.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112; + */ + public com.google.container.v1beta1.ProtectConfigOrBuilder getDesiredProtectConfigOrBuilder() { + if (desiredProtectConfigBuilder_ != null) { + return desiredProtectConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredProtectConfig_ == null + ? com.google.container.v1beta1.ProtectConfig.getDefaultInstance() + : desiredProtectConfig_; + } + } + /** + * + * + *
+     * Enable/Disable Protect API features for the cluster.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112; + */ + 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 desiredGatewayApiConfigBuilder_ != null || desiredGatewayApiConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + desiredGatewayApiConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + desiredGatewayApiConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (desiredGatewayApiConfig_ != null) { + desiredGatewayApiConfig_ = + com.google.container.v1beta1.GatewayAPIConfig.newBuilder(desiredGatewayApiConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredGatewayApiConfig_ = value; + } + onChanged(); + } else { + desiredGatewayApiConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired config of Gateway API on this cluster.
+     * 
+ * + * .google.container.v1beta1.GatewayAPIConfig desired_gateway_api_config = 114; + */ + public Builder clearDesiredGatewayApiConfig() { + if (desiredGatewayApiConfigBuilder_ == null) { + desiredGatewayApiConfig_ = null; + onChanged(); + } else { + desiredGatewayApiConfig_ = null; + desiredGatewayApiConfigBuilder_ = null; + } + + 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() { + + 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 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 desiredNodePoolLoggingConfigBuilder_ != null || desiredNodePoolLoggingConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + desiredNodePoolLoggingConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + desiredNodePoolLoggingConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (desiredNodePoolLoggingConfig_ != null) { + desiredNodePoolLoggingConfig_ = + com.google.container.v1beta1.NodePoolLoggingConfig.newBuilder( + desiredNodePoolLoggingConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredNodePoolLoggingConfig_ = value; + } + onChanged(); + } else { + desiredNodePoolLoggingConfigBuilder_.mergeFrom(value); + } + + 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() { + if (desiredNodePoolLoggingConfigBuilder_ == null) { + desiredNodePoolLoggingConfig_ = null; + onChanged(); + } else { + desiredNodePoolLoggingConfig_ = null; + desiredNodePoolLoggingConfigBuilder_ = null; + } + + 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() { + + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..39dada4f53d1 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdateOrBuilder.java @@ -0,0 +1,1724 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ClusterUpdateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ClusterUpdate) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string desired_node_version = 4; + * + * @return The desiredNodeVersion. + */ + java.lang.String getDesiredNodeVersion(); + /** + * + * + *
+   * The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string desired_node_version = 4; + * + * @return The bytes for desiredNodeVersion. + */ + com.google.protobuf.ByteString getDesiredNodeVersionBytes(); + + /** + * + * + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+   * 
+ * + * string desired_monitoring_service = 5; + * + * @return The desiredMonitoringService. + */ + java.lang.String getDesiredMonitoringService(); + /** + * + * + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+   * 
+ * + * string desired_monitoring_service = 5; + * + * @return The bytes for desiredMonitoringService. + */ + com.google.protobuf.ByteString getDesiredMonitoringServiceBytes(); + + /** + * + * + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + * + * @return Whether the desiredAddonsConfig field is set. + */ + boolean hasDesiredAddonsConfig(); + /** + * + * + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + * + * @return The desiredAddonsConfig. + */ + com.google.container.v1beta1.AddonsConfig getDesiredAddonsConfig(); + /** + * + * + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + */ + com.google.container.v1beta1.AddonsConfigOrBuilder getDesiredAddonsConfigOrBuilder(); + + /** + * + * + *
+   * The node pool to be upgraded. This field is mandatory if
+   * "desired_node_version", "desired_image_family",
+   * "desired_node_pool_autoscaling", or "desired_workload_metadata_config"
+   * is specified and there is more than one node pool on the cluster.
+   * 
+ * + * string desired_node_pool_id = 7; + * + * @return The desiredNodePoolId. + */ + java.lang.String getDesiredNodePoolId(); + /** + * + * + *
+   * The node pool to be upgraded. This field is mandatory if
+   * "desired_node_version", "desired_image_family",
+   * "desired_node_pool_autoscaling", or "desired_workload_metadata_config"
+   * is specified and there is more than one node pool on the cluster.
+   * 
+ * + * string desired_node_pool_id = 7; + * + * @return The bytes for desiredNodePoolId. + */ + com.google.protobuf.ByteString getDesiredNodePoolIdBytes(); + + /** + * + * + *
+   * The desired image type for the node pool.
+   * NOTE: Set the "desired_node_pool" field as well.
+   * 
+ * + * string desired_image_type = 8; + * + * @return The desiredImageType. + */ + java.lang.String getDesiredImageType(); + /** + * + * + *
+   * The desired image type for the node pool.
+   * NOTE: Set the "desired_node_pool" field as well.
+   * 
+ * + * string desired_image_type = 8; + * + * @return The bytes for desiredImageType. + */ + com.google.protobuf.ByteString getDesiredImageTypeBytes(); + + /** + * + * + *
+   * Autoscaler configuration for the node pool specified in
+   * desired_node_pool_id. If there is only one pool in the
+   * cluster and desired_node_pool_id is not provided then
+   * the change applies to that single node pool.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + * + * @return Whether the desiredNodePoolAutoscaling field is set. + */ + boolean hasDesiredNodePoolAutoscaling(); + /** + * + * + *
+   * Autoscaler configuration for the node pool specified in
+   * desired_node_pool_id. If there is only one pool in the
+   * cluster and desired_node_pool_id is not provided then
+   * the change applies to that single node pool.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + * + * @return The desiredNodePoolAutoscaling. + */ + com.google.container.v1beta1.NodePoolAutoscaling getDesiredNodePoolAutoscaling(); + /** + * + * + *
+   * Autoscaler configuration for the node pool specified in
+   * desired_node_pool_id. If there is only one pool in the
+   * cluster and desired_node_pool_id is not provided then
+   * the change applies to that single node pool.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + com.google.container.v1beta1.NodePoolAutoscalingOrBuilder + getDesiredNodePoolAutoscalingOrBuilder(); + + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This list must always include the cluster's primary zone.
+   * Warning: changing cluster locations will update the locations of all node
+   * pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string desired_locations = 10; + * + * @return A list containing the desiredLocations. + */ + java.util.List getDesiredLocationsList(); + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This list must always include the cluster's primary zone.
+   * Warning: changing cluster locations will update the locations of all node
+   * pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string desired_locations = 10; + * + * @return The count of desiredLocations. + */ + int getDesiredLocationsCount(); + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This list must always include the cluster's primary zone.
+   * Warning: changing cluster locations will update the locations of all node
+   * pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string desired_locations = 10; + * + * @param index The index of the element to return. + * @return The desiredLocations at the given index. + */ + java.lang.String getDesiredLocations(int index); + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This list must always include the cluster's primary zone.
+   * Warning: changing cluster locations will update the locations of all node
+   * pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string desired_locations = 10; + * + * @param index The index of the value to return. + * @return The bytes of the desiredLocations at the given index. + */ + com.google.protobuf.ByteString getDesiredLocationsBytes(int index); + + /** + * + * + *
+   * The desired configuration options for master authorized networks feature.
+   * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * + * + * @return Whether the desiredMasterAuthorizedNetworksConfig field is set. + */ + boolean hasDesiredMasterAuthorizedNetworksConfig(); + /** + * + * + *
+   * The desired configuration options for master authorized networks feature.
+   * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * + * + * @return The desiredMasterAuthorizedNetworksConfig. + */ + com.google.container.v1beta1.MasterAuthorizedNetworksConfig + getDesiredMasterAuthorizedNetworksConfig(); + /** + * + * + *
+   * The desired configuration options for master authorized networks feature.
+   * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * + */ + com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder + getDesiredMasterAuthorizedNetworksConfigOrBuilder(); + + /** + * + * + *
+   * The desired configuration options for the PodSecurityPolicy feature.
+   * 
+ * + * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + * + * + * @return Whether the desiredPodSecurityPolicyConfig field is set. + */ + boolean hasDesiredPodSecurityPolicyConfig(); + /** + * + * + *
+   * The desired configuration options for the PodSecurityPolicy feature.
+   * 
+ * + * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + * + * + * @return The desiredPodSecurityPolicyConfig. + */ + com.google.container.v1beta1.PodSecurityPolicyConfig getDesiredPodSecurityPolicyConfig(); + /** + * + * + *
+   * The desired configuration options for the PodSecurityPolicy feature.
+   * 
+ * + * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + * + */ + com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder + getDesiredPodSecurityPolicyConfigOrBuilder(); + + /** + * + * + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + * + * @return Whether the desiredClusterAutoscaling field is set. + */ + boolean hasDesiredClusterAutoscaling(); + /** + * + * + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + * + * @return The desiredClusterAutoscaling. + */ + com.google.container.v1beta1.ClusterAutoscaling getDesiredClusterAutoscaling(); + /** + * + * + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + com.google.container.v1beta1.ClusterAutoscalingOrBuilder getDesiredClusterAutoscalingOrBuilder(); + + /** + * + * + *
+   * The desired configuration options for the Binary Authorization feature.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + * + * @return Whether the desiredBinaryAuthorization field is set. + */ + boolean hasDesiredBinaryAuthorization(); + /** + * + * + *
+   * The desired configuration options for the Binary Authorization feature.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + * + * @return The desiredBinaryAuthorization. + */ + com.google.container.v1beta1.BinaryAuthorization getDesiredBinaryAuthorization(); + /** + * + * + *
+   * The desired configuration options for the Binary Authorization feature.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + */ + com.google.container.v1beta1.BinaryAuthorizationOrBuilder + getDesiredBinaryAuthorizationOrBuilder(); + + /** + * + * + *
+   * The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
+   * * `none` - no logs will be exported from the cluster.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+   * 
+ * + * string desired_logging_service = 19; + * + * @return The desiredLoggingService. + */ + java.lang.String getDesiredLoggingService(); + /** + * + * + *
+   * The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
+   * * `none` - no logs will be exported from the cluster.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+   * 
+ * + * string desired_logging_service = 19; + * + * @return The bytes for desiredLoggingService. + */ + com.google.protobuf.ByteString getDesiredLoggingServiceBytes(); + + /** + * + * + *
+   * The desired configuration for exporting resource usage.
+   * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * + * + * @return Whether the desiredResourceUsageExportConfig field is set. + */ + boolean hasDesiredResourceUsageExportConfig(); + /** + * + * + *
+   * The desired configuration for exporting resource usage.
+   * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * + * + * @return The desiredResourceUsageExportConfig. + */ + com.google.container.v1beta1.ResourceUsageExportConfig getDesiredResourceUsageExportConfig(); + /** + * + * + *
+   * The desired configuration for exporting resource usage.
+   * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * + */ + com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder + getDesiredResourceUsageExportConfigOrBuilder(); + + /** + * + * + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * + * + * @return Whether the desiredVerticalPodAutoscaling field is set. + */ + boolean hasDesiredVerticalPodAutoscaling(); + /** + * + * + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * + * + * @return The desiredVerticalPodAutoscaling. + */ + com.google.container.v1beta1.VerticalPodAutoscaling getDesiredVerticalPodAutoscaling(); + /** + * + * + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * + */ + com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder + getDesiredVerticalPodAutoscalingOrBuilder(); + + /** + * + * + *
+   * The desired private cluster configuration.
+   * 
+ * + * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; + * + * + * @return Whether the desiredPrivateClusterConfig field is set. + */ + boolean hasDesiredPrivateClusterConfig(); + /** + * + * + *
+   * The desired private cluster configuration.
+   * 
+ * + * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; + * + * + * @return The desiredPrivateClusterConfig. + */ + com.google.container.v1beta1.PrivateClusterConfig getDesiredPrivateClusterConfig(); + /** + * + * + *
+   * The desired private cluster configuration.
+   * 
+ * + * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; + * + */ + com.google.container.v1beta1.PrivateClusterConfigOrBuilder + getDesiredPrivateClusterConfigOrBuilder(); + + /** + * + * + *
+   * The desired config of Intra-node visibility.
+   * 
+ * + * + * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * + * + * @return Whether the desiredIntraNodeVisibilityConfig field is set. + */ + boolean hasDesiredIntraNodeVisibilityConfig(); + /** + * + * + *
+   * The desired config of Intra-node visibility.
+   * 
+ * + * + * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * + * + * @return The desiredIntraNodeVisibilityConfig. + */ + com.google.container.v1beta1.IntraNodeVisibilityConfig getDesiredIntraNodeVisibilityConfig(); + /** + * + * + *
+   * The desired config of Intra-node visibility.
+   * 
+ * + * + * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * + */ + com.google.container.v1beta1.IntraNodeVisibilityConfigOrBuilder + getDesiredIntraNodeVisibilityConfigOrBuilder(); + + /** + * + * + *
+   * The desired status of whether to disable default sNAT for this cluster.
+   * 
+ * + * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; + * + * @return Whether the desiredDefaultSnatStatus field is set. + */ + boolean hasDesiredDefaultSnatStatus(); + /** + * + * + *
+   * The desired status of whether to disable default sNAT for this cluster.
+   * 
+ * + * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; + * + * @return The desiredDefaultSnatStatus. + */ + com.google.container.v1beta1.DefaultSnatStatus getDesiredDefaultSnatStatus(); + /** + * + * + *
+   * The desired status of whether to disable default sNAT for this cluster.
+   * 
+ * + * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; + */ + com.google.container.v1beta1.DefaultSnatStatusOrBuilder getDesiredDefaultSnatStatusOrBuilder(); + + /** + * + * + *
+   * The desired telemetry integration for the cluster.
+   * 
+ * + * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; + * + * @return Whether the desiredClusterTelemetry field is set. + */ + boolean hasDesiredClusterTelemetry(); + /** + * + * + *
+   * The desired telemetry integration for the cluster.
+   * 
+ * + * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; + * + * @return The desiredClusterTelemetry. + */ + com.google.container.v1beta1.ClusterTelemetry getDesiredClusterTelemetry(); + /** + * + * + *
+   * The desired telemetry integration for the cluster.
+   * 
+ * + * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; + */ + com.google.container.v1beta1.ClusterTelemetryOrBuilder getDesiredClusterTelemetryOrBuilder(); + + /** + * + * + *
+   * The desired release channel configuration.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; + * + * @return Whether the desiredReleaseChannel field is set. + */ + boolean hasDesiredReleaseChannel(); + /** + * + * + *
+   * The desired release channel configuration.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; + * + * @return The desiredReleaseChannel. + */ + com.google.container.v1beta1.ReleaseChannel getDesiredReleaseChannel(); + /** + * + * + *
+   * The desired release channel configuration.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; + */ + com.google.container.v1beta1.ReleaseChannelOrBuilder getDesiredReleaseChannelOrBuilder(); + + /** + * + * + *
+   * The desired Cloud TPU configuration.
+   * 
+ * + * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; + * + * @return Whether the desiredTpuConfig field is set. + */ + boolean hasDesiredTpuConfig(); + /** + * + * + *
+   * The desired Cloud TPU configuration.
+   * 
+ * + * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; + * + * @return The desiredTpuConfig. + */ + com.google.container.v1beta1.TpuConfig getDesiredTpuConfig(); + /** + * + * + *
+   * The desired Cloud TPU configuration.
+   * 
+ * + * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; + */ + com.google.container.v1beta1.TpuConfigOrBuilder getDesiredTpuConfigOrBuilder(); + + /** + * + * + *
+   * The desired 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(); + + /** + * + * + *
+   * Enable/Disable Protect API features for the cluster.
+   * 
+ * + * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112; + * + * @return Whether the desiredProtectConfig field is set. + */ + boolean hasDesiredProtectConfig(); + /** + * + * + *
+   * Enable/Disable Protect API features for the cluster.
+   * 
+ * + * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112; + * + * @return The desiredProtectConfig. + */ + com.google.container.v1beta1.ProtectConfig getDesiredProtectConfig(); + /** + * + * + *
+   * Enable/Disable Protect API features for the cluster.
+   * 
+ * + * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112; + */ + 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 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(); +} 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 new file mode 100644 index 000000000000..8cd04ba7cda5 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequest.java @@ -0,0 +1,1276 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * CompleteIPRotationRequest moves the cluster master back into single-IP mode.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.CompleteIPRotationRequest} + */ +public final class CompleteIPRotationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.CompleteIPRotationRequest) + CompleteIPRotationRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompleteIPRotationRequest.newBuilder() to construct. + private CompleteIPRotationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CompleteIPRotationRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CompleteIPRotationRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_CompleteIPRotationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_CompleteIPRotationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.CompleteIPRotationRequest.class, + com.google.container.v1beta1.CompleteIPRotationRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=4126 + * @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=4126 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Required. Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=4135 + * @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=4135 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * Required. Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=4142 + * @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=4142 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster 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(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_CompleteIPRotationRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.CompleteIPRotationRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.CompleteIPRotationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.CompleteIPRotationRequest build() { + com.google.container.v1beta1.CompleteIPRotationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.CompleteIPRotationRequest buildPartial() { + com.google.container.v1beta1.CompleteIPRotationRequest result = + new com.google.container.v1beta1.CompleteIPRotationRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.CompleteIPRotationRequest) { + return mergeFrom((com.google.container.v1beta1.CompleteIPRotationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.CompleteIPRotationRequest other) { + if (other == com.google.container.v1beta1.CompleteIPRotationRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 58: + { + name_ = input.readStringRequireUtf8(); + + 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 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=4126 + * @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=4126 + * @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=4126 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=4126 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=4126 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=4135 + * @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=4135 + * @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=4135 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=4135 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=4135 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=4142 + * @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=4142 + * @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=4142 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=4142 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=4142 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..a0f1a1b07a17 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequestOrBuilder.java @@ -0,0 +1,161 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface CompleteIPRotationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.CompleteIPRotationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=4126 + * @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=4126 + * @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=4135 + * @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=4135 + * @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=4142 + * @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=4142 + * @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 new file mode 100644 index 000000000000..36c694feb641 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteNodePoolUpgradeRequest.java @@ -0,0 +1,633 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + 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(); + 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); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.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_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..c0b9e9994b69 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteNodePoolUpgradeRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface 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 new file mode 100644 index 000000000000..d91a55907402 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfidentialNodes.java @@ -0,0 +1,528 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * ConfidentialNodes is configuration for the confidential nodes feature, which
+ * makes nodes run on confidential VMs.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ConfidentialNodes} + */ +public final class ConfidentialNodes extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ConfidentialNodes) + ConfidentialNodesOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConfidentialNodes.newBuilder() to construct. + private ConfidentialNodes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConfidentialNodes() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConfidentialNodes(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ConfidentialNodes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ConfidentialNodes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ConfidentialNodes.class, + com.google.container.v1beta1.ConfidentialNodes.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether Confidential Nodes feature is enabled.
+   * 
+ * + * 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(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ConfidentialNodes_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ConfidentialNodes getDefaultInstanceForType() { + return com.google.container.v1beta1.ConfidentialNodes.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ConfidentialNodes build() { + com.google.container.v1beta1.ConfidentialNodes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ConfidentialNodes buildPartial() { + com.google.container.v1beta1.ConfidentialNodes result = + new com.google.container.v1beta1.ConfidentialNodes(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ConfidentialNodes) { + return mergeFrom((com.google.container.v1beta1.ConfidentialNodes) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ConfidentialNodes other) { + if (other == com.google.container.v1beta1.ConfidentialNodes.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether Confidential Nodes feature is enabled.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ConfidentialNodes) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ConfidentialNodes) + private static final com.google.container.v1beta1.ConfidentialNodes DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ConfidentialNodes(); + } + + public static com.google.container.v1beta1.ConfidentialNodes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfidentialNodes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..9927f84752c7 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfidentialNodesOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface 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 new file mode 100644 index 000000000000..e0b6a76edb99 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfigConnectorConfig.java @@ -0,0 +1,527 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration options for the Config Connector add-on.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ConfigConnectorConfig} + */ +public final class ConfigConnectorConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ConfigConnectorConfig) + ConfigConnectorConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConfigConnectorConfig.newBuilder() to construct. + private ConfigConnectorConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConfigConnectorConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConfigConnectorConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ConfigConnectorConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ConfigConnectorConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ConfigConnectorConfig.class, + com.google.container.v1beta1.ConfigConnectorConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether Cloud Connector is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + 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(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ConfigConnectorConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ConfigConnectorConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.ConfigConnectorConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ConfigConnectorConfig build() { + com.google.container.v1beta1.ConfigConnectorConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ConfigConnectorConfig buildPartial() { + com.google.container.v1beta1.ConfigConnectorConfig result = + new com.google.container.v1beta1.ConfigConnectorConfig(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ConfigConnectorConfig) { + return mergeFrom((com.google.container.v1beta1.ConfigConnectorConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ConfigConnectorConfig other) { + if (other == com.google.container.v1beta1.ConfigConnectorConfig.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 boolean enabled_; + /** + * + * + *
+     * Whether Cloud Connector is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether Cloud Connector is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether Cloud Connector is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ConfigConnectorConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ConfigConnectorConfig) + private static final com.google.container.v1beta1.ConfigConnectorConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ConfigConnectorConfig(); + } + + public static com.google.container.v1beta1.ConfigConnectorConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfigConnectorConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..03bbc8fc52df --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfigConnectorConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ConfigConnectorConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ConfigConnectorConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether Cloud Connector is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/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 new file mode 100644 index 000000000000..09b2064c2ac6 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CostManagementConfig.java @@ -0,0 +1,527 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration for 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * 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(); + 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); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.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(); + + 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 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the feature is enabled or not.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.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 new file mode 100644 index 000000000000..ec715bfa4659 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CostManagementConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface 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 new file mode 100644 index 000000000000..0efcfa12ecce --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequest.java @@ -0,0 +1,1360 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * CreateClusterRequest creates a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.CreateClusterRequest} + */ +public final class CreateClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.CreateClusterRequest) + CreateClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateClusterRequest.newBuilder() to construct. + private CreateClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateClusterRequest() { + projectId_ = ""; + zone_ = ""; + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateClusterRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_CreateClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_CreateClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.CreateClusterRequest.class, + com.google.container.v1beta1.CreateClusterRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://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=2361 + * @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=2361 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Required. Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the parent
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2370 + * @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=2370 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_FIELD_NUMBER = 3; + private com.google.container.v1beta1.Cluster cluster_; + /** + * + * + *
+   * Required. A [cluster
+   * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
+   * 
+ * + * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cluster field is set. + */ + @java.lang.Override + public boolean hasCluster() { + return cluster_ != null; + } + /** + * + * + *
+   * Required. A [cluster
+   * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
+   * 
+ * + * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cluster. + */ + @java.lang.Override + public com.google.container.v1beta1.Cluster getCluster() { + return cluster_ == null ? com.google.container.v1beta1.Cluster.getDefaultInstance() : cluster_; + } + /** + * + * + *
+   * Required. A [cluster
+   * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
+   * 
+ * + * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.container.v1beta1.ClusterOrBuilder getClusterOrBuilder() { + return getCluster(); + } + + public static final int PARENT_FIELD_NUMBER = 5; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * The parent (project and location) where the cluster will be created.
+   * Specified in the format `projects/*/locations/*`.
+   * 
+ * + * string parent = 5; + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * The parent (project and location) where the cluster will be created.
+   * Specified in the format `projects/*/locations/*`.
+   * 
+ * + * string parent = 5; + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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 (cluster_ != null) { + 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 (cluster_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + if (clusterBuilder_ == null) { + cluster_ = null; + } else { + cluster_ = null; + clusterBuilder_ = null; + } + parent_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_CreateClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.CreateClusterRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.CreateClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.CreateClusterRequest build() { + com.google.container.v1beta1.CreateClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.CreateClusterRequest buildPartial() { + com.google.container.v1beta1.CreateClusterRequest result = + new com.google.container.v1beta1.CreateClusterRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + if (clusterBuilder_ == null) { + result.cluster_ = cluster_; + } else { + result.cluster_ = clusterBuilder_.build(); + } + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.CreateClusterRequest) { + return mergeFrom((com.google.container.v1beta1.CreateClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.CreateClusterRequest other) { + if (other == com.google.container.v1beta1.CreateClusterRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (other.hasCluster()) { + mergeCluster(other.getCluster()); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getClusterFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 42: + { + parent_ = input.readStringRequireUtf8(); + + 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 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=2361 + * @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=2361 + * @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=2361 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://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=2361 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://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=2361 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the parent
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2370 + * @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=2370 + * @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=2370 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the parent
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2370 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the parent
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2370 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.Cluster cluster_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.Cluster, + com.google.container.v1beta1.Cluster.Builder, + com.google.container.v1beta1.ClusterOrBuilder> + clusterBuilder_; + /** + * + * + *
+     * Required. A [cluster
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
+     * 
+ * + * + * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cluster field is set. + */ + public boolean hasCluster() { + return clusterBuilder_ != null || cluster_ != null; + } + /** + * + * + *
+     * Required. A [cluster
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
+     * 
+ * + * + * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cluster. + */ + public com.google.container.v1beta1.Cluster getCluster() { + if (clusterBuilder_ == null) { + return cluster_ == null + ? com.google.container.v1beta1.Cluster.getDefaultInstance() + : cluster_; + } else { + return clusterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. A [cluster
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
+     * 
+ * + * + * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCluster(com.google.container.v1beta1.Cluster value) { + if (clusterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cluster_ = value; + onChanged(); + } else { + clusterBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. A [cluster
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
+     * 
+ * + * + * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCluster(com.google.container.v1beta1.Cluster.Builder builderForValue) { + if (clusterBuilder_ == null) { + cluster_ = builderForValue.build(); + onChanged(); + } else { + clusterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. A [cluster
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
+     * 
+ * + * + * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCluster(com.google.container.v1beta1.Cluster value) { + if (clusterBuilder_ == null) { + if (cluster_ != null) { + cluster_ = + com.google.container.v1beta1.Cluster.newBuilder(cluster_) + .mergeFrom(value) + .buildPartial(); + } else { + cluster_ = value; + } + onChanged(); + } else { + clusterBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. A [cluster
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
+     * 
+ * + * + * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCluster() { + if (clusterBuilder_ == null) { + cluster_ = null; + onChanged(); + } else { + cluster_ = null; + clusterBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. A [cluster
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
+     * 
+ * + * + * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1beta1.Cluster.Builder getClusterBuilder() { + + onChanged(); + return getClusterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. A [cluster
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
+     * 
+ * + * + * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1beta1.ClusterOrBuilder getClusterOrBuilder() { + if (clusterBuilder_ != null) { + return clusterBuilder_.getMessageOrBuilder(); + } else { + return cluster_ == null + ? com.google.container.v1beta1.Cluster.getDefaultInstance() + : cluster_; + } + } + /** + * + * + *
+     * Required. A [cluster
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
+     * 
+ * + * + * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.Cluster, + com.google.container.v1beta1.Cluster.Builder, + com.google.container.v1beta1.ClusterOrBuilder> + getClusterFieldBuilder() { + if (clusterBuilder_ == null) { + clusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.Cluster, + com.google.container.v1beta1.Cluster.Builder, + com.google.container.v1beta1.ClusterOrBuilder>( + getCluster(), getParentForChildren(), isClean()); + cluster_ = null; + } + return clusterBuilder_; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * The parent (project and location) where the cluster will be created.
+     * Specified in the format `projects/*/locations/*`.
+     * 
+ * + * string parent = 5; + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The parent (project and location) where the cluster will be created.
+     * Specified in the format `projects/*/locations/*`.
+     * 
+ * + * string parent = 5; + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The parent (project and location) where the cluster will be created.
+     * Specified in the format `projects/*/locations/*`.
+     * 
+ * + * string parent = 5; + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The parent (project and location) where the cluster will be created.
+     * Specified in the format `projects/*/locations/*`.
+     * 
+ * + * string parent = 5; + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * The parent (project and location) where the cluster will be created.
+     * Specified in the format `projects/*/locations/*`.
+     * 
+ * + * string parent = 5; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.CreateClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.CreateClusterRequest) + private static final com.google.container.v1beta1.CreateClusterRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.CreateClusterRequest(); + } + + public static com.google.container.v1beta1.CreateClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..57b1bca91f4a --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequestOrBuilder.java @@ -0,0 +1,167 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface CreateClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.CreateClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://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=2361 + * @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=2361 + * @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=2370 + * @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=2370 + * @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 new file mode 100644 index 000000000000..f9d3ddb34d65 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequest.java @@ -0,0 +1,1573 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * CreateNodePoolRequest creates a node pool for a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.CreateNodePoolRequest} + */ +public final class CreateNodePoolRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.CreateNodePoolRequest) + CreateNodePoolRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateNodePoolRequest.newBuilder() to construct. + private CreateNodePoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateNodePoolRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateNodePoolRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_CreateNodePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_CreateNodePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.CreateNodePoolRequest.class, + com.google.container.v1beta1.CreateNodePoolRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://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=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; + } + } + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [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=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; + 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=3133 + * @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=3133 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * Required. Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3140 + * @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=3140 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_FIELD_NUMBER = 4; + private com.google.container.v1beta1.NodePool nodePool_; + /** + * + * + *
+   * Required. The node pool to create.
+   * 
+ * + * + * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the nodePool field is set. + */ + @java.lang.Override + public boolean hasNodePool() { + return nodePool_ != null; + } + /** + * + * + *
+   * Required. The node pool to create.
+   * 
+ * + * + * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The nodePool. + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool getNodePool() { + return nodePool_ == null + ? com.google.container.v1beta1.NodePool.getDefaultInstance() + : nodePool_; + } + /** + * + * + *
+   * Required. The node pool to create.
+   * 
+ * + * + * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.container.v1beta1.NodePoolOrBuilder getNodePoolOrBuilder() { + return getNodePool(); + } + + public static final int PARENT_FIELD_NUMBER = 6; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * The parent (project, location, cluster 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 (nodePool_ != null) { + 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 (nodePool_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + if (nodePoolBuilder_ == null) { + nodePool_ = null; + } else { + nodePool_ = null; + nodePoolBuilder_ = null; + } + parent_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_CreateNodePoolRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.CreateNodePoolRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.CreateNodePoolRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.CreateNodePoolRequest build() { + com.google.container.v1beta1.CreateNodePoolRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.CreateNodePoolRequest buildPartial() { + com.google.container.v1beta1.CreateNodePoolRequest result = + new com.google.container.v1beta1.CreateNodePoolRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + if (nodePoolBuilder_ == null) { + result.nodePool_ = nodePool_; + } else { + result.nodePool_ = nodePoolBuilder_.build(); + } + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.CreateNodePoolRequest) { + return mergeFrom((com.google.container.v1beta1.CreateNodePoolRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.CreateNodePoolRequest other) { + if (other == com.google.container.v1beta1.CreateNodePoolRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (other.hasNodePool()) { + mergeNodePool(other.getNodePool()); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + input.readMessage(getNodePoolFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 50: + { + parent_ = input.readStringRequireUtf8(); + + 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 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=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; + } + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [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=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; + } + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [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=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; + 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=3124 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://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=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; + 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=3133 + * @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=3133 + * @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=3133 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the parent
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3133 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the parent
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3133 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3140 + * @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=3140 + * @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=3140 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3140 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3140 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NodePool nodePool_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool, + com.google.container.v1beta1.NodePool.Builder, + com.google.container.v1beta1.NodePoolOrBuilder> + nodePoolBuilder_; + /** + * + * + *
+     * Required. The node pool to create.
+     * 
+ * + * + * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the nodePool field is set. + */ + public boolean hasNodePool() { + return nodePoolBuilder_ != null || nodePool_ != null; + } + /** + * + * + *
+     * Required. The node pool to create.
+     * 
+ * + * + * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The nodePool. + */ + public com.google.container.v1beta1.NodePool getNodePool() { + if (nodePoolBuilder_ == null) { + return nodePool_ == null + ? com.google.container.v1beta1.NodePool.getDefaultInstance() + : nodePool_; + } else { + return nodePoolBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The node pool to create.
+     * 
+ * + * + * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setNodePool(com.google.container.v1beta1.NodePool value) { + if (nodePoolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodePool_ = value; + onChanged(); + } else { + nodePoolBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The node pool to create.
+     * 
+ * + * + * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setNodePool(com.google.container.v1beta1.NodePool.Builder builderForValue) { + if (nodePoolBuilder_ == null) { + nodePool_ = builderForValue.build(); + onChanged(); + } else { + nodePoolBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The node pool to create.
+     * 
+ * + * + * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeNodePool(com.google.container.v1beta1.NodePool value) { + if (nodePoolBuilder_ == null) { + if (nodePool_ != null) { + nodePool_ = + com.google.container.v1beta1.NodePool.newBuilder(nodePool_) + .mergeFrom(value) + .buildPartial(); + } else { + nodePool_ = value; + } + onChanged(); + } else { + nodePoolBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The node pool to create.
+     * 
+ * + * + * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearNodePool() { + if (nodePoolBuilder_ == null) { + nodePool_ = null; + onChanged(); + } else { + nodePool_ = null; + nodePoolBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The node pool to create.
+     * 
+ * + * + * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1beta1.NodePool.Builder getNodePoolBuilder() { + + onChanged(); + return getNodePoolFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The node pool to create.
+     * 
+ * + * + * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1beta1.NodePoolOrBuilder getNodePoolOrBuilder() { + if (nodePoolBuilder_ != null) { + return nodePoolBuilder_.getMessageOrBuilder(); + } else { + return nodePool_ == null + ? com.google.container.v1beta1.NodePool.getDefaultInstance() + : nodePool_; + } + } + /** + * + * + *
+     * Required. The node pool to create.
+     * 
+ * + * + * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool, + com.google.container.v1beta1.NodePool.Builder, + com.google.container.v1beta1.NodePoolOrBuilder> + getNodePoolFieldBuilder() { + if (nodePoolBuilder_ == null) { + nodePoolBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool, + com.google.container.v1beta1.NodePool.Builder, + com.google.container.v1beta1.NodePoolOrBuilder>( + getNodePool(), getParentForChildren(), isClean()); + nodePool_ = null; + } + return nodePoolBuilder_; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * The parent (project, location, cluster 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..1ec270abfc9d --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequestOrBuilder.java @@ -0,0 +1,204 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface CreateNodePoolRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.CreateNodePoolRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://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=3124 + * @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=3124 + * @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=3133 + * @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=3133 + * @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=3140 + * @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=3140 + * @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 new file mode 100644 index 000000000000..96e3a32bb519 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DNSConfig.java @@ -0,0 +1,1229 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value
+     * 
+ * + * PROVIDER_UNSPECIFIED = 0; + */ + public static final int PROVIDER_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Use GKE default DNS provider(kube-dns) for DNS resolution.
+     * 
+ * + * PLATFORM_DEFAULT = 1; + */ + public static final int PLATFORM_DEFAULT_VALUE = 1; + /** + * + * + *
+     * Use CloudDNS for DNS resolution.
+     * 
+ * + * CLOUD_DNS = 2; + */ + public static final int CLOUD_DNS_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Provider valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Provider forNumber(int value) { + switch (value) { + case 0: + return PROVIDER_UNSPECIFIED; + case 1: + return PLATFORM_DEFAULT; + case 2: + return CLOUD_DNS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Provider findValueByNumber(int number) { + return Provider.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.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_; + /** + * + * + *
+   * 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.DNSConfig.Provider result = + com.google.container.v1beta1.DNSConfig.Provider.valueOf(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_; + /** + * + * + *
+   * 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.DNSConfig.DNSScope result = + com.google.container.v1beta1.DNSConfig.DNSScope.valueOf(clusterDnsScope_); + return result == null ? com.google.container.v1beta1.DNSConfig.DNSScope.UNRECOGNIZED : result; + } + + public static final int CLUSTER_DNS_DOMAIN_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterDnsDomain_; + /** + * + * + *
+   * cluster_dns_domain is the suffix used for all cluster service records.
+   * 
+ * + * string cluster_dns_domain = 3; + * + * @return The clusterDnsDomain. + */ + @java.lang.Override + public java.lang.String getClusterDnsDomain() { + java.lang.Object ref = clusterDnsDomain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterDnsDomain_ = s; + return s; + } + } + /** + * + * + *
+   * cluster_dns_domain is the suffix used for all cluster service records.
+   * 
+ * + * string cluster_dns_domain = 3; + * + * @return The bytes for clusterDnsDomain. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterDnsDomainBytes() { + java.lang.Object ref = clusterDnsDomain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterDnsDomain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (clusterDns_ + != com.google.container.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(); + 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); + result.clusterDns_ = clusterDns_; + result.clusterDnsScope_ = clusterDnsScope_; + result.clusterDnsDomain_ = clusterDnsDomain_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 8 + case 16: + { + clusterDnsScope_ = input.readEnum(); + + break; + } // case 16 + case 26: + { + clusterDnsDomain_ = input.readStringRequireUtf8(); + + 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 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; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.DNSConfig.Provider result = + com.google.container.v1beta1.DNSConfig.Provider.valueOf(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(); + } + + 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() { + + 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; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.DNSConfig.DNSScope result = + com.google.container.v1beta1.DNSConfig.DNSScope.valueOf(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(); + } + + 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() { + + clusterDnsScope_ = 0; + onChanged(); + return this; + } + + private java.lang.Object clusterDnsDomain_ = ""; + /** + * + * + *
+     * cluster_dns_domain is the suffix used for all cluster service records.
+     * 
+ * + * string cluster_dns_domain = 3; + * + * @return The clusterDnsDomain. + */ + public java.lang.String getClusterDnsDomain() { + java.lang.Object ref = clusterDnsDomain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterDnsDomain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * cluster_dns_domain is the suffix used for all cluster service records.
+     * 
+ * + * string cluster_dns_domain = 3; + * + * @return The bytes for clusterDnsDomain. + */ + public com.google.protobuf.ByteString getClusterDnsDomainBytes() { + java.lang.Object ref = clusterDnsDomain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterDnsDomain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * cluster_dns_domain is the suffix used for all cluster service records.
+     * 
+ * + * string cluster_dns_domain = 3; + * + * @param value The clusterDnsDomain to set. + * @return This builder for chaining. + */ + public Builder setClusterDnsDomain(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterDnsDomain_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * cluster_dns_domain is the suffix used for all cluster service records.
+     * 
+ * + * string cluster_dns_domain = 3; + * + * @return This builder for chaining. + */ + public Builder clearClusterDnsDomain() { + + clusterDnsDomain_ = getDefaultInstance().getClusterDnsDomain(); + onChanged(); + return this; + } + /** + * + * + *
+     * cluster_dns_domain is the suffix used for all cluster service records.
+     * 
+ * + * string cluster_dns_domain = 3; + * + * @param value The bytes for clusterDnsDomain to set. + * @return This builder for chaining. + */ + public Builder setClusterDnsDomainBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterDnsDomain_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..6c416db2f05f --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DNSConfigOrBuilder.java @@ -0,0 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +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 new file mode 100644 index 000000000000..883cf835beb2 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindow.java @@ -0,0 +1,807 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Time window specified for daily maintenance operations.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.DailyMaintenanceWindow} + */ +public final class DailyMaintenanceWindow extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.DailyMaintenanceWindow) + DailyMaintenanceWindowOrBuilder { + private static final long serialVersionUID = 0L; + // Use DailyMaintenanceWindow.newBuilder() to construct. + private DailyMaintenanceWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DailyMaintenanceWindow() { + startTime_ = ""; + duration_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DailyMaintenanceWindow(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DailyMaintenanceWindow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DailyMaintenanceWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.DailyMaintenanceWindow.class, + com.google.container.v1beta1.DailyMaintenanceWindow.Builder.class); + } + + public static final int START_TIME_FIELD_NUMBER = 2; + private volatile java.lang.Object startTime_; + /** + * + * + *
+   * Time within the maintenance window to start the maintenance operations.
+   * It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
+   * 
+ * + * string start_time = 2; + * + * @return The startTime. + */ + @java.lang.Override + public java.lang.String getStartTime() { + java.lang.Object ref = startTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + startTime_ = s; + return s; + } + } + /** + * + * + *
+   * Time within the maintenance window to start the maintenance operations.
+   * It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
+   * 
+ * + * string start_time = 2; + * + * @return The bytes for startTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStartTimeBytes() { + java.lang.Object ref = startTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + startTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DURATION_FIELD_NUMBER = 3; + private volatile java.lang.Object duration_; + /** + * + * + *
+   * [Output only] Duration of the time window, automatically chosen to be
+   * smallest possible in the given scenario.
+   * 
+ * + * string duration = 3; + * + * @return The duration. + */ + @java.lang.Override + public java.lang.String getDuration() { + java.lang.Object ref = duration_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + duration_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] Duration of the time window, automatically chosen to be
+   * smallest possible in the given scenario.
+   * 
+ * + * string duration = 3; + * + * @return The bytes for duration. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDurationBytes() { + java.lang.Object ref = duration_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + duration_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + startTime_ = ""; + + duration_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DailyMaintenanceWindow_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.DailyMaintenanceWindow getDefaultInstanceForType() { + return com.google.container.v1beta1.DailyMaintenanceWindow.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.DailyMaintenanceWindow build() { + com.google.container.v1beta1.DailyMaintenanceWindow result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.DailyMaintenanceWindow buildPartial() { + com.google.container.v1beta1.DailyMaintenanceWindow result = + new com.google.container.v1beta1.DailyMaintenanceWindow(this); + result.startTime_ = startTime_; + result.duration_ = duration_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.DailyMaintenanceWindow) { + return mergeFrom((com.google.container.v1beta1.DailyMaintenanceWindow) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.DailyMaintenanceWindow other) { + if (other == com.google.container.v1beta1.DailyMaintenanceWindow.getDefaultInstance()) + return this; + if (!other.getStartTime().isEmpty()) { + startTime_ = other.startTime_; + onChanged(); + } + if (!other.getDuration().isEmpty()) { + duration_ = other.duration_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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(); + + break; + } // case 18 + case 26: + { + duration_ = input.readStringRequireUtf8(); + + 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 java.lang.Object startTime_ = ""; + /** + * + * + *
+     * Time within the maintenance window to start the maintenance operations.
+     * It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
+     * 
+ * + * string start_time = 2; + * + * @return The startTime. + */ + public java.lang.String getStartTime() { + java.lang.Object ref = startTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + startTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Time within the maintenance window to start the maintenance operations.
+     * It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
+     * 
+ * + * string start_time = 2; + * + * @return The bytes for startTime. + */ + public com.google.protobuf.ByteString getStartTimeBytes() { + java.lang.Object ref = startTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + startTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Time within the maintenance window to start the maintenance operations.
+     * It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
+     * 
+ * + * string start_time = 2; + * + * @param value The startTime to set. + * @return This builder for chaining. + */ + public Builder setStartTime(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + startTime_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Time within the maintenance window to start the maintenance operations.
+     * It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
+     * 
+ * + * string start_time = 2; + * + * @return This builder for chaining. + */ + public Builder clearStartTime() { + + startTime_ = getDefaultInstance().getStartTime(); + onChanged(); + return this; + } + /** + * + * + *
+     * Time within the maintenance window to start the maintenance operations.
+     * It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
+     * 
+ * + * string start_time = 2; + * + * @param value The bytes for startTime to set. + * @return This builder for chaining. + */ + public Builder setStartTimeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + startTime_ = value; + onChanged(); + return this; + } + + private java.lang.Object duration_ = ""; + /** + * + * + *
+     * [Output only] Duration of the time window, automatically chosen to be
+     * smallest possible in the given scenario.
+     * 
+ * + * string duration = 3; + * + * @return The duration. + */ + public java.lang.String getDuration() { + java.lang.Object ref = duration_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + duration_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] Duration of the time window, automatically chosen to be
+     * smallest possible in the given scenario.
+     * 
+ * + * string duration = 3; + * + * @return The bytes for duration. + */ + public com.google.protobuf.ByteString getDurationBytes() { + java.lang.Object ref = duration_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + duration_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] Duration of the time window, automatically chosen to be
+     * smallest possible in the given scenario.
+     * 
+ * + * string duration = 3; + * + * @param value The duration to set. + * @return This builder for chaining. + */ + public Builder setDuration(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + duration_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Duration of the time window, automatically chosen to be
+     * smallest possible in the given scenario.
+     * 
+ * + * string duration = 3; + * + * @return This builder for chaining. + */ + public Builder clearDuration() { + + duration_ = getDefaultInstance().getDuration(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Duration of the time window, automatically chosen to be
+     * smallest possible in the given scenario.
+     * 
+ * + * string duration = 3; + * + * @param value The bytes for duration to set. + * @return This builder for chaining. + */ + public Builder setDurationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + duration_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.DailyMaintenanceWindow) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.DailyMaintenanceWindow) + private static final com.google.container.v1beta1.DailyMaintenanceWindow DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.DailyMaintenanceWindow(); + } + + public static com.google.container.v1beta1.DailyMaintenanceWindow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DailyMaintenanceWindow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..68dea28b04a5 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindowOrBuilder.java @@ -0,0 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface DailyMaintenanceWindowOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.DailyMaintenanceWindow) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Time within the maintenance window to start the maintenance operations.
+   * It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
+   * 
+ * + * string start_time = 2; + * + * @return The startTime. + */ + java.lang.String getStartTime(); + /** + * + * + *
+   * Time within the maintenance window to start the maintenance operations.
+   * It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
+   * 
+ * + * string start_time = 2; + * + * @return The bytes for startTime. + */ + com.google.protobuf.ByteString getStartTimeBytes(); + + /** + * + * + *
+   * [Output only] Duration of the time window, automatically chosen to be
+   * smallest possible in the given scenario.
+   * 
+ * + * string duration = 3; + * + * @return The duration. + */ + java.lang.String getDuration(); + /** + * + * + *
+   * [Output only] Duration of the time window, automatically chosen to be
+   * smallest possible in the given scenario.
+   * 
+ * + * string duration = 3; + * + * @return The bytes for duration. + */ + com.google.protobuf.ByteString getDurationBytes(); +} diff --git a/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 new file mode 100644 index 000000000000..22ce462d4d7a --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DatabaseEncryption.java @@ -0,0 +1,934 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration of etcd encryption.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.DatabaseEncryption} + */ +public final class DatabaseEncryption extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.DatabaseEncryption) + DatabaseEncryptionOrBuilder { + private static final long serialVersionUID = 0L; + // Use DatabaseEncryption.newBuilder() to construct. + private DatabaseEncryption(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DatabaseEncryption() { + state_ = 0; + keyName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DatabaseEncryption(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DatabaseEncryption_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DatabaseEncryption_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.DatabaseEncryption.class, + com.google.container.v1beta1.DatabaseEncryption.Builder.class); + } + + /** + * + * + *
+   * State of etcd encryption.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.DatabaseEncryption.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Should never be set
+     * 
+ * + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + * + * + *
+     * Secrets in etcd are encrypted.
+     * 
+ * + * ENCRYPTED = 1; + */ + ENCRYPTED(1), + /** + * + * + *
+     * Secrets in etcd are stored in plain text (at etcd level) - this is
+     * unrelated to Compute Engine level full disk encryption.
+     * 
+ * + * DECRYPTED = 2; + */ + DECRYPTED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Should never be set
+     * 
+ * + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + * + * + *
+     * Secrets in etcd are encrypted.
+     * 
+ * + * ENCRYPTED = 1; + */ + public static final int ENCRYPTED_VALUE = 1; + /** + * + * + *
+     * Secrets in etcd are stored in plain text (at etcd level) - this is
+     * unrelated to Compute Engine level full disk encryption.
+     * 
+ * + * DECRYPTED = 2; + */ + public static final int DECRYPTED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return UNKNOWN; + case 1: + return ENCRYPTED; + case 2: + return DECRYPTED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1beta1.DatabaseEncryption.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.DatabaseEncryption.State) + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_; + /** + * + * + *
+   * Denotes the state of etcd encryption.
+   * 
+ * + * .google.container.v1beta1.DatabaseEncryption.State state = 2; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Denotes the state of etcd encryption.
+   * 
+ * + * .google.container.v1beta1.DatabaseEncryption.State state = 2; + * + * @return The state. + */ + @java.lang.Override + public com.google.container.v1beta1.DatabaseEncryption.State getState() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.DatabaseEncryption.State result = + com.google.container.v1beta1.DatabaseEncryption.State.valueOf(state_); + return result == null + ? com.google.container.v1beta1.DatabaseEncryption.State.UNRECOGNIZED + : result; + } + + public static final int KEY_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object keyName_; + /** + * + * + *
+   * Name of CloudKMS key to use for the encryption of secrets in etcd.
+   * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
+   * 
+ * + * string key_name = 1; + * + * @return The keyName. + */ + @java.lang.Override + public java.lang.String getKeyName() { + java.lang.Object ref = keyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + keyName_ = s; + return s; + } + } + /** + * + * + *
+   * Name of CloudKMS key to use for the encryption of secrets in etcd.
+   * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
+   * 
+ * + * string key_name = 1; + * + * @return The bytes for keyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyNameBytes() { + java.lang.Object ref = keyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + keyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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 (state_ != other.state_) return false; + if (!getKeyName().equals(other.getKeyName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + KEY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getKeyName().hashCode(); + hash = (29 * hash) + 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(); + state_ = 0; + + keyName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DatabaseEncryption_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.DatabaseEncryption getDefaultInstanceForType() { + return com.google.container.v1beta1.DatabaseEncryption.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.DatabaseEncryption build() { + com.google.container.v1beta1.DatabaseEncryption result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.DatabaseEncryption buildPartial() { + com.google.container.v1beta1.DatabaseEncryption result = + new com.google.container.v1beta1.DatabaseEncryption(this); + result.state_ = state_; + result.keyName_ = keyName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.DatabaseEncryption) { + return mergeFrom((com.google.container.v1beta1.DatabaseEncryption) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.DatabaseEncryption other) { + if (other == com.google.container.v1beta1.DatabaseEncryption.getDefaultInstance()) + return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getKeyName().isEmpty()) { + keyName_ = other.keyName_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 16: + { + state_ = input.readEnum(); + + 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 state_ = 0; + /** + * + * + *
+     * Denotes the state of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption.State state = 2; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Denotes the state of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption.State state = 2; + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Denotes the state of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption.State state = 2; + * + * @return The state. + */ + @java.lang.Override + public com.google.container.v1beta1.DatabaseEncryption.State getState() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.DatabaseEncryption.State result = + com.google.container.v1beta1.DatabaseEncryption.State.valueOf(state_); + return result == null + ? com.google.container.v1beta1.DatabaseEncryption.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Denotes the state of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption.State state = 2; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.container.v1beta1.DatabaseEncryption.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Denotes the state of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption.State state = 2; + * + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object keyName_ = ""; + /** + * + * + *
+     * Name of CloudKMS key to use for the encryption of secrets in etcd.
+     * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
+     * 
+ * + * string key_name = 1; + * + * @return The keyName. + */ + public java.lang.String getKeyName() { + java.lang.Object ref = keyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + keyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Name of CloudKMS key to use for the encryption of secrets in etcd.
+     * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
+     * 
+ * + * string key_name = 1; + * + * @return The bytes for keyName. + */ + public com.google.protobuf.ByteString getKeyNameBytes() { + java.lang.Object ref = keyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + keyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Name of CloudKMS key to use for the encryption of secrets in etcd.
+     * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
+     * 
+ * + * string key_name = 1; + * + * @param value The keyName to set. + * @return This builder for chaining. + */ + public Builder setKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + keyName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Name of CloudKMS key to use for the encryption of secrets in etcd.
+     * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
+     * 
+ * + * string key_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearKeyName() { + + keyName_ = getDefaultInstance().getKeyName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Name of CloudKMS key to use for the encryption of secrets in etcd.
+     * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
+     * 
+ * + * string key_name = 1; + * + * @param value The bytes for keyName to set. + * @return This builder for chaining. + */ + public Builder setKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + keyName_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.DatabaseEncryption) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.DatabaseEncryption) + private static final com.google.container.v1beta1.DatabaseEncryption DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.DatabaseEncryption(); + } + + public static com.google.container.v1beta1.DatabaseEncryption getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DatabaseEncryption parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..431c6fef7362 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DatabaseEncryptionOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface DatabaseEncryptionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.DatabaseEncryption) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Denotes the state of etcd encryption.
+   * 
+ * + * .google.container.v1beta1.DatabaseEncryption.State state = 2; + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Denotes the state of etcd encryption.
+   * 
+ * + * .google.container.v1beta1.DatabaseEncryption.State state = 2; + * + * @return The state. + */ + com.google.container.v1beta1.DatabaseEncryption.State getState(); + + /** + * + * + *
+   * Name of CloudKMS key to use for the encryption of secrets in etcd.
+   * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
+   * 
+ * + * string key_name = 1; + * + * @return The keyName. + */ + java.lang.String getKeyName(); + /** + * + * + *
+   * Name of CloudKMS key to use for the encryption of secrets in etcd.
+   * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
+   * 
+ * + * string key_name = 1; + * + * @return The bytes for keyName. + */ + com.google.protobuf.ByteString getKeyNameBytes(); +} diff --git a/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 new file mode 100644 index 000000000000..1ed4edf140ce --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DatapathProvider.java @@ -0,0 +1,183 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * The datapath provider selects the implementation of the Kubernetes networking
+ * model for service resolution and network policy enforcement.
+ * 
+ * + * Protobuf enum {@code google.container.v1beta1.DatapathProvider} + */ +public enum DatapathProvider implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value.
+   * 
+ * + * DATAPATH_PROVIDER_UNSPECIFIED = 0; + */ + DATAPATH_PROVIDER_UNSPECIFIED(0), + /** + * + * + *
+   * Use the IPTables implementation based on kube-proxy.
+   * 
+ * + * LEGACY_DATAPATH = 1; + */ + LEGACY_DATAPATH(1), + /** + * + * + *
+   * Use the eBPF based GKE Dataplane V2 with additional features. See the [GKE
+   * Dataplane V2
+   * documentation](https://cloud.google.com/kubernetes-engine/docs/how-to/dataplane-v2)
+   * for more.
+   * 
+ * + * ADVANCED_DATAPATH = 2; + */ + ADVANCED_DATAPATH(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default value.
+   * 
+ * + * DATAPATH_PROVIDER_UNSPECIFIED = 0; + */ + public static final int DATAPATH_PROVIDER_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Use the IPTables implementation based on kube-proxy.
+   * 
+ * + * LEGACY_DATAPATH = 1; + */ + public static final int LEGACY_DATAPATH_VALUE = 1; + /** + * + * + *
+   * Use the eBPF based GKE Dataplane V2 with additional features. See the [GKE
+   * Dataplane V2
+   * documentation](https://cloud.google.com/kubernetes-engine/docs/how-to/dataplane-v2)
+   * for more.
+   * 
+ * + * ADVANCED_DATAPATH = 2; + */ + public static final int ADVANCED_DATAPATH_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DatapathProvider valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DatapathProvider forNumber(int value) { + switch (value) { + case 0: + return DATAPATH_PROVIDER_UNSPECIFIED; + case 1: + return LEGACY_DATAPATH; + case 2: + return ADVANCED_DATAPATH; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DatapathProvider findValueByNumber(int number) { + return DatapathProvider.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.getDescriptor().getEnumTypes().get(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 new file mode 100644 index 000000000000..f60bbc7419a5 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DefaultSnatStatus.java @@ -0,0 +1,528 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * DefaultSnatStatus contains the desired state of whether default sNAT should
+ * be disabled on the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.DefaultSnatStatus} + */ +public final class DefaultSnatStatus extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.DefaultSnatStatus) + DefaultSnatStatusOrBuilder { + private static final long serialVersionUID = 0L; + // Use DefaultSnatStatus.newBuilder() to construct. + private DefaultSnatStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DefaultSnatStatus() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DefaultSnatStatus(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DefaultSnatStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DefaultSnatStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.DefaultSnatStatus.class, + com.google.container.v1beta1.DefaultSnatStatus.Builder.class); + } + + public static final int DISABLED_FIELD_NUMBER = 1; + private boolean disabled_; + /** + * + * + *
+   * Disables cluster default sNAT rules.
+   * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (disabled_ != false) { + output.writeBool(1, disabled_); + } + 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(); + disabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DefaultSnatStatus_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.DefaultSnatStatus getDefaultInstanceForType() { + return com.google.container.v1beta1.DefaultSnatStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.DefaultSnatStatus build() { + com.google.container.v1beta1.DefaultSnatStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.DefaultSnatStatus buildPartial() { + com.google.container.v1beta1.DefaultSnatStatus result = + new com.google.container.v1beta1.DefaultSnatStatus(this); + result.disabled_ = disabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.DefaultSnatStatus) { + return mergeFrom((com.google.container.v1beta1.DefaultSnatStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.DefaultSnatStatus other) { + if (other == com.google.container.v1beta1.DefaultSnatStatus.getDefaultInstance()) return this; + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 boolean disabled_; + /** + * + * + *
+     * Disables cluster default sNAT rules.
+     * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + /** + * + * + *
+     * Disables cluster default sNAT rules.
+     * 
+ * + * bool disabled = 1; + * + * @param value The disabled to set. + * @return This builder for chaining. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Disables cluster default sNAT rules.
+     * 
+ * + * bool disabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisabled() { + + disabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.DefaultSnatStatus) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.DefaultSnatStatus) + private static final com.google.container.v1beta1.DefaultSnatStatus DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.DefaultSnatStatus(); + } + + public static com.google.container.v1beta1.DefaultSnatStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DefaultSnatStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..c2d2542c55bf --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DefaultSnatStatusOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface DefaultSnatStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.DefaultSnatStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Disables cluster default sNAT rules.
+   * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + boolean getDisabled(); +} diff --git a/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 new file mode 100644 index 000000000000..adce79aec529 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequest.java @@ -0,0 +1,1275 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * DeleteClusterRequest deletes a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.DeleteClusterRequest} + */ +public final class DeleteClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.DeleteClusterRequest) + DeleteClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteClusterRequest.newBuilder() to construct. + private DeleteClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteClusterRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteClusterRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DeleteClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DeleteClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.DeleteClusterRequest.class, + com.google.container.v1beta1.DeleteClusterRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=2866 + * @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=2866 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Required. Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2875 + * @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=2875 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * Required. Deprecated. The name of the cluster to delete.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See + * google/container/v1beta1/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; + } + } + /** + * + * + *
+   * 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=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 NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to delete.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 4; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to delete.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 4; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DeleteClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.DeleteClusterRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.DeleteClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.DeleteClusterRequest build() { + com.google.container.v1beta1.DeleteClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.DeleteClusterRequest buildPartial() { + com.google.container.v1beta1.DeleteClusterRequest result = + new com.google.container.v1beta1.DeleteClusterRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.DeleteClusterRequest) { + return mergeFrom((com.google.container.v1beta1.DeleteClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.DeleteClusterRequest other) { + if (other == com.google.container.v1beta1.DeleteClusterRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + name_ = input.readStringRequireUtf8(); + + 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 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=2866 + * @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=2866 + * @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=2866 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=2866 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=2866 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2875 + * @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=2875 + * @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=2875 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2875 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2875 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to delete.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See + * google/container/v1beta1/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; + } + } + /** + * + * + *
+     * 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=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; + } + } + /** + * + * + *
+     * 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=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; + 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=2882 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to delete.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See + * google/container/v1beta1/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; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to delete.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 4; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to delete.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 4; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to delete.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 4; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to delete.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 4; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to delete.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 4; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.DeleteClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.DeleteClusterRequest) + private static final com.google.container.v1beta1.DeleteClusterRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.DeleteClusterRequest(); + } + + public static com.google.container.v1beta1.DeleteClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..6918902a2443 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequestOrBuilder.java @@ -0,0 +1,161 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface DeleteClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.DeleteClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=2866 + * @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=2866 + * @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=2875 + * @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=2875 + * @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=2882 + * @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=2882 + * @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 new file mode 100644 index 000000000000..20b3157a9862 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequest.java @@ -0,0 +1,1495 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * DeleteNodePoolRequest deletes a node pool for a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.DeleteNodePoolRequest} + */ +public final class DeleteNodePoolRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.DeleteNodePoolRequest) + DeleteNodePoolRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteNodePoolRequest.newBuilder() to construct. + private DeleteNodePoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteNodePoolRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteNodePoolRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DeleteNodePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DeleteNodePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.DeleteNodePoolRequest.class, + com.google.container.v1beta1.DeleteNodePoolRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=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.DeleteNodePoolRequest.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; + 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=3168 + * @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=3168 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * Required. Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3175 + * @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=3175 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object nodePoolId_; + /** + * + * + *
+   * Required. Deprecated. The name of the node pool to delete.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3182 + * @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=3182 + * @return The bytes for nodePoolId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * delete. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 6; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * delete. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + nodePoolId_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DeleteNodePoolRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.DeleteNodePoolRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.DeleteNodePoolRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.DeleteNodePoolRequest build() { + com.google.container.v1beta1.DeleteNodePoolRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.DeleteNodePoolRequest buildPartial() { + com.google.container.v1beta1.DeleteNodePoolRequest result = + new com.google.container.v1beta1.DeleteNodePoolRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.nodePoolId_ = nodePoolId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.DeleteNodePoolRequest) { + return mergeFrom((com.google.container.v1beta1.DeleteNodePoolRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.DeleteNodePoolRequest other) { + if (other == com.google.container.v1beta1.DeleteNodePoolRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + nodePoolId_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 50: + { + name_ = input.readStringRequireUtf8(); + + 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 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=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.DeleteNodePoolRequest.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.DeleteNodePoolRequest.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; + 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=3159 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=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; + 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=3168 + * @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=3168 + * @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=3168 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3168 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3168 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3175 + * @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=3175 + * @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=3175 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3175 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3175 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the node pool to delete.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3182 + * @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=3182 + * @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=3182 + * @param value The nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodePoolId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the node pool to delete.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3182 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearNodePoolId() { + + nodePoolId_ = getDefaultInstance().getNodePoolId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the node pool to delete.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3182 + * @param value The bytes for nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodePoolId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * delete. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * delete. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * delete. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * delete. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * delete. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.DeleteNodePoolRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.DeleteNodePoolRequest) + private static final com.google.container.v1beta1.DeleteNodePoolRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.DeleteNodePoolRequest(); + } + + public static com.google.container.v1beta1.DeleteNodePoolRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteNodePoolRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..137fb110fae9 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequestOrBuilder.java @@ -0,0 +1,198 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface DeleteNodePoolRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.DeleteNodePoolRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=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.DeleteNodePoolRequest.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.DeleteNodePoolRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3168 + * @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=3168 + * @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=3175 + * @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=3175 + * @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=3182 + * @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=3182 + * @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 new file mode 100644 index 000000000000..cdf975efe781 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DnsCacheConfig.java @@ -0,0 +1,526 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration for NodeLocal DNSCache
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.DnsCacheConfig} + */ +public final class DnsCacheConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.DnsCacheConfig) + DnsCacheConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use DnsCacheConfig.newBuilder() to construct. + private DnsCacheConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DnsCacheConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DnsCacheConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DnsCacheConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DnsCacheConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.DnsCacheConfig.class, + com.google.container.v1beta1.DnsCacheConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether NodeLocal DNSCache is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + 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(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DnsCacheConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.DnsCacheConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.DnsCacheConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.DnsCacheConfig build() { + com.google.container.v1beta1.DnsCacheConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.DnsCacheConfig buildPartial() { + com.google.container.v1beta1.DnsCacheConfig result = + new com.google.container.v1beta1.DnsCacheConfig(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.DnsCacheConfig) { + return mergeFrom((com.google.container.v1beta1.DnsCacheConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.DnsCacheConfig other) { + if (other == com.google.container.v1beta1.DnsCacheConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 boolean enabled_; + /** + * + * + *
+     * Whether NodeLocal DNSCache is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether NodeLocal DNSCache is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether NodeLocal DNSCache is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.DnsCacheConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.DnsCacheConfig) + private static final com.google.container.v1beta1.DnsCacheConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.DnsCacheConfig(); + } + + public static com.google.container.v1beta1.DnsCacheConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DnsCacheConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..2d4b812ac240 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DnsCacheConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface DnsCacheConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.DnsCacheConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether NodeLocal DNSCache is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/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 new file mode 100644 index 000000000000..9166cf2abbf3 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EphemeralStorageConfig.java @@ -0,0 +1,537 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * EphemeralStorageConfig contains configuration for the ephemeral storage
+ * filesystem.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.EphemeralStorageConfig} + */ +public final class EphemeralStorageConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.EphemeralStorageConfig) + EphemeralStorageConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use EphemeralStorageConfig.newBuilder() to construct. + private EphemeralStorageConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EphemeralStorageConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EphemeralStorageConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_EphemeralStorageConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_EphemeralStorageConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.EphemeralStorageConfig.class, + com.google.container.v1beta1.EphemeralStorageConfig.Builder.class); + } + + public static final int LOCAL_SSD_COUNT_FIELD_NUMBER = 1; + private int localSsdCount_; + /** + * + * + *
+   * Number of local SSDs to use to back ephemeral storage. Uses NVMe
+   * interfaces. Each local SSD is 375 GB in size.
+   * If zero, it means to disable using local SSDs as ephemeral storage.
+   * 
+ * + * int32 local_ssd_count = 1; + * + * @return The localSsdCount. + */ + @java.lang.Override + public int getLocalSsdCount() { + return localSsdCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (localSsdCount_ != 0) { + output.writeInt32(1, localSsdCount_); + } + 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(); + localSsdCount_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_EphemeralStorageConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.EphemeralStorageConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.EphemeralStorageConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.EphemeralStorageConfig build() { + com.google.container.v1beta1.EphemeralStorageConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.EphemeralStorageConfig buildPartial() { + com.google.container.v1beta1.EphemeralStorageConfig result = + new com.google.container.v1beta1.EphemeralStorageConfig(this); + result.localSsdCount_ = localSsdCount_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.EphemeralStorageConfig) { + return mergeFrom((com.google.container.v1beta1.EphemeralStorageConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.EphemeralStorageConfig other) { + if (other == com.google.container.v1beta1.EphemeralStorageConfig.getDefaultInstance()) + return this; + if (other.getLocalSsdCount() != 0) { + setLocalSsdCount(other.getLocalSsdCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 localSsdCount_; + /** + * + * + *
+     * Number of local SSDs to use to back ephemeral storage. Uses NVMe
+     * interfaces. Each local SSD is 375 GB in size.
+     * If zero, it means to disable using local SSDs as ephemeral storage.
+     * 
+ * + * int32 local_ssd_count = 1; + * + * @return The localSsdCount. + */ + @java.lang.Override + public int getLocalSsdCount() { + return localSsdCount_; + } + /** + * + * + *
+     * Number of local SSDs to use to back ephemeral storage. Uses NVMe
+     * interfaces. Each local SSD is 375 GB in size.
+     * If zero, it means to disable using local SSDs as ephemeral storage.
+     * 
+ * + * int32 local_ssd_count = 1; + * + * @param value The localSsdCount to set. + * @return This builder for chaining. + */ + public Builder setLocalSsdCount(int value) { + + localSsdCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Number of local SSDs to use to back ephemeral storage. Uses NVMe
+     * interfaces. Each local SSD is 375 GB in size.
+     * If zero, it means to disable using local SSDs as ephemeral storage.
+     * 
+ * + * int32 local_ssd_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearLocalSsdCount() { + + localSsdCount_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.EphemeralStorageConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.EphemeralStorageConfig) + private static final com.google.container.v1beta1.EphemeralStorageConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.EphemeralStorageConfig(); + } + + public static com.google.container.v1beta1.EphemeralStorageConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EphemeralStorageConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..6a4da1420e23 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EphemeralStorageConfigOrBuilder.java @@ -0,0 +1,40 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface EphemeralStorageConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.EphemeralStorageConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Number of local SSDs to use to back ephemeral storage. Uses NVMe
+   * interfaces. Each local SSD is 375 GB in size.
+   * If zero, it means to disable using local SSDs as ephemeral storage.
+   * 
+ * + * int32 local_ssd_count = 1; + * + * @return The localSsdCount. + */ + int getLocalSsdCount(); +} diff --git a/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 new file mode 100644 index 000000000000..3a17e8e95f69 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GPUSharingConfig.java @@ -0,0 +1,886 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * 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_; + /** + * + * + *
+   * 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy result = + com.google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy.valueOf( + 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(); + maxSharedClientsPerGpu_ = 0L; + + gpuSharingStrategy_ = 0; + 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_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); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.maxSharedClientsPerGpu_ = maxSharedClientsPerGpu_; + if (((from_bitField0_ & 0x00000001) != 0)) { + to_bitField0_ |= 0x00000001; + } + result.gpuSharingStrategy_ = gpuSharingStrategy_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.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(); + + break; + } // case 8 + case 16: + { + gpuSharingStrategy_ = 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 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; + 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() { + + 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_ & 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; + * + * + * @param value The enum numeric value on the wire for gpuSharingStrategy to set. + * @return This builder for chaining. + */ + public Builder setGpuSharingStrategyValue(int value) { + bitField0_ |= 0x00000001; + gpuSharingStrategy_ = value; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy result = + com.google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy.valueOf( + 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_ |= 0x00000001; + 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_ & ~0x00000001); + 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 new file mode 100644 index 000000000000..7db9d08ad7d8 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GPUSharingConfigOrBuilder.java @@ -0,0 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface 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 new file mode 100644 index 000000000000..a04b17622f91 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GatewayAPIConfig.java @@ -0,0 +1,771 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.GatewayAPIConfig.Channel result = + com.google.container.v1beta1.GatewayAPIConfig.Channel.valueOf(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(); + 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); + result.channel_ = channel_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.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(); + + 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 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; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.GatewayAPIConfig.Channel result = + com.google.container.v1beta1.GatewayAPIConfig.Channel.valueOf(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(); + } + + 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() { + + 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 new file mode 100644 index 000000000000..489a5303643e --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GatewayAPIConfigOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface 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 new file mode 100644 index 000000000000..8437384bb2d9 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcePersistentDiskCsiDriverConfig.java @@ -0,0 +1,532 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration for the Compute Engine PD CSI driver.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.GcePersistentDiskCsiDriverConfig} + */ +public final class GcePersistentDiskCsiDriverConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.GcePersistentDiskCsiDriverConfig) + GcePersistentDiskCsiDriverConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use GcePersistentDiskCsiDriverConfig.newBuilder() to construct. + private GcePersistentDiskCsiDriverConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GcePersistentDiskCsiDriverConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GcePersistentDiskCsiDriverConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GcePersistentDiskCsiDriverConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GcePersistentDiskCsiDriverConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.class, + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether the Compute Engine PD CSI driver is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + 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(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GcePersistentDiskCsiDriverConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig + getDefaultInstanceForType() { + return com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig build() { + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig buildPartial() { + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig result = + new com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig) { + return mergeFrom((com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig other) { + if (other + == com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 boolean enabled_; + /** + * + * + *
+     * Whether the Compute Engine PD CSI driver is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether the Compute Engine PD CSI driver is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the Compute Engine PD CSI driver is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.GcePersistentDiskCsiDriverConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.GcePersistentDiskCsiDriverConfig) + private static final com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig(); + } + + public static com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcePersistentDiskCsiDriverConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..17dcc8620733 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcePersistentDiskCsiDriverConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface GcePersistentDiskCsiDriverConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GcePersistentDiskCsiDriverConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether the Compute Engine PD CSI driver is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/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 new file mode 100644 index 000000000000..050a7b06bcec --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcfsConfig.java @@ -0,0 +1,525 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * GcfsConfig contains configurations of Google Container File System.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.GcfsConfig} + */ +public final class GcfsConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.GcfsConfig) + GcfsConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use GcfsConfig.newBuilder() to construct. + private GcfsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GcfsConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GcfsConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GcfsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GcfsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GcfsConfig.class, + com.google.container.v1beta1.GcfsConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether to use GCFS.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + 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(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GcfsConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.GcfsConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.GcfsConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.GcfsConfig build() { + com.google.container.v1beta1.GcfsConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.GcfsConfig buildPartial() { + com.google.container.v1beta1.GcfsConfig result = + new com.google.container.v1beta1.GcfsConfig(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.GcfsConfig) { + return mergeFrom((com.google.container.v1beta1.GcfsConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.GcfsConfig other) { + if (other == com.google.container.v1beta1.GcfsConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 boolean enabled_; + /** + * + * + *
+     * Whether to use GCFS.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether to use GCFS.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether to use GCFS.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.GcfsConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.GcfsConfig) + private static final com.google.container.v1beta1.GcfsConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.GcfsConfig(); + } + + public static com.google.container.v1beta1.GcfsConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcfsConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..9e15cbe75ade --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcfsConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface GcfsConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GcfsConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether to use GCFS.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/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 new file mode 100644 index 000000000000..458e3f5817e5 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcpFilestoreCsiDriverConfig.java @@ -0,0 +1,528 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration for the GCP Filestore CSI driver.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.GcpFilestoreCsiDriverConfig} + */ +public final class GcpFilestoreCsiDriverConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.GcpFilestoreCsiDriverConfig) + GcpFilestoreCsiDriverConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use GcpFilestoreCsiDriverConfig.newBuilder() to construct. + private GcpFilestoreCsiDriverConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GcpFilestoreCsiDriverConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GcpFilestoreCsiDriverConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GcpFilestoreCsiDriverConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GcpFilestoreCsiDriverConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.class, + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether the GCP Filestore CSI driver is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + 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(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GcpFilestoreCsiDriverConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.GcpFilestoreCsiDriverConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.GcpFilestoreCsiDriverConfig build() { + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.GcpFilestoreCsiDriverConfig buildPartial() { + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig result = + new com.google.container.v1beta1.GcpFilestoreCsiDriverConfig(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.GcpFilestoreCsiDriverConfig) { + return mergeFrom((com.google.container.v1beta1.GcpFilestoreCsiDriverConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.GcpFilestoreCsiDriverConfig other) { + if (other == com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 boolean enabled_; + /** + * + * + *
+     * Whether the GCP Filestore CSI driver is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether the GCP Filestore CSI driver is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the GCP Filestore CSI driver is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.GcpFilestoreCsiDriverConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.GcpFilestoreCsiDriverConfig) + private static final com.google.container.v1beta1.GcpFilestoreCsiDriverConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.GcpFilestoreCsiDriverConfig(); + } + + public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcpFilestoreCsiDriverConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..b1b391d8f450 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcpFilestoreCsiDriverConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface GcpFilestoreCsiDriverConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GcpFilestoreCsiDriverConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether the GCP Filestore CSI driver is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/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 new file mode 100644 index 000000000000..63719647d320 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequest.java @@ -0,0 +1,1274 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * GetClusterRequest gets the settings of a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.GetClusterRequest} + */ +public final class GetClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.GetClusterRequest) + GetClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetClusterRequest.newBuilder() to construct. + private GetClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetClusterRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetClusterRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GetClusterRequest.class, + com.google.container.v1beta1.GetClusterRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=2389 + * @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=2389 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Required. Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2398 + * @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=2398 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * Required. Deprecated. The name of the cluster to retrieve.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2405 + * @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=2405 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to retrieve.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 5; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to retrieve.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 5; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.GetClusterRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.GetClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.GetClusterRequest build() { + com.google.container.v1beta1.GetClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.GetClusterRequest buildPartial() { + com.google.container.v1beta1.GetClusterRequest result = + new com.google.container.v1beta1.GetClusterRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.GetClusterRequest) { + return mergeFrom((com.google.container.v1beta1.GetClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.GetClusterRequest other) { + if (other == com.google.container.v1beta1.GetClusterRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 42: + { + name_ = input.readStringRequireUtf8(); + + 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 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=2389 + * @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=2389 + * @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=2389 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=2389 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=2389 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2398 + * @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=2398 + * @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=2398 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2398 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2398 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to retrieve.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2405 + * @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=2405 + * @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=2405 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to retrieve.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2405 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to retrieve.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2405 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.GetClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.GetClusterRequest) + private static final com.google.container.v1beta1.GetClusterRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.GetClusterRequest(); + } + + public static com.google.container.v1beta1.GetClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..099ab12d9bdf --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequestOrBuilder.java @@ -0,0 +1,161 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface GetClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GetClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=2389 + * @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=2389 + * @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=2398 + * @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=2398 + * @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=2405 + * @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=2405 + * @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 new file mode 100644 index 000000000000..a889184d4463 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysRequest.java @@ -0,0 +1,628 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * GetJSONWebKeysRequest gets the public component of the keys used by the
+ * cluster to sign token requests. This will be the jwks_uri for the discover
+ * document returned by getOpenIDConfig. See the OpenID Connect
+ * Discovery 1.0 specification for details.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.GetJSONWebKeysRequest} + */ +public final class GetJSONWebKeysRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.GetJSONWebKeysRequest) + GetJSONWebKeysRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetJSONWebKeysRequest.newBuilder() to construct. + private GetJSONWebKeysRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetJSONWebKeysRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetJSONWebKeysRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetJSONWebKeysRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetJSONWebKeysRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GetJSONWebKeysRequest.class, + com.google.container.v1beta1.GetJSONWebKeysRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * The cluster (project, location, cluster 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(); + parent_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetJSONWebKeysRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.GetJSONWebKeysRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.GetJSONWebKeysRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.GetJSONWebKeysRequest build() { + com.google.container.v1beta1.GetJSONWebKeysRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.GetJSONWebKeysRequest buildPartial() { + com.google.container.v1beta1.GetJSONWebKeysRequest result = + new com.google.container.v1beta1.GetJSONWebKeysRequest(this); + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.GetJSONWebKeysRequest) { + return mergeFrom((com.google.container.v1beta1.GetJSONWebKeysRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.GetJSONWebKeysRequest other) { + if (other == com.google.container.v1beta1.GetJSONWebKeysRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..dc4775d1df7c --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysRequestOrBuilder.java @@ -0,0 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface GetJSONWebKeysRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GetJSONWebKeysRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The cluster (project, location, cluster 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 new file mode 100644 index 000000000000..c1b4e05936d5 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysResponse.java @@ -0,0 +1,945 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc 7517
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.GetJSONWebKeysResponse} + */ +public final class GetJSONWebKeysResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.GetJSONWebKeysResponse) + GetJSONWebKeysResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetJSONWebKeysResponse.newBuilder() to construct. + private GetJSONWebKeysResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetJSONWebKeysResponse() { + keys_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetJSONWebKeysResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetJSONWebKeysResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetJSONWebKeysResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GetJSONWebKeysResponse.class, + com.google.container.v1beta1.GetJSONWebKeysResponse.Builder.class); + } + + public static final int KEYS_FIELD_NUMBER = 1; + private java.util.List keys_; + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + @java.lang.Override + public java.util.List getKeysList() { + return keys_; + } + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + @java.lang.Override + public java.util.List + getKeysOrBuilderList() { + return keys_; + } + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + @java.lang.Override + public int getKeysCount() { + return keys_.size(); + } + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.Jwk getKeys(int index) { + return keys_.get(index); + } + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.JwkOrBuilder getKeysOrBuilder(int index) { + return keys_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < keys_.size(); i++) { + output.writeMessage(1, keys_.get(i)); + } + 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(); + 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); + int from_bitField0_ = bitField0_; + if (keysBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + keys_ = java.util.Collections.unmodifiableList(keys_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.keys_ = keys_; + } else { + result.keys_ = keysBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.GetJSONWebKeysResponse) { + return mergeFrom((com.google.container.v1beta1.GetJSONWebKeysResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.GetJSONWebKeysResponse other) { + if (other == com.google.container.v1beta1.GetJSONWebKeysResponse.getDefaultInstance()) + return this; + if (keysBuilder_ == null) { + if (!other.keys_.isEmpty()) { + if (keys_.isEmpty()) { + keys_ = other.keys_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureKeysIsMutable(); + keys_.addAll(other.keys_); + } + onChanged(); + } + } else { + if (!other.keys_.isEmpty()) { + if (keysBuilder_.isEmpty()) { + keysBuilder_.dispose(); + keysBuilder_ = null; + keys_ = other.keys_; + bitField0_ = (bitField0_ & ~0x00000001); + keysBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getKeysFieldBuilder() + : null; + } else { + keysBuilder_.addAllMessages(other.keys_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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 new file mode 100644 index 000000000000..80112d6a4d46 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysResponseOrBuilder.java @@ -0,0 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface GetJSONWebKeysResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GetJSONWebKeysResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + java.util.List getKeysList(); + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + com.google.container.v1beta1.Jwk getKeys(int index); + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + int getKeysCount(); + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + java.util.List getKeysOrBuilderList(); + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + com.google.container.v1beta1.JwkOrBuilder getKeysOrBuilder(int index); +} diff --git a/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 new file mode 100644 index 000000000000..6142f0dec930 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequest.java @@ -0,0 +1,1495 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * GetNodePoolRequest retrieves a node pool for a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.GetNodePoolRequest} + */ +public final class GetNodePoolRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.GetNodePoolRequest) + GetNodePoolRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetNodePoolRequest.newBuilder() to construct. + private GetNodePoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetNodePoolRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetNodePoolRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetNodePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetNodePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GetNodePoolRequest.class, + com.google.container.v1beta1.GetNodePoolRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=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.GetNodePoolRequest.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; + 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=3238 + * @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=3238 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * Required. Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3245 + * @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=3245 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object nodePoolId_; + /** + * + * + *
+   * Required. Deprecated. The name of the node pool.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3252 + * @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=3252 + * @return The bytes for nodePoolId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * get. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 6; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * get. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + nodePoolId_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetNodePoolRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.GetNodePoolRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.GetNodePoolRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.GetNodePoolRequest build() { + com.google.container.v1beta1.GetNodePoolRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.GetNodePoolRequest buildPartial() { + com.google.container.v1beta1.GetNodePoolRequest result = + new com.google.container.v1beta1.GetNodePoolRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.nodePoolId_ = nodePoolId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.GetNodePoolRequest) { + return mergeFrom((com.google.container.v1beta1.GetNodePoolRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.GetNodePoolRequest other) { + if (other == com.google.container.v1beta1.GetNodePoolRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + nodePoolId_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 50: + { + name_ = input.readStringRequireUtf8(); + + 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 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=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.GetNodePoolRequest.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.GetNodePoolRequest.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; + 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=3229 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=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; + 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=3238 + * @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=3238 + * @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=3238 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3238 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3238 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3245 + * @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=3245 + * @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=3245 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3245 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3245 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the node pool.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3252 + * @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=3252 + * @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=3252 + * @param value The nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodePoolId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the node pool.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3252 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearNodePoolId() { + + nodePoolId_ = getDefaultInstance().getNodePoolId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the node pool.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3252 + * @param value The bytes for nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodePoolId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * get. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * get. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * get. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * get. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * get. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.GetNodePoolRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.GetNodePoolRequest) + private static final com.google.container.v1beta1.GetNodePoolRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.GetNodePoolRequest(); + } + + public static com.google.container.v1beta1.GetNodePoolRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNodePoolRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..f0322916113c --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequestOrBuilder.java @@ -0,0 +1,198 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface GetNodePoolRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GetNodePoolRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=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.GetNodePoolRequest.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.GetNodePoolRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3238 + * @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=3238 + * @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=3245 + * @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=3245 + * @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=3252 + * @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=3252 + * @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 new file mode 100644 index 000000000000..8ca34714a08f --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigRequest.java @@ -0,0 +1,624 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * GetOpenIDConfigRequest gets the OIDC discovery document for the
+ * cluster. See the OpenID Connect Discovery 1.0 specification for details.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.GetOpenIDConfigRequest} + */ +public final class GetOpenIDConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.GetOpenIDConfigRequest) + GetOpenIDConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetOpenIDConfigRequest.newBuilder() to construct. + private GetOpenIDConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetOpenIDConfigRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetOpenIDConfigRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetOpenIDConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetOpenIDConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GetOpenIDConfigRequest.class, + com.google.container.v1beta1.GetOpenIDConfigRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * The cluster (project, location, cluster 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(); + parent_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetOpenIDConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.GetOpenIDConfigRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.GetOpenIDConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.GetOpenIDConfigRequest build() { + com.google.container.v1beta1.GetOpenIDConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.GetOpenIDConfigRequest buildPartial() { + com.google.container.v1beta1.GetOpenIDConfigRequest result = + new com.google.container.v1beta1.GetOpenIDConfigRequest(this); + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.GetOpenIDConfigRequest) { + return mergeFrom((com.google.container.v1beta1.GetOpenIDConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.GetOpenIDConfigRequest other) { + if (other == com.google.container.v1beta1.GetOpenIDConfigRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..4193594546c6 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigRequestOrBuilder.java @@ -0,0 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface GetOpenIDConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GetOpenIDConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The cluster (project, location, cluster 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 new file mode 100644 index 000000000000..deed4e6fb7d9 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigResponse.java @@ -0,0 +1,2158 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * GetOpenIDConfigResponse is an OIDC discovery document for the cluster.
+ * See the OpenID Connect Discovery 1.0 specification for details.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.GetOpenIDConfigResponse} + */ +public final class GetOpenIDConfigResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.GetOpenIDConfigResponse) + GetOpenIDConfigResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetOpenIDConfigResponse.newBuilder() to construct. + private GetOpenIDConfigResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetOpenIDConfigResponse() { + issuer_ = ""; + jwksUri_ = ""; + responseTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + subjectTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + idTokenSigningAlgValuesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + claimsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + grantTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetOpenIDConfigResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetOpenIDConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetOpenIDConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GetOpenIDConfigResponse.class, + com.google.container.v1beta1.GetOpenIDConfigResponse.Builder.class); + } + + public static final int ISSUER_FIELD_NUMBER = 1; + private volatile java.lang.Object issuer_; + /** + * + * + *
+   * OIDC Issuer.
+   * 
+ * + * string issuer = 1; + * + * @return The issuer. + */ + @java.lang.Override + public java.lang.String getIssuer() { + java.lang.Object ref = issuer_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + issuer_ = s; + return s; + } + } + /** + * + * + *
+   * OIDC Issuer.
+   * 
+ * + * string issuer = 1; + * + * @return The bytes for issuer. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIssuerBytes() { + java.lang.Object ref = issuer_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + issuer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JWKS_URI_FIELD_NUMBER = 2; + private volatile java.lang.Object jwksUri_; + /** + * + * + *
+   * JSON Web Key uri.
+   * 
+ * + * string jwks_uri = 2; + * + * @return The jwksUri. + */ + @java.lang.Override + public java.lang.String getJwksUri() { + java.lang.Object ref = jwksUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jwksUri_ = s; + return s; + } + } + /** + * + * + *
+   * JSON Web Key uri.
+   * 
+ * + * string jwks_uri = 2; + * + * @return The bytes for jwksUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getJwksUriBytes() { + java.lang.Object ref = jwksUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jwksUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESPONSE_TYPES_SUPPORTED_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList responseTypesSupported_; + /** + * + * + *
+   * Supported response types.
+   * 
+ * + * repeated string response_types_supported = 3; + * + * @return A list containing the responseTypesSupported. + */ + public com.google.protobuf.ProtocolStringList getResponseTypesSupportedList() { + return responseTypesSupported_; + } + /** + * + * + *
+   * Supported response types.
+   * 
+ * + * repeated string response_types_supported = 3; + * + * @return The count of responseTypesSupported. + */ + public int getResponseTypesSupportedCount() { + return responseTypesSupported_.size(); + } + /** + * + * + *
+   * Supported response types.
+   * 
+ * + * repeated string response_types_supported = 3; + * + * @param index The index of the element to return. + * @return The responseTypesSupported at the given index. + */ + public java.lang.String getResponseTypesSupported(int index) { + return responseTypesSupported_.get(index); + } + /** + * + * + *
+   * Supported response types.
+   * 
+ * + * repeated string response_types_supported = 3; + * + * @param index The index of the value to return. + * @return The bytes of the responseTypesSupported at the given index. + */ + public com.google.protobuf.ByteString getResponseTypesSupportedBytes(int index) { + return responseTypesSupported_.getByteString(index); + } + + public static final int SUBJECT_TYPES_SUPPORTED_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList subjectTypesSupported_; + /** + * + * + *
+   * Supported subject types.
+   * 
+ * + * repeated string subject_types_supported = 4; + * + * @return A list containing the subjectTypesSupported. + */ + public com.google.protobuf.ProtocolStringList getSubjectTypesSupportedList() { + return subjectTypesSupported_; + } + /** + * + * + *
+   * Supported subject types.
+   * 
+ * + * repeated string subject_types_supported = 4; + * + * @return The count of subjectTypesSupported. + */ + public int getSubjectTypesSupportedCount() { + return subjectTypesSupported_.size(); + } + /** + * + * + *
+   * Supported subject types.
+   * 
+ * + * repeated string subject_types_supported = 4; + * + * @param index The index of the element to return. + * @return The subjectTypesSupported at the given index. + */ + public java.lang.String getSubjectTypesSupported(int index) { + return subjectTypesSupported_.get(index); + } + /** + * + * + *
+   * Supported subject types.
+   * 
+ * + * repeated string subject_types_supported = 4; + * + * @param index The index of the value to return. + * @return The bytes of the subjectTypesSupported at the given index. + */ + public com.google.protobuf.ByteString getSubjectTypesSupportedBytes(int index) { + return subjectTypesSupported_.getByteString(index); + } + + public static final int ID_TOKEN_SIGNING_ALG_VALUES_SUPPORTED_FIELD_NUMBER = 5; + private com.google.protobuf.LazyStringList idTokenSigningAlgValuesSupported_; + /** + * + * + *
+   * supported ID Token signing Algorithms.
+   * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @return A list containing the idTokenSigningAlgValuesSupported. + */ + public com.google.protobuf.ProtocolStringList getIdTokenSigningAlgValuesSupportedList() { + return idTokenSigningAlgValuesSupported_; + } + /** + * + * + *
+   * supported ID Token signing Algorithms.
+   * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @return The count of idTokenSigningAlgValuesSupported. + */ + public int getIdTokenSigningAlgValuesSupportedCount() { + return idTokenSigningAlgValuesSupported_.size(); + } + /** + * + * + *
+   * supported ID Token signing Algorithms.
+   * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param index The index of the element to return. + * @return The idTokenSigningAlgValuesSupported at the given index. + */ + public java.lang.String getIdTokenSigningAlgValuesSupported(int index) { + return idTokenSigningAlgValuesSupported_.get(index); + } + /** + * + * + *
+   * supported ID Token signing Algorithms.
+   * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param index The index of the value to return. + * @return The bytes of the idTokenSigningAlgValuesSupported at the given index. + */ + public com.google.protobuf.ByteString getIdTokenSigningAlgValuesSupportedBytes(int index) { + return idTokenSigningAlgValuesSupported_.getByteString(index); + } + + public static final int CLAIMS_SUPPORTED_FIELD_NUMBER = 6; + private com.google.protobuf.LazyStringList claimsSupported_; + /** + * + * + *
+   * Supported claims.
+   * 
+ * + * repeated string claims_supported = 6; + * + * @return A list containing the claimsSupported. + */ + public com.google.protobuf.ProtocolStringList getClaimsSupportedList() { + return claimsSupported_; + } + /** + * + * + *
+   * Supported claims.
+   * 
+ * + * repeated string claims_supported = 6; + * + * @return The count of claimsSupported. + */ + public int getClaimsSupportedCount() { + return claimsSupported_.size(); + } + /** + * + * + *
+   * Supported claims.
+   * 
+ * + * repeated string claims_supported = 6; + * + * @param index The index of the element to return. + * @return The claimsSupported at the given index. + */ + public java.lang.String getClaimsSupported(int index) { + return claimsSupported_.get(index); + } + /** + * + * + *
+   * Supported claims.
+   * 
+ * + * repeated string claims_supported = 6; + * + * @param index The index of the value to return. + * @return The bytes of the claimsSupported at the given index. + */ + public com.google.protobuf.ByteString getClaimsSupportedBytes(int index) { + return claimsSupported_.getByteString(index); + } + + public static final int GRANT_TYPES_FIELD_NUMBER = 7; + private com.google.protobuf.LazyStringList grantTypes_; + /** + * + * + *
+   * Supported grant types.
+   * 
+ * + * repeated string grant_types = 7; + * + * @return A list containing the grantTypes. + */ + public com.google.protobuf.ProtocolStringList getGrantTypesList() { + return grantTypes_; + } + /** + * + * + *
+   * Supported grant types.
+   * 
+ * + * repeated string grant_types = 7; + * + * @return The count of grantTypes. + */ + public int getGrantTypesCount() { + return grantTypes_.size(); + } + /** + * + * + *
+   * Supported grant types.
+   * 
+ * + * repeated string grant_types = 7; + * + * @param index The index of the element to return. + * @return The grantTypes at the given index. + */ + public java.lang.String getGrantTypes(int index) { + return grantTypes_.get(index); + } + /** + * + * + *
+   * Supported grant types.
+   * 
+ * + * repeated string grant_types = 7; + * + * @param index The index of the value to return. + * @return The bytes of the grantTypes at the given index. + */ + public com.google.protobuf.ByteString getGrantTypesBytes(int index) { + return grantTypes_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + issuer_ = ""; + + jwksUri_ = ""; + + responseTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + subjectTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + idTokenSigningAlgValuesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + claimsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + grantTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetOpenIDConfigResponse_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.GetOpenIDConfigResponse getDefaultInstanceForType() { + return com.google.container.v1beta1.GetOpenIDConfigResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.GetOpenIDConfigResponse build() { + com.google.container.v1beta1.GetOpenIDConfigResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.GetOpenIDConfigResponse buildPartial() { + com.google.container.v1beta1.GetOpenIDConfigResponse result = + new com.google.container.v1beta1.GetOpenIDConfigResponse(this); + int from_bitField0_ = bitField0_; + result.issuer_ = issuer_; + result.jwksUri_ = jwksUri_; + if (((bitField0_ & 0x00000001) != 0)) { + responseTypesSupported_ = responseTypesSupported_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.responseTypesSupported_ = responseTypesSupported_; + if (((bitField0_ & 0x00000002) != 0)) { + subjectTypesSupported_ = subjectTypesSupported_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.subjectTypesSupported_ = subjectTypesSupported_; + if (((bitField0_ & 0x00000004) != 0)) { + idTokenSigningAlgValuesSupported_ = idTokenSigningAlgValuesSupported_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.idTokenSigningAlgValuesSupported_ = idTokenSigningAlgValuesSupported_; + if (((bitField0_ & 0x00000008) != 0)) { + claimsSupported_ = claimsSupported_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.claimsSupported_ = claimsSupported_; + if (((bitField0_ & 0x00000010) != 0)) { + grantTypes_ = grantTypes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.grantTypes_ = grantTypes_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.GetOpenIDConfigResponse) { + return mergeFrom((com.google.container.v1beta1.GetOpenIDConfigResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.GetOpenIDConfigResponse other) { + if (other == com.google.container.v1beta1.GetOpenIDConfigResponse.getDefaultInstance()) + return this; + if (!other.getIssuer().isEmpty()) { + issuer_ = other.issuer_; + onChanged(); + } + if (!other.getJwksUri().isEmpty()) { + jwksUri_ = other.jwksUri_; + onChanged(); + } + if (!other.responseTypesSupported_.isEmpty()) { + if (responseTypesSupported_.isEmpty()) { + responseTypesSupported_ = other.responseTypesSupported_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResponseTypesSupportedIsMutable(); + responseTypesSupported_.addAll(other.responseTypesSupported_); + } + onChanged(); + } + if (!other.subjectTypesSupported_.isEmpty()) { + if (subjectTypesSupported_.isEmpty()) { + subjectTypesSupported_ = other.subjectTypesSupported_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSubjectTypesSupportedIsMutable(); + subjectTypesSupported_.addAll(other.subjectTypesSupported_); + } + onChanged(); + } + if (!other.idTokenSigningAlgValuesSupported_.isEmpty()) { + if (idTokenSigningAlgValuesSupported_.isEmpty()) { + idTokenSigningAlgValuesSupported_ = other.idTokenSigningAlgValuesSupported_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureIdTokenSigningAlgValuesSupportedIsMutable(); + idTokenSigningAlgValuesSupported_.addAll(other.idTokenSigningAlgValuesSupported_); + } + onChanged(); + } + if (!other.claimsSupported_.isEmpty()) { + if (claimsSupported_.isEmpty()) { + claimsSupported_ = other.claimsSupported_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureClaimsSupportedIsMutable(); + claimsSupported_.addAll(other.claimsSupported_); + } + onChanged(); + } + if (!other.grantTypes_.isEmpty()) { + if (grantTypes_.isEmpty()) { + grantTypes_ = other.grantTypes_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureGrantTypesIsMutable(); + grantTypes_.addAll(other.grantTypes_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + jwksUri_ = input.readStringRequireUtf8(); + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * OIDC Issuer.
+     * 
+ * + * string issuer = 1; + * + * @return This builder for chaining. + */ + public Builder clearIssuer() { + + issuer_ = getDefaultInstance().getIssuer(); + onChanged(); + return this; + } + /** + * + * + *
+     * OIDC Issuer.
+     * 
+ * + * string issuer = 1; + * + * @param value The bytes for issuer to set. + * @return This builder for chaining. + */ + public Builder setIssuerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + issuer_ = value; + onChanged(); + return this; + } + + private java.lang.Object jwksUri_ = ""; + /** + * + * + *
+     * JSON Web Key uri.
+     * 
+ * + * string jwks_uri = 2; + * + * @return The jwksUri. + */ + public java.lang.String getJwksUri() { + java.lang.Object ref = jwksUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jwksUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * JSON Web Key uri.
+     * 
+ * + * string jwks_uri = 2; + * + * @return The bytes for jwksUri. + */ + public com.google.protobuf.ByteString getJwksUriBytes() { + java.lang.Object ref = jwksUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jwksUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * JSON Web Key uri.
+     * 
+ * + * string jwks_uri = 2; + * + * @param value The jwksUri to set. + * @return This builder for chaining. + */ + public Builder setJwksUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jwksUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * JSON Web Key uri.
+     * 
+ * + * string jwks_uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearJwksUri() { + + jwksUri_ = getDefaultInstance().getJwksUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * JSON Web Key uri.
+     * 
+ * + * string jwks_uri = 2; + * + * @param value The bytes for jwksUri to set. + * @return This builder for chaining. + */ + public Builder setJwksUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jwksUri_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList responseTypesSupported_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureResponseTypesSupportedIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + responseTypesSupported_ = + new com.google.protobuf.LazyStringArrayList(responseTypesSupported_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * + * @return A list containing the responseTypesSupported. + */ + public com.google.protobuf.ProtocolStringList getResponseTypesSupportedList() { + return responseTypesSupported_.getUnmodifiableView(); + } + /** + * + * + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * + * @return The count of responseTypesSupported. + */ + public int getResponseTypesSupportedCount() { + return responseTypesSupported_.size(); + } + /** + * + * + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * + * @param index The index of the element to return. + * @return The responseTypesSupported at the given index. + */ + public java.lang.String getResponseTypesSupported(int index) { + return responseTypesSupported_.get(index); + } + /** + * + * + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * + * @param index The index of the value to return. + * @return The bytes of the responseTypesSupported at the given index. + */ + public com.google.protobuf.ByteString getResponseTypesSupportedBytes(int index) { + return responseTypesSupported_.getByteString(index); + } + /** + * + * + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * + * @param index The index to set the value at. + * @param value The responseTypesSupported to set. + * @return This builder for chaining. + */ + public Builder setResponseTypesSupported(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponseTypesSupportedIsMutable(); + responseTypesSupported_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * + * @param value The responseTypesSupported to add. + * @return This builder for chaining. + */ + public Builder addResponseTypesSupported(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponseTypesSupportedIsMutable(); + responseTypesSupported_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * + * @param values The responseTypesSupported to add. + * @return This builder for chaining. + */ + public Builder addAllResponseTypesSupported(java.lang.Iterable values) { + ensureResponseTypesSupportedIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responseTypesSupported_); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * + * @return This builder for chaining. + */ + public Builder clearResponseTypesSupported() { + responseTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * + * @param value The bytes of the responseTypesSupported to add. + * @return This builder for chaining. + */ + public Builder addResponseTypesSupportedBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureResponseTypesSupportedIsMutable(); + responseTypesSupported_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList subjectTypesSupported_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureSubjectTypesSupportedIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + subjectTypesSupported_ = + new com.google.protobuf.LazyStringArrayList(subjectTypesSupported_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * + * @return A list containing the subjectTypesSupported. + */ + public com.google.protobuf.ProtocolStringList getSubjectTypesSupportedList() { + return subjectTypesSupported_.getUnmodifiableView(); + } + /** + * + * + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * + * @return The count of subjectTypesSupported. + */ + public int getSubjectTypesSupportedCount() { + return subjectTypesSupported_.size(); + } + /** + * + * + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * + * @param index The index of the element to return. + * @return The subjectTypesSupported at the given index. + */ + public java.lang.String getSubjectTypesSupported(int index) { + return subjectTypesSupported_.get(index); + } + /** + * + * + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * + * @param index The index of the value to return. + * @return The bytes of the subjectTypesSupported at the given index. + */ + public com.google.protobuf.ByteString getSubjectTypesSupportedBytes(int index) { + return subjectTypesSupported_.getByteString(index); + } + /** + * + * + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * + * @param index The index to set the value at. + * @param value The subjectTypesSupported to set. + * @return This builder for chaining. + */ + public Builder setSubjectTypesSupported(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubjectTypesSupportedIsMutable(); + subjectTypesSupported_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * + * @param value The subjectTypesSupported to add. + * @return This builder for chaining. + */ + public Builder addSubjectTypesSupported(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubjectTypesSupportedIsMutable(); + subjectTypesSupported_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * + * @param values The subjectTypesSupported to add. + * @return This builder for chaining. + */ + public Builder addAllSubjectTypesSupported(java.lang.Iterable values) { + ensureSubjectTypesSupportedIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subjectTypesSupported_); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * + * @return This builder for chaining. + */ + public Builder clearSubjectTypesSupported() { + subjectTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * + * @param value The bytes of the subjectTypesSupported to add. + * @return This builder for chaining. + */ + public Builder addSubjectTypesSupportedBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSubjectTypesSupportedIsMutable(); + subjectTypesSupported_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList idTokenSigningAlgValuesSupported_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureIdTokenSigningAlgValuesSupportedIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + idTokenSigningAlgValuesSupported_ = + new com.google.protobuf.LazyStringArrayList(idTokenSigningAlgValuesSupported_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+     * supported ID Token signing Algorithms.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @return A list containing the idTokenSigningAlgValuesSupported. + */ + public com.google.protobuf.ProtocolStringList getIdTokenSigningAlgValuesSupportedList() { + return idTokenSigningAlgValuesSupported_.getUnmodifiableView(); + } + /** + * + * + *
+     * supported ID Token signing Algorithms.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @return The count of idTokenSigningAlgValuesSupported. + */ + public int getIdTokenSigningAlgValuesSupportedCount() { + return idTokenSigningAlgValuesSupported_.size(); + } + /** + * + * + *
+     * supported ID Token signing Algorithms.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param index The index of the element to return. + * @return The idTokenSigningAlgValuesSupported at the given index. + */ + public java.lang.String getIdTokenSigningAlgValuesSupported(int index) { + return idTokenSigningAlgValuesSupported_.get(index); + } + /** + * + * + *
+     * supported ID Token signing Algorithms.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param index The index of the value to return. + * @return The bytes of the idTokenSigningAlgValuesSupported at the given index. + */ + public com.google.protobuf.ByteString getIdTokenSigningAlgValuesSupportedBytes(int index) { + return idTokenSigningAlgValuesSupported_.getByteString(index); + } + /** + * + * + *
+     * supported ID Token signing Algorithms.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param index The index to set the value at. + * @param value The idTokenSigningAlgValuesSupported to set. + * @return This builder for chaining. + */ + public Builder setIdTokenSigningAlgValuesSupported(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdTokenSigningAlgValuesSupportedIsMutable(); + idTokenSigningAlgValuesSupported_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * supported ID Token signing Algorithms.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param value The idTokenSigningAlgValuesSupported to add. + * @return This builder for chaining. + */ + public Builder addIdTokenSigningAlgValuesSupported(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdTokenSigningAlgValuesSupportedIsMutable(); + idTokenSigningAlgValuesSupported_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * supported ID Token signing Algorithms.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param values The idTokenSigningAlgValuesSupported to add. + * @return This builder for chaining. + */ + public Builder addAllIdTokenSigningAlgValuesSupported( + java.lang.Iterable values) { + ensureIdTokenSigningAlgValuesSupportedIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, idTokenSigningAlgValuesSupported_); + onChanged(); + return this; + } + /** + * + * + *
+     * supported ID Token signing Algorithms.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @return This builder for chaining. + */ + public Builder clearIdTokenSigningAlgValuesSupported() { + idTokenSigningAlgValuesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * supported ID Token signing Algorithms.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param value The bytes of the idTokenSigningAlgValuesSupported to add. + * @return This builder for chaining. + */ + public Builder addIdTokenSigningAlgValuesSupportedBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureIdTokenSigningAlgValuesSupportedIsMutable(); + idTokenSigningAlgValuesSupported_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList claimsSupported_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureClaimsSupportedIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + claimsSupported_ = new com.google.protobuf.LazyStringArrayList(claimsSupported_); + bitField0_ |= 0x00000008; + } + } + /** + * + * + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * + * @return A list containing the claimsSupported. + */ + public com.google.protobuf.ProtocolStringList getClaimsSupportedList() { + return claimsSupported_.getUnmodifiableView(); + } + /** + * + * + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * + * @return The count of claimsSupported. + */ + public int getClaimsSupportedCount() { + return claimsSupported_.size(); + } + /** + * + * + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * + * @param index The index of the element to return. + * @return The claimsSupported at the given index. + */ + public java.lang.String getClaimsSupported(int index) { + return claimsSupported_.get(index); + } + /** + * + * + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * + * @param index The index of the value to return. + * @return The bytes of the claimsSupported at the given index. + */ + public com.google.protobuf.ByteString getClaimsSupportedBytes(int index) { + return claimsSupported_.getByteString(index); + } + /** + * + * + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * + * @param index The index to set the value at. + * @param value The claimsSupported to set. + * @return This builder for chaining. + */ + public Builder setClaimsSupported(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureClaimsSupportedIsMutable(); + claimsSupported_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * + * @param value The claimsSupported to add. + * @return This builder for chaining. + */ + public Builder addClaimsSupported(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureClaimsSupportedIsMutable(); + claimsSupported_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * + * @param values The claimsSupported to add. + * @return This builder for chaining. + */ + public Builder addAllClaimsSupported(java.lang.Iterable values) { + ensureClaimsSupportedIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, claimsSupported_); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * + * @return This builder for chaining. + */ + public Builder clearClaimsSupported() { + claimsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * + * @param value The bytes of the claimsSupported to add. + * @return This builder for chaining. + */ + public Builder addClaimsSupportedBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureClaimsSupportedIsMutable(); + claimsSupported_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList grantTypes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureGrantTypesIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + grantTypes_ = new com.google.protobuf.LazyStringArrayList(grantTypes_); + bitField0_ |= 0x00000010; + } + } + /** + * + * + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * + * @return A list containing the grantTypes. + */ + public com.google.protobuf.ProtocolStringList getGrantTypesList() { + return grantTypes_.getUnmodifiableView(); + } + /** + * + * + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * + * @return The count of grantTypes. + */ + public int getGrantTypesCount() { + return grantTypes_.size(); + } + /** + * + * + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * + * @param index The index of the element to return. + * @return The grantTypes at the given index. + */ + public java.lang.String getGrantTypes(int index) { + return grantTypes_.get(index); + } + /** + * + * + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * + * @param index The index of the value to return. + * @return The bytes of the grantTypes at the given index. + */ + public com.google.protobuf.ByteString getGrantTypesBytes(int index) { + return grantTypes_.getByteString(index); + } + /** + * + * + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * + * @param index The index to set the value at. + * @param value The grantTypes to set. + * @return This builder for chaining. + */ + public Builder setGrantTypes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGrantTypesIsMutable(); + grantTypes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * + * @param value The grantTypes to add. + * @return This builder for chaining. + */ + public Builder addGrantTypes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGrantTypesIsMutable(); + grantTypes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * + * @param values The grantTypes to add. + * @return This builder for chaining. + */ + public Builder addAllGrantTypes(java.lang.Iterable values) { + ensureGrantTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, grantTypes_); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * + * @return This builder for chaining. + */ + public Builder clearGrantTypes() { + grantTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * + * @param value The bytes of the grantTypes to add. + * @return This builder for chaining. + */ + public Builder addGrantTypesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureGrantTypesIsMutable(); + grantTypes_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.GetOpenIDConfigResponse) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.GetOpenIDConfigResponse) + private static final com.google.container.v1beta1.GetOpenIDConfigResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.GetOpenIDConfigResponse(); + } + + public static com.google.container.v1beta1.GetOpenIDConfigResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOpenIDConfigResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..f7efa4349c13 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigResponseOrBuilder.java @@ -0,0 +1,330 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface GetOpenIDConfigResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GetOpenIDConfigResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * OIDC Issuer.
+   * 
+ * + * string issuer = 1; + * + * @return The issuer. + */ + java.lang.String getIssuer(); + /** + * + * + *
+   * OIDC Issuer.
+   * 
+ * + * string issuer = 1; + * + * @return The bytes for issuer. + */ + com.google.protobuf.ByteString getIssuerBytes(); + + /** + * + * + *
+   * JSON Web Key uri.
+   * 
+ * + * string jwks_uri = 2; + * + * @return The jwksUri. + */ + java.lang.String getJwksUri(); + /** + * + * + *
+   * JSON Web Key uri.
+   * 
+ * + * string jwks_uri = 2; + * + * @return The bytes for jwksUri. + */ + com.google.protobuf.ByteString getJwksUriBytes(); + + /** + * + * + *
+   * Supported response types.
+   * 
+ * + * repeated string response_types_supported = 3; + * + * @return A list containing the responseTypesSupported. + */ + java.util.List getResponseTypesSupportedList(); + /** + * + * + *
+   * Supported response types.
+   * 
+ * + * repeated string response_types_supported = 3; + * + * @return The count of responseTypesSupported. + */ + int getResponseTypesSupportedCount(); + /** + * + * + *
+   * Supported response types.
+   * 
+ * + * repeated string response_types_supported = 3; + * + * @param index The index of the element to return. + * @return The responseTypesSupported at the given index. + */ + java.lang.String getResponseTypesSupported(int index); + /** + * + * + *
+   * Supported response types.
+   * 
+ * + * repeated string response_types_supported = 3; + * + * @param index The index of the value to return. + * @return The bytes of the responseTypesSupported at the given index. + */ + com.google.protobuf.ByteString getResponseTypesSupportedBytes(int index); + + /** + * + * + *
+   * Supported subject types.
+   * 
+ * + * repeated string subject_types_supported = 4; + * + * @return A list containing the subjectTypesSupported. + */ + java.util.List getSubjectTypesSupportedList(); + /** + * + * + *
+   * Supported subject types.
+   * 
+ * + * repeated string subject_types_supported = 4; + * + * @return The count of subjectTypesSupported. + */ + int getSubjectTypesSupportedCount(); + /** + * + * + *
+   * Supported subject types.
+   * 
+ * + * repeated string subject_types_supported = 4; + * + * @param index The index of the element to return. + * @return The subjectTypesSupported at the given index. + */ + java.lang.String getSubjectTypesSupported(int index); + /** + * + * + *
+   * Supported subject types.
+   * 
+ * + * repeated string subject_types_supported = 4; + * + * @param index The index of the value to return. + * @return The bytes of the subjectTypesSupported at the given index. + */ + com.google.protobuf.ByteString getSubjectTypesSupportedBytes(int index); + + /** + * + * + *
+   * supported ID Token signing Algorithms.
+   * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @return A list containing the idTokenSigningAlgValuesSupported. + */ + java.util.List getIdTokenSigningAlgValuesSupportedList(); + /** + * + * + *
+   * supported ID Token signing Algorithms.
+   * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @return The count of idTokenSigningAlgValuesSupported. + */ + int getIdTokenSigningAlgValuesSupportedCount(); + /** + * + * + *
+   * supported ID Token signing Algorithms.
+   * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param index The index of the element to return. + * @return The idTokenSigningAlgValuesSupported at the given index. + */ + java.lang.String getIdTokenSigningAlgValuesSupported(int index); + /** + * + * + *
+   * supported ID Token signing Algorithms.
+   * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param index The index of the value to return. + * @return The bytes of the idTokenSigningAlgValuesSupported at the given index. + */ + com.google.protobuf.ByteString getIdTokenSigningAlgValuesSupportedBytes(int index); + + /** + * + * + *
+   * Supported claims.
+   * 
+ * + * repeated string claims_supported = 6; + * + * @return A list containing the claimsSupported. + */ + java.util.List getClaimsSupportedList(); + /** + * + * + *
+   * Supported claims.
+   * 
+ * + * repeated string claims_supported = 6; + * + * @return The count of claimsSupported. + */ + int getClaimsSupportedCount(); + /** + * + * + *
+   * Supported claims.
+   * 
+ * + * repeated string claims_supported = 6; + * + * @param index The index of the element to return. + * @return The claimsSupported at the given index. + */ + java.lang.String getClaimsSupported(int index); + /** + * + * + *
+   * Supported claims.
+   * 
+ * + * repeated string claims_supported = 6; + * + * @param index The index of the value to return. + * @return The bytes of the claimsSupported at the given index. + */ + com.google.protobuf.ByteString getClaimsSupportedBytes(int index); + + /** + * + * + *
+   * Supported grant types.
+   * 
+ * + * repeated string grant_types = 7; + * + * @return A list containing the grantTypes. + */ + java.util.List getGrantTypesList(); + /** + * + * + *
+   * Supported grant types.
+   * 
+ * + * repeated string grant_types = 7; + * + * @return The count of grantTypes. + */ + int getGrantTypesCount(); + /** + * + * + *
+   * Supported grant types.
+   * 
+ * + * repeated string grant_types = 7; + * + * @param index The index of the element to return. + * @return The grantTypes at the given index. + */ + java.lang.String getGrantTypes(int index); + /** + * + * + *
+   * Supported grant types.
+   * 
+ * + * repeated string grant_types = 7; + * + * @param index The index of the value to return. + * @return The bytes of the grantTypes at the given index. + */ + com.google.protobuf.ByteString getGrantTypesBytes(int index); +} diff --git a/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 new file mode 100644 index 000000000000..99ff2de761e0 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequest.java @@ -0,0 +1,1275 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * GetOperationRequest gets a single operation.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.GetOperationRequest} + */ +public final class GetOperationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.GetOperationRequest) + GetOperationRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetOperationRequest.newBuilder() to construct. + private GetOperationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetOperationRequest() { + projectId_ = ""; + zone_ = ""; + operationId_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetOperationRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetOperationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetOperationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GetOperationRequest.class, + com.google.container.v1beta1.GetOperationRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=2933 + * @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=2933 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Required. Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2942 + * @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=2942 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPERATION_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object operationId_; + /** + * + * + *
+   * Required. Deprecated. The server-assigned `name` of the operation.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string operation_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2949 + * @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=2949 + * @return The bytes for operationId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getOperationIdBytes() { + java.lang.Object ref = operationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, operation id) of the operation to get.
+   * Specified in the format `projects/*/locations/*/operations/*`.
+   * 
+ * + * string name = 5; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, operation id) of the operation to get.
+   * Specified in the format `projects/*/locations/*/operations/*`.
+   * 
+ * + * string name = 5; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + projectId_ = ""; + + zone_ = ""; + + operationId_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetOperationRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.GetOperationRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.GetOperationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.GetOperationRequest build() { + com.google.container.v1beta1.GetOperationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.GetOperationRequest buildPartial() { + com.google.container.v1beta1.GetOperationRequest result = + new com.google.container.v1beta1.GetOperationRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.operationId_ = operationId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.GetOperationRequest) { + return mergeFrom((com.google.container.v1beta1.GetOperationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.GetOperationRequest other) { + if (other == com.google.container.v1beta1.GetOperationRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getOperationId().isEmpty()) { + operationId_ = other.operationId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + operationId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 42: + { + name_ = input.readStringRequireUtf8(); + + 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 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=2933 + * @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=2933 + * @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=2933 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=2933 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=2933 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2942 + * @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=2942 + * @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=2942 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2942 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2942 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object operationId_ = ""; + /** + * + * + *
+     * Required. Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string operation_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2949 + * @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=2949 + * @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=2949 + * @param value The operationId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setOperationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + operationId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string operation_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2949 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearOperationId() { + + operationId_ = getDefaultInstance().getOperationId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string operation_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2949 + * @param value The bytes for operationId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setOperationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + operationId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, operation id) of the operation to get.
+     * Specified in the format `projects/*/locations/*/operations/*`.
+     * 
+ * + * string name = 5; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, operation id) of the operation to get.
+     * Specified in the format `projects/*/locations/*/operations/*`.
+     * 
+ * + * string name = 5; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, operation id) of the operation to get.
+     * Specified in the format `projects/*/locations/*/operations/*`.
+     * 
+ * + * string name = 5; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, operation id) of the operation to get.
+     * Specified in the format `projects/*/locations/*/operations/*`.
+     * 
+ * + * string name = 5; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, operation id) of the operation to get.
+     * Specified in the format `projects/*/locations/*/operations/*`.
+     * 
+ * + * string name = 5; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.GetOperationRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.GetOperationRequest) + private static final com.google.container.v1beta1.GetOperationRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.GetOperationRequest(); + } + + public static com.google.container.v1beta1.GetOperationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOperationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..25011cb0ec0d --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequestOrBuilder.java @@ -0,0 +1,161 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface GetOperationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GetOperationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=2933 + * @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=2933 + * @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=2942 + * @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=2942 + * @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=2949 + * @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=2949 + * @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 new file mode 100644 index 000000000000..15784c2634d2 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequest.java @@ -0,0 +1,1062 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Gets the current Kubernetes Engine service configuration.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.GetServerConfigRequest} + */ +public final class GetServerConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.GetServerConfigRequest) + GetServerConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetServerConfigRequest.newBuilder() to construct. + private GetServerConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetServerConfigRequest() { + projectId_ = ""; + zone_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetServerConfigRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetServerConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetServerConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GetServerConfigRequest.class, + com.google.container.v1beta1.GetServerConfigRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=3030 + * @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=3030 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Required. Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) to return
+   * operations for. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3039 + * @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=3039 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project and location) of the server config to get,
+   * specified in the format `projects/*/locations/*`.
+   * 
+ * + * string name = 4; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project and location) of the server config to get,
+   * specified in the format `projects/*/locations/*`.
+   * 
+ * + * string name = 4; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + projectId_ = ""; + + zone_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetServerConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.GetServerConfigRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.GetServerConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.GetServerConfigRequest build() { + com.google.container.v1beta1.GetServerConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.GetServerConfigRequest buildPartial() { + com.google.container.v1beta1.GetServerConfigRequest result = + new com.google.container.v1beta1.GetServerConfigRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.GetServerConfigRequest) { + return mergeFrom((com.google.container.v1beta1.GetServerConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.GetServerConfigRequest other) { + if (other == com.google.container.v1beta1.GetServerConfigRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 34: + { + name_ = input.readStringRequireUtf8(); + + 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 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=3030 + * @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=3030 + * @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=3030 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=3030 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=3030 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) to return
+     * operations for. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3039 + * @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=3039 + * @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=3039 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) to return
+     * operations for. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3039 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) to return
+     * operations for. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3039 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project and location) of the server config to get,
+     * specified in the format `projects/*/locations/*`.
+     * 
+ * + * string name = 4; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project and location) of the server config to get,
+     * specified in the format `projects/*/locations/*`.
+     * 
+ * + * string name = 4; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project and location) of the server config to get,
+     * specified in the format `projects/*/locations/*`.
+     * 
+ * + * string name = 4; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project and location) of the server config to get,
+     * specified in the format `projects/*/locations/*`.
+     * 
+ * + * string name = 4; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project and location) of the server config to get,
+     * specified in the format `projects/*/locations/*`.
+     * 
+ * + * string name = 4; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.GetServerConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.GetServerConfigRequest) + private static final com.google.container.v1beta1.GetServerConfigRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.GetServerConfigRequest(); + } + + public static com.google.container.v1beta1.GetServerConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetServerConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..4cc6515d3666 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequestOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface 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=3030 + * @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=3030 + * @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=3039 + * @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=3039 + * @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 new file mode 100644 index 000000000000..e9d4053715a9 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GkeBackupAgentConfig.java @@ -0,0 +1,527 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration for the Backup for GKE Agent.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.GkeBackupAgentConfig} + */ +public final class GkeBackupAgentConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.GkeBackupAgentConfig) + GkeBackupAgentConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use GkeBackupAgentConfig.newBuilder() to construct. + private GkeBackupAgentConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GkeBackupAgentConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GkeBackupAgentConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GkeBackupAgentConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GkeBackupAgentConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GkeBackupAgentConfig.class, + com.google.container.v1beta1.GkeBackupAgentConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether the Backup for GKE agent is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + 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(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GkeBackupAgentConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.GkeBackupAgentConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.GkeBackupAgentConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.GkeBackupAgentConfig build() { + com.google.container.v1beta1.GkeBackupAgentConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.GkeBackupAgentConfig buildPartial() { + com.google.container.v1beta1.GkeBackupAgentConfig result = + new com.google.container.v1beta1.GkeBackupAgentConfig(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.GkeBackupAgentConfig) { + return mergeFrom((com.google.container.v1beta1.GkeBackupAgentConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.GkeBackupAgentConfig other) { + if (other == com.google.container.v1beta1.GkeBackupAgentConfig.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 boolean enabled_; + /** + * + * + *
+     * Whether the Backup for GKE agent is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether the Backup for GKE agent is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the Backup for GKE agent is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.GkeBackupAgentConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.GkeBackupAgentConfig) + private static final com.google.container.v1beta1.GkeBackupAgentConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.GkeBackupAgentConfig(); + } + + public static com.google.container.v1beta1.GkeBackupAgentConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GkeBackupAgentConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..d6916e8e2c67 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GkeBackupAgentConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface GkeBackupAgentConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GkeBackupAgentConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether the Backup for GKE agent is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/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 new file mode 100644 index 000000000000..5abce78ef47f --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HorizontalPodAutoscaling.java @@ -0,0 +1,540 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration options for the horizontal pod autoscaling feature, which
+ * increases or decreases the number of replica pods a replication controller
+ * has based on the resource usage of the existing pods.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.HorizontalPodAutoscaling} + */ +public final class HorizontalPodAutoscaling extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.HorizontalPodAutoscaling) + HorizontalPodAutoscalingOrBuilder { + private static final long serialVersionUID = 0L; + // Use HorizontalPodAutoscaling.newBuilder() to construct. + private HorizontalPodAutoscaling(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HorizontalPodAutoscaling() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HorizontalPodAutoscaling(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_HorizontalPodAutoscaling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_HorizontalPodAutoscaling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.HorizontalPodAutoscaling.class, + com.google.container.v1beta1.HorizontalPodAutoscaling.Builder.class); + } + + public static final int DISABLED_FIELD_NUMBER = 1; + private boolean disabled_; + /** + * + * + *
+   * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
+   * When enabled, it ensures that metrics are collected into Stackdriver
+   * Monitoring.
+   * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (disabled_ != false) { + output.writeBool(1, disabled_); + } + 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(); + disabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_HorizontalPodAutoscaling_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.HorizontalPodAutoscaling getDefaultInstanceForType() { + return com.google.container.v1beta1.HorizontalPodAutoscaling.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.HorizontalPodAutoscaling build() { + com.google.container.v1beta1.HorizontalPodAutoscaling result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.HorizontalPodAutoscaling buildPartial() { + com.google.container.v1beta1.HorizontalPodAutoscaling result = + new com.google.container.v1beta1.HorizontalPodAutoscaling(this); + result.disabled_ = disabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.HorizontalPodAutoscaling) { + return mergeFrom((com.google.container.v1beta1.HorizontalPodAutoscaling) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.HorizontalPodAutoscaling other) { + if (other == com.google.container.v1beta1.HorizontalPodAutoscaling.getDefaultInstance()) + return this; + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 boolean disabled_; + /** + * + * + *
+     * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
+     * When enabled, it ensures that metrics are collected into Stackdriver
+     * Monitoring.
+     * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + /** + * + * + *
+     * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
+     * When enabled, it ensures that metrics are collected into Stackdriver
+     * Monitoring.
+     * 
+ * + * bool disabled = 1; + * + * @param value The disabled to set. + * @return This builder for chaining. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
+     * When enabled, it ensures that metrics are collected into Stackdriver
+     * Monitoring.
+     * 
+ * + * bool disabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisabled() { + + disabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.HorizontalPodAutoscaling) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.HorizontalPodAutoscaling) + private static final com.google.container.v1beta1.HorizontalPodAutoscaling DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.HorizontalPodAutoscaling(); + } + + public static com.google.container.v1beta1.HorizontalPodAutoscaling getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HorizontalPodAutoscaling parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..00047639fc2e --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HorizontalPodAutoscalingOrBuilder.java @@ -0,0 +1,40 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface HorizontalPodAutoscalingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.HorizontalPodAutoscaling) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
+   * When enabled, it ensures that metrics are collected into Stackdriver
+   * Monitoring.
+   * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + boolean getDisabled(); +} diff --git a/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 new file mode 100644 index 000000000000..73cece29b678 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HttpLoadBalancing.java @@ -0,0 +1,536 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration options for the HTTP (L7) load balancing controller addon,
+ * which makes it easy to set up HTTP load balancers for services in a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.HttpLoadBalancing} + */ +public final class HttpLoadBalancing extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.HttpLoadBalancing) + HttpLoadBalancingOrBuilder { + private static final long serialVersionUID = 0L; + // Use HttpLoadBalancing.newBuilder() to construct. + private HttpLoadBalancing(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HttpLoadBalancing() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HttpLoadBalancing(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_HttpLoadBalancing_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_HttpLoadBalancing_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.HttpLoadBalancing.class, + com.google.container.v1beta1.HttpLoadBalancing.Builder.class); + } + + public static final int DISABLED_FIELD_NUMBER = 1; + private boolean disabled_; + /** + * + * + *
+   * Whether the HTTP Load Balancing controller is enabled in the cluster.
+   * When enabled, it runs a small pod in the cluster that manages the load
+   * balancers.
+   * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (disabled_ != false) { + output.writeBool(1, disabled_); + } + 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(); + disabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_HttpLoadBalancing_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.HttpLoadBalancing getDefaultInstanceForType() { + return com.google.container.v1beta1.HttpLoadBalancing.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.HttpLoadBalancing build() { + com.google.container.v1beta1.HttpLoadBalancing result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.HttpLoadBalancing buildPartial() { + com.google.container.v1beta1.HttpLoadBalancing result = + new com.google.container.v1beta1.HttpLoadBalancing(this); + result.disabled_ = disabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.HttpLoadBalancing) { + return mergeFrom((com.google.container.v1beta1.HttpLoadBalancing) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.HttpLoadBalancing other) { + if (other == com.google.container.v1beta1.HttpLoadBalancing.getDefaultInstance()) return this; + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 boolean disabled_; + /** + * + * + *
+     * Whether the HTTP Load Balancing controller is enabled in the cluster.
+     * When enabled, it runs a small pod in the cluster that manages the load
+     * balancers.
+     * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + /** + * + * + *
+     * Whether the HTTP Load Balancing controller is enabled in the cluster.
+     * When enabled, it runs a small pod in the cluster that manages the load
+     * balancers.
+     * 
+ * + * bool disabled = 1; + * + * @param value The disabled to set. + * @return This builder for chaining. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the HTTP Load Balancing controller is enabled in the cluster.
+     * When enabled, it runs a small pod in the cluster that manages the load
+     * balancers.
+     * 
+ * + * bool disabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisabled() { + + disabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.HttpLoadBalancing) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.HttpLoadBalancing) + private static final com.google.container.v1beta1.HttpLoadBalancing DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.HttpLoadBalancing(); + } + + public static com.google.container.v1beta1.HttpLoadBalancing getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HttpLoadBalancing parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..cc8ca3b2dff7 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HttpLoadBalancingOrBuilder.java @@ -0,0 +1,40 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface HttpLoadBalancingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.HttpLoadBalancing) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether the HTTP Load Balancing controller is enabled in the cluster.
+   * When enabled, it runs a small pod in the cluster that manages the load
+   * balancers.
+   * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + boolean getDisabled(); +} diff --git a/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 new file mode 100644 index 000000000000..39bf01c6194c --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ILBSubsettingConfig.java @@ -0,0 +1,529 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * 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(); + 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); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.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(); + + 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 boolean enabled_; + /** + * + * + *
+     * Enables l4 ILB subsetting for this cluster
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Enables l4 ILB subsetting for this cluster
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Enables l4 ILB subsetting for this cluster
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..f46385570e11 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ILBSubsettingConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +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 new file mode 100644 index 000000000000..94be552d4828 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicy.java @@ -0,0 +1,4076 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration for controlling how IPs are allocated in the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.IPAllocationPolicy} + */ +public final class IPAllocationPolicy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.IPAllocationPolicy) + IPAllocationPolicyOrBuilder { + private static final long serialVersionUID = 0L; + // Use IPAllocationPolicy.newBuilder() to construct. + private IPAllocationPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IPAllocationPolicy() { + subnetworkName_ = ""; + clusterIpv4Cidr_ = ""; + nodeIpv4Cidr_ = ""; + servicesIpv4Cidr_ = ""; + clusterSecondaryRangeName_ = ""; + servicesSecondaryRangeName_ = ""; + clusterIpv4CidrBlock_ = ""; + nodeIpv4CidrBlock_ = ""; + servicesIpv4CidrBlock_ = ""; + tpuIpv4CidrBlock_ = ""; + stackType_ = 0; + ipv6AccessType_ = 0; + subnetIpv6CidrBlock_ = ""; + servicesIpv6CidrBlock_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IPAllocationPolicy(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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) + } + + public static final int USE_IP_ALIASES_FIELD_NUMBER = 1; + private boolean useIpAliases_; + /** + * + * + *
+   * Whether alias IPs will be used for pod IPs in the cluster.
+   * This is used in conjunction with use_routes. It cannot
+   * be true if use_routes is true. If both use_ip_aliases and use_routes are
+   * false, then the server picks the default IP allocation mode
+   * 
+ * + * bool use_ip_aliases = 1; + * + * @return The useIpAliases. + */ + @java.lang.Override + public boolean getUseIpAliases() { + return useIpAliases_; + } + + public static final int CREATE_SUBNETWORK_FIELD_NUMBER = 2; + private boolean createSubnetwork_; + /** + * + * + *
+   * Whether a new subnetwork will be created automatically for the cluster.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * 
+ * + * bool create_subnetwork = 2; + * + * @return The createSubnetwork. + */ + @java.lang.Override + public boolean getCreateSubnetwork() { + return createSubnetwork_; + } + + public static final int SUBNETWORK_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object subnetworkName_; + /** + * + * + *
+   * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+   * this field is empty, then an automatic name will be chosen for the new
+   * subnetwork.
+   * 
+ * + * string subnetwork_name = 3; + * + * @return The subnetworkName. + */ + @java.lang.Override + public java.lang.String getSubnetworkName() { + java.lang.Object ref = subnetworkName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetworkName_ = s; + return s; + } + } + /** + * + * + *
+   * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+   * this field is empty, then an automatic name will be chosen for the new
+   * subnetwork.
+   * 
+ * + * string subnetwork_name = 3; + * + * @return The bytes for subnetworkName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSubnetworkNameBytes() { + java.lang.Object ref = subnetworkName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnetworkName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_IPV4_CIDR_FIELD_NUMBER = 4; + private volatile java.lang.Object clusterIpv4Cidr_; + /** + * + * + *
+   * This field is deprecated, use cluster_ipv4_cidr_block.
+   * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + * + * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1332 + * @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=1332 + * @return The bytes for clusterIpv4Cidr. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { + java.lang.Object ref = clusterIpv4Cidr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_IPV4_CIDR_FIELD_NUMBER = 5; + private volatile java.lang.Object nodeIpv4Cidr_; + /** + * + * + *
+   * This field is deprecated, use node_ipv4_cidr_block.
+   * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + * + * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1335 + * @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=1335 + * @return The bytes for nodeIpv4Cidr. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getNodeIpv4CidrBytes() { + java.lang.Object ref = nodeIpv4Cidr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICES_IPV4_CIDR_FIELD_NUMBER = 6; + private volatile java.lang.Object servicesIpv4Cidr_; + /** + * + * + *
+   * This field is deprecated, use services_ipv4_cidr_block.
+   * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + * + * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1338 + * @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=1338 + * @return The bytes for servicesIpv4Cidr. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { + java.lang.Object ref = servicesIpv4Cidr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servicesIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_SECONDARY_RANGE_NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object clusterSecondaryRangeName_; + /** + * + * + *
+   * The name of the secondary range to be used for the cluster CIDR
+   * block.  The secondary range will be used for pod IP
+   * addresses. This must be an existing secondary range associated
+   * with the cluster subnetwork.
+   * This field is only applicable with use_ip_aliases and
+   * create_subnetwork is false.
+   * 
+ * + * string cluster_secondary_range_name = 7; + * + * @return The clusterSecondaryRangeName. + */ + @java.lang.Override + public java.lang.String getClusterSecondaryRangeName() { + java.lang.Object ref = clusterSecondaryRangeName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterSecondaryRangeName_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the secondary range to be used for the cluster CIDR
+   * block.  The secondary range will be used for pod IP
+   * addresses. This must be an existing secondary range associated
+   * with the cluster subnetwork.
+   * This field is only applicable with use_ip_aliases and
+   * create_subnetwork is false.
+   * 
+ * + * string cluster_secondary_range_name = 7; + * + * @return The bytes for clusterSecondaryRangeName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterSecondaryRangeNameBytes() { + java.lang.Object ref = clusterSecondaryRangeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterSecondaryRangeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICES_SECONDARY_RANGE_NAME_FIELD_NUMBER = 8; + private volatile java.lang.Object servicesSecondaryRangeName_; + /** + * + * + *
+   * The name of the secondary range to be used as for the services
+   * CIDR block.  The secondary range will be used for service
+   * ClusterIPs. This must be an existing secondary range associated
+   * with the cluster subnetwork.
+   * This field is only applicable with use_ip_aliases and
+   * create_subnetwork is false.
+   * 
+ * + * string services_secondary_range_name = 8; + * + * @return The servicesSecondaryRangeName. + */ + @java.lang.Override + public java.lang.String getServicesSecondaryRangeName() { + java.lang.Object ref = servicesSecondaryRangeName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesSecondaryRangeName_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the secondary range to be used as for the services
+   * CIDR block.  The secondary range will be used for service
+   * ClusterIPs. This must be an existing secondary range associated
+   * with the cluster subnetwork.
+   * This field is only applicable with use_ip_aliases and
+   * create_subnetwork is false.
+   * 
+ * + * string services_secondary_range_name = 8; + * + * @return The bytes for servicesSecondaryRangeName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServicesSecondaryRangeNameBytes() { + java.lang.Object ref = servicesSecondaryRangeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servicesSecondaryRangeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_IPV4_CIDR_BLOCK_FIELD_NUMBER = 9; + private volatile java.lang.Object clusterIpv4CidrBlock_; + /** + * + * + *
+   * The IP address range for the cluster pod IPs. If this field is set, then
+   * `cluster.cluster_ipv4_cidr` must be left blank.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string cluster_ipv4_cidr_block = 9; + * + * @return The clusterIpv4CidrBlock. + */ + @java.lang.Override + public java.lang.String getClusterIpv4CidrBlock() { + java.lang.Object ref = clusterIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterIpv4CidrBlock_ = s; + return s; + } + } + /** + * + * + *
+   * The IP address range for the cluster pod IPs. If this field is set, then
+   * `cluster.cluster_ipv4_cidr` must be left blank.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string cluster_ipv4_cidr_block = 9; + * + * @return The bytes for clusterIpv4CidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterIpv4CidrBlockBytes() { + java.lang.Object ref = clusterIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_IPV4_CIDR_BLOCK_FIELD_NUMBER = 10; + private volatile java.lang.Object nodeIpv4CidrBlock_; + /** + * + * + *
+   * The IP address range of the instance IPs in this cluster.
+   * This is applicable only if `create_subnetwork` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string node_ipv4_cidr_block = 10; + * + * @return The nodeIpv4CidrBlock. + */ + @java.lang.Override + public java.lang.String getNodeIpv4CidrBlock() { + java.lang.Object ref = nodeIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeIpv4CidrBlock_ = s; + return s; + } + } + /** + * + * + *
+   * The IP address range of the instance IPs in this cluster.
+   * This is applicable only if `create_subnetwork` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string node_ipv4_cidr_block = 10; + * + * @return The bytes for nodeIpv4CidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNodeIpv4CidrBlockBytes() { + java.lang.Object ref = nodeIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICES_IPV4_CIDR_BLOCK_FIELD_NUMBER = 11; + private volatile java.lang.Object servicesIpv4CidrBlock_; + /** + * + * + *
+   * The IP address range of the services IPs in this cluster. If blank, a range
+   * will be automatically chosen with the default size.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string services_ipv4_cidr_block = 11; + * + * @return The servicesIpv4CidrBlock. + */ + @java.lang.Override + public java.lang.String getServicesIpv4CidrBlock() { + java.lang.Object ref = servicesIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesIpv4CidrBlock_ = s; + return s; + } + } + /** + * + * + *
+   * The IP address range of the services IPs in this cluster. If blank, a range
+   * will be automatically chosen with the default size.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string services_ipv4_cidr_block = 11; + * + * @return The bytes for servicesIpv4CidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServicesIpv4CidrBlockBytes() { + java.lang.Object ref = servicesIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servicesIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOW_ROUTE_OVERLAP_FIELD_NUMBER = 12; + private boolean allowRouteOverlap_; + /** + * + * + *
+   * If true, allow allocation of cluster CIDR ranges that overlap with certain
+   * kinds of network routes. By default we do not allow cluster CIDR ranges to
+   * intersect with any user declared routes. With allow_route_overlap == true,
+   * we allow overlapping with CIDR ranges that are larger than the cluster CIDR
+   * range.
+   * If this field is set to true, then cluster and services CIDRs must be
+   * fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
+   * 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
+   *    `services_ipv4_cidr_block` must be fully-specified.
+   * 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be
+   *    fully-specified.
+   * 
+ * + * bool allow_route_overlap = 12; + * + * @return The allowRouteOverlap. + */ + @java.lang.Override + public boolean getAllowRouteOverlap() { + return allowRouteOverlap_; + } + + public static final int TPU_IPV4_CIDR_BLOCK_FIELD_NUMBER = 13; + private volatile java.lang.Object tpuIpv4CidrBlock_; + /** + * + * + *
+   * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
+   * range will be automatically chosen with the default size.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * If unspecified, the range will use the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
+   * 
+ * + * string tpu_ipv4_cidr_block = 13; + * + * @return The tpuIpv4CidrBlock. + */ + @java.lang.Override + public java.lang.String getTpuIpv4CidrBlock() { + java.lang.Object ref = tpuIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tpuIpv4CidrBlock_ = s; + return s; + } + } + /** + * + * + *
+   * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
+   * range will be automatically chosen with the default size.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * If unspecified, the range will use the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
+   * 
+ * + * string tpu_ipv4_cidr_block = 13; + * + * @return The bytes for tpuIpv4CidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTpuIpv4CidrBlockBytes() { + java.lang.Object ref = tpuIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tpuIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USE_ROUTES_FIELD_NUMBER = 15; + private boolean useRoutes_; + /** + * + * + *
+   * Whether routes will be used for pod IPs in the cluster.
+   * This is used in conjunction with use_ip_aliases. It cannot be true if
+   * use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
+   * then the server picks the default IP allocation mode
+   * 
+ * + * bool use_routes = 15; + * + * @return The useRoutes. + */ + @java.lang.Override + public boolean getUseRoutes() { + return useRoutes_; + } + + public static final int STACK_TYPE_FIELD_NUMBER = 16; + private int stackType_; + /** + * + * + *
+   * 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.IPAllocationPolicy.StackType result = + com.google.container.v1beta1.IPAllocationPolicy.StackType.valueOf(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_; + /** + * + * + *
+   * 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.IPAllocationPolicy.IPv6AccessType result = + com.google.container.v1beta1.IPAllocationPolicy.IPv6AccessType.valueOf(ipv6AccessType_); + return result == null + ? com.google.container.v1beta1.IPAllocationPolicy.IPv6AccessType.UNRECOGNIZED + : result; + } + + public static final int SUBNET_IPV6_CIDR_BLOCK_FIELD_NUMBER = 22; + 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; + 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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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 (!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_); + } + 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 (!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_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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 (!getSubnetIpv6CidrBlock().equals(other.getSubnetIpv6CidrBlock())) return false; + if (!getServicesIpv6CidrBlock().equals(other.getServicesIpv6CidrBlock())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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_; + 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(); + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + useIpAliases_ = false; + + createSubnetwork_ = false; + + subnetworkName_ = ""; + + clusterIpv4Cidr_ = ""; + + nodeIpv4Cidr_ = ""; + + servicesIpv4Cidr_ = ""; + + clusterSecondaryRangeName_ = ""; + + servicesSecondaryRangeName_ = ""; + + clusterIpv4CidrBlock_ = ""; + + nodeIpv4CidrBlock_ = ""; + + servicesIpv4CidrBlock_ = ""; + + allowRouteOverlap_ = false; + + tpuIpv4CidrBlock_ = ""; + + useRoutes_ = false; + + stackType_ = 0; + + ipv6AccessType_ = 0; + + subnetIpv6CidrBlock_ = ""; + + servicesIpv6CidrBlock_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_IPAllocationPolicy_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.IPAllocationPolicy getDefaultInstanceForType() { + return com.google.container.v1beta1.IPAllocationPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.IPAllocationPolicy build() { + com.google.container.v1beta1.IPAllocationPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.IPAllocationPolicy buildPartial() { + com.google.container.v1beta1.IPAllocationPolicy result = + new com.google.container.v1beta1.IPAllocationPolicy(this); + result.useIpAliases_ = useIpAliases_; + result.createSubnetwork_ = createSubnetwork_; + result.subnetworkName_ = subnetworkName_; + result.clusterIpv4Cidr_ = clusterIpv4Cidr_; + result.nodeIpv4Cidr_ = nodeIpv4Cidr_; + result.servicesIpv4Cidr_ = servicesIpv4Cidr_; + result.clusterSecondaryRangeName_ = clusterSecondaryRangeName_; + result.servicesSecondaryRangeName_ = servicesSecondaryRangeName_; + result.clusterIpv4CidrBlock_ = clusterIpv4CidrBlock_; + result.nodeIpv4CidrBlock_ = nodeIpv4CidrBlock_; + result.servicesIpv4CidrBlock_ = servicesIpv4CidrBlock_; + result.allowRouteOverlap_ = allowRouteOverlap_; + result.tpuIpv4CidrBlock_ = tpuIpv4CidrBlock_; + result.useRoutes_ = useRoutes_; + result.stackType_ = stackType_; + result.ipv6AccessType_ = ipv6AccessType_; + result.subnetIpv6CidrBlock_ = subnetIpv6CidrBlock_; + result.servicesIpv6CidrBlock_ = servicesIpv6CidrBlock_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.IPAllocationPolicy) { + return mergeFrom((com.google.container.v1beta1.IPAllocationPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.IPAllocationPolicy other) { + if (other == com.google.container.v1beta1.IPAllocationPolicy.getDefaultInstance()) + return this; + if (other.getUseIpAliases() != false) { + setUseIpAliases(other.getUseIpAliases()); + } + if (other.getCreateSubnetwork() != false) { + setCreateSubnetwork(other.getCreateSubnetwork()); + } + if (!other.getSubnetworkName().isEmpty()) { + subnetworkName_ = other.subnetworkName_; + onChanged(); + } + if (!other.getClusterIpv4Cidr().isEmpty()) { + clusterIpv4Cidr_ = other.clusterIpv4Cidr_; + onChanged(); + } + if (!other.getNodeIpv4Cidr().isEmpty()) { + nodeIpv4Cidr_ = other.nodeIpv4Cidr_; + onChanged(); + } + if (!other.getServicesIpv4Cidr().isEmpty()) { + servicesIpv4Cidr_ = other.servicesIpv4Cidr_; + onChanged(); + } + if (!other.getClusterSecondaryRangeName().isEmpty()) { + clusterSecondaryRangeName_ = other.clusterSecondaryRangeName_; + onChanged(); + } + if (!other.getServicesSecondaryRangeName().isEmpty()) { + servicesSecondaryRangeName_ = other.servicesSecondaryRangeName_; + onChanged(); + } + if (!other.getClusterIpv4CidrBlock().isEmpty()) { + clusterIpv4CidrBlock_ = other.clusterIpv4CidrBlock_; + onChanged(); + } + if (!other.getNodeIpv4CidrBlock().isEmpty()) { + nodeIpv4CidrBlock_ = other.nodeIpv4CidrBlock_; + onChanged(); + } + if (!other.getServicesIpv4CidrBlock().isEmpty()) { + servicesIpv4CidrBlock_ = other.servicesIpv4CidrBlock_; + onChanged(); + } + if (other.getAllowRouteOverlap() != false) { + setAllowRouteOverlap(other.getAllowRouteOverlap()); + } + if (!other.getTpuIpv4CidrBlock().isEmpty()) { + tpuIpv4CidrBlock_ = other.tpuIpv4CidrBlock_; + onChanged(); + } + if (other.getUseRoutes() != false) { + setUseRoutes(other.getUseRoutes()); + } + if (other.stackType_ != 0) { + setStackTypeValue(other.getStackTypeValue()); + } + if (other.ipv6AccessType_ != 0) { + setIpv6AccessTypeValue(other.getIpv6AccessTypeValue()); + } + if (!other.getSubnetIpv6CidrBlock().isEmpty()) { + subnetIpv6CidrBlock_ = other.subnetIpv6CidrBlock_; + onChanged(); + } + if (!other.getServicesIpv6CidrBlock().isEmpty()) { + servicesIpv6CidrBlock_ = other.servicesIpv6CidrBlock_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 8 + case 16: + { + createSubnetwork_ = input.readBool(); + + break; + } // case 16 + case 26: + { + subnetworkName_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + clusterIpv4Cidr_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + nodeIpv4Cidr_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + servicesIpv4Cidr_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: + { + clusterSecondaryRangeName_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + servicesSecondaryRangeName_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: + { + clusterIpv4CidrBlock_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 82: + { + nodeIpv4CidrBlock_ = input.readStringRequireUtf8(); + + break; + } // case 82 + case 90: + { + servicesIpv4CidrBlock_ = input.readStringRequireUtf8(); + + break; + } // case 90 + case 96: + { + allowRouteOverlap_ = input.readBool(); + + break; + } // case 96 + case 106: + { + tpuIpv4CidrBlock_ = input.readStringRequireUtf8(); + + break; + } // case 106 + case 120: + { + useRoutes_ = input.readBool(); + + break; + } // case 120 + case 128: + { + stackType_ = input.readEnum(); + + break; + } // case 128 + case 136: + { + ipv6AccessType_ = input.readEnum(); + + break; + } // case 136 + case 178: + { + subnetIpv6CidrBlock_ = input.readStringRequireUtf8(); + + break; + } // case 178 + case 186: + { + servicesIpv6CidrBlock_ = input.readStringRequireUtf8(); + + break; + } // case 186 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private boolean useIpAliases_; + /** + * + * + *
+     * Whether alias IPs will be used for pod IPs in the cluster.
+     * This is used in conjunction with use_routes. It cannot
+     * be true if use_routes is true. If both use_ip_aliases and use_routes are
+     * false, then the server picks the default IP allocation mode
+     * 
+ * + * bool use_ip_aliases = 1; + * + * @return The useIpAliases. + */ + @java.lang.Override + public boolean getUseIpAliases() { + return useIpAliases_; + } + /** + * + * + *
+     * Whether alias IPs will be used for pod IPs in the cluster.
+     * This is used in conjunction with use_routes. It cannot
+     * be true if use_routes is true. If both use_ip_aliases and use_routes are
+     * false, then the server picks the default IP allocation mode
+     * 
+ * + * bool use_ip_aliases = 1; + * + * @param value The useIpAliases to set. + * @return This builder for chaining. + */ + public Builder setUseIpAliases(boolean value) { + + useIpAliases_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether alias IPs will be used for pod IPs in the cluster.
+     * This is used in conjunction with use_routes. It cannot
+     * be true if use_routes is true. If both use_ip_aliases and use_routes are
+     * false, then the server picks the default IP allocation mode
+     * 
+ * + * bool use_ip_aliases = 1; + * + * @return This builder for chaining. + */ + public Builder clearUseIpAliases() { + + useIpAliases_ = false; + onChanged(); + return this; + } + + private boolean createSubnetwork_; + /** + * + * + *
+     * Whether a new subnetwork will be created automatically for the cluster.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * 
+ * + * bool create_subnetwork = 2; + * + * @return The createSubnetwork. + */ + @java.lang.Override + public boolean getCreateSubnetwork() { + return createSubnetwork_; + } + /** + * + * + *
+     * Whether a new subnetwork will be created automatically for the cluster.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * 
+ * + * bool create_subnetwork = 2; + * + * @param value The createSubnetwork to set. + * @return This builder for chaining. + */ + public Builder setCreateSubnetwork(boolean value) { + + createSubnetwork_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether a new subnetwork will be created automatically for the cluster.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * 
+ * + * bool create_subnetwork = 2; + * + * @return This builder for chaining. + */ + public Builder clearCreateSubnetwork() { + + createSubnetwork_ = false; + onChanged(); + return this; + } + + private java.lang.Object subnetworkName_ = ""; + /** + * + * + *
+     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+     * this field is empty, then an automatic name will be chosen for the new
+     * subnetwork.
+     * 
+ * + * string subnetwork_name = 3; + * + * @return The subnetworkName. + */ + public java.lang.String getSubnetworkName() { + java.lang.Object ref = subnetworkName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetworkName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+     * this field is empty, then an automatic name will be chosen for the new
+     * subnetwork.
+     * 
+ * + * string subnetwork_name = 3; + * + * @return The bytes for subnetworkName. + */ + public com.google.protobuf.ByteString getSubnetworkNameBytes() { + java.lang.Object ref = subnetworkName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnetworkName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+     * this field is empty, then an automatic name will be chosen for the new
+     * subnetwork.
+     * 
+ * + * string subnetwork_name = 3; + * + * @param value The subnetworkName to set. + * @return This builder for chaining. + */ + public Builder setSubnetworkName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subnetworkName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+     * this field is empty, then an automatic name will be chosen for the new
+     * subnetwork.
+     * 
+ * + * string subnetwork_name = 3; + * + * @return This builder for chaining. + */ + public Builder clearSubnetworkName() { + + subnetworkName_ = getDefaultInstance().getSubnetworkName(); + onChanged(); + return this; + } + /** + * + * + *
+     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+     * this field is empty, then an automatic name will be chosen for the new
+     * subnetwork.
+     * 
+ * + * string subnetwork_name = 3; + * + * @param value The bytes for subnetworkName to set. + * @return This builder for chaining. + */ + public Builder setSubnetworkNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subnetworkName_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterIpv4Cidr_ = ""; + /** + * + * + *
+     * This field is deprecated, use cluster_ipv4_cidr_block.
+     * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + * + * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1332 + * @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=1332 + * @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=1332 + * @param value The clusterIpv4Cidr to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIpv4Cidr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterIpv4Cidr_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * This field is deprecated, use cluster_ipv4_cidr_block.
+     * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + * + * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1332 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterIpv4Cidr() { + + clusterIpv4Cidr_ = getDefaultInstance().getClusterIpv4Cidr(); + onChanged(); + return this; + } + /** + * + * + *
+     * This field is deprecated, use cluster_ipv4_cidr_block.
+     * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + * + * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1332 + * @param value The bytes for clusterIpv4Cidr to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIpv4CidrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterIpv4Cidr_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodeIpv4Cidr_ = ""; + /** + * + * + *
+     * This field is deprecated, use node_ipv4_cidr_block.
+     * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + * + * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1335 + * @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=1335 + * @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=1335 + * @param value The nodeIpv4Cidr to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodeIpv4Cidr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeIpv4Cidr_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * This field is deprecated, use node_ipv4_cidr_block.
+     * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + * + * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1335 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearNodeIpv4Cidr() { + + nodeIpv4Cidr_ = getDefaultInstance().getNodeIpv4Cidr(); + onChanged(); + return this; + } + /** + * + * + *
+     * This field is deprecated, use node_ipv4_cidr_block.
+     * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + * + * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1335 + * @param value The bytes for nodeIpv4Cidr to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodeIpv4CidrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeIpv4Cidr_ = value; + onChanged(); + return this; + } + + private java.lang.Object servicesIpv4Cidr_ = ""; + /** + * + * + *
+     * This field is deprecated, use services_ipv4_cidr_block.
+     * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + * + * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1338 + * @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=1338 + * @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=1338 + * @param value The servicesIpv4Cidr to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setServicesIpv4Cidr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + servicesIpv4Cidr_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * This field is deprecated, use services_ipv4_cidr_block.
+     * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + * + * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1338 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearServicesIpv4Cidr() { + + servicesIpv4Cidr_ = getDefaultInstance().getServicesIpv4Cidr(); + onChanged(); + return this; + } + /** + * + * + *
+     * This field is deprecated, use services_ipv4_cidr_block.
+     * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + * + * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1338 + * @param value The bytes for servicesIpv4Cidr to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setServicesIpv4CidrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + servicesIpv4Cidr_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterSecondaryRangeName_ = ""; + /** + * + * + *
+     * The name of the secondary range to be used for the cluster CIDR
+     * block.  The secondary range will be used for pod IP
+     * addresses. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable with use_ip_aliases and
+     * create_subnetwork is false.
+     * 
+ * + * string cluster_secondary_range_name = 7; + * + * @return The clusterSecondaryRangeName. + */ + public java.lang.String getClusterSecondaryRangeName() { + java.lang.Object ref = clusterSecondaryRangeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterSecondaryRangeName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the secondary range to be used for the cluster CIDR
+     * block.  The secondary range will be used for pod IP
+     * addresses. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable with use_ip_aliases and
+     * create_subnetwork is false.
+     * 
+ * + * string cluster_secondary_range_name = 7; + * + * @return The bytes for clusterSecondaryRangeName. + */ + public com.google.protobuf.ByteString getClusterSecondaryRangeNameBytes() { + java.lang.Object ref = clusterSecondaryRangeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterSecondaryRangeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the secondary range to be used for the cluster CIDR
+     * block.  The secondary range will be used for pod IP
+     * addresses. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable with use_ip_aliases and
+     * create_subnetwork is false.
+     * 
+ * + * string cluster_secondary_range_name = 7; + * + * @param value The clusterSecondaryRangeName to set. + * @return This builder for chaining. + */ + public Builder setClusterSecondaryRangeName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterSecondaryRangeName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the secondary range to be used for the cluster CIDR
+     * block.  The secondary range will be used for pod IP
+     * addresses. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable with use_ip_aliases and
+     * create_subnetwork is false.
+     * 
+ * + * string cluster_secondary_range_name = 7; + * + * @return This builder for chaining. + */ + public Builder clearClusterSecondaryRangeName() { + + clusterSecondaryRangeName_ = getDefaultInstance().getClusterSecondaryRangeName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the secondary range to be used for the cluster CIDR
+     * block.  The secondary range will be used for pod IP
+     * addresses. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable with use_ip_aliases and
+     * create_subnetwork is false.
+     * 
+ * + * string cluster_secondary_range_name = 7; + * + * @param value The bytes for clusterSecondaryRangeName to set. + * @return This builder for chaining. + */ + public Builder setClusterSecondaryRangeNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterSecondaryRangeName_ = value; + onChanged(); + return this; + } + + private java.lang.Object servicesSecondaryRangeName_ = ""; + /** + * + * + *
+     * The name of the secondary range to be used as for the services
+     * CIDR block.  The secondary range will be used for service
+     * ClusterIPs. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable with use_ip_aliases and
+     * create_subnetwork is false.
+     * 
+ * + * string services_secondary_range_name = 8; + * + * @return The servicesSecondaryRangeName. + */ + public java.lang.String getServicesSecondaryRangeName() { + java.lang.Object ref = servicesSecondaryRangeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesSecondaryRangeName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the secondary range to be used as for the services
+     * CIDR block.  The secondary range will be used for service
+     * ClusterIPs. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable with use_ip_aliases and
+     * create_subnetwork is false.
+     * 
+ * + * string services_secondary_range_name = 8; + * + * @return The bytes for servicesSecondaryRangeName. + */ + public com.google.protobuf.ByteString getServicesSecondaryRangeNameBytes() { + java.lang.Object ref = servicesSecondaryRangeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servicesSecondaryRangeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the secondary range to be used as for the services
+     * CIDR block.  The secondary range will be used for service
+     * ClusterIPs. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable with use_ip_aliases and
+     * create_subnetwork is false.
+     * 
+ * + * string services_secondary_range_name = 8; + * + * @param value The servicesSecondaryRangeName to set. + * @return This builder for chaining. + */ + public Builder setServicesSecondaryRangeName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + servicesSecondaryRangeName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the secondary range to be used as for the services
+     * CIDR block.  The secondary range will be used for service
+     * ClusterIPs. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable with use_ip_aliases and
+     * create_subnetwork is false.
+     * 
+ * + * string services_secondary_range_name = 8; + * + * @return This builder for chaining. + */ + public Builder clearServicesSecondaryRangeName() { + + servicesSecondaryRangeName_ = getDefaultInstance().getServicesSecondaryRangeName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the secondary range to be used as for the services
+     * CIDR block.  The secondary range will be used for service
+     * ClusterIPs. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable with use_ip_aliases and
+     * create_subnetwork is false.
+     * 
+ * + * string services_secondary_range_name = 8; + * + * @param value The bytes for servicesSecondaryRangeName to set. + * @return This builder for chaining. + */ + public Builder setServicesSecondaryRangeNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + servicesSecondaryRangeName_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterIpv4CidrBlock_ = ""; + /** + * + * + *
+     * The IP address range for the cluster pod IPs. If this field is set, then
+     * `cluster.cluster_ipv4_cidr` must be left blank.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string cluster_ipv4_cidr_block = 9; + * + * @return The clusterIpv4CidrBlock. + */ + public java.lang.String getClusterIpv4CidrBlock() { + java.lang.Object ref = clusterIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The IP address range for the cluster pod IPs. If this field is set, then
+     * `cluster.cluster_ipv4_cidr` must be left blank.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string cluster_ipv4_cidr_block = 9; + * + * @return The bytes for clusterIpv4CidrBlock. + */ + public com.google.protobuf.ByteString getClusterIpv4CidrBlockBytes() { + java.lang.Object ref = clusterIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The IP address range for the cluster pod IPs. If this field is set, then
+     * `cluster.cluster_ipv4_cidr` must be left blank.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string cluster_ipv4_cidr_block = 9; + * + * @param value The clusterIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setClusterIpv4CidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterIpv4CidrBlock_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address range for the cluster pod IPs. If this field is set, then
+     * `cluster.cluster_ipv4_cidr` must be left blank.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string cluster_ipv4_cidr_block = 9; + * + * @return This builder for chaining. + */ + public Builder clearClusterIpv4CidrBlock() { + + clusterIpv4CidrBlock_ = getDefaultInstance().getClusterIpv4CidrBlock(); + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address range for the cluster pod IPs. If this field is set, then
+     * `cluster.cluster_ipv4_cidr` must be left blank.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string cluster_ipv4_cidr_block = 9; + * + * @param value The bytes for clusterIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setClusterIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterIpv4CidrBlock_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodeIpv4CidrBlock_ = ""; + /** + * + * + *
+     * The IP address range of the instance IPs in this cluster.
+     * This is applicable only if `create_subnetwork` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string node_ipv4_cidr_block = 10; + * + * @return The nodeIpv4CidrBlock. + */ + public java.lang.String getNodeIpv4CidrBlock() { + java.lang.Object ref = nodeIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The IP address range of the instance IPs in this cluster.
+     * This is applicable only if `create_subnetwork` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string node_ipv4_cidr_block = 10; + * + * @return The bytes for nodeIpv4CidrBlock. + */ + public com.google.protobuf.ByteString getNodeIpv4CidrBlockBytes() { + java.lang.Object ref = nodeIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The IP address range of the instance IPs in this cluster.
+     * This is applicable only if `create_subnetwork` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string node_ipv4_cidr_block = 10; + * + * @param value The nodeIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setNodeIpv4CidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeIpv4CidrBlock_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address range of the instance IPs in this cluster.
+     * This is applicable only if `create_subnetwork` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string node_ipv4_cidr_block = 10; + * + * @return This builder for chaining. + */ + public Builder clearNodeIpv4CidrBlock() { + + nodeIpv4CidrBlock_ = getDefaultInstance().getNodeIpv4CidrBlock(); + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address range of the instance IPs in this cluster.
+     * This is applicable only if `create_subnetwork` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string node_ipv4_cidr_block = 10; + * + * @param value The bytes for nodeIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setNodeIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeIpv4CidrBlock_ = value; + onChanged(); + return this; + } + + private java.lang.Object servicesIpv4CidrBlock_ = ""; + /** + * + * + *
+     * The IP address range of the services IPs in this cluster. If blank, a range
+     * will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string services_ipv4_cidr_block = 11; + * + * @return The servicesIpv4CidrBlock. + */ + public java.lang.String getServicesIpv4CidrBlock() { + java.lang.Object ref = servicesIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The IP address range of the services IPs in this cluster. If blank, a range
+     * will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string services_ipv4_cidr_block = 11; + * + * @return The bytes for servicesIpv4CidrBlock. + */ + public com.google.protobuf.ByteString getServicesIpv4CidrBlockBytes() { + java.lang.Object ref = servicesIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servicesIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The IP address range of the services IPs in this cluster. If blank, a range
+     * will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string services_ipv4_cidr_block = 11; + * + * @param value The servicesIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setServicesIpv4CidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + servicesIpv4CidrBlock_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address range of the services IPs in this cluster. If blank, a range
+     * will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string services_ipv4_cidr_block = 11; + * + * @return This builder for chaining. + */ + public Builder clearServicesIpv4CidrBlock() { + + servicesIpv4CidrBlock_ = getDefaultInstance().getServicesIpv4CidrBlock(); + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address range of the services IPs in this cluster. If blank, a range
+     * will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string services_ipv4_cidr_block = 11; + * + * @param value The bytes for servicesIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setServicesIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + servicesIpv4CidrBlock_ = value; + onChanged(); + return this; + } + + private boolean allowRouteOverlap_; + /** + * + * + *
+     * If true, allow allocation of cluster CIDR ranges that overlap with certain
+     * kinds of network routes. By default we do not allow cluster CIDR ranges to
+     * intersect with any user declared routes. With allow_route_overlap == true,
+     * we allow overlapping with CIDR ranges that are larger than the cluster CIDR
+     * range.
+     * If this field is set to true, then cluster and services CIDRs must be
+     * fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
+     * 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
+     *    `services_ipv4_cidr_block` must be fully-specified.
+     * 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be
+     *    fully-specified.
+     * 
+ * + * bool allow_route_overlap = 12; + * + * @return The allowRouteOverlap. + */ + @java.lang.Override + public boolean getAllowRouteOverlap() { + return allowRouteOverlap_; + } + /** + * + * + *
+     * If true, allow allocation of cluster CIDR ranges that overlap with certain
+     * kinds of network routes. By default we do not allow cluster CIDR ranges to
+     * intersect with any user declared routes. With allow_route_overlap == true,
+     * we allow overlapping with CIDR ranges that are larger than the cluster CIDR
+     * range.
+     * If this field is set to true, then cluster and services CIDRs must be
+     * fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
+     * 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
+     *    `services_ipv4_cidr_block` must be fully-specified.
+     * 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be
+     *    fully-specified.
+     * 
+ * + * bool allow_route_overlap = 12; + * + * @param value The allowRouteOverlap to set. + * @return This builder for chaining. + */ + public Builder setAllowRouteOverlap(boolean value) { + + allowRouteOverlap_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If true, allow allocation of cluster CIDR ranges that overlap with certain
+     * kinds of network routes. By default we do not allow cluster CIDR ranges to
+     * intersect with any user declared routes. With allow_route_overlap == true,
+     * we allow overlapping with CIDR ranges that are larger than the cluster CIDR
+     * range.
+     * If this field is set to true, then cluster and services CIDRs must be
+     * fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
+     * 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
+     *    `services_ipv4_cidr_block` must be fully-specified.
+     * 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be
+     *    fully-specified.
+     * 
+ * + * bool allow_route_overlap = 12; + * + * @return This builder for chaining. + */ + public Builder clearAllowRouteOverlap() { + + allowRouteOverlap_ = false; + onChanged(); + return this; + } + + private java.lang.Object tpuIpv4CidrBlock_ = ""; + /** + * + * + *
+     * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
+     * range will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * If unspecified, the range will use the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
+     * 
+ * + * string tpu_ipv4_cidr_block = 13; + * + * @return The tpuIpv4CidrBlock. + */ + public java.lang.String getTpuIpv4CidrBlock() { + java.lang.Object ref = tpuIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tpuIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
+     * range will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * If unspecified, the range will use the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
+     * 
+ * + * string tpu_ipv4_cidr_block = 13; + * + * @return The bytes for tpuIpv4CidrBlock. + */ + public com.google.protobuf.ByteString getTpuIpv4CidrBlockBytes() { + java.lang.Object ref = tpuIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tpuIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
+     * range will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * If unspecified, the range will use the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
+     * 
+ * + * string tpu_ipv4_cidr_block = 13; + * + * @param value The tpuIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setTpuIpv4CidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tpuIpv4CidrBlock_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
+     * range will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * If unspecified, the range will use the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
+     * 
+ * + * string tpu_ipv4_cidr_block = 13; + * + * @return This builder for chaining. + */ + public Builder clearTpuIpv4CidrBlock() { + + tpuIpv4CidrBlock_ = getDefaultInstance().getTpuIpv4CidrBlock(); + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
+     * range will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * If unspecified, the range will use the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
+     * 
+ * + * string tpu_ipv4_cidr_block = 13; + * + * @param value The bytes for tpuIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setTpuIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tpuIpv4CidrBlock_ = value; + onChanged(); + return this; + } + + private boolean useRoutes_; + /** + * + * + *
+     * Whether routes will be used for pod IPs in the cluster.
+     * This is used in conjunction with use_ip_aliases. It cannot be true if
+     * use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
+     * then the server picks the default IP allocation mode
+     * 
+ * + * bool use_routes = 15; + * + * @return The useRoutes. + */ + @java.lang.Override + public boolean getUseRoutes() { + return useRoutes_; + } + /** + * + * + *
+     * Whether routes will be used for pod IPs in the cluster.
+     * This is used in conjunction with use_ip_aliases. It cannot be true if
+     * use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
+     * then the server picks the default IP allocation mode
+     * 
+ * + * bool use_routes = 15; + * + * @param value The useRoutes to set. + * @return This builder for chaining. + */ + public Builder setUseRoutes(boolean value) { + + useRoutes_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether routes will be used for pod IPs in the cluster.
+     * This is used in conjunction with use_ip_aliases. It cannot be true if
+     * use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
+     * then the server picks the default IP allocation mode
+     * 
+ * + * bool use_routes = 15; + * + * @return This builder for chaining. + */ + public Builder clearUseRoutes() { + + useRoutes_ = false; + onChanged(); + return this; + } + + 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; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.IPAllocationPolicy.StackType result = + com.google.container.v1beta1.IPAllocationPolicy.StackType.valueOf(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(); + } + + 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() { + + 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; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.IPAllocationPolicy.IPv6AccessType result = + com.google.container.v1beta1.IPAllocationPolicy.IPv6AccessType.valueOf(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(); + } + + 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() { + + ipv6AccessType_ = 0; + onChanged(); + return this; + } + + 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; + 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(); + 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; + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..c8bee2cae859 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicyOrBuilder.java @@ -0,0 +1,566 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface IPAllocationPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.IPAllocationPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether alias IPs will be used for pod IPs in the cluster.
+   * This is used in conjunction with use_routes. It cannot
+   * be true if use_routes is true. If both use_ip_aliases and use_routes are
+   * false, then the server picks the default IP allocation mode
+   * 
+ * + * bool use_ip_aliases = 1; + * + * @return The useIpAliases. + */ + boolean getUseIpAliases(); + + /** + * + * + *
+   * Whether a new subnetwork will be created automatically for the cluster.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * 
+ * + * bool create_subnetwork = 2; + * + * @return The createSubnetwork. + */ + boolean getCreateSubnetwork(); + + /** + * + * + *
+   * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+   * this field is empty, then an automatic name will be chosen for the new
+   * subnetwork.
+   * 
+ * + * string subnetwork_name = 3; + * + * @return The subnetworkName. + */ + java.lang.String getSubnetworkName(); + /** + * + * + *
+   * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+   * this field is empty, then an automatic name will be chosen for the new
+   * subnetwork.
+   * 
+ * + * string subnetwork_name = 3; + * + * @return The bytes for subnetworkName. + */ + com.google.protobuf.ByteString getSubnetworkNameBytes(); + + /** + * + * + *
+   * This field is deprecated, use cluster_ipv4_cidr_block.
+   * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + * + * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1332 + * @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=1332 + * @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=1335 + * @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=1335 + * @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=1338 + * @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=1338 + * @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(); + + /** + * + * + *
+   * 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(); +} 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 new file mode 100644 index 000000000000..f74ade12da67 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IdentityServiceConfig.java @@ -0,0 +1,529 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * 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(); + 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); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.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(); + + 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 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether to enable the Identity Service component
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.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 new file mode 100644 index 000000000000..f1fb042b871d --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IdentityServiceConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface 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/IntraNodeVisibilityConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IntraNodeVisibilityConfig.java new file mode 100644 index 000000000000..f2fb9d76c178 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IntraNodeVisibilityConfig.java @@ -0,0 +1,530 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * IntraNodeVisibilityConfig contains the desired config of the intra-node
+ * visibility on this cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.IntraNodeVisibilityConfig} + */ +public final class IntraNodeVisibilityConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.IntraNodeVisibilityConfig) + IntraNodeVisibilityConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use IntraNodeVisibilityConfig.newBuilder() to construct. + private IntraNodeVisibilityConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IntraNodeVisibilityConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IntraNodeVisibilityConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_IntraNodeVisibilityConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_IntraNodeVisibilityConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.IntraNodeVisibilityConfig.class, + com.google.container.v1beta1.IntraNodeVisibilityConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Enables intra node visibility for this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + 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(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_IntraNodeVisibilityConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.IntraNodeVisibilityConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.IntraNodeVisibilityConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.IntraNodeVisibilityConfig build() { + com.google.container.v1beta1.IntraNodeVisibilityConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.IntraNodeVisibilityConfig buildPartial() { + com.google.container.v1beta1.IntraNodeVisibilityConfig result = + new com.google.container.v1beta1.IntraNodeVisibilityConfig(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.IntraNodeVisibilityConfig) { + return mergeFrom((com.google.container.v1beta1.IntraNodeVisibilityConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.IntraNodeVisibilityConfig other) { + if (other == com.google.container.v1beta1.IntraNodeVisibilityConfig.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 boolean enabled_; + /** + * + * + *
+     * Enables intra node visibility for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Enables intra node visibility for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Enables intra node visibility for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.IntraNodeVisibilityConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.IntraNodeVisibilityConfig) + private static final com.google.container.v1beta1.IntraNodeVisibilityConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.IntraNodeVisibilityConfig(); + } + + public static com.google.container.v1beta1.IntraNodeVisibilityConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IntraNodeVisibilityConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..0cfb8e6df040 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IntraNodeVisibilityConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface IntraNodeVisibilityConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.IntraNodeVisibilityConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Enables intra node visibility for this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/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 new file mode 100644 index 000000000000..11258c9d2e82 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfig.java @@ -0,0 +1,852 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration options for Istio addon.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.IstioConfig} + */ +public final class IstioConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.IstioConfig) + IstioConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use IstioConfig.newBuilder() to construct. + private IstioConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IstioConfig() { + auth_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IstioConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_IstioConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_IstioConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.IstioConfig.class, + com.google.container.v1beta1.IstioConfig.Builder.class); + } + + /** + * + * + *
+   * Istio auth mode, https://istio.io/docs/concepts/security/mutual-tls.html
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.IstioConfig.IstioAuthMode} + */ + public enum IstioAuthMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * auth not enabled
+     * 
+ * + * AUTH_NONE = 0; + */ + AUTH_NONE(0), + /** + * + * + *
+     * auth mutual TLS enabled
+     * 
+ * + * AUTH_MUTUAL_TLS = 1; + */ + AUTH_MUTUAL_TLS(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * auth not enabled
+     * 
+ * + * AUTH_NONE = 0; + */ + public static final int AUTH_NONE_VALUE = 0; + /** + * + * + *
+     * auth mutual TLS enabled
+     * 
+ * + * AUTH_MUTUAL_TLS = 1; + */ + public static final int AUTH_MUTUAL_TLS_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static IstioAuthMode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static IstioAuthMode forNumber(int value) { + switch (value) { + case 0: + return AUTH_NONE; + case 1: + return AUTH_MUTUAL_TLS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public IstioAuthMode findValueByNumber(int number) { + return IstioAuthMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1beta1.IstioConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final IstioAuthMode[] VALUES = values(); + + public static IstioAuthMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private IstioAuthMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.IstioConfig.IstioAuthMode) + } + + public static final int DISABLED_FIELD_NUMBER = 1; + private boolean disabled_; + /** + * + * + *
+   * Whether Istio is enabled for this cluster.
+   * 
+ * + * bool disabled = 1 [deprecated = true]; + * + * @deprecated google.container.v1beta1.IstioConfig.disabled is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1208 + * @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_; + /** + * + * + *
+   * 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=1211 + * @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=1211 + * @return The auth. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.container.v1beta1.IstioConfig.IstioAuthMode getAuth() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.IstioConfig.IstioAuthMode result = + com.google.container.v1beta1.IstioConfig.IstioAuthMode.valueOf(auth_); + return result == null + ? com.google.container.v1beta1.IstioConfig.IstioAuthMode.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (disabled_ != false) { + output.writeBool(1, disabled_); + } + if (auth_ != com.google.container.v1beta1.IstioConfig.IstioAuthMode.AUTH_NONE.getNumber()) { + output.writeEnum(2, auth_); + } + 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(); + disabled_ = false; + + auth_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_IstioConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.IstioConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.IstioConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.IstioConfig build() { + com.google.container.v1beta1.IstioConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.IstioConfig buildPartial() { + com.google.container.v1beta1.IstioConfig result = + new com.google.container.v1beta1.IstioConfig(this); + result.disabled_ = disabled_; + result.auth_ = auth_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.IstioConfig) { + return mergeFrom((com.google.container.v1beta1.IstioConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.IstioConfig other) { + if (other == com.google.container.v1beta1.IstioConfig.getDefaultInstance()) return this; + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + if (other.auth_ != 0) { + setAuthValue(other.getAuthValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 8 + case 16: + { + auth_ = input.readEnum(); + + 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 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=1208 + * @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=1208 + * @param value The disabled to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setDisabled(boolean value) { + + disabled_ = value; + 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=1208 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearDisabled() { + + disabled_ = false; + onChanged(); + return this; + } + + private int auth_ = 0; + /** + * + * + *
+     * The specified Istio auth mode, either none, or mutual TLS.
+     * 
+ * + * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2 [deprecated = true]; + * + * + * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1211 + * @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=1211 + * @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; + 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=1211 + * @return The auth. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.container.v1beta1.IstioConfig.IstioAuthMode getAuth() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.IstioConfig.IstioAuthMode result = + com.google.container.v1beta1.IstioConfig.IstioAuthMode.valueOf(auth_); + return result == null + ? com.google.container.v1beta1.IstioConfig.IstioAuthMode.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The specified Istio auth mode, either none, or mutual TLS.
+     * 
+ * + * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2 [deprecated = true]; + * + * + * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1211 + * @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(); + } + + 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=1211 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearAuth() { + + auth_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.IstioConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.IstioConfig) + private static final com.google.container.v1beta1.IstioConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.IstioConfig(); + } + + public static com.google.container.v1beta1.IstioConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IstioConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..84570a2b60c4 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfigOrBuilder.java @@ -0,0 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface IstioConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.IstioConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether Istio is enabled for this cluster.
+   * 
+ * + * bool disabled = 1 [deprecated = true]; + * + * @deprecated google.container.v1beta1.IstioConfig.disabled is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1208 + * @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=1211 + * @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=1211 + * @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 new file mode 100644 index 000000000000..87ffec8e7cbb --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Jwk.java @@ -0,0 +1,2034 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Jwk is a JSON Web Key as specified in RFC 7517
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.Jwk} + */ +public final class Jwk extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.Jwk) + JwkOrBuilder { + private static final long serialVersionUID = 0L; + // Use Jwk.newBuilder() to construct. + private Jwk(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Jwk() { + kty_ = ""; + alg_ = ""; + use_ = ""; + kid_ = ""; + n_ = ""; + e_ = ""; + x_ = ""; + y_ = ""; + crv_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Jwk(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Jwk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Jwk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.Jwk.class, com.google.container.v1beta1.Jwk.Builder.class); + } + + public static final int KTY_FIELD_NUMBER = 1; + private volatile java.lang.Object kty_; + /** + * + * + *
+   * Key Type.
+   * 
+ * + * string kty = 1; + * + * @return The kty. + */ + @java.lang.Override + public java.lang.String getKty() { + java.lang.Object ref = kty_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kty_ = s; + return s; + } + } + /** + * + * + *
+   * Key Type.
+   * 
+ * + * string kty = 1; + * + * @return The bytes for kty. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKtyBytes() { + java.lang.Object ref = kty_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kty_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALG_FIELD_NUMBER = 2; + private volatile java.lang.Object alg_; + /** + * + * + *
+   * Algorithm.
+   * 
+ * + * string alg = 2; + * + * @return The alg. + */ + @java.lang.Override + public java.lang.String getAlg() { + java.lang.Object ref = alg_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alg_ = s; + return s; + } + } + /** + * + * + *
+   * Algorithm.
+   * 
+ * + * string alg = 2; + * + * @return The bytes for alg. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAlgBytes() { + java.lang.Object ref = alg_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + alg_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USE_FIELD_NUMBER = 3; + private volatile java.lang.Object use_; + /** + * + * + *
+   * Permitted uses for the public keys.
+   * 
+ * + * string use = 3; + * + * @return The use. + */ + @java.lang.Override + public java.lang.String getUse() { + java.lang.Object ref = use_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + use_ = s; + return s; + } + } + /** + * + * + *
+   * Permitted uses for the public keys.
+   * 
+ * + * string use = 3; + * + * @return The bytes for use. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUseBytes() { + java.lang.Object ref = use_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + use_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KID_FIELD_NUMBER = 4; + private volatile java.lang.Object kid_; + /** + * + * + *
+   * Key ID.
+   * 
+ * + * string kid = 4; + * + * @return The kid. + */ + @java.lang.Override + public java.lang.String getKid() { + java.lang.Object ref = kid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kid_ = s; + return s; + } + } + /** + * + * + *
+   * Key ID.
+   * 
+ * + * string kid = 4; + * + * @return The bytes for kid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKidBytes() { + java.lang.Object ref = kid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int N_FIELD_NUMBER = 5; + private volatile java.lang.Object n_; + /** + * + * + *
+   * Used for RSA keys.
+   * 
+ * + * string n = 5; + * + * @return The n. + */ + @java.lang.Override + public java.lang.String getN() { + java.lang.Object ref = n_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + n_ = s; + return s; + } + } + /** + * + * + *
+   * Used for RSA keys.
+   * 
+ * + * string n = 5; + * + * @return The bytes for n. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNBytes() { + java.lang.Object ref = n_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + n_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int E_FIELD_NUMBER = 6; + private volatile java.lang.Object e_; + /** + * + * + *
+   * Used for RSA keys.
+   * 
+ * + * string e = 6; + * + * @return The e. + */ + @java.lang.Override + public java.lang.String getE() { + java.lang.Object ref = e_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + e_ = s; + return s; + } + } + /** + * + * + *
+   * Used for RSA keys.
+   * 
+ * + * string e = 6; + * + * @return The bytes for e. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEBytes() { + java.lang.Object ref = e_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + e_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int X_FIELD_NUMBER = 7; + private volatile java.lang.Object x_; + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string x = 7; + * + * @return The x. + */ + @java.lang.Override + public java.lang.String getX() { + java.lang.Object ref = x_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + x_ = s; + return s; + } + } + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string x = 7; + * + * @return The bytes for x. + */ + @java.lang.Override + public com.google.protobuf.ByteString getXBytes() { + java.lang.Object ref = x_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + x_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int Y_FIELD_NUMBER = 8; + private volatile java.lang.Object y_; + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string y = 8; + * + * @return The y. + */ + @java.lang.Override + public java.lang.String getY() { + java.lang.Object ref = y_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + y_ = s; + return s; + } + } + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string y = 8; + * + * @return The bytes for y. + */ + @java.lang.Override + public com.google.protobuf.ByteString getYBytes() { + java.lang.Object ref = y_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + y_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CRV_FIELD_NUMBER = 9; + private volatile java.lang.Object crv_; + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string crv = 9; + * + * @return The crv. + */ + @java.lang.Override + public java.lang.String getCrv() { + java.lang.Object ref = crv_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + crv_ = s; + return s; + } + } + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string crv = 9; + * + * @return The bytes for crv. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCrvBytes() { + java.lang.Object ref = crv_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + crv_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + kty_ = ""; + + alg_ = ""; + + use_ = ""; + + kid_ = ""; + + n_ = ""; + + e_ = ""; + + x_ = ""; + + y_ = ""; + + crv_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Jwk_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.Jwk getDefaultInstanceForType() { + return com.google.container.v1beta1.Jwk.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.Jwk build() { + com.google.container.v1beta1.Jwk result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.Jwk buildPartial() { + com.google.container.v1beta1.Jwk result = new com.google.container.v1beta1.Jwk(this); + result.kty_ = kty_; + result.alg_ = alg_; + result.use_ = use_; + result.kid_ = kid_; + result.n_ = n_; + result.e_ = e_; + result.x_ = x_; + result.y_ = y_; + result.crv_ = crv_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.Jwk) { + return mergeFrom((com.google.container.v1beta1.Jwk) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.Jwk other) { + if (other == com.google.container.v1beta1.Jwk.getDefaultInstance()) return this; + if (!other.getKty().isEmpty()) { + kty_ = other.kty_; + onChanged(); + } + if (!other.getAlg().isEmpty()) { + alg_ = other.alg_; + onChanged(); + } + if (!other.getUse().isEmpty()) { + use_ = other.use_; + onChanged(); + } + if (!other.getKid().isEmpty()) { + kid_ = other.kid_; + onChanged(); + } + if (!other.getN().isEmpty()) { + n_ = other.n_; + onChanged(); + } + if (!other.getE().isEmpty()) { + e_ = other.e_; + onChanged(); + } + if (!other.getX().isEmpty()) { + x_ = other.x_; + onChanged(); + } + if (!other.getY().isEmpty()) { + y_ = other.y_; + onChanged(); + } + if (!other.getCrv().isEmpty()) { + crv_ = other.crv_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + alg_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + use_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + kid_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + n_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + e_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: + { + x_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + y_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: + { + crv_ = input.readStringRequireUtf8(); + + 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 java.lang.Object kty_ = ""; + /** + * + * + *
+     * Key Type.
+     * 
+ * + * string kty = 1; + * + * @return The kty. + */ + public java.lang.String getKty() { + java.lang.Object ref = kty_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kty_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Key Type.
+     * 
+ * + * string kty = 1; + * + * @return The bytes for kty. + */ + public com.google.protobuf.ByteString getKtyBytes() { + java.lang.Object ref = kty_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kty_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Key Type.
+     * 
+ * + * string kty = 1; + * + * @param value The kty to set. + * @return This builder for chaining. + */ + public Builder setKty(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + kty_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Key Type.
+     * 
+ * + * string kty = 1; + * + * @return This builder for chaining. + */ + public Builder clearKty() { + + kty_ = getDefaultInstance().getKty(); + onChanged(); + return this; + } + /** + * + * + *
+     * Key Type.
+     * 
+ * + * string kty = 1; + * + * @param value The bytes for kty to set. + * @return This builder for chaining. + */ + public Builder setKtyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + kty_ = value; + onChanged(); + return this; + } + + private java.lang.Object alg_ = ""; + /** + * + * + *
+     * Algorithm.
+     * 
+ * + * string alg = 2; + * + * @return The alg. + */ + public java.lang.String getAlg() { + java.lang.Object ref = alg_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alg_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Algorithm.
+     * 
+ * + * string alg = 2; + * + * @return The bytes for alg. + */ + public com.google.protobuf.ByteString getAlgBytes() { + java.lang.Object ref = alg_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + alg_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Algorithm.
+     * 
+ * + * string alg = 2; + * + * @param value The alg to set. + * @return This builder for chaining. + */ + public Builder setAlg(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + alg_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Algorithm.
+     * 
+ * + * string alg = 2; + * + * @return This builder for chaining. + */ + public Builder clearAlg() { + + alg_ = getDefaultInstance().getAlg(); + onChanged(); + return this; + } + /** + * + * + *
+     * Algorithm.
+     * 
+ * + * string alg = 2; + * + * @param value The bytes for alg to set. + * @return This builder for chaining. + */ + public Builder setAlgBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + alg_ = value; + onChanged(); + return this; + } + + private java.lang.Object use_ = ""; + /** + * + * + *
+     * Permitted uses for the public keys.
+     * 
+ * + * string use = 3; + * + * @return The use. + */ + public java.lang.String getUse() { + java.lang.Object ref = use_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + use_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Permitted uses for the public keys.
+     * 
+ * + * string use = 3; + * + * @return The bytes for use. + */ + public com.google.protobuf.ByteString getUseBytes() { + java.lang.Object ref = use_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + use_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Permitted uses for the public keys.
+     * 
+ * + * string use = 3; + * + * @param value The use to set. + * @return This builder for chaining. + */ + public Builder setUse(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + use_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Permitted uses for the public keys.
+     * 
+ * + * string use = 3; + * + * @return This builder for chaining. + */ + public Builder clearUse() { + + use_ = getDefaultInstance().getUse(); + onChanged(); + return this; + } + /** + * + * + *
+     * Permitted uses for the public keys.
+     * 
+ * + * string use = 3; + * + * @param value The bytes for use to set. + * @return This builder for chaining. + */ + public Builder setUseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + use_ = value; + onChanged(); + return this; + } + + private java.lang.Object kid_ = ""; + /** + * + * + *
+     * Key ID.
+     * 
+ * + * string kid = 4; + * + * @return The kid. + */ + public java.lang.String getKid() { + java.lang.Object ref = kid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Key ID.
+     * 
+ * + * string kid = 4; + * + * @return The bytes for kid. + */ + public com.google.protobuf.ByteString getKidBytes() { + java.lang.Object ref = kid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Key ID.
+     * 
+ * + * string kid = 4; + * + * @param value The kid to set. + * @return This builder for chaining. + */ + public Builder setKid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + kid_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Key ID.
+     * 
+ * + * string kid = 4; + * + * @return This builder for chaining. + */ + public Builder clearKid() { + + kid_ = getDefaultInstance().getKid(); + onChanged(); + return this; + } + /** + * + * + *
+     * Key ID.
+     * 
+ * + * string kid = 4; + * + * @param value The bytes for kid to set. + * @return This builder for chaining. + */ + public Builder setKidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + kid_ = value; + onChanged(); + return this; + } + + private java.lang.Object n_ = ""; + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string n = 5; + * + * @return The n. + */ + public java.lang.String getN() { + java.lang.Object ref = n_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + n_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string n = 5; + * + * @return The bytes for n. + */ + public com.google.protobuf.ByteString getNBytes() { + java.lang.Object ref = n_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + n_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string n = 5; + * + * @param value The n to set. + * @return This builder for chaining. + */ + public Builder setN(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + n_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string n = 5; + * + * @return This builder for chaining. + */ + public Builder clearN() { + + n_ = getDefaultInstance().getN(); + onChanged(); + return this; + } + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string n = 5; + * + * @param value The bytes for n to set. + * @return This builder for chaining. + */ + public Builder setNBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + n_ = value; + onChanged(); + return this; + } + + private java.lang.Object e_ = ""; + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string e = 6; + * + * @return The e. + */ + public java.lang.String getE() { + java.lang.Object ref = e_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + e_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string e = 6; + * + * @return The bytes for e. + */ + public com.google.protobuf.ByteString getEBytes() { + java.lang.Object ref = e_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + e_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string e = 6; + * + * @param value The e to set. + * @return This builder for chaining. + */ + public Builder setE(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + e_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string e = 6; + * + * @return This builder for chaining. + */ + public Builder clearE() { + + e_ = getDefaultInstance().getE(); + onChanged(); + return this; + } + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string e = 6; + * + * @param value The bytes for e to set. + * @return This builder for chaining. + */ + public Builder setEBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + e_ = value; + onChanged(); + return this; + } + + private java.lang.Object x_ = ""; + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string x = 7; + * + * @return The x. + */ + public java.lang.String getX() { + java.lang.Object ref = x_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + x_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string x = 7; + * + * @return The bytes for x. + */ + public com.google.protobuf.ByteString getXBytes() { + java.lang.Object ref = x_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + x_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string x = 7; + * + * @param value The x to set. + * @return This builder for chaining. + */ + public Builder setX(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + x_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string x = 7; + * + * @return This builder for chaining. + */ + public Builder clearX() { + + x_ = getDefaultInstance().getX(); + onChanged(); + return this; + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string x = 7; + * + * @param value The bytes for x to set. + * @return This builder for chaining. + */ + public Builder setXBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + x_ = value; + onChanged(); + return this; + } + + private java.lang.Object y_ = ""; + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string y = 8; + * + * @return The y. + */ + public java.lang.String getY() { + java.lang.Object ref = y_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + y_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string y = 8; + * + * @return The bytes for y. + */ + public com.google.protobuf.ByteString getYBytes() { + java.lang.Object ref = y_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + y_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string y = 8; + * + * @param value The y to set. + * @return This builder for chaining. + */ + public Builder setY(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + y_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string y = 8; + * + * @return This builder for chaining. + */ + public Builder clearY() { + + y_ = getDefaultInstance().getY(); + onChanged(); + return this; + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string y = 8; + * + * @param value The bytes for y to set. + * @return This builder for chaining. + */ + public Builder setYBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + y_ = value; + onChanged(); + return this; + } + + private java.lang.Object crv_ = ""; + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string crv = 9; + * + * @return The crv. + */ + public java.lang.String getCrv() { + java.lang.Object ref = crv_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + crv_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string crv = 9; + * + * @return The bytes for crv. + */ + public com.google.protobuf.ByteString getCrvBytes() { + java.lang.Object ref = crv_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + crv_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string crv = 9; + * + * @param value The crv to set. + * @return This builder for chaining. + */ + public Builder setCrv(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + crv_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string crv = 9; + * + * @return This builder for chaining. + */ + public Builder clearCrv() { + + crv_ = getDefaultInstance().getCrv(); + onChanged(); + return this; + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string crv = 9; + * + * @param value The bytes for crv to set. + * @return This builder for chaining. + */ + public Builder setCrvBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + crv_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.Jwk) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.Jwk) + private static final com.google.container.v1beta1.Jwk DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.Jwk(); + } + + public static com.google.container.v1beta1.Jwk getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Jwk parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..0850d357f444 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/JwkOrBuilder.java @@ -0,0 +1,250 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface JwkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.Jwk) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Key Type.
+   * 
+ * + * string kty = 1; + * + * @return The kty. + */ + java.lang.String getKty(); + /** + * + * + *
+   * Key Type.
+   * 
+ * + * string kty = 1; + * + * @return The bytes for kty. + */ + com.google.protobuf.ByteString getKtyBytes(); + + /** + * + * + *
+   * Algorithm.
+   * 
+ * + * string alg = 2; + * + * @return The alg. + */ + java.lang.String getAlg(); + /** + * + * + *
+   * Algorithm.
+   * 
+ * + * string alg = 2; + * + * @return The bytes for alg. + */ + com.google.protobuf.ByteString getAlgBytes(); + + /** + * + * + *
+   * Permitted uses for the public keys.
+   * 
+ * + * string use = 3; + * + * @return The use. + */ + java.lang.String getUse(); + /** + * + * + *
+   * Permitted uses for the public keys.
+   * 
+ * + * string use = 3; + * + * @return The bytes for use. + */ + com.google.protobuf.ByteString getUseBytes(); + + /** + * + * + *
+   * Key ID.
+   * 
+ * + * string kid = 4; + * + * @return The kid. + */ + java.lang.String getKid(); + /** + * + * + *
+   * Key ID.
+   * 
+ * + * string kid = 4; + * + * @return The bytes for kid. + */ + com.google.protobuf.ByteString getKidBytes(); + + /** + * + * + *
+   * Used for RSA keys.
+   * 
+ * + * string n = 5; + * + * @return The n. + */ + java.lang.String getN(); + /** + * + * + *
+   * Used for RSA keys.
+   * 
+ * + * string n = 5; + * + * @return The bytes for n. + */ + com.google.protobuf.ByteString getNBytes(); + + /** + * + * + *
+   * Used for RSA keys.
+   * 
+ * + * string e = 6; + * + * @return The e. + */ + java.lang.String getE(); + /** + * + * + *
+   * Used for RSA keys.
+   * 
+ * + * string e = 6; + * + * @return The bytes for e. + */ + com.google.protobuf.ByteString getEBytes(); + + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string x = 7; + * + * @return The x. + */ + java.lang.String getX(); + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string x = 7; + * + * @return The bytes for x. + */ + com.google.protobuf.ByteString getXBytes(); + + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string y = 8; + * + * @return The y. + */ + java.lang.String getY(); + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string y = 8; + * + * @return The bytes for y. + */ + com.google.protobuf.ByteString getYBytes(); + + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string crv = 9; + * + * @return The crv. + */ + java.lang.String getCrv(); + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string crv = 9; + * + * @return The bytes for crv. + */ + com.google.protobuf.ByteString getCrvBytes(); +} diff --git a/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 new file mode 100644 index 000000000000..ae3b378a7147 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfig.java @@ -0,0 +1,537 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration options for the KALM addon.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.KalmConfig} + */ +public final class KalmConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.KalmConfig) + KalmConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use KalmConfig.newBuilder() to construct. + private KalmConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private KalmConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new KalmConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_KalmConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_KalmConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.KalmConfig.class, + com.google.container.v1beta1.KalmConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether KALM is enabled for this cluster.
+   * 
+ * + * bool enabled = 1 [deprecated = true]; + * + * @deprecated google.container.v1beta1.KalmConfig.enabled is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1130 + * @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(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_KalmConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.KalmConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.KalmConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.KalmConfig build() { + com.google.container.v1beta1.KalmConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.KalmConfig buildPartial() { + com.google.container.v1beta1.KalmConfig result = + new com.google.container.v1beta1.KalmConfig(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.KalmConfig) { + return mergeFrom((com.google.container.v1beta1.KalmConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.KalmConfig other) { + if (other == com.google.container.v1beta1.KalmConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 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=1130 + * @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=1130 + * @param value The enabled to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setEnabled(boolean value) { + + enabled_ = value; + 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=1130 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.KalmConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.KalmConfig) + private static final com.google.container.v1beta1.KalmConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.KalmConfig(); + } + + public static com.google.container.v1beta1.KalmConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KalmConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..1c935b967030 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfigOrBuilder.java @@ -0,0 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface 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=1130 + * @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 new file mode 100644 index 000000000000..17aa37d89a81 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KubernetesDashboard.java @@ -0,0 +1,527 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration for the Kubernetes Dashboard.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.KubernetesDashboard} + */ +public final class KubernetesDashboard extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.KubernetesDashboard) + KubernetesDashboardOrBuilder { + private static final long serialVersionUID = 0L; + // Use KubernetesDashboard.newBuilder() to construct. + private KubernetesDashboard(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private KubernetesDashboard() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new KubernetesDashboard(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_KubernetesDashboard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_KubernetesDashboard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.KubernetesDashboard.class, + com.google.container.v1beta1.KubernetesDashboard.Builder.class); + } + + public static final int DISABLED_FIELD_NUMBER = 1; + private boolean disabled_; + /** + * + * + *
+   * Whether the Kubernetes Dashboard is enabled for this cluster.
+   * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (disabled_ != false) { + output.writeBool(1, disabled_); + } + 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(); + disabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_KubernetesDashboard_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.KubernetesDashboard getDefaultInstanceForType() { + return com.google.container.v1beta1.KubernetesDashboard.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.KubernetesDashboard build() { + com.google.container.v1beta1.KubernetesDashboard result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.KubernetesDashboard buildPartial() { + com.google.container.v1beta1.KubernetesDashboard result = + new com.google.container.v1beta1.KubernetesDashboard(this); + result.disabled_ = disabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.KubernetesDashboard) { + return mergeFrom((com.google.container.v1beta1.KubernetesDashboard) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.KubernetesDashboard other) { + if (other == com.google.container.v1beta1.KubernetesDashboard.getDefaultInstance()) + return this; + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 boolean disabled_; + /** + * + * + *
+     * Whether the Kubernetes Dashboard is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + /** + * + * + *
+     * Whether the Kubernetes Dashboard is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * + * @param value The disabled to set. + * @return This builder for chaining. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the Kubernetes Dashboard is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisabled() { + + disabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.KubernetesDashboard) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.KubernetesDashboard) + private static final com.google.container.v1beta1.KubernetesDashboard DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.KubernetesDashboard(); + } + + public static com.google.container.v1beta1.KubernetesDashboard getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KubernetesDashboard parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..ce5bd328fd41 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KubernetesDashboardOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface KubernetesDashboardOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.KubernetesDashboard) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether the Kubernetes Dashboard is enabled for this cluster.
+   * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + boolean getDisabled(); +} diff --git a/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 new file mode 100644 index 000000000000..e168b42cd47c --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LegacyAbac.java @@ -0,0 +1,539 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration for the legacy Attribute Based Access Control authorization
+ * mode.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.LegacyAbac} + */ +public final class LegacyAbac extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.LegacyAbac) + LegacyAbacOrBuilder { + private static final long serialVersionUID = 0L; + // Use LegacyAbac.newBuilder() to construct. + private LegacyAbac(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LegacyAbac() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LegacyAbac(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_LegacyAbac_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_LegacyAbac_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.LegacyAbac.class, + com.google.container.v1beta1.LegacyAbac.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether the ABAC authorizer is enabled for this cluster. When enabled,
+   * identities in the system, including service accounts, nodes, and
+   * controllers, will have statically granted permissions beyond those
+   * provided by the RBAC configuration or IAM.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + 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(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_LegacyAbac_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.LegacyAbac getDefaultInstanceForType() { + return com.google.container.v1beta1.LegacyAbac.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.LegacyAbac build() { + com.google.container.v1beta1.LegacyAbac result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.LegacyAbac buildPartial() { + com.google.container.v1beta1.LegacyAbac result = + new com.google.container.v1beta1.LegacyAbac(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.LegacyAbac) { + return mergeFrom((com.google.container.v1beta1.LegacyAbac) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.LegacyAbac other) { + if (other == com.google.container.v1beta1.LegacyAbac.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 boolean enabled_; + /** + * + * + *
+     * Whether the ABAC authorizer is enabled for this cluster. When enabled,
+     * identities in the system, including service accounts, nodes, and
+     * controllers, will have statically granted permissions beyond those
+     * provided by the RBAC configuration or IAM.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether the ABAC authorizer is enabled for this cluster. When enabled,
+     * identities in the system, including service accounts, nodes, and
+     * controllers, will have statically granted permissions beyond those
+     * provided by the RBAC configuration or IAM.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the ABAC authorizer is enabled for this cluster. When enabled,
+     * identities in the system, including service accounts, nodes, and
+     * controllers, will have statically granted permissions beyond those
+     * provided by the RBAC configuration or IAM.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.LegacyAbac) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.LegacyAbac) + private static final com.google.container.v1beta1.LegacyAbac DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.LegacyAbac(); + } + + public static com.google.container.v1beta1.LegacyAbac getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LegacyAbac parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..2376daff2bc5 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LegacyAbacOrBuilder.java @@ -0,0 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface LegacyAbacOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.LegacyAbac) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether the ABAC authorizer is enabled for this cluster. When enabled,
+   * identities in the system, including service accounts, nodes, and
+   * controllers, will have statically granted permissions beyond those
+   * provided by the RBAC configuration or IAM.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/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 new file mode 100644 index 000000000000..7936ee9a8483 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LinuxNodeConfig.java @@ -0,0 +1,1221 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Parameters that can be configured on Linux nodes.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.LinuxNodeConfig} + */ +public final class LinuxNodeConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.LinuxNodeConfig) + LinuxNodeConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use LinuxNodeConfig.newBuilder() to construct. + private LinuxNodeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LinuxNodeConfig() { + cgroupMode_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LinuxNodeConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_LinuxNodeConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetSysctls(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_LinuxNodeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.LinuxNodeConfig.class, + com.google.container.v1beta1.LinuxNodeConfig.Builder.class); + } + + /** + * + * + *
+   * 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, + ""); + } + + 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 java.lang.String getSysctlsOrDefault(java.lang.String key, 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_; + /** + * + * + *
+   * 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.LinuxNodeConfig.CgroupMode result = + com.google.container.v1beta1.LinuxNodeConfig.CgroupMode.valueOf(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.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetSysctls(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 1: + return internalGetMutableSysctls(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_LinuxNodeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.LinuxNodeConfig.class, + com.google.container.v1beta1.LinuxNodeConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.LinuxNodeConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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); + int from_bitField0_ = bitField0_; + result.sysctls_ = internalGetSysctls(); + result.sysctls_.makeImmutable(); + result.cgroupMode_ = cgroupMode_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.LinuxNodeConfig) { + return mergeFrom((com.google.container.v1beta1.LinuxNodeConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.LinuxNodeConfig other) { + if (other == com.google.container.v1beta1.LinuxNodeConfig.getDefaultInstance()) return this; + internalGetMutableSysctls().mergeFrom(other.internalGetSysctls()); + 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()); + break; + } // case 10 + case 16: + { + cgroupMode_ = input.readEnum(); + + 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() { + onChanged(); + ; + if (sysctls_ == null) { + sysctls_ = com.google.protobuf.MapField.newMapField(SysctlsDefaultEntryHolder.defaultEntry); + } + if (!sysctls_.isMutable()) { + sysctls_ = sysctls_.copy(); + } + return sysctls_; + } + + public int getSysctlsCount() { + return internalGetSysctls().getMap().size(); + } + /** + * + * + *
+     * The Linux kernel parameters to be applied to the nodes and all pods running
+     * on the nodes.
+     * The following parameters are supported.
+     * net.core.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 java.lang.String getSysctlsOrDefault( + java.lang.String key, 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() { + 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() { + 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); + 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); + 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; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.LinuxNodeConfig.CgroupMode result = + com.google.container.v1beta1.LinuxNodeConfig.CgroupMode.valueOf(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(); + } + + 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() { + + 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 new file mode 100644 index 000000000000..561ea6b336c9 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LinuxNodeConfigOrBuilder.java @@ -0,0 +1,174 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface LinuxNodeConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.LinuxNodeConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Linux kernel parameters to be applied to the nodes and all pods running
+   * on the nodes.
+   * The following parameters are supported.
+   * net.core.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 new file mode 100644 index 000000000000..e70047284be0 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequest.java @@ -0,0 +1,1069 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * ListClustersRequest lists clusters.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ListClustersRequest} + */ +public final class ListClustersRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListClustersRequest) + ListClustersRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListClustersRequest.newBuilder() to construct. + private ListClustersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListClustersRequest() { + projectId_ = ""; + zone_ = ""; + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListClustersRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListClustersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListClustersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListClustersRequest.class, + com.google.container.v1beta1.ListClustersRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://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=2897 + * @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=2897 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Required. Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides, or "-" for all zones. This field has been deprecated and
+   * replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2906 + * @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=2906 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARENT_FIELD_NUMBER = 4; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * The parent (project and location) where the clusters will be listed.
+   * Specified in the format `projects/*/locations/*`.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * The parent (project and location) where the clusters will be listed.
+   * Specified in the format `projects/*/locations/*`.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + projectId_ = ""; + + zone_ = ""; + + parent_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListClustersRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ListClustersRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.ListClustersRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ListClustersRequest build() { + com.google.container.v1beta1.ListClustersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ListClustersRequest buildPartial() { + com.google.container.v1beta1.ListClustersRequest result = + new com.google.container.v1beta1.ListClustersRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ListClustersRequest) { + return mergeFrom((com.google.container.v1beta1.ListClustersRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ListClustersRequest other) { + if (other == com.google.container.v1beta1.ListClustersRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 34: + { + parent_ = input.readStringRequireUtf8(); + + 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 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=2897 + * @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=2897 + * @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=2897 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://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=2897 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://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=2897 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides, or "-" for all zones. This field has been deprecated and
+     * replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2906 + * @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=2906 + * @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=2906 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides, or "-" for all zones. This field has been deprecated and
+     * replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2906 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides, or "-" for all zones. This field has been deprecated and
+     * replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2906 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * The parent (project and location) where the clusters will be listed.
+     * Specified in the format `projects/*/locations/*`.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The parent (project and location) where the clusters will be listed.
+     * Specified in the format `projects/*/locations/*`.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The parent (project and location) where the clusters will be listed.
+     * Specified in the format `projects/*/locations/*`.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The parent (project and location) where the clusters will be listed.
+     * Specified in the format `projects/*/locations/*`.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * The parent (project and location) where the clusters will be listed.
+     * Specified in the format `projects/*/locations/*`.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ListClustersRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ListClustersRequest) + private static final com.google.container.v1beta1.ListClustersRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ListClustersRequest(); + } + + public static com.google.container.v1beta1.ListClustersRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListClustersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..a3b12b5fa9a2 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequestOrBuilder.java @@ -0,0 +1,128 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ListClustersRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListClustersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://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=2897 + * @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=2897 + * @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=2906 + * @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=2906 + * @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 new file mode 100644 index 000000000000..df73c92bd631 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersResponse.java @@ -0,0 +1,1231 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * ListClustersResponse is the result of ListClustersRequest.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ListClustersResponse} + */ +public final class ListClustersResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListClustersResponse) + ListClustersResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListClustersResponse.newBuilder() to construct. + private ListClustersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListClustersResponse() { + clusters_ = java.util.Collections.emptyList(); + missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListClustersResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListClustersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListClustersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListClustersResponse.class, + com.google.container.v1beta1.ListClustersResponse.Builder.class); + } + + public static final int CLUSTERS_FIELD_NUMBER = 1; + private java.util.List clusters_; + /** + * + * + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + @java.lang.Override + public java.util.List getClustersList() { + return clusters_; + } + /** + * + * + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + @java.lang.Override + public java.util.List + getClustersOrBuilderList() { + return clusters_; + } + /** + * + * + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + @java.lang.Override + public int getClustersCount() { + return clusters_.size(); + } + /** + * + * + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.Cluster getClusters(int index) { + return clusters_.get(index); + } + /** + * + * + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.ClusterOrBuilder getClustersOrBuilder(int index) { + return clusters_.get(index); + } + + public static final int MISSING_ZONES_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList missingZones_; + /** + * + * + *
+   * If any zones are listed here, the list of clusters returned
+   * may be missing those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @return A list containing the missingZones. + */ + public com.google.protobuf.ProtocolStringList getMissingZonesList() { + return missingZones_; + } + /** + * + * + *
+   * If any zones are listed here, the list of clusters returned
+   * may be missing those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @return The count of missingZones. + */ + public int getMissingZonesCount() { + return missingZones_.size(); + } + /** + * + * + *
+   * If any zones are listed here, the list of clusters returned
+   * may be missing those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index of the element to return. + * @return The missingZones at the given index. + */ + public java.lang.String getMissingZones(int index) { + return missingZones_.get(index); + } + /** + * + * + *
+   * If any zones are listed here, the list of clusters returned
+   * may be missing those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index of the value to return. + * @return The bytes of the missingZones at the given index. + */ + public com.google.protobuf.ByteString getMissingZonesBytes(int index) { + return missingZones_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < clusters_.size(); i++) { + output.writeMessage(1, clusters_.get(i)); + } + for (int i = 0; i < missingZones_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, missingZones_.getRaw(i)); + } + 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(); + if (clustersBuilder_ == null) { + clusters_ = java.util.Collections.emptyList(); + } else { + clusters_ = null; + clustersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListClustersResponse_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ListClustersResponse getDefaultInstanceForType() { + return com.google.container.v1beta1.ListClustersResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ListClustersResponse build() { + com.google.container.v1beta1.ListClustersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ListClustersResponse buildPartial() { + com.google.container.v1beta1.ListClustersResponse result = + new com.google.container.v1beta1.ListClustersResponse(this); + int from_bitField0_ = bitField0_; + if (clustersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + clusters_ = java.util.Collections.unmodifiableList(clusters_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.clusters_ = clusters_; + } else { + result.clusters_ = clustersBuilder_.build(); + } + if (((bitField0_ & 0x00000002) != 0)) { + missingZones_ = missingZones_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.missingZones_ = missingZones_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ListClustersResponse) { + return mergeFrom((com.google.container.v1beta1.ListClustersResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ListClustersResponse other) { + if (other == com.google.container.v1beta1.ListClustersResponse.getDefaultInstance()) + return this; + if (clustersBuilder_ == null) { + if (!other.clusters_.isEmpty()) { + if (clusters_.isEmpty()) { + clusters_ = other.clusters_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureClustersIsMutable(); + clusters_.addAll(other.clusters_); + } + onChanged(); + } + } else { + if (!other.clusters_.isEmpty()) { + if (clustersBuilder_.isEmpty()) { + clustersBuilder_.dispose(); + clustersBuilder_ = null; + clusters_ = other.clusters_; + bitField0_ = (bitField0_ & ~0x00000001); + clustersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getClustersFieldBuilder() + : null; + } else { + clustersBuilder_.addAllMessages(other.clusters_); + } + } + } + if (!other.missingZones_.isEmpty()) { + if (missingZones_.isEmpty()) { + missingZones_ = other.missingZones_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureMissingZonesIsMutable(); + missingZones_.addAll(other.missingZones_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.LazyStringList missingZones_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureMissingZonesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + missingZones_ = new com.google.protobuf.LazyStringArrayList(missingZones_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @return A list containing the missingZones. + */ + public com.google.protobuf.ProtocolStringList getMissingZonesList() { + return missingZones_.getUnmodifiableView(); + } + /** + * + * + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @return The count of missingZones. + */ + public int getMissingZonesCount() { + return missingZones_.size(); + } + /** + * + * + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index of the element to return. + * @return The missingZones at the given index. + */ + public java.lang.String getMissingZones(int index) { + return missingZones_.get(index); + } + /** + * + * + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index of the value to return. + * @return The bytes of the missingZones at the given index. + */ + public com.google.protobuf.ByteString getMissingZonesBytes(int index) { + return missingZones_.getByteString(index); + } + /** + * + * + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index to set the value at. + * @param value The missingZones to set. + * @return This builder for chaining. + */ + public Builder setMissingZones(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMissingZonesIsMutable(); + missingZones_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @param value The missingZones to add. + * @return This builder for chaining. + */ + public Builder addMissingZones(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMissingZonesIsMutable(); + missingZones_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @param values The missingZones to add. + * @return This builder for chaining. + */ + public Builder addAllMissingZones(java.lang.Iterable values) { + ensureMissingZonesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, missingZones_); + onChanged(); + return this; + } + /** + * + * + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @return This builder for chaining. + */ + public Builder clearMissingZones() { + missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @param value The bytes of the missingZones to add. + * @return This builder for chaining. + */ + public Builder addMissingZonesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureMissingZonesIsMutable(); + missingZones_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ListClustersResponse) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ListClustersResponse) + private static final com.google.container.v1beta1.ListClustersResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ListClustersResponse(); + } + + public static com.google.container.v1beta1.ListClustersResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListClustersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..b97b0769a04a --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersResponseOrBuilder.java @@ -0,0 +1,137 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ListClustersResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListClustersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + java.util.List getClustersList(); + /** + * + * + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + com.google.container.v1beta1.Cluster getClusters(int index); + /** + * + * + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + int getClustersCount(); + /** + * + * + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + java.util.List + getClustersOrBuilderList(); + /** + * + * + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + com.google.container.v1beta1.ClusterOrBuilder getClustersOrBuilder(int index); + + /** + * + * + *
+   * If any zones are listed here, the list of clusters returned
+   * may be missing those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @return A list containing the missingZones. + */ + java.util.List getMissingZonesList(); + /** + * + * + *
+   * If any zones are listed here, the list of clusters returned
+   * may be missing those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @return The count of missingZones. + */ + int getMissingZonesCount(); + /** + * + * + *
+   * If any zones are listed here, the list of clusters returned
+   * may be missing those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index of the element to return. + * @return The missingZones at the given index. + */ + java.lang.String getMissingZones(int index); + /** + * + * + *
+   * If any zones are listed here, the list of clusters returned
+   * may be missing those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index of the value to return. + * @return The bytes of the missingZones at the given index. + */ + com.google.protobuf.ByteString getMissingZonesBytes(int index); +} diff --git a/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 new file mode 100644 index 000000000000..144394696b90 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsRequest.java @@ -0,0 +1,622 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * ListLocationsRequest is used to request the locations that offer GKE.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ListLocationsRequest} + */ +public final class ListLocationsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListLocationsRequest) + ListLocationsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListLocationsRequest.newBuilder() to construct. + private ListLocationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListLocationsRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListLocationsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListLocationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListLocationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListLocationsRequest.class, + com.google.container.v1beta1.ListLocationsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. Contains the name of the resource requested.
+   * Specified in the format `projects/*`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Contains the name of the resource requested.
+   * Specified in the format `projects/*`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + parent_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListLocationsRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ListLocationsRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.ListLocationsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ListLocationsRequest build() { + com.google.container.v1beta1.ListLocationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ListLocationsRequest buildPartial() { + com.google.container.v1beta1.ListLocationsRequest result = + new com.google.container.v1beta1.ListLocationsRequest(this); + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ListLocationsRequest) { + return mergeFrom((com.google.container.v1beta1.ListLocationsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ListLocationsRequest other) { + if (other == com.google.container.v1beta1.ListLocationsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Contains the name of the resource requested.
+     * Specified in the format `projects/*`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Contains the name of the resource requested.
+     * Specified in the format `projects/*`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Contains the name of the resource requested.
+     * Specified in the format `projects/*`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Contains the name of the resource requested.
+     * Specified in the format `projects/*`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Contains the name of the resource requested.
+     * Specified in the format `projects/*`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ListLocationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ListLocationsRequest) + private static final com.google.container.v1beta1.ListLocationsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ListLocationsRequest(); + } + + public static com.google.container.v1beta1.ListLocationsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLocationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..02512f84cec8 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsRequestOrBuilder.java @@ -0,0 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ListLocationsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListLocationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Contains the name of the resource requested.
+   * Specified in the format `projects/*`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Contains the name of the resource requested.
+   * Specified in the format `projects/*`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/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 new file mode 100644 index 000000000000..982509c85ce0 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsResponse.java @@ -0,0 +1,1126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * ListLocationsResponse returns the list of all GKE locations and their
+ * recommendation state.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ListLocationsResponse} + */ +public final class ListLocationsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListLocationsResponse) + ListLocationsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListLocationsResponse.newBuilder() to construct. + private ListLocationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListLocationsResponse() { + locations_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListLocationsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListLocationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListLocationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListLocationsResponse.class, + com.google.container.v1beta1.ListLocationsResponse.Builder.class); + } + + public static final int LOCATIONS_FIELD_NUMBER = 1; + private java.util.List locations_; + /** + * + * + *
+   * A full list of GKE locations.
+   * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + @java.lang.Override + public java.util.List getLocationsList() { + return locations_; + } + /** + * + * + *
+   * A full list of GKE locations.
+   * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + @java.lang.Override + public java.util.List + getLocationsOrBuilderList() { + return locations_; + } + /** + * + * + *
+   * A full list of GKE locations.
+   * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + @java.lang.Override + public int getLocationsCount() { + return locations_.size(); + } + /** + * + * + *
+   * A full list of GKE locations.
+   * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.Location getLocations(int index) { + return locations_.get(index); + } + /** + * + * + *
+   * A full list of GKE locations.
+   * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.LocationOrBuilder getLocationsOrBuilder(int index) { + return locations_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * Only return ListLocationsResponse that occur after the page_token. This
+   * value should be populated from the ListLocationsResponse.next_page_token if
+   * that response token was set (which happens when listing more Locations than
+   * fit in a single ListLocationsResponse).
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Only return ListLocationsResponse that occur after the page_token. This
+   * value should be populated from the ListLocationsResponse.next_page_token if
+   * that response token was set (which happens when listing more Locations than
+   * fit in a single ListLocationsResponse).
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < locations_.size(); i++) { + output.writeMessage(1, locations_.get(i)); + } + if (!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(); + 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); + int from_bitField0_ = bitField0_; + if (locationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + locations_ = java.util.Collections.unmodifiableList(locations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.locations_ = locations_; + } else { + result.locations_ = locationsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ListLocationsResponse) { + return mergeFrom((com.google.container.v1beta1.ListLocationsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ListLocationsResponse other) { + if (other == com.google.container.v1beta1.ListLocationsResponse.getDefaultInstance()) + return this; + if (locationsBuilder_ == null) { + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + } else { + if (!other.locations_.isEmpty()) { + if (locationsBuilder_.isEmpty()) { + locationsBuilder_.dispose(); + locationsBuilder_ = null; + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000001); + locationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLocationsFieldBuilder() + : null; + } else { + locationsBuilder_.addAllMessages(other.locations_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Only return ListLocationsResponse that occur after the page_token. This
+     * value should be populated from the ListLocationsResponse.next_page_token if
+     * that response token was set (which happens when listing more Locations than
+     * fit in a single ListLocationsResponse).
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Only return ListLocationsResponse that occur after the page_token. This
+     * value should be populated from the ListLocationsResponse.next_page_token if
+     * that response token was set (which happens when listing more Locations than
+     * fit in a single ListLocationsResponse).
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ListLocationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ListLocationsResponse) + private static final com.google.container.v1beta1.ListLocationsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ListLocationsResponse(); + } + + public static com.google.container.v1beta1.ListLocationsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLocationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..56783a61aa59 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsResponseOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ListLocationsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListLocationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A full list of GKE locations.
+   * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + java.util.List getLocationsList(); + /** + * + * + *
+   * A full list of GKE locations.
+   * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + com.google.container.v1beta1.Location getLocations(int index); + /** + * + * + *
+   * A full list of GKE locations.
+   * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + int getLocationsCount(); + /** + * + * + *
+   * A full list of GKE locations.
+   * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + java.util.List + getLocationsOrBuilderList(); + /** + * + * + *
+   * A full list of GKE locations.
+   * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + com.google.container.v1beta1.LocationOrBuilder getLocationsOrBuilder(int index); + + /** + * + * + *
+   * Only return ListLocationsResponse that occur after the page_token. This
+   * value should be populated from the ListLocationsResponse.next_page_token if
+   * that response token was set (which happens when listing more Locations than
+   * fit in a single ListLocationsResponse).
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * Only return ListLocationsResponse that occur after the page_token. This
+   * value should be populated from the ListLocationsResponse.next_page_token if
+   * that response token was set (which happens when listing more Locations than
+   * fit in a single ListLocationsResponse).
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/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 new file mode 100644 index 000000000000..6a7e7e3622ed --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequest.java @@ -0,0 +1,1275 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * ListNodePoolsRequest lists the node pool(s) for a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ListNodePoolsRequest} + */ +public final class ListNodePoolsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListNodePoolsRequest) + ListNodePoolsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListNodePoolsRequest.newBuilder() to construct. + private ListNodePoolsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListNodePoolsRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListNodePoolsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListNodePoolsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListNodePoolsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListNodePoolsRequest.class, + com.google.container.v1beta1.ListNodePoolsRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://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=3198 + * @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=3198 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Required. Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the parent
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See + * google/container/v1beta1/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; + } + } + /** + * + * + *
+   * Required. Deprecated. The name of the Google Compute 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=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; + 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=3214 + * @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=3214 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARENT_FIELD_NUMBER = 5; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * The parent (project, location, cluster 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(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + parent_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListNodePoolsRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ListNodePoolsRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.ListNodePoolsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ListNodePoolsRequest build() { + com.google.container.v1beta1.ListNodePoolsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ListNodePoolsRequest buildPartial() { + com.google.container.v1beta1.ListNodePoolsRequest result = + new com.google.container.v1beta1.ListNodePoolsRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ListNodePoolsRequest) { + return mergeFrom((com.google.container.v1beta1.ListNodePoolsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ListNodePoolsRequest other) { + if (other == com.google.container.v1beta1.ListNodePoolsRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 42: + { + parent_ = input.readStringRequireUtf8(); + + 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 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=3198 + * @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=3198 + * @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=3198 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://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=3198 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://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=3198 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the parent
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See + * google/container/v1beta1/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; + } + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute 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=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; + } + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute 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=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; + 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=3207 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the parent
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See + * google/container/v1beta1/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; + 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=3214 + * @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=3214 + * @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=3214 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3214 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3214 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * The parent (project, location, cluster 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..778c2456f79b --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequestOrBuilder.java @@ -0,0 +1,161 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ListNodePoolsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListNodePoolsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://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=3198 + * @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=3198 + * @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=3207 + * @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=3207 + * @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=3214 + * @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=3214 + * @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 new file mode 100644 index 000000000000..477ff7492334 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsResponse.java @@ -0,0 +1,925 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * ListNodePoolsResponse is the result of ListNodePoolsRequest.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ListNodePoolsResponse} + */ +public final class ListNodePoolsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListNodePoolsResponse) + ListNodePoolsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListNodePoolsResponse.newBuilder() to construct. + private ListNodePoolsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListNodePoolsResponse() { + nodePools_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListNodePoolsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListNodePoolsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListNodePoolsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListNodePoolsResponse.class, + com.google.container.v1beta1.ListNodePoolsResponse.Builder.class); + } + + public static final int NODE_POOLS_FIELD_NUMBER = 1; + private java.util.List nodePools_; + /** + * + * + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + @java.lang.Override + public java.util.List getNodePoolsList() { + return nodePools_; + } + /** + * + * + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + @java.lang.Override + public java.util.List + getNodePoolsOrBuilderList() { + return nodePools_; + } + /** + * + * + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + @java.lang.Override + public int getNodePoolsCount() { + return nodePools_.size(); + } + /** + * + * + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool getNodePools(int index) { + return nodePools_.get(index); + } + /** + * + * + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.NodePoolOrBuilder getNodePoolsOrBuilder(int index) { + return nodePools_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < nodePools_.size(); i++) { + output.writeMessage(1, nodePools_.get(i)); + } + 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(); + 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); + int from_bitField0_ = bitField0_; + if (nodePoolsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + nodePools_ = java.util.Collections.unmodifiableList(nodePools_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.nodePools_ = nodePools_; + } else { + result.nodePools_ = nodePoolsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ListNodePoolsResponse) { + return mergeFrom((com.google.container.v1beta1.ListNodePoolsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ListNodePoolsResponse other) { + if (other == com.google.container.v1beta1.ListNodePoolsResponse.getDefaultInstance()) + return this; + if (nodePoolsBuilder_ == null) { + if (!other.nodePools_.isEmpty()) { + if (nodePools_.isEmpty()) { + nodePools_ = other.nodePools_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNodePoolsIsMutable(); + nodePools_.addAll(other.nodePools_); + } + onChanged(); + } + } else { + if (!other.nodePools_.isEmpty()) { + if (nodePoolsBuilder_.isEmpty()) { + nodePoolsBuilder_.dispose(); + nodePoolsBuilder_ = null; + nodePools_ = other.nodePools_; + bitField0_ = (bitField0_ & ~0x00000001); + nodePoolsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNodePoolsFieldBuilder() + : null; + } else { + nodePoolsBuilder_.addAllMessages(other.nodePools_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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 new file mode 100644 index 000000000000..15665ec8e89d --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsResponseOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ListNodePoolsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListNodePoolsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + java.util.List getNodePoolsList(); + /** + * + * + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + com.google.container.v1beta1.NodePool getNodePools(int index); + /** + * + * + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + int getNodePoolsCount(); + /** + * + * + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + java.util.List + getNodePoolsOrBuilderList(); + /** + * + * + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + com.google.container.v1beta1.NodePoolOrBuilder getNodePoolsOrBuilder(int index); +} diff --git a/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 new file mode 100644 index 000000000000..063fe918e42b --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequest.java @@ -0,0 +1,1069 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * ListOperationsRequest lists operations.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ListOperationsRequest} + */ +public final class ListOperationsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListOperationsRequest) + ListOperationsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListOperationsRequest.newBuilder() to construct. + private ListOperationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListOperationsRequest() { + projectId_ = ""; + zone_ = ""; + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListOperationsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListOperationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListOperationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListOperationsRequest.class, + com.google.container.v1beta1.ListOperationsRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://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=2964 + * @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=2964 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Required. Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) to return
+   * operations for, or `-` for all zones. This field has been deprecated and
+   * replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2973 + * @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=2973 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARENT_FIELD_NUMBER = 4; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * The parent (project and location) where the operations will be listed.
+   * Specified in the format `projects/*/locations/*`.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * The parent (project and location) where the operations will be listed.
+   * Specified in the format `projects/*/locations/*`.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + projectId_ = ""; + + zone_ = ""; + + parent_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListOperationsRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ListOperationsRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.ListOperationsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ListOperationsRequest build() { + com.google.container.v1beta1.ListOperationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ListOperationsRequest buildPartial() { + com.google.container.v1beta1.ListOperationsRequest result = + new com.google.container.v1beta1.ListOperationsRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ListOperationsRequest) { + return mergeFrom((com.google.container.v1beta1.ListOperationsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ListOperationsRequest other) { + if (other == com.google.container.v1beta1.ListOperationsRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 34: + { + parent_ = input.readStringRequireUtf8(); + + 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 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=2964 + * @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=2964 + * @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=2964 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://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=2964 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://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=2964 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) to return
+     * operations for, or `-` for all zones. This field has been deprecated and
+     * replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2973 + * @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=2973 + * @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=2973 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) to return
+     * operations for, or `-` for all zones. This field has been deprecated and
+     * replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2973 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) to return
+     * operations for, or `-` for all zones. This field has been deprecated and
+     * replaced by the parent field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2973 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * The parent (project and location) where the operations will be listed.
+     * Specified in the format `projects/*/locations/*`.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The parent (project and location) where the operations will be listed.
+     * Specified in the format `projects/*/locations/*`.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The parent (project and location) where the operations will be listed.
+     * Specified in the format `projects/*/locations/*`.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The parent (project and location) where the operations will be listed.
+     * Specified in the format `projects/*/locations/*`.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * The parent (project and location) where the operations will be listed.
+     * Specified in the format `projects/*/locations/*`.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ListOperationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ListOperationsRequest) + private static final com.google.container.v1beta1.ListOperationsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ListOperationsRequest(); + } + + public static com.google.container.v1beta1.ListOperationsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOperationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..391faeb41128 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequestOrBuilder.java @@ -0,0 +1,128 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ListOperationsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListOperationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://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=2964 + * @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=2964 + * @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=2973 + * @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=2973 + * @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 new file mode 100644 index 000000000000..fb6498a87c02 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsResponse.java @@ -0,0 +1,1209 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * ListOperationsResponse is the result of ListOperationsRequest.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ListOperationsResponse} + */ +public final class ListOperationsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListOperationsResponse) + ListOperationsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListOperationsResponse.newBuilder() to construct. + private ListOperationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListOperationsResponse() { + operations_ = java.util.Collections.emptyList(); + missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListOperationsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListOperationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListOperationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListOperationsResponse.class, + com.google.container.v1beta1.ListOperationsResponse.Builder.class); + } + + public static final int OPERATIONS_FIELD_NUMBER = 1; + private java.util.List operations_; + /** + * + * + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + @java.lang.Override + public java.util.List getOperationsList() { + return operations_; + } + /** + * + * + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + @java.lang.Override + public java.util.List + getOperationsOrBuilderList() { + return operations_; + } + /** + * + * + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + @java.lang.Override + public int getOperationsCount() { + return operations_.size(); + } + /** + * + * + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.Operation getOperations(int index) { + return operations_.get(index); + } + /** + * + * + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.OperationOrBuilder getOperationsOrBuilder(int index) { + return operations_.get(index); + } + + public static final int MISSING_ZONES_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList missingZones_; + /** + * + * + *
+   * If any zones are listed here, the list of operations returned
+   * may be missing the operations from those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @return A list containing the missingZones. + */ + public com.google.protobuf.ProtocolStringList getMissingZonesList() { + return missingZones_; + } + /** + * + * + *
+   * If any zones are listed here, the list of operations returned
+   * may be missing the operations from those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @return The count of missingZones. + */ + public int getMissingZonesCount() { + return missingZones_.size(); + } + /** + * + * + *
+   * If any zones are listed here, the list of operations returned
+   * may be missing the operations from those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index of the element to return. + * @return The missingZones at the given index. + */ + public java.lang.String getMissingZones(int index) { + return missingZones_.get(index); + } + /** + * + * + *
+   * If any zones are listed here, the list of operations returned
+   * may be missing the operations from those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index of the value to return. + * @return The bytes of the missingZones at the given index. + */ + public com.google.protobuf.ByteString getMissingZonesBytes(int index) { + return missingZones_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < operations_.size(); i++) { + output.writeMessage(1, operations_.get(i)); + } + for (int i = 0; i < missingZones_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, missingZones_.getRaw(i)); + } + 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(); + if (operationsBuilder_ == null) { + operations_ = java.util.Collections.emptyList(); + } else { + operations_ = null; + operationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListOperationsResponse_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ListOperationsResponse getDefaultInstanceForType() { + return com.google.container.v1beta1.ListOperationsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ListOperationsResponse build() { + com.google.container.v1beta1.ListOperationsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ListOperationsResponse buildPartial() { + com.google.container.v1beta1.ListOperationsResponse result = + new com.google.container.v1beta1.ListOperationsResponse(this); + int from_bitField0_ = bitField0_; + if (operationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + operations_ = java.util.Collections.unmodifiableList(operations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.operations_ = operations_; + } else { + result.operations_ = operationsBuilder_.build(); + } + if (((bitField0_ & 0x00000002) != 0)) { + missingZones_ = missingZones_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.missingZones_ = missingZones_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ListOperationsResponse) { + return mergeFrom((com.google.container.v1beta1.ListOperationsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ListOperationsResponse other) { + if (other == com.google.container.v1beta1.ListOperationsResponse.getDefaultInstance()) + return this; + if (operationsBuilder_ == null) { + if (!other.operations_.isEmpty()) { + if (operations_.isEmpty()) { + operations_ = other.operations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOperationsIsMutable(); + operations_.addAll(other.operations_); + } + onChanged(); + } + } else { + if (!other.operations_.isEmpty()) { + if (operationsBuilder_.isEmpty()) { + operationsBuilder_.dispose(); + operationsBuilder_ = null; + operations_ = other.operations_; + bitField0_ = (bitField0_ & ~0x00000001); + operationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOperationsFieldBuilder() + : null; + } else { + operationsBuilder_.addAllMessages(other.operations_); + } + } + } + if (!other.missingZones_.isEmpty()) { + if (missingZones_.isEmpty()) { + missingZones_ = other.missingZones_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureMissingZonesIsMutable(); + missingZones_.addAll(other.missingZones_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.LazyStringList missingZones_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureMissingZonesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + missingZones_ = new com.google.protobuf.LazyStringArrayList(missingZones_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @return A list containing the missingZones. + */ + public com.google.protobuf.ProtocolStringList getMissingZonesList() { + return missingZones_.getUnmodifiableView(); + } + /** + * + * + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @return The count of missingZones. + */ + public int getMissingZonesCount() { + return missingZones_.size(); + } + /** + * + * + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index of the element to return. + * @return The missingZones at the given index. + */ + public java.lang.String getMissingZones(int index) { + return missingZones_.get(index); + } + /** + * + * + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index of the value to return. + * @return The bytes of the missingZones at the given index. + */ + public com.google.protobuf.ByteString getMissingZonesBytes(int index) { + return missingZones_.getByteString(index); + } + /** + * + * + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index to set the value at. + * @param value The missingZones to set. + * @return This builder for chaining. + */ + public Builder setMissingZones(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMissingZonesIsMutable(); + missingZones_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @param value The missingZones to add. + * @return This builder for chaining. + */ + public Builder addMissingZones(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMissingZonesIsMutable(); + missingZones_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @param values The missingZones to add. + * @return This builder for chaining. + */ + public Builder addAllMissingZones(java.lang.Iterable values) { + ensureMissingZonesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, missingZones_); + onChanged(); + return this; + } + /** + * + * + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @return This builder for chaining. + */ + public Builder clearMissingZones() { + missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @param value The bytes of the missingZones to add. + * @return This builder for chaining. + */ + public Builder addMissingZonesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureMissingZonesIsMutable(); + missingZones_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ListOperationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ListOperationsResponse) + private static final com.google.container.v1beta1.ListOperationsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ListOperationsResponse(); + } + + public static com.google.container.v1beta1.ListOperationsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOperationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..968c8da5ef78 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsResponseOrBuilder.java @@ -0,0 +1,132 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ListOperationsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListOperationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + java.util.List getOperationsList(); + /** + * + * + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + com.google.container.v1beta1.Operation getOperations(int index); + /** + * + * + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + int getOperationsCount(); + /** + * + * + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + java.util.List + getOperationsOrBuilderList(); + /** + * + * + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + com.google.container.v1beta1.OperationOrBuilder getOperationsOrBuilder(int index); + + /** + * + * + *
+   * If any zones are listed here, the list of operations returned
+   * may be missing the operations from those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @return A list containing the missingZones. + */ + java.util.List getMissingZonesList(); + /** + * + * + *
+   * If any zones are listed here, the list of operations returned
+   * may be missing the operations from those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @return The count of missingZones. + */ + int getMissingZonesCount(); + /** + * + * + *
+   * If any zones are listed here, the list of operations returned
+   * may be missing the operations from those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index of the element to return. + * @return The missingZones at the given index. + */ + java.lang.String getMissingZones(int index); + /** + * + * + *
+   * If any zones are listed here, the list of operations returned
+   * may be missing the operations from those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index of the value to return. + * @return The bytes of the missingZones at the given index. + */ + com.google.protobuf.ByteString getMissingZonesBytes(int index); +} diff --git a/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 new file mode 100644 index 000000000000..33368fc18bcc --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksRequest.java @@ -0,0 +1,1112 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * ListUsableSubnetworksRequest requests the list of usable subnetworks.
+ * available to a user for creating clusters.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ListUsableSubnetworksRequest} + */ +public final class ListUsableSubnetworksRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListUsableSubnetworksRequest) + ListUsableSubnetworksRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListUsableSubnetworksRequest.newBuilder() to construct. + private ListUsableSubnetworksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListUsableSubnetworksRequest() { + parent_ = ""; + filter_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListUsableSubnetworksRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListUsableSubnetworksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListUsableSubnetworksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListUsableSubnetworksRequest.class, + com.google.container.v1beta1.ListUsableSubnetworksRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The parent project where subnetworks are usable.
+   * Specified in the format `projects/*`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The parent project where subnetworks are usable.
+   * Specified in the format `projects/*`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * Filtering currently only supports equality on the networkProjectId and must
+   * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+   * is the project which owns the listed subnetworks. This defaults to the
+   * parent project ID.
+   * 
+ * + * string filter = 2; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Filtering currently only supports equality on the networkProjectId and must
+   * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+   * is the project which owns the listed subnetworks. This defaults to the
+   * parent project ID.
+   * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_; + /** + * + * + *
+   * The max number of results per page that should be returned. If the number
+   * of available results is larger than `page_size`, a `next_page_token` is
+   * returned which can be used to get the next page of results in subsequent
+   * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
+   * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * Specifies a page token to use. Set this to the nextPageToken returned by
+   * previous list requests to get the next page of results.
+   * 
+ * + * string page_token = 4; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Specifies a page token to use. Set this to the nextPageToken returned by
+   * previous list requests to get the next page of results.
+   * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + parent_ = ""; + + filter_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListUsableSubnetworksRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ListUsableSubnetworksRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.ListUsableSubnetworksRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ListUsableSubnetworksRequest build() { + com.google.container.v1beta1.ListUsableSubnetworksRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ListUsableSubnetworksRequest buildPartial() { + com.google.container.v1beta1.ListUsableSubnetworksRequest result = + new com.google.container.v1beta1.ListUsableSubnetworksRequest(this); + result.parent_ = parent_; + result.filter_ = filter_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ListUsableSubnetworksRequest) { + return mergeFrom((com.google.container.v1beta1.ListUsableSubnetworksRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ListUsableSubnetworksRequest other) { + if (other == com.google.container.v1beta1.ListUsableSubnetworksRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + filter_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + + 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 java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent project where subnetworks are usable.
+     * Specified in the format `projects/*`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The parent project where subnetworks are usable.
+     * Specified in the format `projects/*`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The parent project where subnetworks are usable.
+     * Specified in the format `projects/*`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent project where subnetworks are usable.
+     * Specified in the format `projects/*`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent project where subnetworks are usable.
+     * Specified in the format `projects/*`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Filtering currently only supports equality on the networkProjectId and must
+     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+     * is the project which owns the listed subnetworks. This defaults to the
+     * parent project ID.
+     * 
+ * + * string filter = 2; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Filtering currently only supports equality on the networkProjectId and must
+     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+     * is the project which owns the listed subnetworks. This defaults to the
+     * parent project ID.
+     * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Filtering currently only supports equality on the networkProjectId and must
+     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+     * is the project which owns the listed subnetworks. This defaults to the
+     * parent project ID.
+     * 
+ * + * string filter = 2; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Filtering currently only supports equality on the networkProjectId and must
+     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+     * is the project which owns the listed subnetworks. This defaults to the
+     * parent project ID.
+     * 
+ * + * string filter = 2; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Filtering currently only supports equality on the networkProjectId and must
+     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+     * is the project which owns the listed subnetworks. This defaults to the
+     * parent project ID.
+     * 
+ * + * string filter = 2; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The max number of results per page that should be returned. If the number
+     * of available results is larger than `page_size`, a `next_page_token` is
+     * returned which can be used to get the next page of results in subsequent
+     * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
+     * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The max number of results per page that should be returned. If the number
+     * of available results is larger than `page_size`, a `next_page_token` is
+     * returned which can be used to get the next page of results in subsequent
+     * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
+     * 
+ * + * int32 page_size = 3; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The max number of results per page that should be returned. If the number
+     * of available results is larger than `page_size`, a `next_page_token` is
+     * returned which can be used to get the next page of results in subsequent
+     * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
+     * 
+ * + * int32 page_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Specifies a page token to use. Set this to the nextPageToken returned by
+     * previous list requests to get the next page of results.
+     * 
+ * + * string page_token = 4; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Specifies a page token to use. Set this to the nextPageToken returned by
+     * previous list requests to get the next page of results.
+     * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Specifies a page token to use. Set this to the nextPageToken returned by
+     * previous list requests to get the next page of results.
+     * 
+ * + * string page_token = 4; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies a page token to use. Set this to the nextPageToken returned by
+     * previous list requests to get the next page of results.
+     * 
+ * + * string page_token = 4; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies a page token to use. Set this to the nextPageToken returned by
+     * previous list requests to get the next page of results.
+     * 
+ * + * string page_token = 4; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ListUsableSubnetworksRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ListUsableSubnetworksRequest) + private static final com.google.container.v1beta1.ListUsableSubnetworksRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ListUsableSubnetworksRequest(); + } + + public static com.google.container.v1beta1.ListUsableSubnetworksRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableSubnetworksRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..c78971aecaec --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksRequestOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ListUsableSubnetworksRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListUsableSubnetworksRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent project where subnetworks are usable.
+   * Specified in the format `projects/*`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent project where subnetworks are usable.
+   * Specified in the format `projects/*`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Filtering currently only supports equality on the networkProjectId and must
+   * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+   * is the project which owns the listed subnetworks. This defaults to the
+   * parent project ID.
+   * 
+ * + * string filter = 2; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Filtering currently only supports equality on the networkProjectId and must
+   * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+   * is the project which owns the listed subnetworks. This defaults to the
+   * parent project ID.
+   * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * The max number of results per page that should be returned. If the number
+   * of available results is larger than `page_size`, a `next_page_token` is
+   * returned which can be used to get the next page of results in subsequent
+   * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
+   * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Specifies a page token to use. Set this to the nextPageToken returned by
+   * previous list requests to get the next page of results.
+   * 
+ * + * string page_token = 4; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Specifies a page token to use. Set this to the nextPageToken returned by
+   * previous list requests to get the next page of results.
+   * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/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 new file mode 100644 index 000000000000..232f03d02937 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksResponse.java @@ -0,0 +1,1131 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * ListUsableSubnetworksResponse is the response of
+ * ListUsableSubnetworksRequest.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ListUsableSubnetworksResponse} + */ +public final class ListUsableSubnetworksResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListUsableSubnetworksResponse) + ListUsableSubnetworksResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListUsableSubnetworksResponse.newBuilder() to construct. + private ListUsableSubnetworksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListUsableSubnetworksResponse() { + subnetworks_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListUsableSubnetworksResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListUsableSubnetworksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListUsableSubnetworksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListUsableSubnetworksResponse.class, + com.google.container.v1beta1.ListUsableSubnetworksResponse.Builder.class); + } + + public static final int SUBNETWORKS_FIELD_NUMBER = 1; + private java.util.List subnetworks_; + /** + * + * + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + @java.lang.Override + public java.util.List getSubnetworksList() { + return subnetworks_; + } + /** + * + * + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + @java.lang.Override + public java.util.List + getSubnetworksOrBuilderList() { + return subnetworks_; + } + /** + * + * + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + @java.lang.Override + public int getSubnetworksCount() { + return subnetworks_.size(); + } + /** + * + * + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.UsableSubnetwork getSubnetworks(int index) { + return subnetworks_.get(index); + } + /** + * + * + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.UsableSubnetworkOrBuilder getSubnetworksOrBuilder(int index) { + return subnetworks_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * This token allows you to get the next page of results for list requests.
+   * If the number of results is larger than `page_size`, use the
+   * `next_page_token` as a value for the query parameter `page_token` in the
+   * next request. The value will become empty when there are no more pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * This token allows you to get the next page of results for list requests.
+   * If the number of results is larger than `page_size`, use the
+   * `next_page_token` as a value for the query parameter `page_token` in the
+   * next request. The value will become empty when there are no more pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < subnetworks_.size(); i++) { + output.writeMessage(1, subnetworks_.get(i)); + } + if (!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(); + 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); + int from_bitField0_ = bitField0_; + if (subnetworksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + subnetworks_ = java.util.Collections.unmodifiableList(subnetworks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.subnetworks_ = subnetworks_; + } else { + result.subnetworks_ = subnetworksBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ListUsableSubnetworksResponse) { + return mergeFrom((com.google.container.v1beta1.ListUsableSubnetworksResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ListUsableSubnetworksResponse other) { + if (other == com.google.container.v1beta1.ListUsableSubnetworksResponse.getDefaultInstance()) + return this; + if (subnetworksBuilder_ == null) { + if (!other.subnetworks_.isEmpty()) { + if (subnetworks_.isEmpty()) { + subnetworks_ = other.subnetworks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSubnetworksIsMutable(); + subnetworks_.addAll(other.subnetworks_); + } + onChanged(); + } + } else { + if (!other.subnetworks_.isEmpty()) { + if (subnetworksBuilder_.isEmpty()) { + subnetworksBuilder_.dispose(); + subnetworksBuilder_ = null; + subnetworks_ = other.subnetworks_; + bitField0_ = (bitField0_ & ~0x00000001); + subnetworksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSubnetworksFieldBuilder() + : null; + } else { + subnetworksBuilder_.addAllMessages(other.subnetworks_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * This token allows you to get the next page of results for list requests.
+     * If the number of results is larger than `page_size`, use the
+     * `next_page_token` as a value for the query parameter `page_token` in the
+     * next request. The value will become empty when there are no more pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * This token allows you to get the next page of results for list requests.
+     * If the number of results is larger than `page_size`, use the
+     * `next_page_token` as a value for the query parameter `page_token` in the
+     * next request. The value will become empty when there are no more pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ListUsableSubnetworksResponse) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ListUsableSubnetworksResponse) + private static final com.google.container.v1beta1.ListUsableSubnetworksResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ListUsableSubnetworksResponse(); + } + + public static com.google.container.v1beta1.ListUsableSubnetworksResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableSubnetworksResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..59936038be81 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksResponseOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ListUsableSubnetworksResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListUsableSubnetworksResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + java.util.List getSubnetworksList(); + /** + * + * + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + com.google.container.v1beta1.UsableSubnetwork getSubnetworks(int index); + /** + * + * + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + int getSubnetworksCount(); + /** + * + * + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + java.util.List + getSubnetworksOrBuilderList(); + /** + * + * + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + com.google.container.v1beta1.UsableSubnetworkOrBuilder getSubnetworksOrBuilder(int index); + + /** + * + * + *
+   * This token allows you to get the next page of results for list requests.
+   * If the number of results is larger than `page_size`, use the
+   * `next_page_token` as a value for the query parameter `page_token` in the
+   * next request. The value will become empty when there are no more pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * This token allows you to get the next page of results for list requests.
+   * If the number of results is larger than `page_size`, use the
+   * `next_page_token` as a value for the query parameter `page_token` in the
+   * next request. The value will become empty when there are no more pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/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 new file mode 100644 index 000000000000..95011d772c45 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Location.java @@ -0,0 +1,1033 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Location returns the location name, and if the location is recommended
+ * for GKE cluster scheduling.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.Location} + */ +public final class Location extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.Location) + LocationOrBuilder { + private static final long serialVersionUID = 0L; + // Use Location.newBuilder() to construct. + private Location(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Location() { + type_ = 0; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Location(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Location_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Location_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.Location.class, + com.google.container.v1beta1.Location.Builder.class); + } + + /** + * + * + *
+   * LocationType is the type of GKE location, regional or zonal.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.Location.LocationType} + */ + public enum LocationType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * LOCATION_TYPE_UNSPECIFIED means the location type was not determined.
+     * 
+ * + * LOCATION_TYPE_UNSPECIFIED = 0; + */ + LOCATION_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * A GKE Location where Zonal clusters can be created.
+     * 
+ * + * ZONE = 1; + */ + ZONE(1), + /** + * + * + *
+     * A GKE Location where Regional clusters can be created.
+     * 
+ * + * REGION = 2; + */ + REGION(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * LOCATION_TYPE_UNSPECIFIED means the location type was not determined.
+     * 
+ * + * LOCATION_TYPE_UNSPECIFIED = 0; + */ + public static final int LOCATION_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * A GKE Location where Zonal clusters can be created.
+     * 
+ * + * ZONE = 1; + */ + public static final int ZONE_VALUE = 1; + /** + * + * + *
+     * A GKE Location where Regional clusters can be created.
+     * 
+ * + * REGION = 2; + */ + public static final int REGION_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LocationType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static LocationType forNumber(int value) { + switch (value) { + case 0: + return LOCATION_TYPE_UNSPECIFIED; + case 1: + return ZONE; + case 2: + return REGION; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LocationType findValueByNumber(int number) { + return LocationType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1beta1.Location.getDescriptor().getEnumTypes().get(0); + } + + private static final LocationType[] VALUES = values(); + + public static LocationType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private LocationType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.Location.LocationType) + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + * + * + *
+   * Contains the type of location this Location is for.
+   * Regional or Zonal.
+   * 
+ * + * .google.container.v1beta1.Location.LocationType type = 1; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * Contains the type of location this Location is for.
+   * Regional or Zonal.
+   * 
+ * + * .google.container.v1beta1.Location.LocationType type = 1; + * + * @return The type. + */ + @java.lang.Override + public com.google.container.v1beta1.Location.LocationType getType() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.Location.LocationType result = + com.google.container.v1beta1.Location.LocationType.valueOf(type_); + return result == null + ? com.google.container.v1beta1.Location.LocationType.UNRECOGNIZED + : result; + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Contains the name of the resource requested.
+   * Specified in the format `projects/*/locations/*`.
+   * 
+ * + * string name = 2; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Contains the name of the resource requested.
+   * Specified in the format `projects/*/locations/*`.
+   * 
+ * + * string name = 2; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RECOMMENDED_FIELD_NUMBER = 3; + private boolean recommended_; + /** + * + * + *
+   * Whether the location is 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(); + type_ = 0; + + name_ = ""; + + recommended_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Location_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.Location getDefaultInstanceForType() { + return com.google.container.v1beta1.Location.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.Location build() { + com.google.container.v1beta1.Location result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.Location buildPartial() { + com.google.container.v1beta1.Location result = + new com.google.container.v1beta1.Location(this); + result.type_ = type_; + result.name_ = name_; + result.recommended_ = recommended_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.Location) { + return mergeFrom((com.google.container.v1beta1.Location) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.Location other) { + if (other == com.google.container.v1beta1.Location.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getRecommended() != false) { + setRecommended(other.getRecommended()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 8 + case 18: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + recommended_ = input.readBool(); + + 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 type_ = 0; + /** + * + * + *
+     * Contains the type of location this Location is for.
+     * Regional or Zonal.
+     * 
+ * + * .google.container.v1beta1.Location.LocationType type = 1; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Contains the type of location this Location is for.
+     * Regional or Zonal.
+     * 
+ * + * .google.container.v1beta1.Location.LocationType type = 1; + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Contains the type of location this Location is for.
+     * Regional or Zonal.
+     * 
+ * + * .google.container.v1beta1.Location.LocationType type = 1; + * + * @return The type. + */ + @java.lang.Override + public com.google.container.v1beta1.Location.LocationType getType() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.Location.LocationType result = + com.google.container.v1beta1.Location.LocationType.valueOf(type_); + return result == null + ? com.google.container.v1beta1.Location.LocationType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Contains the type of location this Location is for.
+     * Regional or Zonal.
+     * 
+ * + * .google.container.v1beta1.Location.LocationType type = 1; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.container.v1beta1.Location.LocationType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Contains the type of location this Location is for.
+     * Regional or Zonal.
+     * 
+ * + * .google.container.v1beta1.Location.LocationType type = 1; + * + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Contains the name of the resource requested.
+     * Specified in the format `projects/*/locations/*`.
+     * 
+ * + * string name = 2; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Contains the name of the resource requested.
+     * Specified in the format `projects/*/locations/*`.
+     * 
+ * + * string name = 2; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Contains the name of the resource requested.
+     * Specified in the format `projects/*/locations/*`.
+     * 
+ * + * string name = 2; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Contains the name of the resource requested.
+     * Specified in the format `projects/*/locations/*`.
+     * 
+ * + * string name = 2; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Contains the name of the resource requested.
+     * Specified in the format `projects/*/locations/*`.
+     * 
+ * + * string name = 2; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private boolean recommended_; + /** + * + * + *
+     * Whether the location is 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the location is recommended for GKE cluster scheduling.
+     * 
+ * + * bool recommended = 3; + * + * @return This builder for chaining. + */ + public Builder clearRecommended() { + + recommended_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.Location) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.Location) + private static final com.google.container.v1beta1.Location DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.Location(); + } + + public static com.google.container.v1beta1.Location getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Location parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..6b6e17c0d9ad --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LocationOrBuilder.java @@ -0,0 +1,92 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface LocationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.Location) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Contains the type of location this Location is for.
+   * Regional or Zonal.
+   * 
+ * + * .google.container.v1beta1.Location.LocationType type = 1; + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *
+   * Contains the type of location this Location is for.
+   * Regional or Zonal.
+   * 
+ * + * .google.container.v1beta1.Location.LocationType type = 1; + * + * @return The type. + */ + com.google.container.v1beta1.Location.LocationType getType(); + + /** + * + * + *
+   * Contains the name of the resource requested.
+   * Specified in the format `projects/*/locations/*`.
+   * 
+ * + * string name = 2; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Contains the name of the resource requested.
+   * Specified in the format `projects/*/locations/*`.
+   * 
+ * + * string name = 2; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Whether the location is 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 new file mode 100644 index 000000000000..a25797890889 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingComponentConfig.java @@ -0,0 +1,1089 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + 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) { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.LoggingComponentConfig.Component result = + com.google.container.v1beta1.LoggingComponentConfig.Component.valueOf(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(); + 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); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + enableComponents_ = java.util.Collections.unmodifiableList(enableComponents_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.enableComponents_ = enableComponents_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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 new file mode 100644 index 000000000000..34666b05c87d --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingComponentConfigOrBuilder.java @@ -0,0 +1,99 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +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 new file mode 100644 index 000000000000..e250f8534341 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingConfig.java @@ -0,0 +1,705 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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); + } + + 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 componentConfig_ != null; + } + /** + * + * + *
+   * 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 getComponentConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (componentConfig_ != null) { + output.writeMessage(1, getComponentConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (componentConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getComponentConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (componentConfigBuilder_ == null) { + componentConfig_ = null; + } else { + componentConfig_ = null; + componentConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.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 (componentConfigBuilder_ == null) { + result.componentConfig_ = componentConfig_; + } else { + result.componentConfig_ = componentConfigBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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); + + 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 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 componentConfigBuilder_ != null || componentConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + componentConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + componentConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (componentConfig_ != null) { + componentConfig_ = + com.google.container.v1beta1.LoggingComponentConfig.newBuilder(componentConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + componentConfig_ = value; + } + onChanged(); + } else { + componentConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1beta1.LoggingComponentConfig component_config = 1; + */ + public Builder clearComponentConfig() { + if (componentConfigBuilder_ == null) { + componentConfig_ = null; + onChanged(); + } else { + componentConfig_ = null; + componentConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1beta1.LoggingComponentConfig component_config = 1; + */ + public com.google.container.v1beta1.LoggingComponentConfig.Builder getComponentConfigBuilder() { + + 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 new file mode 100644 index 000000000000..8f88a39fef5c --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingConfigOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +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 new file mode 100644 index 000000000000..35eb17dcd669 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingVariantConfig.java @@ -0,0 +1,753 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.LoggingVariantConfig.Variant result = + com.google.container.v1beta1.LoggingVariantConfig.Variant.valueOf(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(); + 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); + result.variant_ = variant_; + 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.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(); + + 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 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; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.LoggingVariantConfig.Variant result = + com.google.container.v1beta1.LoggingVariantConfig.Variant.valueOf(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(); + } + + 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() { + + 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 new file mode 100644 index 000000000000..22ca9f166b4f --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingVariantConfigOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface 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 new file mode 100644 index 000000000000..35f73224eb76 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceExclusionOptions.java @@ -0,0 +1,769 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Represents the Maintenance exclusion option.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.MaintenanceExclusionOptions} + */ +public final class MaintenanceExclusionOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.MaintenanceExclusionOptions) + MaintenanceExclusionOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use MaintenanceExclusionOptions.newBuilder() to construct. + private MaintenanceExclusionOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MaintenanceExclusionOptions() { + scope_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MaintenanceExclusionOptions(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MaintenanceExclusionOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MaintenanceExclusionOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MaintenanceExclusionOptions.class, + com.google.container.v1beta1.MaintenanceExclusionOptions.Builder.class); + } + + /** + * + * + *
+   * Scope of exclusion.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.MaintenanceExclusionOptions.Scope} + */ + public enum Scope implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * NO_UPGRADES excludes all upgrades, including patch upgrades and minor
+     * upgrades across control planes and nodes. This is the default exclusion
+     * behavior.
+     * 
+ * + * NO_UPGRADES = 0; + */ + NO_UPGRADES(0), + /** + * + * + *
+     * NO_MINOR_UPGRADES excludes all minor upgrades for the cluster, only
+     * patches are allowed.
+     * 
+ * + * NO_MINOR_UPGRADES = 1; + */ + NO_MINOR_UPGRADES(1), + /** + * + * + *
+     * NO_MINOR_OR_NODE_UPGRADES excludes all minor upgrades for the cluster,
+     * and also exclude all node pool upgrades. Only control
+     * plane patches are allowed.
+     * 
+ * + * NO_MINOR_OR_NODE_UPGRADES = 2; + */ + NO_MINOR_OR_NODE_UPGRADES(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * NO_UPGRADES excludes all upgrades, including patch upgrades and minor
+     * upgrades across control planes and nodes. This is the default exclusion
+     * behavior.
+     * 
+ * + * NO_UPGRADES = 0; + */ + public static final int NO_UPGRADES_VALUE = 0; + /** + * + * + *
+     * NO_MINOR_UPGRADES excludes all minor upgrades for the cluster, only
+     * patches are allowed.
+     * 
+ * + * NO_MINOR_UPGRADES = 1; + */ + public static final int NO_MINOR_UPGRADES_VALUE = 1; + /** + * + * + *
+     * NO_MINOR_OR_NODE_UPGRADES excludes all minor upgrades for the cluster,
+     * and also exclude all node pool upgrades. Only control
+     * plane patches are allowed.
+     * 
+ * + * NO_MINOR_OR_NODE_UPGRADES = 2; + */ + public static final int NO_MINOR_OR_NODE_UPGRADES_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Scope valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Scope forNumber(int value) { + switch (value) { + case 0: + return NO_UPGRADES; + case 1: + return NO_MINOR_UPGRADES; + case 2: + return NO_MINOR_OR_NODE_UPGRADES; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Scope findValueByNumber(int number) { + return Scope.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1beta1.MaintenanceExclusionOptions.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Scope[] VALUES = values(); + + public static Scope valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Scope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.MaintenanceExclusionOptions.Scope) + } + + public static final int SCOPE_FIELD_NUMBER = 1; + private int scope_; + /** + * + * + *
+   * Scope specifies the upgrade scope which upgrades are blocked by the
+   * exclusion.
+   * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+   * Scope specifies the upgrade scope which upgrades are blocked by the
+   * exclusion.
+   * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; + * + * @return The scope. + */ + @java.lang.Override + public com.google.container.v1beta1.MaintenanceExclusionOptions.Scope getScope() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.MaintenanceExclusionOptions.Scope result = + com.google.container.v1beta1.MaintenanceExclusionOptions.Scope.valueOf(scope_); + return result == null + ? com.google.container.v1beta1.MaintenanceExclusionOptions.Scope.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (scope_ + != com.google.container.v1beta1.MaintenanceExclusionOptions.Scope.NO_UPGRADES.getNumber()) { + output.writeEnum(1, scope_); + } + 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(); + scope_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MaintenanceExclusionOptions_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.MaintenanceExclusionOptions getDefaultInstanceForType() { + return com.google.container.v1beta1.MaintenanceExclusionOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.MaintenanceExclusionOptions build() { + com.google.container.v1beta1.MaintenanceExclusionOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.MaintenanceExclusionOptions buildPartial() { + com.google.container.v1beta1.MaintenanceExclusionOptions result = + new com.google.container.v1beta1.MaintenanceExclusionOptions(this); + result.scope_ = scope_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.MaintenanceExclusionOptions) { + return mergeFrom((com.google.container.v1beta1.MaintenanceExclusionOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.MaintenanceExclusionOptions other) { + if (other == com.google.container.v1beta1.MaintenanceExclusionOptions.getDefaultInstance()) + return this; + if (other.scope_ != 0) { + setScopeValue(other.getScopeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 scope_ = 0; + /** + * + * + *
+     * Scope specifies the upgrade scope which upgrades are blocked by the
+     * exclusion.
+     * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+     * Scope specifies the upgrade scope which upgrades are blocked by the
+     * exclusion.
+     * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; + * + * @param value The enum numeric value on the wire for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeValue(int value) { + + scope_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Scope specifies the upgrade scope which upgrades are blocked by the
+     * exclusion.
+     * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; + * + * @return The scope. + */ + @java.lang.Override + public com.google.container.v1beta1.MaintenanceExclusionOptions.Scope getScope() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.MaintenanceExclusionOptions.Scope result = + com.google.container.v1beta1.MaintenanceExclusionOptions.Scope.valueOf(scope_); + return result == null + ? com.google.container.v1beta1.MaintenanceExclusionOptions.Scope.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Scope specifies the upgrade scope which upgrades are blocked by the
+     * exclusion.
+     * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; + * + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope(com.google.container.v1beta1.MaintenanceExclusionOptions.Scope value) { + if (value == null) { + throw new NullPointerException(); + } + + scope_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Scope specifies the upgrade scope which upgrades are blocked by the
+     * exclusion.
+     * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; + * + * @return This builder for chaining. + */ + public Builder clearScope() { + + scope_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.MaintenanceExclusionOptions) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.MaintenanceExclusionOptions) + private static final com.google.container.v1beta1.MaintenanceExclusionOptions DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.MaintenanceExclusionOptions(); + } + + public static com.google.container.v1beta1.MaintenanceExclusionOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MaintenanceExclusionOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..244f049f91ac --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceExclusionOptionsOrBuilder.java @@ -0,0 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface MaintenanceExclusionOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MaintenanceExclusionOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Scope specifies the upgrade scope which upgrades are blocked by the
+   * exclusion.
+   * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; + * + * @return The enum numeric value on the wire for scope. + */ + int getScopeValue(); + /** + * + * + *
+   * Scope specifies the upgrade scope which upgrades are blocked by the
+   * exclusion.
+   * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; + * + * @return The scope. + */ + com.google.container.v1beta1.MaintenanceExclusionOptions.Scope getScope(); +} diff --git a/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 new file mode 100644 index 000000000000..cb7df4583a4c --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenancePolicy.java @@ -0,0 +1,910 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * MaintenancePolicy defines the maintenance policy to be used for the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.MaintenancePolicy} + */ +public final class MaintenancePolicy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.MaintenancePolicy) + MaintenancePolicyOrBuilder { + private static final long serialVersionUID = 0L; + // Use MaintenancePolicy.newBuilder() to construct. + private MaintenancePolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MaintenancePolicy() { + resourceVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MaintenancePolicy(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MaintenancePolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MaintenancePolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MaintenancePolicy.class, + com.google.container.v1beta1.MaintenancePolicy.Builder.class); + } + + public static final int WINDOW_FIELD_NUMBER = 1; + private com.google.container.v1beta1.MaintenanceWindow window_; + /** + * + * + *
+   * Specifies the maintenance window in which maintenance may be performed.
+   * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + * + * @return Whether the window field is set. + */ + @java.lang.Override + public boolean hasWindow() { + return window_ != null; + } + /** + * + * + *
+   * Specifies the maintenance window in which maintenance may be performed.
+   * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + * + * @return The window. + */ + @java.lang.Override + public com.google.container.v1beta1.MaintenanceWindow getWindow() { + return window_ == null + ? com.google.container.v1beta1.MaintenanceWindow.getDefaultInstance() + : window_; + } + /** + * + * + *
+   * Specifies the maintenance window in which maintenance may be performed.
+   * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.MaintenanceWindowOrBuilder getWindowOrBuilder() { + return getWindow(); + } + + public static final int RESOURCE_VERSION_FIELD_NUMBER = 3; + private volatile java.lang.Object resourceVersion_; + /** + * + * + *
+   * A hash identifying the version of this policy, so that updates to fields of
+   * the policy won't accidentally undo intermediate changes (and so that users
+   * of the API unaware of some fields won't accidentally remove other fields).
+   * Make a `get()` request to the cluster to get the current
+   * resource version and include it with requests to set the policy.
+   * 
+ * + * string resource_version = 3; + * + * @return The resourceVersion. + */ + @java.lang.Override + public java.lang.String getResourceVersion() { + java.lang.Object ref = resourceVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceVersion_ = s; + return s; + } + } + /** + * + * + *
+   * A hash identifying the version of this policy, so that updates to fields of
+   * the policy won't accidentally undo intermediate changes (and so that users
+   * of the API unaware of some fields won't accidentally remove other fields).
+   * Make a `get()` request to the cluster to get the current
+   * resource version and include it with requests to set the policy.
+   * 
+ * + * string resource_version = 3; + * + * @return The bytes for resourceVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceVersionBytes() { + java.lang.Object ref = resourceVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (window_ != null) { + output.writeMessage(1, getWindow()); + } + if (!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 (window_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (windowBuilder_ == null) { + window_ = null; + } else { + window_ = null; + windowBuilder_ = null; + } + resourceVersion_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MaintenancePolicy_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.MaintenancePolicy getDefaultInstanceForType() { + return com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.MaintenancePolicy build() { + com.google.container.v1beta1.MaintenancePolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.MaintenancePolicy buildPartial() { + com.google.container.v1beta1.MaintenancePolicy result = + new com.google.container.v1beta1.MaintenancePolicy(this); + if (windowBuilder_ == null) { + result.window_ = window_; + } else { + result.window_ = windowBuilder_.build(); + } + result.resourceVersion_ = resourceVersion_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.MaintenancePolicy) { + return mergeFrom((com.google.container.v1beta1.MaintenancePolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.MaintenancePolicy other) { + if (other == com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance()) return this; + if (other.hasWindow()) { + mergeWindow(other.getWindow()); + } + if (!other.getResourceVersion().isEmpty()) { + resourceVersion_ = other.resourceVersion_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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); + + break; + } // case 10 + case 26: + { + resourceVersion_ = input.readStringRequireUtf8(); + + 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 com.google.container.v1beta1.MaintenanceWindow window_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaintenanceWindow, + com.google.container.v1beta1.MaintenanceWindow.Builder, + com.google.container.v1beta1.MaintenanceWindowOrBuilder> + windowBuilder_; + /** + * + * + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + * + * @return Whether the window field is set. + */ + public boolean hasWindow() { + return windowBuilder_ != null || window_ != null; + } + /** + * + * + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + * + * @return The window. + */ + public com.google.container.v1beta1.MaintenanceWindow getWindow() { + if (windowBuilder_ == null) { + return window_ == null + ? com.google.container.v1beta1.MaintenanceWindow.getDefaultInstance() + : window_; + } else { + return windowBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + */ + public Builder setWindow(com.google.container.v1beta1.MaintenanceWindow value) { + if (windowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + window_ = value; + onChanged(); + } else { + windowBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + */ + public Builder setWindow( + com.google.container.v1beta1.MaintenanceWindow.Builder builderForValue) { + if (windowBuilder_ == null) { + window_ = builderForValue.build(); + onChanged(); + } else { + windowBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + */ + public Builder mergeWindow(com.google.container.v1beta1.MaintenanceWindow value) { + if (windowBuilder_ == null) { + if (window_ != null) { + window_ = + com.google.container.v1beta1.MaintenanceWindow.newBuilder(window_) + .mergeFrom(value) + .buildPartial(); + } else { + window_ = value; + } + onChanged(); + } else { + windowBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + */ + public Builder clearWindow() { + if (windowBuilder_ == null) { + window_ = null; + onChanged(); + } else { + window_ = null; + windowBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + */ + public com.google.container.v1beta1.MaintenanceWindow.Builder getWindowBuilder() { + + onChanged(); + return getWindowFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + */ + public com.google.container.v1beta1.MaintenanceWindowOrBuilder getWindowOrBuilder() { + if (windowBuilder_ != null) { + return windowBuilder_.getMessageOrBuilder(); + } else { + return window_ == null + ? com.google.container.v1beta1.MaintenanceWindow.getDefaultInstance() + : window_; + } + } + /** + * + * + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaintenanceWindow, + com.google.container.v1beta1.MaintenanceWindow.Builder, + com.google.container.v1beta1.MaintenanceWindowOrBuilder> + getWindowFieldBuilder() { + if (windowBuilder_ == null) { + windowBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaintenanceWindow, + com.google.container.v1beta1.MaintenanceWindow.Builder, + com.google.container.v1beta1.MaintenanceWindowOrBuilder>( + getWindow(), getParentForChildren(), isClean()); + window_ = null; + } + return windowBuilder_; + } + + private java.lang.Object resourceVersion_ = ""; + /** + * + * + *
+     * A hash identifying the version of this policy, so that updates to fields of
+     * the policy won't accidentally undo intermediate changes (and so that users
+     * of the API unaware of some fields won't accidentally remove other fields).
+     * Make a `get()` request to the cluster to get the current
+     * resource version and include it with requests to set the policy.
+     * 
+ * + * string resource_version = 3; + * + * @return The resourceVersion. + */ + public java.lang.String getResourceVersion() { + java.lang.Object ref = resourceVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A hash identifying the version of this policy, so that updates to fields of
+     * the policy won't accidentally undo intermediate changes (and so that users
+     * of the API unaware of some fields won't accidentally remove other fields).
+     * Make a `get()` request to the cluster to get the current
+     * resource version and include it with requests to set the policy.
+     * 
+ * + * string resource_version = 3; + * + * @return The bytes for resourceVersion. + */ + public com.google.protobuf.ByteString getResourceVersionBytes() { + java.lang.Object ref = resourceVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A hash identifying the version of this policy, so that updates to fields of
+     * the policy won't accidentally undo intermediate changes (and so that users
+     * of the API unaware of some fields won't accidentally remove other fields).
+     * Make a `get()` request to the cluster to get the current
+     * resource version and include it with requests to set the policy.
+     * 
+ * + * string resource_version = 3; + * + * @param value The resourceVersion to set. + * @return This builder for chaining. + */ + public Builder setResourceVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A hash identifying the version of this policy, so that updates to fields of
+     * the policy won't accidentally undo intermediate changes (and so that users
+     * of the API unaware of some fields won't accidentally remove other fields).
+     * Make a `get()` request to the cluster to get the current
+     * resource version and include it with requests to set the policy.
+     * 
+ * + * string resource_version = 3; + * + * @return This builder for chaining. + */ + public Builder clearResourceVersion() { + + resourceVersion_ = getDefaultInstance().getResourceVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * A hash identifying the version of this policy, so that updates to fields of
+     * the policy won't accidentally undo intermediate changes (and so that users
+     * of the API unaware of some fields won't accidentally remove other fields).
+     * Make a `get()` request to the cluster to get the current
+     * resource version and include it with requests to set the policy.
+     * 
+ * + * string resource_version = 3; + * + * @param value The bytes for resourceVersion to set. + * @return This builder for chaining. + */ + public Builder setResourceVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceVersion_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.MaintenancePolicy) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.MaintenancePolicy) + private static final com.google.container.v1beta1.MaintenancePolicy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.MaintenancePolicy(); + } + + public static com.google.container.v1beta1.MaintenancePolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MaintenancePolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..328c4f431c81 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenancePolicyOrBuilder.java @@ -0,0 +1,93 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface MaintenancePolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MaintenancePolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Specifies the maintenance window in which maintenance may be performed.
+   * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + * + * @return Whether the window field is set. + */ + boolean hasWindow(); + /** + * + * + *
+   * Specifies the maintenance window in which maintenance may be performed.
+   * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + * + * @return The window. + */ + com.google.container.v1beta1.MaintenanceWindow getWindow(); + /** + * + * + *
+   * Specifies the maintenance window in which maintenance may be performed.
+   * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + */ + com.google.container.v1beta1.MaintenanceWindowOrBuilder getWindowOrBuilder(); + + /** + * + * + *
+   * A hash identifying the version of this policy, so that updates to fields of
+   * the policy won't accidentally undo intermediate changes (and so that users
+   * of the API unaware of some fields won't accidentally remove other fields).
+   * Make a `get()` request to the cluster to get the current
+   * resource version and include it with requests to set the policy.
+   * 
+ * + * string resource_version = 3; + * + * @return The resourceVersion. + */ + java.lang.String getResourceVersion(); + /** + * + * + *
+   * A hash identifying the version of this policy, so that updates to fields of
+   * the policy won't accidentally undo intermediate changes (and so that users
+   * of the API unaware of some fields won't accidentally remove other fields).
+   * Make a `get()` request to the cluster to get the current
+   * resource version and include it with requests to set the policy.
+   * 
+ * + * string resource_version = 3; + * + * @return The bytes for resourceVersion. + */ + com.google.protobuf.ByteString getResourceVersionBytes(); +} diff --git a/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 new file mode 100644 index 000000000000..b8b296867225 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceWindow.java @@ -0,0 +1,1515 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * MaintenanceWindow defines the maintenance window to be used for the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.MaintenanceWindow} + */ +public final class MaintenanceWindow extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.MaintenanceWindow) + MaintenanceWindowOrBuilder { + private static final long serialVersionUID = 0L; + // Use MaintenanceWindow.newBuilder() to construct. + private MaintenanceWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MaintenanceWindow() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MaintenanceWindow(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MaintenanceWindow_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetMaintenanceExclusions(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MaintenanceWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MaintenanceWindow.class, + com.google.container.v1beta1.MaintenanceWindow.Builder.class); + } + + private int policyCase_ = 0; + private java.lang.Object policy_; + + public enum PolicyCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DAILY_MAINTENANCE_WINDOW(2), + RECURRING_WINDOW(3), + POLICY_NOT_SET(0); + private final int value; + + private PolicyCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PolicyCase valueOf(int value) { + return forNumber(value); + } + + public static PolicyCase forNumber(int value) { + switch (value) { + case 2: + return DAILY_MAINTENANCE_WINDOW; + case 3: + return RECURRING_WINDOW; + case 0: + return POLICY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public PolicyCase getPolicyCase() { + return PolicyCase.forNumber(policyCase_); + } + + public static final int DAILY_MAINTENANCE_WINDOW_FIELD_NUMBER = 2; + /** + * + * + *
+   * DailyMaintenanceWindow specifies a daily maintenance operation window.
+   * 
+ * + * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; + * + * @return Whether the dailyMaintenanceWindow field is set. + */ + @java.lang.Override + public boolean hasDailyMaintenanceWindow() { + return policyCase_ == 2; + } + /** + * + * + *
+   * DailyMaintenanceWindow specifies a daily maintenance operation window.
+   * 
+ * + * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; + * + * @return The dailyMaintenanceWindow. + */ + @java.lang.Override + public com.google.container.v1beta1.DailyMaintenanceWindow getDailyMaintenanceWindow() { + if (policyCase_ == 2) { + return (com.google.container.v1beta1.DailyMaintenanceWindow) policy_; + } + return com.google.container.v1beta1.DailyMaintenanceWindow.getDefaultInstance(); + } + /** + * + * + *
+   * DailyMaintenanceWindow specifies a daily maintenance operation window.
+   * 
+ * + * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + @java.lang.Override + public com.google.container.v1beta1.DailyMaintenanceWindowOrBuilder + getDailyMaintenanceWindowOrBuilder() { + if (policyCase_ == 2) { + return (com.google.container.v1beta1.DailyMaintenanceWindow) policy_; + } + return com.google.container.v1beta1.DailyMaintenanceWindow.getDefaultInstance(); + } + + public static final int RECURRING_WINDOW_FIELD_NUMBER = 3; + /** + * + * + *
+   * RecurringWindow specifies some number of recurring time periods for
+   * maintenance to occur. The time windows may be overlapping. If no
+   * maintenance windows are set, maintenance can occur at any time.
+   * 
+ * + * .google.container.v1beta1.RecurringTimeWindow recurring_window = 3; + * + * @return Whether the recurringWindow field is set. + */ + @java.lang.Override + public boolean hasRecurringWindow() { + return policyCase_ == 3; + } + /** + * + * + *
+   * RecurringWindow specifies some number of recurring time periods for
+   * maintenance to occur. The time windows may be overlapping. If no
+   * maintenance windows are set, maintenance can occur at any time.
+   * 
+ * + * .google.container.v1beta1.RecurringTimeWindow recurring_window = 3; + * + * @return The recurringWindow. + */ + @java.lang.Override + public com.google.container.v1beta1.RecurringTimeWindow getRecurringWindow() { + if (policyCase_ == 3) { + return (com.google.container.v1beta1.RecurringTimeWindow) policy_; + } + return com.google.container.v1beta1.RecurringTimeWindow.getDefaultInstance(); + } + /** + * + * + *
+   * RecurringWindow specifies some number of recurring time periods for
+   * maintenance to occur. The time windows may be overlapping. If no
+   * maintenance windows are set, maintenance can occur at any time.
+   * 
+ * + * .google.container.v1beta1.RecurringTimeWindow recurring_window = 3; + */ + @java.lang.Override + public com.google.container.v1beta1.RecurringTimeWindowOrBuilder getRecurringWindowOrBuilder() { + if (policyCase_ == 3) { + return (com.google.container.v1beta1.RecurringTimeWindow) policy_; + } + return com.google.container.v1beta1.RecurringTimeWindow.getDefaultInstance(); + } + + public static final int MAINTENANCE_EXCLUSIONS_FIELD_NUMBER = 4; + + private static final class MaintenanceExclusionsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.container.v1beta1.TimeWindow> + defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MaintenanceWindow_MaintenanceExclusionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.container.v1beta1.TimeWindow.getDefaultInstance()); + } + + private com.google.protobuf.MapField + maintenanceExclusions_; + + private com.google.protobuf.MapField + internalGetMaintenanceExclusions() { + if (maintenanceExclusions_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MaintenanceExclusionsDefaultEntryHolder.defaultEntry); + } + return maintenanceExclusions_; + } + + public int getMaintenanceExclusionsCount() { + return internalGetMaintenanceExclusions().getMap().size(); + } + /** + * + * + *
+   * Exceptions to maintenance window. Non-emergency maintenance should not
+   * occur in these windows.
+   * 
+ * + * map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4; + * + */ + @java.lang.Override + public boolean containsMaintenanceExclusions(java.lang.String key) { + if (key == null) { + throw new 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 com.google.container.v1beta1.TimeWindow getMaintenanceExclusionsOrDefault( + java.lang.String key, 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.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetMaintenanceExclusions(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 4: + return internalGetMutableMaintenanceExclusions(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MaintenanceWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MaintenanceWindow.class, + com.google.container.v1beta1.MaintenanceWindow.Builder.class); + } + + // Construct using com.google.container.v1beta1.MaintenanceWindow.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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); + int from_bitField0_ = bitField0_; + if (policyCase_ == 2) { + if (dailyMaintenanceWindowBuilder_ == null) { + result.policy_ = policy_; + } else { + result.policy_ = dailyMaintenanceWindowBuilder_.build(); + } + } + if (policyCase_ == 3) { + if (recurringWindowBuilder_ == null) { + result.policy_ = policy_; + } else { + result.policy_ = recurringWindowBuilder_.build(); + } + } + result.maintenanceExclusions_ = internalGetMaintenanceExclusions(); + result.maintenanceExclusions_.makeImmutable(); + result.policyCase_ = policyCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.MaintenanceWindow) { + return mergeFrom((com.google.container.v1beta1.MaintenanceWindow) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.MaintenanceWindow other) { + if (other == com.google.container.v1beta1.MaintenanceWindow.getDefaultInstance()) return this; + internalGetMutableMaintenanceExclusions().mergeFrom(other.internalGetMaintenanceExclusions()); + switch (other.getPolicyCase()) { + case DAILY_MAINTENANCE_WINDOW: + { + mergeDailyMaintenanceWindow(other.getDailyMaintenanceWindow()); + break; + } + case RECURRING_WINDOW: + { + mergeRecurringWindow(other.getRecurringWindow()); + break; + } + case POLICY_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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() + .getMutableMap() + .put(maintenanceExclusions__.getKey(), maintenanceExclusions__.getValue()); + 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 com.google.protobuf.MapField + maintenanceExclusions_; + + private com.google.protobuf.MapField + internalGetMaintenanceExclusions() { + if (maintenanceExclusions_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MaintenanceExclusionsDefaultEntryHolder.defaultEntry); + } + return maintenanceExclusions_; + } + + private com.google.protobuf.MapField + internalGetMutableMaintenanceExclusions() { + onChanged(); + ; + if (maintenanceExclusions_ == null) { + maintenanceExclusions_ = + com.google.protobuf.MapField.newMapField( + MaintenanceExclusionsDefaultEntryHolder.defaultEntry); + } + if (!maintenanceExclusions_.isMutable()) { + maintenanceExclusions_ = maintenanceExclusions_.copy(); + } + return maintenanceExclusions_; + } + + public int getMaintenanceExclusionsCount() { + return internalGetMaintenanceExclusions().getMap().size(); + } + /** + * + * + *
+     * Exceptions to maintenance window. Non-emergency maintenance should not
+     * occur in these windows.
+     * 
+ * + * map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4; + * + */ + @java.lang.Override + public boolean containsMaintenanceExclusions(java.lang.String key) { + if (key == null) { + throw new 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 com.google.container.v1beta1.TimeWindow getMaintenanceExclusionsOrDefault( + java.lang.String key, 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); + } + + public Builder clearMaintenanceExclusions() { + internalGetMutableMaintenanceExclusions().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Exceptions to maintenance window. Non-emergency maintenance should not
+     * occur in these windows.
+     * 
+ * + * map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4; + * + */ + public Builder removeMaintenanceExclusions(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableMaintenanceExclusions().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableMaintenanceExclusions() { + return internalGetMutableMaintenanceExclusions().getMutableMap(); + } + /** + * + * + *
+     * Exceptions to maintenance window. Non-emergency maintenance should not
+     * occur in these windows.
+     * 
+ * + * map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4; + * + */ + public Builder putMaintenanceExclusions( + java.lang.String key, com.google.container.v1beta1.TimeWindow value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + + internalGetMutableMaintenanceExclusions().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Exceptions to maintenance window. Non-emergency maintenance should not
+     * occur in these windows.
+     * 
+ * + * map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4; + * + */ + public Builder putAllMaintenanceExclusions( + java.util.Map values) { + internalGetMutableMaintenanceExclusions().getMutableMap().putAll(values); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.MaintenanceWindow) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.MaintenanceWindow) + private static final com.google.container.v1beta1.MaintenanceWindow DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.MaintenanceWindow(); + } + + public static com.google.container.v1beta1.MaintenanceWindow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MaintenanceWindow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..75fe1d7b4e7f --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceWindowOrBuilder.java @@ -0,0 +1,174 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface MaintenanceWindowOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MaintenanceWindow) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * DailyMaintenanceWindow specifies a daily maintenance operation window.
+   * 
+ * + * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; + * + * @return Whether the dailyMaintenanceWindow field is set. + */ + boolean hasDailyMaintenanceWindow(); + /** + * + * + *
+   * DailyMaintenanceWindow specifies a daily maintenance operation window.
+   * 
+ * + * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; + * + * @return The dailyMaintenanceWindow. + */ + com.google.container.v1beta1.DailyMaintenanceWindow getDailyMaintenanceWindow(); + /** + * + * + *
+   * DailyMaintenanceWindow specifies a daily maintenance operation window.
+   * 
+ * + * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + com.google.container.v1beta1.DailyMaintenanceWindowOrBuilder getDailyMaintenanceWindowOrBuilder(); + + /** + * + * + *
+   * RecurringWindow specifies some number of recurring time periods for
+   * maintenance to occur. The time windows may be overlapping. If no
+   * maintenance windows are set, maintenance can occur at any time.
+   * 
+ * + * .google.container.v1beta1.RecurringTimeWindow recurring_window = 3; + * + * @return Whether the recurringWindow field is set. + */ + boolean hasRecurringWindow(); + /** + * + * + *
+   * RecurringWindow specifies some number of recurring time periods for
+   * maintenance to occur. The time windows may be overlapping. If no
+   * maintenance windows are set, maintenance can occur at any time.
+   * 
+ * + * .google.container.v1beta1.RecurringTimeWindow recurring_window = 3; + * + * @return The recurringWindow. + */ + com.google.container.v1beta1.RecurringTimeWindow getRecurringWindow(); + /** + * + * + *
+   * RecurringWindow specifies some number of recurring time periods for
+   * maintenance to occur. The time windows may be overlapping. If no
+   * maintenance windows are set, maintenance can occur at any time.
+   * 
+ * + * .google.container.v1beta1.RecurringTimeWindow recurring_window = 3; + */ + com.google.container.v1beta1.RecurringTimeWindowOrBuilder getRecurringWindowOrBuilder(); + + /** + * + * + *
+   * Exceptions to maintenance window. Non-emergency maintenance should not
+   * occur in these windows.
+   * 
+ * + * map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4; + * + */ + int getMaintenanceExclusionsCount(); + /** + * + * + *
+   * Exceptions to maintenance window. Non-emergency maintenance should not
+   * occur in these windows.
+   * 
+ * + * map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4; + * + */ + boolean containsMaintenanceExclusions(java.lang.String key); + /** Use {@link #getMaintenanceExclusionsMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getMaintenanceExclusions(); + /** + * + * + *
+   * Exceptions to maintenance window. Non-emergency maintenance should not
+   * occur in these windows.
+   * 
+ * + * map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4; + * + */ + java.util.Map + getMaintenanceExclusionsMap(); + /** + * + * + *
+   * Exceptions to maintenance window. Non-emergency maintenance should not
+   * occur in these windows.
+   * 
+ * + * map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4; + * + */ + + /* 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); + + public 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 new file mode 100644 index 000000000000..45f067c6a9a3 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ManagedPrometheusConfig.java @@ -0,0 +1,529 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * ManagedPrometheusConfig defines the configuration for
+ * Google Cloud Managed Service for Prometheus.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ManagedPrometheusConfig} + */ +public final class ManagedPrometheusConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ManagedPrometheusConfig) + ManagedPrometheusConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ManagedPrometheusConfig.newBuilder() to construct. + private ManagedPrometheusConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ManagedPrometheusConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ManagedPrometheusConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ManagedPrometheusConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ManagedPrometheusConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ManagedPrometheusConfig.class, + com.google.container.v1beta1.ManagedPrometheusConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Enable Managed Collection.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + 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(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ManagedPrometheusConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ManagedPrometheusConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.ManagedPrometheusConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ManagedPrometheusConfig build() { + com.google.container.v1beta1.ManagedPrometheusConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ManagedPrometheusConfig buildPartial() { + com.google.container.v1beta1.ManagedPrometheusConfig result = + new com.google.container.v1beta1.ManagedPrometheusConfig(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ManagedPrometheusConfig) { + return mergeFrom((com.google.container.v1beta1.ManagedPrometheusConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ManagedPrometheusConfig other) { + if (other == com.google.container.v1beta1.ManagedPrometheusConfig.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 boolean enabled_; + /** + * + * + *
+     * Enable Managed Collection.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Enable Managed Collection.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Enable Managed Collection.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ManagedPrometheusConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ManagedPrometheusConfig) + private static final com.google.container.v1beta1.ManagedPrometheusConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ManagedPrometheusConfig(); + } + + public static com.google.container.v1beta1.ManagedPrometheusConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ManagedPrometheusConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..17db836374dd --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ManagedPrometheusConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ManagedPrometheusConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ManagedPrometheusConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Enable Managed Collection.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/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 new file mode 100644 index 000000000000..f9a870af4e46 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Master.java @@ -0,0 +1,432 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Master is the configuration for components on master.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.Master} + */ +public final class Master extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.Master) + MasterOrBuilder { + private static final long serialVersionUID = 0L; + // Use Master.newBuilder() to construct. + private Master(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Master() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Master(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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 new file mode 100644 index 000000000000..712788cf5c3d --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuth.java @@ -0,0 +1,1734 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * The authentication information for accessing the master endpoint.
+ * Authentication can be done using HTTP basic auth or using client
+ * certificates.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.MasterAuth} + */ +public final class MasterAuth extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.MasterAuth) + MasterAuthOrBuilder { + private static final long serialVersionUID = 0L; + // Use MasterAuth.newBuilder() to construct. + private MasterAuth(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MasterAuth() { + username_ = ""; + password_ = ""; + clusterCaCertificate_ = ""; + clientCertificate_ = ""; + clientKey_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MasterAuth(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MasterAuth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MasterAuth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MasterAuth.class, + com.google.container.v1beta1.MasterAuth.Builder.class); + } + + public static final int USERNAME_FIELD_NUMBER = 1; + private volatile java.lang.Object username_; + /** + * + * + *
+   * The username to use for HTTP basic authentication to the master endpoint.
+   * For clusters v1.6.0 and later, basic authentication can be disabled by
+   * leaving username unspecified (or setting it to the empty string).
+   * Warning: basic authentication is deprecated, and will be removed in GKE
+   * control plane versions 1.19 and newer. For a list of recommended
+   * authentication methods, see:
+   * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
+   * 
+ * + * string username = 1 [deprecated = true]; + * + * @deprecated google.container.v1beta1.MasterAuth.username is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=999 + * @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=999 + * @return The bytes for username. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PASSWORD_FIELD_NUMBER = 2; + private volatile java.lang.Object password_; + /** + * + * + *
+   * The password to use for HTTP basic authentication to the master endpoint.
+   * Because the master endpoint is open to the Internet, you should create a
+   * strong password.  If a password is provided for cluster creation, username
+   * must be non-empty.
+   * Warning: basic authentication is deprecated, and will be removed in GKE
+   * control plane versions 1.19 and newer. For a list of recommended
+   * authentication methods, see:
+   * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
+   * 
+ * + * string password = 2 [deprecated = true]; + * + * @deprecated google.container.v1beta1.MasterAuth.password is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1010 + * @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=1010 + * @return The bytes for password. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_CERTIFICATE_CONFIG_FIELD_NUMBER = 3; + private com.google.container.v1beta1.ClientCertificateConfig clientCertificateConfig_; + /** + * + * + *
+   * Configuration for client certificate authentication on the cluster. For
+   * clusters before v1.12, if no configuration is specified, a client
+   * certificate is issued.
+   * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + * + * @return Whether the clientCertificateConfig field is set. + */ + @java.lang.Override + public boolean hasClientCertificateConfig() { + return clientCertificateConfig_ != null; + } + /** + * + * + *
+   * Configuration for client certificate authentication on the cluster. For
+   * clusters before v1.12, if no configuration is specified, a client
+   * certificate is issued.
+   * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + * + * @return The clientCertificateConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.ClientCertificateConfig getClientCertificateConfig() { + return clientCertificateConfig_ == null + ? com.google.container.v1beta1.ClientCertificateConfig.getDefaultInstance() + : clientCertificateConfig_; + } + /** + * + * + *
+   * Configuration for client certificate authentication on the cluster. For
+   * clusters before v1.12, if no configuration is specified, a client
+   * certificate is issued.
+   * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + */ + @java.lang.Override + public com.google.container.v1beta1.ClientCertificateConfigOrBuilder + getClientCertificateConfigOrBuilder() { + return getClientCertificateConfig(); + } + + public static final int CLUSTER_CA_CERTIFICATE_FIELD_NUMBER = 100; + private volatile java.lang.Object clusterCaCertificate_; + /** + * string cluster_ca_certificate = 100; + * + * @return The clusterCaCertificate. + */ + @java.lang.Override + public java.lang.String getClusterCaCertificate() { + java.lang.Object ref = clusterCaCertificate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterCaCertificate_ = s; + return s; + } + } + /** + * string cluster_ca_certificate = 100; + * + * @return The bytes for clusterCaCertificate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterCaCertificateBytes() { + java.lang.Object ref = clusterCaCertificate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterCaCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_CERTIFICATE_FIELD_NUMBER = 101; + private volatile java.lang.Object clientCertificate_; + /** + * + * + *
+   * [Output only] Base64-encoded public certificate used by clients to
+   * authenticate to the cluster endpoint.
+   * 
+ * + * string client_certificate = 101; + * + * @return The clientCertificate. + */ + @java.lang.Override + public java.lang.String getClientCertificate() { + java.lang.Object ref = clientCertificate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientCertificate_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] Base64-encoded public certificate used by clients to
+   * authenticate to the cluster endpoint.
+   * 
+ * + * string client_certificate = 101; + * + * @return The bytes for clientCertificate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientCertificateBytes() { + java.lang.Object ref = clientCertificate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_KEY_FIELD_NUMBER = 102; + private volatile java.lang.Object clientKey_; + /** + * + * + *
+   * [Output only] Base64-encoded private key used by clients to authenticate
+   * to the cluster endpoint.
+   * 
+ * + * string client_key = 102; + * + * @return The clientKey. + */ + @java.lang.Override + public java.lang.String getClientKey() { + java.lang.Object ref = clientKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientKey_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] Base64-encoded private key used by clients to authenticate
+   * to the cluster endpoint.
+   * 
+ * + * string client_key = 102; + * + * @return The bytes for clientKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientKeyBytes() { + java.lang.Object ref = clientKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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 (clientCertificateConfig_ != null) { + 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 (clientCertificateConfig_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + username_ = ""; + + password_ = ""; + + if (clientCertificateConfigBuilder_ == null) { + clientCertificateConfig_ = null; + } else { + clientCertificateConfig_ = null; + clientCertificateConfigBuilder_ = null; + } + clusterCaCertificate_ = ""; + + clientCertificate_ = ""; + + clientKey_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MasterAuth_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.MasterAuth getDefaultInstanceForType() { + return com.google.container.v1beta1.MasterAuth.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.MasterAuth build() { + com.google.container.v1beta1.MasterAuth result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.MasterAuth buildPartial() { + com.google.container.v1beta1.MasterAuth result = + new com.google.container.v1beta1.MasterAuth(this); + result.username_ = username_; + result.password_ = password_; + if (clientCertificateConfigBuilder_ == null) { + result.clientCertificateConfig_ = clientCertificateConfig_; + } else { + result.clientCertificateConfig_ = clientCertificateConfigBuilder_.build(); + } + result.clusterCaCertificate_ = clusterCaCertificate_; + result.clientCertificate_ = clientCertificate_; + result.clientKey_ = clientKey_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.MasterAuth) { + return mergeFrom((com.google.container.v1beta1.MasterAuth) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.MasterAuth other) { + if (other == com.google.container.v1beta1.MasterAuth.getDefaultInstance()) return this; + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + onChanged(); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + onChanged(); + } + if (other.hasClientCertificateConfig()) { + mergeClientCertificateConfig(other.getClientCertificateConfig()); + } + if (!other.getClusterCaCertificate().isEmpty()) { + clusterCaCertificate_ = other.clusterCaCertificate_; + onChanged(); + } + if (!other.getClientCertificate().isEmpty()) { + clientCertificate_ = other.clientCertificate_; + onChanged(); + } + if (!other.getClientKey().isEmpty()) { + clientKey_ = other.clientKey_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + password_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage( + getClientCertificateConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 802: + { + clusterCaCertificate_ = input.readStringRequireUtf8(); + + break; + } // case 802 + case 810: + { + clientCertificate_ = input.readStringRequireUtf8(); + + break; + } // case 810 + case 818: + { + clientKey_ = input.readStringRequireUtf8(); + + 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 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=999 + * @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=999 + * @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=999 + * @param value The username to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + username_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The username to use for HTTP basic authentication to the master endpoint.
+     * For clusters v1.6.0 and later, basic authentication can be disabled by
+     * leaving username unspecified (or setting it to the empty string).
+     * Warning: basic authentication is deprecated, and will be removed in GKE
+     * control plane versions 1.19 and newer. For a list of recommended
+     * authentication methods, see:
+     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
+     * 
+ * + * string username = 1 [deprecated = true]; + * + * @deprecated google.container.v1beta1.MasterAuth.username is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=999 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearUsername() { + + username_ = getDefaultInstance().getUsername(); + onChanged(); + return this; + } + /** + * + * + *
+     * The username to use for HTTP basic authentication to the master endpoint.
+     * For clusters v1.6.0 and later, basic authentication can be disabled by
+     * leaving username unspecified (or setting it to the empty string).
+     * Warning: basic authentication is deprecated, and will be removed in GKE
+     * control plane versions 1.19 and newer. For a list of recommended
+     * authentication methods, see:
+     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
+     * 
+ * + * string username = 1 [deprecated = true]; + * + * @deprecated google.container.v1beta1.MasterAuth.username is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=999 + * @param value The bytes for username to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + username_ = value; + onChanged(); + return this; + } + + private java.lang.Object password_ = ""; + /** + * + * + *
+     * The password to use for HTTP basic authentication to the master endpoint.
+     * Because the master endpoint is open to the Internet, you should create a
+     * strong password.  If a password is provided for cluster creation, username
+     * must be non-empty.
+     * Warning: basic authentication is deprecated, and will be removed in GKE
+     * control plane versions 1.19 and newer. For a list of recommended
+     * authentication methods, see:
+     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
+     * 
+ * + * string password = 2 [deprecated = true]; + * + * @deprecated google.container.v1beta1.MasterAuth.password is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1010 + * @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=1010 + * @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=1010 + * @param value The password to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + password_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The password to use for HTTP basic authentication to the master endpoint.
+     * Because the master endpoint is open to the Internet, you should create a
+     * strong password.  If a password is provided for cluster creation, username
+     * must be non-empty.
+     * Warning: basic authentication is deprecated, and will be removed in GKE
+     * control plane versions 1.19 and newer. For a list of recommended
+     * authentication methods, see:
+     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
+     * 
+ * + * string password = 2 [deprecated = true]; + * + * @deprecated google.container.v1beta1.MasterAuth.password is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1010 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearPassword() { + + password_ = getDefaultInstance().getPassword(); + onChanged(); + return this; + } + /** + * + * + *
+     * The password to use for HTTP basic authentication to the master endpoint.
+     * Because the master endpoint is open to the Internet, you should create a
+     * strong password.  If a password is provided for cluster creation, username
+     * must be non-empty.
+     * Warning: basic authentication is deprecated, and will be removed in GKE
+     * control plane versions 1.19 and newer. For a list of recommended
+     * authentication methods, see:
+     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
+     * 
+ * + * string password = 2 [deprecated = true]; + * + * @deprecated google.container.v1beta1.MasterAuth.password is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=1010 + * @param value The bytes for password to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + password_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.ClientCertificateConfig clientCertificateConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClientCertificateConfig, + com.google.container.v1beta1.ClientCertificateConfig.Builder, + com.google.container.v1beta1.ClientCertificateConfigOrBuilder> + clientCertificateConfigBuilder_; + /** + * + * + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + * + * @return Whether the clientCertificateConfig field is set. + */ + public boolean hasClientCertificateConfig() { + return clientCertificateConfigBuilder_ != null || clientCertificateConfig_ != null; + } + /** + * + * + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + * + * @return The clientCertificateConfig. + */ + public com.google.container.v1beta1.ClientCertificateConfig getClientCertificateConfig() { + if (clientCertificateConfigBuilder_ == null) { + return clientCertificateConfig_ == null + ? com.google.container.v1beta1.ClientCertificateConfig.getDefaultInstance() + : clientCertificateConfig_; + } else { + return clientCertificateConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + */ + public Builder setClientCertificateConfig( + com.google.container.v1beta1.ClientCertificateConfig value) { + if (clientCertificateConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + clientCertificateConfig_ = value; + onChanged(); + } else { + clientCertificateConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + */ + public Builder setClientCertificateConfig( + com.google.container.v1beta1.ClientCertificateConfig.Builder builderForValue) { + if (clientCertificateConfigBuilder_ == null) { + clientCertificateConfig_ = builderForValue.build(); + onChanged(); + } else { + clientCertificateConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + */ + public Builder mergeClientCertificateConfig( + com.google.container.v1beta1.ClientCertificateConfig value) { + if (clientCertificateConfigBuilder_ == null) { + if (clientCertificateConfig_ != null) { + clientCertificateConfig_ = + com.google.container.v1beta1.ClientCertificateConfig.newBuilder( + clientCertificateConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + clientCertificateConfig_ = value; + } + onChanged(); + } else { + clientCertificateConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + */ + public Builder clearClientCertificateConfig() { + if (clientCertificateConfigBuilder_ == null) { + clientCertificateConfig_ = null; + onChanged(); + } else { + clientCertificateConfig_ = null; + clientCertificateConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + */ + public com.google.container.v1beta1.ClientCertificateConfig.Builder + getClientCertificateConfigBuilder() { + + onChanged(); + return getClientCertificateConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + */ + public com.google.container.v1beta1.ClientCertificateConfigOrBuilder + getClientCertificateConfigOrBuilder() { + if (clientCertificateConfigBuilder_ != null) { + return clientCertificateConfigBuilder_.getMessageOrBuilder(); + } else { + return clientCertificateConfig_ == null + ? com.google.container.v1beta1.ClientCertificateConfig.getDefaultInstance() + : clientCertificateConfig_; + } + } + /** + * + * + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClientCertificateConfig, + com.google.container.v1beta1.ClientCertificateConfig.Builder, + com.google.container.v1beta1.ClientCertificateConfigOrBuilder> + getClientCertificateConfigFieldBuilder() { + if (clientCertificateConfigBuilder_ == null) { + clientCertificateConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClientCertificateConfig, + com.google.container.v1beta1.ClientCertificateConfig.Builder, + com.google.container.v1beta1.ClientCertificateConfigOrBuilder>( + getClientCertificateConfig(), getParentForChildren(), isClean()); + clientCertificateConfig_ = null; + } + return clientCertificateConfigBuilder_; + } + + private java.lang.Object clusterCaCertificate_ = ""; + /** + * string cluster_ca_certificate = 100; + * + * @return The clusterCaCertificate. + */ + public java.lang.String getClusterCaCertificate() { + java.lang.Object ref = clusterCaCertificate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterCaCertificate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string cluster_ca_certificate = 100; + * + * @return The bytes for clusterCaCertificate. + */ + public com.google.protobuf.ByteString getClusterCaCertificateBytes() { + java.lang.Object ref = clusterCaCertificate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterCaCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string cluster_ca_certificate = 100; + * + * @param value The clusterCaCertificate to set. + * @return This builder for chaining. + */ + public Builder setClusterCaCertificate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterCaCertificate_ = value; + onChanged(); + return this; + } + /** + * string cluster_ca_certificate = 100; + * + * @return This builder for chaining. + */ + public Builder clearClusterCaCertificate() { + + clusterCaCertificate_ = getDefaultInstance().getClusterCaCertificate(); + onChanged(); + return this; + } + /** + * string cluster_ca_certificate = 100; + * + * @param value The bytes for clusterCaCertificate to set. + * @return This builder for chaining. + */ + public Builder setClusterCaCertificateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterCaCertificate_ = value; + onChanged(); + return this; + } + + private java.lang.Object clientCertificate_ = ""; + /** + * + * + *
+     * [Output only] Base64-encoded public certificate used by clients to
+     * authenticate to the cluster endpoint.
+     * 
+ * + * string client_certificate = 101; + * + * @return The clientCertificate. + */ + public java.lang.String getClientCertificate() { + java.lang.Object ref = clientCertificate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientCertificate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] Base64-encoded public certificate used by clients to
+     * authenticate to the cluster endpoint.
+     * 
+ * + * string client_certificate = 101; + * + * @return The bytes for clientCertificate. + */ + public com.google.protobuf.ByteString getClientCertificateBytes() { + java.lang.Object ref = clientCertificate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] Base64-encoded public certificate used by clients to
+     * authenticate to the cluster endpoint.
+     * 
+ * + * string client_certificate = 101; + * + * @param value The clientCertificate to set. + * @return This builder for chaining. + */ + public Builder setClientCertificate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clientCertificate_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Base64-encoded public certificate used by clients to
+     * authenticate to the cluster endpoint.
+     * 
+ * + * string client_certificate = 101; + * + * @return This builder for chaining. + */ + public Builder clearClientCertificate() { + + clientCertificate_ = getDefaultInstance().getClientCertificate(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Base64-encoded public certificate used by clients to
+     * authenticate to the cluster endpoint.
+     * 
+ * + * string client_certificate = 101; + * + * @param value The bytes for clientCertificate to set. + * @return This builder for chaining. + */ + public Builder setClientCertificateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clientCertificate_ = value; + onChanged(); + return this; + } + + private java.lang.Object clientKey_ = ""; + /** + * + * + *
+     * [Output only] Base64-encoded private key used by clients to authenticate
+     * to the cluster endpoint.
+     * 
+ * + * string client_key = 102; + * + * @return The clientKey. + */ + public java.lang.String getClientKey() { + java.lang.Object ref = clientKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] Base64-encoded private key used by clients to authenticate
+     * to the cluster endpoint.
+     * 
+ * + * string client_key = 102; + * + * @return The bytes for clientKey. + */ + public com.google.protobuf.ByteString getClientKeyBytes() { + java.lang.Object ref = clientKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] Base64-encoded private key used by clients to authenticate
+     * to the cluster endpoint.
+     * 
+ * + * string client_key = 102; + * + * @param value The clientKey to set. + * @return This builder for chaining. + */ + public Builder setClientKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clientKey_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Base64-encoded private key used by clients to authenticate
+     * to the cluster endpoint.
+     * 
+ * + * string client_key = 102; + * + * @return This builder for chaining. + */ + public Builder clearClientKey() { + + clientKey_ = getDefaultInstance().getClientKey(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Base64-encoded private key used by clients to authenticate
+     * to the cluster endpoint.
+     * 
+ * + * string client_key = 102; + * + * @param value The bytes for clientKey to set. + * @return This builder for chaining. + */ + public Builder setClientKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clientKey_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.MasterAuth) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.MasterAuth) + private static final com.google.container.v1beta1.MasterAuth DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.MasterAuth(); + } + + public static com.google.container.v1beta1.MasterAuth getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MasterAuth parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..0c6c8190b9a9 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthOrBuilder.java @@ -0,0 +1,222 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface MasterAuthOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MasterAuth) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The username to use for HTTP basic authentication to the master endpoint.
+   * For clusters v1.6.0 and later, basic authentication can be disabled by
+   * leaving username unspecified (or setting it to the empty string).
+   * Warning: basic authentication is deprecated, and will be removed in GKE
+   * control plane versions 1.19 and newer. For a list of recommended
+   * authentication methods, see:
+   * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
+   * 
+ * + * string username = 1 [deprecated = true]; + * + * @deprecated google.container.v1beta1.MasterAuth.username is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=999 + * @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=999 + * @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=1010 + * @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=1010 + * @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 new file mode 100644 index 000000000000..0b0c8505f6bb --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthorizedNetworksConfig.java @@ -0,0 +1,2112 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration options for the master authorized networks feature. Enabled
+ * master authorized networks will disallow all external traffic to access
+ * Kubernetes master through HTTPS except traffic from the given CIDR blocks,
+ * Google Compute Engine Public IPs and Google Prod IPs.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.MasterAuthorizedNetworksConfig} + */ +public final class MasterAuthorizedNetworksConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.MasterAuthorizedNetworksConfig) + MasterAuthorizedNetworksConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use MasterAuthorizedNetworksConfig.newBuilder() to construct. + private MasterAuthorizedNetworksConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MasterAuthorizedNetworksConfig() { + cidrBlocks_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MasterAuthorizedNetworksConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.class, + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder.class); + } + + public interface CidrBlockOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * display_name is an optional field for users to identify CIDR blocks.
+     * 
+ * + * string display_name = 1; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+     * display_name is an optional field for users to identify CIDR blocks.
+     * 
+ * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+     * cidr_block must be specified in CIDR notation.
+     * 
+ * + * string cidr_block = 2; + * + * @return The cidrBlock. + */ + java.lang.String getCidrBlock(); + /** + * + * + *
+     * cidr_block must be specified in CIDR notation.
+     * 
+ * + * string cidr_block = 2; + * + * @return The bytes for cidrBlock. + */ + com.google.protobuf.ByteString getCidrBlockBytes(); + } + /** + * + * + *
+   * CidrBlock contains an optional name and one CIDR block.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock} + */ + public static final class CidrBlock extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock) + CidrBlockOrBuilder { + private static final long serialVersionUID = 0L; + // Use CidrBlock.newBuilder() to construct. + private CidrBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CidrBlock() { + displayName_ = ""; + cidrBlock_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CidrBlock(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_CidrBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.class, + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object displayName_; + /** + * + * + *
+     * display_name is an optional field for users to identify CIDR blocks.
+     * 
+ * + * string display_name = 1; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+     * display_name is an optional field for users to identify CIDR blocks.
+     * 
+ * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CIDR_BLOCK_FIELD_NUMBER = 2; + private volatile java.lang.Object cidrBlock_; + /** + * + * + *
+     * cidr_block must be specified in CIDR notation.
+     * 
+ * + * string cidr_block = 2; + * + * @return The cidrBlock. + */ + @java.lang.Override + public java.lang.String getCidrBlock() { + java.lang.Object ref = cidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cidrBlock_ = s; + return s; + } + } + /** + * + * + *
+     * cidr_block must be specified in CIDR notation.
+     * 
+ * + * string cidr_block = 2; + * + * @return The bytes for cidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCidrBlockBytes() { + java.lang.Object ref = cidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + displayName_ = ""; + + cidrBlock_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock + getDefaultInstanceForType() { + return com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock build() { + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock buildPartial() { + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock result = + new com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock(this); + result.displayName_ = displayName_; + result.cidrBlock_ = cidrBlock_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock) { + return mergeFrom( + (com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock other) { + if (other + == com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock + .getDefaultInstance()) return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getCidrBlock().isEmpty()) { + cidrBlock_ = other.cidrBlock_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + cidrBlock_ = input.readStringRequireUtf8(); + + 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 java.lang.Object displayName_ = ""; + /** + * + * + *
+       * display_name is an optional field for users to identify CIDR blocks.
+       * 
+ * + * string display_name = 1; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * display_name is an optional field for users to identify CIDR blocks.
+       * 
+ * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * display_name is an optional field for users to identify CIDR blocks.
+       * 
+ * + * string display_name = 1; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * display_name is an optional field for users to identify CIDR blocks.
+       * 
+ * + * string display_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+       * display_name is an optional field for users to identify CIDR blocks.
+       * 
+ * + * string display_name = 1; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private java.lang.Object cidrBlock_ = ""; + /** + * + * + *
+       * cidr_block must be specified in CIDR notation.
+       * 
+ * + * string cidr_block = 2; + * + * @return The cidrBlock. + */ + public java.lang.String getCidrBlock() { + java.lang.Object ref = cidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * cidr_block must be specified in CIDR notation.
+       * 
+ * + * string cidr_block = 2; + * + * @return The bytes for cidrBlock. + */ + public com.google.protobuf.ByteString getCidrBlockBytes() { + java.lang.Object ref = cidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * cidr_block must be specified in CIDR notation.
+       * 
+ * + * string cidr_block = 2; + * + * @param value The cidrBlock to set. + * @return This builder for chaining. + */ + public Builder setCidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cidrBlock_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * cidr_block must be specified in CIDR notation.
+       * 
+ * + * string cidr_block = 2; + * + * @return This builder for chaining. + */ + public Builder clearCidrBlock() { + + cidrBlock_ = getDefaultInstance().getCidrBlock(); + onChanged(); + return this; + } + /** + * + * + *
+       * cidr_block must be specified in CIDR notation.
+       * 
+ * + * string cidr_block = 2; + * + * @param value The bytes for cidrBlock to set. + * @return This builder for chaining. + */ + public Builder setCidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cidrBlock_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock) + private static final com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock(); + } + + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CidrBlock parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether or not master authorized networks is enabled.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int CIDR_BLOCKS_FIELD_NUMBER = 2; + private java.util.List + cidrBlocks_; + /** + * + * + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + @java.lang.Override + public java.util.List + getCidrBlocksList() { + return cidrBlocks_; + } + /** + * + * + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> + getCidrBlocksOrBuilderList() { + return cidrBlocks_; + } + /** + * + * + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + @java.lang.Override + public int getCidrBlocksCount() { + return cidrBlocks_.size(); + } + /** + * + * + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + @java.lang.Override + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock getCidrBlocks( + int index) { + return cidrBlocks_.get(index); + } + /** + * + * + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + @java.lang.Override + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder + getCidrBlocksOrBuilder(int index) { + return cidrBlocks_.get(index); + } + + public static final int GCP_PUBLIC_CIDRS_ACCESS_ENABLED_FIELD_NUMBER = 3; + 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_ & 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(); + enabled_ = false; + + if (cidrBlocksBuilder_ == null) { + cidrBlocks_ = java.util.Collections.emptyList(); + } else { + cidrBlocks_ = null; + cidrBlocksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + gcpPublicCidrsAccessEnabled_ = false; + 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_MasterAuthorizedNetworksConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig build() { + com.google.container.v1beta1.MasterAuthorizedNetworksConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig buildPartial() { + com.google.container.v1beta1.MasterAuthorizedNetworksConfig result = + new com.google.container.v1beta1.MasterAuthorizedNetworksConfig(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.enabled_ = enabled_; + if (cidrBlocksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + cidrBlocks_ = java.util.Collections.unmodifiableList(cidrBlocks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.cidrBlocks_ = cidrBlocks_; + } else { + result.cidrBlocks_ = cidrBlocksBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.gcpPublicCidrsAccessEnabled_ = gcpPublicCidrsAccessEnabled_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.MasterAuthorizedNetworksConfig) { + return mergeFrom((com.google.container.v1beta1.MasterAuthorizedNetworksConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.MasterAuthorizedNetworksConfig other) { + if (other == com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (cidrBlocksBuilder_ == null) { + if (!other.cidrBlocks_.isEmpty()) { + if (cidrBlocks_.isEmpty()) { + cidrBlocks_ = other.cidrBlocks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCidrBlocksIsMutable(); + cidrBlocks_.addAll(other.cidrBlocks_); + } + onChanged(); + } + } else { + if (!other.cidrBlocks_.isEmpty()) { + if (cidrBlocksBuilder_.isEmpty()) { + cidrBlocksBuilder_.dispose(); + cidrBlocksBuilder_ = null; + cidrBlocks_ = other.cidrBlocks_; + bitField0_ = (bitField0_ & ~0x00000001); + cidrBlocksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCidrBlocksFieldBuilder() + : null; + } else { + cidrBlocksBuilder_.addAllMessages(other.cidrBlocks_); + } + } + } + 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(); + + 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_ |= 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 enabled_; + /** + * + * + *
+     * Whether or not master authorized networks is enabled.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether or not master authorized networks is enabled.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether or not master authorized networks is enabled.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + private java.util.List + cidrBlocks_ = java.util.Collections.emptyList(); + + private void ensureCidrBlocksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + cidrBlocks_ = + new java.util.ArrayList< + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock>(cidrBlocks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock, + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder, + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> + cidrBlocksBuilder_; + + /** + * + * + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + public java.util.List + getCidrBlocksList() { + if (cidrBlocksBuilder_ == null) { + return java.util.Collections.unmodifiableList(cidrBlocks_); + } else { + return cidrBlocksBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + public int getCidrBlocksCount() { + if (cidrBlocksBuilder_ == null) { + return cidrBlocks_.size(); + } else { + return cidrBlocksBuilder_.getCount(); + } + } + /** + * + * + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock getCidrBlocks( + int index) { + if (cidrBlocksBuilder_ == null) { + return cidrBlocks_.get(index); + } else { + return cidrBlocksBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + public Builder setCidrBlocks( + int index, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock value) { + if (cidrBlocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCidrBlocksIsMutable(); + cidrBlocks_.set(index, value); + onChanged(); + } else { + cidrBlocksBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + public Builder setCidrBlocks( + int index, + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder + builderForValue) { + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + cidrBlocks_.set(index, builderForValue.build()); + onChanged(); + } else { + cidrBlocksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + public Builder addCidrBlocks( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock value) { + if (cidrBlocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCidrBlocksIsMutable(); + cidrBlocks_.add(value); + onChanged(); + } else { + cidrBlocksBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + public Builder addCidrBlocks( + int index, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock value) { + if (cidrBlocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCidrBlocksIsMutable(); + cidrBlocks_.add(index, value); + onChanged(); + } else { + cidrBlocksBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + public Builder addCidrBlocks( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder + builderForValue) { + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + cidrBlocks_.add(builderForValue.build()); + onChanged(); + } else { + cidrBlocksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + public Builder addCidrBlocks( + int index, + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder + builderForValue) { + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + cidrBlocks_.add(index, builderForValue.build()); + onChanged(); + } else { + cidrBlocksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + public Builder addAllCidrBlocks( + java.lang.Iterable< + ? extends com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock> + values) { + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cidrBlocks_); + onChanged(); + } else { + cidrBlocksBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + public Builder clearCidrBlocks() { + if (cidrBlocksBuilder_ == null) { + cidrBlocks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + cidrBlocksBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + public Builder removeCidrBlocks(int index) { + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + cidrBlocks_.remove(index); + onChanged(); + } else { + cidrBlocksBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder + getCidrBlocksBuilder(int index) { + return getCidrBlocksFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder + getCidrBlocksOrBuilder(int index) { + if (cidrBlocksBuilder_ == null) { + return cidrBlocks_.get(index); + } else { + return cidrBlocksBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + public java.util.List< + ? extends + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> + getCidrBlocksOrBuilderList() { + if (cidrBlocksBuilder_ != null) { + return cidrBlocksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cidrBlocks_); + } + } + /** + * + * + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder + addCidrBlocksBuilder() { + return getCidrBlocksFieldBuilder() + .addBuilder( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock + .getDefaultInstance()); + } + /** + * + * + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder + addCidrBlocksBuilder(int index) { + return getCidrBlocksFieldBuilder() + .addBuilder( + index, + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock + .getDefaultInstance()); + } + /** + * + * + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + public java.util.List< + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder> + getCidrBlocksBuilderList() { + return getCidrBlocksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock, + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder, + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> + getCidrBlocksFieldBuilder() { + if (cidrBlocksBuilder_ == null) { + cidrBlocksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock, + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder, + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder>( + cidrBlocks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + cidrBlocks_ = null; + } + return cidrBlocksBuilder_; + } + + 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_ & 0x00000002) != 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) { + bitField0_ |= 0x00000002; + gcpPublicCidrsAccessEnabled_ = value; + 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_ & ~0x00000002); + 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 new file mode 100644 index 000000000000..60afbc078429 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthorizedNetworksConfigOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface MasterAuthorizedNetworksConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MasterAuthorizedNetworksConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether or not master authorized networks is enabled.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); + + /** + * + * + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + java.util.List + getCidrBlocksList(); + /** + * + * + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock getCidrBlocks(int index); + /** + * + * + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + int getCidrBlocksCount(); + /** + * + * + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + java.util.List< + ? extends com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> + getCidrBlocksOrBuilderList(); + /** + * + * + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder + getCidrBlocksOrBuilder(int index); + + /** + * + * + *
+   * 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 new file mode 100644 index 000000000000..85a303c7bbbe --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface MasterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.Master) + com.google.protobuf.MessageOrBuilder {} diff --git a/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 new file mode 100644 index 000000000000..8b677c36a967 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaxPodsConstraint.java @@ -0,0 +1,526 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Constraints applied to pods.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.MaxPodsConstraint} + */ +public final class MaxPodsConstraint extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.MaxPodsConstraint) + MaxPodsConstraintOrBuilder { + private static final long serialVersionUID = 0L; + // Use MaxPodsConstraint.newBuilder() to construct. + private MaxPodsConstraint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MaxPodsConstraint() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MaxPodsConstraint(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MaxPodsConstraint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MaxPodsConstraint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MaxPodsConstraint.class, + com.google.container.v1beta1.MaxPodsConstraint.Builder.class); + } + + public static final int MAX_PODS_PER_NODE_FIELD_NUMBER = 1; + private long maxPodsPerNode_; + /** + * + * + *
+   * Constraint enforced on the max num of pods per node.
+   * 
+ * + * int64 max_pods_per_node = 1; + * + * @return The maxPodsPerNode. + */ + @java.lang.Override + public long getMaxPodsPerNode() { + return maxPodsPerNode_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (maxPodsPerNode_ != 0L) { + output.writeInt64(1, maxPodsPerNode_); + } + 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(); + maxPodsPerNode_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MaxPodsConstraint_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.MaxPodsConstraint getDefaultInstanceForType() { + return com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.MaxPodsConstraint build() { + com.google.container.v1beta1.MaxPodsConstraint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.MaxPodsConstraint buildPartial() { + com.google.container.v1beta1.MaxPodsConstraint result = + new com.google.container.v1beta1.MaxPodsConstraint(this); + result.maxPodsPerNode_ = maxPodsPerNode_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.MaxPodsConstraint) { + return mergeFrom((com.google.container.v1beta1.MaxPodsConstraint) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.MaxPodsConstraint other) { + if (other == com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance()) return this; + if (other.getMaxPodsPerNode() != 0L) { + setMaxPodsPerNode(other.getMaxPodsPerNode()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 long maxPodsPerNode_; + /** + * + * + *
+     * Constraint enforced on the max num of pods per node.
+     * 
+ * + * int64 max_pods_per_node = 1; + * + * @return The maxPodsPerNode. + */ + @java.lang.Override + public long getMaxPodsPerNode() { + return maxPodsPerNode_; + } + /** + * + * + *
+     * Constraint enforced on the max num of pods per node.
+     * 
+ * + * int64 max_pods_per_node = 1; + * + * @param value The maxPodsPerNode to set. + * @return This builder for chaining. + */ + public Builder setMaxPodsPerNode(long value) { + + maxPodsPerNode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Constraint enforced on the max num of pods per node.
+     * 
+ * + * int64 max_pods_per_node = 1; + * + * @return This builder for chaining. + */ + public Builder clearMaxPodsPerNode() { + + maxPodsPerNode_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.MaxPodsConstraint) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.MaxPodsConstraint) + private static final com.google.container.v1beta1.MaxPodsConstraint DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.MaxPodsConstraint(); + } + + public static com.google.container.v1beta1.MaxPodsConstraint getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MaxPodsConstraint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..13ada7162cd1 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaxPodsConstraintOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface MaxPodsConstraintOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MaxPodsConstraint) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Constraint enforced on the max num of pods per node.
+   * 
+ * + * int64 max_pods_per_node = 1; + * + * @return The maxPodsPerNode. + */ + long getMaxPodsPerNode(); +} diff --git a/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 new file mode 100644 index 000000000000..fa31bea117f6 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MeshCertificates.java @@ -0,0 +1,775 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration for issuance of mTLS keys and certificates to Kubernetes pods.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.MeshCertificates} + */ +public final class MeshCertificates extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.MeshCertificates) + MeshCertificatesOrBuilder { + private static final long serialVersionUID = 0L; + // Use MeshCertificates.newBuilder() to construct. + private MeshCertificates(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MeshCertificates() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MeshCertificates(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MeshCertificates_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MeshCertificates_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MeshCertificates.class, + com.google.container.v1beta1.MeshCertificates.Builder.class); + } + + public static final int ENABLE_CERTIFICATES_FIELD_NUMBER = 1; + private com.google.protobuf.BoolValue enableCertificates_; + /** + * + * + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * + * @return Whether the enableCertificates field is set. + */ + @java.lang.Override + public boolean hasEnableCertificates() { + return enableCertificates_ != null; + } + /** + * + * + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * + * @return The enableCertificates. + */ + @java.lang.Override + public com.google.protobuf.BoolValue getEnableCertificates() { + return enableCertificates_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : enableCertificates_; + } + /** + * + * + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + @java.lang.Override + public com.google.protobuf.BoolValueOrBuilder getEnableCertificatesOrBuilder() { + return getEnableCertificates(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enableCertificates_ != null) { + output.writeMessage(1, getEnableCertificates()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableCertificates_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEnableCertificates()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (enableCertificatesBuilder_ == null) { + enableCertificates_ = null; + } else { + enableCertificates_ = null; + enableCertificatesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MeshCertificates_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.MeshCertificates getDefaultInstanceForType() { + return com.google.container.v1beta1.MeshCertificates.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.MeshCertificates build() { + com.google.container.v1beta1.MeshCertificates result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.MeshCertificates buildPartial() { + com.google.container.v1beta1.MeshCertificates result = + new com.google.container.v1beta1.MeshCertificates(this); + if (enableCertificatesBuilder_ == null) { + result.enableCertificates_ = enableCertificates_; + } else { + result.enableCertificates_ = enableCertificatesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.MeshCertificates) { + return mergeFrom((com.google.container.v1beta1.MeshCertificates) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.MeshCertificates other) { + if (other == com.google.container.v1beta1.MeshCertificates.getDefaultInstance()) return this; + if (other.hasEnableCertificates()) { + mergeEnableCertificates(other.getEnableCertificates()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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); + + 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 com.google.protobuf.BoolValue enableCertificates_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + enableCertificatesBuilder_; + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * + * @return Whether the enableCertificates field is set. + */ + public boolean hasEnableCertificates() { + return enableCertificatesBuilder_ != null || enableCertificates_ != null; + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * + * @return The enableCertificates. + */ + public com.google.protobuf.BoolValue getEnableCertificates() { + if (enableCertificatesBuilder_ == null) { + return enableCertificates_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : enableCertificates_; + } else { + return enableCertificatesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public Builder setEnableCertificates(com.google.protobuf.BoolValue value) { + if (enableCertificatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + enableCertificates_ = value; + onChanged(); + } else { + enableCertificatesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public Builder setEnableCertificates(com.google.protobuf.BoolValue.Builder builderForValue) { + if (enableCertificatesBuilder_ == null) { + enableCertificates_ = builderForValue.build(); + onChanged(); + } else { + enableCertificatesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public Builder mergeEnableCertificates(com.google.protobuf.BoolValue value) { + if (enableCertificatesBuilder_ == null) { + if (enableCertificates_ != null) { + enableCertificates_ = + com.google.protobuf.BoolValue.newBuilder(enableCertificates_) + .mergeFrom(value) + .buildPartial(); + } else { + enableCertificates_ = value; + } + onChanged(); + } else { + enableCertificatesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public Builder clearEnableCertificates() { + if (enableCertificatesBuilder_ == null) { + enableCertificates_ = null; + onChanged(); + } else { + enableCertificates_ = null; + enableCertificatesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public com.google.protobuf.BoolValue.Builder getEnableCertificatesBuilder() { + + onChanged(); + return getEnableCertificatesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public com.google.protobuf.BoolValueOrBuilder getEnableCertificatesOrBuilder() { + if (enableCertificatesBuilder_ != null) { + return enableCertificatesBuilder_.getMessageOrBuilder(); + } else { + return enableCertificates_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : enableCertificates_; + } + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getEnableCertificatesFieldBuilder() { + if (enableCertificatesBuilder_ == null) { + enableCertificatesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getEnableCertificates(), getParentForChildren(), isClean()); + enableCertificates_ = null; + } + return enableCertificatesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.MeshCertificates) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.MeshCertificates) + private static final com.google.container.v1beta1.MeshCertificates DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.MeshCertificates(); + } + + public static com.google.container.v1beta1.MeshCertificates getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MeshCertificates parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..096f7abaa563 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MeshCertificatesOrBuilder.java @@ -0,0 +1,78 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface MeshCertificatesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MeshCertificates) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * + * @return Whether the enableCertificates field is set. + */ + boolean hasEnableCertificates(); + /** + * + * + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * + * @return The enableCertificates. + */ + com.google.protobuf.BoolValue getEnableCertificates(); + /** + * + * + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + com.google.protobuf.BoolValueOrBuilder getEnableCertificatesOrBuilder(); +} diff --git a/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 new file mode 100644 index 000000000000..f3895b280157 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringComponentConfig.java @@ -0,0 +1,1110 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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), + 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; + + 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.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; + 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) { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.MonitoringComponentConfig.Component result = + com.google.container.v1beta1.MonitoringComponentConfig.Component.valueOf(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(); + 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); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + enableComponents_ = java.util.Collections.unmodifiableList(enableComponents_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.enableComponents_ = enableComponents_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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 new file mode 100644 index 000000000000..0ed04c7d356d --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringComponentConfigOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface 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 new file mode 100644 index 000000000000..1d9820df9061 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringConfig.java @@ -0,0 +1,996 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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); + } + + 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 componentConfig_ != null; + } + /** + * + * + *
+   * 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 getComponentConfig(); + } + + public static final int MANAGED_PROMETHEUS_CONFIG_FIELD_NUMBER = 2; + private com.google.container.v1beta1.ManagedPrometheusConfig managedPrometheusConfig_; + /** + * + * + *
+   * Enable Google Cloud Managed Service for Prometheus
+   * in the cluster.
+   * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + * + * @return Whether the managedPrometheusConfig field is set. + */ + @java.lang.Override + public boolean hasManagedPrometheusConfig() { + return managedPrometheusConfig_ != null; + } + /** + * + * + *
+   * Enable Google Cloud Managed Service for Prometheus
+   * in the cluster.
+   * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + * + * @return The managedPrometheusConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.ManagedPrometheusConfig getManagedPrometheusConfig() { + return managedPrometheusConfig_ == null + ? com.google.container.v1beta1.ManagedPrometheusConfig.getDefaultInstance() + : managedPrometheusConfig_; + } + /** + * + * + *
+   * Enable Google Cloud Managed Service for Prometheus
+   * in the cluster.
+   * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + @java.lang.Override + public com.google.container.v1beta1.ManagedPrometheusConfigOrBuilder + getManagedPrometheusConfigOrBuilder() { + return getManagedPrometheusConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (componentConfig_ != null) { + output.writeMessage(1, getComponentConfig()); + } + if (managedPrometheusConfig_ != null) { + output.writeMessage(2, getManagedPrometheusConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (componentConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getComponentConfig()); + } + if (managedPrometheusConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getManagedPrometheusConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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 (!getUnknownFields().equals(other.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(); + } + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (componentConfigBuilder_ == null) { + componentConfig_ = null; + } else { + componentConfig_ = null; + componentConfigBuilder_ = null; + } + if (managedPrometheusConfigBuilder_ == null) { + managedPrometheusConfig_ = null; + } else { + managedPrometheusConfig_ = null; + managedPrometheusConfigBuilder_ = 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 (componentConfigBuilder_ == null) { + result.componentConfig_ = componentConfig_; + } else { + result.componentConfig_ = componentConfigBuilder_.build(); + } + if (managedPrometheusConfigBuilder_ == null) { + result.managedPrometheusConfig_ = managedPrometheusConfig_; + } else { + result.managedPrometheusConfig_ = managedPrometheusConfigBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.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()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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); + + break; + } // case 10 + case 18: + { + input.readMessage( + getManagedPrometheusConfigFieldBuilder().getBuilder(), extensionRegistry); + + 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 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 componentConfigBuilder_ != null || componentConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + componentConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + componentConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (componentConfig_ != null) { + componentConfig_ = + com.google.container.v1beta1.MonitoringComponentConfig.newBuilder(componentConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + componentConfig_ = value; + } + onChanged(); + } else { + componentConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1beta1.MonitoringComponentConfig component_config = 1; + */ + public Builder clearComponentConfig() { + if (componentConfigBuilder_ == null) { + componentConfig_ = null; + onChanged(); + } else { + componentConfig_ = null; + componentConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1beta1.MonitoringComponentConfig component_config = 1; + */ + public com.google.container.v1beta1.MonitoringComponentConfig.Builder + getComponentConfigBuilder() { + + 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 managedPrometheusConfigBuilder_ != null || managedPrometheusConfig_ != null; + } + /** + * + * + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + * + * @return The managedPrometheusConfig. + */ + public com.google.container.v1beta1.ManagedPrometheusConfig getManagedPrometheusConfig() { + if (managedPrometheusConfigBuilder_ == null) { + return managedPrometheusConfig_ == null + ? com.google.container.v1beta1.ManagedPrometheusConfig.getDefaultInstance() + : managedPrometheusConfig_; + } else { + return managedPrometheusConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + public Builder setManagedPrometheusConfig( + com.google.container.v1beta1.ManagedPrometheusConfig value) { + if (managedPrometheusConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + managedPrometheusConfig_ = value; + onChanged(); + } else { + managedPrometheusConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + public Builder setManagedPrometheusConfig( + com.google.container.v1beta1.ManagedPrometheusConfig.Builder builderForValue) { + if (managedPrometheusConfigBuilder_ == null) { + managedPrometheusConfig_ = builderForValue.build(); + onChanged(); + } else { + managedPrometheusConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + public Builder mergeManagedPrometheusConfig( + com.google.container.v1beta1.ManagedPrometheusConfig value) { + if (managedPrometheusConfigBuilder_ == null) { + if (managedPrometheusConfig_ != null) { + managedPrometheusConfig_ = + com.google.container.v1beta1.ManagedPrometheusConfig.newBuilder( + managedPrometheusConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + managedPrometheusConfig_ = value; + } + onChanged(); + } else { + managedPrometheusConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + public Builder clearManagedPrometheusConfig() { + if (managedPrometheusConfigBuilder_ == null) { + managedPrometheusConfig_ = null; + onChanged(); + } else { + managedPrometheusConfig_ = null; + managedPrometheusConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + public com.google.container.v1beta1.ManagedPrometheusConfig.Builder + getManagedPrometheusConfigBuilder() { + + onChanged(); + return getManagedPrometheusConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + public com.google.container.v1beta1.ManagedPrometheusConfigOrBuilder + getManagedPrometheusConfigOrBuilder() { + if (managedPrometheusConfigBuilder_ != null) { + return managedPrometheusConfigBuilder_.getMessageOrBuilder(); + } else { + return managedPrometheusConfig_ == null + ? com.google.container.v1beta1.ManagedPrometheusConfig.getDefaultInstance() + : managedPrometheusConfig_; + } + } + /** + * + * + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ManagedPrometheusConfig, + com.google.container.v1beta1.ManagedPrometheusConfig.Builder, + com.google.container.v1beta1.ManagedPrometheusConfigOrBuilder> + getManagedPrometheusConfigFieldBuilder() { + if (managedPrometheusConfigBuilder_ == null) { + managedPrometheusConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ManagedPrometheusConfig, + com.google.container.v1beta1.ManagedPrometheusConfig.Builder, + com.google.container.v1beta1.ManagedPrometheusConfigOrBuilder>( + getManagedPrometheusConfig(), getParentForChildren(), isClean()); + managedPrometheusConfig_ = null; + } + return managedPrometheusConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..e4ee44b45657 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringConfigOrBuilder.java @@ -0,0 +1,99 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +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(); +} 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 new file mode 100644 index 000000000000..423504624a74 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfig.java @@ -0,0 +1,2513 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * NetworkConfig reports the relative names of network & subnetwork.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.NetworkConfig} + */ +public final class NetworkConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NetworkConfig) + NetworkConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use NetworkConfig.newBuilder() to construct. + private NetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NetworkConfig() { + network_ = ""; + subnetwork_ = ""; + datapathProvider_ = 0; + privateIpv6GoogleAccess_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NetworkConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NetworkConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NetworkConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NetworkConfig.class, + com.google.container.v1beta1.NetworkConfig.Builder.class); + } + + public static final int NETWORK_FIELD_NUMBER = 1; + private volatile java.lang.Object network_; + /** + * + * + *
+   * Output only. The relative name of the Google Compute Engine
+   * [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * to which the cluster is connected. Example:
+   * projects/my-project/global/networks/my-network
+   * 
+ * + * string network = 1; + * + * @return The network. + */ + @java.lang.Override + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The relative name of the Google Compute Engine
+   * [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * to which the cluster is connected. Example:
+   * projects/my-project/global/networks/my-network
+   * 
+ * + * string network = 1; + * + * @return The bytes for network. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBNETWORK_FIELD_NUMBER = 2; + private volatile java.lang.Object subnetwork_; + /** + * + * + *
+   * Output only. The relative name of the Google Compute Engine
+   * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
+   * cluster is connected. Example:
+   * projects/my-project/regions/us-central1/subnetworks/my-subnet
+   * 
+ * + * string subnetwork = 2; + * + * @return The subnetwork. + */ + @java.lang.Override + public java.lang.String getSubnetwork() { + java.lang.Object ref = subnetwork_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetwork_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The relative name of the Google Compute Engine
+   * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
+   * cluster is connected. Example:
+   * projects/my-project/regions/us-central1/subnetworks/my-subnet
+   * 
+ * + * string subnetwork = 2; + * + * @return The bytes for subnetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSubnetworkBytes() { + java.lang.Object ref = subnetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENABLE_INTRA_NODE_VISIBILITY_FIELD_NUMBER = 5; + private boolean enableIntraNodeVisibility_; + /** + * + * + *
+   * Whether Intra-node visibility is enabled for this cluster.
+   * This makes same node pod to pod traffic visible for VPC network.
+   * 
+ * + * bool enable_intra_node_visibility = 5; + * + * @return The enableIntraNodeVisibility. + */ + @java.lang.Override + public boolean getEnableIntraNodeVisibility() { + return enableIntraNodeVisibility_; + } + + public static final int DEFAULT_SNAT_STATUS_FIELD_NUMBER = 7; + private com.google.container.v1beta1.DefaultSnatStatus defaultSnatStatus_; + /** + * + * + *
+   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+   * will be disabled when default_snat_status is disabled. When disabled is set
+   * to false, default IP masquerade rules will be applied to the nodes to
+   * prevent sNAT on cluster internal traffic.
+   * 
+ * + * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; + * + * @return Whether the defaultSnatStatus field is set. + */ + @java.lang.Override + public boolean hasDefaultSnatStatus() { + return defaultSnatStatus_ != null; + } + /** + * + * + *
+   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+   * will be disabled when default_snat_status is disabled. When disabled is set
+   * to false, default IP masquerade rules will be applied to the nodes to
+   * prevent sNAT on cluster internal traffic.
+   * 
+ * + * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; + * + * @return The defaultSnatStatus. + */ + @java.lang.Override + public com.google.container.v1beta1.DefaultSnatStatus getDefaultSnatStatus() { + return defaultSnatStatus_ == null + ? com.google.container.v1beta1.DefaultSnatStatus.getDefaultInstance() + : defaultSnatStatus_; + } + /** + * + * + *
+   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+   * will be disabled when default_snat_status is disabled. When disabled is set
+   * to false, default IP masquerade rules will be applied to the nodes to
+   * prevent sNAT on cluster internal traffic.
+   * 
+ * + * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; + */ + @java.lang.Override + public com.google.container.v1beta1.DefaultSnatStatusOrBuilder getDefaultSnatStatusOrBuilder() { + return getDefaultSnatStatus(); + } + + public static final int ENABLE_L4ILB_SUBSETTING_FIELD_NUMBER = 10; + private boolean enableL4IlbSubsetting_; + /** + * + * + *
+   * Whether L4ILB Subsetting is enabled for this cluster.
+   * 
+ * + * bool enable_l4ilb_subsetting = 10; + * + * @return The enableL4ilbSubsetting. + */ + @java.lang.Override + public boolean getEnableL4IlbSubsetting() { + return enableL4IlbSubsetting_; + } + + public static final int DATAPATH_PROVIDER_FIELD_NUMBER = 11; + private int datapathProvider_; + /** + * + * + *
+   * The desired datapath provider for this cluster. By default, uses the
+   * IPTables-based kube-proxy implementation.
+   * 
+ * + * .google.container.v1beta1.DatapathProvider datapath_provider = 11; + * + * @return The enum numeric value on the wire for datapathProvider. + */ + @java.lang.Override + public int getDatapathProviderValue() { + return datapathProvider_; + } + /** + * + * + *
+   * The desired datapath provider for this cluster. By default, uses the
+   * IPTables-based kube-proxy implementation.
+   * 
+ * + * .google.container.v1beta1.DatapathProvider datapath_provider = 11; + * + * @return The datapathProvider. + */ + @java.lang.Override + public com.google.container.v1beta1.DatapathProvider getDatapathProvider() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.DatapathProvider result = + com.google.container.v1beta1.DatapathProvider.valueOf(datapathProvider_); + return result == null ? com.google.container.v1beta1.DatapathProvider.UNRECOGNIZED : result; + } + + public static final int PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER = 12; + private int privateIpv6GoogleAccess_; + /** + * + * + *
+   * The desired state of IPv6 connectivity to Google Services.
+   * By default, no private IPv6 access to or from Google Services (all access
+   * will be via IPv4)
+   * 
+ * + * .google.container.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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.PrivateIPv6GoogleAccess result = + com.google.container.v1beta1.PrivateIPv6GoogleAccess.valueOf(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 dnsConfig_ != null; + } + /** + * + * + *
+   * 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 getDnsConfig(); + } + + 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 serviceExternalIpsConfig_ != null; + } + /** + * + * + *
+   * 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 getServiceExternalIpsConfig(); + } + + 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 gatewayApiConfig_ != null; + } + /** + * + * + *
+   * 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 getGatewayApiConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 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 (defaultSnatStatus_ != null) { + 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 (dnsConfig_ != null) { + output.writeMessage(13, getDnsConfig()); + } + if (serviceExternalIpsConfig_ != null) { + output.writeMessage(15, getServiceExternalIpsConfig()); + } + if (gatewayApiConfig_ != null) { + output.writeMessage(16, getGatewayApiConfig()); + } + getUnknownFields().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 (defaultSnatStatus_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDefaultSnatStatus()); + } + if (enableL4IlbSubsetting_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, enableL4IlbSubsetting_); + } + if (datapathProvider_ + != com.google.container.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 (dnsConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getDnsConfig()); + } + if (serviceExternalIpsConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 15, getServiceExternalIpsConfig()); + } + if (gatewayApiConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getGatewayApiConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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 = (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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + network_ = ""; + + subnetwork_ = ""; + + enableIntraNodeVisibility_ = false; + + if (defaultSnatStatusBuilder_ == null) { + defaultSnatStatus_ = null; + } else { + defaultSnatStatus_ = null; + defaultSnatStatusBuilder_ = null; + } + enableL4IlbSubsetting_ = false; + + datapathProvider_ = 0; + + privateIpv6GoogleAccess_ = 0; + + if (dnsConfigBuilder_ == null) { + dnsConfig_ = null; + } else { + dnsConfig_ = null; + dnsConfigBuilder_ = null; + } + if (serviceExternalIpsConfigBuilder_ == null) { + serviceExternalIpsConfig_ = null; + } else { + serviceExternalIpsConfig_ = null; + serviceExternalIpsConfigBuilder_ = null; + } + if (gatewayApiConfigBuilder_ == null) { + gatewayApiConfig_ = null; + } else { + gatewayApiConfig_ = null; + gatewayApiConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NetworkConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.NetworkConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkConfig build() { + com.google.container.v1beta1.NetworkConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkConfig buildPartial() { + com.google.container.v1beta1.NetworkConfig result = + new com.google.container.v1beta1.NetworkConfig(this); + result.network_ = network_; + result.subnetwork_ = subnetwork_; + result.enableIntraNodeVisibility_ = enableIntraNodeVisibility_; + if (defaultSnatStatusBuilder_ == null) { + result.defaultSnatStatus_ = defaultSnatStatus_; + } else { + result.defaultSnatStatus_ = defaultSnatStatusBuilder_.build(); + } + result.enableL4IlbSubsetting_ = enableL4IlbSubsetting_; + result.datapathProvider_ = datapathProvider_; + result.privateIpv6GoogleAccess_ = privateIpv6GoogleAccess_; + if (dnsConfigBuilder_ == null) { + result.dnsConfig_ = dnsConfig_; + } else { + result.dnsConfig_ = dnsConfigBuilder_.build(); + } + if (serviceExternalIpsConfigBuilder_ == null) { + result.serviceExternalIpsConfig_ = serviceExternalIpsConfig_; + } else { + result.serviceExternalIpsConfig_ = serviceExternalIpsConfigBuilder_.build(); + } + if (gatewayApiConfigBuilder_ == null) { + result.gatewayApiConfig_ = gatewayApiConfig_; + } else { + result.gatewayApiConfig_ = gatewayApiConfigBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.NetworkConfig) { + return mergeFrom((com.google.container.v1beta1.NetworkConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NetworkConfig other) { + if (other == com.google.container.v1beta1.NetworkConfig.getDefaultInstance()) return this; + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + onChanged(); + } + if (!other.getSubnetwork().isEmpty()) { + subnetwork_ = other.subnetwork_; + onChanged(); + } + if (other.getEnableIntraNodeVisibility() != false) { + setEnableIntraNodeVisibility(other.getEnableIntraNodeVisibility()); + } + if (other.hasDefaultSnatStatus()) { + mergeDefaultSnatStatus(other.getDefaultSnatStatus()); + } + if (other.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()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + subnetwork_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 40: + { + enableIntraNodeVisibility_ = input.readBool(); + + break; + } // case 40 + case 58: + { + input.readMessage( + getDefaultSnatStatusFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 58 + case 80: + { + enableL4IlbSubsetting_ = input.readBool(); + + break; + } // case 80 + case 88: + { + datapathProvider_ = input.readEnum(); + + break; + } // case 88 + case 96: + { + privateIpv6GoogleAccess_ = input.readEnum(); + + break; + } // case 96 + case 106: + { + input.readMessage(getDnsConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 106 + case 122: + { + input.readMessage( + getServiceExternalIpsConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 122 + case 130: + { + input.readMessage( + getGatewayApiConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 130 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object network_ = ""; + /** + * + * + *
+     * Output only. The relative name of the Google Compute Engine
+     * [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the cluster is connected. Example:
+     * projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 1; + * + * @return The network. + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The relative name of the Google Compute Engine
+     * [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the cluster is connected. Example:
+     * projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 1; + * + * @return The bytes for network. + */ + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The relative name of the Google Compute Engine
+     * [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the cluster is connected. Example:
+     * projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 1; + * + * @param value The network to set. + * @return This builder for chaining. + */ + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + network_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The relative name of the Google Compute Engine
+     * [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the cluster is connected. Example:
+     * projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 1; + * + * @return This builder for chaining. + */ + public Builder clearNetwork() { + + network_ = getDefaultInstance().getNetwork(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The relative name of the Google Compute Engine
+     * [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the cluster is connected. Example:
+     * projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 1; + * + * @param value The bytes for network to set. + * @return This builder for chaining. + */ + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + network_ = value; + onChanged(); + return this; + } + + private java.lang.Object subnetwork_ = ""; + /** + * + * + *
+     * Output only. The relative name of the Google Compute Engine
+     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
+     * cluster is connected. Example:
+     * projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 2; + * + * @return The subnetwork. + */ + public java.lang.String getSubnetwork() { + java.lang.Object ref = subnetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The relative name of the Google Compute Engine
+     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
+     * cluster is connected. Example:
+     * projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 2; + * + * @return The bytes for subnetwork. + */ + public com.google.protobuf.ByteString getSubnetworkBytes() { + java.lang.Object ref = subnetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The relative name of the Google Compute Engine
+     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
+     * cluster is connected. Example:
+     * projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 2; + * + * @param value The subnetwork to set. + * @return This builder for chaining. + */ + public Builder setSubnetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subnetwork_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The relative name of the Google Compute Engine
+     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
+     * cluster is connected. Example:
+     * projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 2; + * + * @return This builder for chaining. + */ + public Builder clearSubnetwork() { + + subnetwork_ = getDefaultInstance().getSubnetwork(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The relative name of the Google Compute Engine
+     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
+     * cluster is connected. Example:
+     * projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 2; + * + * @param value The bytes for subnetwork to set. + * @return This builder for chaining. + */ + public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subnetwork_ = value; + onChanged(); + return this; + } + + private boolean enableIntraNodeVisibility_; + /** + * + * + *
+     * Whether Intra-node visibility is enabled for this cluster.
+     * This makes same node pod to pod traffic visible for VPC network.
+     * 
+ * + * bool enable_intra_node_visibility = 5; + * + * @return The enableIntraNodeVisibility. + */ + @java.lang.Override + public boolean getEnableIntraNodeVisibility() { + return enableIntraNodeVisibility_; + } + /** + * + * + *
+     * Whether Intra-node visibility is enabled for this cluster.
+     * This makes same node pod to pod traffic visible for VPC network.
+     * 
+ * + * bool enable_intra_node_visibility = 5; + * + * @param value The enableIntraNodeVisibility to set. + * @return This builder for chaining. + */ + public Builder setEnableIntraNodeVisibility(boolean value) { + + enableIntraNodeVisibility_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether Intra-node visibility is enabled for this cluster.
+     * This makes same node pod to pod traffic visible for VPC network.
+     * 
+ * + * bool enable_intra_node_visibility = 5; + * + * @return This builder for chaining. + */ + public Builder clearEnableIntraNodeVisibility() { + + enableIntraNodeVisibility_ = false; + onChanged(); + return this; + } + + private com.google.container.v1beta1.DefaultSnatStatus defaultSnatStatus_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DefaultSnatStatus, + com.google.container.v1beta1.DefaultSnatStatus.Builder, + com.google.container.v1beta1.DefaultSnatStatusOrBuilder> + defaultSnatStatusBuilder_; + /** + * + * + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; + * + * @return Whether the defaultSnatStatus field is set. + */ + public boolean hasDefaultSnatStatus() { + return defaultSnatStatusBuilder_ != null || defaultSnatStatus_ != null; + } + /** + * + * + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; + * + * @return The defaultSnatStatus. + */ + public com.google.container.v1beta1.DefaultSnatStatus getDefaultSnatStatus() { + if (defaultSnatStatusBuilder_ == null) { + return defaultSnatStatus_ == null + ? com.google.container.v1beta1.DefaultSnatStatus.getDefaultInstance() + : defaultSnatStatus_; + } else { + return defaultSnatStatusBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; + */ + public Builder setDefaultSnatStatus(com.google.container.v1beta1.DefaultSnatStatus value) { + if (defaultSnatStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultSnatStatus_ = value; + onChanged(); + } else { + defaultSnatStatusBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; + */ + public Builder setDefaultSnatStatus( + com.google.container.v1beta1.DefaultSnatStatus.Builder builderForValue) { + if (defaultSnatStatusBuilder_ == null) { + defaultSnatStatus_ = builderForValue.build(); + onChanged(); + } else { + defaultSnatStatusBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; + */ + public Builder mergeDefaultSnatStatus(com.google.container.v1beta1.DefaultSnatStatus value) { + if (defaultSnatStatusBuilder_ == null) { + if (defaultSnatStatus_ != null) { + defaultSnatStatus_ = + com.google.container.v1beta1.DefaultSnatStatus.newBuilder(defaultSnatStatus_) + .mergeFrom(value) + .buildPartial(); + } else { + defaultSnatStatus_ = value; + } + onChanged(); + } else { + defaultSnatStatusBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; + */ + public Builder clearDefaultSnatStatus() { + if (defaultSnatStatusBuilder_ == null) { + defaultSnatStatus_ = null; + onChanged(); + } else { + defaultSnatStatus_ = null; + defaultSnatStatusBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; + */ + public com.google.container.v1beta1.DefaultSnatStatus.Builder getDefaultSnatStatusBuilder() { + + onChanged(); + return getDefaultSnatStatusFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; + */ + public com.google.container.v1beta1.DefaultSnatStatusOrBuilder getDefaultSnatStatusOrBuilder() { + if (defaultSnatStatusBuilder_ != null) { + return defaultSnatStatusBuilder_.getMessageOrBuilder(); + } else { + return defaultSnatStatus_ == null + ? com.google.container.v1beta1.DefaultSnatStatus.getDefaultInstance() + : defaultSnatStatus_; + } + } + /** + * + * + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DefaultSnatStatus, + com.google.container.v1beta1.DefaultSnatStatus.Builder, + com.google.container.v1beta1.DefaultSnatStatusOrBuilder> + getDefaultSnatStatusFieldBuilder() { + if (defaultSnatStatusBuilder_ == null) { + defaultSnatStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DefaultSnatStatus, + com.google.container.v1beta1.DefaultSnatStatus.Builder, + com.google.container.v1beta1.DefaultSnatStatusOrBuilder>( + getDefaultSnatStatus(), getParentForChildren(), isClean()); + defaultSnatStatus_ = null; + } + return defaultSnatStatusBuilder_; + } + + private boolean enableL4IlbSubsetting_; + /** + * + * + *
+     * Whether L4ILB Subsetting is enabled for this cluster.
+     * 
+ * + * bool enable_l4ilb_subsetting = 10; + * + * @return The enableL4ilbSubsetting. + */ + @java.lang.Override + public boolean getEnableL4IlbSubsetting() { + return enableL4IlbSubsetting_; + } + /** + * + * + *
+     * Whether L4ILB Subsetting is enabled for this cluster.
+     * 
+ * + * bool enable_l4ilb_subsetting = 10; + * + * @param value The enableL4ilbSubsetting to set. + * @return This builder for chaining. + */ + public Builder setEnableL4IlbSubsetting(boolean value) { + + enableL4IlbSubsetting_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether L4ILB Subsetting is enabled for this cluster.
+     * 
+ * + * bool enable_l4ilb_subsetting = 10; + * + * @return This builder for chaining. + */ + public Builder clearEnableL4IlbSubsetting() { + + enableL4IlbSubsetting_ = false; + onChanged(); + return this; + } + + private int datapathProvider_ = 0; + /** + * + * + *
+     * The desired datapath provider for this cluster. By default, uses the
+     * IPTables-based kube-proxy implementation.
+     * 
+ * + * .google.container.v1beta1.DatapathProvider datapath_provider = 11; + * + * @return The enum numeric value on the wire for datapathProvider. + */ + @java.lang.Override + public int getDatapathProviderValue() { + return datapathProvider_; + } + /** + * + * + *
+     * The desired datapath provider for this cluster. By default, uses the
+     * IPTables-based kube-proxy implementation.
+     * 
+ * + * .google.container.v1beta1.DatapathProvider datapath_provider = 11; + * + * @param value The enum numeric value on the wire for datapathProvider to set. + * @return This builder for chaining. + */ + public Builder setDatapathProviderValue(int value) { + + datapathProvider_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The desired datapath provider for this cluster. By default, uses the
+     * IPTables-based kube-proxy implementation.
+     * 
+ * + * .google.container.v1beta1.DatapathProvider datapath_provider = 11; + * + * @return The datapathProvider. + */ + @java.lang.Override + public com.google.container.v1beta1.DatapathProvider getDatapathProvider() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.DatapathProvider result = + com.google.container.v1beta1.DatapathProvider.valueOf(datapathProvider_); + return result == null ? com.google.container.v1beta1.DatapathProvider.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The desired datapath provider for this cluster. By default, uses the
+     * IPTables-based kube-proxy implementation.
+     * 
+ * + * .google.container.v1beta1.DatapathProvider datapath_provider = 11; + * + * @param value The datapathProvider to set. + * @return This builder for chaining. + */ + public Builder setDatapathProvider(com.google.container.v1beta1.DatapathProvider value) { + if (value == null) { + throw new NullPointerException(); + } + + datapathProvider_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired datapath provider for this cluster. By default, uses the
+     * IPTables-based kube-proxy implementation.
+     * 
+ * + * .google.container.v1beta1.DatapathProvider datapath_provider = 11; + * + * @return This builder for chaining. + */ + public Builder clearDatapathProvider() { + + datapathProvider_ = 0; + onChanged(); + return this; + } + + 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; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.PrivateIPv6GoogleAccess result = + com.google.container.v1beta1.PrivateIPv6GoogleAccess.valueOf(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(); + } + + 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() { + + 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 dnsConfigBuilder_ != null || dnsConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + dnsConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + dnsConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (dnsConfig_ != null) { + dnsConfig_ = + com.google.container.v1beta1.DNSConfig.newBuilder(dnsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + dnsConfig_ = value; + } + onChanged(); + } else { + dnsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1beta1.DNSConfig dns_config = 13; + */ + public Builder clearDnsConfig() { + if (dnsConfigBuilder_ == null) { + dnsConfig_ = null; + onChanged(); + } else { + dnsConfig_ = null; + dnsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1beta1.DNSConfig dns_config = 13; + */ + public com.google.container.v1beta1.DNSConfig.Builder getDnsConfigBuilder() { + + 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 serviceExternalIpsConfigBuilder_ != null || serviceExternalIpsConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + serviceExternalIpsConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + serviceExternalIpsConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (serviceExternalIpsConfig_ != null) { + serviceExternalIpsConfig_ = + com.google.container.v1beta1.ServiceExternalIPsConfig.newBuilder( + serviceExternalIpsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + serviceExternalIpsConfig_ = value; + } + onChanged(); + } else { + serviceExternalIpsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1beta1.ServiceExternalIPsConfig service_external_ips_config = 15; + * + */ + public Builder clearServiceExternalIpsConfig() { + if (serviceExternalIpsConfigBuilder_ == null) { + serviceExternalIpsConfig_ = null; + onChanged(); + } else { + serviceExternalIpsConfig_ = null; + serviceExternalIpsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1beta1.ServiceExternalIPsConfig service_external_ips_config = 15; + * + */ + public com.google.container.v1beta1.ServiceExternalIPsConfig.Builder + getServiceExternalIpsConfigBuilder() { + + 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 gatewayApiConfigBuilder_ != null || gatewayApiConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + gatewayApiConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + gatewayApiConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (gatewayApiConfig_ != null) { + gatewayApiConfig_ = + com.google.container.v1beta1.GatewayAPIConfig.newBuilder(gatewayApiConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + gatewayApiConfig_ = value; + } + onChanged(); + } else { + gatewayApiConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * GatewayAPIConfig contains the desired config of Gateway API on this
+     * cluster.
+     * 
+ * + * .google.container.v1beta1.GatewayAPIConfig gateway_api_config = 16; + */ + public Builder clearGatewayApiConfig() { + if (gatewayApiConfigBuilder_ == null) { + gatewayApiConfig_ = null; + onChanged(); + } else { + gatewayApiConfig_ = null; + gatewayApiConfigBuilder_ = null; + } + + 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() { + + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..d6a07d70db03 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfigOrBuilder.java @@ -0,0 +1,329 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface NetworkConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NetworkConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The relative name of the Google Compute Engine
+   * [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * to which the cluster is connected. Example:
+   * projects/my-project/global/networks/my-network
+   * 
+ * + * string network = 1; + * + * @return The network. + */ + java.lang.String getNetwork(); + /** + * + * + *
+   * Output only. The relative name of the Google Compute Engine
+   * [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * to which the cluster is connected. Example:
+   * projects/my-project/global/networks/my-network
+   * 
+ * + * string network = 1; + * + * @return The bytes for network. + */ + com.google.protobuf.ByteString getNetworkBytes(); + + /** + * + * + *
+   * Output only. The relative name of the Google Compute Engine
+   * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
+   * cluster is connected. Example:
+   * projects/my-project/regions/us-central1/subnetworks/my-subnet
+   * 
+ * + * string subnetwork = 2; + * + * @return The subnetwork. + */ + java.lang.String getSubnetwork(); + /** + * + * + *
+   * Output only. The relative name of the Google Compute Engine
+   * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
+   * cluster is connected. Example:
+   * projects/my-project/regions/us-central1/subnetworks/my-subnet
+   * 
+ * + * string subnetwork = 2; + * + * @return The bytes for subnetwork. + */ + com.google.protobuf.ByteString getSubnetworkBytes(); + + /** + * + * + *
+   * Whether Intra-node visibility is enabled for this cluster.
+   * This makes same node pod to pod traffic visible for VPC network.
+   * 
+ * + * bool enable_intra_node_visibility = 5; + * + * @return The enableIntraNodeVisibility. + */ + boolean getEnableIntraNodeVisibility(); + + /** + * + * + *
+   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+   * will be disabled when default_snat_status is disabled. When disabled is set
+   * to false, default IP masquerade rules will be applied to the nodes to
+   * prevent sNAT on cluster internal traffic.
+   * 
+ * + * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; + * + * @return Whether the defaultSnatStatus field is set. + */ + boolean hasDefaultSnatStatus(); + /** + * + * + *
+   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+   * will be disabled when default_snat_status is disabled. When disabled is set
+   * to false, default IP masquerade rules will be applied to the nodes to
+   * prevent sNAT on cluster internal traffic.
+   * 
+ * + * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; + * + * @return The defaultSnatStatus. + */ + com.google.container.v1beta1.DefaultSnatStatus getDefaultSnatStatus(); + /** + * + * + *
+   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+   * will be disabled when default_snat_status is disabled. When disabled is set
+   * to false, default IP masquerade rules will be applied to the nodes to
+   * prevent sNAT on cluster internal traffic.
+   * 
+ * + * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; + */ + com.google.container.v1beta1.DefaultSnatStatusOrBuilder getDefaultSnatStatusOrBuilder(); + + /** + * + * + *
+   * 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(); +} 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 new file mode 100644 index 000000000000..f07989ed3da3 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicy.java @@ -0,0 +1,819 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration options for the NetworkPolicy feature.
+ * https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.NetworkPolicy} + */ +public final class NetworkPolicy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NetworkPolicy) + NetworkPolicyOrBuilder { + private static final long serialVersionUID = 0L; + // Use NetworkPolicy.newBuilder() to construct. + private NetworkPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NetworkPolicy() { + provider_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NetworkPolicy(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NetworkPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NetworkPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NetworkPolicy.class, + com.google.container.v1beta1.NetworkPolicy.Builder.class); + } + + /** + * + * + *
+   * Allowed Network Policy providers.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.NetworkPolicy.Provider} + */ + public enum Provider implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not set
+     * 
+ * + * PROVIDER_UNSPECIFIED = 0; + */ + PROVIDER_UNSPECIFIED(0), + /** + * + * + *
+     * Tigera (Calico Felix).
+     * 
+ * + * CALICO = 1; + */ + CALICO(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not set
+     * 
+ * + * PROVIDER_UNSPECIFIED = 0; + */ + public static final int PROVIDER_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Tigera (Calico Felix).
+     * 
+ * + * CALICO = 1; + */ + public static final int CALICO_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Provider valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Provider forNumber(int value) { + switch (value) { + case 0: + return PROVIDER_UNSPECIFIED; + case 1: + return CALICO; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Provider findValueByNumber(int number) { + return Provider.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1beta1.NetworkPolicy.getDescriptor().getEnumTypes().get(0); + } + + private static final Provider[] VALUES = values(); + + public static Provider valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Provider(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.NetworkPolicy.Provider) + } + + public static final int PROVIDER_FIELD_NUMBER = 1; + private int provider_; + /** + * + * + *
+   * The selected network policy provider.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicy.Provider provider = 1; + * + * @return The enum numeric value on the wire for provider. + */ + @java.lang.Override + public int getProviderValue() { + return provider_; + } + /** + * + * + *
+   * The selected network policy provider.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicy.Provider provider = 1; + * + * @return The provider. + */ + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicy.Provider getProvider() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.NetworkPolicy.Provider result = + com.google.container.v1beta1.NetworkPolicy.Provider.valueOf(provider_); + return result == null + ? com.google.container.v1beta1.NetworkPolicy.Provider.UNRECOGNIZED + : result; + } + + public static final int ENABLED_FIELD_NUMBER = 2; + private boolean enabled_; + /** + * + * + *
+   * Whether network policy is enabled on the cluster.
+   * 
+ * + * bool enabled = 2; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (provider_ + != com.google.container.v1beta1.NetworkPolicy.Provider.PROVIDER_UNSPECIFIED.getNumber()) { + output.writeEnum(1, provider_); + } + if (enabled_ != false) { + output.writeBool(2, enabled_); + } + 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(); + provider_ = 0; + + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NetworkPolicy_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicy getDefaultInstanceForType() { + return com.google.container.v1beta1.NetworkPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicy build() { + com.google.container.v1beta1.NetworkPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicy buildPartial() { + com.google.container.v1beta1.NetworkPolicy result = + new com.google.container.v1beta1.NetworkPolicy(this); + result.provider_ = provider_; + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.NetworkPolicy) { + return mergeFrom((com.google.container.v1beta1.NetworkPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NetworkPolicy other) { + if (other == com.google.container.v1beta1.NetworkPolicy.getDefaultInstance()) return this; + if (other.provider_ != 0) { + setProviderValue(other.getProviderValue()); + } + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 8 + case 16: + { + enabled_ = input.readBool(); + + 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 provider_ = 0; + /** + * + * + *
+     * The selected network policy provider.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy.Provider provider = 1; + * + * @return The enum numeric value on the wire for provider. + */ + @java.lang.Override + public int getProviderValue() { + return provider_; + } + /** + * + * + *
+     * The selected network policy provider.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy.Provider provider = 1; + * + * @param value The enum numeric value on the wire for provider to set. + * @return This builder for chaining. + */ + public Builder setProviderValue(int value) { + + provider_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The selected network policy provider.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy.Provider provider = 1; + * + * @return The provider. + */ + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicy.Provider getProvider() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.NetworkPolicy.Provider result = + com.google.container.v1beta1.NetworkPolicy.Provider.valueOf(provider_); + return result == null + ? com.google.container.v1beta1.NetworkPolicy.Provider.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The selected network policy provider.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy.Provider provider = 1; + * + * @param value The provider to set. + * @return This builder for chaining. + */ + public Builder setProvider(com.google.container.v1beta1.NetworkPolicy.Provider value) { + if (value == null) { + throw new NullPointerException(); + } + + provider_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The selected network policy provider.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy.Provider provider = 1; + * + * @return This builder for chaining. + */ + public Builder clearProvider() { + + provider_ = 0; + onChanged(); + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Whether network policy is enabled on the cluster.
+     * 
+ * + * bool enabled = 2; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether network policy is enabled on the cluster.
+     * 
+ * + * bool enabled = 2; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether network policy is enabled on the cluster.
+     * 
+ * + * bool enabled = 2; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.NetworkPolicy) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NetworkPolicy) + private static final com.google.container.v1beta1.NetworkPolicy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NetworkPolicy(); + } + + public static com.google.container.v1beta1.NetworkPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..8dce320c3bd0 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicyConfig.java @@ -0,0 +1,531 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration for NetworkPolicy. This only tracks whether the addon
+ * is enabled or not on the Master, it does not track whether network policy
+ * is enabled for the nodes.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.NetworkPolicyConfig} + */ +public final class NetworkPolicyConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NetworkPolicyConfig) + NetworkPolicyConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use NetworkPolicyConfig.newBuilder() to construct. + private NetworkPolicyConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NetworkPolicyConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NetworkPolicyConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NetworkPolicyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NetworkPolicyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NetworkPolicyConfig.class, + com.google.container.v1beta1.NetworkPolicyConfig.Builder.class); + } + + public static final int DISABLED_FIELD_NUMBER = 1; + private boolean disabled_; + /** + * + * + *
+   * Whether NetworkPolicy is enabled for this cluster.
+   * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (disabled_ != false) { + output.writeBool(1, disabled_); + } + 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(); + disabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NetworkPolicyConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicyConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.NetworkPolicyConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicyConfig build() { + com.google.container.v1beta1.NetworkPolicyConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicyConfig buildPartial() { + com.google.container.v1beta1.NetworkPolicyConfig result = + new com.google.container.v1beta1.NetworkPolicyConfig(this); + result.disabled_ = disabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.NetworkPolicyConfig) { + return mergeFrom((com.google.container.v1beta1.NetworkPolicyConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NetworkPolicyConfig other) { + if (other == com.google.container.v1beta1.NetworkPolicyConfig.getDefaultInstance()) + return this; + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 boolean disabled_; + /** + * + * + *
+     * Whether NetworkPolicy is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + /** + * + * + *
+     * Whether NetworkPolicy is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * + * @param value The disabled to set. + * @return This builder for chaining. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether NetworkPolicy is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisabled() { + + disabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.NetworkPolicyConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NetworkPolicyConfig) + private static final com.google.container.v1beta1.NetworkPolicyConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NetworkPolicyConfig(); + } + + public static com.google.container.v1beta1.NetworkPolicyConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkPolicyConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..cb3a02dca5db --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicyConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface NetworkPolicyConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NetworkPolicyConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether NetworkPolicy is enabled for this cluster.
+   * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + boolean getDisabled(); +} diff --git a/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 new file mode 100644 index 000000000000..4e977659fbfe --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicyOrBuilder.java @@ -0,0 +1,63 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface NetworkPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NetworkPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The selected network policy provider.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicy.Provider provider = 1; + * + * @return The enum numeric value on the wire for provider. + */ + int getProviderValue(); + /** + * + * + *
+   * The selected network policy provider.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicy.Provider provider = 1; + * + * @return The provider. + */ + com.google.container.v1beta1.NetworkPolicy.Provider getProvider(); + + /** + * + * + *
+   * Whether network policy is enabled on the cluster.
+   * 
+ * + * bool enabled = 2; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/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 new file mode 100644 index 000000000000..f309ec4e7f15 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkTags.java @@ -0,0 +1,712 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * 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.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NetworkTags(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + private com.google.protobuf.LazyStringList tags_; + /** + * + * + *
+   * 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(); + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_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); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + tags_ = tags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tags_ = tags_; + 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.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_ = (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.LazyStringList tags_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureTagsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + 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() { + return tags_.getUnmodifiableView(); + } + /** + * + * + *
+     * 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); + 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); + 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_); + onChanged(); + return this; + } + /** + * + * + *
+     * List of network tags.
+     * 
+ * + * repeated string tags = 1; + * + * @return This builder for chaining. + */ + public Builder clearTags() { + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + 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); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..b6bb79b4ffe3 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkTagsOrBuilder.java @@ -0,0 +1,76 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface 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 new file mode 100644 index 000000000000..704d60459a21 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfig.java @@ -0,0 +1,8660 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Parameters that describe the nodes in a cluster.
+ * 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.EMPTY; + serviceAccount_ = ""; + imageType_ = ""; + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + accelerators_ = java.util.Collections.emptyList(); + nodeGroup_ = ""; + diskType_ = ""; + minCpuPlatform_ = ""; + taints_ = java.util.Collections.emptyList(); + bootDiskKmsKey_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NodeConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodeConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetMetadata(); + case 6: + return internalGetLabels(); + 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); + } + + public static final int MACHINE_TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object machineType_; + /** + * + * + *
+   * The name of a Google Compute Engine [machine
+   * type](https://cloud.google.com/compute/docs/machine-types).
+   * If unspecified, the default machine type is
+   * `e2-medium`.
+   * 
+ * + * string machine_type = 1; + * + * @return The machineType. + */ + @java.lang.Override + public java.lang.String getMachineType() { + java.lang.Object ref = machineType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + machineType_ = s; + return s; + } + } + /** + * + * + *
+   * The name of a Google Compute Engine [machine
+   * type](https://cloud.google.com/compute/docs/machine-types).
+   * If unspecified, the default machine type is
+   * `e2-medium`.
+   * 
+ * + * string machine_type = 1; + * + * @return The bytes for machineType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMachineTypeBytes() { + java.lang.Object ref = machineType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + machineType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISK_SIZE_GB_FIELD_NUMBER = 2; + private int diskSizeGb_; + /** + * + * + *
+   * Size of the disk attached to each node, specified in GB.
+   * The smallest allowed disk size is 10GB.
+   * If unspecified, the default disk size is 100GB.
+   * 
+ * + * int32 disk_size_gb = 2; + * + * @return The diskSizeGb. + */ + @java.lang.Override + public int getDiskSizeGb() { + return diskSizeGb_; + } + + public static final int OAUTH_SCOPES_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList oauthScopes_; + /** + * + * + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container
+   * Registry](https://cloud.google.com/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 3; + * + * @return A list containing the oauthScopes. + */ + public com.google.protobuf.ProtocolStringList getOauthScopesList() { + return oauthScopes_; + } + /** + * + * + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container
+   * Registry](https://cloud.google.com/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 3; + * + * @return The count of oauthScopes. + */ + public int getOauthScopesCount() { + return oauthScopes_.size(); + } + /** + * + * + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container
+   * Registry](https://cloud.google.com/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 3; + * + * @param index The index of the element to return. + * @return The oauthScopes at the given index. + */ + public java.lang.String getOauthScopes(int index) { + return oauthScopes_.get(index); + } + /** + * + * + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container
+   * Registry](https://cloud.google.com/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 3; + * + * @param index The index of the value to return. + * @return The bytes of the oauthScopes at the given index. + */ + public com.google.protobuf.ByteString getOauthScopesBytes(int index) { + return oauthScopes_.getByteString(index); + } + + public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 9; + private volatile java.lang.Object serviceAccount_; + /** + * + * + *
+   * The Google Cloud Platform Service Account to be used by the node VMs.
+   * Specify the email address of the Service Account; otherwise, if no Service
+   * Account is specified, the "default" service account is used.
+   * 
+ * + * string service_account = 9; + * + * @return The serviceAccount. + */ + @java.lang.Override + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } + } + /** + * + * + *
+   * The Google Cloud Platform Service Account to be used by the node VMs.
+   * Specify the email address of the Service Account; otherwise, if no Service
+   * Account is specified, the "default" service account is used.
+   * 
+ * + * string service_account = 9; + * + * @return The bytes for serviceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 4; + + private static final class MetadataDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodeConfig_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField metadata_; + + private com.google.protobuf.MapField internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + * + * + *
+   * The metadata key/value pairs assigned to instances in the cluster.
+   * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
+   * in length. These are reflected as part of a URL in the metadata server.
+   * Additionally, to avoid ambiguity, keys must not conflict with any other
+   * metadata keys for the project or be one of the reserved keys:
+   *  - "cluster-location"
+   *  - "cluster-name"
+   *  - "cluster-uid"
+   *  - "configure-sh"
+   *  - "containerd-configure-sh"
+   *  - "enable-oslogin"
+   *  - "gci-ensure-gke-docker"
+   *  - "gci-metrics-enabled"
+   *  - "gci-update-strategy"
+   *  - "instance-template"
+   *  - "kube-env"
+   *  - "startup-script"
+   *  - "user-data"
+   *  - "disable-address-manager"
+   *  - "windows-startup-script-ps1"
+   *  - "common-psm1"
+   *  - "k8s-node-setup-psm1"
+   *  - "install-ssh-psm1"
+   *  - "user-profile-psm1"
+   * 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 java.lang.String getMetadataOrDefault( + java.lang.String key, 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; + private volatile java.lang.Object imageType_; + /** + * + * + *
+   * The image type to use for this node. Note that for a given image type,
+   * the latest version of it will be used.
+   * 
+ * + * string image_type = 5; + * + * @return The imageType. + */ + @java.lang.Override + public java.lang.String getImageType() { + java.lang.Object ref = imageType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageType_ = s; + return s; + } + } + /** + * + * + *
+   * The image type to use for this node. Note that for a given image type,
+   * the latest version of it will be used.
+   * 
+ * + * string image_type = 5; + * + * @return The bytes for imageType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getImageTypeBytes() { + java.lang.Object ref = imageType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABELS_FIELD_NUMBER = 6; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodeConfig_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new 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 java.lang.String getLabelsOrDefault(java.lang.String key, 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_; + /** + * + * + *
+   * The number of local SSD disks to be attached to the node.
+   * The limit for this value is dependent upon the maximum number of
+   * disks available on a machine per zone. See:
+   * https://cloud.google.com/compute/docs/disks/local-ssd
+   * for more information.
+   * 
+ * + * int32 local_ssd_count = 7; + * + * @return The localSsdCount. + */ + @java.lang.Override + public int getLocalSsdCount() { + return localSsdCount_; + } + + public static final int TAGS_FIELD_NUMBER = 8; + private com.google.protobuf.LazyStringList tags_; + /** + * + * + *
+   * The list of instance tags applied to all nodes. Tags are used to identify
+   * valid sources or targets for network firewalls and are specified by
+   * the client during cluster or node pool creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * repeated string tags = 8; + * + * @return A list containing the tags. + */ + public com.google.protobuf.ProtocolStringList getTagsList() { + return tags_; + } + /** + * + * + *
+   * The list of instance tags applied to all nodes. Tags are used to identify
+   * valid sources or targets for network firewalls and are specified by
+   * the client during cluster or node pool creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * repeated string tags = 8; + * + * @return The count of tags. + */ + public int getTagsCount() { + return tags_.size(); + } + /** + * + * + *
+   * The list of instance tags applied to all nodes. Tags are used to identify
+   * valid sources or targets for network firewalls and are specified by
+   * the client during cluster or node pool creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * repeated string tags = 8; + * + * @param index The index of the element to return. + * @return The tags at the given index. + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + * + * + *
+   * The list of instance tags applied to all nodes. Tags are used to identify
+   * valid sources or targets for network firewalls and are specified by
+   * the client during cluster or node pool creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * repeated string tags = 8; + * + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + public com.google.protobuf.ByteString getTagsBytes(int index) { + return tags_.getByteString(index); + } + + public static final int PREEMPTIBLE_FIELD_NUMBER = 10; + private boolean preemptible_; + /** + * + * + *
+   * Whether the nodes are created as preemptible VM instances. See:
+   * https://cloud.google.com/compute/docs/instances/preemptible for more
+   * inforamtion about preemptible VM instances.
+   * 
+ * + * bool preemptible = 10; + * + * @return The preemptible. + */ + @java.lang.Override + public boolean getPreemptible() { + return preemptible_; + } + + public static final int ACCELERATORS_FIELD_NUMBER = 11; + private java.util.List accelerators_; + /** + * + * + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + @java.lang.Override + public java.util.List getAcceleratorsList() { + return accelerators_; + } + /** + * + * + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + @java.lang.Override + public java.util.List + getAcceleratorsOrBuilderList() { + return accelerators_; + } + /** + * + * + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + @java.lang.Override + public int getAcceleratorsCount() { + return accelerators_.size(); + } + /** + * + * + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + @java.lang.Override + public com.google.container.v1beta1.AcceleratorConfig getAccelerators(int index) { + return accelerators_.get(index); + } + /** + * + * + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + @java.lang.Override + public com.google.container.v1beta1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder( + int index) { + return accelerators_.get(index); + } + + public static final int SANDBOX_CONFIG_FIELD_NUMBER = 17; + private com.google.container.v1beta1.SandboxConfig sandboxConfig_; + /** + * + * + *
+   * Sandbox configuration for this node.
+   * 
+ * + * .google.container.v1beta1.SandboxConfig sandbox_config = 17; + * + * @return Whether the sandboxConfig field is set. + */ + @java.lang.Override + public boolean hasSandboxConfig() { + return sandboxConfig_ != null; + } + /** + * + * + *
+   * Sandbox configuration for this node.
+   * 
+ * + * .google.container.v1beta1.SandboxConfig sandbox_config = 17; + * + * @return The sandboxConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.SandboxConfig getSandboxConfig() { + return sandboxConfig_ == null + ? com.google.container.v1beta1.SandboxConfig.getDefaultInstance() + : sandboxConfig_; + } + /** + * + * + *
+   * Sandbox configuration for this node.
+   * 
+ * + * .google.container.v1beta1.SandboxConfig sandbox_config = 17; + */ + @java.lang.Override + public com.google.container.v1beta1.SandboxConfigOrBuilder getSandboxConfigOrBuilder() { + return getSandboxConfig(); + } + + public static final int NODE_GROUP_FIELD_NUMBER = 18; + private volatile java.lang.Object nodeGroup_; + /** + * + * + *
+   * Setting this field will assign instances of this
+   * pool to run on the specified node group. This is useful for running
+   * workloads on [sole tenant
+   * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
+   * 
+ * + * string node_group = 18; + * + * @return The nodeGroup. + */ + @java.lang.Override + public java.lang.String getNodeGroup() { + java.lang.Object ref = nodeGroup_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeGroup_ = s; + return s; + } + } + /** + * + * + *
+   * Setting this field will assign instances of this
+   * pool to run on the specified node group. This is useful for running
+   * workloads on [sole tenant
+   * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
+   * 
+ * + * string node_group = 18; + * + * @return The bytes for nodeGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNodeGroupBytes() { + java.lang.Object ref = nodeGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESERVATION_AFFINITY_FIELD_NUMBER = 19; + private com.google.container.v1beta1.ReservationAffinity reservationAffinity_; + /** + * + * + *
+   * The optional reservation affinity. Setting this field will apply
+   * the specified [Zonal Compute
+   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+   * to this node pool.
+   * 
+ * + * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; + * + * @return Whether the reservationAffinity field is set. + */ + @java.lang.Override + public boolean hasReservationAffinity() { + return reservationAffinity_ != null; + } + /** + * + * + *
+   * The optional reservation affinity. Setting this field will apply
+   * the specified [Zonal Compute
+   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+   * to this node pool.
+   * 
+ * + * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; + * + * @return The reservationAffinity. + */ + @java.lang.Override + public com.google.container.v1beta1.ReservationAffinity getReservationAffinity() { + return reservationAffinity_ == null + ? com.google.container.v1beta1.ReservationAffinity.getDefaultInstance() + : reservationAffinity_; + } + /** + * + * + *
+   * The optional reservation affinity. Setting this field will apply
+   * the specified [Zonal Compute
+   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+   * to this node pool.
+   * 
+ * + * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; + */ + @java.lang.Override + public com.google.container.v1beta1.ReservationAffinityOrBuilder + getReservationAffinityOrBuilder() { + return getReservationAffinity(); + } + + public static final int DISK_TYPE_FIELD_NUMBER = 12; + private volatile java.lang.Object diskType_; + /** + * + * + *
+   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+   * 'pd-balanced')
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 12; + * + * @return The diskType. + */ + @java.lang.Override + public java.lang.String getDiskType() { + java.lang.Object ref = diskType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diskType_ = s; + return s; + } + } + /** + * + * + *
+   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+   * 'pd-balanced')
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 12; + * + * @return The bytes for diskType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDiskTypeBytes() { + java.lang.Object ref = diskType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + diskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MIN_CPU_PLATFORM_FIELD_NUMBER = 13; + private volatile java.lang.Object minCpuPlatform_; + /** + * + * + *
+   * Minimum CPU platform to be used by this instance. The instance may be
+   * scheduled on the specified or newer CPU platform. Applicable values are the
+   * friendly names of CPU platforms, such as
+   * `minCpuPlatform: "Intel Haswell"` or
+   * `minCpuPlatform: "Intel Sandy Bridge"`. For more
+   * information, read [how to specify min CPU
+   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
+   * 
+ * + * string min_cpu_platform = 13; + * + * @return The minCpuPlatform. + */ + @java.lang.Override + public java.lang.String getMinCpuPlatform() { + java.lang.Object ref = minCpuPlatform_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + minCpuPlatform_ = s; + return s; + } + } + /** + * + * + *
+   * Minimum CPU platform to be used by this instance. The instance may be
+   * scheduled on the specified or newer CPU platform. Applicable values are the
+   * friendly names of CPU platforms, such as
+   * `minCpuPlatform: "Intel Haswell"` or
+   * `minCpuPlatform: "Intel Sandy Bridge"`. For more
+   * information, read [how to specify min CPU
+   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
+   * 
+ * + * string min_cpu_platform = 13; + * + * @return The bytes for minCpuPlatform. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMinCpuPlatformBytes() { + java.lang.Object ref = minCpuPlatform_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + minCpuPlatform_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKLOAD_METADATA_CONFIG_FIELD_NUMBER = 14; + private com.google.container.v1beta1.WorkloadMetadataConfig workloadMetadataConfig_; + /** + * + * + *
+   * The workload metadata configuration for this node.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return Whether the workloadMetadataConfig field is set. + */ + @java.lang.Override + public boolean hasWorkloadMetadataConfig() { + return workloadMetadataConfig_ != null; + } + /** + * + * + *
+   * The workload metadata configuration for this node.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return The workloadMetadataConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.WorkloadMetadataConfig getWorkloadMetadataConfig() { + return workloadMetadataConfig_ == null + ? com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance() + : workloadMetadataConfig_; + } + /** + * + * + *
+   * The workload metadata configuration for this node.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + @java.lang.Override + public com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder + getWorkloadMetadataConfigOrBuilder() { + return getWorkloadMetadataConfig(); + } + + public static final int TAINTS_FIELD_NUMBER = 15; + private java.util.List taints_; + /** + * + * + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + @java.lang.Override + public java.util.List getTaintsList() { + return taints_; + } + /** + * + * + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + @java.lang.Override + public java.util.List + getTaintsOrBuilderList() { + return taints_; + } + /** + * + * + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + @java.lang.Override + public int getTaintsCount() { + return taints_.size(); + } + /** + * + * + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + @java.lang.Override + public com.google.container.v1beta1.NodeTaint getTaints(int index) { + return taints_.get(index); + } + /** + * + * + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + @java.lang.Override + public com.google.container.v1beta1.NodeTaintOrBuilder getTaintsOrBuilder(int index) { + return taints_.get(index); + } + + public static final int BOOT_DISK_KMS_KEY_FIELD_NUMBER = 23; + private volatile java.lang.Object bootDiskKmsKey_; + /** + * + * + *
+   * The Customer Managed Encryption Key used to encrypt the boot disk attached
+   * to each node in the node pool. This should be of the form
+   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+   * For more information about protecting resources with Cloud KMS Keys please
+   * see:
+   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+   * 
+ * + * string boot_disk_kms_key = 23; + * + * @return The bootDiskKmsKey. + */ + @java.lang.Override + public java.lang.String getBootDiskKmsKey() { + java.lang.Object ref = bootDiskKmsKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bootDiskKmsKey_ = s; + return s; + } + } + /** + * + * + *
+   * The Customer Managed Encryption Key used to encrypt the boot disk attached
+   * to each node in the node pool. This should be of the form
+   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+   * For more information about protecting resources with Cloud KMS Keys please
+   * see:
+   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+   * 
+ * + * string boot_disk_kms_key = 23; + * + * @return The bytes for bootDiskKmsKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBootDiskKmsKeyBytes() { + java.lang.Object ref = bootDiskKmsKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bootDiskKmsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 20; + private com.google.container.v1beta1.ShieldedInstanceConfig shieldedInstanceConfig_; + /** + * + * + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; + * + * @return Whether the shieldedInstanceConfig field is set. + */ + @java.lang.Override + public boolean hasShieldedInstanceConfig() { + return shieldedInstanceConfig_ != null; + } + /** + * + * + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; + * + * @return The shieldedInstanceConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.ShieldedInstanceConfig getShieldedInstanceConfig() { + return shieldedInstanceConfig_ == null + ? com.google.container.v1beta1.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; + } + /** + * + * + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + @java.lang.Override + public com.google.container.v1beta1.ShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { + return getShieldedInstanceConfig(); + } + + public static final int LINUX_NODE_CONFIG_FIELD_NUMBER = 21; + private com.google.container.v1beta1.LinuxNodeConfig linuxNodeConfig_; + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; + * + * @return Whether the linuxNodeConfig field is set. + */ + @java.lang.Override + public boolean hasLinuxNodeConfig() { + return linuxNodeConfig_ != null; + } + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; + * + * @return The linuxNodeConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.LinuxNodeConfig getLinuxNodeConfig() { + return linuxNodeConfig_ == null + ? com.google.container.v1beta1.LinuxNodeConfig.getDefaultInstance() + : linuxNodeConfig_; + } + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; + */ + @java.lang.Override + public com.google.container.v1beta1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder() { + return getLinuxNodeConfig(); + } + + public static final int KUBELET_CONFIG_FIELD_NUMBER = 22; + private com.google.container.v1beta1.NodeKubeletConfig kubeletConfig_; + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; + * + * @return Whether the kubeletConfig field is set. + */ + @java.lang.Override + public boolean hasKubeletConfig() { + return kubeletConfig_ != null; + } + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; + * + * @return The kubeletConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.NodeKubeletConfig getKubeletConfig() { + return kubeletConfig_ == null + ? com.google.container.v1beta1.NodeKubeletConfig.getDefaultInstance() + : kubeletConfig_; + } + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; + */ + @java.lang.Override + public com.google.container.v1beta1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder() { + return getKubeletConfig(); + } + + public static final int EPHEMERAL_STORAGE_CONFIG_FIELD_NUMBER = 24; + private com.google.container.v1beta1.EphemeralStorageConfig ephemeralStorageConfig_; + /** + * + * + *
+   * Parameters for the ephemeral storage filesystem.
+   * If unspecified, ephemeral storage is backed by the boot disk.
+   * 
+ * + * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; + * + * @return Whether the ephemeralStorageConfig field is set. + */ + @java.lang.Override + public boolean hasEphemeralStorageConfig() { + return ephemeralStorageConfig_ != null; + } + /** + * + * + *
+   * Parameters for the ephemeral storage filesystem.
+   * If unspecified, ephemeral storage is backed by the boot disk.
+   * 
+ * + * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; + * + * @return The ephemeralStorageConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.EphemeralStorageConfig getEphemeralStorageConfig() { + return ephemeralStorageConfig_ == null + ? com.google.container.v1beta1.EphemeralStorageConfig.getDefaultInstance() + : ephemeralStorageConfig_; + } + /** + * + * + *
+   * Parameters for the ephemeral storage filesystem.
+   * If unspecified, ephemeral storage is backed by the boot disk.
+   * 
+ * + * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; + */ + @java.lang.Override + public com.google.container.v1beta1.EphemeralStorageConfigOrBuilder + getEphemeralStorageConfigOrBuilder() { + return getEphemeralStorageConfig(); + } + + public static final int GCFS_CONFIG_FIELD_NUMBER = 25; + private com.google.container.v1beta1.GcfsConfig gcfsConfig_; + /** + * + * + *
+   * GCFS (Google Container File System) configs.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + * + * @return Whether the gcfsConfig field is set. + */ + @java.lang.Override + public boolean hasGcfsConfig() { + return gcfsConfig_ != null; + } + /** + * + * + *
+   * GCFS (Google Container File System) configs.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + * + * @return The gcfsConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.GcfsConfig getGcfsConfig() { + return gcfsConfig_ == null + ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() + : gcfsConfig_; + } + /** + * + * + *
+   * GCFS (Google Container File System) configs.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + */ + @java.lang.Override + public com.google.container.v1beta1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { + return getGcfsConfig(); + } + + public static final int ADVANCED_MACHINE_FEATURES_FIELD_NUMBER = 26; + private com.google.container.v1beta1.AdvancedMachineFeatures advancedMachineFeatures_; + /** + * + * + *
+   * Advanced features for the Compute Engine VM.
+   * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + * + * @return Whether the advancedMachineFeatures field is set. + */ + @java.lang.Override + public boolean hasAdvancedMachineFeatures() { + return advancedMachineFeatures_ != null; + } + /** + * + * + *
+   * Advanced features for the Compute Engine VM.
+   * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + * + * @return The advancedMachineFeatures. + */ + @java.lang.Override + public com.google.container.v1beta1.AdvancedMachineFeatures getAdvancedMachineFeatures() { + return advancedMachineFeatures_ == null + ? com.google.container.v1beta1.AdvancedMachineFeatures.getDefaultInstance() + : advancedMachineFeatures_; + } + /** + * + * + *
+   * Advanced features for the Compute Engine VM.
+   * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + @java.lang.Override + public com.google.container.v1beta1.AdvancedMachineFeaturesOrBuilder + getAdvancedMachineFeaturesOrBuilder() { + return getAdvancedMachineFeatures(); + } + + public static final int GVNIC_FIELD_NUMBER = 29; + private com.google.container.v1beta1.VirtualNIC gvnic_; + /** + * + * + *
+   * 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 gvnic_ != null; + } + /** + * + * + *
+   * 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 getGvnic(); + } + + public static final int SPOT_FIELD_NUMBER = 32; + private boolean spot_; + /** + * + * + *
+   * Spot flag for enabling Spot VM, which is a rebrand of
+   * the existing preemptible flag.
+   * 
+ * + * bool spot = 32; + * + * @return The spot. + */ + @java.lang.Override + public boolean getSpot() { + return spot_; + } + + 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 confidentialNodes_ != null; + } + /** + * + * + *
+   * 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 getConfidentialNodes(); + } + + 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, + ""); + } + + 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 java.lang.String getResourceLabelsOrDefault( + java.lang.String key, 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 loggingConfig_ != null; + } + /** + * + * + *
+   * 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 getLoggingConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 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 (workloadMetadataConfig_ != null) { + output.writeMessage(14, getWorkloadMetadataConfig()); + } + for (int i = 0; i < taints_.size(); i++) { + output.writeMessage(15, taints_.get(i)); + } + if (sandboxConfig_ != null) { + output.writeMessage(17, getSandboxConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeGroup_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 18, nodeGroup_); + } + if (reservationAffinity_ != null) { + output.writeMessage(19, getReservationAffinity()); + } + if (shieldedInstanceConfig_ != null) { + output.writeMessage(20, getShieldedInstanceConfig()); + } + if (linuxNodeConfig_ != null) { + output.writeMessage(21, getLinuxNodeConfig()); + } + if (kubeletConfig_ != null) { + output.writeMessage(22, getKubeletConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootDiskKmsKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 23, bootDiskKmsKey_); + } + if (ephemeralStorageConfig_ != null) { + output.writeMessage(24, getEphemeralStorageConfig()); + } + if (gcfsConfig_ != null) { + output.writeMessage(25, getGcfsConfig()); + } + if (advancedMachineFeatures_ != null) { + output.writeMessage(26, getAdvancedMachineFeatures()); + } + if (gvnic_ != null) { + output.writeMessage(29, getGvnic()); + } + if (spot_ != false) { + output.writeBool(32, spot_); + } + if (confidentialNodes_ != null) { + output.writeMessage(35, getConfidentialNodes()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetResourceLabels(), ResourceLabelsDefaultEntryHolder.defaultEntry, 37); + if (loggingConfig_ != null) { + output.writeMessage(38, getLoggingConfig()); + } + getUnknownFields().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 (workloadMetadataConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(14, getWorkloadMetadataConfig()); + } + for (int i = 0; i < taints_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, taints_.get(i)); + } + if (sandboxConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getSandboxConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeGroup_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, nodeGroup_); + } + if (reservationAffinity_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(19, getReservationAffinity()); + } + if (shieldedInstanceConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(20, getShieldedInstanceConfig()); + } + if (linuxNodeConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getLinuxNodeConfig()); + } + if (kubeletConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getKubeletConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootDiskKmsKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, bootDiskKmsKey_); + } + if (ephemeralStorageConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(24, getEphemeralStorageConfig()); + } + if (gcfsConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getGcfsConfig()); + } + if (advancedMachineFeatures_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 26, getAdvancedMachineFeatures()); + } + if (gvnic_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getGvnic()); + } + if (spot_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(32, spot_); + } + if (confidentialNodes_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(35, getConfidentialNodes()); + } + 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 (loggingConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(38, 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.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 (!internalGetResourceLabels().equals(other.internalGetResourceLabels())) 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(); + 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 (!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(); + } + 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.MapField internalGetMapField(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.MapField internalGetMutableMapField(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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + machineType_ = ""; + + diskSizeGb_ = 0; + + oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + serviceAccount_ = ""; + + internalGetMutableMetadata().clear(); + imageType_ = ""; + + internalGetMutableLabels().clear(); + localSsdCount_ = 0; + + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + preemptible_ = false; + + if (acceleratorsBuilder_ == null) { + accelerators_ = java.util.Collections.emptyList(); + } else { + accelerators_ = null; + acceleratorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (sandboxConfigBuilder_ == null) { + sandboxConfig_ = null; + } else { + sandboxConfig_ = null; + sandboxConfigBuilder_ = null; + } + nodeGroup_ = ""; + + if (reservationAffinityBuilder_ == null) { + reservationAffinity_ = null; + } else { + reservationAffinity_ = null; + reservationAffinityBuilder_ = null; + } + diskType_ = ""; + + minCpuPlatform_ = ""; + + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfig_ = null; + } else { + workloadMetadataConfig_ = null; + workloadMetadataConfigBuilder_ = null; + } + if (taintsBuilder_ == null) { + taints_ = java.util.Collections.emptyList(); + } else { + taints_ = null; + taintsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + bootDiskKmsKey_ = ""; + + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfig_ = null; + } else { + shieldedInstanceConfig_ = null; + shieldedInstanceConfigBuilder_ = null; + } + if (linuxNodeConfigBuilder_ == null) { + linuxNodeConfig_ = null; + } else { + linuxNodeConfig_ = null; + linuxNodeConfigBuilder_ = null; + } + if (kubeletConfigBuilder_ == null) { + kubeletConfig_ = null; + } else { + kubeletConfig_ = null; + kubeletConfigBuilder_ = null; + } + if (ephemeralStorageConfigBuilder_ == null) { + ephemeralStorageConfig_ = null; + } else { + ephemeralStorageConfig_ = null; + ephemeralStorageConfigBuilder_ = null; + } + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = null; + } else { + gcfsConfig_ = null; + gcfsConfigBuilder_ = null; + } + if (advancedMachineFeaturesBuilder_ == null) { + advancedMachineFeatures_ = null; + } else { + advancedMachineFeatures_ = null; + advancedMachineFeaturesBuilder_ = null; + } + if (gvnicBuilder_ == null) { + gvnic_ = null; + } else { + gvnic_ = null; + gvnicBuilder_ = null; + } + spot_ = false; + + if (confidentialNodesBuilder_ == null) { + confidentialNodes_ = null; + } else { + confidentialNodes_ = null; + confidentialNodesBuilder_ = null; + } + internalGetMutableResourceLabels().clear(); + if (loggingConfigBuilder_ == null) { + loggingConfig_ = null; + } else { + loggingConfig_ = null; + loggingConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodeConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.NodeConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NodeConfig build() { + com.google.container.v1beta1.NodeConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeConfig buildPartial() { + com.google.container.v1beta1.NodeConfig result = + new com.google.container.v1beta1.NodeConfig(this); + int from_bitField0_ = bitField0_; + result.machineType_ = machineType_; + result.diskSizeGb_ = diskSizeGb_; + if (((bitField0_ & 0x00000001) != 0)) { + oauthScopes_ = oauthScopes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.oauthScopes_ = oauthScopes_; + result.serviceAccount_ = serviceAccount_; + result.metadata_ = internalGetMetadata(); + result.metadata_.makeImmutable(); + result.imageType_ = imageType_; + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + result.localSsdCount_ = localSsdCount_; + if (((bitField0_ & 0x00000008) != 0)) { + tags_ = tags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.tags_ = tags_; + result.preemptible_ = preemptible_; + if (acceleratorsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + accelerators_ = java.util.Collections.unmodifiableList(accelerators_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.accelerators_ = accelerators_; + } else { + result.accelerators_ = acceleratorsBuilder_.build(); + } + if (sandboxConfigBuilder_ == null) { + result.sandboxConfig_ = sandboxConfig_; + } else { + result.sandboxConfig_ = sandboxConfigBuilder_.build(); + } + result.nodeGroup_ = nodeGroup_; + if (reservationAffinityBuilder_ == null) { + result.reservationAffinity_ = reservationAffinity_; + } else { + result.reservationAffinity_ = reservationAffinityBuilder_.build(); + } + result.diskType_ = diskType_; + result.minCpuPlatform_ = minCpuPlatform_; + if (workloadMetadataConfigBuilder_ == null) { + result.workloadMetadataConfig_ = workloadMetadataConfig_; + } else { + result.workloadMetadataConfig_ = workloadMetadataConfigBuilder_.build(); + } + if (taintsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + taints_ = java.util.Collections.unmodifiableList(taints_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.taints_ = taints_; + } else { + result.taints_ = taintsBuilder_.build(); + } + result.bootDiskKmsKey_ = bootDiskKmsKey_; + if (shieldedInstanceConfigBuilder_ == null) { + result.shieldedInstanceConfig_ = shieldedInstanceConfig_; + } else { + result.shieldedInstanceConfig_ = shieldedInstanceConfigBuilder_.build(); + } + if (linuxNodeConfigBuilder_ == null) { + result.linuxNodeConfig_ = linuxNodeConfig_; + } else { + result.linuxNodeConfig_ = linuxNodeConfigBuilder_.build(); + } + if (kubeletConfigBuilder_ == null) { + result.kubeletConfig_ = kubeletConfig_; + } else { + result.kubeletConfig_ = kubeletConfigBuilder_.build(); + } + if (ephemeralStorageConfigBuilder_ == null) { + result.ephemeralStorageConfig_ = ephemeralStorageConfig_; + } else { + result.ephemeralStorageConfig_ = ephemeralStorageConfigBuilder_.build(); + } + if (gcfsConfigBuilder_ == null) { + result.gcfsConfig_ = gcfsConfig_; + } else { + result.gcfsConfig_ = gcfsConfigBuilder_.build(); + } + if (advancedMachineFeaturesBuilder_ == null) { + result.advancedMachineFeatures_ = advancedMachineFeatures_; + } else { + result.advancedMachineFeatures_ = advancedMachineFeaturesBuilder_.build(); + } + if (gvnicBuilder_ == null) { + result.gvnic_ = gvnic_; + } else { + result.gvnic_ = gvnicBuilder_.build(); + } + result.spot_ = spot_; + if (confidentialNodesBuilder_ == null) { + result.confidentialNodes_ = confidentialNodes_; + } else { + result.confidentialNodes_ = confidentialNodesBuilder_.build(); + } + result.resourceLabels_ = internalGetResourceLabels(); + result.resourceLabels_.makeImmutable(); + if (loggingConfigBuilder_ == null) { + result.loggingConfig_ = loggingConfig_; + } else { + result.loggingConfig_ = loggingConfigBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.NodeConfig) { + return mergeFrom((com.google.container.v1beta1.NodeConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NodeConfig other) { + if (other == com.google.container.v1beta1.NodeConfig.getDefaultInstance()) return this; + if (!other.getMachineType().isEmpty()) { + machineType_ = other.machineType_; + onChanged(); + } + if (other.getDiskSizeGb() != 0) { + setDiskSizeGb(other.getDiskSizeGb()); + } + if (!other.oauthScopes_.isEmpty()) { + if (oauthScopes_.isEmpty()) { + oauthScopes_ = other.oauthScopes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOauthScopesIsMutable(); + oauthScopes_.addAll(other.oauthScopes_); + } + onChanged(); + } + if (!other.getServiceAccount().isEmpty()) { + serviceAccount_ = other.serviceAccount_; + onChanged(); + } + internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); + if (!other.getImageType().isEmpty()) { + imageType_ = other.imageType_; + onChanged(); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + if (other.getLocalSsdCount() != 0) { + setLocalSsdCount(other.getLocalSsdCount()); + } + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + onChanged(); + } + if (other.getPreemptible() != false) { + setPreemptible(other.getPreemptible()); + } + if (acceleratorsBuilder_ == null) { + if (!other.accelerators_.isEmpty()) { + if (accelerators_.isEmpty()) { + accelerators_ = other.accelerators_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureAcceleratorsIsMutable(); + accelerators_.addAll(other.accelerators_); + } + onChanged(); + } + } else { + if (!other.accelerators_.isEmpty()) { + if (acceleratorsBuilder_.isEmpty()) { + acceleratorsBuilder_.dispose(); + acceleratorsBuilder_ = null; + accelerators_ = other.accelerators_; + bitField0_ = (bitField0_ & ~0x00000010); + acceleratorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAcceleratorsFieldBuilder() + : null; + } else { + acceleratorsBuilder_.addAllMessages(other.accelerators_); + } + } + } + if (other.hasSandboxConfig()) { + mergeSandboxConfig(other.getSandboxConfig()); + } + if (!other.getNodeGroup().isEmpty()) { + nodeGroup_ = other.nodeGroup_; + onChanged(); + } + if (other.hasReservationAffinity()) { + mergeReservationAffinity(other.getReservationAffinity()); + } + if (!other.getDiskType().isEmpty()) { + diskType_ = other.diskType_; + onChanged(); + } + if (!other.getMinCpuPlatform().isEmpty()) { + minCpuPlatform_ = other.minCpuPlatform_; + onChanged(); + } + if (other.hasWorkloadMetadataConfig()) { + mergeWorkloadMetadataConfig(other.getWorkloadMetadataConfig()); + } + if (taintsBuilder_ == null) { + if (!other.taints_.isEmpty()) { + if (taints_.isEmpty()) { + taints_ = other.taints_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureTaintsIsMutable(); + taints_.addAll(other.taints_); + } + onChanged(); + } + } else { + if (!other.taints_.isEmpty()) { + if (taintsBuilder_.isEmpty()) { + taintsBuilder_.dispose(); + taintsBuilder_ = null; + taints_ = other.taints_; + bitField0_ = (bitField0_ & ~0x00000020); + taintsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTaintsFieldBuilder() + : null; + } else { + taintsBuilder_.addAllMessages(other.taints_); + } + } + } + if (!other.getBootDiskKmsKey().isEmpty()) { + bootDiskKmsKey_ = other.bootDiskKmsKey_; + onChanged(); + } + if (other.hasShieldedInstanceConfig()) { + mergeShieldedInstanceConfig(other.getShieldedInstanceConfig()); + } + if (other.hasLinuxNodeConfig()) { + mergeLinuxNodeConfig(other.getLinuxNodeConfig()); + } + if (other.hasKubeletConfig()) { + mergeKubeletConfig(other.getKubeletConfig()); + } + if (other.hasEphemeralStorageConfig()) { + mergeEphemeralStorageConfig(other.getEphemeralStorageConfig()); + } + 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()); + } + internalGetMutableResourceLabels().mergeFrom(other.internalGetResourceLabels()); + 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: + { + machineType_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + diskSizeGb_ = input.readInt32(); + + 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()); + break; + } // case 34 + case 42: + { + imageType_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 50 + case 56: + { + localSsdCount_ = input.readInt32(); + + break; + } // case 56 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagsIsMutable(); + tags_.add(s); + break; + } // case 66 + case 74: + { + serviceAccount_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 80: + { + preemptible_ = input.readBool(); + + 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(); + + break; + } // case 98 + case 106: + { + minCpuPlatform_ = input.readStringRequireUtf8(); + + break; + } // case 106 + case 114: + { + input.readMessage( + getWorkloadMetadataConfigFieldBuilder().getBuilder(), extensionRegistry); + + 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); + + break; + } // case 138 + case 146: + { + nodeGroup_ = input.readStringRequireUtf8(); + + break; + } // case 146 + case 154: + { + input.readMessage( + getReservationAffinityFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 154 + case 162: + { + input.readMessage( + getShieldedInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 162 + case 170: + { + input.readMessage(getLinuxNodeConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 170 + case 178: + { + input.readMessage(getKubeletConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 178 + case 186: + { + bootDiskKmsKey_ = input.readStringRequireUtf8(); + + break; + } // case 186 + case 194: + { + input.readMessage( + getEphemeralStorageConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 194 + case 202: + { + input.readMessage(getGcfsConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 202 + case 210: + { + input.readMessage( + getAdvancedMachineFeaturesFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 210 + case 234: + { + input.readMessage(getGvnicFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 234 + case 256: + { + spot_ = input.readBool(); + + break; + } // case 256 + case 282: + { + input.readMessage( + getConfidentialNodesFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 282 + case 298: + { + com.google.protobuf.MapEntry resourceLabels__ = + input.readMessage( + ResourceLabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableResourceLabels() + .getMutableMap() + .put(resourceLabels__.getKey(), resourceLabels__.getValue()); + break; + } // case 298 + case 306: + { + input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 306 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // 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 machineType_ = ""; + /** + * + * + *
+     * The name of a Google Compute Engine [machine
+     * type](https://cloud.google.com/compute/docs/machine-types).
+     * If unspecified, the default machine type is
+     * `e2-medium`.
+     * 
+ * + * string machine_type = 1; + * + * @return The machineType. + */ + public java.lang.String getMachineType() { + java.lang.Object ref = machineType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + machineType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of a Google Compute Engine [machine
+     * type](https://cloud.google.com/compute/docs/machine-types).
+     * If unspecified, the default machine type is
+     * `e2-medium`.
+     * 
+ * + * string machine_type = 1; + * + * @return The bytes for machineType. + */ + public com.google.protobuf.ByteString getMachineTypeBytes() { + java.lang.Object ref = machineType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + machineType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of a Google Compute Engine [machine
+     * type](https://cloud.google.com/compute/docs/machine-types).
+     * If unspecified, the default machine type is
+     * `e2-medium`.
+     * 
+ * + * string machine_type = 1; + * + * @param value The machineType to set. + * @return This builder for chaining. + */ + public Builder setMachineType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + machineType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of a Google Compute Engine [machine
+     * type](https://cloud.google.com/compute/docs/machine-types).
+     * If unspecified, the default machine type is
+     * `e2-medium`.
+     * 
+ * + * string machine_type = 1; + * + * @return This builder for chaining. + */ + public Builder clearMachineType() { + + machineType_ = getDefaultInstance().getMachineType(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of a Google Compute Engine [machine
+     * type](https://cloud.google.com/compute/docs/machine-types).
+     * If unspecified, the default machine type is
+     * `e2-medium`.
+     * 
+ * + * string machine_type = 1; + * + * @param value The bytes for machineType to set. + * @return This builder for chaining. + */ + public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + machineType_ = value; + onChanged(); + return this; + } + + private int diskSizeGb_; + /** + * + * + *
+     * Size of the disk attached to each node, specified in GB.
+     * The smallest allowed disk size is 10GB.
+     * If unspecified, the default disk size is 100GB.
+     * 
+ * + * int32 disk_size_gb = 2; + * + * @return The diskSizeGb. + */ + @java.lang.Override + public int getDiskSizeGb() { + return diskSizeGb_; + } + /** + * + * + *
+     * Size of the disk attached to each node, specified in GB.
+     * The smallest allowed disk size is 10GB.
+     * If unspecified, the default disk size is 100GB.
+     * 
+ * + * int32 disk_size_gb = 2; + * + * @param value The diskSizeGb to set. + * @return This builder for chaining. + */ + public Builder setDiskSizeGb(int value) { + + diskSizeGb_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Size of the disk attached to each node, specified in GB.
+     * The smallest allowed disk size is 10GB.
+     * If unspecified, the default disk size is 100GB.
+     * 
+ * + * int32 disk_size_gb = 2; + * + * @return This builder for chaining. + */ + public Builder clearDiskSizeGb() { + + diskSizeGb_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList oauthScopes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureOauthScopesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + oauthScopes_ = new com.google.protobuf.LazyStringArrayList(oauthScopes_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + * + * @return A list containing the oauthScopes. + */ + public com.google.protobuf.ProtocolStringList getOauthScopesList() { + return oauthScopes_.getUnmodifiableView(); + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + * + * @return The count of oauthScopes. + */ + public int getOauthScopesCount() { + return oauthScopes_.size(); + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + * + * @param index The index of the element to return. + * @return The oauthScopes at the given index. + */ + public java.lang.String getOauthScopes(int index) { + return oauthScopes_.get(index); + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + * + * @param index The index of the value to return. + * @return The bytes of the oauthScopes at the given index. + */ + public com.google.protobuf.ByteString getOauthScopesBytes(int index) { + return oauthScopes_.getByteString(index); + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + * + * @param index The index to set the value at. + * @param value The oauthScopes to set. + * @return This builder for chaining. + */ + public Builder setOauthScopes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOauthScopesIsMutable(); + oauthScopes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + * + * @param value The oauthScopes to add. + * @return This builder for chaining. + */ + public Builder addOauthScopes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOauthScopesIsMutable(); + oauthScopes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + * + * @param values The oauthScopes to add. + * @return This builder for chaining. + */ + public Builder addAllOauthScopes(java.lang.Iterable values) { + ensureOauthScopesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, oauthScopes_); + onChanged(); + return this; + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + * + * @return This builder for chaining. + */ + public Builder clearOauthScopes() { + oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + * + * @param value The bytes of the oauthScopes to add. + * @return This builder for chaining. + */ + public Builder addOauthScopesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureOauthScopesIsMutable(); + oauthScopes_.add(value); + onChanged(); + return this; + } + + private java.lang.Object serviceAccount_ = ""; + /** + * + * + *
+     * The Google Cloud Platform Service Account to be used by the node VMs.
+     * Specify the email address of the Service Account; otherwise, if no Service
+     * Account is specified, the "default" service account is used.
+     * 
+ * + * string service_account = 9; + * + * @return The serviceAccount. + */ + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The Google Cloud Platform Service Account to be used by the node VMs.
+     * Specify the email address of the Service Account; otherwise, if no Service
+     * Account is specified, the "default" service account is used.
+     * 
+ * + * string service_account = 9; + * + * @return The bytes for serviceAccount. + */ + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The Google Cloud Platform Service Account to be used by the node VMs.
+     * Specify the email address of the Service Account; otherwise, if no Service
+     * Account is specified, the "default" service account is used.
+     * 
+ * + * string service_account = 9; + * + * @param value The serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceAccount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The Google Cloud Platform Service Account to be used by the node VMs.
+     * Specify the email address of the Service Account; otherwise, if no Service
+     * Account is specified, the "default" service account is used.
+     * 
+ * + * string service_account = 9; + * + * @return This builder for chaining. + */ + public Builder clearServiceAccount() { + + serviceAccount_ = getDefaultInstance().getServiceAccount(); + onChanged(); + return this; + } + /** + * + * + *
+     * The Google Cloud Platform Service Account to be used by the node VMs.
+     * Specify the email address of the Service Account; otherwise, if no Service
+     * Account is specified, the "default" service account is used.
+     * 
+ * + * string service_account = 9; + * + * @param value The bytes for serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serviceAccount_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField metadata_; + + private com.google.protobuf.MapField internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + + private com.google.protobuf.MapField + internalGetMutableMetadata() { + onChanged(); + ; + if (metadata_ == null) { + metadata_ = + com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry); + } + if (!metadata_.isMutable()) { + metadata_ = metadata_.copy(); + } + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + * + * + *
+     * The metadata key/value pairs assigned to instances in the cluster.
+     * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
+     * in length. These are reflected as part of a URL in the metadata server.
+     * Additionally, to avoid ambiguity, keys must not conflict with any other
+     * metadata keys for the project or be one of the reserved keys:
+     *  - "cluster-location"
+     *  - "cluster-name"
+     *  - "cluster-uid"
+     *  - "configure-sh"
+     *  - "containerd-configure-sh"
+     *  - "enable-oslogin"
+     *  - "gci-ensure-gke-docker"
+     *  - "gci-metrics-enabled"
+     *  - "gci-update-strategy"
+     *  - "instance-template"
+     *  - "kube-env"
+     *  - "startup-script"
+     *  - "user-data"
+     *  - "disable-address-manager"
+     *  - "windows-startup-script-ps1"
+     *  - "common-psm1"
+     *  - "k8s-node-setup-psm1"
+     *  - "install-ssh-psm1"
+     *  - "user-profile-psm1"
+     * 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 java.lang.String getMetadataOrDefault( + java.lang.String key, 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() { + 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() { + 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); + 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); + return this; + } + + private java.lang.Object imageType_ = ""; + /** + * + * + *
+     * The image type to use for this node. Note that for a given image type,
+     * the latest version of it will be used.
+     * 
+ * + * string image_type = 5; + * + * @return The imageType. + */ + public java.lang.String getImageType() { + java.lang.Object ref = imageType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The image type to use for this node. Note that for a given image type,
+     * the latest version of it will be used.
+     * 
+ * + * string image_type = 5; + * + * @return The bytes for imageType. + */ + public com.google.protobuf.ByteString getImageTypeBytes() { + java.lang.Object ref = imageType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The image type to use for this node. Note that for a given image type,
+     * the latest version of it will be used.
+     * 
+ * + * string image_type = 5; + * + * @param value The imageType to set. + * @return This builder for chaining. + */ + public Builder setImageType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + imageType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The image type to use for this node. Note that for a given image type,
+     * the latest version of it will be used.
+     * 
+ * + * string image_type = 5; + * + * @return This builder for chaining. + */ + public Builder clearImageType() { + + imageType_ = getDefaultInstance().getImageType(); + onChanged(); + return this; + } + /** + * + * + *
+     * The image type to use for this node. Note that for a given image type,
+     * the latest version of it will be used.
+     * 
+ * + * string image_type = 5; + * + * @param value The bytes for imageType to set. + * @return This builder for chaining. + */ + public Builder setImageTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + imageType_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged(); + ; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+     * These will added in addition to any default label(s) that
+     * Kubernetes may apply to the node.
+     * In case of conflict in label keys, the applied set may differ depending on
+     * the Kubernetes version -- it's best to assume the behavior is undefined
+     * and conflicts should be avoided.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+     * 
+ * + * map<string, string> labels = 6; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new 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 java.lang.String getLabelsOrDefault( + java.lang.String key, 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() { + 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() { + 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); + return this; + } + /** + * + * + *
+     * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+     * These will added in addition to any default label(s) that
+     * Kubernetes may apply to the node.
+     * In case of conflict in label keys, the applied set may differ depending on
+     * the Kubernetes version -- it's best to assume the behavior is undefined
+     * and conflicts should be avoided.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+     * 
+ * + * map<string, string> labels = 6; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + return this; + } + + private int localSsdCount_; + /** + * + * + *
+     * The number of local SSD disks to be attached to the node.
+     * The limit for this value is dependent upon the maximum number of
+     * disks available on a machine per zone. See:
+     * https://cloud.google.com/compute/docs/disks/local-ssd
+     * for more information.
+     * 
+ * + * int32 local_ssd_count = 7; + * + * @return The localSsdCount. + */ + @java.lang.Override + public int getLocalSsdCount() { + return localSsdCount_; + } + /** + * + * + *
+     * The number of local SSD disks to be attached to the node.
+     * The limit for this value is dependent upon the maximum number of
+     * disks available on a machine per zone. See:
+     * https://cloud.google.com/compute/docs/disks/local-ssd
+     * for more information.
+     * 
+ * + * int32 local_ssd_count = 7; + * + * @param value The localSsdCount to set. + * @return This builder for chaining. + */ + public Builder setLocalSsdCount(int value) { + + localSsdCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of local SSD disks to be attached to the node.
+     * The limit for this value is dependent upon the maximum number of
+     * disks available on a machine per zone. See:
+     * https://cloud.google.com/compute/docs/disks/local-ssd
+     * for more information.
+     * 
+ * + * int32 local_ssd_count = 7; + * + * @return This builder for chaining. + */ + public Builder clearLocalSsdCount() { + + localSsdCount_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList tags_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureTagsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + bitField0_ |= 0x00000008; + } + } + /** + * + * + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * + * @return A list containing the tags. + */ + public com.google.protobuf.ProtocolStringList getTagsList() { + return tags_.getUnmodifiableView(); + } + /** + * + * + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * + * @return The count of tags. + */ + public int getTagsCount() { + return tags_.size(); + } + /** + * + * + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * + * @param index The index of the element to return. + * @return The tags at the given index. + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + * + * + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + public com.google.protobuf.ByteString getTagsBytes(int index) { + return tags_.getByteString(index); + } + /** + * + * + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * + * @param index The index to set the value at. + * @param value The tags to set. + * @return This builder for chaining. + */ + public Builder setTags(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * + * @param value The tags to add. + * @return This builder for chaining. + */ + public Builder addTags(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * + * @param values The tags to add. + * @return This builder for chaining. + */ + public Builder addAllTags(java.lang.Iterable values) { + ensureTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * + * @return This builder for chaining. + */ + public Builder clearTags() { + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * + * @param value The bytes of the tags to add. + * @return This builder for chaining. + */ + public Builder addTagsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + + private boolean preemptible_; + /** + * + * + *
+     * Whether the nodes are created as preemptible VM instances. See:
+     * https://cloud.google.com/compute/docs/instances/preemptible for more
+     * inforamtion about preemptible VM instances.
+     * 
+ * + * bool preemptible = 10; + * + * @return The preemptible. + */ + @java.lang.Override + public boolean getPreemptible() { + return preemptible_; + } + /** + * + * + *
+     * Whether the nodes are created as preemptible VM instances. See:
+     * https://cloud.google.com/compute/docs/instances/preemptible for more
+     * inforamtion about preemptible VM instances.
+     * 
+ * + * bool preemptible = 10; + * + * @param value The preemptible to set. + * @return This builder for chaining. + */ + public Builder setPreemptible(boolean value) { + + preemptible_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the nodes are created as preemptible VM instances. See:
+     * https://cloud.google.com/compute/docs/instances/preemptible for more
+     * inforamtion about preemptible VM instances.
+     * 
+ * + * bool preemptible = 10; + * + * @return This builder for chaining. + */ + public Builder clearPreemptible() { + + preemptible_ = false; + onChanged(); + return this; + } + + private java.util.List accelerators_ = + java.util.Collections.emptyList(); + + private void ensureAcceleratorsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + accelerators_ = + new java.util.ArrayList(accelerators_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.AcceleratorConfig, + com.google.container.v1beta1.AcceleratorConfig.Builder, + com.google.container.v1beta1.AcceleratorConfigOrBuilder> + acceleratorsBuilder_; + + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public java.util.List getAcceleratorsList() { + if (acceleratorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(accelerators_); + } else { + return acceleratorsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public int getAcceleratorsCount() { + if (acceleratorsBuilder_ == null) { + return accelerators_.size(); + } else { + return acceleratorsBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public com.google.container.v1beta1.AcceleratorConfig getAccelerators(int index) { + if (acceleratorsBuilder_ == null) { + return accelerators_.get(index); + } else { + return acceleratorsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public Builder setAccelerators( + int index, com.google.container.v1beta1.AcceleratorConfig value) { + if (acceleratorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAcceleratorsIsMutable(); + accelerators_.set(index, value); + onChanged(); + } else { + acceleratorsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public Builder setAccelerators( + int index, com.google.container.v1beta1.AcceleratorConfig.Builder builderForValue) { + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.set(index, builderForValue.build()); + onChanged(); + } else { + acceleratorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public Builder addAccelerators(com.google.container.v1beta1.AcceleratorConfig value) { + if (acceleratorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAcceleratorsIsMutable(); + accelerators_.add(value); + onChanged(); + } else { + acceleratorsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public Builder addAccelerators( + int index, com.google.container.v1beta1.AcceleratorConfig value) { + if (acceleratorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAcceleratorsIsMutable(); + accelerators_.add(index, value); + onChanged(); + } else { + acceleratorsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public Builder addAccelerators( + com.google.container.v1beta1.AcceleratorConfig.Builder builderForValue) { + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.add(builderForValue.build()); + onChanged(); + } else { + acceleratorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public Builder addAccelerators( + int index, com.google.container.v1beta1.AcceleratorConfig.Builder builderForValue) { + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.add(index, builderForValue.build()); + onChanged(); + } else { + acceleratorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public Builder addAllAccelerators( + java.lang.Iterable values) { + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accelerators_); + onChanged(); + } else { + acceleratorsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public Builder clearAccelerators() { + if (acceleratorsBuilder_ == null) { + accelerators_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + acceleratorsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public Builder removeAccelerators(int index) { + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.remove(index); + onChanged(); + } else { + acceleratorsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public com.google.container.v1beta1.AcceleratorConfig.Builder getAcceleratorsBuilder( + int index) { + return getAcceleratorsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public com.google.container.v1beta1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder( + int index) { + if (acceleratorsBuilder_ == null) { + return accelerators_.get(index); + } else { + return acceleratorsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public java.util.List + getAcceleratorsOrBuilderList() { + if (acceleratorsBuilder_ != null) { + return acceleratorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(accelerators_); + } + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public com.google.container.v1beta1.AcceleratorConfig.Builder addAcceleratorsBuilder() { + return getAcceleratorsFieldBuilder() + .addBuilder(com.google.container.v1beta1.AcceleratorConfig.getDefaultInstance()); + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public com.google.container.v1beta1.AcceleratorConfig.Builder addAcceleratorsBuilder( + int index) { + return getAcceleratorsFieldBuilder() + .addBuilder(index, com.google.container.v1beta1.AcceleratorConfig.getDefaultInstance()); + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public java.util.List + getAcceleratorsBuilderList() { + return getAcceleratorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.AcceleratorConfig, + com.google.container.v1beta1.AcceleratorConfig.Builder, + com.google.container.v1beta1.AcceleratorConfigOrBuilder> + getAcceleratorsFieldBuilder() { + if (acceleratorsBuilder_ == null) { + acceleratorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.AcceleratorConfig, + com.google.container.v1beta1.AcceleratorConfig.Builder, + com.google.container.v1beta1.AcceleratorConfigOrBuilder>( + accelerators_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + accelerators_ = null; + } + return acceleratorsBuilder_; + } + + private com.google.container.v1beta1.SandboxConfig sandboxConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.SandboxConfig, + com.google.container.v1beta1.SandboxConfig.Builder, + com.google.container.v1beta1.SandboxConfigOrBuilder> + sandboxConfigBuilder_; + /** + * + * + *
+     * Sandbox configuration for this node.
+     * 
+ * + * .google.container.v1beta1.SandboxConfig sandbox_config = 17; + * + * @return Whether the sandboxConfig field is set. + */ + public boolean hasSandboxConfig() { + return sandboxConfigBuilder_ != null || sandboxConfig_ != null; + } + /** + * + * + *
+     * Sandbox configuration for this node.
+     * 
+ * + * .google.container.v1beta1.SandboxConfig sandbox_config = 17; + * + * @return The sandboxConfig. + */ + public com.google.container.v1beta1.SandboxConfig getSandboxConfig() { + if (sandboxConfigBuilder_ == null) { + return sandboxConfig_ == null + ? com.google.container.v1beta1.SandboxConfig.getDefaultInstance() + : sandboxConfig_; + } else { + return sandboxConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Sandbox configuration for this node.
+     * 
+ * + * .google.container.v1beta1.SandboxConfig sandbox_config = 17; + */ + public Builder setSandboxConfig(com.google.container.v1beta1.SandboxConfig value) { + if (sandboxConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sandboxConfig_ = value; + onChanged(); + } else { + sandboxConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Sandbox configuration for this node.
+     * 
+ * + * .google.container.v1beta1.SandboxConfig sandbox_config = 17; + */ + public Builder setSandboxConfig( + com.google.container.v1beta1.SandboxConfig.Builder builderForValue) { + if (sandboxConfigBuilder_ == null) { + sandboxConfig_ = builderForValue.build(); + onChanged(); + } else { + sandboxConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Sandbox configuration for this node.
+     * 
+ * + * .google.container.v1beta1.SandboxConfig sandbox_config = 17; + */ + public Builder mergeSandboxConfig(com.google.container.v1beta1.SandboxConfig value) { + if (sandboxConfigBuilder_ == null) { + if (sandboxConfig_ != null) { + sandboxConfig_ = + com.google.container.v1beta1.SandboxConfig.newBuilder(sandboxConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + sandboxConfig_ = value; + } + onChanged(); + } else { + sandboxConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Sandbox configuration for this node.
+     * 
+ * + * .google.container.v1beta1.SandboxConfig sandbox_config = 17; + */ + public Builder clearSandboxConfig() { + if (sandboxConfigBuilder_ == null) { + sandboxConfig_ = null; + onChanged(); + } else { + sandboxConfig_ = null; + sandboxConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Sandbox configuration for this node.
+     * 
+ * + * .google.container.v1beta1.SandboxConfig sandbox_config = 17; + */ + public com.google.container.v1beta1.SandboxConfig.Builder getSandboxConfigBuilder() { + + onChanged(); + return getSandboxConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Sandbox configuration for this node.
+     * 
+ * + * .google.container.v1beta1.SandboxConfig sandbox_config = 17; + */ + public com.google.container.v1beta1.SandboxConfigOrBuilder getSandboxConfigOrBuilder() { + if (sandboxConfigBuilder_ != null) { + return sandboxConfigBuilder_.getMessageOrBuilder(); + } else { + return sandboxConfig_ == null + ? com.google.container.v1beta1.SandboxConfig.getDefaultInstance() + : sandboxConfig_; + } + } + /** + * + * + *
+     * Sandbox configuration for this node.
+     * 
+ * + * .google.container.v1beta1.SandboxConfig sandbox_config = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.SandboxConfig, + com.google.container.v1beta1.SandboxConfig.Builder, + com.google.container.v1beta1.SandboxConfigOrBuilder> + getSandboxConfigFieldBuilder() { + if (sandboxConfigBuilder_ == null) { + sandboxConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.SandboxConfig, + com.google.container.v1beta1.SandboxConfig.Builder, + com.google.container.v1beta1.SandboxConfigOrBuilder>( + getSandboxConfig(), getParentForChildren(), isClean()); + sandboxConfig_ = null; + } + return sandboxConfigBuilder_; + } + + private java.lang.Object nodeGroup_ = ""; + /** + * + * + *
+     * Setting this field will assign instances of this
+     * pool to run on the specified node group. This is useful for running
+     * workloads on [sole tenant
+     * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
+     * 
+ * + * string node_group = 18; + * + * @return The nodeGroup. + */ + public java.lang.String getNodeGroup() { + java.lang.Object ref = nodeGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Setting this field will assign instances of this
+     * pool to run on the specified node group. This is useful for running
+     * workloads on [sole tenant
+     * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
+     * 
+ * + * string node_group = 18; + * + * @return The bytes for nodeGroup. + */ + public com.google.protobuf.ByteString getNodeGroupBytes() { + java.lang.Object ref = nodeGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Setting this field will assign instances of this
+     * pool to run on the specified node group. This is useful for running
+     * workloads on [sole tenant
+     * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
+     * 
+ * + * string node_group = 18; + * + * @param value The nodeGroup to set. + * @return This builder for chaining. + */ + public Builder setNodeGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeGroup_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Setting this field will assign instances of this
+     * pool to run on the specified node group. This is useful for running
+     * workloads on [sole tenant
+     * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
+     * 
+ * + * string node_group = 18; + * + * @return This builder for chaining. + */ + public Builder clearNodeGroup() { + + nodeGroup_ = getDefaultInstance().getNodeGroup(); + onChanged(); + return this; + } + /** + * + * + *
+     * Setting this field will assign instances of this
+     * pool to run on the specified node group. This is useful for running
+     * workloads on [sole tenant
+     * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
+     * 
+ * + * string node_group = 18; + * + * @param value The bytes for nodeGroup to set. + * @return This builder for chaining. + */ + public Builder setNodeGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeGroup_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.ReservationAffinity reservationAffinity_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ReservationAffinity, + com.google.container.v1beta1.ReservationAffinity.Builder, + com.google.container.v1beta1.ReservationAffinityOrBuilder> + reservationAffinityBuilder_; + /** + * + * + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; + * + * @return Whether the reservationAffinity field is set. + */ + public boolean hasReservationAffinity() { + return reservationAffinityBuilder_ != null || reservationAffinity_ != null; + } + /** + * + * + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; + * + * @return The reservationAffinity. + */ + public com.google.container.v1beta1.ReservationAffinity getReservationAffinity() { + if (reservationAffinityBuilder_ == null) { + return reservationAffinity_ == null + ? com.google.container.v1beta1.ReservationAffinity.getDefaultInstance() + : reservationAffinity_; + } else { + return reservationAffinityBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; + */ + public Builder setReservationAffinity(com.google.container.v1beta1.ReservationAffinity value) { + if (reservationAffinityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reservationAffinity_ = value; + onChanged(); + } else { + reservationAffinityBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; + */ + public Builder setReservationAffinity( + com.google.container.v1beta1.ReservationAffinity.Builder builderForValue) { + if (reservationAffinityBuilder_ == null) { + reservationAffinity_ = builderForValue.build(); + onChanged(); + } else { + reservationAffinityBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; + */ + public Builder mergeReservationAffinity( + com.google.container.v1beta1.ReservationAffinity value) { + if (reservationAffinityBuilder_ == null) { + if (reservationAffinity_ != null) { + reservationAffinity_ = + com.google.container.v1beta1.ReservationAffinity.newBuilder(reservationAffinity_) + .mergeFrom(value) + .buildPartial(); + } else { + reservationAffinity_ = value; + } + onChanged(); + } else { + reservationAffinityBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; + */ + public Builder clearReservationAffinity() { + if (reservationAffinityBuilder_ == null) { + reservationAffinity_ = null; + onChanged(); + } else { + reservationAffinity_ = null; + reservationAffinityBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; + */ + public com.google.container.v1beta1.ReservationAffinity.Builder + getReservationAffinityBuilder() { + + onChanged(); + return getReservationAffinityFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; + */ + public com.google.container.v1beta1.ReservationAffinityOrBuilder + getReservationAffinityOrBuilder() { + if (reservationAffinityBuilder_ != null) { + return reservationAffinityBuilder_.getMessageOrBuilder(); + } else { + return reservationAffinity_ == null + ? com.google.container.v1beta1.ReservationAffinity.getDefaultInstance() + : reservationAffinity_; + } + } + /** + * + * + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ReservationAffinity, + com.google.container.v1beta1.ReservationAffinity.Builder, + com.google.container.v1beta1.ReservationAffinityOrBuilder> + getReservationAffinityFieldBuilder() { + if (reservationAffinityBuilder_ == null) { + reservationAffinityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ReservationAffinity, + com.google.container.v1beta1.ReservationAffinity.Builder, + com.google.container.v1beta1.ReservationAffinityOrBuilder>( + getReservationAffinity(), getParentForChildren(), isClean()); + reservationAffinity_ = null; + } + return reservationAffinityBuilder_; + } + + private java.lang.Object diskType_ = ""; + /** + * + * + *
+     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 12; + * + * @return The diskType. + */ + public java.lang.String getDiskType() { + java.lang.Object ref = diskType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diskType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 12; + * + * @return The bytes for diskType. + */ + public com.google.protobuf.ByteString getDiskTypeBytes() { + java.lang.Object ref = diskType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + diskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 12; + * + * @param value The diskType to set. + * @return This builder for chaining. + */ + public Builder setDiskType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + diskType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 12; + * + * @return This builder for chaining. + */ + public Builder clearDiskType() { + + diskType_ = getDefaultInstance().getDiskType(); + onChanged(); + return this; + } + /** + * + * + *
+     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 12; + * + * @param value The bytes for diskType to set. + * @return This builder for chaining. + */ + public Builder setDiskTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + diskType_ = value; + onChanged(); + return this; + } + + private java.lang.Object minCpuPlatform_ = ""; + /** + * + * + *
+     * Minimum CPU platform to be used by this instance. The instance may be
+     * scheduled on the specified or newer CPU platform. Applicable values are the
+     * friendly names of CPU platforms, such as
+     * `minCpuPlatform: "Intel Haswell"` or
+     * `minCpuPlatform: "Intel Sandy Bridge"`. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
+     * 
+ * + * string min_cpu_platform = 13; + * + * @return The minCpuPlatform. + */ + public java.lang.String getMinCpuPlatform() { + java.lang.Object ref = minCpuPlatform_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + minCpuPlatform_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Minimum CPU platform to be used by this instance. The instance may be
+     * scheduled on the specified or newer CPU platform. Applicable values are the
+     * friendly names of CPU platforms, such as
+     * `minCpuPlatform: "Intel Haswell"` or
+     * `minCpuPlatform: "Intel Sandy Bridge"`. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
+     * 
+ * + * string min_cpu_platform = 13; + * + * @return The bytes for minCpuPlatform. + */ + public com.google.protobuf.ByteString getMinCpuPlatformBytes() { + java.lang.Object ref = minCpuPlatform_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + minCpuPlatform_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Minimum CPU platform to be used by this instance. The instance may be
+     * scheduled on the specified or newer CPU platform. Applicable values are the
+     * friendly names of CPU platforms, such as
+     * `minCpuPlatform: "Intel Haswell"` or
+     * `minCpuPlatform: "Intel Sandy Bridge"`. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
+     * 
+ * + * string min_cpu_platform = 13; + * + * @param value The minCpuPlatform to set. + * @return This builder for chaining. + */ + public Builder setMinCpuPlatform(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + minCpuPlatform_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Minimum CPU platform to be used by this instance. The instance may be
+     * scheduled on the specified or newer CPU platform. Applicable values are the
+     * friendly names of CPU platforms, such as
+     * `minCpuPlatform: "Intel Haswell"` or
+     * `minCpuPlatform: "Intel Sandy Bridge"`. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
+     * 
+ * + * string min_cpu_platform = 13; + * + * @return This builder for chaining. + */ + public Builder clearMinCpuPlatform() { + + minCpuPlatform_ = getDefaultInstance().getMinCpuPlatform(); + onChanged(); + return this; + } + /** + * + * + *
+     * Minimum CPU platform to be used by this instance. The instance may be
+     * scheduled on the specified or newer CPU platform. Applicable values are the
+     * friendly names of CPU platforms, such as
+     * `minCpuPlatform: "Intel Haswell"` or
+     * `minCpuPlatform: "Intel Sandy Bridge"`. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
+     * 
+ * + * string min_cpu_platform = 13; + * + * @param value The bytes for minCpuPlatform to set. + * @return This builder for chaining. + */ + public Builder setMinCpuPlatformBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + minCpuPlatform_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.WorkloadMetadataConfig workloadMetadataConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadMetadataConfig, + com.google.container.v1beta1.WorkloadMetadataConfig.Builder, + com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder> + workloadMetadataConfigBuilder_; + /** + * + * + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return Whether the workloadMetadataConfig field is set. + */ + public boolean hasWorkloadMetadataConfig() { + return workloadMetadataConfigBuilder_ != null || workloadMetadataConfig_ != null; + } + /** + * + * + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return The workloadMetadataConfig. + */ + public com.google.container.v1beta1.WorkloadMetadataConfig getWorkloadMetadataConfig() { + if (workloadMetadataConfigBuilder_ == null) { + return workloadMetadataConfig_ == null + ? com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance() + : workloadMetadataConfig_; + } else { + return workloadMetadataConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder setWorkloadMetadataConfig( + com.google.container.v1beta1.WorkloadMetadataConfig value) { + if (workloadMetadataConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workloadMetadataConfig_ = value; + onChanged(); + } else { + workloadMetadataConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder setWorkloadMetadataConfig( + com.google.container.v1beta1.WorkloadMetadataConfig.Builder builderForValue) { + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfig_ = builderForValue.build(); + onChanged(); + } else { + workloadMetadataConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder mergeWorkloadMetadataConfig( + com.google.container.v1beta1.WorkloadMetadataConfig value) { + if (workloadMetadataConfigBuilder_ == null) { + if (workloadMetadataConfig_ != null) { + workloadMetadataConfig_ = + com.google.container.v1beta1.WorkloadMetadataConfig.newBuilder( + workloadMetadataConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + workloadMetadataConfig_ = value; + } + onChanged(); + } else { + workloadMetadataConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder clearWorkloadMetadataConfig() { + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfig_ = null; + onChanged(); + } else { + workloadMetadataConfig_ = null; + workloadMetadataConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public com.google.container.v1beta1.WorkloadMetadataConfig.Builder + getWorkloadMetadataConfigBuilder() { + + onChanged(); + return getWorkloadMetadataConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder + getWorkloadMetadataConfigOrBuilder() { + if (workloadMetadataConfigBuilder_ != null) { + return workloadMetadataConfigBuilder_.getMessageOrBuilder(); + } else { + return workloadMetadataConfig_ == null + ? com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance() + : workloadMetadataConfig_; + } + } + /** + * + * + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadMetadataConfig, + com.google.container.v1beta1.WorkloadMetadataConfig.Builder, + com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder> + getWorkloadMetadataConfigFieldBuilder() { + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadMetadataConfig, + com.google.container.v1beta1.WorkloadMetadataConfig.Builder, + com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder>( + getWorkloadMetadataConfig(), getParentForChildren(), isClean()); + workloadMetadataConfig_ = null; + } + return workloadMetadataConfigBuilder_; + } + + private java.util.List taints_ = + java.util.Collections.emptyList(); + + private void ensureTaintsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + taints_ = new java.util.ArrayList(taints_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.NodeTaint, + com.google.container.v1beta1.NodeTaint.Builder, + com.google.container.v1beta1.NodeTaintOrBuilder> + taintsBuilder_; + + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public java.util.List getTaintsList() { + if (taintsBuilder_ == null) { + return java.util.Collections.unmodifiableList(taints_); + } else { + return taintsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public int getTaintsCount() { + if (taintsBuilder_ == null) { + return taints_.size(); + } else { + return taintsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public com.google.container.v1beta1.NodeTaint getTaints(int index) { + if (taintsBuilder_ == null) { + return taints_.get(index); + } else { + return taintsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public Builder setTaints(int index, com.google.container.v1beta1.NodeTaint value) { + if (taintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTaintsIsMutable(); + taints_.set(index, value); + onChanged(); + } else { + taintsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public Builder setTaints( + int index, com.google.container.v1beta1.NodeTaint.Builder builderForValue) { + if (taintsBuilder_ == null) { + ensureTaintsIsMutable(); + taints_.set(index, builderForValue.build()); + onChanged(); + } else { + taintsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public Builder addTaints(com.google.container.v1beta1.NodeTaint value) { + if (taintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTaintsIsMutable(); + taints_.add(value); + onChanged(); + } else { + taintsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public Builder addTaints(int index, com.google.container.v1beta1.NodeTaint value) { + if (taintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTaintsIsMutable(); + taints_.add(index, value); + onChanged(); + } else { + taintsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public Builder addTaints(com.google.container.v1beta1.NodeTaint.Builder builderForValue) { + if (taintsBuilder_ == null) { + ensureTaintsIsMutable(); + taints_.add(builderForValue.build()); + onChanged(); + } else { + taintsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public Builder addTaints( + int index, com.google.container.v1beta1.NodeTaint.Builder builderForValue) { + if (taintsBuilder_ == null) { + ensureTaintsIsMutable(); + taints_.add(index, builderForValue.build()); + onChanged(); + } else { + taintsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public Builder addAllTaints( + java.lang.Iterable values) { + if (taintsBuilder_ == null) { + ensureTaintsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, taints_); + onChanged(); + } else { + taintsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public Builder clearTaints() { + if (taintsBuilder_ == null) { + taints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + taintsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public Builder removeTaints(int index) { + if (taintsBuilder_ == null) { + ensureTaintsIsMutable(); + taints_.remove(index); + onChanged(); + } else { + taintsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public com.google.container.v1beta1.NodeTaint.Builder getTaintsBuilder(int index) { + return getTaintsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public com.google.container.v1beta1.NodeTaintOrBuilder getTaintsOrBuilder(int index) { + if (taintsBuilder_ == null) { + return taints_.get(index); + } else { + return taintsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public java.util.List + getTaintsOrBuilderList() { + if (taintsBuilder_ != null) { + return taintsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(taints_); + } + } + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public com.google.container.v1beta1.NodeTaint.Builder addTaintsBuilder() { + return getTaintsFieldBuilder() + .addBuilder(com.google.container.v1beta1.NodeTaint.getDefaultInstance()); + } + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public com.google.container.v1beta1.NodeTaint.Builder addTaintsBuilder(int index) { + return getTaintsFieldBuilder() + .addBuilder(index, com.google.container.v1beta1.NodeTaint.getDefaultInstance()); + } + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public java.util.List getTaintsBuilderList() { + return getTaintsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.NodeTaint, + com.google.container.v1beta1.NodeTaint.Builder, + com.google.container.v1beta1.NodeTaintOrBuilder> + getTaintsFieldBuilder() { + if (taintsBuilder_ == null) { + taintsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.NodeTaint, + com.google.container.v1beta1.NodeTaint.Builder, + com.google.container.v1beta1.NodeTaintOrBuilder>( + taints_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); + taints_ = null; + } + return taintsBuilder_; + } + + private java.lang.Object bootDiskKmsKey_ = ""; + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 23; + * + * @return The bootDiskKmsKey. + */ + public java.lang.String getBootDiskKmsKey() { + java.lang.Object ref = bootDiskKmsKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bootDiskKmsKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 23; + * + * @return The bytes for bootDiskKmsKey. + */ + public com.google.protobuf.ByteString getBootDiskKmsKeyBytes() { + java.lang.Object ref = bootDiskKmsKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bootDiskKmsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 23; + * + * @param value The bootDiskKmsKey to set. + * @return This builder for chaining. + */ + public Builder setBootDiskKmsKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + bootDiskKmsKey_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 23; + * + * @return This builder for chaining. + */ + public Builder clearBootDiskKmsKey() { + + bootDiskKmsKey_ = getDefaultInstance().getBootDiskKmsKey(); + onChanged(); + return this; + } + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 23; + * + * @param value The bytes for bootDiskKmsKey to set. + * @return This builder for chaining. + */ + public Builder setBootDiskKmsKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bootDiskKmsKey_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.ShieldedInstanceConfig shieldedInstanceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ShieldedInstanceConfig, + com.google.container.v1beta1.ShieldedInstanceConfig.Builder, + com.google.container.v1beta1.ShieldedInstanceConfigOrBuilder> + shieldedInstanceConfigBuilder_; + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; + * + * @return Whether the shieldedInstanceConfig field is set. + */ + public boolean hasShieldedInstanceConfig() { + return shieldedInstanceConfigBuilder_ != null || shieldedInstanceConfig_ != null; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; + * + * @return The shieldedInstanceConfig. + */ + public com.google.container.v1beta1.ShieldedInstanceConfig getShieldedInstanceConfig() { + if (shieldedInstanceConfigBuilder_ == null) { + return shieldedInstanceConfig_ == null + ? com.google.container.v1beta1.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; + } else { + return shieldedInstanceConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + public Builder setShieldedInstanceConfig( + com.google.container.v1beta1.ShieldedInstanceConfig value) { + if (shieldedInstanceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + shieldedInstanceConfig_ = value; + onChanged(); + } else { + shieldedInstanceConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + public Builder setShieldedInstanceConfig( + com.google.container.v1beta1.ShieldedInstanceConfig.Builder builderForValue) { + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfig_ = builderForValue.build(); + onChanged(); + } else { + shieldedInstanceConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + public Builder mergeShieldedInstanceConfig( + com.google.container.v1beta1.ShieldedInstanceConfig value) { + if (shieldedInstanceConfigBuilder_ == null) { + if (shieldedInstanceConfig_ != null) { + shieldedInstanceConfig_ = + com.google.container.v1beta1.ShieldedInstanceConfig.newBuilder( + shieldedInstanceConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + shieldedInstanceConfig_ = value; + } + onChanged(); + } else { + shieldedInstanceConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + public Builder clearShieldedInstanceConfig() { + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfig_ = null; + onChanged(); + } else { + shieldedInstanceConfig_ = null; + shieldedInstanceConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + public com.google.container.v1beta1.ShieldedInstanceConfig.Builder + getShieldedInstanceConfigBuilder() { + + onChanged(); + return getShieldedInstanceConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + public com.google.container.v1beta1.ShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { + if (shieldedInstanceConfigBuilder_ != null) { + return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); + } else { + return shieldedInstanceConfig_ == null + ? com.google.container.v1beta1.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; + } + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ShieldedInstanceConfig, + com.google.container.v1beta1.ShieldedInstanceConfig.Builder, + com.google.container.v1beta1.ShieldedInstanceConfigOrBuilder> + getShieldedInstanceConfigFieldBuilder() { + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ShieldedInstanceConfig, + com.google.container.v1beta1.ShieldedInstanceConfig.Builder, + com.google.container.v1beta1.ShieldedInstanceConfigOrBuilder>( + getShieldedInstanceConfig(), getParentForChildren(), isClean()); + shieldedInstanceConfig_ = null; + } + return shieldedInstanceConfigBuilder_; + } + + private com.google.container.v1beta1.LinuxNodeConfig linuxNodeConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.LinuxNodeConfig, + com.google.container.v1beta1.LinuxNodeConfig.Builder, + com.google.container.v1beta1.LinuxNodeConfigOrBuilder> + linuxNodeConfigBuilder_; + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; + * + * @return Whether the linuxNodeConfig field is set. + */ + public boolean hasLinuxNodeConfig() { + return linuxNodeConfigBuilder_ != null || linuxNodeConfig_ != null; + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; + * + * @return The linuxNodeConfig. + */ + public com.google.container.v1beta1.LinuxNodeConfig getLinuxNodeConfig() { + if (linuxNodeConfigBuilder_ == null) { + return linuxNodeConfig_ == null + ? com.google.container.v1beta1.LinuxNodeConfig.getDefaultInstance() + : linuxNodeConfig_; + } else { + return linuxNodeConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; + */ + public Builder setLinuxNodeConfig(com.google.container.v1beta1.LinuxNodeConfig value) { + if (linuxNodeConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + linuxNodeConfig_ = value; + onChanged(); + } else { + linuxNodeConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; + */ + public Builder setLinuxNodeConfig( + com.google.container.v1beta1.LinuxNodeConfig.Builder builderForValue) { + if (linuxNodeConfigBuilder_ == null) { + linuxNodeConfig_ = builderForValue.build(); + onChanged(); + } else { + linuxNodeConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; + */ + public Builder mergeLinuxNodeConfig(com.google.container.v1beta1.LinuxNodeConfig value) { + if (linuxNodeConfigBuilder_ == null) { + if (linuxNodeConfig_ != null) { + linuxNodeConfig_ = + com.google.container.v1beta1.LinuxNodeConfig.newBuilder(linuxNodeConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + linuxNodeConfig_ = value; + } + onChanged(); + } else { + linuxNodeConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; + */ + public Builder clearLinuxNodeConfig() { + if (linuxNodeConfigBuilder_ == null) { + linuxNodeConfig_ = null; + onChanged(); + } else { + linuxNodeConfig_ = null; + linuxNodeConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; + */ + public com.google.container.v1beta1.LinuxNodeConfig.Builder getLinuxNodeConfigBuilder() { + + onChanged(); + return getLinuxNodeConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; + */ + public com.google.container.v1beta1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder() { + if (linuxNodeConfigBuilder_ != null) { + return linuxNodeConfigBuilder_.getMessageOrBuilder(); + } else { + return linuxNodeConfig_ == null + ? com.google.container.v1beta1.LinuxNodeConfig.getDefaultInstance() + : linuxNodeConfig_; + } + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.LinuxNodeConfig, + com.google.container.v1beta1.LinuxNodeConfig.Builder, + com.google.container.v1beta1.LinuxNodeConfigOrBuilder> + getLinuxNodeConfigFieldBuilder() { + if (linuxNodeConfigBuilder_ == null) { + linuxNodeConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.LinuxNodeConfig, + com.google.container.v1beta1.LinuxNodeConfig.Builder, + com.google.container.v1beta1.LinuxNodeConfigOrBuilder>( + getLinuxNodeConfig(), getParentForChildren(), isClean()); + linuxNodeConfig_ = null; + } + return linuxNodeConfigBuilder_; + } + + private com.google.container.v1beta1.NodeKubeletConfig kubeletConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeKubeletConfig, + com.google.container.v1beta1.NodeKubeletConfig.Builder, + com.google.container.v1beta1.NodeKubeletConfigOrBuilder> + kubeletConfigBuilder_; + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; + * + * @return Whether the kubeletConfig field is set. + */ + public boolean hasKubeletConfig() { + return kubeletConfigBuilder_ != null || kubeletConfig_ != null; + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; + * + * @return The kubeletConfig. + */ + public com.google.container.v1beta1.NodeKubeletConfig getKubeletConfig() { + if (kubeletConfigBuilder_ == null) { + return kubeletConfig_ == null + ? com.google.container.v1beta1.NodeKubeletConfig.getDefaultInstance() + : kubeletConfig_; + } else { + return kubeletConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; + */ + public Builder setKubeletConfig(com.google.container.v1beta1.NodeKubeletConfig value) { + if (kubeletConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kubeletConfig_ = value; + onChanged(); + } else { + kubeletConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; + */ + public Builder setKubeletConfig( + com.google.container.v1beta1.NodeKubeletConfig.Builder builderForValue) { + if (kubeletConfigBuilder_ == null) { + kubeletConfig_ = builderForValue.build(); + onChanged(); + } else { + kubeletConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; + */ + public Builder mergeKubeletConfig(com.google.container.v1beta1.NodeKubeletConfig value) { + if (kubeletConfigBuilder_ == null) { + if (kubeletConfig_ != null) { + kubeletConfig_ = + com.google.container.v1beta1.NodeKubeletConfig.newBuilder(kubeletConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + kubeletConfig_ = value; + } + onChanged(); + } else { + kubeletConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; + */ + public Builder clearKubeletConfig() { + if (kubeletConfigBuilder_ == null) { + kubeletConfig_ = null; + onChanged(); + } else { + kubeletConfig_ = null; + kubeletConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; + */ + public com.google.container.v1beta1.NodeKubeletConfig.Builder getKubeletConfigBuilder() { + + onChanged(); + return getKubeletConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; + */ + public com.google.container.v1beta1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder() { + if (kubeletConfigBuilder_ != null) { + return kubeletConfigBuilder_.getMessageOrBuilder(); + } else { + return kubeletConfig_ == null + ? com.google.container.v1beta1.NodeKubeletConfig.getDefaultInstance() + : kubeletConfig_; + } + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeKubeletConfig, + com.google.container.v1beta1.NodeKubeletConfig.Builder, + com.google.container.v1beta1.NodeKubeletConfigOrBuilder> + getKubeletConfigFieldBuilder() { + if (kubeletConfigBuilder_ == null) { + kubeletConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeKubeletConfig, + com.google.container.v1beta1.NodeKubeletConfig.Builder, + com.google.container.v1beta1.NodeKubeletConfigOrBuilder>( + getKubeletConfig(), getParentForChildren(), isClean()); + kubeletConfig_ = null; + } + return kubeletConfigBuilder_; + } + + private com.google.container.v1beta1.EphemeralStorageConfig ephemeralStorageConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.EphemeralStorageConfig, + com.google.container.v1beta1.EphemeralStorageConfig.Builder, + com.google.container.v1beta1.EphemeralStorageConfigOrBuilder> + ephemeralStorageConfigBuilder_; + /** + * + * + *
+     * Parameters for the ephemeral storage filesystem.
+     * If unspecified, ephemeral storage is backed by the boot disk.
+     * 
+ * + * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; + * + * @return Whether the ephemeralStorageConfig field is set. + */ + public boolean hasEphemeralStorageConfig() { + return ephemeralStorageConfigBuilder_ != null || ephemeralStorageConfig_ != null; + } + /** + * + * + *
+     * Parameters for the ephemeral storage filesystem.
+     * If unspecified, ephemeral storage is backed by the boot disk.
+     * 
+ * + * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; + * + * @return The ephemeralStorageConfig. + */ + public com.google.container.v1beta1.EphemeralStorageConfig getEphemeralStorageConfig() { + if (ephemeralStorageConfigBuilder_ == null) { + return ephemeralStorageConfig_ == null + ? com.google.container.v1beta1.EphemeralStorageConfig.getDefaultInstance() + : ephemeralStorageConfig_; + } else { + return ephemeralStorageConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Parameters for the ephemeral storage filesystem.
+     * If unspecified, ephemeral storage is backed by the boot disk.
+     * 
+ * + * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; + */ + public Builder setEphemeralStorageConfig( + com.google.container.v1beta1.EphemeralStorageConfig value) { + if (ephemeralStorageConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ephemeralStorageConfig_ = value; + onChanged(); + } else { + ephemeralStorageConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Parameters for the ephemeral storage filesystem.
+     * If unspecified, ephemeral storage is backed by the boot disk.
+     * 
+ * + * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; + */ + public Builder setEphemeralStorageConfig( + com.google.container.v1beta1.EphemeralStorageConfig.Builder builderForValue) { + if (ephemeralStorageConfigBuilder_ == null) { + ephemeralStorageConfig_ = builderForValue.build(); + onChanged(); + } else { + ephemeralStorageConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Parameters for the ephemeral storage filesystem.
+     * If unspecified, ephemeral storage is backed by the boot disk.
+     * 
+ * + * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; + */ + public Builder mergeEphemeralStorageConfig( + com.google.container.v1beta1.EphemeralStorageConfig value) { + if (ephemeralStorageConfigBuilder_ == null) { + if (ephemeralStorageConfig_ != null) { + ephemeralStorageConfig_ = + com.google.container.v1beta1.EphemeralStorageConfig.newBuilder( + ephemeralStorageConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + ephemeralStorageConfig_ = value; + } + onChanged(); + } else { + ephemeralStorageConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Parameters for the ephemeral storage filesystem.
+     * If unspecified, ephemeral storage is backed by the boot disk.
+     * 
+ * + * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; + */ + public Builder clearEphemeralStorageConfig() { + if (ephemeralStorageConfigBuilder_ == null) { + ephemeralStorageConfig_ = null; + onChanged(); + } else { + ephemeralStorageConfig_ = null; + ephemeralStorageConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Parameters for the ephemeral storage filesystem.
+     * If unspecified, ephemeral storage is backed by the boot disk.
+     * 
+ * + * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; + */ + public com.google.container.v1beta1.EphemeralStorageConfig.Builder + getEphemeralStorageConfigBuilder() { + + onChanged(); + return getEphemeralStorageConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Parameters for the ephemeral storage filesystem.
+     * If unspecified, ephemeral storage is backed by the boot disk.
+     * 
+ * + * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; + */ + public com.google.container.v1beta1.EphemeralStorageConfigOrBuilder + getEphemeralStorageConfigOrBuilder() { + if (ephemeralStorageConfigBuilder_ != null) { + return ephemeralStorageConfigBuilder_.getMessageOrBuilder(); + } else { + return ephemeralStorageConfig_ == null + ? com.google.container.v1beta1.EphemeralStorageConfig.getDefaultInstance() + : ephemeralStorageConfig_; + } + } + /** + * + * + *
+     * Parameters for the ephemeral storage filesystem.
+     * If unspecified, ephemeral storage is backed by the boot disk.
+     * 
+ * + * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.EphemeralStorageConfig, + com.google.container.v1beta1.EphemeralStorageConfig.Builder, + com.google.container.v1beta1.EphemeralStorageConfigOrBuilder> + getEphemeralStorageConfigFieldBuilder() { + if (ephemeralStorageConfigBuilder_ == null) { + ephemeralStorageConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.EphemeralStorageConfig, + com.google.container.v1beta1.EphemeralStorageConfig.Builder, + com.google.container.v1beta1.EphemeralStorageConfigOrBuilder>( + getEphemeralStorageConfig(), getParentForChildren(), isClean()); + ephemeralStorageConfig_ = null; + } + return ephemeralStorageConfigBuilder_; + } + + private com.google.container.v1beta1.GcfsConfig gcfsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcfsConfig, + com.google.container.v1beta1.GcfsConfig.Builder, + com.google.container.v1beta1.GcfsConfigOrBuilder> + gcfsConfigBuilder_; + /** + * + * + *
+     * GCFS (Google Container File System) configs.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + * + * @return Whether the gcfsConfig field is set. + */ + public boolean hasGcfsConfig() { + return gcfsConfigBuilder_ != null || gcfsConfig_ != null; + } + /** + * + * + *
+     * GCFS (Google Container File System) configs.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + * + * @return The gcfsConfig. + */ + public com.google.container.v1beta1.GcfsConfig getGcfsConfig() { + if (gcfsConfigBuilder_ == null) { + return gcfsConfig_ == null + ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() + : gcfsConfig_; + } else { + return gcfsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * GCFS (Google Container File System) configs.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + */ + public Builder setGcfsConfig(com.google.container.v1beta1.GcfsConfig value) { + if (gcfsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcfsConfig_ = value; + onChanged(); + } else { + gcfsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * GCFS (Google Container File System) configs.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + */ + public Builder setGcfsConfig(com.google.container.v1beta1.GcfsConfig.Builder builderForValue) { + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = builderForValue.build(); + onChanged(); + } else { + gcfsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * GCFS (Google Container File System) configs.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + */ + public Builder mergeGcfsConfig(com.google.container.v1beta1.GcfsConfig value) { + if (gcfsConfigBuilder_ == null) { + if (gcfsConfig_ != null) { + gcfsConfig_ = + com.google.container.v1beta1.GcfsConfig.newBuilder(gcfsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + gcfsConfig_ = value; + } + onChanged(); + } else { + gcfsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * GCFS (Google Container File System) configs.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + */ + public Builder clearGcfsConfig() { + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = null; + onChanged(); + } else { + gcfsConfig_ = null; + gcfsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * GCFS (Google Container File System) configs.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + */ + public com.google.container.v1beta1.GcfsConfig.Builder getGcfsConfigBuilder() { + + onChanged(); + return getGcfsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * GCFS (Google Container File System) configs.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + */ + public com.google.container.v1beta1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { + if (gcfsConfigBuilder_ != null) { + return gcfsConfigBuilder_.getMessageOrBuilder(); + } else { + return gcfsConfig_ == null + ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() + : gcfsConfig_; + } + } + /** + * + * + *
+     * GCFS (Google Container File System) configs.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcfsConfig, + com.google.container.v1beta1.GcfsConfig.Builder, + com.google.container.v1beta1.GcfsConfigOrBuilder> + getGcfsConfigFieldBuilder() { + if (gcfsConfigBuilder_ == null) { + gcfsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcfsConfig, + com.google.container.v1beta1.GcfsConfig.Builder, + com.google.container.v1beta1.GcfsConfigOrBuilder>( + getGcfsConfig(), getParentForChildren(), isClean()); + gcfsConfig_ = null; + } + return gcfsConfigBuilder_; + } + + private com.google.container.v1beta1.AdvancedMachineFeatures advancedMachineFeatures_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AdvancedMachineFeatures, + com.google.container.v1beta1.AdvancedMachineFeatures.Builder, + com.google.container.v1beta1.AdvancedMachineFeaturesOrBuilder> + advancedMachineFeaturesBuilder_; + /** + * + * + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + * + * + * @return Whether the advancedMachineFeatures field is set. + */ + public boolean hasAdvancedMachineFeatures() { + return advancedMachineFeaturesBuilder_ != null || advancedMachineFeatures_ != null; + } + /** + * + * + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + * + * + * @return The advancedMachineFeatures. + */ + public com.google.container.v1beta1.AdvancedMachineFeatures getAdvancedMachineFeatures() { + if (advancedMachineFeaturesBuilder_ == null) { + return advancedMachineFeatures_ == null + ? com.google.container.v1beta1.AdvancedMachineFeatures.getDefaultInstance() + : advancedMachineFeatures_; + } else { + return advancedMachineFeaturesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + * + */ + public Builder setAdvancedMachineFeatures( + com.google.container.v1beta1.AdvancedMachineFeatures value) { + if (advancedMachineFeaturesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + advancedMachineFeatures_ = value; + onChanged(); + } else { + advancedMachineFeaturesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + * + */ + public Builder setAdvancedMachineFeatures( + com.google.container.v1beta1.AdvancedMachineFeatures.Builder builderForValue) { + if (advancedMachineFeaturesBuilder_ == null) { + advancedMachineFeatures_ = builderForValue.build(); + onChanged(); + } else { + advancedMachineFeaturesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + * + */ + public Builder mergeAdvancedMachineFeatures( + com.google.container.v1beta1.AdvancedMachineFeatures value) { + if (advancedMachineFeaturesBuilder_ == null) { + if (advancedMachineFeatures_ != null) { + advancedMachineFeatures_ = + com.google.container.v1beta1.AdvancedMachineFeatures.newBuilder( + advancedMachineFeatures_) + .mergeFrom(value) + .buildPartial(); + } else { + advancedMachineFeatures_ = value; + } + onChanged(); + } else { + advancedMachineFeaturesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + * + */ + public Builder clearAdvancedMachineFeatures() { + if (advancedMachineFeaturesBuilder_ == null) { + advancedMachineFeatures_ = null; + onChanged(); + } else { + advancedMachineFeatures_ = null; + advancedMachineFeaturesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + * + */ + public com.google.container.v1beta1.AdvancedMachineFeatures.Builder + getAdvancedMachineFeaturesBuilder() { + + onChanged(); + return getAdvancedMachineFeaturesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + * + */ + public com.google.container.v1beta1.AdvancedMachineFeaturesOrBuilder + getAdvancedMachineFeaturesOrBuilder() { + if (advancedMachineFeaturesBuilder_ != null) { + return advancedMachineFeaturesBuilder_.getMessageOrBuilder(); + } else { + return advancedMachineFeatures_ == null + ? com.google.container.v1beta1.AdvancedMachineFeatures.getDefaultInstance() + : advancedMachineFeatures_; + } + } + /** + * + * + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AdvancedMachineFeatures, + com.google.container.v1beta1.AdvancedMachineFeatures.Builder, + com.google.container.v1beta1.AdvancedMachineFeaturesOrBuilder> + getAdvancedMachineFeaturesFieldBuilder() { + if (advancedMachineFeaturesBuilder_ == null) { + advancedMachineFeaturesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AdvancedMachineFeatures, + com.google.container.v1beta1.AdvancedMachineFeatures.Builder, + com.google.container.v1beta1.AdvancedMachineFeaturesOrBuilder>( + getAdvancedMachineFeatures(), getParentForChildren(), isClean()); + advancedMachineFeatures_ = null; + } + return advancedMachineFeaturesBuilder_; + } + + private com.google.container.v1beta1.VirtualNIC gvnic_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.VirtualNIC, + 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 gvnicBuilder_ != null || gvnic_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + gvnicBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + gvnicBuilder_.setMessage(builderForValue.build()); + } + + 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 (gvnic_ != null) { + gvnic_ = + com.google.container.v1beta1.VirtualNIC.newBuilder(gvnic_) + .mergeFrom(value) + .buildPartial(); + } else { + gvnic_ = value; + } + onChanged(); + } else { + gvnicBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1beta1.VirtualNIC gvnic = 29; + */ + public Builder clearGvnic() { + if (gvnicBuilder_ == null) { + gvnic_ = null; + onChanged(); + } else { + gvnic_ = null; + gvnicBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1beta1.VirtualNIC gvnic = 29; + */ + public com.google.container.v1beta1.VirtualNIC.Builder getGvnicBuilder() { + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Spot flag for enabling Spot VM, which is a rebrand of
+     * the existing preemptible flag.
+     * 
+ * + * bool spot = 32; + * + * @return This builder for chaining. + */ + public Builder clearSpot() { + + spot_ = false; + onChanged(); + return this; + } + + 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 confidentialNodesBuilder_ != null || confidentialNodes_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + confidentialNodesBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + confidentialNodesBuilder_.setMessage(builderForValue.build()); + } + + 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 (confidentialNodes_ != null) { + confidentialNodes_ = + com.google.container.v1beta1.ConfidentialNodes.newBuilder(confidentialNodes_) + .mergeFrom(value) + .buildPartial(); + } else { + confidentialNodes_ = value; + } + onChanged(); + } else { + confidentialNodesBuilder_.mergeFrom(value); + } + + 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() { + if (confidentialNodesBuilder_ == null) { + confidentialNodes_ = null; + onChanged(); + } else { + confidentialNodes_ = null; + confidentialNodesBuilder_ = null; + } + + 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() { + + 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.protobuf.MapField resourceLabels_; + + private com.google.protobuf.MapField + internalGetResourceLabels() { + if (resourceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + return resourceLabels_; + } + + private com.google.protobuf.MapField + internalGetMutableResourceLabels() { + onChanged(); + ; + if (resourceLabels_ == null) { + resourceLabels_ = + com.google.protobuf.MapField.newMapField(ResourceLabelsDefaultEntryHolder.defaultEntry); + } + if (!resourceLabels_.isMutable()) { + resourceLabels_ = resourceLabels_.copy(); + } + return resourceLabels_; + } + + public int getResourceLabelsCount() { + return internalGetResourceLabels().getMap().size(); + } + /** + * + * + *
+     * The resource labels for the 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 java.lang.String getResourceLabelsOrDefault( + java.lang.String key, 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() { + 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() { + 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); + 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); + 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 loggingConfigBuilder_ != null || loggingConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + loggingConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + loggingConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 38; + */ + public Builder mergeLoggingConfig(com.google.container.v1beta1.NodePoolLoggingConfig value) { + if (loggingConfigBuilder_ == null) { + if (loggingConfig_ != null) { + loggingConfig_ = + com.google.container.v1beta1.NodePoolLoggingConfig.newBuilder(loggingConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + loggingConfig_ = value; + } + onChanged(); + } else { + loggingConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 38; + */ + public Builder clearLoggingConfig() { + if (loggingConfigBuilder_ == null) { + loggingConfig_ = null; + onChanged(); + } else { + loggingConfig_ = null; + loggingConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 38; + */ + public com.google.container.v1beta1.NodePoolLoggingConfig.Builder getLoggingConfigBuilder() { + + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..64f27b131e55 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigDefaults.java @@ -0,0 +1,971 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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); + } + + 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 gcfsConfig_ != null; + } + /** + * + * + *
+   * 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 getGcfsConfig(); + } + + 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 loggingConfig_ != null; + } + /** + * + * + *
+   * 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 getLoggingConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (gcfsConfig_ != null) { + output.writeMessage(1, getGcfsConfig()); + } + if (loggingConfig_ != null) { + output.writeMessage(3, getLoggingConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (gcfsConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGcfsConfig()); + } + if (loggingConfig_ != null) { + 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.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 (!getUnknownFields().equals(other.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.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = null; + } else { + gcfsConfig_ = null; + gcfsConfigBuilder_ = null; + } + if (loggingConfigBuilder_ == null) { + loggingConfig_ = null; + } else { + loggingConfig_ = null; + loggingConfigBuilder_ = 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 (gcfsConfigBuilder_ == null) { + result.gcfsConfig_ = gcfsConfig_; + } else { + result.gcfsConfig_ = gcfsConfigBuilder_.build(); + } + if (loggingConfigBuilder_ == null) { + result.loggingConfig_ = loggingConfig_; + } else { + result.loggingConfig_ = loggingConfigBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.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()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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); + + break; + } // case 10 + case 26: + { + input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); + + 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 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 gcfsConfigBuilder_ != null || gcfsConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + gcfsConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + gcfsConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (gcfsConfig_ != null) { + gcfsConfig_ = + com.google.container.v1beta1.GcfsConfig.newBuilder(gcfsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + gcfsConfig_ = value; + } + onChanged(); + } else { + gcfsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * GCFS (Google Container File System, also known as Riptide) options.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 1; + */ + public Builder clearGcfsConfig() { + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = null; + onChanged(); + } else { + gcfsConfig_ = null; + gcfsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * GCFS (Google Container File System, also known as Riptide) options.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 1; + */ + public com.google.container.v1beta1.GcfsConfig.Builder getGcfsConfigBuilder() { + + onChanged(); + return getGcfsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * GCFS (Google Container File System, 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 loggingConfigBuilder_ != null || loggingConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + loggingConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + loggingConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (loggingConfig_ != null) { + loggingConfig_ = + com.google.container.v1beta1.NodePoolLoggingConfig.newBuilder(loggingConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + loggingConfig_ = value; + } + onChanged(); + } else { + loggingConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Logging configuration for node pools.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 3; + */ + public Builder clearLoggingConfig() { + if (loggingConfigBuilder_ == null) { + loggingConfig_ = null; + onChanged(); + } else { + loggingConfig_ = null; + loggingConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Logging configuration for node pools.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 3; + */ + public com.google.container.v1beta1.NodePoolLoggingConfig.Builder getLoggingConfigBuilder() { + + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..b9cd3b6fcaaf --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigDefaultsOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface 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(); +} 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 new file mode 100644 index 000000000000..6dca4fea0de2 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigOrBuilder.java @@ -0,0 +1,1375 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface NodeConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodeConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of a Google Compute Engine [machine
+   * type](https://cloud.google.com/compute/docs/machine-types).
+   * If unspecified, the default machine type is
+   * `e2-medium`.
+   * 
+ * + * string machine_type = 1; + * + * @return The machineType. + */ + java.lang.String getMachineType(); + /** + * + * + *
+   * The name of a Google Compute Engine [machine
+   * type](https://cloud.google.com/compute/docs/machine-types).
+   * If unspecified, the default machine type is
+   * `e2-medium`.
+   * 
+ * + * string machine_type = 1; + * + * @return The bytes for machineType. + */ + com.google.protobuf.ByteString getMachineTypeBytes(); + + /** + * + * + *
+   * Size of the disk attached to each node, specified in GB.
+   * The smallest allowed disk size is 10GB.
+   * If unspecified, the default disk size is 100GB.
+   * 
+ * + * int32 disk_size_gb = 2; + * + * @return The diskSizeGb. + */ + int getDiskSizeGb(); + + /** + * + * + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container
+   * Registry](https://cloud.google.com/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 3; + * + * @return A list containing the oauthScopes. + */ + java.util.List getOauthScopesList(); + /** + * + * + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container
+   * Registry](https://cloud.google.com/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 3; + * + * @return The count of oauthScopes. + */ + int getOauthScopesCount(); + /** + * + * + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container
+   * Registry](https://cloud.google.com/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 3; + * + * @param index The index of the element to return. + * @return The oauthScopes at the given index. + */ + java.lang.String getOauthScopes(int index); + /** + * + * + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container
+   * Registry](https://cloud.google.com/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 3; + * + * @param index The index of the value to return. + * @return The bytes of the oauthScopes at the given index. + */ + com.google.protobuf.ByteString getOauthScopesBytes(int index); + + /** + * + * + *
+   * The Google Cloud Platform Service Account to be used by the node VMs.
+   * Specify the email address of the Service Account; otherwise, if no Service
+   * Account is specified, the "default" service account is used.
+   * 
+ * + * string service_account = 9; + * + * @return The serviceAccount. + */ + java.lang.String getServiceAccount(); + /** + * + * + *
+   * The Google Cloud Platform Service Account to be used by the node VMs.
+   * Specify the email address of the Service Account; otherwise, if no Service
+   * Account is specified, the "default" service account is used.
+   * 
+ * + * string service_account = 9; + * + * @return The bytes for serviceAccount. + */ + com.google.protobuf.ByteString getServiceAccountBytes(); + + /** + * + * + *
+   * The metadata key/value pairs assigned to instances in the cluster.
+   * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
+   * in length. These are reflected as part of a URL in the metadata server.
+   * Additionally, to avoid ambiguity, keys must not conflict with any other
+   * metadata keys for the project or be one of the reserved keys:
+   *  - "cluster-location"
+   *  - "cluster-name"
+   *  - "cluster-uid"
+   *  - "configure-sh"
+   *  - "containerd-configure-sh"
+   *  - "enable-oslogin"
+   *  - "gci-ensure-gke-docker"
+   *  - "gci-metrics-enabled"
+   *  - "gci-update-strategy"
+   *  - "instance-template"
+   *  - "kube-env"
+   *  - "startup-script"
+   *  - "user-data"
+   *  - "disable-address-manager"
+   *  - "windows-startup-script-ps1"
+   *  - "common-psm1"
+   *  - "k8s-node-setup-psm1"
+   *  - "install-ssh-psm1"
+   *  - "user-profile-psm1"
+   * 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.
+   * 
+ * + * string image_type = 5; + * + * @return The imageType. + */ + java.lang.String getImageType(); + /** + * + * + *
+   * The image type to use for this node. Note that for a given image type,
+   * the latest version of it will be used.
+   * 
+ * + * string image_type = 5; + * + * @return The bytes for imageType. + */ + com.google.protobuf.ByteString getImageTypeBytes(); + + /** + * + * + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + int getLabelsCount(); + /** + * + * + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + + /* 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
+   * inforamtion about preemptible VM instances.
+   * 
+ * + * bool preemptible = 10; + * + * @return The preemptible. + */ + boolean getPreemptible(); + + /** + * + * + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + java.util.List getAcceleratorsList(); + /** + * + * + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + com.google.container.v1beta1.AcceleratorConfig getAccelerators(int index); + /** + * + * + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + int getAcceleratorsCount(); + /** + * + * + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + java.util.List + getAcceleratorsOrBuilderList(); + /** + * + * + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + com.google.container.v1beta1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder(int index); + + /** + * + * + *
+   * Sandbox configuration for this node.
+   * 
+ * + * .google.container.v1beta1.SandboxConfig sandbox_config = 17; + * + * @return Whether the sandboxConfig field is set. + */ + boolean hasSandboxConfig(); + /** + * + * + *
+   * Sandbox configuration for this node.
+   * 
+ * + * .google.container.v1beta1.SandboxConfig sandbox_config = 17; + * + * @return The sandboxConfig. + */ + com.google.container.v1beta1.SandboxConfig getSandboxConfig(); + /** + * + * + *
+   * Sandbox configuration for this node.
+   * 
+ * + * .google.container.v1beta1.SandboxConfig sandbox_config = 17; + */ + com.google.container.v1beta1.SandboxConfigOrBuilder getSandboxConfigOrBuilder(); + + /** + * + * + *
+   * Setting this field will assign instances of this
+   * pool to run on the specified node group. This is useful for running
+   * workloads on [sole tenant
+   * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
+   * 
+ * + * string node_group = 18; + * + * @return The nodeGroup. + */ + java.lang.String getNodeGroup(); + /** + * + * + *
+   * Setting this field will assign instances of this
+   * pool to run on the specified node group. This is useful for running
+   * workloads on [sole tenant
+   * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
+   * 
+ * + * string node_group = 18; + * + * @return The bytes for nodeGroup. + */ + com.google.protobuf.ByteString getNodeGroupBytes(); + + /** + * + * + *
+   * The optional reservation affinity. Setting this field will apply
+   * the specified [Zonal Compute
+   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+   * to this node pool.
+   * 
+ * + * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; + * + * @return Whether the reservationAffinity field is set. + */ + boolean hasReservationAffinity(); + /** + * + * + *
+   * The optional reservation affinity. Setting this field will apply
+   * the specified [Zonal Compute
+   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+   * to this node pool.
+   * 
+ * + * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; + * + * @return The reservationAffinity. + */ + com.google.container.v1beta1.ReservationAffinity getReservationAffinity(); + /** + * + * + *
+   * The optional reservation affinity. Setting this field will apply
+   * the specified [Zonal Compute
+   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+   * to this node pool.
+   * 
+ * + * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; + */ + com.google.container.v1beta1.ReservationAffinityOrBuilder getReservationAffinityOrBuilder(); + + /** + * + * + *
+   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+   * 'pd-balanced')
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 12; + * + * @return The diskType. + */ + java.lang.String getDiskType(); + /** + * + * + *
+   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+   * 'pd-balanced')
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 12; + * + * @return The bytes for diskType. + */ + com.google.protobuf.ByteString getDiskTypeBytes(); + + /** + * + * + *
+   * Minimum CPU platform to be used by this instance. The instance may be
+   * scheduled on the specified or newer CPU platform. Applicable values are the
+   * friendly names of CPU platforms, such as
+   * `minCpuPlatform: "Intel Haswell"` or
+   * `minCpuPlatform: "Intel Sandy Bridge"`. For more
+   * information, read [how to specify min CPU
+   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
+   * 
+ * + * string min_cpu_platform = 13; + * + * @return The minCpuPlatform. + */ + java.lang.String getMinCpuPlatform(); + /** + * + * + *
+   * Minimum CPU platform to be used by this instance. The instance may be
+   * scheduled on the specified or newer CPU platform. Applicable values are the
+   * friendly names of CPU platforms, such as
+   * `minCpuPlatform: "Intel Haswell"` or
+   * `minCpuPlatform: "Intel Sandy Bridge"`. For more
+   * information, read [how to specify min CPU
+   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
+   * 
+ * + * string min_cpu_platform = 13; + * + * @return The bytes for minCpuPlatform. + */ + com.google.protobuf.ByteString getMinCpuPlatformBytes(); + + /** + * + * + *
+   * The workload metadata configuration for this node.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return Whether the workloadMetadataConfig field is set. + */ + boolean hasWorkloadMetadataConfig(); + /** + * + * + *
+   * The workload metadata configuration for this node.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return The workloadMetadataConfig. + */ + com.google.container.v1beta1.WorkloadMetadataConfig getWorkloadMetadataConfig(); + /** + * + * + *
+   * The workload metadata configuration for this node.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder getWorkloadMetadataConfigOrBuilder(); + + /** + * + * + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + java.util.List getTaintsList(); + /** + * + * + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + com.google.container.v1beta1.NodeTaint getTaints(int index); + /** + * + * + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + int getTaintsCount(); + /** + * + * + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + java.util.List + getTaintsOrBuilderList(); + /** + * + * + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + com.google.container.v1beta1.NodeTaintOrBuilder getTaintsOrBuilder(int index); + + /** + * + * + *
+   * The Customer Managed Encryption Key used to encrypt the boot disk attached
+   * to each node in the node pool. This should be of the form
+   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+   * For more information about protecting resources with Cloud KMS Keys please
+   * see:
+   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+   * 
+ * + * string boot_disk_kms_key = 23; + * + * @return The bootDiskKmsKey. + */ + java.lang.String getBootDiskKmsKey(); + /** + * + * + *
+   * The Customer Managed Encryption Key used to encrypt the boot disk attached
+   * to each node in the node pool. This should be of the form
+   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+   * For more information about protecting resources with Cloud KMS Keys please
+   * see:
+   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+   * 
+ * + * string boot_disk_kms_key = 23; + * + * @return The bytes for bootDiskKmsKey. + */ + com.google.protobuf.ByteString getBootDiskKmsKeyBytes(); + + /** + * + * + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; + * + * @return Whether the shieldedInstanceConfig field is set. + */ + boolean hasShieldedInstanceConfig(); + /** + * + * + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; + * + * @return The shieldedInstanceConfig. + */ + com.google.container.v1beta1.ShieldedInstanceConfig getShieldedInstanceConfig(); + /** + * + * + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + com.google.container.v1beta1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder(); + + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; + * + * @return Whether the linuxNodeConfig field is set. + */ + boolean hasLinuxNodeConfig(); + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; + * + * @return The linuxNodeConfig. + */ + com.google.container.v1beta1.LinuxNodeConfig getLinuxNodeConfig(); + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; + */ + com.google.container.v1beta1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder(); + + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; + * + * @return Whether the kubeletConfig field is set. + */ + boolean hasKubeletConfig(); + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; + * + * @return The kubeletConfig. + */ + com.google.container.v1beta1.NodeKubeletConfig getKubeletConfig(); + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; + */ + com.google.container.v1beta1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder(); + + /** + * + * + *
+   * Parameters for the ephemeral storage filesystem.
+   * If unspecified, ephemeral storage is backed by the boot disk.
+   * 
+ * + * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; + * + * @return Whether the ephemeralStorageConfig field is set. + */ + boolean hasEphemeralStorageConfig(); + /** + * + * + *
+   * Parameters for the ephemeral storage filesystem.
+   * If unspecified, ephemeral storage is backed by the boot disk.
+   * 
+ * + * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; + * + * @return The ephemeralStorageConfig. + */ + com.google.container.v1beta1.EphemeralStorageConfig getEphemeralStorageConfig(); + /** + * + * + *
+   * Parameters for the ephemeral storage filesystem.
+   * If unspecified, ephemeral storage is backed by the boot disk.
+   * 
+ * + * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; + */ + com.google.container.v1beta1.EphemeralStorageConfigOrBuilder getEphemeralStorageConfigOrBuilder(); + + /** + * + * + *
+   * 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(); + + /** + * + * + *
+   * 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(); +} 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 new file mode 100644 index 000000000000..000c1fec9e90 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeKubeletConfig.java @@ -0,0 +1,1321 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Node kubelet configs.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.NodeKubeletConfig} + */ +public final class NodeKubeletConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodeKubeletConfig) + NodeKubeletConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeKubeletConfig.newBuilder() to construct. + private NodeKubeletConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NodeKubeletConfig() { + cpuManagerPolicy_ = ""; + cpuCfsQuotaPeriod_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NodeKubeletConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodeKubeletConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodeKubeletConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodeKubeletConfig.class, + com.google.container.v1beta1.NodeKubeletConfig.Builder.class); + } + + public static final int CPU_MANAGER_POLICY_FIELD_NUMBER = 1; + private volatile java.lang.Object cpuManagerPolicy_; + /** + * + * + *
+   * Control the CPU management policy on the node.
+   * See
+   * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
+   * The following values are allowed.
+   * * "none": the default, which represents the existing scheduling behavior.
+   * * "static": allows pods with certain resource characteristics to be granted
+   * increased CPU affinity and exclusivity on the node.
+   * The default value is 'none' if unspecified.
+   * 
+ * + * string cpu_manager_policy = 1; + * + * @return The cpuManagerPolicy. + */ + @java.lang.Override + public java.lang.String getCpuManagerPolicy() { + java.lang.Object ref = cpuManagerPolicy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cpuManagerPolicy_ = s; + return s; + } + } + /** + * + * + *
+   * Control the CPU management policy on the node.
+   * See
+   * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
+   * The following values are allowed.
+   * * "none": the default, which represents the existing scheduling behavior.
+   * * "static": allows pods with certain resource characteristics to be granted
+   * increased CPU affinity and exclusivity on the node.
+   * The default value is 'none' if unspecified.
+   * 
+ * + * string cpu_manager_policy = 1; + * + * @return The bytes for cpuManagerPolicy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCpuManagerPolicyBytes() { + java.lang.Object ref = cpuManagerPolicy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cpuManagerPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CPU_CFS_QUOTA_FIELD_NUMBER = 2; + private com.google.protobuf.BoolValue cpuCfsQuota_; + /** + * + * + *
+   * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+   * This option is enabled by default which makes kubelet use CFS quota
+   * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+   * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+   * all.
+   * Disable this option to mitigate CPU throttling problems while still having
+   * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+   * The default value is 'true' if unspecified.
+   * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + * + * @return Whether the cpuCfsQuota field is set. + */ + @java.lang.Override + public boolean hasCpuCfsQuota() { + return cpuCfsQuota_ != null; + } + /** + * + * + *
+   * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+   * This option is enabled by default which makes kubelet use CFS quota
+   * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+   * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+   * all.
+   * Disable this option to mitigate CPU throttling problems while still having
+   * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+   * The default value is 'true' if unspecified.
+   * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + * + * @return The cpuCfsQuota. + */ + @java.lang.Override + public com.google.protobuf.BoolValue getCpuCfsQuota() { + return cpuCfsQuota_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : cpuCfsQuota_; + } + /** + * + * + *
+   * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+   * This option is enabled by default which makes kubelet use CFS quota
+   * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+   * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+   * all.
+   * Disable this option to mitigate CPU throttling problems while still having
+   * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+   * The default value is 'true' if unspecified.
+   * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + */ + @java.lang.Override + public com.google.protobuf.BoolValueOrBuilder getCpuCfsQuotaOrBuilder() { + return getCpuCfsQuota(); + } + + public static final int CPU_CFS_QUOTA_PERIOD_FIELD_NUMBER = 3; + private volatile java.lang.Object cpuCfsQuotaPeriod_; + /** + * + * + *
+   * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
+   * The string must be a sequence of decimal numbers, each with optional
+   * fraction and a unit suffix, such as "300ms".
+   * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
+   * The value must be a positive duration.
+   * 
+ * + * string cpu_cfs_quota_period = 3; + * + * @return The cpuCfsQuotaPeriod. + */ + @java.lang.Override + public java.lang.String getCpuCfsQuotaPeriod() { + java.lang.Object ref = cpuCfsQuotaPeriod_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cpuCfsQuotaPeriod_ = s; + return s; + } + } + /** + * + * + *
+   * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
+   * The string must be a sequence of decimal numbers, each with optional
+   * fraction and a unit suffix, such as "300ms".
+   * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
+   * The value must be a positive duration.
+   * 
+ * + * string cpu_cfs_quota_period = 3; + * + * @return The bytes for cpuCfsQuotaPeriod. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCpuCfsQuotaPeriodBytes() { + java.lang.Object ref = cpuCfsQuotaPeriod_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cpuCfsQuotaPeriod_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POD_PIDS_LIMIT_FIELD_NUMBER = 4; + 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_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuManagerPolicy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cpuManagerPolicy_); + } + if (cpuCfsQuota_ != null) { + output.writeMessage(2, getCpuCfsQuota()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuCfsQuotaPeriod_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cpuCfsQuotaPeriod_); + } + if (podPidsLimit_ != 0L) { + output.writeInt64(4, podPidsLimit_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuManagerPolicy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cpuManagerPolicy_); + } + if (cpuCfsQuota_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCpuCfsQuota()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuCfsQuotaPeriod_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, cpuCfsQuotaPeriod_); + } + if (podPidsLimit_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, podPidsLimit_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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()); + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + cpuManagerPolicy_ = ""; + + if (cpuCfsQuotaBuilder_ == null) { + cpuCfsQuota_ = null; + } else { + cpuCfsQuota_ = null; + cpuCfsQuotaBuilder_ = null; + } + cpuCfsQuotaPeriod_ = ""; + + podPidsLimit_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodeKubeletConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeKubeletConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.NodeKubeletConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NodeKubeletConfig build() { + com.google.container.v1beta1.NodeKubeletConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeKubeletConfig buildPartial() { + com.google.container.v1beta1.NodeKubeletConfig result = + new com.google.container.v1beta1.NodeKubeletConfig(this); + result.cpuManagerPolicy_ = cpuManagerPolicy_; + if (cpuCfsQuotaBuilder_ == null) { + result.cpuCfsQuota_ = cpuCfsQuota_; + } else { + result.cpuCfsQuota_ = cpuCfsQuotaBuilder_.build(); + } + result.cpuCfsQuotaPeriod_ = cpuCfsQuotaPeriod_; + result.podPidsLimit_ = podPidsLimit_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.NodeKubeletConfig) { + return mergeFrom((com.google.container.v1beta1.NodeKubeletConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NodeKubeletConfig other) { + if (other == com.google.container.v1beta1.NodeKubeletConfig.getDefaultInstance()) return this; + if (!other.getCpuManagerPolicy().isEmpty()) { + cpuManagerPolicy_ = other.cpuManagerPolicy_; + onChanged(); + } + if (other.hasCpuCfsQuota()) { + mergeCpuCfsQuota(other.getCpuCfsQuota()); + } + if (!other.getCpuCfsQuotaPeriod().isEmpty()) { + cpuCfsQuotaPeriod_ = other.cpuCfsQuotaPeriod_; + onChanged(); + } + if (other.getPodPidsLimit() != 0L) { + setPodPidsLimit(other.getPodPidsLimit()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + input.readMessage(getCpuCfsQuotaFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + cpuCfsQuotaPeriod_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: + { + podPidsLimit_ = input.readInt64(); + + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object cpuManagerPolicy_ = ""; + /** + * + * + *
+     * Control the CPU management policy on the node.
+     * See
+     * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
+     * The following values are allowed.
+     * * "none": the default, which represents the existing scheduling behavior.
+     * * "static": allows pods with certain resource characteristics to be granted
+     * increased CPU affinity and exclusivity on the node.
+     * The default value is 'none' if unspecified.
+     * 
+ * + * string cpu_manager_policy = 1; + * + * @return The cpuManagerPolicy. + */ + public java.lang.String getCpuManagerPolicy() { + java.lang.Object ref = cpuManagerPolicy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cpuManagerPolicy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Control the CPU management policy on the node.
+     * See
+     * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
+     * The following values are allowed.
+     * * "none": the default, which represents the existing scheduling behavior.
+     * * "static": allows pods with certain resource characteristics to be granted
+     * increased CPU affinity and exclusivity on the node.
+     * The default value is 'none' if unspecified.
+     * 
+ * + * string cpu_manager_policy = 1; + * + * @return The bytes for cpuManagerPolicy. + */ + public com.google.protobuf.ByteString getCpuManagerPolicyBytes() { + java.lang.Object ref = cpuManagerPolicy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cpuManagerPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Control the CPU management policy on the node.
+     * See
+     * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
+     * The following values are allowed.
+     * * "none": the default, which represents the existing scheduling behavior.
+     * * "static": allows pods with certain resource characteristics to be granted
+     * increased CPU affinity and exclusivity on the node.
+     * The default value is 'none' if unspecified.
+     * 
+ * + * string cpu_manager_policy = 1; + * + * @param value The cpuManagerPolicy to set. + * @return This builder for chaining. + */ + public Builder setCpuManagerPolicy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cpuManagerPolicy_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Control the CPU management policy on the node.
+     * See
+     * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
+     * The following values are allowed.
+     * * "none": the default, which represents the existing scheduling behavior.
+     * * "static": allows pods with certain resource characteristics to be granted
+     * increased CPU affinity and exclusivity on the node.
+     * The default value is 'none' if unspecified.
+     * 
+ * + * string cpu_manager_policy = 1; + * + * @return This builder for chaining. + */ + public Builder clearCpuManagerPolicy() { + + cpuManagerPolicy_ = getDefaultInstance().getCpuManagerPolicy(); + onChanged(); + return this; + } + /** + * + * + *
+     * Control the CPU management policy on the node.
+     * See
+     * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
+     * The following values are allowed.
+     * * "none": the default, which represents the existing scheduling behavior.
+     * * "static": allows pods with certain resource characteristics to be granted
+     * increased CPU affinity and exclusivity on the node.
+     * The default value is 'none' if unspecified.
+     * 
+ * + * string cpu_manager_policy = 1; + * + * @param value The bytes for cpuManagerPolicy to set. + * @return This builder for chaining. + */ + public Builder setCpuManagerPolicyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cpuManagerPolicy_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.BoolValue cpuCfsQuota_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + cpuCfsQuotaBuilder_; + /** + * + * + *
+     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+     * This option is enabled by default which makes kubelet use CFS quota
+     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+     * all.
+     * Disable this option to mitigate CPU throttling problems while still having
+     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+     * The default value is 'true' if unspecified.
+     * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + * + * @return Whether the cpuCfsQuota field is set. + */ + public boolean hasCpuCfsQuota() { + return cpuCfsQuotaBuilder_ != null || cpuCfsQuota_ != null; + } + /** + * + * + *
+     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+     * This option is enabled by default which makes kubelet use CFS quota
+     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+     * all.
+     * Disable this option to mitigate CPU throttling problems while still having
+     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+     * The default value is 'true' if unspecified.
+     * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + * + * @return The cpuCfsQuota. + */ + public com.google.protobuf.BoolValue getCpuCfsQuota() { + if (cpuCfsQuotaBuilder_ == null) { + return cpuCfsQuota_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : cpuCfsQuota_; + } else { + return cpuCfsQuotaBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+     * This option is enabled by default which makes kubelet use CFS quota
+     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+     * all.
+     * Disable this option to mitigate CPU throttling problems while still having
+     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+     * The default value is 'true' if unspecified.
+     * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + */ + public Builder setCpuCfsQuota(com.google.protobuf.BoolValue value) { + if (cpuCfsQuotaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cpuCfsQuota_ = value; + onChanged(); + } else { + cpuCfsQuotaBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+     * This option is enabled by default which makes kubelet use CFS quota
+     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+     * all.
+     * Disable this option to mitigate CPU throttling problems while still having
+     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+     * The default value is 'true' if unspecified.
+     * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + */ + public Builder setCpuCfsQuota(com.google.protobuf.BoolValue.Builder builderForValue) { + if (cpuCfsQuotaBuilder_ == null) { + cpuCfsQuota_ = builderForValue.build(); + onChanged(); + } else { + cpuCfsQuotaBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+     * This option is enabled by default which makes kubelet use CFS quota
+     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+     * all.
+     * Disable this option to mitigate CPU throttling problems while still having
+     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+     * The default value is 'true' if unspecified.
+     * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + */ + public Builder mergeCpuCfsQuota(com.google.protobuf.BoolValue value) { + if (cpuCfsQuotaBuilder_ == null) { + if (cpuCfsQuota_ != null) { + cpuCfsQuota_ = + com.google.protobuf.BoolValue.newBuilder(cpuCfsQuota_) + .mergeFrom(value) + .buildPartial(); + } else { + cpuCfsQuota_ = value; + } + onChanged(); + } else { + cpuCfsQuotaBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+     * This option is enabled by default which makes kubelet use CFS quota
+     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+     * all.
+     * Disable this option to mitigate CPU throttling problems while still having
+     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+     * The default value is 'true' if unspecified.
+     * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + */ + public Builder clearCpuCfsQuota() { + if (cpuCfsQuotaBuilder_ == null) { + cpuCfsQuota_ = null; + onChanged(); + } else { + cpuCfsQuota_ = null; + cpuCfsQuotaBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+     * This option is enabled by default which makes kubelet use CFS quota
+     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+     * all.
+     * Disable this option to mitigate CPU throttling problems while still having
+     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+     * The default value is 'true' if unspecified.
+     * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + */ + public com.google.protobuf.BoolValue.Builder getCpuCfsQuotaBuilder() { + + onChanged(); + return getCpuCfsQuotaFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+     * This option is enabled by default which makes kubelet use CFS quota
+     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+     * all.
+     * Disable this option to mitigate CPU throttling problems while still having
+     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+     * The default value is 'true' if unspecified.
+     * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + */ + public com.google.protobuf.BoolValueOrBuilder getCpuCfsQuotaOrBuilder() { + if (cpuCfsQuotaBuilder_ != null) { + return cpuCfsQuotaBuilder_.getMessageOrBuilder(); + } else { + return cpuCfsQuota_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : cpuCfsQuota_; + } + } + /** + * + * + *
+     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+     * This option is enabled by default which makes kubelet use CFS quota
+     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+     * all.
+     * Disable this option to mitigate CPU throttling problems while still having
+     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+     * The default value is 'true' if unspecified.
+     * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getCpuCfsQuotaFieldBuilder() { + if (cpuCfsQuotaBuilder_ == null) { + cpuCfsQuotaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getCpuCfsQuota(), getParentForChildren(), isClean()); + cpuCfsQuota_ = null; + } + return cpuCfsQuotaBuilder_; + } + + private java.lang.Object cpuCfsQuotaPeriod_ = ""; + /** + * + * + *
+     * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
+     * The string must be a sequence of decimal numbers, each with optional
+     * fraction and a unit suffix, such as "300ms".
+     * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
+     * The value must be a positive duration.
+     * 
+ * + * string cpu_cfs_quota_period = 3; + * + * @return The cpuCfsQuotaPeriod. + */ + public java.lang.String getCpuCfsQuotaPeriod() { + java.lang.Object ref = cpuCfsQuotaPeriod_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cpuCfsQuotaPeriod_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
+     * The string must be a sequence of decimal numbers, each with optional
+     * fraction and a unit suffix, such as "300ms".
+     * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
+     * The value must be a positive duration.
+     * 
+ * + * string cpu_cfs_quota_period = 3; + * + * @return The bytes for cpuCfsQuotaPeriod. + */ + public com.google.protobuf.ByteString getCpuCfsQuotaPeriodBytes() { + java.lang.Object ref = cpuCfsQuotaPeriod_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cpuCfsQuotaPeriod_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
+     * The string must be a sequence of decimal numbers, each with optional
+     * fraction and a unit suffix, such as "300ms".
+     * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
+     * The value must be a positive duration.
+     * 
+ * + * string cpu_cfs_quota_period = 3; + * + * @param value The cpuCfsQuotaPeriod to set. + * @return This builder for chaining. + */ + public Builder setCpuCfsQuotaPeriod(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cpuCfsQuotaPeriod_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
+     * The string must be a sequence of decimal numbers, each with optional
+     * fraction and a unit suffix, such as "300ms".
+     * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
+     * The value must be a positive duration.
+     * 
+ * + * string cpu_cfs_quota_period = 3; + * + * @return This builder for chaining. + */ + public Builder clearCpuCfsQuotaPeriod() { + + cpuCfsQuotaPeriod_ = getDefaultInstance().getCpuCfsQuotaPeriod(); + onChanged(); + return this; + } + /** + * + * + *
+     * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
+     * The string must be a sequence of decimal numbers, each with optional
+     * fraction and a unit suffix, such as "300ms".
+     * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
+     * The value must be a positive duration.
+     * 
+ * + * string cpu_cfs_quota_period = 3; + * + * @param value The bytes for cpuCfsQuotaPeriod to set. + * @return This builder for chaining. + */ + public Builder setCpuCfsQuotaPeriodBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cpuCfsQuotaPeriod_ = value; + onChanged(); + return this; + } + + 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; + 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() { + + podPidsLimit_ = 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.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 new file mode 100644 index 000000000000..79d18d02b4d9 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeKubeletConfigOrBuilder.java @@ -0,0 +1,169 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface NodeKubeletConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodeKubeletConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Control the CPU management policy on the node.
+   * See
+   * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
+   * The following values are allowed.
+   * * "none": the default, which represents the existing scheduling behavior.
+   * * "static": allows pods with certain resource characteristics to be granted
+   * increased CPU affinity and exclusivity on the node.
+   * The default value is 'none' if unspecified.
+   * 
+ * + * string cpu_manager_policy = 1; + * + * @return The cpuManagerPolicy. + */ + java.lang.String getCpuManagerPolicy(); + /** + * + * + *
+   * Control the CPU management policy on the node.
+   * See
+   * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
+   * The following values are allowed.
+   * * "none": the default, which represents the existing scheduling behavior.
+   * * "static": allows pods with certain resource characteristics to be granted
+   * increased CPU affinity and exclusivity on the node.
+   * The default value is 'none' if unspecified.
+   * 
+ * + * string cpu_manager_policy = 1; + * + * @return The bytes for cpuManagerPolicy. + */ + com.google.protobuf.ByteString getCpuManagerPolicyBytes(); + + /** + * + * + *
+   * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+   * This option is enabled by default which makes kubelet use CFS quota
+   * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+   * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+   * all.
+   * Disable this option to mitigate CPU throttling problems while still having
+   * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+   * The default value is 'true' if unspecified.
+   * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + * + * @return Whether the cpuCfsQuota field is set. + */ + boolean hasCpuCfsQuota(); + /** + * + * + *
+   * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+   * This option is enabled by default which makes kubelet use CFS quota
+   * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+   * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+   * all.
+   * Disable this option to mitigate CPU throttling problems while still having
+   * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+   * The default value is 'true' if unspecified.
+   * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + * + * @return The cpuCfsQuota. + */ + com.google.protobuf.BoolValue getCpuCfsQuota(); + /** + * + * + *
+   * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+   * This option is enabled by default which makes kubelet use CFS quota
+   * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+   * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+   * all.
+   * Disable this option to mitigate CPU throttling problems while still having
+   * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+   * The default value is 'true' if unspecified.
+   * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + */ + com.google.protobuf.BoolValueOrBuilder getCpuCfsQuotaOrBuilder(); + + /** + * + * + *
+   * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
+   * The string must be a sequence of decimal numbers, each with optional
+   * fraction and a unit suffix, such as "300ms".
+   * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
+   * The value must be a positive duration.
+   * 
+ * + * string cpu_cfs_quota_period = 3; + * + * @return The cpuCfsQuotaPeriod. + */ + java.lang.String getCpuCfsQuotaPeriod(); + /** + * + * + *
+   * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
+   * The string must be a sequence of decimal numbers, each with optional
+   * fraction and a unit suffix, such as "300ms".
+   * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
+   * The value must be a positive duration.
+   * 
+ * + * string cpu_cfs_quota_period = 3; + * + * @return The bytes for cpuCfsQuotaPeriod. + */ + com.google.protobuf.ByteString getCpuCfsQuotaPeriodBytes(); + + /** + * + * + *
+   * 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(); +} 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 new file mode 100644 index 000000000000..b7dee2ce1dca --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeLabels.java @@ -0,0 +1,758 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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.MapField internalGetMapField(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, + ""); + } + + 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 java.lang.String getLabelsOrDefault(java.lang.String key, 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.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(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(); + 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); + int from_bitField0_ = bitField0_; + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.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()); + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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()); + 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() { + onChanged(); + ; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * 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 java.lang.String getLabelsOrDefault( + java.lang.String key, 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() { + 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() { + 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); + 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); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..ba73062a6185 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeLabelsOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface 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 new file mode 100644 index 000000000000..0d4e84b00a96 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeManagement.java @@ -0,0 +1,887 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * NodeManagement defines the set of node management services turned on for the
+ * node pool.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.NodeManagement} + */ +public final class NodeManagement extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodeManagement) + NodeManagementOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeManagement.newBuilder() to construct. + private NodeManagement(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NodeManagement() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NodeManagement(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodeManagement_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodeManagement_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodeManagement.class, + com.google.container.v1beta1.NodeManagement.Builder.class); + } + + public static final int AUTO_UPGRADE_FIELD_NUMBER = 1; + private boolean autoUpgrade_; + /** + * + * + *
+   * Whether the nodes will be automatically upgraded.
+   * 
+ * + * bool auto_upgrade = 1; + * + * @return The autoUpgrade. + */ + @java.lang.Override + public boolean getAutoUpgrade() { + return autoUpgrade_; + } + + public static final int AUTO_REPAIR_FIELD_NUMBER = 2; + private boolean autoRepair_; + /** + * + * + *
+   * Whether the nodes will be automatically repaired.
+   * 
+ * + * bool auto_repair = 2; + * + * @return The autoRepair. + */ + @java.lang.Override + public boolean getAutoRepair() { + return autoRepair_; + } + + public static final int UPGRADE_OPTIONS_FIELD_NUMBER = 10; + private com.google.container.v1beta1.AutoUpgradeOptions upgradeOptions_; + /** + * + * + *
+   * Specifies the Auto Upgrade knobs for the node pool.
+   * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + * + * @return Whether the upgradeOptions field is set. + */ + @java.lang.Override + public boolean hasUpgradeOptions() { + return upgradeOptions_ != null; + } + /** + * + * + *
+   * Specifies the Auto Upgrade knobs for the node pool.
+   * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + * + * @return The upgradeOptions. + */ + @java.lang.Override + public com.google.container.v1beta1.AutoUpgradeOptions getUpgradeOptions() { + return upgradeOptions_ == null + ? com.google.container.v1beta1.AutoUpgradeOptions.getDefaultInstance() + : upgradeOptions_; + } + /** + * + * + *
+   * Specifies the Auto Upgrade knobs for the node pool.
+   * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + */ + @java.lang.Override + public com.google.container.v1beta1.AutoUpgradeOptionsOrBuilder getUpgradeOptionsOrBuilder() { + return getUpgradeOptions(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (autoUpgrade_ != false) { + output.writeBool(1, autoUpgrade_); + } + if (autoRepair_ != false) { + output.writeBool(2, autoRepair_); + } + if (upgradeOptions_ != null) { + output.writeMessage(10, getUpgradeOptions()); + } + 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 (upgradeOptions_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + autoUpgrade_ = false; + + autoRepair_ = false; + + if (upgradeOptionsBuilder_ == null) { + upgradeOptions_ = null; + } else { + upgradeOptions_ = null; + upgradeOptionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodeManagement_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeManagement getDefaultInstanceForType() { + return com.google.container.v1beta1.NodeManagement.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NodeManagement build() { + com.google.container.v1beta1.NodeManagement result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeManagement buildPartial() { + com.google.container.v1beta1.NodeManagement result = + new com.google.container.v1beta1.NodeManagement(this); + result.autoUpgrade_ = autoUpgrade_; + result.autoRepair_ = autoRepair_; + if (upgradeOptionsBuilder_ == null) { + result.upgradeOptions_ = upgradeOptions_; + } else { + result.upgradeOptions_ = upgradeOptionsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.NodeManagement) { + return mergeFrom((com.google.container.v1beta1.NodeManagement) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NodeManagement other) { + if (other == com.google.container.v1beta1.NodeManagement.getDefaultInstance()) return this; + if (other.getAutoUpgrade() != false) { + setAutoUpgrade(other.getAutoUpgrade()); + } + if (other.getAutoRepair() != false) { + setAutoRepair(other.getAutoRepair()); + } + if (other.hasUpgradeOptions()) { + mergeUpgradeOptions(other.getUpgradeOptions()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 8 + case 16: + { + autoRepair_ = input.readBool(); + + break; + } // case 16 + case 82: + { + input.readMessage(getUpgradeOptionsFieldBuilder().getBuilder(), extensionRegistry); + + 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 boolean autoUpgrade_; + /** + * + * + *
+     * Whether the nodes will be automatically upgraded.
+     * 
+ * + * bool auto_upgrade = 1; + * + * @return The autoUpgrade. + */ + @java.lang.Override + public boolean getAutoUpgrade() { + return autoUpgrade_; + } + /** + * + * + *
+     * Whether the nodes will be automatically upgraded.
+     * 
+ * + * bool auto_upgrade = 1; + * + * @param value The autoUpgrade to set. + * @return This builder for chaining. + */ + public Builder setAutoUpgrade(boolean value) { + + autoUpgrade_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the nodes will be automatically upgraded.
+     * 
+ * + * bool auto_upgrade = 1; + * + * @return This builder for chaining. + */ + public Builder clearAutoUpgrade() { + + autoUpgrade_ = false; + onChanged(); + return this; + } + + private boolean autoRepair_; + /** + * + * + *
+     * Whether the nodes will be automatically repaired.
+     * 
+ * + * bool auto_repair = 2; + * + * @return The autoRepair. + */ + @java.lang.Override + public boolean getAutoRepair() { + return autoRepair_; + } + /** + * + * + *
+     * Whether the nodes will be automatically repaired.
+     * 
+ * + * bool auto_repair = 2; + * + * @param value The autoRepair to set. + * @return This builder for chaining. + */ + public Builder setAutoRepair(boolean value) { + + autoRepair_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the nodes will be automatically repaired.
+     * 
+ * + * bool auto_repair = 2; + * + * @return This builder for chaining. + */ + public Builder clearAutoRepair() { + + autoRepair_ = false; + onChanged(); + return this; + } + + private com.google.container.v1beta1.AutoUpgradeOptions upgradeOptions_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AutoUpgradeOptions, + com.google.container.v1beta1.AutoUpgradeOptions.Builder, + com.google.container.v1beta1.AutoUpgradeOptionsOrBuilder> + upgradeOptionsBuilder_; + /** + * + * + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + * + * @return Whether the upgradeOptions field is set. + */ + public boolean hasUpgradeOptions() { + return upgradeOptionsBuilder_ != null || upgradeOptions_ != null; + } + /** + * + * + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + * + * @return The upgradeOptions. + */ + public com.google.container.v1beta1.AutoUpgradeOptions getUpgradeOptions() { + if (upgradeOptionsBuilder_ == null) { + return upgradeOptions_ == null + ? com.google.container.v1beta1.AutoUpgradeOptions.getDefaultInstance() + : upgradeOptions_; + } else { + return upgradeOptionsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + */ + public Builder setUpgradeOptions(com.google.container.v1beta1.AutoUpgradeOptions value) { + if (upgradeOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + upgradeOptions_ = value; + onChanged(); + } else { + upgradeOptionsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + */ + public Builder setUpgradeOptions( + com.google.container.v1beta1.AutoUpgradeOptions.Builder builderForValue) { + if (upgradeOptionsBuilder_ == null) { + upgradeOptions_ = builderForValue.build(); + onChanged(); + } else { + upgradeOptionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + */ + public Builder mergeUpgradeOptions(com.google.container.v1beta1.AutoUpgradeOptions value) { + if (upgradeOptionsBuilder_ == null) { + if (upgradeOptions_ != null) { + upgradeOptions_ = + com.google.container.v1beta1.AutoUpgradeOptions.newBuilder(upgradeOptions_) + .mergeFrom(value) + .buildPartial(); + } else { + upgradeOptions_ = value; + } + onChanged(); + } else { + upgradeOptionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + */ + public Builder clearUpgradeOptions() { + if (upgradeOptionsBuilder_ == null) { + upgradeOptions_ = null; + onChanged(); + } else { + upgradeOptions_ = null; + upgradeOptionsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + */ + public com.google.container.v1beta1.AutoUpgradeOptions.Builder getUpgradeOptionsBuilder() { + + onChanged(); + return getUpgradeOptionsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + */ + public com.google.container.v1beta1.AutoUpgradeOptionsOrBuilder getUpgradeOptionsOrBuilder() { + if (upgradeOptionsBuilder_ != null) { + return upgradeOptionsBuilder_.getMessageOrBuilder(); + } else { + return upgradeOptions_ == null + ? com.google.container.v1beta1.AutoUpgradeOptions.getDefaultInstance() + : upgradeOptions_; + } + } + /** + * + * + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AutoUpgradeOptions, + com.google.container.v1beta1.AutoUpgradeOptions.Builder, + com.google.container.v1beta1.AutoUpgradeOptionsOrBuilder> + getUpgradeOptionsFieldBuilder() { + if (upgradeOptionsBuilder_ == null) { + upgradeOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AutoUpgradeOptions, + com.google.container.v1beta1.AutoUpgradeOptions.Builder, + com.google.container.v1beta1.AutoUpgradeOptionsOrBuilder>( + getUpgradeOptions(), getParentForChildren(), isClean()); + upgradeOptions_ = null; + } + return upgradeOptionsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.NodeManagement) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodeManagement) + private static final com.google.container.v1beta1.NodeManagement DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NodeManagement(); + } + + public static com.google.container.v1beta1.NodeManagement getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeManagement parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..6588c33efa2a --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeManagementOrBuilder.java @@ -0,0 +1,86 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface NodeManagementOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodeManagement) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether the nodes will be automatically upgraded.
+   * 
+ * + * bool auto_upgrade = 1; + * + * @return The autoUpgrade. + */ + boolean getAutoUpgrade(); + + /** + * + * + *
+   * Whether the nodes will be automatically repaired.
+   * 
+ * + * bool auto_repair = 2; + * + * @return The autoRepair. + */ + boolean getAutoRepair(); + + /** + * + * + *
+   * Specifies the Auto Upgrade knobs for the node pool.
+   * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + * + * @return Whether the upgradeOptions field is set. + */ + boolean hasUpgradeOptions(); + /** + * + * + *
+   * Specifies the Auto Upgrade knobs for the node pool.
+   * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + * + * @return The upgradeOptions. + */ + com.google.container.v1beta1.AutoUpgradeOptions getUpgradeOptions(); + /** + * + * + *
+   * Specifies the Auto Upgrade knobs for the node pool.
+   * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + */ + com.google.container.v1beta1.AutoUpgradeOptionsOrBuilder getUpgradeOptionsOrBuilder(); +} diff --git a/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 new file mode 100644 index 000000000000..f1f1d7e1f3ce --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeNetworkConfig.java @@ -0,0 +1,2610 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Parameters 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_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NodeNetworkConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+     * 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier result = + com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier.valueOf( + 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_; + /** + * + * + *
+     * 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier result = + com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier.valueOf( + 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(); + totalEgressBandwidthTier_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + externalIpEgressBandwidthTier_ = 0; + 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_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); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + to_bitField0_ |= 0x00000001; + } + result.totalEgressBandwidthTier_ = totalEgressBandwidthTier_; + if (((from_bitField0_ & 0x00000002) != 0)) { + to_bitField0_ |= 0x00000002; + } + result.externalIpEgressBandwidthTier_ = externalIpEgressBandwidthTier_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.container.v1beta1.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) { + bitField0_ |= 0x00000001; + totalEgressBandwidthTier_ = value; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier result = + com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier.valueOf( + 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) { + bitField0_ |= 0x00000002; + externalIpEgressBandwidthTier_ = value; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier result = + com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier.valueOf( + 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_; + /** + * + * + *
+   * Input only. Whether to create a new range for pod IPs in this node pool.
+   * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
+   * are not specified.
+   * If neither `create_pod_range` or `pod_range` are specified, the
+   * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
+   * used.
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The createPodRange. + */ + @java.lang.Override + public boolean getCreatePodRange() { + return createPodRange_; + } + + public static final int POD_RANGE_FIELD_NUMBER = 5; + private volatile java.lang.Object podRange_; + /** + * + * + *
+   * The ID of the secondary range for pod IPs.
+   * If `create_pod_range` is true, this ID is used for the new range.
+   * If `create_pod_range` is false, uses an existing secondary range with this
+   * ID.
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * string pod_range = 5; + * + * @return The podRange. + */ + @java.lang.Override + public java.lang.String getPodRange() { + java.lang.Object ref = podRange_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + podRange_ = s; + return s; + } + } + /** + * + * + *
+   * The ID of the secondary range for pod IPs.
+   * If `create_pod_range` is true, this ID is used for the new range.
+   * If `create_pod_range` is false, uses an existing secondary range with this
+   * ID.
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * string pod_range = 5; + * + * @return The bytes for podRange. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPodRangeBytes() { + java.lang.Object ref = podRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + podRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POD_IPV4_CIDR_BLOCK_FIELD_NUMBER = 6; + private volatile java.lang.Object podIpv4CidrBlock_; + /** + * + * + *
+   * The IP address range for pod IPs in this node pool.
+   * Only applicable if `create_pod_range` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * string pod_ipv4_cidr_block = 6; + * + * @return The podIpv4CidrBlock. + */ + @java.lang.Override + public java.lang.String getPodIpv4CidrBlock() { + java.lang.Object ref = podIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + podIpv4CidrBlock_ = s; + return s; + } + } + /** + * + * + *
+   * The IP address range for pod IPs in this node pool.
+   * Only applicable if `create_pod_range` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * string pod_ipv4_cidr_block = 6; + * + * @return The bytes for podIpv4CidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPodIpv4CidrBlockBytes() { + java.lang.Object ref = podIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + podIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENABLE_PRIVATE_NODES_FIELD_NUMBER = 9; + 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_ & 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_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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()); + } + 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()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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(); + } + 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(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + createPodRange_ = false; + + podRange_ = ""; + + podIpv4CidrBlock_ = ""; + + enablePrivateNodes_ = false; + bitField0_ = (bitField0_ & ~0x00000001); + if (networkPerformanceConfigBuilder_ == null) { + networkPerformanceConfig_ = null; + } else { + networkPerformanceConfigBuilder_.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_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); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.createPodRange_ = createPodRange_; + result.podRange_ = podRange_; + result.podIpv4CidrBlock_ = podIpv4CidrBlock_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enablePrivateNodes_ = enablePrivateNodes_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + if (networkPerformanceConfigBuilder_ == null) { + result.networkPerformanceConfig_ = networkPerformanceConfig_; + } else { + result.networkPerformanceConfig_ = networkPerformanceConfigBuilder_.build(); + } + to_bitField0_ |= 0x00000002; + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.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_; + onChanged(); + } + if (!other.getPodIpv4CidrBlock().isEmpty()) { + podIpv4CidrBlock_ = other.podIpv4CidrBlock_; + onChanged(); + } + if (other.hasEnablePrivateNodes()) { + setEnablePrivateNodes(other.getEnablePrivateNodes()); + } + if (other.hasNetworkPerformanceConfig()) { + mergeNetworkPerformanceConfig(other.getNetworkPerformanceConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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(); + + break; + } // case 32 + case 42: + { + podRange_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + podIpv4CidrBlock_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 72: + { + enablePrivateNodes_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 72 + case 90: + { + input.readMessage( + getNetworkPerformanceConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 90 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Input only. Whether to create a new range for pod IPs in this node pool.
+     * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
+     * are not specified.
+     * If neither `create_pod_range` or `pod_range` are specified, the
+     * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
+     * used.
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCreatePodRange() { + + createPodRange_ = false; + onChanged(); + return this; + } + + private java.lang.Object podRange_ = ""; + /** + * + * + *
+     * The ID of the secondary range for pod IPs.
+     * If `create_pod_range` is true, this ID is used for the new range.
+     * If `create_pod_range` is false, uses an existing secondary range with this
+     * ID.
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_range = 5; + * + * @return The podRange. + */ + public java.lang.String getPodRange() { + java.lang.Object ref = podRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + podRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The ID of the secondary range for pod IPs.
+     * If `create_pod_range` is true, this ID is used for the new range.
+     * If `create_pod_range` is false, uses an existing secondary range with this
+     * ID.
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_range = 5; + * + * @return The bytes for podRange. + */ + public com.google.protobuf.ByteString getPodRangeBytes() { + java.lang.Object ref = podRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + podRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The ID of the secondary range for pod IPs.
+     * If `create_pod_range` is true, this ID is used for the new range.
+     * If `create_pod_range` is false, uses an existing secondary range with this
+     * ID.
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_range = 5; + * + * @param value The podRange to set. + * @return This builder for chaining. + */ + public Builder setPodRange(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + podRange_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The ID of the secondary range for pod IPs.
+     * If `create_pod_range` is true, this ID is used for the new range.
+     * If `create_pod_range` is false, uses an existing secondary range with this
+     * ID.
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_range = 5; + * + * @return This builder for chaining. + */ + public Builder clearPodRange() { + + podRange_ = getDefaultInstance().getPodRange(); + onChanged(); + return this; + } + /** + * + * + *
+     * The ID of the secondary range for pod IPs.
+     * If `create_pod_range` is true, this ID is used for the new range.
+     * If `create_pod_range` is false, uses an existing secondary range with this
+     * ID.
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_range = 5; + * + * @param value The bytes for podRange to set. + * @return This builder for chaining. + */ + public Builder setPodRangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + podRange_ = value; + onChanged(); + return this; + } + + private java.lang.Object podIpv4CidrBlock_ = ""; + /** + * + * + *
+     * The IP address range for pod IPs in this node pool.
+     * Only applicable if `create_pod_range` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_ipv4_cidr_block = 6; + * + * @return The podIpv4CidrBlock. + */ + public java.lang.String getPodIpv4CidrBlock() { + java.lang.Object ref = podIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + podIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The IP address range for pod IPs in this node pool.
+     * Only applicable if `create_pod_range` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_ipv4_cidr_block = 6; + * + * @return The bytes for podIpv4CidrBlock. + */ + public com.google.protobuf.ByteString getPodIpv4CidrBlockBytes() { + java.lang.Object ref = podIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + podIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The IP address range for pod IPs in this node pool.
+     * Only applicable if `create_pod_range` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_ipv4_cidr_block = 6; + * + * @param value The podIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setPodIpv4CidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + podIpv4CidrBlock_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address range for pod IPs in this node pool.
+     * Only applicable if `create_pod_range` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_ipv4_cidr_block = 6; + * + * @return This builder for chaining. + */ + public Builder clearPodIpv4CidrBlock() { + + podIpv4CidrBlock_ = getDefaultInstance().getPodIpv4CidrBlock(); + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address range for pod IPs in this node pool.
+     * Only applicable if `create_pod_range` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_ipv4_cidr_block = 6; + * + * @param value The bytes for podIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setPodIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + podIpv4CidrBlock_ = value; + onChanged(); + return this; + } + + 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_ & 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_; + } + /** + * + * + *
+     * 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) { + bitField0_ |= 0x00000001; + enablePrivateNodes_ = value; + 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_ & ~0x00000001); + 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_ & 0x00000002) != 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; + onChanged(); + } else { + networkPerformanceConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + 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(); + onChanged(); + } else { + networkPerformanceConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + 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_ & 0x00000002) != 0) + && networkPerformanceConfig_ != null + && networkPerformanceConfig_ + != com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig + .getDefaultInstance()) { + networkPerformanceConfig_ = + com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.newBuilder( + networkPerformanceConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + networkPerformanceConfig_ = value; + } + onChanged(); + } else { + networkPerformanceConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + * + * + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + * + */ + public Builder clearNetworkPerformanceConfig() { + if (networkPerformanceConfigBuilder_ == null) { + networkPerformanceConfig_ = null; + onChanged(); + } else { + networkPerformanceConfigBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + 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_ |= 0x00000002; + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..286fbca3a5b4 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeNetworkConfigOrBuilder.java @@ -0,0 +1,195 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface 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(); +} 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 new file mode 100644 index 000000000000..fc0651c0f157 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePool.java @@ -0,0 +1,10006 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * NodePool contains the name and configuration for a cluster's node pool.
+ * Node pools are a set of nodes (i.e. VM's), with a common configuration and
+ * specification, under the control of the cluster master. They may have a set
+ * of Kubernetes labels applied to them, which may be used to reference them
+ * during pod scheduling. They may also be resized up or down, to accommodate
+ * the workload.
+ * These upgrade settings control the level of parallelism and the level of
+ * disruption caused by an upgrade.
+ * maxUnavailable controls the number of nodes that can be simultaneously
+ * unavailable.
+ * maxSurge controls the number of additional nodes that can be added to the
+ * node pool temporarily for the time of the upgrade to increase the number of
+ * available nodes.
+ * (maxUnavailable + maxSurge) determines the level of parallelism (how many
+ * nodes are being upgraded at the same time).
+ * Note: upgrades inevitably introduce some disruption since workloads need to
+ * be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
+ * this holds true. (Disruption stays within the limits of
+ * PodDisruptionBudget, if it is configured.)
+ * Consider a hypothetical node pool with 5 nodes having maxSurge=2,
+ * maxUnavailable=1. This means the upgrade process upgrades 3 nodes
+ * simultaneously. It creates 2 additional (upgraded) nodes, then it brings
+ * down 3 old (not yet upgraded) nodes at the same time. This ensures that
+ * there are always at least 4 nodes available.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.NodePool} + */ +public final class NodePool extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodePool) + NodePoolOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodePool.newBuilder() to construct. + private NodePool(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NodePool() { + name_ = ""; + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + selfLink_ = ""; + version_ = ""; + instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + status_ = 0; + statusMessage_ = ""; + conditions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NodePool(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+     * The maximum number of nodes that can be created beyond the current size
+     * of the node pool during the upgrade process.
+     * 
+ * + * int32 max_surge = 1; + * + * @return The maxSurge. + */ + @java.lang.Override + public int getMaxSurge() { + return maxSurge_; + } + + public static final int MAX_UNAVAILABLE_FIELD_NUMBER = 2; + private int maxUnavailable_; + /** + * + * + *
+     * The maximum number of nodes that can be simultaneously unavailable during
+     * the upgrade process. A node is considered available if its status is
+     * Ready.
+     * 
+ * + * int32 max_unavailable = 2; + * + * @return The maxUnavailable. + */ + @java.lang.Override + public int getMaxUnavailable() { + return maxUnavailable_; + } + + public static final int STRATEGY_FIELD_NUMBER = 3; + private int strategy_; + /** + * + * + *
+     * 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.NodePoolUpdateStrategy result = + com.google.container.v1beta1.NodePoolUpdateStrategy.valueOf(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 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(); + maxSurge_ = 0; + + maxUnavailable_ = 0; + + strategy_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + if (blueGreenSettingsBuilder_ == null) { + blueGreenSettings_ = null; + } else { + blueGreenSettingsBuilder_.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_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); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.maxSurge_ = maxSurge_; + result.maxUnavailable_ = maxUnavailable_; + if (((from_bitField0_ & 0x00000001) != 0)) { + to_bitField0_ |= 0x00000001; + } + result.strategy_ = strategy_; + if (((from_bitField0_ & 0x00000002) != 0)) { + if (blueGreenSettingsBuilder_ == null) { + result.blueGreenSettings_ = blueGreenSettings_; + } else { + result.blueGreenSettings_ = blueGreenSettingsBuilder_.build(); + } + to_bitField0_ |= 0x00000002; + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.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(); + + break; + } // case 8 + case 16: + { + maxUnavailable_ = input.readInt32(); + + break; + } // case 16 + case 24: + { + strategy_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 24 + case 34: + { + input.readMessage( + getBlueGreenSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + 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; + onChanged(); + return this; + } + /** + * + * + *
+       * The maximum number of nodes that can be created beyond the current size
+       * of the node pool during the upgrade process.
+       * 
+ * + * int32 max_surge = 1; + * + * @return This builder for chaining. + */ + public Builder clearMaxSurge() { + + maxSurge_ = 0; + onChanged(); + return this; + } + + private int maxUnavailable_; + /** + * + * + *
+       * The maximum number of nodes that can be simultaneously unavailable during
+       * the upgrade process. A node is considered available if its status is
+       * Ready.
+       * 
+ * + * int32 max_unavailable = 2; + * + * @return The maxUnavailable. + */ + @java.lang.Override + public int getMaxUnavailable() { + return maxUnavailable_; + } + /** + * + * + *
+       * The maximum number of nodes that can be simultaneously unavailable during
+       * the upgrade process. A node is considered available if its status is
+       * Ready.
+       * 
+ * + * int32 max_unavailable = 2; + * + * @param value The maxUnavailable to set. + * @return This builder for chaining. + */ + public Builder setMaxUnavailable(int value) { + + maxUnavailable_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The maximum number of nodes that can be simultaneously unavailable during
+       * the upgrade process. A node is considered available if its status is
+       * Ready.
+       * 
+ * + * int32 max_unavailable = 2; + * + * @return This builder for chaining. + */ + public Builder clearMaxUnavailable() { + + maxUnavailable_ = 0; + onChanged(); + return this; + } + + 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; + * + * @param value The enum numeric value on the wire for strategy to set. + * @return This builder for chaining. + */ + public Builder setStrategyValue(int value) { + bitField0_ |= 0x00000001; + strategy_ = value; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.NodePoolUpdateStrategy result = + com.google.container.v1beta1.NodePoolUpdateStrategy.valueOf(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_ |= 0x00000001; + 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_ & ~0x00000001); + 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_ & 0x00000002) != 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; + onChanged(); + } else { + blueGreenSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + 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(); + onChanged(); + } else { + blueGreenSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + 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_ & 0x00000002) != 0) + && blueGreenSettings_ != null + && blueGreenSettings_ + != com.google.container.v1beta1.BlueGreenSettings.getDefaultInstance()) { + blueGreenSettings_ = + com.google.container.v1beta1.BlueGreenSettings.newBuilder(blueGreenSettings_) + .mergeFrom(value) + .buildPartial(); + } else { + blueGreenSettings_ = value; + } + onChanged(); + } else { + blueGreenSettingsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + * + * + *
+       * Settings for blue-green upgrade strategy.
+       * 
+ * + * optional .google.container.v1beta1.BlueGreenSettings blue_green_settings = 4; + */ + public Builder clearBlueGreenSettings() { + if (blueGreenSettingsBuilder_ == null) { + blueGreenSettings_ = null; + onChanged(); + } else { + blueGreenSettingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + 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_ |= 0x00000002; + 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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.EMPTY; + greenInstanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bluePoolDeletionStartTime_ = ""; + greenPoolVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BlueGreenInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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 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.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_; + /** + * + * + *
+       * 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase result = + com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase.valueOf(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; + private com.google.protobuf.LazyStringList 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 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; + private com.google.protobuf.LazyStringList 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 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; + 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; + 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(); + phase_ = 0; + + blueInstanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + greenInstanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + 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); + int from_bitField0_ = bitField0_; + result.phase_ = phase_; + if (((bitField0_ & 0x00000001) != 0)) { + blueInstanceGroupUrls_ = blueInstanceGroupUrls_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.blueInstanceGroupUrls_ = blueInstanceGroupUrls_; + if (((bitField0_ & 0x00000002) != 0)) { + greenInstanceGroupUrls_ = greenInstanceGroupUrls_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.greenInstanceGroupUrls_ = greenInstanceGroupUrls_; + result.bluePoolDeletionStartTime_ = bluePoolDeletionStartTime_; + result.greenPoolVersion_ = greenPoolVersion_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.NodePool.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_ = (bitField0_ & ~0x00000001); + } else { + ensureBlueInstanceGroupUrlsIsMutable(); + blueInstanceGroupUrls_.addAll(other.blueInstanceGroupUrls_); + } + onChanged(); + } + if (!other.greenInstanceGroupUrls_.isEmpty()) { + if (greenInstanceGroupUrls_.isEmpty()) { + greenInstanceGroupUrls_ = other.greenInstanceGroupUrls_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureGreenInstanceGroupUrlsIsMutable(); + greenInstanceGroupUrls_.addAll(other.greenInstanceGroupUrls_); + } + onChanged(); + } + if (!other.getBluePoolDeletionStartTime().isEmpty()) { + bluePoolDeletionStartTime_ = other.bluePoolDeletionStartTime_; + onChanged(); + } + if (!other.getGreenPoolVersion().isEmpty()) { + greenPoolVersion_ = other.greenPoolVersion_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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(); + + break; + } // case 34 + case 42: + { + greenPoolVersion_ = input.readStringRequireUtf8(); + + 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; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase result = + com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase.valueOf(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(); + } + + 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() { + + phase_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList blueInstanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureBlueInstanceGroupUrlsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + blueInstanceGroupUrls_ = + new com.google.protobuf.LazyStringArrayList(blueInstanceGroupUrls_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+         * 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_.getUnmodifiableView(); + } + /** + * + * + *
+         * 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); + 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); + 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_); + 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.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + 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); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList greenInstanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureGreenInstanceGroupUrlsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + greenInstanceGroupUrls_ = + new com.google.protobuf.LazyStringArrayList(greenInstanceGroupUrls_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+         * 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_.getUnmodifiableView(); + } + /** + * + * + *
+         * 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); + 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); + 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_); + 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.EMPTY; + 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 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); + 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; + 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(); + 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; + 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; + onChanged(); + return this; + } + /** + * + * + *
+         * Version of green pool.
+         * 
+ * + * string green_pool_version = 5; + * + * @return This builder for chaining. + */ + public Builder clearGreenPoolVersion() { + + greenPoolVersion_ = getDefaultInstance().getGreenPoolVersion(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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; + } + } + + 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 blueGreenInfo_ != null; + } + /** + * + * + *
+     * 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 getBlueGreenInfo(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (blueGreenInfo_ != null) { + output.writeMessage(1, getBlueGreenInfo()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (blueGreenInfo_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (blueGreenInfoBuilder_ == null) { + blueGreenInfo_ = null; + } else { + blueGreenInfo_ = null; + 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 (blueGreenInfoBuilder_ == null) { + result.blueGreenInfo_ = blueGreenInfo_; + } else { + result.blueGreenInfo_ = blueGreenInfoBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.NodePool.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); + + 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 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 blueGreenInfoBuilder_ != null || blueGreenInfo_ != null; + } + /** + * + * + *
+       * 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; + onChanged(); + } else { + blueGreenInfoBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + blueGreenInfoBuilder_.setMessage(builderForValue.build()); + } + + 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 (blueGreenInfo_ != null) { + blueGreenInfo_ = + com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.newBuilder( + blueGreenInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + blueGreenInfo_ = value; + } + onChanged(); + } else { + blueGreenInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Information of a blue-green upgrade.
+       * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + * + */ + public Builder clearBlueGreenInfo() { + if (blueGreenInfoBuilder_ == null) { + blueGreenInfo_ = null; + onChanged(); + } else { + blueGreenInfo_ = null; + blueGreenInfoBuilder_ = null; + } + + 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() { + + 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(); + } + /** + * + * + *
+   * PlacementPolicy defines the placement policy used by the node pool.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NodePool.PlacementPolicy} + */ + public static final class PlacementPolicy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodePool.PlacementPolicy) + PlacementPolicyOrBuilder { + private static final long serialVersionUID = 0L; + // Use PlacementPolicy.newBuilder() to construct. + private PlacementPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PlacementPolicy() { + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PlacementPolicy(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodePool_PlacementPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodePool_PlacementPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodePool.PlacementPolicy.class, + com.google.container.v1beta1.NodePool.PlacementPolicy.Builder.class); + } + + /** + * + * + *
+     * Type defines the type of placement policy.
+     * 
+ * + * Protobuf enum {@code google.container.v1beta1.NodePool.PlacementPolicy.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * TYPE_UNSPECIFIED specifies no requirements on nodes
+       * placement.
+       * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
+       * COMPACT specifies node placement in the same availability domain to
+       * ensure low communication latency.
+       * 
+ * + * COMPACT = 1; + */ + COMPACT(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * TYPE_UNSPECIFIED specifies no requirements on nodes
+       * placement.
+       * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * COMPACT specifies node placement in the same availability domain to
+       * ensure low communication latency.
+       * 
+ * + * COMPACT = 1; + */ + public static final int COMPACT_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: + return TYPE_UNSPECIFIED; + case 1: + return COMPACT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1beta1.NodePool.PlacementPolicy.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.NodePool.PlacementPolicy.Type) + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + * + * + *
+     * The type of placement.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy.Type type = 1; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * The type of placement.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy.Type type = 1; + * + * @return The type. + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool.PlacementPolicy.Type getType() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.NodePool.PlacementPolicy.Type result = + com.google.container.v1beta1.NodePool.PlacementPolicy.Type.valueOf(type_); + return result == null + ? com.google.container.v1beta1.NodePool.PlacementPolicy.Type.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (type_ + != com.google.container.v1beta1.NodePool.PlacementPolicy.Type.TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, type_); + } + 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_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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.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(); + 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_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); + result.type_ = type_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.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()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 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; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.NodePool.PlacementPolicy.Type result = + com.google.container.v1beta1.NodePool.PlacementPolicy.Type.valueOf(type_); + return result == null + ? com.google.container.v1beta1.NodePool.PlacementPolicy.Type.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * The 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(); + } + + 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() { + + 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.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 static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name of the node pool.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the node pool.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONFIG_FIELD_NUMBER = 2; + private com.google.container.v1beta1.NodeConfig config_; + /** + * + * + *
+   * The node configuration of the pool.
+   * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + * + * @return Whether the config field is set. + */ + @java.lang.Override + public boolean hasConfig() { + return config_ != null; + } + /** + * + * + *
+   * The node configuration of the pool.
+   * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + * + * @return The config. + */ + @java.lang.Override + public com.google.container.v1beta1.NodeConfig getConfig() { + return config_ == null ? com.google.container.v1beta1.NodeConfig.getDefaultInstance() : config_; + } + /** + * + * + *
+   * The node configuration of the pool.
+   * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + */ + @java.lang.Override + public com.google.container.v1beta1.NodeConfigOrBuilder getConfigOrBuilder() { + return getConfig(); + } + + public static final int INITIAL_NODE_COUNT_FIELD_NUMBER = 3; + private int initialNodeCount_; + /** + * + * + *
+   * The initial node count for the pool. You must ensure that your
+   * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
+   * is sufficient for this number of instances. You must also have available
+   * firewall and routes quota.
+   * 
+ * + * int32 initial_node_count = 3; + * + * @return The initialNodeCount. + */ + @java.lang.Override + public int getInitialNodeCount() { + return initialNodeCount_; + } + + public static final int LOCATIONS_FIELD_NUMBER = 13; + private com.google.protobuf.LazyStringList locations_; + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes should be located.
+   * If this value is unspecified during node pool creation, the
+   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+   * value will be used, instead.
+   * Warning: changing node pool locations will result in nodes being added
+   * and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return A list containing the locations. + */ + public com.google.protobuf.ProtocolStringList getLocationsList() { + return locations_; + } + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes should be located.
+   * If this value is unspecified during node pool creation, the
+   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+   * value will be used, instead.
+   * Warning: changing node pool locations will result in nodes being added
+   * and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return The count of locations. + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes should be located.
+   * If this value is unspecified during node pool creation, the
+   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+   * value will be used, instead.
+   * Warning: changing node pool locations will result in nodes being added
+   * and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes should be located.
+   * If this value is unspecified during node pool creation, the
+   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+   * value will be used, instead.
+   * Warning: changing node pool locations will result in nodes being added
+   * and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + public com.google.protobuf.ByteString getLocationsBytes(int index) { + return locations_.getByteString(index); + } + + public static final int 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 networkConfig_ != null; + } + /** + * + * + *
+   * 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 getNetworkConfig(); + } + + public static final int SELF_LINK_FIELD_NUMBER = 100; + private volatile java.lang.Object selfLink_; + /** + * + * + *
+   * [Output only] Server-defined URL for the resource.
+   * 
+ * + * string self_link = 100; + * + * @return The selfLink. + */ + @java.lang.Override + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] Server-defined URL for the resource.
+   * 
+ * + * string self_link = 100; + * + * @return The bytes for selfLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 101; + private volatile java.lang.Object version_; + /** + * + * + *
+   * The version of the Kubernetes of this node.
+   * 
+ * + * string version = 101; + * + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + * + * + *
+   * The version of the Kubernetes of this node.
+   * 
+ * + * string version = 101; + * + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTANCE_GROUP_URLS_FIELD_NUMBER = 102; + private com.google.protobuf.LazyStringList instanceGroupUrls_; + /** + * + * + *
+   * [Output only] The resource URLs of the [managed instance
+   * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
+   * associated with this node pool.
+   * 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_; + /** + * + * + *
+   * [Output only] The status of the nodes in this pool instance.
+   * 
+ * + * .google.container.v1beta1.NodePool.Status status = 103; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + /** + * + * + *
+   * [Output only] The status of the nodes in this pool instance.
+   * 
+ * + * .google.container.v1beta1.NodePool.Status status = 103; + * + * @return The status. + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.NodePool.Status result = + com.google.container.v1beta1.NodePool.Status.valueOf(status_); + return result == null ? com.google.container.v1beta1.NodePool.Status.UNRECOGNIZED : result; + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 104; + private volatile java.lang.Object statusMessage_; + /** + * + * + *
+   * [Output only] Deprecated. Use conditions instead.
+   * Additional information about the current status of this
+   * node pool instance, if available.
+   * 
+ * + * string status_message = 104 [deprecated = true]; + * + * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3513 + * @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=3513 + * @return The bytes for statusMessage. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTOSCALING_FIELD_NUMBER = 4; + private com.google.container.v1beta1.NodePoolAutoscaling autoscaling_; + /** + * + * + *
+   * Autoscaler configuration for this NodePool. Autoscaler is enabled
+   * only if a valid configuration is present.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + * + * @return Whether the autoscaling field is set. + */ + @java.lang.Override + public boolean hasAutoscaling() { + return autoscaling_ != null; + } + /** + * + * + *
+   * Autoscaler configuration for this NodePool. Autoscaler is enabled
+   * only if a valid configuration is present.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + * + * @return The autoscaling. + */ + @java.lang.Override + public com.google.container.v1beta1.NodePoolAutoscaling getAutoscaling() { + return autoscaling_ == null + ? com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() + : autoscaling_; + } + /** + * + * + *
+   * Autoscaler configuration for this NodePool. Autoscaler is enabled
+   * only if a valid configuration is present.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + */ + @java.lang.Override + public com.google.container.v1beta1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder() { + return getAutoscaling(); + } + + public static final int MANAGEMENT_FIELD_NUMBER = 5; + private com.google.container.v1beta1.NodeManagement management_; + /** + * + * + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + * + * @return Whether the management field is set. + */ + @java.lang.Override + public boolean hasManagement() { + return management_ != null; + } + /** + * + * + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + * + * @return The management. + */ + @java.lang.Override + public com.google.container.v1beta1.NodeManagement getManagement() { + return management_ == null + ? com.google.container.v1beta1.NodeManagement.getDefaultInstance() + : management_; + } + /** + * + * + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + @java.lang.Override + public com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuilder() { + return getManagement(); + } + + public static final int MAX_PODS_CONSTRAINT_FIELD_NUMBER = 6; + private com.google.container.v1beta1.MaxPodsConstraint maxPodsConstraint_; + /** + * + * + *
+   * The constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool.
+   * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + * + * @return Whether the maxPodsConstraint field is set. + */ + @java.lang.Override + public boolean hasMaxPodsConstraint() { + return maxPodsConstraint_ != null; + } + /** + * + * + *
+   * The constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool.
+   * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + * + * @return The maxPodsConstraint. + */ + @java.lang.Override + public com.google.container.v1beta1.MaxPodsConstraint getMaxPodsConstraint() { + return maxPodsConstraint_ == null + ? com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance() + : maxPodsConstraint_; + } + /** + * + * + *
+   * The constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool.
+   * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + */ + @java.lang.Override + public com.google.container.v1beta1.MaxPodsConstraintOrBuilder getMaxPodsConstraintOrBuilder() { + return getMaxPodsConstraint(); + } + + public static final int CONDITIONS_FIELD_NUMBER = 105; + private java.util.List conditions_; + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + @java.lang.Override + public java.util.List getConditionsList() { + return conditions_; + } + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + @java.lang.Override + public java.util.List + getConditionsOrBuilderList() { + return conditions_; + } + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + @java.lang.Override + public int getConditionsCount() { + return conditions_.size(); + } + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + @java.lang.Override + public com.google.container.v1beta1.StatusCondition getConditions(int index) { + return conditions_.get(index); + } + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + @java.lang.Override + public com.google.container.v1beta1.StatusConditionOrBuilder getConditionsOrBuilder(int index) { + return conditions_.get(index); + } + + public static final int POD_IPV4_CIDR_SIZE_FIELD_NUMBER = 7; + private int podIpv4CidrSize_; + /** + * + * + *
+   * [Output only] The pod CIDR block size per node in this node pool.
+   * 
+ * + * int32 pod_ipv4_cidr_size = 7; + * + * @return The podIpv4CidrSize. + */ + @java.lang.Override + public int getPodIpv4CidrSize() { + return podIpv4CidrSize_; + } + + public static final int UPGRADE_SETTINGS_FIELD_NUMBER = 107; + private com.google.container.v1beta1.NodePool.UpgradeSettings upgradeSettings_; + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; + * + * @return Whether the upgradeSettings field is set. + */ + @java.lang.Override + public boolean hasUpgradeSettings() { + return upgradeSettings_ != null; + } + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; + * + * @return The upgradeSettings. + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool.UpgradeSettings getUpgradeSettings() { + return upgradeSettings_ == null + ? com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance() + : upgradeSettings_; + } + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder + getUpgradeSettingsOrBuilder() { + return getUpgradeSettings(); + } + + public static final int PLACEMENT_POLICY_FIELD_NUMBER = 108; + private com.google.container.v1beta1.NodePool.PlacementPolicy placementPolicy_; + /** + * + * + *
+   * Specifies the node placement policy.
+   * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + * + * @return Whether the placementPolicy field is set. + */ + @java.lang.Override + public boolean hasPlacementPolicy() { + return placementPolicy_ != null; + } + /** + * + * + *
+   * Specifies the node placement policy.
+   * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + * + * @return The placementPolicy. + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool.PlacementPolicy getPlacementPolicy() { + return placementPolicy_ == null + ? com.google.container.v1beta1.NodePool.PlacementPolicy.getDefaultInstance() + : placementPolicy_; + } + /** + * + * + *
+   * Specifies the node placement policy.
+   * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool.PlacementPolicyOrBuilder + getPlacementPolicyOrBuilder() { + return getPlacementPolicy(); + } + + 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 updateInfo_ != null; + } + /** + * + * + *
+   * 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 getUpdateInfo(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 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 (config_ != null) { + output.writeMessage(2, getConfig()); + } + if (initialNodeCount_ != 0) { + output.writeInt32(3, initialNodeCount_); + } + if (autoscaling_ != null) { + output.writeMessage(4, getAutoscaling()); + } + if (management_ != null) { + output.writeMessage(5, getManagement()); + } + if (maxPodsConstraint_ != null) { + output.writeMessage(6, getMaxPodsConstraint()); + } + if (podIpv4CidrSize_ != 0) { + output.writeInt32(7, podIpv4CidrSize_); + } + for (int i = 0; i < locations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, locations_.getRaw(i)); + } + if (networkConfig_ != null) { + 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 (upgradeSettings_ != null) { + output.writeMessage(107, getUpgradeSettings()); + } + if (placementPolicy_ != null) { + output.writeMessage(108, getPlacementPolicy()); + } + if (updateInfo_ != null) { + output.writeMessage(109, getUpdateInfo()); + } + getUnknownFields().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 (config_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConfig()); + } + if (initialNodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, initialNodeCount_); + } + if (autoscaling_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAutoscaling()); + } + if (management_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getManagement()); + } + if (maxPodsConstraint_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getMaxPodsConstraint()); + } + if (podIpv4CidrSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, podIpv4CidrSize_); + } + { + int dataSize = 0; + for (int i = 0; i < locations_.size(); i++) { + dataSize += computeStringSizeNoTag(locations_.getRaw(i)); + } + size += dataSize; + size += 1 * getLocationsList().size(); + } + if (networkConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getNetworkConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, selfLink_); + } + 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 (upgradeSettings_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(107, getUpgradeSettings()); + } + if (placementPolicy_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(108, getPlacementPolicy()); + } + if (updateInfo_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(109, getUpdateInfo()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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 = (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.
+   * These upgrade settings control the level of parallelism and the level of
+   * disruption caused by an upgrade.
+   * maxUnavailable controls the number of nodes that can be simultaneously
+   * unavailable.
+   * maxSurge controls the number of additional nodes that can be added to the
+   * node pool temporarily for the time of the upgrade to increase the number of
+   * available nodes.
+   * (maxUnavailable + maxSurge) determines the level of parallelism (how many
+   * nodes are being upgraded at the same time).
+   * Note: upgrades inevitably introduce some disruption since workloads need to
+   * be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
+   * this holds true. (Disruption stays within the limits of
+   * PodDisruptionBudget, if it is configured.)
+   * Consider a hypothetical node pool with 5 nodes having maxSurge=2,
+   * maxUnavailable=1. This means the upgrade process upgrades 3 nodes
+   * simultaneously. It creates 2 additional (upgraded) nodes, then it brings
+   * down 3 old (not yet upgraded) nodes at the same time. This ensures that
+   * there are always at least 4 nodes available.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NodePool} + */ + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (configBuilder_ == null) { + config_ = null; + } else { + config_ = null; + configBuilder_ = null; + } + initialNodeCount_ = 0; + + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (networkConfigBuilder_ == null) { + networkConfig_ = null; + } else { + networkConfig_ = null; + networkConfigBuilder_ = null; + } + selfLink_ = ""; + + version_ = ""; + + instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + status_ = 0; + + statusMessage_ = ""; + + if (autoscalingBuilder_ == null) { + autoscaling_ = null; + } else { + autoscaling_ = null; + autoscalingBuilder_ = null; + } + if (managementBuilder_ == null) { + management_ = null; + } else { + management_ = null; + managementBuilder_ = null; + } + if (maxPodsConstraintBuilder_ == null) { + maxPodsConstraint_ = null; + } else { + maxPodsConstraint_ = null; + maxPodsConstraintBuilder_ = null; + } + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + } else { + conditions_ = null; + conditionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + podIpv4CidrSize_ = 0; + + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = null; + } else { + upgradeSettings_ = null; + upgradeSettingsBuilder_ = null; + } + if (placementPolicyBuilder_ == null) { + placementPolicy_ = null; + } else { + placementPolicy_ = null; + placementPolicyBuilder_ = null; + } + if (updateInfoBuilder_ == null) { + updateInfo_ = null; + } else { + updateInfo_ = null; + updateInfoBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodePool_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NodePool getDefaultInstanceForType() { + return com.google.container.v1beta1.NodePool.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NodePool build() { + com.google.container.v1beta1.NodePool result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NodePool buildPartial() { + com.google.container.v1beta1.NodePool result = + new com.google.container.v1beta1.NodePool(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + if (configBuilder_ == null) { + result.config_ = config_; + } else { + result.config_ = configBuilder_.build(); + } + result.initialNodeCount_ = initialNodeCount_; + if (((bitField0_ & 0x00000001) != 0)) { + locations_ = locations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.locations_ = locations_; + if (networkConfigBuilder_ == null) { + result.networkConfig_ = networkConfig_; + } else { + result.networkConfig_ = networkConfigBuilder_.build(); + } + result.selfLink_ = selfLink_; + result.version_ = version_; + if (((bitField0_ & 0x00000002) != 0)) { + instanceGroupUrls_ = instanceGroupUrls_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.instanceGroupUrls_ = instanceGroupUrls_; + result.status_ = status_; + result.statusMessage_ = statusMessage_; + if (autoscalingBuilder_ == null) { + result.autoscaling_ = autoscaling_; + } else { + result.autoscaling_ = autoscalingBuilder_.build(); + } + if (managementBuilder_ == null) { + result.management_ = management_; + } else { + result.management_ = managementBuilder_.build(); + } + if (maxPodsConstraintBuilder_ == null) { + result.maxPodsConstraint_ = maxPodsConstraint_; + } else { + result.maxPodsConstraint_ = maxPodsConstraintBuilder_.build(); + } + if (conditionsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.conditions_ = conditions_; + } else { + result.conditions_ = conditionsBuilder_.build(); + } + result.podIpv4CidrSize_ = podIpv4CidrSize_; + if (upgradeSettingsBuilder_ == null) { + result.upgradeSettings_ = upgradeSettings_; + } else { + result.upgradeSettings_ = upgradeSettingsBuilder_.build(); + } + if (placementPolicyBuilder_ == null) { + result.placementPolicy_ = placementPolicy_; + } else { + result.placementPolicy_ = placementPolicyBuilder_.build(); + } + if (updateInfoBuilder_ == null) { + result.updateInfo_ = updateInfo_; + } else { + result.updateInfo_ = updateInfoBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.NodePool) { + return mergeFrom((com.google.container.v1beta1.NodePool) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NodePool other) { + if (other == com.google.container.v1beta1.NodePool.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasConfig()) { + mergeConfig(other.getConfig()); + } + if (other.getInitialNodeCount() != 0) { + setInitialNodeCount(other.getInitialNodeCount()); + } + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + if (other.hasNetworkConfig()) { + mergeNetworkConfig(other.getNetworkConfig()); + } + if (!other.getSelfLink().isEmpty()) { + selfLink_ = other.selfLink_; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (!other.instanceGroupUrls_.isEmpty()) { + if (instanceGroupUrls_.isEmpty()) { + instanceGroupUrls_ = other.instanceGroupUrls_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.addAll(other.instanceGroupUrls_); + } + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + onChanged(); + } + if (other.hasAutoscaling()) { + mergeAutoscaling(other.getAutoscaling()); + } + if (other.hasManagement()) { + mergeManagement(other.getManagement()); + } + if (other.hasMaxPodsConstraint()) { + mergeMaxPodsConstraint(other.getMaxPodsConstraint()); + } + if (conditionsBuilder_ == null) { + if (!other.conditions_.isEmpty()) { + if (conditions_.isEmpty()) { + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureConditionsIsMutable(); + conditions_.addAll(other.conditions_); + } + onChanged(); + } + } else { + if (!other.conditions_.isEmpty()) { + if (conditionsBuilder_.isEmpty()) { + conditionsBuilder_.dispose(); + conditionsBuilder_ = null; + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000004); + conditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getConditionsFieldBuilder() + : null; + } else { + conditionsBuilder_.addAllMessages(other.conditions_); + } + } + } + if (other.getPodIpv4CidrSize() != 0) { + setPodIpv4CidrSize(other.getPodIpv4CidrSize()); + } + if (other.hasUpgradeSettings()) { + mergeUpgradeSettings(other.getUpgradeSettings()); + } + if (other.hasPlacementPolicy()) { + mergePlacementPolicy(other.getPlacementPolicy()); + } + if (other.hasUpdateInfo()) { + mergeUpdateInfo(other.getUpdateInfo()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 24: + { + initialNodeCount_ = input.readInt32(); + + break; + } // case 24 + case 34: + { + input.readMessage(getAutoscalingFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + input.readMessage(getManagementFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 50: + { + input.readMessage( + getMaxPodsConstraintFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 56: + { + podIpv4CidrSize_ = input.readInt32(); + + 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); + + break; + } // case 114 + case 802: + { + selfLink_ = input.readStringRequireUtf8(); + + break; + } // case 802 + case 810: + { + version_ = input.readStringRequireUtf8(); + + break; + } // case 810 + case 818: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.add(s); + break; + } // case 818 + case 824: + { + status_ = input.readEnum(); + + break; + } // case 824 + case 834: + { + statusMessage_ = input.readStringRequireUtf8(); + + 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); + + break; + } // case 858 + case 866: + { + input.readMessage(getPlacementPolicyFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 866 + case 874: + { + input.readMessage(getUpdateInfoFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 874 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // 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; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the node pool.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the node pool.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NodeConfig config_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeConfig, + com.google.container.v1beta1.NodeConfig.Builder, + com.google.container.v1beta1.NodeConfigOrBuilder> + configBuilder_; + /** + * + * + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + * + * @return Whether the config field is set. + */ + public boolean hasConfig() { + return configBuilder_ != null || config_ != null; + } + /** + * + * + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + * + * @return The config. + */ + public com.google.container.v1beta1.NodeConfig getConfig() { + if (configBuilder_ == null) { + return config_ == null + ? com.google.container.v1beta1.NodeConfig.getDefaultInstance() + : config_; + } else { + return configBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + */ + public Builder setConfig(com.google.container.v1beta1.NodeConfig value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + config_ = value; + onChanged(); + } else { + configBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + */ + public Builder setConfig(com.google.container.v1beta1.NodeConfig.Builder builderForValue) { + if (configBuilder_ == null) { + config_ = builderForValue.build(); + onChanged(); + } else { + configBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + */ + public Builder mergeConfig(com.google.container.v1beta1.NodeConfig value) { + if (configBuilder_ == null) { + if (config_ != null) { + config_ = + com.google.container.v1beta1.NodeConfig.newBuilder(config_) + .mergeFrom(value) + .buildPartial(); + } else { + config_ = value; + } + onChanged(); + } else { + configBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + */ + public Builder clearConfig() { + if (configBuilder_ == null) { + config_ = null; + onChanged(); + } else { + config_ = null; + configBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + */ + public com.google.container.v1beta1.NodeConfig.Builder getConfigBuilder() { + + onChanged(); + return getConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + */ + public com.google.container.v1beta1.NodeConfigOrBuilder getConfigOrBuilder() { + if (configBuilder_ != null) { + return configBuilder_.getMessageOrBuilder(); + } else { + return config_ == null + ? com.google.container.v1beta1.NodeConfig.getDefaultInstance() + : config_; + } + } + /** + * + * + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeConfig, + com.google.container.v1beta1.NodeConfig.Builder, + com.google.container.v1beta1.NodeConfigOrBuilder> + getConfigFieldBuilder() { + if (configBuilder_ == null) { + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeConfig, + com.google.container.v1beta1.NodeConfig.Builder, + com.google.container.v1beta1.NodeConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); + config_ = null; + } + return configBuilder_; + } + + private int initialNodeCount_; + /** + * + * + *
+     * The initial node count for the pool. You must ensure that your
+     * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
+     * is sufficient for this number of instances. You must also have available
+     * firewall and routes quota.
+     * 
+ * + * int32 initial_node_count = 3; + * + * @return The initialNodeCount. + */ + @java.lang.Override + public int getInitialNodeCount() { + return initialNodeCount_; + } + /** + * + * + *
+     * The initial node count for the pool. You must ensure that your
+     * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
+     * is sufficient for this number of instances. You must also have available
+     * firewall and routes quota.
+     * 
+ * + * int32 initial_node_count = 3; + * + * @param value The initialNodeCount to set. + * @return This builder for chaining. + */ + public Builder setInitialNodeCount(int value) { + + initialNodeCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The initial node count for the pool. You must ensure that your
+     * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
+     * is sufficient for this number of instances. You must also have available
+     * firewall and routes quota.
+     * 
+ * + * int32 initial_node_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearInitialNodeCount() { + + initialNodeCount_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList locations_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureLocationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + locations_ = new com.google.protobuf.LazyStringArrayList(locations_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes should be located.
+     * If this value is unspecified during node pool creation, the
+     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+     * value will be used, instead.
+     * Warning: changing node pool locations will result in nodes being added
+     * and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @return A list containing the locations. + */ + public com.google.protobuf.ProtocolStringList getLocationsList() { + return locations_.getUnmodifiableView(); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes should be located.
+     * If this value is unspecified during node pool creation, the
+     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+     * value will be used, instead.
+     * Warning: changing node pool locations will result in nodes being added
+     * and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @return The count of locations. + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes should be located.
+     * If this value is unspecified during node pool creation, the
+     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+     * value will be used, instead.
+     * Warning: changing node pool locations will result in nodes being added
+     * and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes should be located.
+     * If this value is unspecified during node pool creation, the
+     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+     * value will be used, instead.
+     * Warning: changing node pool locations will result in nodes being added
+     * and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + public com.google.protobuf.ByteString getLocationsBytes(int index) { + return locations_.getByteString(index); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes should be located.
+     * If this value is unspecified during node pool creation, the
+     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+     * value will be used, instead.
+     * Warning: changing node pool locations will result in nodes being added
+     * and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param index The index to set the value at. + * @param value The locations to set. + * @return This builder for chaining. + */ + public Builder setLocations(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes should be located.
+     * If this value is unspecified during node pool creation, the
+     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+     * value will be used, instead.
+     * Warning: changing node pool locations will result in nodes being added
+     * and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param value The locations to add. + * @return This builder for chaining. + */ + public Builder addLocations(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes should be located.
+     * If this value is unspecified during node pool creation, the
+     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+     * value will be used, instead.
+     * Warning: changing node pool locations will result in nodes being added
+     * and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param values The locations to add. + * @return This builder for chaining. + */ + public Builder addAllLocations(java.lang.Iterable values) { + ensureLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes should be located.
+     * If this value is unspecified during node pool creation, the
+     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+     * value will be used, instead.
+     * Warning: changing node pool locations will result in nodes being added
+     * and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @return This builder for chaining. + */ + public Builder clearLocations() { + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes should be located.
+     * If this value is unspecified during node pool creation, the
+     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+     * value will be used, instead.
+     * Warning: changing node pool locations will result in nodes being added
+     * and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param value The bytes of the locations to add. + * @return This builder for chaining. + */ + public Builder addLocationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + return this; + } + + private 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 networkConfigBuilder_ != null || networkConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + networkConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + networkConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (networkConfig_ != null) { + networkConfig_ = + com.google.container.v1beta1.NodeNetworkConfig.newBuilder(networkConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + networkConfig_ = value; + } + onChanged(); + } else { + networkConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1beta1.NodeNetworkConfig network_config = 14; + */ + public Builder clearNetworkConfig() { + if (networkConfigBuilder_ == null) { + networkConfig_ = null; + onChanged(); + } else { + networkConfig_ = null; + networkConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1beta1.NodeNetworkConfig network_config = 14; + */ + public com.google.container.v1beta1.NodeNetworkConfig.Builder getNetworkConfigBuilder() { + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + * + * @return This builder for chaining. + */ + public Builder clearSelfLink() { + + selfLink_ = getDefaultInstance().getSelfLink(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + * + * @param value The bytes for selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + selfLink_ = value; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + /** + * + * + *
+     * The version of the Kubernetes of this node.
+     * 
+ * + * string version = 101; + * + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The version of the Kubernetes of this node.
+     * 
+ * + * string version = 101; + * + * @return The bytes for version. + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The version of the Kubernetes of this node.
+     * 
+ * + * string version = 101; + * + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The version of the Kubernetes of this node.
+     * 
+ * + * string version = 101; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * The version of the Kubernetes of this node.
+     * 
+ * + * string version = 101; + * + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList instanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureInstanceGroupUrlsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(instanceGroupUrls_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * [Output only] The resource URLs of the [managed instance
+     * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
+     * associated with this node pool.
+     * 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_.getUnmodifiableView(); + } + /** + * + * + *
+     * [Output only] The resource URLs of the [managed instance
+     * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
+     * associated with this node pool.
+     * 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); + 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); + 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_); + 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.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The resource URLs of the [managed instance
+     * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
+     * associated with this node pool.
+     * 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); + onChanged(); + return this; + } + + private int status_ = 0; + /** + * + * + *
+     * [Output only] The status of the nodes in this pool instance.
+     * 
+ * + * .google.container.v1beta1.NodePool.Status status = 103; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + /** + * + * + *
+     * [Output only] The status of the nodes in this pool instance.
+     * 
+ * + * .google.container.v1beta1.NodePool.Status status = 103; + * + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + + status_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The status of the nodes in this pool instance.
+     * 
+ * + * .google.container.v1beta1.NodePool.Status status = 103; + * + * @return The status. + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.NodePool.Status result = + com.google.container.v1beta1.NodePool.Status.valueOf(status_); + return result == null ? com.google.container.v1beta1.NodePool.Status.UNRECOGNIZED : result; + } + /** + * + * + *
+     * [Output only] The status of the nodes in this pool instance.
+     * 
+ * + * .google.container.v1beta1.NodePool.Status status = 103; + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(com.google.container.v1beta1.NodePool.Status value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The status of the nodes in this pool instance.
+     * 
+ * + * .google.container.v1beta1.NodePool.Status status = 103; + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + + status_ = 0; + onChanged(); + return this; + } + + private java.lang.Object statusMessage_ = ""; + /** + * + * + *
+     * [Output only] Deprecated. Use conditions instead.
+     * Additional information about the current status of this
+     * node pool instance, if available.
+     * 
+ * + * string status_message = 104 [deprecated = true]; + * + * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3513 + * @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=3513 + * @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=3513 + * @param value The statusMessage to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setStatusMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + statusMessage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Deprecated. Use conditions instead.
+     * Additional information about the current status of this
+     * node pool instance, if available.
+     * 
+ * + * string status_message = 104 [deprecated = true]; + * + * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3513 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearStatusMessage() { + + statusMessage_ = getDefaultInstance().getStatusMessage(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Deprecated. Use conditions instead.
+     * Additional information about the current status of this
+     * node pool instance, if available.
+     * 
+ * + * string status_message = 104 [deprecated = true]; + * + * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3513 + * @param value The bytes for statusMessage to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + statusMessage_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NodePoolAutoscaling autoscaling_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolAutoscaling, + com.google.container.v1beta1.NodePoolAutoscaling.Builder, + com.google.container.v1beta1.NodePoolAutoscalingOrBuilder> + autoscalingBuilder_; + /** + * + * + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + * + * @return Whether the autoscaling field is set. + */ + public boolean hasAutoscaling() { + return autoscalingBuilder_ != null || autoscaling_ != null; + } + /** + * + * + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + * + * @return The autoscaling. + */ + public com.google.container.v1beta1.NodePoolAutoscaling getAutoscaling() { + if (autoscalingBuilder_ == null) { + return autoscaling_ == null + ? com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() + : autoscaling_; + } else { + return autoscalingBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + */ + public Builder setAutoscaling(com.google.container.v1beta1.NodePoolAutoscaling value) { + if (autoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autoscaling_ = value; + onChanged(); + } else { + autoscalingBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + */ + public Builder setAutoscaling( + com.google.container.v1beta1.NodePoolAutoscaling.Builder builderForValue) { + if (autoscalingBuilder_ == null) { + autoscaling_ = builderForValue.build(); + onChanged(); + } else { + autoscalingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + */ + public Builder mergeAutoscaling(com.google.container.v1beta1.NodePoolAutoscaling value) { + if (autoscalingBuilder_ == null) { + if (autoscaling_ != null) { + autoscaling_ = + com.google.container.v1beta1.NodePoolAutoscaling.newBuilder(autoscaling_) + .mergeFrom(value) + .buildPartial(); + } else { + autoscaling_ = value; + } + onChanged(); + } else { + autoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + */ + public Builder clearAutoscaling() { + if (autoscalingBuilder_ == null) { + autoscaling_ = null; + onChanged(); + } else { + autoscaling_ = null; + autoscalingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + */ + public com.google.container.v1beta1.NodePoolAutoscaling.Builder getAutoscalingBuilder() { + + onChanged(); + return getAutoscalingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + */ + public com.google.container.v1beta1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder() { + if (autoscalingBuilder_ != null) { + return autoscalingBuilder_.getMessageOrBuilder(); + } else { + return autoscaling_ == null + ? com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() + : autoscaling_; + } + } + /** + * + * + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolAutoscaling, + com.google.container.v1beta1.NodePoolAutoscaling.Builder, + com.google.container.v1beta1.NodePoolAutoscalingOrBuilder> + getAutoscalingFieldBuilder() { + if (autoscalingBuilder_ == null) { + autoscalingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolAutoscaling, + com.google.container.v1beta1.NodePoolAutoscaling.Builder, + com.google.container.v1beta1.NodePoolAutoscalingOrBuilder>( + getAutoscaling(), getParentForChildren(), isClean()); + autoscaling_ = null; + } + return autoscalingBuilder_; + } + + private com.google.container.v1beta1.NodeManagement management_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeManagement, + com.google.container.v1beta1.NodeManagement.Builder, + com.google.container.v1beta1.NodeManagementOrBuilder> + managementBuilder_; + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + * + * @return Whether the management field is set. + */ + public boolean hasManagement() { + return managementBuilder_ != null || management_ != null; + } + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + * + * @return The management. + */ + public com.google.container.v1beta1.NodeManagement getManagement() { + if (managementBuilder_ == null) { + return management_ == null + ? com.google.container.v1beta1.NodeManagement.getDefaultInstance() + : management_; + } else { + return managementBuilder_.getMessage(); + } + } + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + public Builder setManagement(com.google.container.v1beta1.NodeManagement value) { + if (managementBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + management_ = value; + onChanged(); + } else { + managementBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + public Builder setManagement( + com.google.container.v1beta1.NodeManagement.Builder builderForValue) { + if (managementBuilder_ == null) { + management_ = builderForValue.build(); + onChanged(); + } else { + managementBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + public Builder mergeManagement(com.google.container.v1beta1.NodeManagement value) { + if (managementBuilder_ == null) { + if (management_ != null) { + management_ = + com.google.container.v1beta1.NodeManagement.newBuilder(management_) + .mergeFrom(value) + .buildPartial(); + } else { + management_ = value; + } + onChanged(); + } else { + managementBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + public Builder clearManagement() { + if (managementBuilder_ == null) { + management_ = null; + onChanged(); + } else { + management_ = null; + managementBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + public com.google.container.v1beta1.NodeManagement.Builder getManagementBuilder() { + + onChanged(); + return getManagementFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + public com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuilder() { + if (managementBuilder_ != null) { + return managementBuilder_.getMessageOrBuilder(); + } else { + return management_ == null + ? com.google.container.v1beta1.NodeManagement.getDefaultInstance() + : management_; + } + } + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeManagement, + com.google.container.v1beta1.NodeManagement.Builder, + com.google.container.v1beta1.NodeManagementOrBuilder> + getManagementFieldBuilder() { + if (managementBuilder_ == null) { + managementBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeManagement, + com.google.container.v1beta1.NodeManagement.Builder, + com.google.container.v1beta1.NodeManagementOrBuilder>( + getManagement(), getParentForChildren(), isClean()); + management_ = null; + } + return managementBuilder_; + } + + private com.google.container.v1beta1.MaxPodsConstraint maxPodsConstraint_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaxPodsConstraint, + com.google.container.v1beta1.MaxPodsConstraint.Builder, + com.google.container.v1beta1.MaxPodsConstraintOrBuilder> + maxPodsConstraintBuilder_; + /** + * + * + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + * + * @return Whether the maxPodsConstraint field is set. + */ + public boolean hasMaxPodsConstraint() { + return maxPodsConstraintBuilder_ != null || maxPodsConstraint_ != null; + } + /** + * + * + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + * + * @return The maxPodsConstraint. + */ + public com.google.container.v1beta1.MaxPodsConstraint getMaxPodsConstraint() { + if (maxPodsConstraintBuilder_ == null) { + return maxPodsConstraint_ == null + ? com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance() + : maxPodsConstraint_; + } else { + return maxPodsConstraintBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + */ + public Builder setMaxPodsConstraint(com.google.container.v1beta1.MaxPodsConstraint value) { + if (maxPodsConstraintBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maxPodsConstraint_ = value; + onChanged(); + } else { + maxPodsConstraintBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + */ + public Builder setMaxPodsConstraint( + com.google.container.v1beta1.MaxPodsConstraint.Builder builderForValue) { + if (maxPodsConstraintBuilder_ == null) { + maxPodsConstraint_ = builderForValue.build(); + onChanged(); + } else { + maxPodsConstraintBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + */ + public Builder mergeMaxPodsConstraint(com.google.container.v1beta1.MaxPodsConstraint value) { + if (maxPodsConstraintBuilder_ == null) { + if (maxPodsConstraint_ != null) { + maxPodsConstraint_ = + com.google.container.v1beta1.MaxPodsConstraint.newBuilder(maxPodsConstraint_) + .mergeFrom(value) + .buildPartial(); + } else { + maxPodsConstraint_ = value; + } + onChanged(); + } else { + maxPodsConstraintBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + */ + public Builder clearMaxPodsConstraint() { + if (maxPodsConstraintBuilder_ == null) { + maxPodsConstraint_ = null; + onChanged(); + } else { + maxPodsConstraint_ = null; + maxPodsConstraintBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + */ + public com.google.container.v1beta1.MaxPodsConstraint.Builder getMaxPodsConstraintBuilder() { + + onChanged(); + return getMaxPodsConstraintFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + */ + public com.google.container.v1beta1.MaxPodsConstraintOrBuilder getMaxPodsConstraintOrBuilder() { + if (maxPodsConstraintBuilder_ != null) { + return maxPodsConstraintBuilder_.getMessageOrBuilder(); + } else { + return maxPodsConstraint_ == null + ? com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance() + : maxPodsConstraint_; + } + } + /** + * + * + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaxPodsConstraint, + com.google.container.v1beta1.MaxPodsConstraint.Builder, + com.google.container.v1beta1.MaxPodsConstraintOrBuilder> + getMaxPodsConstraintFieldBuilder() { + if (maxPodsConstraintBuilder_ == null) { + maxPodsConstraintBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaxPodsConstraint, + com.google.container.v1beta1.MaxPodsConstraint.Builder, + com.google.container.v1beta1.MaxPodsConstraintOrBuilder>( + getMaxPodsConstraint(), getParentForChildren(), isClean()); + maxPodsConstraint_ = null; + } + return maxPodsConstraintBuilder_; + } + + private java.util.List conditions_ = + java.util.Collections.emptyList(); + + private void ensureConditionsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + conditions_ = + new java.util.ArrayList(conditions_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, + com.google.container.v1beta1.StatusCondition.Builder, + com.google.container.v1beta1.StatusConditionOrBuilder> + conditionsBuilder_; + + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public java.util.List getConditionsList() { + if (conditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conditions_); + } else { + return conditionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public int getConditionsCount() { + if (conditionsBuilder_ == null) { + return conditions_.size(); + } else { + return conditionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public com.google.container.v1beta1.StatusCondition getConditions(int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public Builder setConditions(int index, com.google.container.v1beta1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.set(index, value); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public Builder setConditions( + int index, com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.set(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public Builder addConditions(com.google.container.v1beta1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(value); + onChanged(); + } else { + conditionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public Builder addConditions(int index, com.google.container.v1beta1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(index, value); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public Builder addConditions( + com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public Builder addConditions( + int index, com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public Builder addAllConditions( + java.lang.Iterable values) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); + onChanged(); + } else { + conditionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public Builder clearConditions() { + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + conditionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public Builder removeConditions(int index) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.remove(index); + onChanged(); + } else { + conditionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public com.google.container.v1beta1.StatusCondition.Builder getConditionsBuilder(int index) { + return getConditionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public com.google.container.v1beta1.StatusConditionOrBuilder getConditionsOrBuilder(int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public java.util.List + getConditionsOrBuilderList() { + if (conditionsBuilder_ != null) { + return conditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conditions_); + } + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public com.google.container.v1beta1.StatusCondition.Builder addConditionsBuilder() { + return getConditionsFieldBuilder() + .addBuilder(com.google.container.v1beta1.StatusCondition.getDefaultInstance()); + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public com.google.container.v1beta1.StatusCondition.Builder addConditionsBuilder(int index) { + return getConditionsFieldBuilder() + .addBuilder(index, com.google.container.v1beta1.StatusCondition.getDefaultInstance()); + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public java.util.List + getConditionsBuilderList() { + return getConditionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, + com.google.container.v1beta1.StatusCondition.Builder, + com.google.container.v1beta1.StatusConditionOrBuilder> + getConditionsFieldBuilder() { + if (conditionsBuilder_ == null) { + conditionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, + com.google.container.v1beta1.StatusCondition.Builder, + com.google.container.v1beta1.StatusConditionOrBuilder>( + conditions_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + conditions_ = null; + } + return conditionsBuilder_; + } + + private int podIpv4CidrSize_; + /** + * + * + *
+     * [Output only] The pod CIDR block size per node in this node pool.
+     * 
+ * + * int32 pod_ipv4_cidr_size = 7; + * + * @return The podIpv4CidrSize. + */ + @java.lang.Override + public int getPodIpv4CidrSize() { + return podIpv4CidrSize_; + } + /** + * + * + *
+     * [Output only] The pod CIDR block size per node in this node pool.
+     * 
+ * + * int32 pod_ipv4_cidr_size = 7; + * + * @param value The podIpv4CidrSize to set. + * @return This builder for chaining. + */ + public Builder setPodIpv4CidrSize(int value) { + + podIpv4CidrSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The pod CIDR block size per node in this node pool.
+     * 
+ * + * int32 pod_ipv4_cidr_size = 7; + * + * @return This builder for chaining. + */ + public Builder clearPodIpv4CidrSize() { + + podIpv4CidrSize_ = 0; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NodePool.UpgradeSettings upgradeSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool.UpgradeSettings, + com.google.container.v1beta1.NodePool.UpgradeSettings.Builder, + com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder> + upgradeSettingsBuilder_; + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; + * + * @return Whether the upgradeSettings field is set. + */ + public boolean hasUpgradeSettings() { + return upgradeSettingsBuilder_ != null || upgradeSettings_ != null; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; + * + * @return The upgradeSettings. + */ + public com.google.container.v1beta1.NodePool.UpgradeSettings getUpgradeSettings() { + if (upgradeSettingsBuilder_ == null) { + return upgradeSettings_ == null + ? com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance() + : upgradeSettings_; + } else { + return upgradeSettingsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + public Builder setUpgradeSettings(com.google.container.v1beta1.NodePool.UpgradeSettings value) { + if (upgradeSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + upgradeSettings_ = value; + onChanged(); + } else { + upgradeSettingsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + public Builder setUpgradeSettings( + com.google.container.v1beta1.NodePool.UpgradeSettings.Builder builderForValue) { + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = builderForValue.build(); + onChanged(); + } else { + upgradeSettingsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + public Builder mergeUpgradeSettings( + com.google.container.v1beta1.NodePool.UpgradeSettings value) { + if (upgradeSettingsBuilder_ == null) { + if (upgradeSettings_ != null) { + upgradeSettings_ = + com.google.container.v1beta1.NodePool.UpgradeSettings.newBuilder(upgradeSettings_) + .mergeFrom(value) + .buildPartial(); + } else { + upgradeSettings_ = value; + } + onChanged(); + } else { + upgradeSettingsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + public Builder clearUpgradeSettings() { + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = null; + onChanged(); + } else { + upgradeSettings_ = null; + upgradeSettingsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + public com.google.container.v1beta1.NodePool.UpgradeSettings.Builder + getUpgradeSettingsBuilder() { + + onChanged(); + return getUpgradeSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + public com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder + getUpgradeSettingsOrBuilder() { + if (upgradeSettingsBuilder_ != null) { + return upgradeSettingsBuilder_.getMessageOrBuilder(); + } else { + return upgradeSettings_ == null + ? com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance() + : upgradeSettings_; + } + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool.UpgradeSettings, + com.google.container.v1beta1.NodePool.UpgradeSettings.Builder, + com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder> + getUpgradeSettingsFieldBuilder() { + if (upgradeSettingsBuilder_ == null) { + upgradeSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool.UpgradeSettings, + com.google.container.v1beta1.NodePool.UpgradeSettings.Builder, + com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder>( + getUpgradeSettings(), getParentForChildren(), isClean()); + upgradeSettings_ = null; + } + return upgradeSettingsBuilder_; + } + + private com.google.container.v1beta1.NodePool.PlacementPolicy placementPolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool.PlacementPolicy, + com.google.container.v1beta1.NodePool.PlacementPolicy.Builder, + com.google.container.v1beta1.NodePool.PlacementPolicyOrBuilder> + placementPolicyBuilder_; + /** + * + * + *
+     * Specifies the node placement policy.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + * + * @return Whether the placementPolicy field is set. + */ + public boolean hasPlacementPolicy() { + return placementPolicyBuilder_ != null || placementPolicy_ != null; + } + /** + * + * + *
+     * Specifies the node placement policy.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + * + * @return The placementPolicy. + */ + public com.google.container.v1beta1.NodePool.PlacementPolicy getPlacementPolicy() { + if (placementPolicyBuilder_ == null) { + return placementPolicy_ == null + ? com.google.container.v1beta1.NodePool.PlacementPolicy.getDefaultInstance() + : placementPolicy_; + } else { + return placementPolicyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Specifies the node placement policy.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + */ + public Builder setPlacementPolicy(com.google.container.v1beta1.NodePool.PlacementPolicy value) { + if (placementPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + placementPolicy_ = value; + onChanged(); + } else { + placementPolicyBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Specifies the node placement policy.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + */ + public Builder setPlacementPolicy( + com.google.container.v1beta1.NodePool.PlacementPolicy.Builder builderForValue) { + if (placementPolicyBuilder_ == null) { + placementPolicy_ = builderForValue.build(); + onChanged(); + } else { + placementPolicyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Specifies the node placement policy.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + */ + public Builder mergePlacementPolicy( + com.google.container.v1beta1.NodePool.PlacementPolicy value) { + if (placementPolicyBuilder_ == null) { + if (placementPolicy_ != null) { + placementPolicy_ = + com.google.container.v1beta1.NodePool.PlacementPolicy.newBuilder(placementPolicy_) + .mergeFrom(value) + .buildPartial(); + } else { + placementPolicy_ = value; + } + onChanged(); + } else { + placementPolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Specifies the node placement policy.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + */ + public Builder clearPlacementPolicy() { + if (placementPolicyBuilder_ == null) { + placementPolicy_ = null; + onChanged(); + } else { + placementPolicy_ = null; + placementPolicyBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Specifies the node placement policy.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + */ + public com.google.container.v1beta1.NodePool.PlacementPolicy.Builder + getPlacementPolicyBuilder() { + + onChanged(); + return getPlacementPolicyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Specifies the node placement policy.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + */ + public com.google.container.v1beta1.NodePool.PlacementPolicyOrBuilder + getPlacementPolicyOrBuilder() { + if (placementPolicyBuilder_ != null) { + return placementPolicyBuilder_.getMessageOrBuilder(); + } else { + return placementPolicy_ == null + ? com.google.container.v1beta1.NodePool.PlacementPolicy.getDefaultInstance() + : placementPolicy_; + } + } + /** + * + * + *
+     * Specifies the node placement policy.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool.PlacementPolicy, + com.google.container.v1beta1.NodePool.PlacementPolicy.Builder, + com.google.container.v1beta1.NodePool.PlacementPolicyOrBuilder> + getPlacementPolicyFieldBuilder() { + if (placementPolicyBuilder_ == null) { + placementPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool.PlacementPolicy, + com.google.container.v1beta1.NodePool.PlacementPolicy.Builder, + com.google.container.v1beta1.NodePool.PlacementPolicyOrBuilder>( + getPlacementPolicy(), getParentForChildren(), isClean()); + placementPolicy_ = null; + } + return placementPolicyBuilder_; + } + + 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 updateInfoBuilder_ != null || updateInfo_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + updateInfoBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + updateInfoBuilder_.setMessage(builderForValue.build()); + } + + 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 (updateInfo_ != null) { + updateInfo_ = + com.google.container.v1beta1.NodePool.UpdateInfo.newBuilder(updateInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + updateInfo_ = value; + } + onChanged(); + } else { + updateInfoBuilder_.mergeFrom(value); + } + + 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() { + if (updateInfoBuilder_ == null) { + updateInfo_ = null; + onChanged(); + } else { + updateInfo_ = null; + updateInfoBuilder_ = null; + } + + 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() { + + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..519b91f4c71a --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoConfig.java @@ -0,0 +1,742 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * node 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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); + } + + 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 networkTags_ != null; + } + /** + * + * + *
+   * 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 getNetworkTags(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (networkTags_ != null) { + output.writeMessage(1, getNetworkTags()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (networkTags_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNetworkTags()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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 (!getUnknownFields().equals(other.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(); + } + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (networkTagsBuilder_ == null) { + networkTags_ = null; + } else { + networkTags_ = null; + networkTagsBuilder_ = 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 (networkTagsBuilder_ == null) { + result.networkTags_ = networkTags_; + } else { + result.networkTags_ = networkTagsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.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()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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); + + 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 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 networkTagsBuilder_ != null || networkTags_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + networkTagsBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + networkTagsBuilder_.setMessage(builderForValue.build()); + } + + 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 (networkTags_ != null) { + networkTags_ = + com.google.container.v1beta1.NetworkTags.newBuilder(networkTags_) + .mergeFrom(value) + .buildPartial(); + } else { + networkTags_ = value; + } + onChanged(); + } else { + networkTagsBuilder_.mergeFrom(value); + } + + 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() { + if (networkTagsBuilder_ == null) { + networkTags_ = null; + onChanged(); + } else { + networkTags_ = null; + networkTagsBuilder_ = null; + } + + 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() { + + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..08428ae76835 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoConfigOrBuilder.java @@ -0,0 +1,69 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface 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(); +} 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 new file mode 100644 index 000000000000..09d6231f6ee5 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoscaling.java @@ -0,0 +1,1342 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * NodePoolAutoscaling contains information required by cluster autoscaler to
+ * adjust the size of the node pool to the current cluster usage.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.NodePoolAutoscaling} + */ +public final class NodePoolAutoscaling extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodePoolAutoscaling) + NodePoolAutoscalingOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodePoolAutoscaling.newBuilder() to construct. + private NodePoolAutoscaling(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NodePoolAutoscaling() { + locationPolicy_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NodePoolAutoscaling(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * Is autoscaling enabled for this node pool.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int MIN_NODE_COUNT_FIELD_NUMBER = 2; + private int minNodeCount_; + /** + * + * + *
+   * Minimum number of nodes 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_; + /** + * + * + *
+   * 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_; + /** + * + * + *
+   * 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_; + /** + * + * + *
+   * 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.NodePoolAutoscaling.LocationPolicy result = + com.google.container.v1beta1.NodePoolAutoscaling.LocationPolicy.valueOf(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_; + /** + * + * + *
+   * 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_; + /** + * + * + *
+   * 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(); + 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); + result.enabled_ = enabled_; + result.minNodeCount_ = minNodeCount_; + result.maxNodeCount_ = maxNodeCount_; + result.autoprovisioned_ = autoprovisioned_; + result.locationPolicy_ = locationPolicy_; + result.totalMinNodeCount_ = totalMinNodeCount_; + result.totalMaxNodeCount_ = totalMaxNodeCount_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.NodePoolAutoscaling) { + return mergeFrom((com.google.container.v1beta1.NodePoolAutoscaling) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NodePoolAutoscaling other) { + if (other == com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (other.getMinNodeCount() != 0) { + setMinNodeCount(other.getMinNodeCount()); + } + if (other.getMaxNodeCount() != 0) { + setMaxNodeCount(other.getMaxNodeCount()); + } + if (other.getAutoprovisioned() != false) { + setAutoprovisioned(other.getAutoprovisioned()); + } + 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(); + + break; + } // case 8 + case 16: + { + minNodeCount_ = input.readInt32(); + + break; + } // case 16 + case 24: + { + maxNodeCount_ = input.readInt32(); + + break; + } // case 24 + case 32: + { + autoprovisioned_ = input.readBool(); + + break; + } // case 32 + case 40: + { + locationPolicy_ = input.readEnum(); + + break; + } // case 40 + case 48: + { + totalMinNodeCount_ = input.readInt32(); + + break; + } // case 48 + case 56: + { + totalMaxNodeCount_ = input.readInt32(); + + 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 boolean enabled_; + /** + * + * + *
+     * Is autoscaling enabled for this node pool.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Is autoscaling enabled for this node pool.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Is autoscaling enabled for this node pool.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + private int minNodeCount_; + /** + * + * + *
+     * Minimum number of nodes 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; + 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() { + + 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; + 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() { + + maxNodeCount_ = 0; + onChanged(); + return this; + } + + private boolean autoprovisioned_; + /** + * + * + *
+     * Can this node pool be deleted automatically.
+     * 
+ * + * bool autoprovisioned = 4; + * + * @return The autoprovisioned. + */ + @java.lang.Override + public boolean getAutoprovisioned() { + return autoprovisioned_; + } + /** + * + * + *
+     * Can this node pool be deleted automatically.
+     * 
+ * + * bool autoprovisioned = 4; + * + * @param value The autoprovisioned to set. + * @return This builder for chaining. + */ + public Builder setAutoprovisioned(boolean value) { + + autoprovisioned_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Can this node pool be deleted automatically.
+     * 
+ * + * bool autoprovisioned = 4; + * + * @return This builder for chaining. + */ + public Builder clearAutoprovisioned() { + + autoprovisioned_ = false; + onChanged(); + return this; + } + + 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; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.NodePoolAutoscaling.LocationPolicy result = + com.google.container.v1beta1.NodePoolAutoscaling.LocationPolicy.valueOf(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(); + } + + 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() { + + 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; + 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() { + + 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; + 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() { + + 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 new file mode 100644 index 000000000000..af41c88c2db5 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoscalingOrBuilder.java @@ -0,0 +1,136 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface NodePoolAutoscalingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodePoolAutoscaling) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Is autoscaling enabled for this node pool.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); + + /** + * + * + *
+   * Minimum number of nodes 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 new file mode 100644 index 000000000000..1137553747f2 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolDefaults.java @@ -0,0 +1,705 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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); + } + + 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 nodeConfigDefaults_ != null; + } + /** + * + * + *
+   * 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 getNodeConfigDefaults(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (nodeConfigDefaults_ != null) { + output.writeMessage(1, getNodeConfigDefaults()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (nodeConfigDefaults_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNodeConfigDefaults()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (nodeConfigDefaultsBuilder_ == null) { + nodeConfigDefaults_ = null; + } else { + nodeConfigDefaults_ = null; + nodeConfigDefaultsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.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 (nodeConfigDefaultsBuilder_ == null) { + result.nodeConfigDefaults_ = nodeConfigDefaults_; + } else { + result.nodeConfigDefaults_ = nodeConfigDefaultsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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); + + 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 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 nodeConfigDefaultsBuilder_ != null || nodeConfigDefaults_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + nodeConfigDefaultsBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + nodeConfigDefaultsBuilder_.setMessage(builderForValue.build()); + } + + 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 (nodeConfigDefaults_ != null) { + nodeConfigDefaults_ = + com.google.container.v1beta1.NodeConfigDefaults.newBuilder(nodeConfigDefaults_) + .mergeFrom(value) + .buildPartial(); + } else { + nodeConfigDefaults_ = value; + } + onChanged(); + } else { + nodeConfigDefaultsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1beta1.NodeConfigDefaults node_config_defaults = 1; + */ + public Builder clearNodeConfigDefaults() { + if (nodeConfigDefaultsBuilder_ == null) { + nodeConfigDefaults_ = null; + onChanged(); + } else { + nodeConfigDefaults_ = null; + nodeConfigDefaultsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1beta1.NodeConfigDefaults node_config_defaults = 1; + */ + public com.google.container.v1beta1.NodeConfigDefaults.Builder getNodeConfigDefaultsBuilder() { + + 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 new file mode 100644 index 000000000000..b0b465f4f679 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolDefaultsOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +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 new file mode 100644 index 000000000000..8c4169eeaa6f --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolLoggingConfig.java @@ -0,0 +1,704 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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); + } + + 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 variantConfig_ != null; + } + /** + * + * + *
+   * 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 getVariantConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (variantConfig_ != null) { + output.writeMessage(1, getVariantConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (variantConfig_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (variantConfigBuilder_ == null) { + variantConfig_ = null; + } else { + variantConfig_ = null; + 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 (variantConfigBuilder_ == null) { + result.variantConfig_ = variantConfig_; + } else { + result.variantConfig_ = variantConfigBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.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); + + 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 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 variantConfigBuilder_ != null || variantConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + variantConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + variantConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (variantConfig_ != null) { + variantConfig_ = + com.google.container.v1beta1.LoggingVariantConfig.newBuilder(variantConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + variantConfig_ = value; + } + onChanged(); + } else { + variantConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Logging variant configuration.
+     * 
+ * + * .google.container.v1beta1.LoggingVariantConfig variant_config = 1; + */ + public Builder clearVariantConfig() { + if (variantConfigBuilder_ == null) { + variantConfig_ = null; + onChanged(); + } else { + variantConfig_ = null; + variantConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Logging variant configuration.
+     * 
+ * + * .google.container.v1beta1.LoggingVariantConfig variant_config = 1; + */ + public com.google.container.v1beta1.LoggingVariantConfig.Builder getVariantConfigBuilder() { + + 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 new file mode 100644 index 000000000000..86db2a39d262 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolLoggingConfigOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface 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 new file mode 100644 index 000000000000..de62bde0e36a --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolOrBuilder.java @@ -0,0 +1,685 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface NodePoolOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodePool) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of the node pool.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name of the node pool.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The node configuration of the pool.
+   * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + * + * @return Whether the config field is set. + */ + boolean hasConfig(); + /** + * + * + *
+   * The node configuration of the pool.
+   * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + * + * @return The config. + */ + com.google.container.v1beta1.NodeConfig getConfig(); + /** + * + * + *
+   * The node configuration of the pool.
+   * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + */ + com.google.container.v1beta1.NodeConfigOrBuilder getConfigOrBuilder(); + + /** + * + * + *
+   * The initial node count for the pool. You must ensure that your
+   * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
+   * is sufficient for this number of instances. You must also have available
+   * firewall and routes quota.
+   * 
+ * + * int32 initial_node_count = 3; + * + * @return The initialNodeCount. + */ + int getInitialNodeCount(); + + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes should be located.
+   * If this value is unspecified during node pool creation, the
+   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+   * value will be used, instead.
+   * Warning: changing node pool locations will result in nodes being added
+   * and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return A list containing the locations. + */ + java.util.List getLocationsList(); + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes should be located.
+   * If this value is unspecified during node pool creation, the
+   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+   * value will be used, instead.
+   * Warning: changing node pool locations will result in nodes being added
+   * and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return The count of locations. + */ + int getLocationsCount(); + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes should be located.
+   * If this value is unspecified during node pool creation, the
+   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+   * value will be used, instead.
+   * Warning: changing node pool locations will result in nodes being added
+   * and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + java.lang.String getLocations(int index); + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes should be located.
+   * If this value is unspecified during node pool creation, the
+   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+   * value will be used, instead.
+   * Warning: changing node pool locations will result in nodes being added
+   * and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + com.google.protobuf.ByteString getLocationsBytes(int index); + + /** + * + * + *
+   * 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 the Kubernetes of this node.
+   * 
+ * + * string version = 101; + * + * @return The version. + */ + java.lang.String getVersion(); + /** + * + * + *
+   * The version of the Kubernetes of this node.
+   * 
+ * + * string version = 101; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); + + /** + * + * + *
+   * [Output only] The resource URLs of the [managed instance
+   * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
+   * associated with this node pool.
+   * 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=3513 + * @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=3513 + * @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(); +} 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 new file mode 100644 index 000000000000..6e18ed1f12d2 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolUpdateStrategy.java @@ -0,0 +1,181 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Strategy used for node pool update.
+ * 
+ * + * Protobuf enum {@code google.container.v1beta1.NodePoolUpdateStrategy} + */ +public enum NodePoolUpdateStrategy implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value.
+   * 
+ * + * 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.
+   * 
+ * + * 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 new file mode 100644 index 000000000000..a3c501f9b561 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaint.java @@ -0,0 +1,1127 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Kubernetes taint is comprised of three fields: key, value, and effect. Effect
+ * can only be one of three types:  NoSchedule, PreferNoSchedule or NoExecute.
+ * See
+ * [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
+ * for more information, including usage and the valid values.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.NodeTaint} + */ +public final class NodeTaint extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodeTaint) + NodeTaintOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeTaint.newBuilder() to construct. + private NodeTaint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NodeTaint() { + key_ = ""; + value_ = ""; + effect_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NodeTaint(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodeTaint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodeTaint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodeTaint.class, + com.google.container.v1beta1.NodeTaint.Builder.class); + } + + /** + * + * + *
+   * Possible values for Effect in taint.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.NodeTaint.Effect} + */ + public enum Effect implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not set
+     * 
+ * + * EFFECT_UNSPECIFIED = 0; + */ + EFFECT_UNSPECIFIED(0), + /** + * + * + *
+     * NoSchedule
+     * 
+ * + * NO_SCHEDULE = 1; + */ + NO_SCHEDULE(1), + /** + * + * + *
+     * PreferNoSchedule
+     * 
+ * + * PREFER_NO_SCHEDULE = 2; + */ + PREFER_NO_SCHEDULE(2), + /** + * + * + *
+     * NoExecute
+     * 
+ * + * NO_EXECUTE = 3; + */ + NO_EXECUTE(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not set
+     * 
+ * + * EFFECT_UNSPECIFIED = 0; + */ + public static final int EFFECT_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * NoSchedule
+     * 
+ * + * NO_SCHEDULE = 1; + */ + public static final int NO_SCHEDULE_VALUE = 1; + /** + * + * + *
+     * PreferNoSchedule
+     * 
+ * + * PREFER_NO_SCHEDULE = 2; + */ + public static final int PREFER_NO_SCHEDULE_VALUE = 2; + /** + * + * + *
+     * NoExecute
+     * 
+ * + * NO_EXECUTE = 3; + */ + public static final int NO_EXECUTE_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Effect valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Effect forNumber(int value) { + switch (value) { + case 0: + return EFFECT_UNSPECIFIED; + case 1: + return NO_SCHEDULE; + case 2: + return PREFER_NO_SCHEDULE; + case 3: + return NO_EXECUTE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Effect findValueByNumber(int number) { + return Effect.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1beta1.NodeTaint.getDescriptor().getEnumTypes().get(0); + } + + private static final Effect[] VALUES = values(); + + public static Effect valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Effect(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.NodeTaint.Effect) + } + + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; + /** + * + * + *
+   * Key for taint.
+   * 
+ * + * string key = 1; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + /** + * + * + *
+   * Key for taint.
+   * 
+ * + * string key = 1; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 2; + private volatile java.lang.Object value_; + /** + * + * + *
+   * Value for taint.
+   * 
+ * + * string value = 2; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + * + * + *
+   * Value for taint.
+   * 
+ * + * string value = 2; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EFFECT_FIELD_NUMBER = 3; + private int effect_; + /** + * + * + *
+   * Effect for taint.
+   * 
+ * + * .google.container.v1beta1.NodeTaint.Effect effect = 3; + * + * @return The enum numeric value on the wire for effect. + */ + @java.lang.Override + public int getEffectValue() { + return effect_; + } + /** + * + * + *
+   * Effect for taint.
+   * 
+ * + * .google.container.v1beta1.NodeTaint.Effect effect = 3; + * + * @return The effect. + */ + @java.lang.Override + public com.google.container.v1beta1.NodeTaint.Effect getEffect() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.NodeTaint.Effect result = + com.google.container.v1beta1.NodeTaint.Effect.valueOf(effect_); + return result == null ? com.google.container.v1beta1.NodeTaint.Effect.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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 comprised of three fields: key, value, and effect. Effect
+   * can only be one of three types:  NoSchedule, PreferNoSchedule or NoExecute.
+   * See
+   * [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
+   * for more information, including usage and the valid values.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NodeTaint} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodeTaint) + com.google.container.v1beta1.NodeTaintOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodeTaint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodeTaint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodeTaint.class, + com.google.container.v1beta1.NodeTaint.Builder.class); + } + + // Construct using com.google.container.v1beta1.NodeTaint.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = ""; + + value_ = ""; + + effect_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodeTaint_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeTaint getDefaultInstanceForType() { + return com.google.container.v1beta1.NodeTaint.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NodeTaint build() { + com.google.container.v1beta1.NodeTaint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeTaint buildPartial() { + com.google.container.v1beta1.NodeTaint result = + new com.google.container.v1beta1.NodeTaint(this); + result.key_ = key_; + result.value_ = value_; + result.effect_ = effect_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.NodeTaint) { + return mergeFrom((com.google.container.v1beta1.NodeTaint) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NodeTaint other) { + if (other == com.google.container.v1beta1.NodeTaint.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + if (other.effect_ != 0) { + setEffectValue(other.getEffectValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + value_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + effect_ = input.readEnum(); + + 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 java.lang.Object key_ = ""; + /** + * + * + *
+     * Key for taint.
+     * 
+ * + * string key = 1; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Key for taint.
+     * 
+ * + * string key = 1; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Key for taint.
+     * 
+ * + * string key = 1; + * + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Key for taint.
+     * 
+ * + * string key = 1; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + * + * + *
+     * Key for taint.
+     * 
+ * + * string key = 1; + * + * @param value The bytes for key to set. + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + * + * + *
+     * Value for taint.
+     * 
+ * + * string value = 2; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Value for taint.
+     * 
+ * + * string value = 2; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Value for taint.
+     * 
+ * + * string value = 2; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Value for taint.
+     * 
+ * + * string value = 2; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + * + * + *
+     * Value for taint.
+     * 
+ * + * string value = 2; + * + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; + onChanged(); + return this; + } + + private int effect_ = 0; + /** + * + * + *
+     * Effect for taint.
+     * 
+ * + * .google.container.v1beta1.NodeTaint.Effect effect = 3; + * + * @return The enum numeric value on the wire for effect. + */ + @java.lang.Override + public int getEffectValue() { + return effect_; + } + /** + * + * + *
+     * Effect for taint.
+     * 
+ * + * .google.container.v1beta1.NodeTaint.Effect effect = 3; + * + * @param value The enum numeric value on the wire for effect to set. + * @return This builder for chaining. + */ + public Builder setEffectValue(int value) { + + effect_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Effect for taint.
+     * 
+ * + * .google.container.v1beta1.NodeTaint.Effect effect = 3; + * + * @return The effect. + */ + @java.lang.Override + public com.google.container.v1beta1.NodeTaint.Effect getEffect() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.NodeTaint.Effect result = + com.google.container.v1beta1.NodeTaint.Effect.valueOf(effect_); + return result == null ? com.google.container.v1beta1.NodeTaint.Effect.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Effect for taint.
+     * 
+ * + * .google.container.v1beta1.NodeTaint.Effect effect = 3; + * + * @param value The effect to set. + * @return This builder for chaining. + */ + public Builder setEffect(com.google.container.v1beta1.NodeTaint.Effect value) { + if (value == null) { + throw new NullPointerException(); + } + + effect_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Effect for taint.
+     * 
+ * + * .google.container.v1beta1.NodeTaint.Effect effect = 3; + * + * @return This builder for chaining. + */ + public Builder clearEffect() { + + effect_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.NodeTaint) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodeTaint) + private static final com.google.container.v1beta1.NodeTaint DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NodeTaint(); + } + + public static com.google.container.v1beta1.NodeTaint getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeTaint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..63015cdf20fd --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaintOrBuilder.java @@ -0,0 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface NodeTaintOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodeTaint) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Key for taint.
+   * 
+ * + * string key = 1; + * + * @return The key. + */ + java.lang.String getKey(); + /** + * + * + *
+   * Key for taint.
+   * 
+ * + * string key = 1; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + * + * + *
+   * Value for taint.
+   * 
+ * + * string value = 2; + * + * @return The value. + */ + java.lang.String getValue(); + /** + * + * + *
+   * Value for taint.
+   * 
+ * + * string value = 2; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); + + /** + * + * + *
+   * Effect for taint.
+   * 
+ * + * .google.container.v1beta1.NodeTaint.Effect effect = 3; + * + * @return The enum numeric value on the wire for effect. + */ + int getEffectValue(); + /** + * + * + *
+   * Effect for taint.
+   * 
+ * + * .google.container.v1beta1.NodeTaint.Effect effect = 3; + * + * @return The effect. + */ + com.google.container.v1beta1.NodeTaint.Effect getEffect(); +} diff --git a/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 new file mode 100644 index 000000000000..5fb279e9042b --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaints.java @@ -0,0 +1,925 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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; + 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(); + 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); + int from_bitField0_ = bitField0_; + if (taintsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + taints_ = java.util.Collections.unmodifiableList(taints_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.taints_ = taints_; + } else { + result.taints_ = taintsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.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 new file mode 100644 index 000000000000..6aa7d65d2686 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaintsOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface 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 new file mode 100644 index 000000000000..f94107e1d130 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NotificationConfig.java @@ -0,0 +1,2863 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * NotificationConfig is the configuration of notifications.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.NotificationConfig} + */ +public final class NotificationConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NotificationConfig) + NotificationConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use NotificationConfig.newBuilder() to construct. + private NotificationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NotificationConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NotificationConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NotificationConfig_PubSub_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NotificationConfig_PubSub_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NotificationConfig.PubSub.class, + com.google.container.v1beta1.NotificationConfig.PubSub.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+     * Enable notifications for Pub/Sub.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int TOPIC_FIELD_NUMBER = 2; + private volatile java.lang.Object topic_; + /** + * + * + *
+     * The desired Pub/Sub topic to which notifications will be
+     * sent by GKE. Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * @return The topic. + */ + @java.lang.Override + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } + } + /** + * + * + *
+     * The desired Pub/Sub topic to which notifications will be
+     * sent by GKE. Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for topic. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 3; + private com.google.container.v1beta1.NotificationConfig.Filter filter_; + /** + * + * + *
+     * Allows filtering to one or more specific event types. If no filter is
+     * specified, or if a filter is specified with no event types, all event
+     * types will be sent
+     * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + * + * @return Whether the filter field is set. + */ + @java.lang.Override + public boolean hasFilter() { + return filter_ != null; + } + /** + * + * + *
+     * Allows filtering to one or more specific event types. If no filter is
+     * specified, or if a filter is specified with no event types, all event
+     * types will be sent
+     * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + * + * @return The filter. + */ + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig.Filter getFilter() { + return filter_ == null + ? com.google.container.v1beta1.NotificationConfig.Filter.getDefaultInstance() + : filter_; + } + /** + * + * + *
+     * Allows filtering to one or more specific event types. If no filter is
+     * specified, or if a filter is specified with no event types, all event
+     * types will be sent
+     * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + */ + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig.FilterOrBuilder getFilterOrBuilder() { + return getFilter(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, topic_); + } + if (filter_ != null) { + output.writeMessage(3, getFilter()); + } + 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 (filter_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enabled_ = false; + + topic_ = ""; + + if (filterBuilder_ == null) { + filter_ = null; + } else { + filter_ = null; + filterBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NotificationConfig_PubSub_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig.PubSub getDefaultInstanceForType() { + return com.google.container.v1beta1.NotificationConfig.PubSub.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig.PubSub build() { + com.google.container.v1beta1.NotificationConfig.PubSub result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig.PubSub buildPartial() { + com.google.container.v1beta1.NotificationConfig.PubSub result = + new com.google.container.v1beta1.NotificationConfig.PubSub(this); + result.enabled_ = enabled_; + result.topic_ = topic_; + if (filterBuilder_ == null) { + result.filter_ = filter_; + } else { + result.filter_ = filterBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.NotificationConfig.PubSub) { + return mergeFrom((com.google.container.v1beta1.NotificationConfig.PubSub) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NotificationConfig.PubSub other) { + if (other == com.google.container.v1beta1.NotificationConfig.PubSub.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (!other.getTopic().isEmpty()) { + topic_ = other.topic_; + onChanged(); + } + 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(); + + break; + } // case 8 + case 18: + { + topic_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getFilterFieldBuilder().getBuilder(), extensionRegistry); + + 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 boolean enabled_; + /** + * + * + *
+       * Enable notifications for Pub/Sub.
+       * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+       * Enable notifications for Pub/Sub.
+       * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Enable notifications for Pub/Sub.
+       * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + private java.lang.Object topic_ = ""; + /** + * + * + *
+       * The desired Pub/Sub topic to which notifications will be
+       * sent by GKE. Format is `projects/{project}/topics/{topic}`.
+       * 
+ * + * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * @return The topic. + */ + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The desired Pub/Sub topic to which notifications will be
+       * sent by GKE. Format is `projects/{project}/topics/{topic}`.
+       * 
+ * + * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for topic. + */ + public com.google.protobuf.ByteString getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The desired Pub/Sub topic to which notifications will be
+       * sent by GKE. Format is `projects/{project}/topics/{topic}`.
+       * 
+ * + * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The topic to set. + * @return This builder for chaining. + */ + public Builder setTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + topic_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The desired Pub/Sub topic to which notifications will be
+       * sent by GKE. Format is `projects/{project}/topics/{topic}`.
+       * 
+ * + * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearTopic() { + + topic_ = getDefaultInstance().getTopic(); + onChanged(); + return this; + } + /** + * + * + *
+       * The desired Pub/Sub topic to which notifications will be
+       * sent by GKE. Format is `projects/{project}/topics/{topic}`.
+       * 
+ * + * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for topic to set. + * @return This builder for chaining. + */ + public Builder setTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + topic_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NotificationConfig.Filter filter_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NotificationConfig.Filter, + com.google.container.v1beta1.NotificationConfig.Filter.Builder, + com.google.container.v1beta1.NotificationConfig.FilterOrBuilder> + filterBuilder_; + /** + * + * + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + * + * @return Whether the filter field is set. + */ + public boolean hasFilter() { + return filterBuilder_ != null || filter_ != null; + } + /** + * + * + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + * + * @return The filter. + */ + public com.google.container.v1beta1.NotificationConfig.Filter getFilter() { + if (filterBuilder_ == null) { + return filter_ == null + ? com.google.container.v1beta1.NotificationConfig.Filter.getDefaultInstance() + : filter_; + } else { + return filterBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + */ + public Builder setFilter(com.google.container.v1beta1.NotificationConfig.Filter value) { + if (filterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + onChanged(); + } else { + filterBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + */ + public Builder setFilter( + com.google.container.v1beta1.NotificationConfig.Filter.Builder builderForValue) { + if (filterBuilder_ == null) { + filter_ = builderForValue.build(); + onChanged(); + } else { + filterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + */ + public Builder mergeFilter(com.google.container.v1beta1.NotificationConfig.Filter value) { + if (filterBuilder_ == null) { + if (filter_ != null) { + filter_ = + com.google.container.v1beta1.NotificationConfig.Filter.newBuilder(filter_) + .mergeFrom(value) + .buildPartial(); + } else { + filter_ = value; + } + onChanged(); + } else { + filterBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + */ + public Builder clearFilter() { + if (filterBuilder_ == null) { + filter_ = null; + onChanged(); + } else { + filter_ = null; + filterBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + */ + public com.google.container.v1beta1.NotificationConfig.Filter.Builder getFilterBuilder() { + + onChanged(); + return getFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + */ + public com.google.container.v1beta1.NotificationConfig.FilterOrBuilder getFilterOrBuilder() { + if (filterBuilder_ != null) { + return filterBuilder_.getMessageOrBuilder(); + } else { + return filter_ == null + ? com.google.container.v1beta1.NotificationConfig.Filter.getDefaultInstance() + : filter_; + } + } + /** + * + * + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NotificationConfig.Filter, + com.google.container.v1beta1.NotificationConfig.Filter.Builder, + com.google.container.v1beta1.NotificationConfig.FilterOrBuilder> + getFilterFieldBuilder() { + if (filterBuilder_ == null) { + filterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NotificationConfig.Filter, + com.google.container.v1beta1.NotificationConfig.Filter.Builder, + com.google.container.v1beta1.NotificationConfig.FilterOrBuilder>( + getFilter(), getParentForChildren(), isClean()); + filter_ = null; + } + return filterBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.NotificationConfig.PubSub) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NotificationConfig.PubSub) + private static final com.google.container.v1beta1.NotificationConfig.PubSub DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NotificationConfig.PubSub(); + } + + public static com.google.container.v1beta1.NotificationConfig.PubSub getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PubSub parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NotificationConfig_Filter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NotificationConfig_Filter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NotificationConfig.Filter.class, + com.google.container.v1beta1.NotificationConfig.Filter.Builder.class); + } + + public static final int EVENT_TYPE_FIELD_NUMBER = 1; + private java.util.List eventType_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.container.v1beta1.NotificationConfig.EventType> + eventType_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.container.v1beta1.NotificationConfig.EventType>() { + public com.google.container.v1beta1.NotificationConfig.EventType convert( + java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.NotificationConfig.EventType result = + com.google.container.v1beta1.NotificationConfig.EventType.valueOf(from); + return result == null + ? com.google.container.v1beta1.NotificationConfig.EventType.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * + * @return A list containing the eventType. + */ + @java.lang.Override + public java.util.List + getEventTypeList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.container.v1beta1.NotificationConfig.EventType>( + eventType_, eventType_converter_); + } + /** + * + * + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * + * @return The count of eventType. + */ + @java.lang.Override + public int getEventTypeCount() { + return eventType_.size(); + } + /** + * + * + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * + * @param index The index of the element to return. + * @return The eventType at the given index. + */ + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig.EventType getEventType(int index) { + return eventType_converter_.convert(eventType_.get(index)); + } + /** + * + * + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * + * @return A list containing the enum numeric values on the wire for eventType. + */ + @java.lang.Override + public java.util.List getEventTypeValueList() { + return eventType_; + } + /** + * + * + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of eventType at the given index. + */ + @java.lang.Override + public int getEventTypeValue(int index) { + return eventType_.get(index); + } + + private int eventTypeMemoizedSerializedSize; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (getEventTypeList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(eventTypeMemoizedSerializedSize); + } + for (int i = 0; i < eventType_.size(); i++) { + output.writeEnumNoTag(eventType_.get(i)); + } + 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(); + eventType_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NotificationConfig_Filter_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig.Filter getDefaultInstanceForType() { + return com.google.container.v1beta1.NotificationConfig.Filter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig.Filter build() { + com.google.container.v1beta1.NotificationConfig.Filter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig.Filter buildPartial() { + com.google.container.v1beta1.NotificationConfig.Filter result = + new com.google.container.v1beta1.NotificationConfig.Filter(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + eventType_ = java.util.Collections.unmodifiableList(eventType_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.eventType_ = eventType_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.NotificationConfig.Filter) { + return mergeFrom((com.google.container.v1beta1.NotificationConfig.Filter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NotificationConfig.Filter other) { + if (other == com.google.container.v1beta1.NotificationConfig.Filter.getDefaultInstance()) + return this; + if (!other.eventType_.isEmpty()) { + if (eventType_.isEmpty()) { + eventType_ = other.eventType_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEventTypeIsMutable(); + eventType_.addAll(other.eventType_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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; + } + } + + public static final int PUBSUB_FIELD_NUMBER = 1; + private com.google.container.v1beta1.NotificationConfig.PubSub pubsub_; + /** + * + * + *
+   * Notification config for Pub/Sub.
+   * 
+ * + * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; + * + * @return Whether the pubsub field is set. + */ + @java.lang.Override + public boolean hasPubsub() { + return pubsub_ != null; + } + /** + * + * + *
+   * Notification config for Pub/Sub.
+   * 
+ * + * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; + * + * @return The pubsub. + */ + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig.PubSub getPubsub() { + return pubsub_ == null + ? com.google.container.v1beta1.NotificationConfig.PubSub.getDefaultInstance() + : pubsub_; + } + /** + * + * + *
+   * Notification config for Pub/Sub.
+   * 
+ * + * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig.PubSubOrBuilder getPubsubOrBuilder() { + return getPubsub(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (pubsub_ != null) { + output.writeMessage(1, getPubsub()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (pubsub_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPubsub()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (pubsubBuilder_ == null) { + pubsub_ = null; + } else { + pubsub_ = null; + pubsubBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NotificationConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.NotificationConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig build() { + com.google.container.v1beta1.NotificationConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig buildPartial() { + com.google.container.v1beta1.NotificationConfig result = + new com.google.container.v1beta1.NotificationConfig(this); + if (pubsubBuilder_ == null) { + result.pubsub_ = pubsub_; + } else { + result.pubsub_ = pubsubBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.NotificationConfig) { + return mergeFrom((com.google.container.v1beta1.NotificationConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NotificationConfig other) { + if (other == com.google.container.v1beta1.NotificationConfig.getDefaultInstance()) + return this; + if (other.hasPubsub()) { + mergePubsub(other.getPubsub()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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); + + 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 com.google.container.v1beta1.NotificationConfig.PubSub pubsub_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NotificationConfig.PubSub, + com.google.container.v1beta1.NotificationConfig.PubSub.Builder, + com.google.container.v1beta1.NotificationConfig.PubSubOrBuilder> + pubsubBuilder_; + /** + * + * + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; + * + * @return Whether the pubsub field is set. + */ + public boolean hasPubsub() { + return pubsubBuilder_ != null || pubsub_ != null; + } + /** + * + * + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; + * + * @return The pubsub. + */ + public com.google.container.v1beta1.NotificationConfig.PubSub getPubsub() { + if (pubsubBuilder_ == null) { + return pubsub_ == null + ? com.google.container.v1beta1.NotificationConfig.PubSub.getDefaultInstance() + : pubsub_; + } else { + return pubsubBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; + */ + public Builder setPubsub(com.google.container.v1beta1.NotificationConfig.PubSub value) { + if (pubsubBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pubsub_ = value; + onChanged(); + } else { + pubsubBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; + */ + public Builder setPubsub( + com.google.container.v1beta1.NotificationConfig.PubSub.Builder builderForValue) { + if (pubsubBuilder_ == null) { + pubsub_ = builderForValue.build(); + onChanged(); + } else { + pubsubBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; + */ + public Builder mergePubsub(com.google.container.v1beta1.NotificationConfig.PubSub value) { + if (pubsubBuilder_ == null) { + if (pubsub_ != null) { + pubsub_ = + com.google.container.v1beta1.NotificationConfig.PubSub.newBuilder(pubsub_) + .mergeFrom(value) + .buildPartial(); + } else { + pubsub_ = value; + } + onChanged(); + } else { + pubsubBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; + */ + public Builder clearPubsub() { + if (pubsubBuilder_ == null) { + pubsub_ = null; + onChanged(); + } else { + pubsub_ = null; + pubsubBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; + */ + public com.google.container.v1beta1.NotificationConfig.PubSub.Builder getPubsubBuilder() { + + onChanged(); + return getPubsubFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; + */ + public com.google.container.v1beta1.NotificationConfig.PubSubOrBuilder getPubsubOrBuilder() { + if (pubsubBuilder_ != null) { + return pubsubBuilder_.getMessageOrBuilder(); + } else { + return pubsub_ == null + ? com.google.container.v1beta1.NotificationConfig.PubSub.getDefaultInstance() + : pubsub_; + } + } + /** + * + * + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NotificationConfig.PubSub, + com.google.container.v1beta1.NotificationConfig.PubSub.Builder, + com.google.container.v1beta1.NotificationConfig.PubSubOrBuilder> + getPubsubFieldBuilder() { + if (pubsubBuilder_ == null) { + pubsubBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NotificationConfig.PubSub, + com.google.container.v1beta1.NotificationConfig.PubSub.Builder, + com.google.container.v1beta1.NotificationConfig.PubSubOrBuilder>( + getPubsub(), getParentForChildren(), isClean()); + pubsub_ = null; + } + return pubsubBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.NotificationConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NotificationConfig) + private static final com.google.container.v1beta1.NotificationConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NotificationConfig(); + } + + public static com.google.container.v1beta1.NotificationConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NotificationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..391cc1eb7f33 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NotificationConfigOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface NotificationConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NotificationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Notification config for Pub/Sub.
+   * 
+ * + * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; + * + * @return Whether the pubsub field is set. + */ + boolean hasPubsub(); + /** + * + * + *
+   * Notification config for Pub/Sub.
+   * 
+ * + * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; + * + * @return The pubsub. + */ + com.google.container.v1beta1.NotificationConfig.PubSub getPubsub(); + /** + * + * + *
+   * Notification config for Pub/Sub.
+   * 
+ * + * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; + */ + com.google.container.v1beta1.NotificationConfig.PubSubOrBuilder getPubsubOrBuilder(); +} diff --git a/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 new file mode 100644 index 000000000000..5db822eab3b0 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Operation.java @@ -0,0 +1,4855 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * This operation resource represents operations that may have happened or are
+ * happening on the cluster. All fields are output only.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.Operation} + */ +public final class Operation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.Operation) + OperationOrBuilder { + private static final long serialVersionUID = 0L; + // Use Operation.newBuilder() to construct. + private Operation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Operation() { + name_ = ""; + zone_ = ""; + operationType_ = 0; + status_ = 0; + detail_ = ""; + statusMessage_ = ""; + selfLink_ = ""; + targetLink_ = ""; + location_ = ""; + startTime_ = ""; + endTime_ = ""; + clusterConditions_ = java.util.Collections.emptyList(); + nodepoolConditions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Operation(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Operation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Operation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.Operation.class, + com.google.container.v1beta1.Operation.Builder.class); + } + + /** + * + * + *
+   * Current status of the operation.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.Operation.Status} + */ + public enum Status implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not set.
+     * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + STATUS_UNSPECIFIED(0), + /** + * + * + *
+     * The operation has been created.
+     * 
+ * + * PENDING = 1; + */ + PENDING(1), + /** + * + * + *
+     * The operation is currently running.
+     * 
+ * + * RUNNING = 2; + */ + RUNNING(2), + /** + * + * + *
+     * The operation is done, either cancelled or completed.
+     * 
+ * + * DONE = 3; + */ + DONE(3), + /** + * + * + *
+     * The operation is aborting.
+     * 
+ * + * ABORTING = 4; + */ + ABORTING(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not set.
+     * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + public static final int STATUS_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The operation has been created.
+     * 
+ * + * PENDING = 1; + */ + public static final int PENDING_VALUE = 1; + /** + * + * + *
+     * The operation is currently running.
+     * 
+ * + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + /** + * + * + *
+     * The operation is done, either cancelled or completed.
+     * 
+ * + * DONE = 3; + */ + public static final int DONE_VALUE = 3; + /** + * + * + *
+     * The operation is aborting.
+     * 
+ * + * ABORTING = 4; + */ + public static final int ABORTING_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Status valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Status forNumber(int value) { + switch (value) { + case 0: + return STATUS_UNSPECIFIED; + case 1: + return PENDING; + case 2: + return RUNNING; + case 3: + return DONE; + case 4: + return ABORTING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1beta1.Operation.getDescriptor().getEnumTypes().get(0); + } + + private static final Status[] VALUES = values(); + + public static Status valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Status(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.Operation.Status) + } + + /** + * + * + *
+   * Operation type.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.Operation.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not set.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Cluster create.
+     * 
+ * + * CREATE_CLUSTER = 1; + */ + CREATE_CLUSTER(1), + /** + * + * + *
+     * Cluster delete.
+     * 
+ * + * DELETE_CLUSTER = 2; + */ + DELETE_CLUSTER(2), + /** + * + * + *
+     * A master upgrade.
+     * 
+ * + * UPGRADE_MASTER = 3; + */ + UPGRADE_MASTER(3), + /** + * + * + *
+     * A node upgrade.
+     * 
+ * + * UPGRADE_NODES = 4; + */ + UPGRADE_NODES(4), + /** + * + * + *
+     * Cluster repair.
+     * 
+ * + * REPAIR_CLUSTER = 5; + */ + REPAIR_CLUSTER(5), + /** + * + * + *
+     * Cluster update.
+     * 
+ * + * UPDATE_CLUSTER = 6; + */ + UPDATE_CLUSTER(6), + /** + * + * + *
+     * Node pool create.
+     * 
+ * + * CREATE_NODE_POOL = 7; + */ + CREATE_NODE_POOL(7), + /** + * + * + *
+     * Node pool delete.
+     * 
+ * + * DELETE_NODE_POOL = 8; + */ + DELETE_NODE_POOL(8), + /** + * + * + *
+     * Set node pool management.
+     * 
+ * + * SET_NODE_POOL_MANAGEMENT = 9; + */ + SET_NODE_POOL_MANAGEMENT(9), + /** + * + * + *
+     * Automatic node pool repair.
+     * 
+ * + * AUTO_REPAIR_NODES = 10; + */ + AUTO_REPAIR_NODES(10), + /** + * + * + *
+     * Automatic node upgrade.
+     * 
+ * + * AUTO_UPGRADE_NODES = 11; + */ + AUTO_UPGRADE_NODES(11), + /** + * + * + *
+     * Set labels.
+     * 
+ * + * SET_LABELS = 12; + */ + SET_LABELS(12), + /** + * + * + *
+     * Set/generate master auth materials
+     * 
+ * + * SET_MASTER_AUTH = 13; + */ + SET_MASTER_AUTH(13), + /** + * + * + *
+     * Set node pool size.
+     * 
+ * + * SET_NODE_POOL_SIZE = 14; + */ + SET_NODE_POOL_SIZE(14), + /** + * + * + *
+     * Updates network policy for a cluster.
+     * 
+ * + * SET_NETWORK_POLICY = 15; + */ + SET_NETWORK_POLICY(15), + /** + * + * + *
+     * Set the maintenance policy.
+     * 
+ * + * SET_MAINTENANCE_POLICY = 16; + */ + SET_MAINTENANCE_POLICY(16), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not set.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Cluster create.
+     * 
+ * + * CREATE_CLUSTER = 1; + */ + public static final int CREATE_CLUSTER_VALUE = 1; + /** + * + * + *
+     * Cluster delete.
+     * 
+ * + * DELETE_CLUSTER = 2; + */ + public static final int DELETE_CLUSTER_VALUE = 2; + /** + * + * + *
+     * A master upgrade.
+     * 
+ * + * UPGRADE_MASTER = 3; + */ + public static final int UPGRADE_MASTER_VALUE = 3; + /** + * + * + *
+     * A node upgrade.
+     * 
+ * + * UPGRADE_NODES = 4; + */ + public static final int UPGRADE_NODES_VALUE = 4; + /** + * + * + *
+     * Cluster repair.
+     * 
+ * + * REPAIR_CLUSTER = 5; + */ + public static final int REPAIR_CLUSTER_VALUE = 5; + /** + * + * + *
+     * Cluster update.
+     * 
+ * + * UPDATE_CLUSTER = 6; + */ + public static final int UPDATE_CLUSTER_VALUE = 6; + /** + * + * + *
+     * Node pool create.
+     * 
+ * + * CREATE_NODE_POOL = 7; + */ + public static final int CREATE_NODE_POOL_VALUE = 7; + /** + * + * + *
+     * Node pool delete.
+     * 
+ * + * DELETE_NODE_POOL = 8; + */ + public static final int DELETE_NODE_POOL_VALUE = 8; + /** + * + * + *
+     * Set node pool management.
+     * 
+ * + * SET_NODE_POOL_MANAGEMENT = 9; + */ + public static final int SET_NODE_POOL_MANAGEMENT_VALUE = 9; + /** + * + * + *
+     * Automatic node pool repair.
+     * 
+ * + * AUTO_REPAIR_NODES = 10; + */ + public static final int AUTO_REPAIR_NODES_VALUE = 10; + /** + * + * + *
+     * Automatic node upgrade.
+     * 
+ * + * AUTO_UPGRADE_NODES = 11; + */ + public static final int AUTO_UPGRADE_NODES_VALUE = 11; + /** + * + * + *
+     * Set labels.
+     * 
+ * + * SET_LABELS = 12; + */ + public static final int SET_LABELS_VALUE = 12; + /** + * + * + *
+     * Set/generate master auth materials
+     * 
+ * + * SET_MASTER_AUTH = 13; + */ + public static final int SET_MASTER_AUTH_VALUE = 13; + /** + * + * + *
+     * Set node pool size.
+     * 
+ * + * SET_NODE_POOL_SIZE = 14; + */ + public static final int SET_NODE_POOL_SIZE_VALUE = 14; + /** + * + * + *
+     * Updates network policy for a cluster.
+     * 
+ * + * SET_NETWORK_POLICY = 15; + */ + public static final int SET_NETWORK_POLICY_VALUE = 15; + /** + * + * + *
+     * Set the maintenance policy.
+     * 
+ * + * SET_MAINTENANCE_POLICY = 16; + */ + public static final int SET_MAINTENANCE_POLICY_VALUE = 16; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: + return TYPE_UNSPECIFIED; + case 1: + return CREATE_CLUSTER; + case 2: + return DELETE_CLUSTER; + case 3: + return UPGRADE_MASTER; + case 4: + return UPGRADE_NODES; + case 5: + return REPAIR_CLUSTER; + case 6: + return UPDATE_CLUSTER; + case 7: + return CREATE_NODE_POOL; + case 8: + return DELETE_NODE_POOL; + case 9: + return SET_NODE_POOL_MANAGEMENT; + case 10: + return AUTO_REPAIR_NODES; + case 11: + return AUTO_UPGRADE_NODES; + case 12: + return SET_LABELS; + case 13: + return SET_MASTER_AUTH; + case 14: + return SET_NODE_POOL_SIZE; + case 15: + return SET_NETWORK_POLICY; + case 16: + return SET_MAINTENANCE_POLICY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1beta1.Operation.getDescriptor().getEnumTypes().get(1); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.Operation.Type) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The server-assigned ID for the operation.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The server-assigned ID for the operation.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * operation is taking place. This field is deprecated, use location instead.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Operation.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2262 + * @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=2262 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPERATION_TYPE_FIELD_NUMBER = 3; + private int operationType_; + /** + * + * + *
+   * The operation type.
+   * 
+ * + * .google.container.v1beta1.Operation.Type operation_type = 3; + * + * @return The enum numeric value on the wire for operationType. + */ + @java.lang.Override + public int getOperationTypeValue() { + return operationType_; + } + /** + * + * + *
+   * The operation type.
+   * 
+ * + * .google.container.v1beta1.Operation.Type operation_type = 3; + * + * @return The operationType. + */ + @java.lang.Override + public com.google.container.v1beta1.Operation.Type getOperationType() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.Operation.Type result = + com.google.container.v1beta1.Operation.Type.valueOf(operationType_); + return result == null ? com.google.container.v1beta1.Operation.Type.UNRECOGNIZED : result; + } + + public static final int STATUS_FIELD_NUMBER = 4; + private int status_; + /** + * + * + *
+   * The current status of the operation.
+   * 
+ * + * .google.container.v1beta1.Operation.Status status = 4; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + /** + * + * + *
+   * The current status of the operation.
+   * 
+ * + * .google.container.v1beta1.Operation.Status status = 4; + * + * @return The status. + */ + @java.lang.Override + public com.google.container.v1beta1.Operation.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.Operation.Status result = + com.google.container.v1beta1.Operation.Status.valueOf(status_); + return result == null ? com.google.container.v1beta1.Operation.Status.UNRECOGNIZED : result; + } + + public static final int DETAIL_FIELD_NUMBER = 8; + private volatile java.lang.Object detail_; + /** + * + * + *
+   * Detailed operation progress, if available.
+   * 
+ * + * string detail = 8; + * + * @return The detail. + */ + @java.lang.Override + public java.lang.String getDetail() { + java.lang.Object ref = detail_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + detail_ = s; + return s; + } + } + /** + * + * + *
+   * Detailed operation progress, if available.
+   * 
+ * + * string detail = 8; + * + * @return The bytes for detail. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDetailBytes() { + java.lang.Object ref = detail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + detail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; + private volatile java.lang.Object statusMessage_; + /** + * + * + *
+   * Output only. If an error has occurred, a textual description of the error.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2275 + * @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=2275 + * @return The bytes for statusMessage. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SELF_LINK_FIELD_NUMBER = 6; + private volatile java.lang.Object selfLink_; + /** + * + * + *
+   * Server-defined URL for the resource.
+   * 
+ * + * string self_link = 6; + * + * @return The selfLink. + */ + @java.lang.Override + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } + } + /** + * + * + *
+   * Server-defined URL for the resource.
+   * 
+ * + * string self_link = 6; + * + * @return The bytes for selfLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_LINK_FIELD_NUMBER = 7; + private volatile java.lang.Object targetLink_; + /** + * + * + *
+   * Server-defined URL for the target of the operation.
+   * 
+ * + * string target_link = 7; + * + * @return The targetLink. + */ + @java.lang.Override + public java.lang.String getTargetLink() { + java.lang.Object ref = targetLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetLink_ = s; + return s; + } + } + /** + * + * + *
+   * Server-defined URL for the target of the operation.
+   * 
+ * + * string target_link = 7; + * + * @return The bytes for targetLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetLinkBytes() { + java.lang.Object ref = targetLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATION_FIELD_NUMBER = 9; + private volatile java.lang.Object location_; + /** + * + * + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * or
+   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * in which the cluster resides.
+   * 
+ * + * string location = 9; + * + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * or
+   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * in which the cluster resides.
+   * 
+ * + * string location = 9; + * + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int START_TIME_FIELD_NUMBER = 10; + private volatile java.lang.Object startTime_; + /** + * + * + *
+   * [Output only] The time the operation started, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string start_time = 10; + * + * @return The startTime. + */ + @java.lang.Override + public java.lang.String getStartTime() { + java.lang.Object ref = startTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + startTime_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] The time the operation started, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string start_time = 10; + * + * @return The bytes for startTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStartTimeBytes() { + java.lang.Object ref = startTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + startTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int END_TIME_FIELD_NUMBER = 11; + private volatile java.lang.Object endTime_; + /** + * + * + *
+   * [Output only] The time the operation completed, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string end_time = 11; + * + * @return The endTime. + */ + @java.lang.Override + public java.lang.String getEndTime() { + java.lang.Object ref = endTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endTime_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] The time the operation completed, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string end_time = 11; + * + * @return The bytes for endTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEndTimeBytes() { + java.lang.Object ref = endTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROGRESS_FIELD_NUMBER = 12; + private com.google.container.v1beta1.OperationProgress progress_; + /** + * + * + *
+   * Output only. [Output only] Progress information for an operation.
+   * 
+ * + * + * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the progress field is set. + */ + @java.lang.Override + public boolean hasProgress() { + return progress_ != null; + } + /** + * + * + *
+   * Output only. [Output only] Progress information for an operation.
+   * 
+ * + * + * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The progress. + */ + @java.lang.Override + public com.google.container.v1beta1.OperationProgress getProgress() { + return progress_ == null + ? com.google.container.v1beta1.OperationProgress.getDefaultInstance() + : progress_; + } + /** + * + * + *
+   * Output only. [Output only] Progress information for an operation.
+   * 
+ * + * + * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.container.v1beta1.OperationProgressOrBuilder getProgressOrBuilder() { + return getProgress(); + } + + public static final int CLUSTER_CONDITIONS_FIELD_NUMBER = 13; + private java.util.List clusterConditions_; + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.List getClusterConditionsList() { + return clusterConditions_; + } + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.List + getClusterConditionsOrBuilderList() { + return clusterConditions_; + } + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public int getClusterConditionsCount() { + return clusterConditions_.size(); + } + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.container.v1beta1.StatusCondition getClusterConditions(int index) { + return clusterConditions_.get(index); + } + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.container.v1beta1.StatusConditionOrBuilder getClusterConditionsOrBuilder( + int index) { + return clusterConditions_.get(index); + } + + public static final int NODEPOOL_CONDITIONS_FIELD_NUMBER = 14; + private java.util.List nodepoolConditions_; + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.List getNodepoolConditionsList() { + return nodepoolConditions_; + } + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.List + getNodepoolConditionsOrBuilderList() { + return nodepoolConditions_; + } + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public int getNodepoolConditionsCount() { + return nodepoolConditions_.size(); + } + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.container.v1beta1.StatusCondition getNodepoolConditions(int index) { + return nodepoolConditions_.get(index); + } + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.container.v1beta1.StatusConditionOrBuilder getNodepoolConditionsOrBuilder( + int index) { + return nodepoolConditions_.get(index); + } + + public static final int ERROR_FIELD_NUMBER = 15; + private com.google.rpc.Status error_; + /** + * + * + *
+   * The error result of the operation in case of failure.
+   * 
+ * + * .google.rpc.Status error = 15; + * + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return error_ != null; + } + /** + * + * + *
+   * The error result of the operation in case of failure.
+   * 
+ * + * .google.rpc.Status error = 15; + * + * @return The error. + */ + @java.lang.Override + public com.google.rpc.Status getError() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + /** + * + * + *
+   * The error result of the operation in case of failure.
+   * 
+ * + * .google.rpc.Status error = 15; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + return getError(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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 (progress_ != null) { + output.writeMessage(12, getProgress()); + } + for (int i = 0; i < clusterConditions_.size(); i++) { + output.writeMessage(13, clusterConditions_.get(i)); + } + for (int i = 0; i < nodepoolConditions_.size(); i++) { + output.writeMessage(14, nodepoolConditions_.get(i)); + } + if (error_ != null) { + output.writeMessage(15, getError()); + } + getUnknownFields().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 (progress_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getProgress()); + } + for (int i = 0; i < clusterConditions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(13, clusterConditions_.get(i)); + } + for (int i = 0; i < nodepoolConditions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(14, nodepoolConditions_.get(i)); + } + if (error_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getError()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + zone_ = ""; + + operationType_ = 0; + + status_ = 0; + + detail_ = ""; + + statusMessage_ = ""; + + selfLink_ = ""; + + targetLink_ = ""; + + location_ = ""; + + startTime_ = ""; + + endTime_ = ""; + + if (progressBuilder_ == null) { + progress_ = null; + } else { + progress_ = null; + progressBuilder_ = null; + } + if (clusterConditionsBuilder_ == null) { + clusterConditions_ = java.util.Collections.emptyList(); + } else { + clusterConditions_ = null; + clusterConditionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (nodepoolConditionsBuilder_ == null) { + nodepoolConditions_ = java.util.Collections.emptyList(); + } else { + nodepoolConditions_ = null; + nodepoolConditionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (errorBuilder_ == null) { + error_ = null; + } else { + error_ = null; + errorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Operation_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.Operation getDefaultInstanceForType() { + return com.google.container.v1beta1.Operation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.Operation build() { + com.google.container.v1beta1.Operation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.Operation buildPartial() { + com.google.container.v1beta1.Operation result = + new com.google.container.v1beta1.Operation(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.zone_ = zone_; + result.operationType_ = operationType_; + result.status_ = status_; + result.detail_ = detail_; + result.statusMessage_ = statusMessage_; + result.selfLink_ = selfLink_; + result.targetLink_ = targetLink_; + result.location_ = location_; + result.startTime_ = startTime_; + result.endTime_ = endTime_; + if (progressBuilder_ == null) { + result.progress_ = progress_; + } else { + result.progress_ = progressBuilder_.build(); + } + if (clusterConditionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + clusterConditions_ = java.util.Collections.unmodifiableList(clusterConditions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.clusterConditions_ = clusterConditions_; + } else { + result.clusterConditions_ = clusterConditionsBuilder_.build(); + } + if (nodepoolConditionsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + nodepoolConditions_ = java.util.Collections.unmodifiableList(nodepoolConditions_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.nodepoolConditions_ = nodepoolConditions_; + } else { + result.nodepoolConditions_ = nodepoolConditionsBuilder_.build(); + } + if (errorBuilder_ == null) { + result.error_ = error_; + } else { + result.error_ = errorBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.Operation) { + return mergeFrom((com.google.container.v1beta1.Operation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.Operation other) { + if (other == com.google.container.v1beta1.Operation.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (other.operationType_ != 0) { + setOperationTypeValue(other.getOperationTypeValue()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (!other.getDetail().isEmpty()) { + detail_ = other.detail_; + onChanged(); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + onChanged(); + } + if (!other.getSelfLink().isEmpty()) { + selfLink_ = other.selfLink_; + onChanged(); + } + if (!other.getTargetLink().isEmpty()) { + targetLink_ = other.targetLink_; + onChanged(); + } + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + onChanged(); + } + if (!other.getStartTime().isEmpty()) { + startTime_ = other.startTime_; + onChanged(); + } + if (!other.getEndTime().isEmpty()) { + endTime_ = other.endTime_; + onChanged(); + } + if (other.hasProgress()) { + mergeProgress(other.getProgress()); + } + if (clusterConditionsBuilder_ == null) { + if (!other.clusterConditions_.isEmpty()) { + if (clusterConditions_.isEmpty()) { + clusterConditions_ = other.clusterConditions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureClusterConditionsIsMutable(); + clusterConditions_.addAll(other.clusterConditions_); + } + onChanged(); + } + } else { + if (!other.clusterConditions_.isEmpty()) { + if (clusterConditionsBuilder_.isEmpty()) { + clusterConditionsBuilder_.dispose(); + clusterConditionsBuilder_ = null; + clusterConditions_ = other.clusterConditions_; + bitField0_ = (bitField0_ & ~0x00000001); + clusterConditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getClusterConditionsFieldBuilder() + : null; + } else { + clusterConditionsBuilder_.addAllMessages(other.clusterConditions_); + } + } + } + if (nodepoolConditionsBuilder_ == null) { + if (!other.nodepoolConditions_.isEmpty()) { + if (nodepoolConditions_.isEmpty()) { + nodepoolConditions_ = other.nodepoolConditions_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.addAll(other.nodepoolConditions_); + } + onChanged(); + } + } else { + if (!other.nodepoolConditions_.isEmpty()) { + if (nodepoolConditionsBuilder_.isEmpty()) { + nodepoolConditionsBuilder_.dispose(); + nodepoolConditionsBuilder_ = null; + nodepoolConditions_ = other.nodepoolConditions_; + bitField0_ = (bitField0_ & ~0x00000002); + nodepoolConditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNodepoolConditionsFieldBuilder() + : null; + } else { + nodepoolConditionsBuilder_.addAllMessages(other.nodepoolConditions_); + } + } + } + if (other.hasError()) { + mergeError(other.getError()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + operationType_ = input.readEnum(); + + break; + } // case 24 + case 32: + { + status_ = input.readEnum(); + + break; + } // case 32 + case 42: + { + statusMessage_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + selfLink_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: + { + targetLink_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + detail_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: + { + location_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 82: + { + startTime_ = input.readStringRequireUtf8(); + + break; + } // case 82 + case 90: + { + endTime_ = input.readStringRequireUtf8(); + + break; + } // case 90 + case 98: + { + input.readMessage(getProgressFieldBuilder().getBuilder(), extensionRegistry); + + 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); + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * The server-assigned ID for the operation.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The server-assigned ID for the operation.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * operation is taking place. This field is deprecated, use location instead.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Operation.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2262 + * @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=2262 + * @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=2262 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * operation is taking place. This field is deprecated, use location instead.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Operation.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2262 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * operation is taking place. This field is deprecated, use location instead.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * + * @deprecated google.container.v1beta1.Operation.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2262 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private int operationType_ = 0; + /** + * + * + *
+     * The operation type.
+     * 
+ * + * .google.container.v1beta1.Operation.Type operation_type = 3; + * + * @return The enum numeric value on the wire for operationType. + */ + @java.lang.Override + public int getOperationTypeValue() { + return operationType_; + } + /** + * + * + *
+     * The operation type.
+     * 
+ * + * .google.container.v1beta1.Operation.Type operation_type = 3; + * + * @param value The enum numeric value on the wire for operationType to set. + * @return This builder for chaining. + */ + public Builder setOperationTypeValue(int value) { + + operationType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The operation type.
+     * 
+ * + * .google.container.v1beta1.Operation.Type operation_type = 3; + * + * @return The operationType. + */ + @java.lang.Override + public com.google.container.v1beta1.Operation.Type getOperationType() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.Operation.Type result = + com.google.container.v1beta1.Operation.Type.valueOf(operationType_); + return result == null ? com.google.container.v1beta1.Operation.Type.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The operation type.
+     * 
+ * + * .google.container.v1beta1.Operation.Type operation_type = 3; + * + * @param value The operationType to set. + * @return This builder for chaining. + */ + public Builder setOperationType(com.google.container.v1beta1.Operation.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + operationType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The operation type.
+     * 
+ * + * .google.container.v1beta1.Operation.Type operation_type = 3; + * + * @return This builder for chaining. + */ + public Builder clearOperationType() { + + operationType_ = 0; + onChanged(); + return this; + } + + private int status_ = 0; + /** + * + * + *
+     * The current status of the operation.
+     * 
+ * + * .google.container.v1beta1.Operation.Status status = 4; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + /** + * + * + *
+     * The current status of the operation.
+     * 
+ * + * .google.container.v1beta1.Operation.Status status = 4; + * + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + + status_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The current status of the operation.
+     * 
+ * + * .google.container.v1beta1.Operation.Status status = 4; + * + * @return The status. + */ + @java.lang.Override + public com.google.container.v1beta1.Operation.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.Operation.Status result = + com.google.container.v1beta1.Operation.Status.valueOf(status_); + return result == null ? com.google.container.v1beta1.Operation.Status.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The current status of the operation.
+     * 
+ * + * .google.container.v1beta1.Operation.Status status = 4; + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(com.google.container.v1beta1.Operation.Status value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The current status of the operation.
+     * 
+ * + * .google.container.v1beta1.Operation.Status status = 4; + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + + status_ = 0; + onChanged(); + return this; + } + + private java.lang.Object detail_ = ""; + /** + * + * + *
+     * Detailed operation progress, if available.
+     * 
+ * + * string detail = 8; + * + * @return The detail. + */ + public java.lang.String getDetail() { + java.lang.Object ref = detail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + detail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Detailed operation progress, if available.
+     * 
+ * + * string detail = 8; + * + * @return The bytes for detail. + */ + public com.google.protobuf.ByteString getDetailBytes() { + java.lang.Object ref = detail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + detail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Detailed operation progress, if available.
+     * 
+ * + * string detail = 8; + * + * @param value The detail to set. + * @return This builder for chaining. + */ + public Builder setDetail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + detail_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Detailed operation progress, if available.
+     * 
+ * + * string detail = 8; + * + * @return This builder for chaining. + */ + public Builder clearDetail() { + + detail_ = getDefaultInstance().getDetail(); + onChanged(); + return this; + } + /** + * + * + *
+     * Detailed operation progress, if available.
+     * 
+ * + * string detail = 8; + * + * @param value The bytes for detail to set. + * @return This builder for chaining. + */ + public Builder setDetailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + detail_ = value; + onChanged(); + return this; + } + + private java.lang.Object statusMessage_ = ""; + /** + * + * + *
+     * Output only. If an error has occurred, a textual description of the error.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2275 + * @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=2275 + * @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=2275 + * @param value The statusMessage to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setStatusMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + statusMessage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If an error has occurred, a textual description of the error.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2275 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearStatusMessage() { + + statusMessage_ = getDefaultInstance().getStatusMessage(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If an error has occurred, a textual description of the error.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2275 + * @param value The bytes for statusMessage to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + statusMessage_ = value; + onChanged(); + return this; + } + + private java.lang.Object selfLink_ = ""; + /** + * + * + *
+     * Server-defined URL for the resource.
+     * 
+ * + * string self_link = 6; + * + * @return The selfLink. + */ + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Server-defined URL for the resource.
+     * 
+ * + * string self_link = 6; + * + * @return The bytes for selfLink. + */ + public com.google.protobuf.ByteString getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Server-defined URL for the resource.
+     * 
+ * + * string self_link = 6; + * + * @param value The selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + selfLink_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Server-defined URL for the resource.
+     * 
+ * + * string self_link = 6; + * + * @return This builder for chaining. + */ + public Builder clearSelfLink() { + + selfLink_ = getDefaultInstance().getSelfLink(); + onChanged(); + return this; + } + /** + * + * + *
+     * Server-defined URL for the resource.
+     * 
+ * + * string self_link = 6; + * + * @param value The bytes for selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + selfLink_ = value; + onChanged(); + return this; + } + + private java.lang.Object targetLink_ = ""; + /** + * + * + *
+     * Server-defined URL for the target of the operation.
+     * 
+ * + * string target_link = 7; + * + * @return The targetLink. + */ + public java.lang.String getTargetLink() { + java.lang.Object ref = targetLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Server-defined URL for the target of the operation.
+     * 
+ * + * string target_link = 7; + * + * @return The bytes for targetLink. + */ + public com.google.protobuf.ByteString getTargetLinkBytes() { + java.lang.Object ref = targetLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Server-defined URL for the target of the operation.
+     * 
+ * + * string target_link = 7; + * + * @param value The targetLink to set. + * @return This builder for chaining. + */ + public Builder setTargetLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + targetLink_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Server-defined URL for the target of the operation.
+     * 
+ * + * string target_link = 7; + * + * @return This builder for chaining. + */ + public Builder clearTargetLink() { + + targetLink_ = getDefaultInstance().getTargetLink(); + onChanged(); + return this; + } + /** + * + * + *
+     * Server-defined URL for the target of the operation.
+     * 
+ * + * string target_link = 7; + * + * @param value The bytes for targetLink to set. + * @return This builder for chaining. + */ + public Builder setTargetLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + targetLink_ = value; + onChanged(); + return this; + } + + private java.lang.Object location_ = ""; + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * or
+     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * in which the cluster resides.
+     * 
+ * + * string location = 9; + * + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * or
+     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * in which the cluster resides.
+     * 
+ * + * string location = 9; + * + * @return The bytes for location. + */ + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * or
+     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * in which the cluster resides.
+     * 
+ * + * string location = 9; + * + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + location_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * or
+     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * in which the cluster resides.
+     * 
+ * + * string location = 9; + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + + location_ = getDefaultInstance().getLocation(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * or
+     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * in which the cluster resides.
+     * 
+ * + * string location = 9; + * + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + location_ = value; + onChanged(); + return this; + } + + private java.lang.Object startTime_ = ""; + /** + * + * + *
+     * [Output only] The time the operation started, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string start_time = 10; + * + * @return The startTime. + */ + public java.lang.String getStartTime() { + java.lang.Object ref = startTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + startTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] The time the operation started, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string start_time = 10; + * + * @return The bytes for startTime. + */ + public com.google.protobuf.ByteString getStartTimeBytes() { + java.lang.Object ref = startTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + startTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] The time the operation started, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string start_time = 10; + * + * @param value The startTime to set. + * @return This builder for chaining. + */ + public Builder setStartTime(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + startTime_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The time the operation started, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string start_time = 10; + * + * @return This builder for chaining. + */ + public Builder clearStartTime() { + + startTime_ = getDefaultInstance().getStartTime(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The time the operation started, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string start_time = 10; + * + * @param value The bytes for startTime to set. + * @return This builder for chaining. + */ + public Builder setStartTimeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + startTime_ = value; + onChanged(); + return this; + } + + private java.lang.Object endTime_ = ""; + /** + * + * + *
+     * [Output only] The time the operation completed, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string end_time = 11; + * + * @return The endTime. + */ + public java.lang.String getEndTime() { + java.lang.Object ref = endTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] The time the operation completed, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string end_time = 11; + * + * @return The bytes for endTime. + */ + public com.google.protobuf.ByteString getEndTimeBytes() { + java.lang.Object ref = endTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] The time the operation completed, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string end_time = 11; + * + * @param value The endTime to set. + * @return This builder for chaining. + */ + public Builder setEndTime(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + endTime_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The time the operation completed, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string end_time = 11; + * + * @return This builder for chaining. + */ + public Builder clearEndTime() { + + endTime_ = getDefaultInstance().getEndTime(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The time the operation completed, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string end_time = 11; + * + * @param value The bytes for endTime to set. + * @return This builder for chaining. + */ + public Builder setEndTimeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + endTime_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.OperationProgress progress_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.OperationProgress, + com.google.container.v1beta1.OperationProgress.Builder, + com.google.container.v1beta1.OperationProgressOrBuilder> + progressBuilder_; + /** + * + * + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * + * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the progress field is set. + */ + public boolean hasProgress() { + return progressBuilder_ != null || progress_ != null; + } + /** + * + * + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * + * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The progress. + */ + public com.google.container.v1beta1.OperationProgress getProgress() { + if (progressBuilder_ == null) { + return progress_ == null + ? com.google.container.v1beta1.OperationProgress.getDefaultInstance() + : progress_; + } else { + return progressBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * + * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProgress(com.google.container.v1beta1.OperationProgress value) { + if (progressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + progress_ = value; + onChanged(); + } else { + progressBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * + * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProgress( + com.google.container.v1beta1.OperationProgress.Builder builderForValue) { + if (progressBuilder_ == null) { + progress_ = builderForValue.build(); + onChanged(); + } else { + progressBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * + * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeProgress(com.google.container.v1beta1.OperationProgress value) { + if (progressBuilder_ == null) { + if (progress_ != null) { + progress_ = + com.google.container.v1beta1.OperationProgress.newBuilder(progress_) + .mergeFrom(value) + .buildPartial(); + } else { + progress_ = value; + } + onChanged(); + } else { + progressBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * + * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearProgress() { + if (progressBuilder_ == null) { + progress_ = null; + onChanged(); + } else { + progress_ = null; + progressBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * + * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.container.v1beta1.OperationProgress.Builder getProgressBuilder() { + + onChanged(); + return getProgressFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * + * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.container.v1beta1.OperationProgressOrBuilder getProgressOrBuilder() { + if (progressBuilder_ != null) { + return progressBuilder_.getMessageOrBuilder(); + } else { + return progress_ == null + ? com.google.container.v1beta1.OperationProgress.getDefaultInstance() + : progress_; + } + } + /** + * + * + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * + * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.OperationProgress, + com.google.container.v1beta1.OperationProgress.Builder, + com.google.container.v1beta1.OperationProgressOrBuilder> + getProgressFieldBuilder() { + if (progressBuilder_ == null) { + progressBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.OperationProgress, + com.google.container.v1beta1.OperationProgress.Builder, + com.google.container.v1beta1.OperationProgressOrBuilder>( + getProgress(), getParentForChildren(), isClean()); + progress_ = null; + } + return progressBuilder_; + } + + private java.util.List clusterConditions_ = + java.util.Collections.emptyList(); + + private void ensureClusterConditionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + clusterConditions_ = + new java.util.ArrayList( + clusterConditions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, + com.google.container.v1beta1.StatusCondition.Builder, + com.google.container.v1beta1.StatusConditionOrBuilder> + clusterConditionsBuilder_; + + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + public java.util.List getClusterConditionsList() { + if (clusterConditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(clusterConditions_); + } else { + return clusterConditionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + public int getClusterConditionsCount() { + if (clusterConditionsBuilder_ == null) { + return clusterConditions_.size(); + } else { + return clusterConditionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.container.v1beta1.StatusCondition getClusterConditions(int index) { + if (clusterConditionsBuilder_ == null) { + return clusterConditions_.get(index); + } else { + return clusterConditionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setClusterConditions( + int index, com.google.container.v1beta1.StatusCondition value) { + if (clusterConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClusterConditionsIsMutable(); + clusterConditions_.set(index, value); + onChanged(); + } else { + clusterConditionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setClusterConditions( + int index, com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (clusterConditionsBuilder_ == null) { + ensureClusterConditionsIsMutable(); + clusterConditions_.set(index, builderForValue.build()); + onChanged(); + } else { + clusterConditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder addClusterConditions(com.google.container.v1beta1.StatusCondition value) { + if (clusterConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClusterConditionsIsMutable(); + clusterConditions_.add(value); + onChanged(); + } else { + clusterConditionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder addClusterConditions( + int index, com.google.container.v1beta1.StatusCondition value) { + if (clusterConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClusterConditionsIsMutable(); + clusterConditions_.add(index, value); + onChanged(); + } else { + clusterConditionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder addClusterConditions( + com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (clusterConditionsBuilder_ == null) { + ensureClusterConditionsIsMutable(); + clusterConditions_.add(builderForValue.build()); + onChanged(); + } else { + clusterConditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder addClusterConditions( + int index, com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (clusterConditionsBuilder_ == null) { + ensureClusterConditionsIsMutable(); + clusterConditions_.add(index, builderForValue.build()); + onChanged(); + } else { + clusterConditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder addAllClusterConditions( + java.lang.Iterable values) { + if (clusterConditionsBuilder_ == null) { + ensureClusterConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clusterConditions_); + onChanged(); + } else { + clusterConditionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder clearClusterConditions() { + if (clusterConditionsBuilder_ == null) { + clusterConditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + clusterConditionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder removeClusterConditions(int index) { + if (clusterConditionsBuilder_ == null) { + ensureClusterConditionsIsMutable(); + clusterConditions_.remove(index); + onChanged(); + } else { + clusterConditionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.container.v1beta1.StatusCondition.Builder getClusterConditionsBuilder( + int index) { + return getClusterConditionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.container.v1beta1.StatusConditionOrBuilder getClusterConditionsOrBuilder( + int index) { + if (clusterConditionsBuilder_ == null) { + return clusterConditions_.get(index); + } else { + return clusterConditionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + public java.util.List + getClusterConditionsOrBuilderList() { + if (clusterConditionsBuilder_ != null) { + return clusterConditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(clusterConditions_); + } + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.container.v1beta1.StatusCondition.Builder addClusterConditionsBuilder() { + return getClusterConditionsFieldBuilder() + .addBuilder(com.google.container.v1beta1.StatusCondition.getDefaultInstance()); + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.container.v1beta1.StatusCondition.Builder addClusterConditionsBuilder( + int index) { + return getClusterConditionsFieldBuilder() + .addBuilder(index, com.google.container.v1beta1.StatusCondition.getDefaultInstance()); + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + public java.util.List + getClusterConditionsBuilderList() { + return getClusterConditionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, + com.google.container.v1beta1.StatusCondition.Builder, + com.google.container.v1beta1.StatusConditionOrBuilder> + getClusterConditionsFieldBuilder() { + if (clusterConditionsBuilder_ == null) { + clusterConditionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, + com.google.container.v1beta1.StatusCondition.Builder, + com.google.container.v1beta1.StatusConditionOrBuilder>( + clusterConditions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + clusterConditions_ = null; + } + return clusterConditionsBuilder_; + } + + private java.util.List nodepoolConditions_ = + java.util.Collections.emptyList(); + + private void ensureNodepoolConditionsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + nodepoolConditions_ = + new java.util.ArrayList( + nodepoolConditions_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, + com.google.container.v1beta1.StatusCondition.Builder, + com.google.container.v1beta1.StatusConditionOrBuilder> + nodepoolConditionsBuilder_; + + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + public java.util.List + getNodepoolConditionsList() { + if (nodepoolConditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodepoolConditions_); + } else { + return nodepoolConditionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + public int getNodepoolConditionsCount() { + if (nodepoolConditionsBuilder_ == null) { + return nodepoolConditions_.size(); + } else { + return nodepoolConditionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.container.v1beta1.StatusCondition getNodepoolConditions(int index) { + if (nodepoolConditionsBuilder_ == null) { + return nodepoolConditions_.get(index); + } else { + return nodepoolConditionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setNodepoolConditions( + int index, com.google.container.v1beta1.StatusCondition value) { + if (nodepoolConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.set(index, value); + onChanged(); + } else { + nodepoolConditionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setNodepoolConditions( + int index, com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (nodepoolConditionsBuilder_ == null) { + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.set(index, builderForValue.build()); + onChanged(); + } else { + nodepoolConditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder addNodepoolConditions(com.google.container.v1beta1.StatusCondition value) { + if (nodepoolConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.add(value); + onChanged(); + } else { + nodepoolConditionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder addNodepoolConditions( + int index, com.google.container.v1beta1.StatusCondition value) { + if (nodepoolConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.add(index, value); + onChanged(); + } else { + nodepoolConditionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder addNodepoolConditions( + com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (nodepoolConditionsBuilder_ == null) { + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.add(builderForValue.build()); + onChanged(); + } else { + nodepoolConditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder addNodepoolConditions( + int index, com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (nodepoolConditionsBuilder_ == null) { + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.add(index, builderForValue.build()); + onChanged(); + } else { + nodepoolConditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder addAllNodepoolConditions( + java.lang.Iterable values) { + if (nodepoolConditionsBuilder_ == null) { + ensureNodepoolConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodepoolConditions_); + onChanged(); + } else { + nodepoolConditionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder clearNodepoolConditions() { + if (nodepoolConditionsBuilder_ == null) { + nodepoolConditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + nodepoolConditionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder removeNodepoolConditions(int index) { + if (nodepoolConditionsBuilder_ == null) { + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.remove(index); + onChanged(); + } else { + nodepoolConditionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.container.v1beta1.StatusCondition.Builder getNodepoolConditionsBuilder( + int index) { + return getNodepoolConditionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.container.v1beta1.StatusConditionOrBuilder getNodepoolConditionsOrBuilder( + int index) { + if (nodepoolConditionsBuilder_ == null) { + return nodepoolConditions_.get(index); + } else { + return nodepoolConditionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + public java.util.List + getNodepoolConditionsOrBuilderList() { + if (nodepoolConditionsBuilder_ != null) { + return nodepoolConditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodepoolConditions_); + } + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.container.v1beta1.StatusCondition.Builder addNodepoolConditionsBuilder() { + return getNodepoolConditionsFieldBuilder() + .addBuilder(com.google.container.v1beta1.StatusCondition.getDefaultInstance()); + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.container.v1beta1.StatusCondition.Builder addNodepoolConditionsBuilder( + int index) { + return getNodepoolConditionsFieldBuilder() + .addBuilder(index, com.google.container.v1beta1.StatusCondition.getDefaultInstance()); + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + public java.util.List + getNodepoolConditionsBuilderList() { + return getNodepoolConditionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, + com.google.container.v1beta1.StatusCondition.Builder, + com.google.container.v1beta1.StatusConditionOrBuilder> + getNodepoolConditionsFieldBuilder() { + if (nodepoolConditionsBuilder_ == null) { + nodepoolConditionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, + com.google.container.v1beta1.StatusCondition.Builder, + com.google.container.v1beta1.StatusConditionOrBuilder>( + nodepoolConditions_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + nodepoolConditions_ = null; + } + return nodepoolConditionsBuilder_; + } + + private com.google.rpc.Status error_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; + /** + * + * + *
+     * The error result of the operation in case of failure.
+     * 
+ * + * .google.rpc.Status error = 15; + * + * @return Whether the error field is set. + */ + public boolean hasError() { + return errorBuilder_ != null || error_ != null; + } + /** + * + * + *
+     * The error result of the operation in case of failure.
+     * 
+ * + * .google.rpc.Status error = 15; + * + * @return The error. + */ + public com.google.rpc.Status getError() { + if (errorBuilder_ == null) { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } else { + return errorBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The error result of the operation in case of failure.
+     * 
+ * + * .google.rpc.Status error = 15; + */ + public Builder setError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The error result of the operation in case of failure.
+     * 
+ * + * .google.rpc.Status error = 15; + */ + public Builder setError(com.google.rpc.Status.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The error result of the operation in case of failure.
+     * 
+ * + * .google.rpc.Status error = 15; + */ + public Builder mergeError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (error_ != null) { + error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); + } else { + error_ = value; + } + onChanged(); + } else { + errorBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The error result of the operation in case of failure.
+     * 
+ * + * .google.rpc.Status error = 15; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + error_ = null; + onChanged(); + } else { + error_ = null; + errorBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The error result of the operation in case of failure.
+     * 
+ * + * .google.rpc.Status error = 15; + */ + public com.google.rpc.Status.Builder getErrorBuilder() { + + onChanged(); + return getErrorFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The error result of the operation in case of failure.
+     * 
+ * + * .google.rpc.Status error = 15; + */ + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); + } else { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + } + /** + * + * + *
+     * The error result of the operation in case of failure.
+     * 
+ * + * .google.rpc.Status error = 15; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); + error_ = null; + } + return errorBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.Operation) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.Operation) + private static final com.google.container.v1beta1.Operation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.Operation(); + } + + public static com.google.container.v1beta1.Operation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Operation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..e2ef95f757c6 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationOrBuilder.java @@ -0,0 +1,554 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +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=2262 + * @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=2262 + * @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=2275 + * @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=2275 + * @return The bytes for statusMessage. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getStatusMessageBytes(); + + /** + * + * + *
+   * Server-defined URL for the resource.
+   * 
+ * + * string self_link = 6; + * + * @return The selfLink. + */ + java.lang.String getSelfLink(); + /** + * + * + *
+   * Server-defined URL for the resource.
+   * 
+ * + * string self_link = 6; + * + * @return The bytes for selfLink. + */ + com.google.protobuf.ByteString getSelfLinkBytes(); + + /** + * + * + *
+   * Server-defined URL for the target of the operation.
+   * 
+ * + * string target_link = 7; + * + * @return The targetLink. + */ + java.lang.String getTargetLink(); + /** + * + * + *
+   * Server-defined URL for the target of the operation.
+   * 
+ * + * string target_link = 7; + * + * @return The bytes for targetLink. + */ + com.google.protobuf.ByteString getTargetLinkBytes(); + + /** + * + * + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * or
+   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * in which the cluster resides.
+   * 
+ * + * string location = 9; + * + * @return The location. + */ + java.lang.String getLocation(); + /** + * + * + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * or
+   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * in which the cluster resides.
+   * 
+ * + * string location = 9; + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); + + /** + * + * + *
+   * [Output only] The time the operation started, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string start_time = 10; + * + * @return The startTime. + */ + java.lang.String getStartTime(); + /** + * + * + *
+   * [Output only] The time the operation started, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string start_time = 10; + * + * @return The bytes for startTime. + */ + com.google.protobuf.ByteString getStartTimeBytes(); + + /** + * + * + *
+   * [Output only] The time the operation completed, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string end_time = 11; + * + * @return The endTime. + */ + java.lang.String getEndTime(); + /** + * + * + *
+   * [Output only] The time the operation completed, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string end_time = 11; + * + * @return The bytes for endTime. + */ + com.google.protobuf.ByteString getEndTimeBytes(); + + /** + * + * + *
+   * Output only. [Output only] Progress information for an operation.
+   * 
+ * + * + * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the progress field is set. + */ + boolean hasProgress(); + /** + * + * + *
+   * Output only. [Output only] Progress information for an operation.
+   * 
+ * + * + * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The progress. + */ + com.google.container.v1beta1.OperationProgress getProgress(); + /** + * + * + *
+   * Output only. [Output only] Progress information for an operation.
+   * 
+ * + * + * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.container.v1beta1.OperationProgressOrBuilder getProgressOrBuilder(); + + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + java.util.List getClusterConditionsList(); + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + com.google.container.v1beta1.StatusCondition getClusterConditions(int index); + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + int getClusterConditionsCount(); + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + java.util.List + getClusterConditionsOrBuilderList(); + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + com.google.container.v1beta1.StatusConditionOrBuilder getClusterConditionsOrBuilder(int index); + + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + java.util.List getNodepoolConditionsList(); + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + com.google.container.v1beta1.StatusCondition getNodepoolConditions(int index); + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + int getNodepoolConditionsCount(); + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + java.util.List + getNodepoolConditionsOrBuilderList(); + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + com.google.container.v1beta1.StatusConditionOrBuilder getNodepoolConditionsOrBuilder(int index); + + /** + * + * + *
+   * The error result of the operation in case of failure.
+   * 
+ * + * .google.rpc.Status error = 15; + * + * @return Whether the error field is set. + */ + boolean hasError(); + /** + * + * + *
+   * The error result of the operation in case of failure.
+   * 
+ * + * .google.rpc.Status error = 15; + * + * @return The error. + */ + com.google.rpc.Status getError(); + /** + * + * + *
+   * The error result of the operation in case of failure.
+   * 
+ * + * .google.rpc.Status error = 15; + */ + com.google.rpc.StatusOrBuilder getErrorOrBuilder(); +} diff --git a/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 new file mode 100644 index 000000000000..87d0dff278bb --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationProgress.java @@ -0,0 +1,3188 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Information about operation (or operation stage) progress.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.OperationProgress} + */ +public final class OperationProgress extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.OperationProgress) + OperationProgressOrBuilder { + private static final long serialVersionUID = 0L; + // Use OperationProgress.newBuilder() to construct. + private OperationProgress(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OperationProgress() { + name_ = ""; + status_ = 0; + metrics_ = java.util.Collections.emptyList(); + stages_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OperationProgress(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_OperationProgress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_OperationProgress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.OperationProgress.class, + com.google.container.v1beta1.OperationProgress.Builder.class); + } + + public interface MetricOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.OperationProgress.Metric) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. Metric name, e.g., "nodes total", "percent done".
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+     * Required. Metric name, e.g., "nodes total", "percent done".
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+     * For metrics with integer value.
+     * 
+ * + * int64 int_value = 2; + * + * @return Whether the intValue field is set. + */ + boolean hasIntValue(); + /** + * + * + *
+     * For metrics with integer value.
+     * 
+ * + * int64 int_value = 2; + * + * @return The intValue. + */ + long getIntValue(); + + /** + * + * + *
+     * For metrics with floating point value.
+     * 
+ * + * double double_value = 3; + * + * @return Whether the doubleValue field is set. + */ + boolean hasDoubleValue(); + /** + * + * + *
+     * For metrics with floating point value.
+     * 
+ * + * double double_value = 3; + * + * @return The doubleValue. + */ + double getDoubleValue(); + + /** + * + * + *
+     * For metrics with custom values (ratios, visual progress, etc.).
+     * 
+ * + * string string_value = 4; + * + * @return Whether the stringValue field is set. + */ + boolean hasStringValue(); + /** + * + * + *
+     * For metrics with custom values (ratios, visual progress, etc.).
+     * 
+ * + * string string_value = 4; + * + * @return The stringValue. + */ + java.lang.String getStringValue(); + /** + * + * + *
+     * For metrics with custom values (ratios, visual progress, etc.).
+     * 
+ * + * string string_value = 4; + * + * @return The bytes for stringValue. + */ + com.google.protobuf.ByteString getStringValueBytes(); + + public com.google.container.v1beta1.OperationProgress.Metric.ValueCase getValueCase(); + } + /** + * + * + *
+   * Progress metric is (string, int|float|string) pair.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.OperationProgress.Metric} + */ + public static final class Metric extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.OperationProgress.Metric) + MetricOrBuilder { + private static final long serialVersionUID = 0L; + // Use Metric.newBuilder() to construct. + private Metric(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Metric() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Metric(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_OperationProgress_Metric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_OperationProgress_Metric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.OperationProgress.Metric.class, + com.google.container.v1beta1.OperationProgress.Metric.Builder.class); + } + + private int valueCase_ = 0; + private java.lang.Object value_; + + public enum ValueCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + INT_VALUE(2), + DOUBLE_VALUE(3), + STRING_VALUE(4), + VALUE_NOT_SET(0); + private final int value; + + private ValueCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 2: + return INT_VALUE; + case 3: + return DOUBLE_VALUE; + case 4: + return STRING_VALUE; + case 0: + return VALUE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+     * Required. Metric name, e.g., "nodes total", "percent done".
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+     * Required. Metric name, e.g., "nodes total", "percent done".
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INT_VALUE_FIELD_NUMBER = 2; + /** + * + * + *
+     * For metrics with integer value.
+     * 
+ * + * int64 int_value = 2; + * + * @return Whether the intValue field is set. + */ + @java.lang.Override + public boolean hasIntValue() { + return valueCase_ == 2; + } + /** + * + * + *
+     * For metrics with integer value.
+     * 
+ * + * int64 int_value = 2; + * + * @return The intValue. + */ + @java.lang.Override + public long getIntValue() { + if (valueCase_ == 2) { + return (java.lang.Long) value_; + } + return 0L; + } + + public static final int DOUBLE_VALUE_FIELD_NUMBER = 3; + /** + * + * + *
+     * For metrics with floating point value.
+     * 
+ * + * double double_value = 3; + * + * @return Whether the doubleValue field is set. + */ + @java.lang.Override + public boolean hasDoubleValue() { + return valueCase_ == 3; + } + /** + * + * + *
+     * For metrics with floating point value.
+     * 
+ * + * double double_value = 3; + * + * @return The doubleValue. + */ + @java.lang.Override + public double getDoubleValue() { + if (valueCase_ == 3) { + return (java.lang.Double) value_; + } + return 0D; + } + + public static final int STRING_VALUE_FIELD_NUMBER = 4; + /** + * + * + *
+     * For metrics with custom values (ratios, visual progress, etc.).
+     * 
+ * + * string string_value = 4; + * + * @return Whether the stringValue field is set. + */ + public boolean hasStringValue() { + return valueCase_ == 4; + } + /** + * + * + *
+     * For metrics with custom values (ratios, visual progress, etc.).
+     * 
+ * + * string string_value = 4; + * + * @return The stringValue. + */ + public java.lang.String getStringValue() { + java.lang.Object ref = ""; + if (valueCase_ == 4) { + ref = value_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (valueCase_ == 4) { + value_ = s; + } + return s; + } + } + /** + * + * + *
+     * For metrics with custom values (ratios, visual progress, etc.).
+     * 
+ * + * string string_value = 4; + * + * @return The bytes for stringValue. + */ + public com.google.protobuf.ByteString getStringValueBytes() { + java.lang.Object ref = ""; + if (valueCase_ == 4) { + ref = value_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (valueCase_ == 4) { + value_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + name_ = ""; + + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_OperationProgress_Metric_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.OperationProgress.Metric getDefaultInstanceForType() { + return com.google.container.v1beta1.OperationProgress.Metric.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.OperationProgress.Metric build() { + com.google.container.v1beta1.OperationProgress.Metric result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.OperationProgress.Metric buildPartial() { + com.google.container.v1beta1.OperationProgress.Metric result = + new com.google.container.v1beta1.OperationProgress.Metric(this); + result.name_ = name_; + if (valueCase_ == 2) { + result.value_ = value_; + } + if (valueCase_ == 3) { + result.value_ = value_; + } + if (valueCase_ == 4) { + result.value_ = value_; + } + result.valueCase_ = valueCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.OperationProgress.Metric) { + return mergeFrom((com.google.container.v1beta1.OperationProgress.Metric) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.OperationProgress.Metric other) { + if (other == com.google.container.v1beta1.OperationProgress.Metric.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + switch (other.getValueCase()) { + case INT_VALUE: + { + setIntValue(other.getIntValue()); + break; + } + case DOUBLE_VALUE: + { + setDoubleValue(other.getDoubleValue()); + break; + } + case STRING_VALUE: + { + valueCase_ = 4; + value_ = other.value_; + onChanged(); + break; + } + case VALUE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 java.lang.Object name_ = ""; + /** + * + * + *
+       * Required. Metric name, e.g., "nodes total", "percent done".
+       * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. Metric name, e.g., "nodes total", "percent done".
+       * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. Metric name, e.g., "nodes total", "percent done".
+       * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Metric name, e.g., "nodes total", "percent done".
+       * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Metric name, e.g., "nodes total", "percent done".
+       * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+       * For metrics with integer value.
+       * 
+ * + * int64 int_value = 2; + * + * @return Whether the intValue field is set. + */ + public boolean hasIntValue() { + return valueCase_ == 2; + } + /** + * + * + *
+       * For metrics with integer value.
+       * 
+ * + * int64 int_value = 2; + * + * @return The intValue. + */ + public long getIntValue() { + if (valueCase_ == 2) { + return (java.lang.Long) value_; + } + return 0L; + } + /** + * + * + *
+       * For metrics with integer value.
+       * 
+ * + * int64 int_value = 2; + * + * @param value The intValue to set. + * @return This builder for chaining. + */ + public Builder setIntValue(long value) { + valueCase_ = 2; + value_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * For metrics with integer value.
+       * 
+ * + * int64 int_value = 2; + * + * @return This builder for chaining. + */ + public Builder clearIntValue() { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * For metrics with floating point value.
+       * 
+ * + * double double_value = 3; + * + * @return Whether the doubleValue field is set. + */ + public boolean hasDoubleValue() { + return valueCase_ == 3; + } + /** + * + * + *
+       * For metrics with floating point value.
+       * 
+ * + * double double_value = 3; + * + * @return The doubleValue. + */ + public double getDoubleValue() { + if (valueCase_ == 3) { + return (java.lang.Double) value_; + } + return 0D; + } + /** + * + * + *
+       * For metrics with floating point value.
+       * 
+ * + * double double_value = 3; + * + * @param value The doubleValue to set. + * @return This builder for chaining. + */ + public Builder setDoubleValue(double value) { + valueCase_ = 3; + value_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * For metrics with floating point value.
+       * 
+ * + * double double_value = 3; + * + * @return This builder for chaining. + */ + public Builder clearDoubleValue() { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * For metrics with custom values (ratios, visual progress, etc.).
+       * 
+ * + * string string_value = 4; + * + * @return Whether the stringValue field is set. + */ + @java.lang.Override + public boolean hasStringValue() { + return valueCase_ == 4; + } + /** + * + * + *
+       * For metrics with custom values (ratios, visual progress, etc.).
+       * 
+ * + * string string_value = 4; + * + * @return The stringValue. + */ + @java.lang.Override + public java.lang.String getStringValue() { + java.lang.Object ref = ""; + if (valueCase_ == 4) { + ref = value_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (valueCase_ == 4) { + value_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * For metrics with custom values (ratios, visual progress, etc.).
+       * 
+ * + * string string_value = 4; + * + * @return The bytes for stringValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStringValueBytes() { + java.lang.Object ref = ""; + if (valueCase_ == 4) { + ref = value_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (valueCase_ == 4) { + value_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * For metrics with custom values (ratios, visual progress, etc.).
+       * 
+ * + * string string_value = 4; + * + * @param value The stringValue to set. + * @return This builder for chaining. + */ + public Builder setStringValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + valueCase_ = 4; + value_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * For metrics with custom values (ratios, visual progress, etc.).
+       * 
+ * + * string string_value = 4; + * + * @return This builder for chaining. + */ + public Builder clearStringValue() { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+       * For metrics with custom values (ratios, visual progress, etc.).
+       * 
+ * + * string string_value = 4; + * + * @param value The bytes for stringValue to set. + * @return This builder for chaining. + */ + public Builder setStringValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + valueCase_ = 4; + value_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.OperationProgress.Metric) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.OperationProgress.Metric) + private static final com.google.container.v1beta1.OperationProgress.Metric DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.OperationProgress.Metric(); + } + + public static com.google.container.v1beta1.OperationProgress.Metric getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Metric parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.OperationProgress.Metric getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * A non-parameterized string describing an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * A non-parameterized string describing an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 2; + private int status_; + /** + * + * + *
+   * Status of an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * .google.container.v1beta1.Operation.Status status = 2; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + /** + * + * + *
+   * Status of an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * .google.container.v1beta1.Operation.Status status = 2; + * + * @return The status. + */ + @java.lang.Override + public com.google.container.v1beta1.Operation.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.Operation.Status result = + com.google.container.v1beta1.Operation.Status.valueOf(status_); + return result == null ? com.google.container.v1beta1.Operation.Status.UNRECOGNIZED : result; + } + + public static final int METRICS_FIELD_NUMBER = 3; + private java.util.List metrics_; + /** + * + * + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + @java.lang.Override + public java.util.List getMetricsList() { + return metrics_; + } + /** + * + * + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + @java.lang.Override + public java.util.List + getMetricsOrBuilderList() { + return metrics_; + } + /** + * + * + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + @java.lang.Override + public int getMetricsCount() { + return metrics_.size(); + } + /** + * + * + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + @java.lang.Override + public com.google.container.v1beta1.OperationProgress.Metric getMetrics(int index) { + return metrics_.get(index); + } + /** + * + * + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + @java.lang.Override + public com.google.container.v1beta1.OperationProgress.MetricOrBuilder getMetricsOrBuilder( + int index) { + return metrics_.get(index); + } + + public static final int STAGES_FIELD_NUMBER = 4; + private java.util.List stages_; + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + @java.lang.Override + public java.util.List getStagesList() { + return stages_; + } + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + @java.lang.Override + public java.util.List + getStagesOrBuilderList() { + return stages_; + } + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + @java.lang.Override + public int getStagesCount() { + return stages_.size(); + } + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + @java.lang.Override + public com.google.container.v1beta1.OperationProgress getStages(int index) { + return stages_.get(index); + } + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + @java.lang.Override + public com.google.container.v1beta1.OperationProgressOrBuilder getStagesOrBuilder(int index) { + return stages_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + name_ = ""; + + status_ = 0; + + if (metricsBuilder_ == null) { + metrics_ = java.util.Collections.emptyList(); + } else { + metrics_ = null; + metricsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (stagesBuilder_ == null) { + stages_ = java.util.Collections.emptyList(); + } else { + stages_ = null; + stagesBuilder_.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_OperationProgress_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.OperationProgress getDefaultInstanceForType() { + return com.google.container.v1beta1.OperationProgress.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.OperationProgress build() { + com.google.container.v1beta1.OperationProgress result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.OperationProgress buildPartial() { + com.google.container.v1beta1.OperationProgress result = + new com.google.container.v1beta1.OperationProgress(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.status_ = status_; + if (metricsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + metrics_ = java.util.Collections.unmodifiableList(metrics_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.metrics_ = metrics_; + } else { + result.metrics_ = metricsBuilder_.build(); + } + if (stagesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + stages_ = java.util.Collections.unmodifiableList(stages_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.stages_ = stages_; + } else { + result.stages_ = stagesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.OperationProgress) { + return mergeFrom((com.google.container.v1beta1.OperationProgress) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.OperationProgress other) { + if (other == com.google.container.v1beta1.OperationProgress.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (metricsBuilder_ == null) { + if (!other.metrics_.isEmpty()) { + if (metrics_.isEmpty()) { + metrics_ = other.metrics_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMetricsIsMutable(); + metrics_.addAll(other.metrics_); + } + onChanged(); + } + } else { + if (!other.metrics_.isEmpty()) { + if (metricsBuilder_.isEmpty()) { + metricsBuilder_.dispose(); + metricsBuilder_ = null; + metrics_ = other.metrics_; + bitField0_ = (bitField0_ & ~0x00000001); + metricsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMetricsFieldBuilder() + : null; + } else { + metricsBuilder_.addAllMessages(other.metrics_); + } + } + } + if (stagesBuilder_ == null) { + if (!other.stages_.isEmpty()) { + if (stages_.isEmpty()) { + stages_ = other.stages_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureStagesIsMutable(); + stages_.addAll(other.stages_); + } + onChanged(); + } + } else { + if (!other.stages_.isEmpty()) { + if (stagesBuilder_.isEmpty()) { + stagesBuilder_.dispose(); + stagesBuilder_ = null; + stages_ = other.stages_; + bitField0_ = (bitField0_ & ~0x00000002); + stagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStagesFieldBuilder() + : null; + } else { + stagesBuilder_.addAllMessages(other.stages_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 16: + { + status_ = input.readEnum(); + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * A non-parameterized string describing an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * A non-parameterized string describing an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int status_ = 0; + /** + * + * + *
+     * Status of an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * .google.container.v1beta1.Operation.Status status = 2; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + /** + * + * + *
+     * Status of an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * .google.container.v1beta1.Operation.Status status = 2; + * + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + + status_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Status of an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * .google.container.v1beta1.Operation.Status status = 2; + * + * @return The status. + */ + @java.lang.Override + public com.google.container.v1beta1.Operation.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.Operation.Status result = + com.google.container.v1beta1.Operation.Status.valueOf(status_); + return result == null ? com.google.container.v1beta1.Operation.Status.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Status of an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * .google.container.v1beta1.Operation.Status status = 2; + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(com.google.container.v1beta1.Operation.Status value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Status of an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * .google.container.v1beta1.Operation.Status status = 2; + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + + status_ = 0; + onChanged(); + return this; + } + + private java.util.List metrics_ = + java.util.Collections.emptyList(); + + private void ensureMetricsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + metrics_ = + new java.util.ArrayList( + metrics_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.OperationProgress.Metric, + com.google.container.v1beta1.OperationProgress.Metric.Builder, + com.google.container.v1beta1.OperationProgress.MetricOrBuilder> + metricsBuilder_; + + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public java.util.List getMetricsList() { + if (metricsBuilder_ == null) { + return java.util.Collections.unmodifiableList(metrics_); + } else { + return metricsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public int getMetricsCount() { + if (metricsBuilder_ == null) { + return metrics_.size(); + } else { + return metricsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1beta1.OperationProgress.Metric getMetrics(int index) { + if (metricsBuilder_ == null) { + return metrics_.get(index); + } else { + return metricsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public Builder setMetrics( + int index, com.google.container.v1beta1.OperationProgress.Metric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.set(index, value); + onChanged(); + } else { + metricsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public Builder setMetrics( + int index, com.google.container.v1beta1.OperationProgress.Metric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.set(index, builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public Builder addMetrics(com.google.container.v1beta1.OperationProgress.Metric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.add(value); + onChanged(); + } else { + metricsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public Builder addMetrics( + int index, com.google.container.v1beta1.OperationProgress.Metric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.add(index, value); + onChanged(); + } else { + metricsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public Builder addMetrics( + com.google.container.v1beta1.OperationProgress.Metric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public Builder addMetrics( + int index, com.google.container.v1beta1.OperationProgress.Metric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(index, builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public Builder addAllMetrics( + java.lang.Iterable + values) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_); + onChanged(); + } else { + metricsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public Builder clearMetrics() { + if (metricsBuilder_ == null) { + metrics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + metricsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public Builder removeMetrics(int index) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.remove(index); + onChanged(); + } else { + metricsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1beta1.OperationProgress.Metric.Builder getMetricsBuilder( + int index) { + return getMetricsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1beta1.OperationProgress.MetricOrBuilder getMetricsOrBuilder( + int index) { + if (metricsBuilder_ == null) { + return metrics_.get(index); + } else { + return metricsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public java.util.List + getMetricsOrBuilderList() { + if (metricsBuilder_ != null) { + return metricsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metrics_); + } + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1beta1.OperationProgress.Metric.Builder addMetricsBuilder() { + return getMetricsFieldBuilder() + .addBuilder(com.google.container.v1beta1.OperationProgress.Metric.getDefaultInstance()); + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1beta1.OperationProgress.Metric.Builder addMetricsBuilder( + int index) { + return getMetricsFieldBuilder() + .addBuilder( + index, com.google.container.v1beta1.OperationProgress.Metric.getDefaultInstance()); + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public java.util.List + getMetricsBuilderList() { + return getMetricsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.OperationProgress.Metric, + com.google.container.v1beta1.OperationProgress.Metric.Builder, + com.google.container.v1beta1.OperationProgress.MetricOrBuilder> + getMetricsFieldBuilder() { + if (metricsBuilder_ == null) { + metricsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.OperationProgress.Metric, + com.google.container.v1beta1.OperationProgress.Metric.Builder, + com.google.container.v1beta1.OperationProgress.MetricOrBuilder>( + metrics_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + metrics_ = null; + } + return metricsBuilder_; + } + + private java.util.List stages_ = + java.util.Collections.emptyList(); + + private void ensureStagesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + stages_ = new java.util.ArrayList(stages_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.OperationProgress, + com.google.container.v1beta1.OperationProgress.Builder, + com.google.container.v1beta1.OperationProgressOrBuilder> + stagesBuilder_; + + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public java.util.List getStagesList() { + if (stagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(stages_); + } else { + return stagesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public int getStagesCount() { + if (stagesBuilder_ == null) { + return stages_.size(); + } else { + return stagesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public com.google.container.v1beta1.OperationProgress getStages(int index) { + if (stagesBuilder_ == null) { + return stages_.get(index); + } else { + return stagesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public Builder setStages(int index, com.google.container.v1beta1.OperationProgress value) { + if (stagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStagesIsMutable(); + stages_.set(index, value); + onChanged(); + } else { + stagesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public Builder setStages( + int index, com.google.container.v1beta1.OperationProgress.Builder builderForValue) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.set(index, builderForValue.build()); + onChanged(); + } else { + stagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public Builder addStages(com.google.container.v1beta1.OperationProgress value) { + if (stagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStagesIsMutable(); + stages_.add(value); + onChanged(); + } else { + stagesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public Builder addStages(int index, com.google.container.v1beta1.OperationProgress value) { + if (stagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStagesIsMutable(); + stages_.add(index, value); + onChanged(); + } else { + stagesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public Builder addStages( + com.google.container.v1beta1.OperationProgress.Builder builderForValue) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.add(builderForValue.build()); + onChanged(); + } else { + stagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public Builder addStages( + int index, com.google.container.v1beta1.OperationProgress.Builder builderForValue) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.add(index, builderForValue.build()); + onChanged(); + } else { + stagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public Builder addAllStages( + java.lang.Iterable values) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stages_); + onChanged(); + } else { + stagesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public Builder clearStages() { + if (stagesBuilder_ == null) { + stages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + stagesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public Builder removeStages(int index) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.remove(index); + onChanged(); + } else { + stagesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public com.google.container.v1beta1.OperationProgress.Builder getStagesBuilder(int index) { + return getStagesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public com.google.container.v1beta1.OperationProgressOrBuilder getStagesOrBuilder(int index) { + if (stagesBuilder_ == null) { + return stages_.get(index); + } else { + return stagesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public java.util.List + getStagesOrBuilderList() { + if (stagesBuilder_ != null) { + return stagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(stages_); + } + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public com.google.container.v1beta1.OperationProgress.Builder addStagesBuilder() { + return getStagesFieldBuilder() + .addBuilder(com.google.container.v1beta1.OperationProgress.getDefaultInstance()); + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public com.google.container.v1beta1.OperationProgress.Builder addStagesBuilder(int index) { + return getStagesFieldBuilder() + .addBuilder(index, com.google.container.v1beta1.OperationProgress.getDefaultInstance()); + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public java.util.List + getStagesBuilderList() { + return getStagesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.OperationProgress, + com.google.container.v1beta1.OperationProgress.Builder, + com.google.container.v1beta1.OperationProgressOrBuilder> + getStagesFieldBuilder() { + if (stagesBuilder_ == null) { + stagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.OperationProgress, + com.google.container.v1beta1.OperationProgress.Builder, + com.google.container.v1beta1.OperationProgressOrBuilder>( + stages_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + stages_ = null; + } + return stagesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.OperationProgress) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.OperationProgress) + private static final com.google.container.v1beta1.OperationProgress DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.OperationProgress(); + } + + public static com.google.container.v1beta1.OperationProgress getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationProgress parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..e8750c66636d --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationProgressOrBuilder.java @@ -0,0 +1,208 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface OperationProgressOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.OperationProgress) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A non-parameterized string describing an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * A non-parameterized string describing an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Status of an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * .google.container.v1beta1.Operation.Status status = 2; + * + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * + * + *
+   * Status of an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * .google.container.v1beta1.Operation.Status status = 2; + * + * @return The status. + */ + com.google.container.v1beta1.Operation.Status getStatus(); + + /** + * + * + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + java.util.List getMetricsList(); + /** + * + * + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + com.google.container.v1beta1.OperationProgress.Metric getMetrics(int index); + /** + * + * + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + int getMetricsCount(); + /** + * + * + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + java.util.List + getMetricsOrBuilderList(); + /** + * + * + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + com.google.container.v1beta1.OperationProgress.MetricOrBuilder getMetricsOrBuilder(int index); + + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + java.util.List getStagesList(); + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + com.google.container.v1beta1.OperationProgress getStages(int index); + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + int getStagesCount(); + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + java.util.List + getStagesOrBuilderList(); + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + com.google.container.v1beta1.OperationProgressOrBuilder getStagesOrBuilder(int index); +} diff --git a/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 new file mode 100644 index 000000000000..61cedb6b7225 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PodSecurityPolicyConfig.java @@ -0,0 +1,531 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration for the PodSecurityPolicy feature.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.PodSecurityPolicyConfig} + */ +public final class PodSecurityPolicyConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.PodSecurityPolicyConfig) + PodSecurityPolicyConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use PodSecurityPolicyConfig.newBuilder() to construct. + private PodSecurityPolicyConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PodSecurityPolicyConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PodSecurityPolicyConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_PodSecurityPolicyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_PodSecurityPolicyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.PodSecurityPolicyConfig.class, + com.google.container.v1beta1.PodSecurityPolicyConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
+   * must be valid under a PodSecurityPolicy to be created.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + 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(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_PodSecurityPolicyConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.PodSecurityPolicyConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.PodSecurityPolicyConfig build() { + com.google.container.v1beta1.PodSecurityPolicyConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.PodSecurityPolicyConfig buildPartial() { + com.google.container.v1beta1.PodSecurityPolicyConfig result = + new com.google.container.v1beta1.PodSecurityPolicyConfig(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.PodSecurityPolicyConfig) { + return mergeFrom((com.google.container.v1beta1.PodSecurityPolicyConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.PodSecurityPolicyConfig other) { + if (other == com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 boolean enabled_; + /** + * + * + *
+     * Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
+     * must be valid under a PodSecurityPolicy to be created.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
+     * must be valid under a PodSecurityPolicy to be created.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
+     * must be valid under a PodSecurityPolicy to be created.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.PodSecurityPolicyConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.PodSecurityPolicyConfig) + private static final com.google.container.v1beta1.PodSecurityPolicyConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.PodSecurityPolicyConfig(); + } + + public static com.google.container.v1beta1.PodSecurityPolicyConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PodSecurityPolicyConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..ce6bf7f032ad --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PodSecurityPolicyConfigOrBuilder.java @@ -0,0 +1,39 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface PodSecurityPolicyConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.PodSecurityPolicyConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
+   * must be valid under a PodSecurityPolicy to be created.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/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 new file mode 100644 index 000000000000..0a2d07288686 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfig.java @@ -0,0 +1,1854 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration options for private clusters.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.PrivateClusterConfig} + */ +public final class PrivateClusterConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.PrivateClusterConfig) + PrivateClusterConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use PrivateClusterConfig.newBuilder() to construct. + private PrivateClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PrivateClusterConfig() { + masterIpv4CidrBlock_ = ""; + privateEndpoint_ = ""; + publicEndpoint_ = ""; + peeringName_ = ""; + privateEndpointSubnetwork_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PrivateClusterConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_PrivateClusterConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_PrivateClusterConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.PrivateClusterConfig.class, + com.google.container.v1beta1.PrivateClusterConfig.Builder.class); + } + + public static final int ENABLE_PRIVATE_NODES_FIELD_NUMBER = 1; + private boolean enablePrivateNodes_; + /** + * + * + *
+   * Whether nodes have internal IP addresses only. If enabled, all nodes are
+   * given only RFC 1918 private addresses and communicate with the master via
+   * private networking.
+   * 
+ * + * bool enable_private_nodes = 1; + * + * @return The enablePrivateNodes. + */ + @java.lang.Override + public boolean getEnablePrivateNodes() { + return enablePrivateNodes_; + } + + public static final int ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER = 2; + private boolean enablePrivateEndpoint_; + /** + * + * + *
+   * Whether the master's internal IP address is used as the cluster endpoint.
+   * 
+ * + * bool enable_private_endpoint = 2; + * + * @return The enablePrivateEndpoint. + */ + @java.lang.Override + public boolean getEnablePrivateEndpoint() { + return enablePrivateEndpoint_; + } + + public static final int MASTER_IPV4_CIDR_BLOCK_FIELD_NUMBER = 3; + private volatile java.lang.Object masterIpv4CidrBlock_; + /** + * + * + *
+   * The IP range in CIDR notation to use for the hosted master network. This
+   * range will be used for assigning internal IP addresses to the master or
+   * set of masters, as well as the ILB VIP. This range must not overlap with
+   * any other ranges in use within the cluster's network.
+   * 
+ * + * string master_ipv4_cidr_block = 3; + * + * @return The masterIpv4CidrBlock. + */ + @java.lang.Override + public java.lang.String getMasterIpv4CidrBlock() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + masterIpv4CidrBlock_ = s; + return s; + } + } + /** + * + * + *
+   * The IP range in CIDR notation to use for the hosted master network. This
+   * range will be used for assigning internal IP addresses to the master or
+   * set of masters, as well as the ILB VIP. This range must not overlap with
+   * any other ranges in use within the cluster's network.
+   * 
+ * + * string master_ipv4_cidr_block = 3; + * + * @return The bytes for masterIpv4CidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + masterIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRIVATE_ENDPOINT_FIELD_NUMBER = 4; + private volatile java.lang.Object privateEndpoint_; + /** + * + * + *
+   * Output only. The internal IP address of this cluster's master endpoint.
+   * 
+ * + * string private_endpoint = 4; + * + * @return The privateEndpoint. + */ + @java.lang.Override + public java.lang.String getPrivateEndpoint() { + java.lang.Object ref = privateEndpoint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateEndpoint_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The internal IP address of this cluster's master endpoint.
+   * 
+ * + * string private_endpoint = 4; + * + * @return The bytes for privateEndpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrivateEndpointBytes() { + java.lang.Object ref = privateEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PUBLIC_ENDPOINT_FIELD_NUMBER = 5; + private volatile java.lang.Object publicEndpoint_; + /** + * + * + *
+   * Output only. The external IP address of this cluster's master endpoint.
+   * 
+ * + * string public_endpoint = 5; + * + * @return The publicEndpoint. + */ + @java.lang.Override + public java.lang.String getPublicEndpoint() { + java.lang.Object ref = publicEndpoint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publicEndpoint_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The external IP address of this cluster's master endpoint.
+   * 
+ * + * string public_endpoint = 5; + * + * @return The bytes for publicEndpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPublicEndpointBytes() { + java.lang.Object ref = publicEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publicEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PEERING_NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object peeringName_; + /** + * + * + *
+   * Output only. The peering name in the customer VPC used by this cluster.
+   * 
+ * + * string peering_name = 7; + * + * @return The peeringName. + */ + @java.lang.Override + public java.lang.String getPeeringName() { + java.lang.Object ref = peeringName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + peeringName_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The peering name in the customer VPC used by this cluster.
+   * 
+ * + * string peering_name = 7; + * + * @return The bytes for peeringName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPeeringNameBytes() { + java.lang.Object ref = peeringName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peeringName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MASTER_GLOBAL_ACCESS_CONFIG_FIELD_NUMBER = 8; + private com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig + masterGlobalAccessConfig_; + /** + * + * + *
+   * Controls master global access settings.
+   * 
+ * + * + * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + * + * @return Whether the masterGlobalAccessConfig field is set. + */ + @java.lang.Override + public boolean hasMasterGlobalAccessConfig() { + return masterGlobalAccessConfig_ != null; + } + /** + * + * + *
+   * Controls master global access settings.
+   * 
+ * + * + * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + * + * @return The masterGlobalAccessConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig + getMasterGlobalAccessConfig() { + return masterGlobalAccessConfig_ == null + ? com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance() + : masterGlobalAccessConfig_; + } + /** + * + * + *
+   * Controls master global access settings.
+   * 
+ * + * + * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + */ + @java.lang.Override + public com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfigOrBuilder + getMasterGlobalAccessConfigOrBuilder() { + return getMasterGlobalAccessConfig(); + } + + public static final int PRIVATE_ENDPOINT_SUBNETWORK_FIELD_NUMBER = 10; + 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 (masterGlobalAccessConfig_ != null) { + 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 (masterGlobalAccessConfig_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enablePrivateNodes_ = false; + + enablePrivateEndpoint_ = false; + + masterIpv4CidrBlock_ = ""; + + privateEndpoint_ = ""; + + publicEndpoint_ = ""; + + peeringName_ = ""; + + if (masterGlobalAccessConfigBuilder_ == null) { + masterGlobalAccessConfig_ = null; + } else { + masterGlobalAccessConfig_ = null; + masterGlobalAccessConfigBuilder_ = null; + } + 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); + result.enablePrivateNodes_ = enablePrivateNodes_; + result.enablePrivateEndpoint_ = enablePrivateEndpoint_; + result.masterIpv4CidrBlock_ = masterIpv4CidrBlock_; + result.privateEndpoint_ = privateEndpoint_; + result.publicEndpoint_ = publicEndpoint_; + result.peeringName_ = peeringName_; + if (masterGlobalAccessConfigBuilder_ == null) { + result.masterGlobalAccessConfig_ = masterGlobalAccessConfig_; + } else { + result.masterGlobalAccessConfig_ = masterGlobalAccessConfigBuilder_.build(); + } + result.privateEndpointSubnetwork_ = privateEndpointSubnetwork_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.PrivateClusterConfig) { + return mergeFrom((com.google.container.v1beta1.PrivateClusterConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.PrivateClusterConfig other) { + if (other == com.google.container.v1beta1.PrivateClusterConfig.getDefaultInstance()) + return this; + if (other.getEnablePrivateNodes() != false) { + setEnablePrivateNodes(other.getEnablePrivateNodes()); + } + if (other.getEnablePrivateEndpoint() != false) { + setEnablePrivateEndpoint(other.getEnablePrivateEndpoint()); + } + if (!other.getMasterIpv4CidrBlock().isEmpty()) { + masterIpv4CidrBlock_ = other.masterIpv4CidrBlock_; + onChanged(); + } + if (!other.getPrivateEndpoint().isEmpty()) { + privateEndpoint_ = other.privateEndpoint_; + onChanged(); + } + if (!other.getPublicEndpoint().isEmpty()) { + publicEndpoint_ = other.publicEndpoint_; + onChanged(); + } + if (!other.getPeeringName().isEmpty()) { + peeringName_ = other.peeringName_; + onChanged(); + } + if (other.hasMasterGlobalAccessConfig()) { + mergeMasterGlobalAccessConfig(other.getMasterGlobalAccessConfig()); + } + if (!other.getPrivateEndpointSubnetwork().isEmpty()) { + privateEndpointSubnetwork_ = other.privateEndpointSubnetwork_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 8 + case 16: + { + enablePrivateEndpoint_ = input.readBool(); + + break; + } // case 16 + case 26: + { + masterIpv4CidrBlock_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + privateEndpoint_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + publicEndpoint_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 58: + { + peeringName_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + input.readMessage( + getMasterGlobalAccessConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 66 + case 82: + { + privateEndpointSubnetwork_ = input.readStringRequireUtf8(); + + 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 boolean enablePrivateNodes_; + /** + * + * + *
+     * Whether nodes have internal IP addresses only. If enabled, all nodes are
+     * given only RFC 1918 private addresses and communicate with the master via
+     * private networking.
+     * 
+ * + * bool enable_private_nodes = 1; + * + * @return The enablePrivateNodes. + */ + @java.lang.Override + public boolean getEnablePrivateNodes() { + return enablePrivateNodes_; + } + /** + * + * + *
+     * Whether nodes have internal IP addresses only. If enabled, all nodes are
+     * given only RFC 1918 private addresses and communicate with the master via
+     * private networking.
+     * 
+ * + * bool enable_private_nodes = 1; + * + * @param value The enablePrivateNodes to set. + * @return This builder for chaining. + */ + public Builder setEnablePrivateNodes(boolean value) { + + enablePrivateNodes_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether nodes have internal IP addresses only. If enabled, all nodes are
+     * given only RFC 1918 private addresses and communicate with the master via
+     * private networking.
+     * 
+ * + * bool enable_private_nodes = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnablePrivateNodes() { + + enablePrivateNodes_ = false; + onChanged(); + return this; + } + + private boolean enablePrivateEndpoint_; + /** + * + * + *
+     * Whether the master's internal IP address is used as the cluster endpoint.
+     * 
+ * + * bool enable_private_endpoint = 2; + * + * @return The enablePrivateEndpoint. + */ + @java.lang.Override + public boolean getEnablePrivateEndpoint() { + return enablePrivateEndpoint_; + } + /** + * + * + *
+     * Whether the master's internal IP address is used as the cluster endpoint.
+     * 
+ * + * bool enable_private_endpoint = 2; + * + * @param value The enablePrivateEndpoint to set. + * @return This builder for chaining. + */ + public Builder setEnablePrivateEndpoint(boolean value) { + + enablePrivateEndpoint_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the master's internal IP address is used as the cluster endpoint.
+     * 
+ * + * bool enable_private_endpoint = 2; + * + * @return This builder for chaining. + */ + public Builder clearEnablePrivateEndpoint() { + + enablePrivateEndpoint_ = false; + onChanged(); + return this; + } + + private java.lang.Object masterIpv4CidrBlock_ = ""; + /** + * + * + *
+     * The IP range in CIDR notation to use for the hosted master network. This
+     * range will be used for assigning internal IP addresses to the master or
+     * set of masters, as well as the ILB VIP. This range must not overlap with
+     * any other ranges in use within the cluster's network.
+     * 
+ * + * string master_ipv4_cidr_block = 3; + * + * @return The masterIpv4CidrBlock. + */ + public java.lang.String getMasterIpv4CidrBlock() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + masterIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The IP range in CIDR notation to use for the hosted master network. This
+     * range will be used for assigning internal IP addresses to the master or
+     * set of masters, as well as the ILB VIP. This range must not overlap with
+     * any other ranges in use within the cluster's network.
+     * 
+ * + * string master_ipv4_cidr_block = 3; + * + * @return The bytes for masterIpv4CidrBlock. + */ + public com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + masterIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The IP range in CIDR notation to use for the hosted master network. This
+     * range will be used for assigning internal IP addresses to the master or
+     * set of masters, as well as the ILB VIP. This range must not overlap with
+     * any other ranges in use within the cluster's network.
+     * 
+ * + * string master_ipv4_cidr_block = 3; + * + * @param value The masterIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setMasterIpv4CidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + masterIpv4CidrBlock_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The IP range in CIDR notation to use for the hosted master network. This
+     * range will be used for assigning internal IP addresses to the master or
+     * set of masters, as well as the ILB VIP. This range must not overlap with
+     * any other ranges in use within the cluster's network.
+     * 
+ * + * string master_ipv4_cidr_block = 3; + * + * @return This builder for chaining. + */ + public Builder clearMasterIpv4CidrBlock() { + + masterIpv4CidrBlock_ = getDefaultInstance().getMasterIpv4CidrBlock(); + onChanged(); + return this; + } + /** + * + * + *
+     * The IP range in CIDR notation to use for the hosted master network. This
+     * range will be used for assigning internal IP addresses to the master or
+     * set of masters, as well as the ILB VIP. This range must not overlap with
+     * any other ranges in use within the cluster's network.
+     * 
+ * + * string master_ipv4_cidr_block = 3; + * + * @param value The bytes for masterIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setMasterIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + masterIpv4CidrBlock_ = value; + onChanged(); + return this; + } + + private java.lang.Object privateEndpoint_ = ""; + /** + * + * + *
+     * Output only. The internal IP address of this cluster's master endpoint.
+     * 
+ * + * string private_endpoint = 4; + * + * @return The privateEndpoint. + */ + public java.lang.String getPrivateEndpoint() { + java.lang.Object ref = privateEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The internal IP address of this cluster's master endpoint.
+     * 
+ * + * string private_endpoint = 4; + * + * @return The bytes for privateEndpoint. + */ + public com.google.protobuf.ByteString getPrivateEndpointBytes() { + java.lang.Object ref = privateEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The internal IP address of this cluster's master endpoint.
+     * 
+ * + * string private_endpoint = 4; + * + * @param value The privateEndpoint to set. + * @return This builder for chaining. + */ + public Builder setPrivateEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + privateEndpoint_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The internal IP address of this cluster's master endpoint.
+     * 
+ * + * string private_endpoint = 4; + * + * @return This builder for chaining. + */ + public Builder clearPrivateEndpoint() { + + privateEndpoint_ = getDefaultInstance().getPrivateEndpoint(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The internal IP address of this cluster's master endpoint.
+     * 
+ * + * string private_endpoint = 4; + * + * @param value The bytes for privateEndpoint to set. + * @return This builder for chaining. + */ + public Builder setPrivateEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + privateEndpoint_ = value; + onChanged(); + return this; + } + + private java.lang.Object publicEndpoint_ = ""; + /** + * + * + *
+     * Output only. The external IP address of this cluster's master endpoint.
+     * 
+ * + * string public_endpoint = 5; + * + * @return The publicEndpoint. + */ + public java.lang.String getPublicEndpoint() { + java.lang.Object ref = publicEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publicEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The external IP address of this cluster's master endpoint.
+     * 
+ * + * string public_endpoint = 5; + * + * @return The bytes for publicEndpoint. + */ + public com.google.protobuf.ByteString getPublicEndpointBytes() { + java.lang.Object ref = publicEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publicEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The external IP address of this cluster's master endpoint.
+     * 
+ * + * string public_endpoint = 5; + * + * @param value The publicEndpoint to set. + * @return This builder for chaining. + */ + public Builder setPublicEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + publicEndpoint_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The external IP address of this cluster's master endpoint.
+     * 
+ * + * string public_endpoint = 5; + * + * @return This builder for chaining. + */ + public Builder clearPublicEndpoint() { + + publicEndpoint_ = getDefaultInstance().getPublicEndpoint(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The external IP address of this cluster's master endpoint.
+     * 
+ * + * string public_endpoint = 5; + * + * @param value The bytes for publicEndpoint to set. + * @return This builder for chaining. + */ + public Builder setPublicEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + publicEndpoint_ = value; + onChanged(); + return this; + } + + private java.lang.Object peeringName_ = ""; + /** + * + * + *
+     * Output only. The peering name in the customer VPC used by this cluster.
+     * 
+ * + * string peering_name = 7; + * + * @return The peeringName. + */ + public java.lang.String getPeeringName() { + java.lang.Object ref = peeringName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + peeringName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The peering name in the customer VPC used by this cluster.
+     * 
+ * + * string peering_name = 7; + * + * @return The bytes for peeringName. + */ + public com.google.protobuf.ByteString getPeeringNameBytes() { + java.lang.Object ref = peeringName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peeringName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The peering name in the customer VPC used by this cluster.
+     * 
+ * + * string peering_name = 7; + * + * @param value The peeringName to set. + * @return This builder for chaining. + */ + public Builder setPeeringName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + peeringName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The peering name in the customer VPC used by this cluster.
+     * 
+ * + * string peering_name = 7; + * + * @return This builder for chaining. + */ + public Builder clearPeeringName() { + + peeringName_ = getDefaultInstance().getPeeringName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The peering name in the customer VPC used by this cluster.
+     * 
+ * + * string peering_name = 7; + * + * @param value The bytes for peeringName to set. + * @return This builder for chaining. + */ + public Builder setPeeringNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + peeringName_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig + masterGlobalAccessConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig, + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.Builder, + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfigOrBuilder> + masterGlobalAccessConfigBuilder_; + /** + * + * + *
+     * Controls master global access settings.
+     * 
+ * + * + * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + * + * @return Whether the masterGlobalAccessConfig field is set. + */ + public boolean hasMasterGlobalAccessConfig() { + return masterGlobalAccessConfigBuilder_ != null || masterGlobalAccessConfig_ != null; + } + /** + * + * + *
+     * Controls master global access settings.
+     * 
+ * + * + * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + * + * @return The masterGlobalAccessConfig. + */ + public com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig + getMasterGlobalAccessConfig() { + if (masterGlobalAccessConfigBuilder_ == null) { + return masterGlobalAccessConfig_ == null + ? com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig + .getDefaultInstance() + : masterGlobalAccessConfig_; + } else { + return masterGlobalAccessConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Controls master global access settings.
+     * 
+ * + * + * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + */ + public Builder setMasterGlobalAccessConfig( + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig value) { + if (masterGlobalAccessConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + masterGlobalAccessConfig_ = value; + onChanged(); + } else { + masterGlobalAccessConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Controls master global access settings.
+     * 
+ * + * + * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + */ + public Builder setMasterGlobalAccessConfig( + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.Builder + builderForValue) { + if (masterGlobalAccessConfigBuilder_ == null) { + masterGlobalAccessConfig_ = builderForValue.build(); + onChanged(); + } else { + masterGlobalAccessConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Controls master global access settings.
+     * 
+ * + * + * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + */ + public Builder mergeMasterGlobalAccessConfig( + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig value) { + if (masterGlobalAccessConfigBuilder_ == null) { + if (masterGlobalAccessConfig_ != null) { + masterGlobalAccessConfig_ = + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.newBuilder( + masterGlobalAccessConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + masterGlobalAccessConfig_ = value; + } + onChanged(); + } else { + masterGlobalAccessConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Controls master global access settings.
+     * 
+ * + * + * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + */ + public Builder clearMasterGlobalAccessConfig() { + if (masterGlobalAccessConfigBuilder_ == null) { + masterGlobalAccessConfig_ = null; + onChanged(); + } else { + masterGlobalAccessConfig_ = null; + masterGlobalAccessConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Controls master global access settings.
+     * 
+ * + * + * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + */ + public com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.Builder + getMasterGlobalAccessConfigBuilder() { + + onChanged(); + return getMasterGlobalAccessConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Controls master global access settings.
+     * 
+ * + * + * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + */ + public com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfigOrBuilder + getMasterGlobalAccessConfigOrBuilder() { + if (masterGlobalAccessConfigBuilder_ != null) { + return masterGlobalAccessConfigBuilder_.getMessageOrBuilder(); + } else { + return masterGlobalAccessConfig_ == null + ? com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig + .getDefaultInstance() + : masterGlobalAccessConfig_; + } + } + /** + * + * + *
+     * Controls master global access settings.
+     * 
+ * + * + * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig, + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.Builder, + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfigOrBuilder> + getMasterGlobalAccessConfigFieldBuilder() { + if (masterGlobalAccessConfigBuilder_ == null) { + masterGlobalAccessConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig, + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.Builder, + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfigOrBuilder>( + getMasterGlobalAccessConfig(), getParentForChildren(), isClean()); + masterGlobalAccessConfig_ = null; + } + return masterGlobalAccessConfigBuilder_; + } + + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..543dcd1264dd --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfigOrBuilder.java @@ -0,0 +1,228 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface PrivateClusterConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.PrivateClusterConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether nodes have internal IP addresses only. If enabled, all nodes are
+   * given only RFC 1918 private addresses and communicate with the master via
+   * private networking.
+   * 
+ * + * bool enable_private_nodes = 1; + * + * @return The enablePrivateNodes. + */ + boolean getEnablePrivateNodes(); + + /** + * + * + *
+   * Whether the master's internal IP address is used as the cluster endpoint.
+   * 
+ * + * bool enable_private_endpoint = 2; + * + * @return The enablePrivateEndpoint. + */ + boolean getEnablePrivateEndpoint(); + + /** + * + * + *
+   * The IP range in CIDR notation to use for the hosted master network. This
+   * range will be used for assigning internal IP addresses to the master or
+   * set of masters, as well as the ILB VIP. This range must not overlap with
+   * any other ranges in use within the cluster's network.
+   * 
+ * + * string master_ipv4_cidr_block = 3; + * + * @return The masterIpv4CidrBlock. + */ + java.lang.String getMasterIpv4CidrBlock(); + /** + * + * + *
+   * The IP range in CIDR notation to use for the hosted master network. This
+   * range will be used for assigning internal IP addresses to the master or
+   * set of masters, as well as the ILB VIP. This range must not overlap with
+   * any other ranges in use within the cluster's network.
+   * 
+ * + * string master_ipv4_cidr_block = 3; + * + * @return The bytes for masterIpv4CidrBlock. + */ + com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes(); + + /** + * + * + *
+   * Output only. The internal IP address of this cluster's master endpoint.
+   * 
+ * + * string private_endpoint = 4; + * + * @return The privateEndpoint. + */ + java.lang.String getPrivateEndpoint(); + /** + * + * + *
+   * Output only. The internal IP address of this cluster's master endpoint.
+   * 
+ * + * string private_endpoint = 4; + * + * @return The bytes for privateEndpoint. + */ + com.google.protobuf.ByteString getPrivateEndpointBytes(); + + /** + * + * + *
+   * Output only. The external IP address of this cluster's master endpoint.
+   * 
+ * + * string public_endpoint = 5; + * + * @return The publicEndpoint. + */ + java.lang.String getPublicEndpoint(); + /** + * + * + *
+   * Output only. The external IP address of this cluster's master endpoint.
+   * 
+ * + * string public_endpoint = 5; + * + * @return The bytes for publicEndpoint. + */ + com.google.protobuf.ByteString getPublicEndpointBytes(); + + /** + * + * + *
+   * Output only. The peering name in the customer VPC used by this cluster.
+   * 
+ * + * string peering_name = 7; + * + * @return The peeringName. + */ + java.lang.String getPeeringName(); + /** + * + * + *
+   * Output only. The peering name in the customer VPC used by this cluster.
+   * 
+ * + * string peering_name = 7; + * + * @return The bytes for peeringName. + */ + com.google.protobuf.ByteString getPeeringNameBytes(); + + /** + * + * + *
+   * Controls master global access settings.
+   * 
+ * + * + * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + * + * @return Whether the masterGlobalAccessConfig field is set. + */ + boolean hasMasterGlobalAccessConfig(); + /** + * + * + *
+   * Controls master global access settings.
+   * 
+ * + * + * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + * + * @return The masterGlobalAccessConfig. + */ + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig getMasterGlobalAccessConfig(); + /** + * + * + *
+   * Controls master global access settings.
+   * 
+ * + * + * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + */ + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfigOrBuilder + getMasterGlobalAccessConfigOrBuilder(); + + /** + * + * + *
+   * 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 new file mode 100644 index 000000000000..3fd0fbadeda5 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterMasterGlobalAccessConfig.java @@ -0,0 +1,540 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration for controlling master global access settings.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig} + */ +public final class PrivateClusterMasterGlobalAccessConfig + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig) + PrivateClusterMasterGlobalAccessConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use PrivateClusterMasterGlobalAccessConfig.newBuilder() to construct. + private PrivateClusterMasterGlobalAccessConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PrivateClusterMasterGlobalAccessConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PrivateClusterMasterGlobalAccessConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_PrivateClusterMasterGlobalAccessConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_PrivateClusterMasterGlobalAccessConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.class, + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whenever master is accessible globally or not.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + 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(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_PrivateClusterMasterGlobalAccessConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig + getDefaultInstanceForType() { + return com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig build() { + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig buildPartial() { + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig result = + new com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig) { + return mergeFrom( + (com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig other) { + if (other + == com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig + .getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 boolean enabled_; + /** + * + * + *
+     * Whenever master is accessible globally or not.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whenever master is accessible globally or not.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whenever master is accessible globally or not.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig) + private static final com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig(); + } + + public static com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateClusterMasterGlobalAccessConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..e1eeb7fc6248 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterMasterGlobalAccessConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface PrivateClusterMasterGlobalAccessConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whenever master is accessible globally or not.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/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 new file mode 100644 index 000000000000..9145e97b9494 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateIPv6GoogleAccess.java @@ -0,0 +1,202 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +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 priate IPv6 access to and from Google Services
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL = 3; + */ + PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default value. Same as DISABLED
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0; + */ + public static final int PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * No private access to or from Google Services
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED = 1; + */ + public static final int PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED_VALUE = 1; + /** + * + * + *
+   * Enables private IPv6 access to Google Services from GKE
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE = 2; + */ + public static final int PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE_VALUE = 2; + /** + * + * + *
+   * Enables priate IPv6 access to and from Google Services
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL = 3; + */ + public static final int PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PrivateIPv6GoogleAccess valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static PrivateIPv6GoogleAccess forNumber(int value) { + switch (value) { + case 0: + return PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED; + case 1: + return PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED; + case 2: + return PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE; + case 3: + return PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PrivateIPv6GoogleAccess findValueByNumber(int number) { + return PrivateIPv6GoogleAccess.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.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 new file mode 100644 index 000000000000..12f11866e894 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ProtectConfig.java @@ -0,0 +1,1114 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode result = + com.google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode.valueOf( + 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(); + if (workloadConfigBuilder_ == null) { + workloadConfig_ = null; + } else { + workloadConfigBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + workloadVulnerabilityMode_ = 0; + 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_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); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + if (workloadConfigBuilder_ == null) { + result.workloadConfig_ = workloadConfig_; + } else { + result.workloadConfig_ = workloadConfigBuilder_.build(); + } + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + to_bitField0_ |= 0x00000002; + } + result.workloadVulnerabilityMode_ = workloadVulnerabilityMode_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.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; + onChanged(); + } else { + workloadConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + 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(); + onChanged(); + } else { + workloadConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + 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()) { + workloadConfig_ = + com.google.container.v1beta1.WorkloadConfig.newBuilder(workloadConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + workloadConfig_ = value; + } + onChanged(); + } else { + workloadConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + 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() { + if (workloadConfigBuilder_ == null) { + workloadConfig_ = null; + onChanged(); + } else { + workloadConfigBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + 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) { + bitField0_ |= 0x00000002; + workloadVulnerabilityMode_ = value; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode result = + com.google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode.valueOf( + 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 new file mode 100644 index 000000000000..4c61f3a51870 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ProtectConfigOrBuilder.java @@ -0,0 +1,107 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface 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/RecurringTimeWindow.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RecurringTimeWindow.java new file mode 100644 index 000000000000..688cf2ad46c1 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RecurringTimeWindow.java @@ -0,0 +1,1055 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Represents an arbitrary window of time that recurs.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.RecurringTimeWindow} + */ +public final class RecurringTimeWindow extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.RecurringTimeWindow) + RecurringTimeWindowOrBuilder { + private static final long serialVersionUID = 0L; + // Use RecurringTimeWindow.newBuilder() to construct. + private RecurringTimeWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RecurringTimeWindow() { + recurrence_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RecurringTimeWindow(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_RecurringTimeWindow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_RecurringTimeWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.RecurringTimeWindow.class, + com.google.container.v1beta1.RecurringTimeWindow.Builder.class); + } + + public static final int WINDOW_FIELD_NUMBER = 1; + private com.google.container.v1beta1.TimeWindow window_; + /** + * + * + *
+   * The window of the first recurrence.
+   * 
+ * + * .google.container.v1beta1.TimeWindow window = 1; + * + * @return Whether the window field is set. + */ + @java.lang.Override + public boolean hasWindow() { + return window_ != null; + } + /** + * + * + *
+   * The window of the first recurrence.
+   * 
+ * + * .google.container.v1beta1.TimeWindow window = 1; + * + * @return The window. + */ + @java.lang.Override + public com.google.container.v1beta1.TimeWindow getWindow() { + return window_ == null ? com.google.container.v1beta1.TimeWindow.getDefaultInstance() : window_; + } + /** + * + * + *
+   * The window of the first recurrence.
+   * 
+ * + * .google.container.v1beta1.TimeWindow window = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.TimeWindowOrBuilder getWindowOrBuilder() { + return getWindow(); + } + + public static final int RECURRENCE_FIELD_NUMBER = 2; + private volatile java.lang.Object recurrence_; + /** + * + * + *
+   * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
+   * this window reccurs. They go on for the span of time between the start and
+   * end time.
+   * For example, to have something repeat every weekday, you'd use:
+   * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
+   * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
+   * `FREQ=DAILY`
+   * For the first weekend of every month:
+   * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
+   * This specifies how frequently the window starts. Eg, if you wanted to have
+   * a 9-5 UTC-4 window every weekday, you'd use something like:
+   * ```
+   * start time = 2019-01-01T09:00:00-0400
+   * end time = 2019-01-01T17:00:00-0400
+   * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
+   * ```
+   * Windows can span multiple days. Eg, to make the window encompass every
+   * weekend from midnight Saturday till the last minute of Sunday UTC:
+   * ```
+   * start time = 2019-01-05T00:00:00Z
+   * end time = 2019-01-07T23:59:00Z
+   * recurrence = FREQ=WEEKLY;BYDAY=SA
+   * ```
+   * Note the start and end time's specific dates are largely arbitrary except
+   * to specify duration of the window and when it first starts.
+   * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
+   * 
+ * + * string recurrence = 2; + * + * @return The recurrence. + */ + @java.lang.Override + public java.lang.String getRecurrence() { + java.lang.Object ref = recurrence_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + recurrence_ = s; + return s; + } + } + /** + * + * + *
+   * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
+   * this window reccurs. They go on for the span of time between the start and
+   * end time.
+   * For example, to have something repeat every weekday, you'd use:
+   * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
+   * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
+   * `FREQ=DAILY`
+   * For the first weekend of every month:
+   * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
+   * This specifies how frequently the window starts. Eg, if you wanted to have
+   * a 9-5 UTC-4 window every weekday, you'd use something like:
+   * ```
+   * start time = 2019-01-01T09:00:00-0400
+   * end time = 2019-01-01T17:00:00-0400
+   * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
+   * ```
+   * Windows can span multiple days. Eg, to make the window encompass every
+   * weekend from midnight Saturday till the last minute of Sunday UTC:
+   * ```
+   * start time = 2019-01-05T00:00:00Z
+   * end time = 2019-01-07T23:59:00Z
+   * recurrence = FREQ=WEEKLY;BYDAY=SA
+   * ```
+   * Note the start and end time's specific dates are largely arbitrary except
+   * to specify duration of the window and when it first starts.
+   * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
+   * 
+ * + * string recurrence = 2; + * + * @return The bytes for recurrence. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRecurrenceBytes() { + java.lang.Object ref = recurrence_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + recurrence_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (window_ != null) { + output.writeMessage(1, getWindow()); + } + if (!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 (window_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (windowBuilder_ == null) { + window_ = null; + } else { + window_ = null; + windowBuilder_ = null; + } + recurrence_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_RecurringTimeWindow_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.RecurringTimeWindow getDefaultInstanceForType() { + return com.google.container.v1beta1.RecurringTimeWindow.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.RecurringTimeWindow build() { + com.google.container.v1beta1.RecurringTimeWindow result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.RecurringTimeWindow buildPartial() { + com.google.container.v1beta1.RecurringTimeWindow result = + new com.google.container.v1beta1.RecurringTimeWindow(this); + if (windowBuilder_ == null) { + result.window_ = window_; + } else { + result.window_ = windowBuilder_.build(); + } + result.recurrence_ = recurrence_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.RecurringTimeWindow) { + return mergeFrom((com.google.container.v1beta1.RecurringTimeWindow) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.RecurringTimeWindow other) { + if (other == com.google.container.v1beta1.RecurringTimeWindow.getDefaultInstance()) + return this; + if (other.hasWindow()) { + mergeWindow(other.getWindow()); + } + if (!other.getRecurrence().isEmpty()) { + recurrence_ = other.recurrence_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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); + + break; + } // case 10 + case 18: + { + recurrence_ = input.readStringRequireUtf8(); + + 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 com.google.container.v1beta1.TimeWindow window_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.TimeWindow, + com.google.container.v1beta1.TimeWindow.Builder, + com.google.container.v1beta1.TimeWindowOrBuilder> + windowBuilder_; + /** + * + * + *
+     * The window of the first recurrence.
+     * 
+ * + * .google.container.v1beta1.TimeWindow window = 1; + * + * @return Whether the window field is set. + */ + public boolean hasWindow() { + return windowBuilder_ != null || window_ != null; + } + /** + * + * + *
+     * The window of the first recurrence.
+     * 
+ * + * .google.container.v1beta1.TimeWindow window = 1; + * + * @return The window. + */ + public com.google.container.v1beta1.TimeWindow getWindow() { + if (windowBuilder_ == null) { + return window_ == null + ? com.google.container.v1beta1.TimeWindow.getDefaultInstance() + : window_; + } else { + return windowBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The window of the first recurrence.
+     * 
+ * + * .google.container.v1beta1.TimeWindow window = 1; + */ + public Builder setWindow(com.google.container.v1beta1.TimeWindow value) { + if (windowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + window_ = value; + onChanged(); + } else { + windowBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The window of the first recurrence.
+     * 
+ * + * .google.container.v1beta1.TimeWindow window = 1; + */ + public Builder setWindow(com.google.container.v1beta1.TimeWindow.Builder builderForValue) { + if (windowBuilder_ == null) { + window_ = builderForValue.build(); + onChanged(); + } else { + windowBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The window of the first recurrence.
+     * 
+ * + * .google.container.v1beta1.TimeWindow window = 1; + */ + public Builder mergeWindow(com.google.container.v1beta1.TimeWindow value) { + if (windowBuilder_ == null) { + if (window_ != null) { + window_ = + com.google.container.v1beta1.TimeWindow.newBuilder(window_) + .mergeFrom(value) + .buildPartial(); + } else { + window_ = value; + } + onChanged(); + } else { + windowBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The window of the first recurrence.
+     * 
+ * + * .google.container.v1beta1.TimeWindow window = 1; + */ + public Builder clearWindow() { + if (windowBuilder_ == null) { + window_ = null; + onChanged(); + } else { + window_ = null; + windowBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The window of the first recurrence.
+     * 
+ * + * .google.container.v1beta1.TimeWindow window = 1; + */ + public com.google.container.v1beta1.TimeWindow.Builder getWindowBuilder() { + + onChanged(); + return getWindowFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The window of the first recurrence.
+     * 
+ * + * .google.container.v1beta1.TimeWindow window = 1; + */ + public com.google.container.v1beta1.TimeWindowOrBuilder getWindowOrBuilder() { + if (windowBuilder_ != null) { + return windowBuilder_.getMessageOrBuilder(); + } else { + return window_ == null + ? com.google.container.v1beta1.TimeWindow.getDefaultInstance() + : window_; + } + } + /** + * + * + *
+     * The window of the first recurrence.
+     * 
+ * + * .google.container.v1beta1.TimeWindow window = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.TimeWindow, + com.google.container.v1beta1.TimeWindow.Builder, + com.google.container.v1beta1.TimeWindowOrBuilder> + getWindowFieldBuilder() { + if (windowBuilder_ == null) { + windowBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.TimeWindow, + com.google.container.v1beta1.TimeWindow.Builder, + com.google.container.v1beta1.TimeWindowOrBuilder>( + getWindow(), getParentForChildren(), isClean()); + window_ = null; + } + return windowBuilder_; + } + + private java.lang.Object recurrence_ = ""; + /** + * + * + *
+     * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
+     * this window reccurs. They go on for the span of time between the start and
+     * end time.
+     * For example, to have something repeat every weekday, you'd use:
+     * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
+     * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
+     * `FREQ=DAILY`
+     * For the first weekend of every month:
+     * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
+     * This specifies how frequently the window starts. Eg, if you wanted to have
+     * a 9-5 UTC-4 window every weekday, you'd use something like:
+     * ```
+     * start time = 2019-01-01T09:00:00-0400
+     * end time = 2019-01-01T17:00:00-0400
+     * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
+     * ```
+     * Windows can span multiple days. Eg, to make the window encompass every
+     * weekend from midnight Saturday till the last minute of Sunday UTC:
+     * ```
+     * start time = 2019-01-05T00:00:00Z
+     * end time = 2019-01-07T23:59:00Z
+     * recurrence = FREQ=WEEKLY;BYDAY=SA
+     * ```
+     * Note the start and end time's specific dates are largely arbitrary except
+     * to specify duration of the window and when it first starts.
+     * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
+     * 
+ * + * string recurrence = 2; + * + * @return The recurrence. + */ + public java.lang.String getRecurrence() { + java.lang.Object ref = recurrence_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + recurrence_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
+     * this window reccurs. They go on for the span of time between the start and
+     * end time.
+     * For example, to have something repeat every weekday, you'd use:
+     * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
+     * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
+     * `FREQ=DAILY`
+     * For the first weekend of every month:
+     * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
+     * This specifies how frequently the window starts. Eg, if you wanted to have
+     * a 9-5 UTC-4 window every weekday, you'd use something like:
+     * ```
+     * start time = 2019-01-01T09:00:00-0400
+     * end time = 2019-01-01T17:00:00-0400
+     * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
+     * ```
+     * Windows can span multiple days. Eg, to make the window encompass every
+     * weekend from midnight Saturday till the last minute of Sunday UTC:
+     * ```
+     * start time = 2019-01-05T00:00:00Z
+     * end time = 2019-01-07T23:59:00Z
+     * recurrence = FREQ=WEEKLY;BYDAY=SA
+     * ```
+     * Note the start and end time's specific dates are largely arbitrary except
+     * to specify duration of the window and when it first starts.
+     * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
+     * 
+ * + * string recurrence = 2; + * + * @return The bytes for recurrence. + */ + public com.google.protobuf.ByteString getRecurrenceBytes() { + java.lang.Object ref = recurrence_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + recurrence_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
+     * this window reccurs. They go on for the span of time between the start and
+     * end time.
+     * For example, to have something repeat every weekday, you'd use:
+     * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
+     * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
+     * `FREQ=DAILY`
+     * For the first weekend of every month:
+     * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
+     * This specifies how frequently the window starts. Eg, if you wanted to have
+     * a 9-5 UTC-4 window every weekday, you'd use something like:
+     * ```
+     * start time = 2019-01-01T09:00:00-0400
+     * end time = 2019-01-01T17:00:00-0400
+     * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
+     * ```
+     * Windows can span multiple days. Eg, to make the window encompass every
+     * weekend from midnight Saturday till the last minute of Sunday UTC:
+     * ```
+     * start time = 2019-01-05T00:00:00Z
+     * end time = 2019-01-07T23:59:00Z
+     * recurrence = FREQ=WEEKLY;BYDAY=SA
+     * ```
+     * Note the start and end time's specific dates are largely arbitrary except
+     * to specify duration of the window and when it first starts.
+     * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
+     * 
+ * + * string recurrence = 2; + * + * @param value The recurrence to set. + * @return This builder for chaining. + */ + public Builder setRecurrence(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + recurrence_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
+     * this window reccurs. They go on for the span of time between the start and
+     * end time.
+     * For example, to have something repeat every weekday, you'd use:
+     * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
+     * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
+     * `FREQ=DAILY`
+     * For the first weekend of every month:
+     * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
+     * This specifies how frequently the window starts. Eg, if you wanted to have
+     * a 9-5 UTC-4 window every weekday, you'd use something like:
+     * ```
+     * start time = 2019-01-01T09:00:00-0400
+     * end time = 2019-01-01T17:00:00-0400
+     * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
+     * ```
+     * Windows can span multiple days. Eg, to make the window encompass every
+     * weekend from midnight Saturday till the last minute of Sunday UTC:
+     * ```
+     * start time = 2019-01-05T00:00:00Z
+     * end time = 2019-01-07T23:59:00Z
+     * recurrence = FREQ=WEEKLY;BYDAY=SA
+     * ```
+     * Note the start and end time's specific dates are largely arbitrary except
+     * to specify duration of the window and when it first starts.
+     * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
+     * 
+ * + * string recurrence = 2; + * + * @return This builder for chaining. + */ + public Builder clearRecurrence() { + + recurrence_ = getDefaultInstance().getRecurrence(); + onChanged(); + return this; + } + /** + * + * + *
+     * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
+     * this window reccurs. They go on for the span of time between the start and
+     * end time.
+     * For example, to have something repeat every weekday, you'd use:
+     * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
+     * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
+     * `FREQ=DAILY`
+     * For the first weekend of every month:
+     * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
+     * This specifies how frequently the window starts. Eg, if you wanted to have
+     * a 9-5 UTC-4 window every weekday, you'd use something like:
+     * ```
+     * start time = 2019-01-01T09:00:00-0400
+     * end time = 2019-01-01T17:00:00-0400
+     * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
+     * ```
+     * Windows can span multiple days. Eg, to make the window encompass every
+     * weekend from midnight Saturday till the last minute of Sunday UTC:
+     * ```
+     * start time = 2019-01-05T00:00:00Z
+     * end time = 2019-01-07T23:59:00Z
+     * recurrence = FREQ=WEEKLY;BYDAY=SA
+     * ```
+     * Note the start and end time's specific dates are largely arbitrary except
+     * to specify duration of the window and when it first starts.
+     * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
+     * 
+ * + * string recurrence = 2; + * + * @param value The bytes for recurrence to set. + * @return This builder for chaining. + */ + public Builder setRecurrenceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + recurrence_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.RecurringTimeWindow) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.RecurringTimeWindow) + private static final com.google.container.v1beta1.RecurringTimeWindow DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.RecurringTimeWindow(); + } + + public static com.google.container.v1beta1.RecurringTimeWindow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecurringTimeWindow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..6c78341937d0 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RecurringTimeWindowOrBuilder.java @@ -0,0 +1,135 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface RecurringTimeWindowOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.RecurringTimeWindow) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The window of the first recurrence.
+   * 
+ * + * .google.container.v1beta1.TimeWindow window = 1; + * + * @return Whether the window field is set. + */ + boolean hasWindow(); + /** + * + * + *
+   * The window of the first recurrence.
+   * 
+ * + * .google.container.v1beta1.TimeWindow window = 1; + * + * @return The window. + */ + com.google.container.v1beta1.TimeWindow getWindow(); + /** + * + * + *
+   * The window of the first recurrence.
+   * 
+ * + * .google.container.v1beta1.TimeWindow window = 1; + */ + com.google.container.v1beta1.TimeWindowOrBuilder getWindowOrBuilder(); + + /** + * + * + *
+   * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
+   * this window reccurs. They go on for the span of time between the start and
+   * end time.
+   * For example, to have something repeat every weekday, you'd use:
+   * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
+   * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
+   * `FREQ=DAILY`
+   * For the first weekend of every month:
+   * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
+   * This specifies how frequently the window starts. Eg, if you wanted to have
+   * a 9-5 UTC-4 window every weekday, you'd use something like:
+   * ```
+   * start time = 2019-01-01T09:00:00-0400
+   * end time = 2019-01-01T17:00:00-0400
+   * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
+   * ```
+   * Windows can span multiple days. Eg, to make the window encompass every
+   * weekend from midnight Saturday till the last minute of Sunday UTC:
+   * ```
+   * start time = 2019-01-05T00:00:00Z
+   * end time = 2019-01-07T23:59:00Z
+   * recurrence = FREQ=WEEKLY;BYDAY=SA
+   * ```
+   * Note the start and end time's specific dates are largely arbitrary except
+   * to specify duration of the window and when it first starts.
+   * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
+   * 
+ * + * string recurrence = 2; + * + * @return The recurrence. + */ + java.lang.String getRecurrence(); + /** + * + * + *
+   * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
+   * this window reccurs. They go on for the span of time between the start and
+   * end time.
+   * For example, to have something repeat every weekday, you'd use:
+   * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
+   * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
+   * `FREQ=DAILY`
+   * For the first weekend of every month:
+   * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
+   * This specifies how frequently the window starts. Eg, if you wanted to have
+   * a 9-5 UTC-4 window every weekday, you'd use something like:
+   * ```
+   * start time = 2019-01-01T09:00:00-0400
+   * end time = 2019-01-01T17:00:00-0400
+   * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
+   * ```
+   * Windows can span multiple days. Eg, to make the window encompass every
+   * weekend from midnight Saturday till the last minute of Sunday UTC:
+   * ```
+   * start time = 2019-01-05T00:00:00Z
+   * end time = 2019-01-07T23:59:00Z
+   * recurrence = FREQ=WEEKLY;BYDAY=SA
+   * ```
+   * Note the start and end time's specific dates are largely arbitrary except
+   * to specify duration of the window and when it first starts.
+   * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
+   * 
+ * + * string recurrence = 2; + * + * @return The bytes for recurrence. + */ + com.google.protobuf.ByteString getRecurrenceBytes(); +} diff --git a/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 new file mode 100644 index 000000000000..6f5ae866726f --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReleaseChannel.java @@ -0,0 +1,790 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * ReleaseChannel indicates which release channel a cluster is
+ * subscribed to. Release channels are arranged in order of risk.
+ * When a cluster is subscribed to a release channel, Google maintains
+ * both the master version and the node version. Node auto-upgrade
+ * defaults to true and cannot be disabled.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ReleaseChannel} + */ +public final class ReleaseChannel extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ReleaseChannel) + ReleaseChannelOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReleaseChannel.newBuilder() to construct. + private ReleaseChannel(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReleaseChannel() { + channel_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReleaseChannel(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ReleaseChannel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ReleaseChannel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ReleaseChannel.class, + com.google.container.v1beta1.ReleaseChannel.Builder.class); + } + + /** + * + * + *
+   * Possible values for 'channel'.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.ReleaseChannel.Channel} + */ + public enum Channel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * No channel specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + * + * + *
+     * RAPID channel is offered on an early access basis for customers who want
+     * to test new releases.
+     * WARNING: Versions available in the RAPID Channel may be subject to
+     * unresolved issues with no known workaround and are not subject to any
+     * SLAs.
+     * 
+ * + * RAPID = 1; + */ + RAPID(1), + /** + * + * + *
+     * Clusters subscribed to REGULAR receive versions that are considered GA
+     * quality. REGULAR is intended for production users who want to take
+     * advantage of new features.
+     * 
+ * + * REGULAR = 2; + */ + REGULAR(2), + /** + * + * + *
+     * Clusters subscribed to STABLE receive versions that are known to be
+     * stable and reliable in production.
+     * 
+ * + * STABLE = 3; + */ + STABLE(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * No channel specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * RAPID channel is offered on an early access basis for customers who want
+     * to test new releases.
+     * WARNING: Versions available in the RAPID Channel may be subject to
+     * unresolved issues with no known workaround and are not subject to any
+     * SLAs.
+     * 
+ * + * RAPID = 1; + */ + public static final int RAPID_VALUE = 1; + /** + * + * + *
+     * Clusters subscribed to REGULAR receive versions that are considered GA
+     * quality. REGULAR is intended for production users who want to take
+     * advantage of new features.
+     * 
+ * + * REGULAR = 2; + */ + public static final int REGULAR_VALUE = 2; + /** + * + * + *
+     * Clusters subscribed to STABLE receive versions that are known to be
+     * stable and reliable in production.
+     * 
+ * + * STABLE = 3; + */ + public static final int STABLE_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Channel valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Channel forNumber(int value) { + switch (value) { + case 0: + return UNSPECIFIED; + case 1: + return RAPID; + case 2: + return REGULAR; + case 3: + return STABLE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Channel findValueByNumber(int number) { + return Channel.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1beta1.ReleaseChannel.getDescriptor().getEnumTypes().get(0); + } + + private static final Channel[] VALUES = values(); + + public static Channel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Channel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.ReleaseChannel.Channel) + } + + public static final int CHANNEL_FIELD_NUMBER = 1; + private int channel_; + /** + * + * + *
+   * channel specifies which release channel the cluster is subscribed to.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; + * + * @return The enum numeric value on the wire for channel. + */ + @java.lang.Override + public int getChannelValue() { + return channel_; + } + /** + * + * + *
+   * channel specifies which release channel the cluster is subscribed to.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; + * + * @return The channel. + */ + @java.lang.Override + public com.google.container.v1beta1.ReleaseChannel.Channel getChannel() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.ReleaseChannel.Channel result = + com.google.container.v1beta1.ReleaseChannel.Channel.valueOf(channel_); + return result == null + ? com.google.container.v1beta1.ReleaseChannel.Channel.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (channel_ != com.google.container.v1beta1.ReleaseChannel.Channel.UNSPECIFIED.getNumber()) { + output.writeEnum(1, channel_); + } + 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(); + channel_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ReleaseChannel_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ReleaseChannel getDefaultInstanceForType() { + return com.google.container.v1beta1.ReleaseChannel.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ReleaseChannel build() { + com.google.container.v1beta1.ReleaseChannel result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ReleaseChannel buildPartial() { + com.google.container.v1beta1.ReleaseChannel result = + new com.google.container.v1beta1.ReleaseChannel(this); + result.channel_ = channel_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ReleaseChannel) { + return mergeFrom((com.google.container.v1beta1.ReleaseChannel) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ReleaseChannel other) { + if (other == com.google.container.v1beta1.ReleaseChannel.getDefaultInstance()) return this; + if (other.channel_ != 0) { + setChannelValue(other.getChannelValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 channel_ = 0; + /** + * + * + *
+     * channel specifies which release channel the cluster is subscribed to.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; + * + * @return The enum numeric value on the wire for channel. + */ + @java.lang.Override + public int getChannelValue() { + return channel_; + } + /** + * + * + *
+     * channel specifies which release channel the cluster is subscribed to.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; + * + * @param value The enum numeric value on the wire for channel to set. + * @return This builder for chaining. + */ + public Builder setChannelValue(int value) { + + channel_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * channel specifies which release channel the cluster is subscribed to.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; + * + * @return The channel. + */ + @java.lang.Override + public com.google.container.v1beta1.ReleaseChannel.Channel getChannel() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.ReleaseChannel.Channel result = + com.google.container.v1beta1.ReleaseChannel.Channel.valueOf(channel_); + return result == null + ? com.google.container.v1beta1.ReleaseChannel.Channel.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * channel specifies which release channel the cluster is subscribed to.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; + * + * @param value The channel to set. + * @return This builder for chaining. + */ + public Builder setChannel(com.google.container.v1beta1.ReleaseChannel.Channel value) { + if (value == null) { + throw new NullPointerException(); + } + + channel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * channel specifies which release channel the cluster is subscribed to.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; + * + * @return This builder for chaining. + */ + public Builder clearChannel() { + + channel_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ReleaseChannel) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ReleaseChannel) + private static final com.google.container.v1beta1.ReleaseChannel DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ReleaseChannel(); + } + + public static com.google.container.v1beta1.ReleaseChannel getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReleaseChannel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..c86f79ef70fd --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReleaseChannelOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ReleaseChannelOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ReleaseChannel) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * channel specifies which release channel the cluster is subscribed to.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; + * + * @return The enum numeric value on the wire for channel. + */ + int getChannelValue(); + /** + * + * + *
+   * channel specifies which release channel the cluster is subscribed to.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; + * + * @return The channel. + */ + com.google.container.v1beta1.ReleaseChannel.Channel getChannel(); +} diff --git a/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 new file mode 100644 index 000000000000..db62e35de21d --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReservationAffinity.java @@ -0,0 +1,1250 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+ * is the configuration of desired reservation which instances could take
+ * capacity from.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ReservationAffinity} + */ +public final class ReservationAffinity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ReservationAffinity) + ReservationAffinityOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReservationAffinity.newBuilder() to construct. + private ReservationAffinity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReservationAffinity() { + consumeReservationType_ = 0; + key_ = ""; + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReservationAffinity(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ReservationAffinity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ReservationAffinity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ReservationAffinity.class, + com.google.container.v1beta1.ReservationAffinity.Builder.class); + } + + /** + * + * + *
+   * Indicates whether to consume capacity from a reservation or not.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.ReservationAffinity.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. This should not be used.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + * + * + *
+     * Do not consume from any reserved capacity.
+     * 
+ * + * NO_RESERVATION = 1; + */ + NO_RESERVATION(1), + /** + * + * + *
+     * Consume any reservation available.
+     * 
+ * + * ANY_RESERVATION = 2; + */ + ANY_RESERVATION(2), + /** + * + * + *
+     * Must consume from a specific reservation. Must specify key value fields
+     * for specifying the reservations.
+     * 
+ * + * SPECIFIC_RESERVATION = 3; + */ + SPECIFIC_RESERVATION(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value. This should not be used.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Do not consume from any reserved capacity.
+     * 
+ * + * NO_RESERVATION = 1; + */ + public static final int NO_RESERVATION_VALUE = 1; + /** + * + * + *
+     * Consume any reservation available.
+     * 
+ * + * ANY_RESERVATION = 2; + */ + public static final int ANY_RESERVATION_VALUE = 2; + /** + * + * + *
+     * Must consume from a specific reservation. Must specify key value fields
+     * for specifying the reservations.
+     * 
+ * + * SPECIFIC_RESERVATION = 3; + */ + public static final int SPECIFIC_RESERVATION_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: + return UNSPECIFIED; + case 1: + return NO_RESERVATION; + case 2: + return ANY_RESERVATION; + case 3: + return SPECIFIC_RESERVATION; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1beta1.ReservationAffinity.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.ReservationAffinity.Type) + } + + public static final int CONSUME_RESERVATION_TYPE_FIELD_NUMBER = 1; + private int consumeReservationType_; + /** + * + * + *
+   * Corresponds to the type of reservation consumption.
+   * 
+ * + * .google.container.v1beta1.ReservationAffinity.Type consume_reservation_type = 1; + * + * @return The enum numeric value on the wire for consumeReservationType. + */ + @java.lang.Override + public int getConsumeReservationTypeValue() { + return consumeReservationType_; + } + /** + * + * + *
+   * Corresponds to the type of reservation consumption.
+   * 
+ * + * .google.container.v1beta1.ReservationAffinity.Type consume_reservation_type = 1; + * + * @return The consumeReservationType. + */ + @java.lang.Override + public com.google.container.v1beta1.ReservationAffinity.Type getConsumeReservationType() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.ReservationAffinity.Type result = + com.google.container.v1beta1.ReservationAffinity.Type.valueOf(consumeReservationType_); + return result == null + ? com.google.container.v1beta1.ReservationAffinity.Type.UNRECOGNIZED + : result; + } + + public static final int KEY_FIELD_NUMBER = 2; + private volatile java.lang.Object key_; + /** + * + * + *
+   * Corresponds to the label key of a reservation resource. To target a
+   * SPECIFIC_RESERVATION by name, specify
+   * "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; + private com.google.protobuf.LazyStringList values_; + /** + * + * + *
+   * Corresponds to the label value(s) of reservation resource(s).
+   * 
+ * + * repeated string values = 3; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_; + } + /** + * + * + *
+   * Corresponds to the label value(s) of reservation resource(s).
+   * 
+ * + * repeated string values = 3; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+   * Corresponds to the label value(s) of reservation resource(s).
+   * 
+ * + * repeated string values = 3; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+   * Corresponds to the label value(s) of reservation resource(s).
+   * 
+ * + * repeated string values = 3; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (consumeReservationType_ + != com.google.container.v1beta1.ReservationAffinity.Type.UNSPECIFIED.getNumber()) { + output.writeEnum(1, consumeReservationType_); + } + if (!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(); + consumeReservationType_ = 0; + + key_ = ""; + + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ReservationAffinity_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ReservationAffinity getDefaultInstanceForType() { + return com.google.container.v1beta1.ReservationAffinity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ReservationAffinity build() { + com.google.container.v1beta1.ReservationAffinity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ReservationAffinity buildPartial() { + com.google.container.v1beta1.ReservationAffinity result = + new com.google.container.v1beta1.ReservationAffinity(this); + int from_bitField0_ = bitField0_; + result.consumeReservationType_ = consumeReservationType_; + result.key_ = key_; + if (((bitField0_ & 0x00000001) != 0)) { + values_ = values_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.values_ = values_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ReservationAffinity) { + return mergeFrom((com.google.container.v1beta1.ReservationAffinity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ReservationAffinity other) { + if (other == com.google.container.v1beta1.ReservationAffinity.getDefaultInstance()) + return this; + if (other.consumeReservationType_ != 0) { + setConsumeReservationTypeValue(other.getConsumeReservationTypeValue()); + } + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 8 + case 18: + { + key_ = input.readStringRequireUtf8(); + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Corresponds to the type of reservation consumption.
+     * 
+ * + * .google.container.v1beta1.ReservationAffinity.Type consume_reservation_type = 1; + * + * @return The consumeReservationType. + */ + @java.lang.Override + public com.google.container.v1beta1.ReservationAffinity.Type getConsumeReservationType() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.ReservationAffinity.Type result = + com.google.container.v1beta1.ReservationAffinity.Type.valueOf(consumeReservationType_); + return result == null + ? com.google.container.v1beta1.ReservationAffinity.Type.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Corresponds to the type of reservation consumption.
+     * 
+ * + * .google.container.v1beta1.ReservationAffinity.Type consume_reservation_type = 1; + * + * @param value The consumeReservationType to set. + * @return This builder for chaining. + */ + public Builder setConsumeReservationType( + com.google.container.v1beta1.ReservationAffinity.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + consumeReservationType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Corresponds to the type of reservation consumption.
+     * 
+ * + * .google.container.v1beta1.ReservationAffinity.Type consume_reservation_type = 1; + * + * @return This builder for chaining. + */ + public Builder clearConsumeReservationType() { + + consumeReservationType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object key_ = ""; + /** + * + * + *
+     * Corresponds to the label key of a reservation resource. To target a
+     * SPECIFIC_RESERVATION by name, specify
+     * "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; + 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(); + 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; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList values_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Corresponds to the label value(s) of reservation resource(s).
+     * 
+ * + * repeated string values = 3; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_.getUnmodifiableView(); + } + /** + * + * + *
+     * Corresponds to the label value(s) of reservation resource(s).
+     * 
+ * + * repeated string values = 3; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+     * Corresponds to the label value(s) of reservation resource(s).
+     * 
+ * + * repeated string values = 3; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+     * Corresponds to the label value(s) of reservation resource(s).
+     * 
+ * + * repeated string values = 3; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + /** + * + * + *
+     * Corresponds to the label value(s) of reservation resource(s).
+     * 
+ * + * repeated string values = 3; + * + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Corresponds to the label value(s) of reservation resource(s).
+     * 
+ * + * repeated string values = 3; + * + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Corresponds to the label value(s) of reservation resource(s).
+     * 
+ * + * repeated string values = 3; + * + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues(java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + onChanged(); + return this; + } + /** + * + * + *
+     * Corresponds to the label value(s) of reservation resource(s).
+     * 
+ * + * repeated string values = 3; + * + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Corresponds to the label value(s) of reservation resource(s).
+     * 
+ * + * repeated string values = 3; + * + * @param value The bytes of the values to add. + * @return This builder for chaining. + */ + public Builder addValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ReservationAffinity) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ReservationAffinity) + private static final com.google.container.v1beta1.ReservationAffinity DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ReservationAffinity(); + } + + public static com.google.container.v1beta1.ReservationAffinity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReservationAffinity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..fb758d4f16a5 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReservationAffinityOrBuilder.java @@ -0,0 +1,132 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface 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 new file mode 100644 index 000000000000..c1f9382bc3f1 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLabels.java @@ -0,0 +1,759 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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.MapField internalGetMapField(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, + ""); + } + + 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 java.lang.String getLabelsOrDefault(java.lang.String key, 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.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(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(); + 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); + int from_bitField0_ = bitField0_; + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.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()); + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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()); + 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() { + onChanged(); + ; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * 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 java.lang.String getLabelsOrDefault( + java.lang.String key, 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() { + 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() { + 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); + 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); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..e717a05652a9 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLabelsOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface 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 new file mode 100644 index 000000000000..440f718c8664 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLimit.java @@ -0,0 +1,798 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Contains information about amount of some resource in the cluster.
+ * For memory, value should be in GB.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ResourceLimit} + */ +public final class ResourceLimit extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ResourceLimit) + ResourceLimitOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResourceLimit.newBuilder() to construct. + private ResourceLimit(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ResourceLimit() { + resourceType_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ResourceLimit(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ResourceLimit_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ResourceLimit_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ResourceLimit.class, + com.google.container.v1beta1.ResourceLimit.Builder.class); + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object resourceType_; + /** + * + * + *
+   * Resource name "cpu", "memory" or gpu-specific string.
+   * 
+ * + * string resource_type = 1; + * + * @return The resourceType. + */ + @java.lang.Override + public java.lang.String getResourceType() { + java.lang.Object ref = resourceType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceType_ = s; + return s; + } + } + /** + * + * + *
+   * Resource name "cpu", "memory" or gpu-specific string.
+   * 
+ * + * string resource_type = 1; + * + * @return The bytes for resourceType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceTypeBytes() { + java.lang.Object ref = resourceType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MINIMUM_FIELD_NUMBER = 2; + private long minimum_; + /** + * + * + *
+   * Minimum amount of the resource in the cluster.
+   * 
+ * + * int64 minimum = 2; + * + * @return The minimum. + */ + @java.lang.Override + public long getMinimum() { + return minimum_; + } + + public static final int MAXIMUM_FIELD_NUMBER = 3; + private long maximum_; + /** + * + * + *
+   * Maximum amount of the resource in the cluster.
+   * 
+ * + * int64 maximum = 3; + * + * @return The maximum. + */ + @java.lang.Override + public long getMaximum() { + return maximum_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + resourceType_ = ""; + + minimum_ = 0L; + + maximum_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ResourceLimit_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceLimit getDefaultInstanceForType() { + return com.google.container.v1beta1.ResourceLimit.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceLimit build() { + com.google.container.v1beta1.ResourceLimit result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceLimit buildPartial() { + com.google.container.v1beta1.ResourceLimit result = + new com.google.container.v1beta1.ResourceLimit(this); + result.resourceType_ = resourceType_; + result.minimum_ = minimum_; + result.maximum_ = maximum_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ResourceLimit) { + return mergeFrom((com.google.container.v1beta1.ResourceLimit) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ResourceLimit other) { + if (other == com.google.container.v1beta1.ResourceLimit.getDefaultInstance()) return this; + if (!other.getResourceType().isEmpty()) { + resourceType_ = other.resourceType_; + onChanged(); + } + if (other.getMinimum() != 0L) { + setMinimum(other.getMinimum()); + } + if (other.getMaximum() != 0L) { + setMaximum(other.getMaximum()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 16: + { + minimum_ = input.readInt64(); + + break; + } // case 16 + case 24: + { + maximum_ = input.readInt64(); + + 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 java.lang.Object resourceType_ = ""; + /** + * + * + *
+     * Resource name "cpu", "memory" or gpu-specific string.
+     * 
+ * + * string resource_type = 1; + * + * @return The resourceType. + */ + public java.lang.String getResourceType() { + java.lang.Object ref = resourceType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Resource name "cpu", "memory" or gpu-specific string.
+     * 
+ * + * string resource_type = 1; + * + * @return The bytes for resourceType. + */ + public com.google.protobuf.ByteString getResourceTypeBytes() { + java.lang.Object ref = resourceType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Resource name "cpu", "memory" or gpu-specific string.
+     * 
+ * + * string resource_type = 1; + * + * @param value The resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name "cpu", "memory" or gpu-specific string.
+     * 
+ * + * string resource_type = 1; + * + * @return This builder for chaining. + */ + public Builder clearResourceType() { + + resourceType_ = getDefaultInstance().getResourceType(); + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name "cpu", "memory" or gpu-specific string.
+     * 
+ * + * string resource_type = 1; + * + * @param value The bytes for resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceType_ = value; + onChanged(); + return this; + } + + private long minimum_; + /** + * + * + *
+     * Minimum amount of the resource in the cluster.
+     * 
+ * + * int64 minimum = 2; + * + * @return The minimum. + */ + @java.lang.Override + public long getMinimum() { + return minimum_; + } + /** + * + * + *
+     * Minimum amount of the resource in the cluster.
+     * 
+ * + * int64 minimum = 2; + * + * @param value The minimum to set. + * @return This builder for chaining. + */ + public Builder setMinimum(long value) { + + minimum_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Minimum amount of the resource in the cluster.
+     * 
+ * + * int64 minimum = 2; + * + * @return This builder for chaining. + */ + public Builder clearMinimum() { + + minimum_ = 0L; + onChanged(); + return this; + } + + private long maximum_; + /** + * + * + *
+     * Maximum amount of the resource in the cluster.
+     * 
+ * + * int64 maximum = 3; + * + * @return The maximum. + */ + @java.lang.Override + public long getMaximum() { + return maximum_; + } + /** + * + * + *
+     * Maximum amount of the resource in the cluster.
+     * 
+ * + * int64 maximum = 3; + * + * @param value The maximum to set. + * @return This builder for chaining. + */ + public Builder setMaximum(long value) { + + maximum_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Maximum amount of the resource in the cluster.
+     * 
+ * + * int64 maximum = 3; + * + * @return This builder for chaining. + */ + public Builder clearMaximum() { + + maximum_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ResourceLimit) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ResourceLimit) + private static final com.google.container.v1beta1.ResourceLimit DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ResourceLimit(); + } + + public static com.google.container.v1beta1.ResourceLimit getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceLimit parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..d20ff61beab0 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLimitOrBuilder.java @@ -0,0 +1,76 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ResourceLimitOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ResourceLimit) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Resource name "cpu", "memory" or gpu-specific string.
+   * 
+ * + * string resource_type = 1; + * + * @return The resourceType. + */ + java.lang.String getResourceType(); + /** + * + * + *
+   * Resource name "cpu", "memory" or gpu-specific string.
+   * 
+ * + * string resource_type = 1; + * + * @return The bytes for resourceType. + */ + com.google.protobuf.ByteString getResourceTypeBytes(); + + /** + * + * + *
+   * Minimum amount of the resource in the cluster.
+   * 
+ * + * int64 minimum = 2; + * + * @return The minimum. + */ + long getMinimum(); + + /** + * + * + *
+   * Maximum amount of the resource in the cluster.
+   * 
+ * + * int64 maximum = 3; + * + * @return The maximum. + */ + long getMaximum(); +} diff --git a/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 new file mode 100644 index 000000000000..8722d3b3810f --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceUsageExportConfig.java @@ -0,0 +1,2388 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration for exporting cluster resource usages.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ResourceUsageExportConfig} + */ +public final class ResourceUsageExportConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ResourceUsageExportConfig) + ResourceUsageExportConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResourceUsageExportConfig.newBuilder() to construct. + private ResourceUsageExportConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ResourceUsageExportConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ResourceUsageExportConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ResourceUsageExportConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ResourceUsageExportConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ResourceUsageExportConfig.class, + com.google.container.v1beta1.ResourceUsageExportConfig.Builder.class); + } + + public interface BigQueryDestinationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The ID of a BigQuery Dataset.
+     * 
+ * + * string dataset_id = 1; + * + * @return The datasetId. + */ + java.lang.String getDatasetId(); + /** + * + * + *
+     * The ID of a BigQuery Dataset.
+     * 
+ * + * string dataset_id = 1; + * + * @return The bytes for datasetId. + */ + com.google.protobuf.ByteString getDatasetIdBytes(); + } + /** + * + * + *
+   * Parameters for using BigQuery as the destination of resource usage export.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination} + */ + public static final class BigQueryDestination extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination) + BigQueryDestinationOrBuilder { + private static final long serialVersionUID = 0L; + // Use BigQueryDestination.newBuilder() to construct. + private BigQueryDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BigQueryDestination() { + datasetId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BigQueryDestination(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ResourceUsageExportConfig_BigQueryDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ResourceUsageExportConfig_BigQueryDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination.class, + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination.Builder + .class); + } + + public static final int DATASET_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object datasetId_; + /** + * + * + *
+     * The ID of a BigQuery Dataset.
+     * 
+ * + * string dataset_id = 1; + * + * @return The datasetId. + */ + @java.lang.Override + public java.lang.String getDatasetId() { + java.lang.Object ref = datasetId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + datasetId_ = s; + return s; + } + } + /** + * + * + *
+     * The ID of a BigQuery Dataset.
+     * 
+ * + * string dataset_id = 1; + * + * @return The bytes for datasetId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatasetIdBytes() { + java.lang.Object ref = datasetId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + datasetId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + datasetId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ResourceUsageExportConfig_BigQueryDestination_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + getDefaultInstanceForType() { + return com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination build() { + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + buildPartial() { + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination result = + new com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination(this); + result.datasetId_ = datasetId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination) { + return mergeFrom( + (com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination other) { + if (other + == com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + .getDefaultInstance()) return this; + if (!other.getDatasetId().isEmpty()) { + datasetId_ = other.datasetId_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 java.lang.Object datasetId_ = ""; + /** + * + * + *
+       * The ID of a BigQuery Dataset.
+       * 
+ * + * string dataset_id = 1; + * + * @return The datasetId. + */ + public java.lang.String getDatasetId() { + java.lang.Object ref = datasetId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + datasetId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The ID of a BigQuery Dataset.
+       * 
+ * + * string dataset_id = 1; + * + * @return The bytes for datasetId. + */ + public com.google.protobuf.ByteString getDatasetIdBytes() { + java.lang.Object ref = datasetId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + datasetId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The ID of a BigQuery Dataset.
+       * 
+ * + * string dataset_id = 1; + * + * @param value The datasetId to set. + * @return This builder for chaining. + */ + public Builder setDatasetId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + datasetId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The ID of a BigQuery Dataset.
+       * 
+ * + * string dataset_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearDatasetId() { + + datasetId_ = getDefaultInstance().getDatasetId(); + onChanged(); + return this; + } + /** + * + * + *
+       * The ID of a BigQuery Dataset.
+       * 
+ * + * string dataset_id = 1; + * + * @param value The bytes for datasetId to set. + * @return This builder for chaining. + */ + public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + datasetId_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination) + private static final com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination(); + } + + public static com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ConsumptionMeteringConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Whether to enable consumption metering for this cluster. If enabled, a
+     * second BigQuery table will be created to hold resource consumption
+     * records.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); + } + /** + * + * + *
+   * Parameters for controlling consumption metering.
+   * 
+ * + * Protobuf type {@code + * google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig} + */ + public static final class ConsumptionMeteringConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig) + ConsumptionMeteringConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConsumptionMeteringConfig.newBuilder() to construct. + private ConsumptionMeteringConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConsumptionMeteringConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConsumptionMeteringConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ResourceUsageExportConfig_ConsumptionMeteringConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ResourceUsageExportConfig_ConsumptionMeteringConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + .class, + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + .Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+     * Whether to enable consumption metering for this cluster. If enabled, a
+     * second BigQuery table will be created to hold resource consumption
+     * records.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + 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(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ResourceUsageExportConfig_ConsumptionMeteringConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + getDefaultInstanceForType() { + return com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + build() { + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + buildPartial() { + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig result = + new com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig( + this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig) { + return mergeFrom( + (com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig other) { + if (other + == com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + .getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 boolean enabled_; + /** + * + * + *
+       * Whether to enable consumption metering for this cluster. If enabled, a
+       * second BigQuery table will be created to hold resource consumption
+       * records.
+       * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+       * Whether to enable consumption metering for this cluster. If enabled, a
+       * second BigQuery table will be created to hold resource consumption
+       * records.
+       * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Whether to enable consumption metering for this cluster. If enabled, a
+       * second BigQuery table will be created to hold resource consumption
+       * records.
+       * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig) + private static final com.google.container.v1beta1.ResourceUsageExportConfig + .ConsumptionMeteringConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig(); + } + + public static com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConsumptionMeteringConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int BIGQUERY_DESTINATION_FIELD_NUMBER = 1; + private com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + bigqueryDestination_; + /** + * + * + *
+   * Configuration to use BigQuery as usage export destination.
+   * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * + * + * @return Whether the bigqueryDestination field is set. + */ + @java.lang.Override + public boolean hasBigqueryDestination() { + return bigqueryDestination_ != null; + } + /** + * + * + *
+   * Configuration to use BigQuery as usage export destination.
+   * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * + * + * @return The bigqueryDestination. + */ + @java.lang.Override + public com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + getBigqueryDestination() { + return bigqueryDestination_ == null + ? com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + .getDefaultInstance() + : bigqueryDestination_; + } + /** + * + * + *
+   * Configuration to use BigQuery as usage export destination.
+   * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * + */ + @java.lang.Override + public com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestinationOrBuilder + getBigqueryDestinationOrBuilder() { + return getBigqueryDestination(); + } + + public static final int ENABLE_NETWORK_EGRESS_METERING_FIELD_NUMBER = 2; + private boolean enableNetworkEgressMetering_; + /** + * + * + *
+   * Whether to enable network egress metering for this cluster. If enabled, a
+   * daemonset will be created in the cluster to meter network egress traffic.
+   * 
+ * + * bool enable_network_egress_metering = 2; + * + * @return The enableNetworkEgressMetering. + */ + @java.lang.Override + public boolean getEnableNetworkEgressMetering() { + return enableNetworkEgressMetering_; + } + + public static final int CONSUMPTION_METERING_CONFIG_FIELD_NUMBER = 3; + private com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + consumptionMeteringConfig_; + /** + * + * + *
+   * Configuration to enable resource consumption metering.
+   * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * + * + * @return Whether the consumptionMeteringConfig field is set. + */ + @java.lang.Override + public boolean hasConsumptionMeteringConfig() { + return consumptionMeteringConfig_ != null; + } + /** + * + * + *
+   * Configuration to enable resource consumption metering.
+   * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * + * + * @return The consumptionMeteringConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + getConsumptionMeteringConfig() { + return consumptionMeteringConfig_ == null + ? com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + .getDefaultInstance() + : consumptionMeteringConfig_; + } + /** + * + * + *
+   * Configuration to enable resource consumption metering.
+   * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * + */ + @java.lang.Override + public com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfigOrBuilder + getConsumptionMeteringConfigOrBuilder() { + return getConsumptionMeteringConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (bigqueryDestination_ != null) { + output.writeMessage(1, getBigqueryDestination()); + } + if (enableNetworkEgressMetering_ != false) { + output.writeBool(2, enableNetworkEgressMetering_); + } + if (consumptionMeteringConfig_ != null) { + output.writeMessage(3, getConsumptionMeteringConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (bigqueryDestination_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBigqueryDestination()); + } + if (enableNetworkEgressMetering_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableNetworkEgressMetering_); + } + if (consumptionMeteringConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getConsumptionMeteringConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (bigqueryDestinationBuilder_ == null) { + bigqueryDestination_ = null; + } else { + bigqueryDestination_ = null; + bigqueryDestinationBuilder_ = null; + } + enableNetworkEgressMetering_ = false; + + if (consumptionMeteringConfigBuilder_ == null) { + consumptionMeteringConfig_ = null; + } else { + consumptionMeteringConfig_ = null; + consumptionMeteringConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ResourceUsageExportConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceUsageExportConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.ResourceUsageExportConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceUsageExportConfig build() { + com.google.container.v1beta1.ResourceUsageExportConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceUsageExportConfig buildPartial() { + com.google.container.v1beta1.ResourceUsageExportConfig result = + new com.google.container.v1beta1.ResourceUsageExportConfig(this); + if (bigqueryDestinationBuilder_ == null) { + result.bigqueryDestination_ = bigqueryDestination_; + } else { + result.bigqueryDestination_ = bigqueryDestinationBuilder_.build(); + } + result.enableNetworkEgressMetering_ = enableNetworkEgressMetering_; + if (consumptionMeteringConfigBuilder_ == null) { + result.consumptionMeteringConfig_ = consumptionMeteringConfig_; + } else { + result.consumptionMeteringConfig_ = consumptionMeteringConfigBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ResourceUsageExportConfig) { + return mergeFrom((com.google.container.v1beta1.ResourceUsageExportConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ResourceUsageExportConfig other) { + if (other == com.google.container.v1beta1.ResourceUsageExportConfig.getDefaultInstance()) + return this; + if (other.hasBigqueryDestination()) { + mergeBigqueryDestination(other.getBigqueryDestination()); + } + if (other.getEnableNetworkEgressMetering() != false) { + setEnableNetworkEgressMetering(other.getEnableNetworkEgressMetering()); + } + if (other.hasConsumptionMeteringConfig()) { + mergeConsumptionMeteringConfig(other.getConsumptionMeteringConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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); + + break; + } // case 10 + case 16: + { + enableNetworkEgressMetering_ = input.readBool(); + + break; + } // case 16 + case 26: + { + input.readMessage( + getConsumptionMeteringConfigFieldBuilder().getBuilder(), extensionRegistry); + + 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 com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + bigqueryDestination_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination, + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination.Builder, + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestinationOrBuilder> + bigqueryDestinationBuilder_; + /** + * + * + *
+     * Configuration to use BigQuery as usage export destination.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * + * + * @return Whether the bigqueryDestination field is set. + */ + public boolean hasBigqueryDestination() { + return bigqueryDestinationBuilder_ != null || bigqueryDestination_ != null; + } + /** + * + * + *
+     * Configuration to use BigQuery as usage export destination.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * + * + * @return The bigqueryDestination. + */ + public com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + getBigqueryDestination() { + if (bigqueryDestinationBuilder_ == null) { + return bigqueryDestination_ == null + ? com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + .getDefaultInstance() + : bigqueryDestination_; + } else { + return bigqueryDestinationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration to use BigQuery as usage export destination.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * + */ + public Builder setBigqueryDestination( + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination value) { + if (bigqueryDestinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + bigqueryDestination_ = value; + onChanged(); + } else { + bigqueryDestinationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration to use BigQuery as usage export destination.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * + */ + public Builder setBigqueryDestination( + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination.Builder + builderForValue) { + if (bigqueryDestinationBuilder_ == null) { + bigqueryDestination_ = builderForValue.build(); + onChanged(); + } else { + bigqueryDestinationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration to use BigQuery as usage export destination.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * + */ + public Builder mergeBigqueryDestination( + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination value) { + if (bigqueryDestinationBuilder_ == null) { + if (bigqueryDestination_ != null) { + bigqueryDestination_ = + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination.newBuilder( + bigqueryDestination_) + .mergeFrom(value) + .buildPartial(); + } else { + bigqueryDestination_ = value; + } + onChanged(); + } else { + bigqueryDestinationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration to use BigQuery as usage export destination.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * + */ + public Builder clearBigqueryDestination() { + if (bigqueryDestinationBuilder_ == null) { + bigqueryDestination_ = null; + onChanged(); + } else { + bigqueryDestination_ = null; + bigqueryDestinationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration to use BigQuery as usage export destination.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * + */ + public com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination.Builder + getBigqueryDestinationBuilder() { + + onChanged(); + return getBigqueryDestinationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration to use BigQuery as usage export destination.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * + */ + public com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestinationOrBuilder + getBigqueryDestinationOrBuilder() { + if (bigqueryDestinationBuilder_ != null) { + return bigqueryDestinationBuilder_.getMessageOrBuilder(); + } else { + return bigqueryDestination_ == null + ? com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + .getDefaultInstance() + : bigqueryDestination_; + } + } + /** + * + * + *
+     * Configuration to use BigQuery as usage export destination.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination, + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination.Builder, + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestinationOrBuilder> + getBigqueryDestinationFieldBuilder() { + if (bigqueryDestinationBuilder_ == null) { + bigqueryDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination, + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination.Builder, + com.google.container.v1beta1.ResourceUsageExportConfig + .BigQueryDestinationOrBuilder>( + getBigqueryDestination(), getParentForChildren(), isClean()); + bigqueryDestination_ = null; + } + return bigqueryDestinationBuilder_; + } + + private boolean enableNetworkEgressMetering_; + /** + * + * + *
+     * Whether to enable network egress metering for this cluster. If enabled, a
+     * daemonset will be created in the cluster to meter network egress traffic.
+     * 
+ * + * bool enable_network_egress_metering = 2; + * + * @return The enableNetworkEgressMetering. + */ + @java.lang.Override + public boolean getEnableNetworkEgressMetering() { + return enableNetworkEgressMetering_; + } + /** + * + * + *
+     * Whether to enable network egress metering for this cluster. If enabled, a
+     * daemonset will be created in the cluster to meter network egress traffic.
+     * 
+ * + * bool enable_network_egress_metering = 2; + * + * @param value The enableNetworkEgressMetering to set. + * @return This builder for chaining. + */ + public Builder setEnableNetworkEgressMetering(boolean value) { + + enableNetworkEgressMetering_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether to enable network egress metering for this cluster. If enabled, a
+     * daemonset will be created in the cluster to meter network egress traffic.
+     * 
+ * + * bool enable_network_egress_metering = 2; + * + * @return This builder for chaining. + */ + public Builder clearEnableNetworkEgressMetering() { + + enableNetworkEgressMetering_ = false; + onChanged(); + return this; + } + + private com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + consumptionMeteringConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig, + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + .Builder, + com.google.container.v1beta1.ResourceUsageExportConfig + .ConsumptionMeteringConfigOrBuilder> + consumptionMeteringConfigBuilder_; + /** + * + * + *
+     * Configuration to enable resource consumption metering.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * + * + * @return Whether the consumptionMeteringConfig field is set. + */ + public boolean hasConsumptionMeteringConfig() { + return consumptionMeteringConfigBuilder_ != null || consumptionMeteringConfig_ != null; + } + /** + * + * + *
+     * Configuration to enable resource consumption metering.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * + * + * @return The consumptionMeteringConfig. + */ + public com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + getConsumptionMeteringConfig() { + if (consumptionMeteringConfigBuilder_ == null) { + return consumptionMeteringConfig_ == null + ? com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + .getDefaultInstance() + : consumptionMeteringConfig_; + } else { + return consumptionMeteringConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration to enable resource consumption metering.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * + */ + public Builder setConsumptionMeteringConfig( + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig value) { + if (consumptionMeteringConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + consumptionMeteringConfig_ = value; + onChanged(); + } else { + consumptionMeteringConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration to enable resource consumption metering.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * + */ + public Builder setConsumptionMeteringConfig( + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder + builderForValue) { + if (consumptionMeteringConfigBuilder_ == null) { + consumptionMeteringConfig_ = builderForValue.build(); + onChanged(); + } else { + consumptionMeteringConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration to enable resource consumption metering.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * + */ + public Builder mergeConsumptionMeteringConfig( + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig value) { + if (consumptionMeteringConfigBuilder_ == null) { + if (consumptionMeteringConfig_ != null) { + consumptionMeteringConfig_ = + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + .newBuilder(consumptionMeteringConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + consumptionMeteringConfig_ = value; + } + onChanged(); + } else { + consumptionMeteringConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration to enable resource consumption metering.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * + */ + public Builder clearConsumptionMeteringConfig() { + if (consumptionMeteringConfigBuilder_ == null) { + consumptionMeteringConfig_ = null; + onChanged(); + } else { + consumptionMeteringConfig_ = null; + consumptionMeteringConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration to enable resource consumption metering.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * + */ + public com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder + getConsumptionMeteringConfigBuilder() { + + onChanged(); + return getConsumptionMeteringConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration to enable resource consumption metering.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * + */ + public com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfigOrBuilder + getConsumptionMeteringConfigOrBuilder() { + if (consumptionMeteringConfigBuilder_ != null) { + return consumptionMeteringConfigBuilder_.getMessageOrBuilder(); + } else { + return consumptionMeteringConfig_ == null + ? com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + .getDefaultInstance() + : consumptionMeteringConfig_; + } + } + /** + * + * + *
+     * Configuration to enable resource consumption metering.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig, + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + .Builder, + com.google.container.v1beta1.ResourceUsageExportConfig + .ConsumptionMeteringConfigOrBuilder> + getConsumptionMeteringConfigFieldBuilder() { + if (consumptionMeteringConfigBuilder_ == null) { + consumptionMeteringConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig, + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + .Builder, + com.google.container.v1beta1.ResourceUsageExportConfig + .ConsumptionMeteringConfigOrBuilder>( + getConsumptionMeteringConfig(), getParentForChildren(), isClean()); + consumptionMeteringConfig_ = null; + } + return consumptionMeteringConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ResourceUsageExportConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ResourceUsageExportConfig) + private static final com.google.container.v1beta1.ResourceUsageExportConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ResourceUsageExportConfig(); + } + + public static com.google.container.v1beta1.ResourceUsageExportConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceUsageExportConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..0fa24e5714f8 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceUsageExportConfigOrBuilder.java @@ -0,0 +1,125 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ResourceUsageExportConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ResourceUsageExportConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Configuration to use BigQuery as usage export destination.
+   * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * + * + * @return Whether the bigqueryDestination field is set. + */ + boolean hasBigqueryDestination(); + /** + * + * + *
+   * Configuration to use BigQuery as usage export destination.
+   * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * + * + * @return The bigqueryDestination. + */ + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + getBigqueryDestination(); + /** + * + * + *
+   * Configuration to use BigQuery as usage export destination.
+   * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * + */ + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestinationOrBuilder + getBigqueryDestinationOrBuilder(); + + /** + * + * + *
+   * Whether to enable network egress metering for this cluster. If enabled, a
+   * daemonset will be created in the cluster to meter network egress traffic.
+   * 
+ * + * bool enable_network_egress_metering = 2; + * + * @return The enableNetworkEgressMetering. + */ + boolean getEnableNetworkEgressMetering(); + + /** + * + * + *
+   * Configuration to enable resource consumption metering.
+   * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * + * + * @return Whether the consumptionMeteringConfig field is set. + */ + boolean hasConsumptionMeteringConfig(); + /** + * + * + *
+   * Configuration to enable resource consumption metering.
+   * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * + * + * @return The consumptionMeteringConfig. + */ + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + getConsumptionMeteringConfig(); + /** + * + * + *
+   * Configuration to enable resource consumption metering.
+   * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * + */ + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfigOrBuilder + getConsumptionMeteringConfigOrBuilder(); +} diff --git a/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 new file mode 100644 index 000000000000..5df618918b7e --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequest.java @@ -0,0 +1,1596 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed
+ * NodePool upgrade. This will be an no-op if the last upgrade successfully
+ * completed.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.RollbackNodePoolUpgradeRequest} + */ +public final class RollbackNodePoolUpgradeRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.RollbackNodePoolUpgradeRequest) + RollbackNodePoolUpgradeRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RollbackNodePoolUpgradeRequest.newBuilder() to construct. + private RollbackNodePoolUpgradeRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RollbackNodePoolUpgradeRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RollbackNodePoolUpgradeRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_RollbackNodePoolUpgradeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_RollbackNodePoolUpgradeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.RollbackNodePoolUpgradeRequest.class, + com.google.container.v1beta1.RollbackNodePoolUpgradeRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=3793 + * @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=3793 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Required. Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3802 + * @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=3802 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * Required. Deprecated. The name of the cluster to rollback.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3809 + * @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=3809 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object nodePoolId_; + /** + * + * + *
+   * Required. Deprecated. The name of the node pool to rollback.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3816 + * @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=3816 + * @return The bytes for nodePoolId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node poll to
+   * rollback upgrade.
+   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 6; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node poll to
+   * rollback upgrade.
+   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESPECT_PDB_FIELD_NUMBER = 7; + 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_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 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(); + 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); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.nodePoolId_ = nodePoolId_; + result.name_ = name_; + result.respectPdb_ = respectPdb_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.RollbackNodePoolUpgradeRequest) { + return mergeFrom((com.google.container.v1beta1.RollbackNodePoolUpgradeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.RollbackNodePoolUpgradeRequest other) { + if (other == com.google.container.v1beta1.RollbackNodePoolUpgradeRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + nodePoolId_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 50: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 56: + { + respectPdb_ = input.readBool(); + + 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 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=3793 + * @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=3793 + * @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=3793 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=3793 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=3793 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3802 + * @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=3802 + * @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=3802 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3802 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3802 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to rollback.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3809 + * @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=3809 + * @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=3809 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to rollback.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3809 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to rollback.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3809 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the node pool to rollback.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is + * deprecated. See google/container/v1beta1/cluster_service.proto;l=3816 + * @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=3816 + * @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=3816 + * @param value The nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodePoolId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the node pool to rollback.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is + * deprecated. See google/container/v1beta1/cluster_service.proto;l=3816 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearNodePoolId() { + + nodePoolId_ = getDefaultInstance().getNodePoolId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the node pool to rollback.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is + * deprecated. See google/container/v1beta1/cluster_service.proto;l=3816 + * @param value The bytes for nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodePoolId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node poll to
+     * rollback upgrade.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node poll to
+     * rollback upgrade.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node poll to
+     * rollback upgrade.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node poll to
+     * rollback upgrade.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node poll to
+     * rollback upgrade.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + 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; + 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() { + + 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 new file mode 100644 index 000000000000..f29e15590cfb --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequestOrBuilder.java @@ -0,0 +1,212 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface RollbackNodePoolUpgradeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.RollbackNodePoolUpgradeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=3793 + * @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=3793 + * @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=3802 + * @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=3802 + * @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=3809 + * @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=3809 + * @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=3816 + * @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=3816 + * @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 new file mode 100644 index 000000000000..0d4462b21dbd --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SandboxConfig.java @@ -0,0 +1,919 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * SandboxConfig contains configurations of the sandbox to use for the node.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SandboxConfig} + */ +public final class SandboxConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SandboxConfig) + SandboxConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use SandboxConfig.newBuilder() to construct. + private SandboxConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SandboxConfig() { + sandboxType_ = ""; + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SandboxConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SandboxConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SandboxConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SandboxConfig.class, + com.google.container.v1beta1.SandboxConfig.Builder.class); + } + + /** + * + * + *
+   * Possible types of sandboxes.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.SandboxConfig.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. This should not be used.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + * + * + *
+     * Run sandbox using gvisor.
+     * 
+ * + * GVISOR = 1; + */ + GVISOR(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value. This should not be used.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Run sandbox using gvisor.
+     * 
+ * + * GVISOR = 1; + */ + public static final int GVISOR_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: + return UNSPECIFIED; + case 1: + return GVISOR; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1beta1.SandboxConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.SandboxConfig.Type) + } + + public static final int SANDBOX_TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object sandboxType_; + /** + * + * + *
+   * Type of the sandbox to use for the node (e.g. 'gvisor')
+   * 
+ * + * string sandbox_type = 1 [deprecated = true]; + * + * @deprecated google.container.v1beta1.SandboxConfig.sandbox_type is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=872 + * @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=872 + * @return The bytes for sandboxType. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getSandboxTypeBytes() { + java.lang.Object ref = sandboxType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sandboxType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_; + /** + * + * + *
+   * Type of the sandbox to use for the node.
+   * 
+ * + * .google.container.v1beta1.SandboxConfig.Type type = 2; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * Type of the sandbox to use for the node.
+   * 
+ * + * .google.container.v1beta1.SandboxConfig.Type type = 2; + * + * @return The type. + */ + @java.lang.Override + public com.google.container.v1beta1.SandboxConfig.Type getType() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.SandboxConfig.Type result = + com.google.container.v1beta1.SandboxConfig.Type.valueOf(type_); + return result == null ? com.google.container.v1beta1.SandboxConfig.Type.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + sandboxType_ = ""; + + type_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SandboxConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SandboxConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.SandboxConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SandboxConfig build() { + com.google.container.v1beta1.SandboxConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SandboxConfig buildPartial() { + com.google.container.v1beta1.SandboxConfig result = + new com.google.container.v1beta1.SandboxConfig(this); + result.sandboxType_ = sandboxType_; + result.type_ = type_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.SandboxConfig) { + return mergeFrom((com.google.container.v1beta1.SandboxConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SandboxConfig other) { + if (other == com.google.container.v1beta1.SandboxConfig.getDefaultInstance()) return this; + if (!other.getSandboxType().isEmpty()) { + sandboxType_ = other.sandboxType_; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 16: + { + type_ = input.readEnum(); + + 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 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=872 + * @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=872 + * @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=872 + * @param value The sandboxType to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setSandboxType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + sandboxType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Type of the sandbox to use for the node (e.g. 'gvisor')
+     * 
+ * + * string sandbox_type = 1 [deprecated = true]; + * + * @deprecated google.container.v1beta1.SandboxConfig.sandbox_type is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=872 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearSandboxType() { + + sandboxType_ = getDefaultInstance().getSandboxType(); + onChanged(); + return this; + } + /** + * + * + *
+     * Type of the sandbox to use for the node (e.g. 'gvisor')
+     * 
+ * + * string sandbox_type = 1 [deprecated = true]; + * + * @deprecated google.container.v1beta1.SandboxConfig.sandbox_type is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=872 + * @param value The bytes for sandboxType to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setSandboxTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + sandboxType_ = value; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * + * + *
+     * Type of the sandbox to use for the node.
+     * 
+ * + * .google.container.v1beta1.SandboxConfig.Type type = 2; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Type of the sandbox to use for the node.
+     * 
+ * + * .google.container.v1beta1.SandboxConfig.Type type = 2; + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Type of the sandbox to use for the node.
+     * 
+ * + * .google.container.v1beta1.SandboxConfig.Type type = 2; + * + * @return The type. + */ + @java.lang.Override + public com.google.container.v1beta1.SandboxConfig.Type getType() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.SandboxConfig.Type result = + com.google.container.v1beta1.SandboxConfig.Type.valueOf(type_); + return result == null ? com.google.container.v1beta1.SandboxConfig.Type.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Type of the sandbox to use for the node.
+     * 
+ * + * .google.container.v1beta1.SandboxConfig.Type type = 2; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.container.v1beta1.SandboxConfig.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Type of the sandbox to use for the node.
+     * 
+ * + * .google.container.v1beta1.SandboxConfig.Type type = 2; + * + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SandboxConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SandboxConfig) + private static final com.google.container.v1beta1.SandboxConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SandboxConfig(); + } + + public static com.google.container.v1beta1.SandboxConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SandboxConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..0dc68313da2c --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SandboxConfigOrBuilder.java @@ -0,0 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface 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=872 + * @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=872 + * @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 new file mode 100644 index 000000000000..73daf62c9564 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecurityBulletinEvent.java @@ -0,0 +1,2467 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * SecurityBulletinEvent is a notification sent to customers when a security
+ * bulletin has been posted that they are vulnerable to.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SecurityBulletinEvent} + */ +public final class SecurityBulletinEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SecurityBulletinEvent) + SecurityBulletinEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use SecurityBulletinEvent.newBuilder() to construct. + private SecurityBulletinEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SecurityBulletinEvent() { + resourceTypeAffected_ = ""; + bulletinId_ = ""; + cveIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + severity_ = ""; + bulletinUri_ = ""; + briefDescription_ = ""; + affectedSupportedMinors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + patchedVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + suggestedUpgradeTarget_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SecurityBulletinEvent(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SecurityBulletinEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SecurityBulletinEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SecurityBulletinEvent.class, + com.google.container.v1beta1.SecurityBulletinEvent.Builder.class); + } + + public static final int RESOURCE_TYPE_AFFECTED_FIELD_NUMBER = 1; + private volatile java.lang.Object resourceTypeAffected_; + /** + * + * + *
+   * The resource type (node/control plane) that has the vulnerability. Multiple
+   * notifications (1 notification per resource type) will be sent for a
+   * vulnerability that affects > 1 resource type.
+   * 
+ * + * string resource_type_affected = 1; + * + * @return The resourceTypeAffected. + */ + @java.lang.Override + public java.lang.String getResourceTypeAffected() { + java.lang.Object ref = resourceTypeAffected_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceTypeAffected_ = s; + return s; + } + } + /** + * + * + *
+   * The resource type (node/control plane) that has the vulnerability. Multiple
+   * notifications (1 notification per resource type) will be sent for a
+   * vulnerability that affects > 1 resource type.
+   * 
+ * + * string resource_type_affected = 1; + * + * @return The bytes for resourceTypeAffected. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceTypeAffectedBytes() { + java.lang.Object ref = resourceTypeAffected_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceTypeAffected_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BULLETIN_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object bulletinId_; + /** + * + * + *
+   * The ID of the bulletin corresponding to the vulnerability.
+   * 
+ * + * string bulletin_id = 2; + * + * @return The bulletinId. + */ + @java.lang.Override + public java.lang.String getBulletinId() { + java.lang.Object ref = bulletinId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bulletinId_ = s; + return s; + } + } + /** + * + * + *
+   * The ID of the bulletin corresponding to the vulnerability.
+   * 
+ * + * string bulletin_id = 2; + * + * @return The bytes for bulletinId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBulletinIdBytes() { + java.lang.Object ref = bulletinId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bulletinId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CVE_IDS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList cveIds_; + /** + * + * + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * + * @return A list containing the cveIds. + */ + public com.google.protobuf.ProtocolStringList getCveIdsList() { + return cveIds_; + } + /** + * + * + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * + * @return The count of cveIds. + */ + public int getCveIdsCount() { + return cveIds_.size(); + } + /** + * + * + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * + * @param index The index of the element to return. + * @return The cveIds at the given index. + */ + public java.lang.String getCveIds(int index) { + return cveIds_.get(index); + } + /** + * + * + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * + * @param index The index of the value to return. + * @return The bytes of the cveIds at the given index. + */ + public com.google.protobuf.ByteString getCveIdsBytes(int index) { + return cveIds_.getByteString(index); + } + + public static final int SEVERITY_FIELD_NUMBER = 4; + private volatile java.lang.Object severity_; + /** + * + * + *
+   * The severity of this bulletin as it relates to GKE.
+   * 
+ * + * string severity = 4; + * + * @return The severity. + */ + @java.lang.Override + public java.lang.String getSeverity() { + java.lang.Object ref = severity_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + severity_ = s; + return s; + } + } + /** + * + * + *
+   * The severity of this bulletin as it relates to GKE.
+   * 
+ * + * string severity = 4; + * + * @return The bytes for severity. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSeverityBytes() { + java.lang.Object ref = severity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + severity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BULLETIN_URI_FIELD_NUMBER = 5; + private volatile java.lang.Object bulletinUri_; + /** + * + * + *
+   * The URI link to the bulletin on the website for more information.
+   * 
+ * + * string bulletin_uri = 5; + * + * @return The bulletinUri. + */ + @java.lang.Override + public java.lang.String getBulletinUri() { + java.lang.Object ref = bulletinUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bulletinUri_ = s; + return s; + } + } + /** + * + * + *
+   * The URI link to the bulletin on the website for more information.
+   * 
+ * + * string bulletin_uri = 5; + * + * @return The bytes for bulletinUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBulletinUriBytes() { + java.lang.Object ref = bulletinUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bulletinUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BRIEF_DESCRIPTION_FIELD_NUMBER = 6; + private volatile java.lang.Object briefDescription_; + /** + * + * + *
+   * A brief description of the bulletin. See the bulletin pointed to by the
+   * bulletin_uri field for an expanded description.
+   * 
+ * + * string brief_description = 6; + * + * @return The briefDescription. + */ + @java.lang.Override + public java.lang.String getBriefDescription() { + java.lang.Object ref = briefDescription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + briefDescription_ = s; + return s; + } + } + /** + * + * + *
+   * A brief description of the bulletin. See the bulletin pointed to by the
+   * bulletin_uri field for an expanded description.
+   * 
+ * + * string brief_description = 6; + * + * @return The bytes for briefDescription. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBriefDescriptionBytes() { + java.lang.Object ref = briefDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + briefDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AFFECTED_SUPPORTED_MINORS_FIELD_NUMBER = 7; + private com.google.protobuf.LazyStringList affectedSupportedMinors_; + /** + * + * + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * + * @return A list containing the affectedSupportedMinors. + */ + public com.google.protobuf.ProtocolStringList getAffectedSupportedMinorsList() { + return affectedSupportedMinors_; + } + /** + * + * + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * + * @return The count of affectedSupportedMinors. + */ + public int getAffectedSupportedMinorsCount() { + return affectedSupportedMinors_.size(); + } + /** + * + * + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param index The index of the element to return. + * @return The affectedSupportedMinors at the given index. + */ + public java.lang.String getAffectedSupportedMinors(int index) { + return affectedSupportedMinors_.get(index); + } + /** + * + * + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param index The index of the value to return. + * @return The bytes of the affectedSupportedMinors at the given index. + */ + public com.google.protobuf.ByteString getAffectedSupportedMinorsBytes(int index) { + return affectedSupportedMinors_.getByteString(index); + } + + public static final int PATCHED_VERSIONS_FIELD_NUMBER = 8; + private com.google.protobuf.LazyStringList patchedVersions_; + /** + * + * + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * + * @return A list containing the patchedVersions. + */ + public com.google.protobuf.ProtocolStringList getPatchedVersionsList() { + return patchedVersions_; + } + /** + * + * + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * + * @return The count of patchedVersions. + */ + public int getPatchedVersionsCount() { + return patchedVersions_.size(); + } + /** + * + * + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * + * @param index The index of the element to return. + * @return The patchedVersions at the given index. + */ + public java.lang.String getPatchedVersions(int index) { + return patchedVersions_.get(index); + } + /** + * + * + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * + * @param index The index of the value to return. + * @return The bytes of the patchedVersions at the given index. + */ + public com.google.protobuf.ByteString getPatchedVersionsBytes(int index) { + return patchedVersions_.getByteString(index); + } + + public static final int SUGGESTED_UPGRADE_TARGET_FIELD_NUMBER = 9; + private volatile java.lang.Object suggestedUpgradeTarget_; + /** + * + * + *
+   * This represents a version selected from the patched_versions field that
+   * the cluster receiving this notification should most likely want to upgrade
+   * to based on its current version. Note that if this notification is being
+   * received by a given cluster, it means that this version is currently
+   * available as an upgrade target in that cluster's location.
+   * 
+ * + * string suggested_upgrade_target = 9; + * + * @return The suggestedUpgradeTarget. + */ + @java.lang.Override + public java.lang.String getSuggestedUpgradeTarget() { + java.lang.Object ref = suggestedUpgradeTarget_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + suggestedUpgradeTarget_ = s; + return s; + } + } + /** + * + * + *
+   * This represents a version selected from the patched_versions field that
+   * the cluster receiving this notification should most likely want to upgrade
+   * to based on its current version. Note that if this notification is being
+   * received by a given cluster, it means that this version is currently
+   * available as an upgrade target in that cluster's location.
+   * 
+ * + * string suggested_upgrade_target = 9; + * + * @return The bytes for suggestedUpgradeTarget. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSuggestedUpgradeTargetBytes() { + java.lang.Object ref = suggestedUpgradeTarget_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + suggestedUpgradeTarget_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MANUAL_STEPS_REQUIRED_FIELD_NUMBER = 10; + private boolean manualStepsRequired_; + /** + * + * + *
+   * If this field is specified, it means there are manual steps that the user
+   * must take to make their clusters safe.
+   * 
+ * + * bool manual_steps_required = 10; + * + * @return The manualStepsRequired. + */ + @java.lang.Override + public boolean getManualStepsRequired() { + return manualStepsRequired_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceTypeAffected_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceTypeAffected_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bulletinId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bulletinId_); + } + for (int i = 0; i < cveIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cveIds_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(severity_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, severity_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bulletinUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, bulletinUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(briefDescription_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, briefDescription_); + } + for (int i = 0; i < affectedSupportedMinors_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 7, affectedSupportedMinors_.getRaw(i)); + } + for (int i = 0; i < patchedVersions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, patchedVersions_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(suggestedUpgradeTarget_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, suggestedUpgradeTarget_); + } + if (manualStepsRequired_ != false) { + output.writeBool(10, manualStepsRequired_); + } + getUnknownFields().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(); + resourceTypeAffected_ = ""; + + bulletinId_ = ""; + + cveIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + severity_ = ""; + + bulletinUri_ = ""; + + briefDescription_ = ""; + + affectedSupportedMinors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + patchedVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + suggestedUpgradeTarget_ = ""; + + manualStepsRequired_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SecurityBulletinEvent_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SecurityBulletinEvent getDefaultInstanceForType() { + return com.google.container.v1beta1.SecurityBulletinEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SecurityBulletinEvent build() { + com.google.container.v1beta1.SecurityBulletinEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SecurityBulletinEvent buildPartial() { + com.google.container.v1beta1.SecurityBulletinEvent result = + new com.google.container.v1beta1.SecurityBulletinEvent(this); + int from_bitField0_ = bitField0_; + result.resourceTypeAffected_ = resourceTypeAffected_; + result.bulletinId_ = bulletinId_; + if (((bitField0_ & 0x00000001) != 0)) { + cveIds_ = cveIds_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.cveIds_ = cveIds_; + result.severity_ = severity_; + result.bulletinUri_ = bulletinUri_; + result.briefDescription_ = briefDescription_; + if (((bitField0_ & 0x00000002) != 0)) { + affectedSupportedMinors_ = affectedSupportedMinors_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.affectedSupportedMinors_ = affectedSupportedMinors_; + if (((bitField0_ & 0x00000004) != 0)) { + patchedVersions_ = patchedVersions_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.patchedVersions_ = patchedVersions_; + result.suggestedUpgradeTarget_ = suggestedUpgradeTarget_; + result.manualStepsRequired_ = manualStepsRequired_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.SecurityBulletinEvent) { + return mergeFrom((com.google.container.v1beta1.SecurityBulletinEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SecurityBulletinEvent other) { + if (other == com.google.container.v1beta1.SecurityBulletinEvent.getDefaultInstance()) + return this; + if (!other.getResourceTypeAffected().isEmpty()) { + resourceTypeAffected_ = other.resourceTypeAffected_; + onChanged(); + } + if (!other.getBulletinId().isEmpty()) { + bulletinId_ = other.bulletinId_; + onChanged(); + } + if (!other.cveIds_.isEmpty()) { + if (cveIds_.isEmpty()) { + cveIds_ = other.cveIds_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCveIdsIsMutable(); + cveIds_.addAll(other.cveIds_); + } + onChanged(); + } + if (!other.getSeverity().isEmpty()) { + severity_ = other.severity_; + onChanged(); + } + if (!other.getBulletinUri().isEmpty()) { + bulletinUri_ = other.bulletinUri_; + onChanged(); + } + if (!other.getBriefDescription().isEmpty()) { + briefDescription_ = other.briefDescription_; + onChanged(); + } + if (!other.affectedSupportedMinors_.isEmpty()) { + if (affectedSupportedMinors_.isEmpty()) { + affectedSupportedMinors_ = other.affectedSupportedMinors_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAffectedSupportedMinorsIsMutable(); + affectedSupportedMinors_.addAll(other.affectedSupportedMinors_); + } + onChanged(); + } + if (!other.patchedVersions_.isEmpty()) { + if (patchedVersions_.isEmpty()) { + patchedVersions_ = other.patchedVersions_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensurePatchedVersionsIsMutable(); + patchedVersions_.addAll(other.patchedVersions_); + } + onChanged(); + } + if (!other.getSuggestedUpgradeTarget().isEmpty()) { + suggestedUpgradeTarget_ = other.suggestedUpgradeTarget_; + onChanged(); + } + if (other.getManualStepsRequired() != false) { + setManualStepsRequired(other.getManualStepsRequired()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + bulletinId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureCveIdsIsMutable(); + cveIds_.add(s); + break; + } // case 26 + case 34: + { + severity_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + bulletinUri_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + briefDescription_ = input.readStringRequireUtf8(); + + 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(); + + break; + } // case 74 + case 80: + { + manualStepsRequired_ = input.readBool(); + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource type (node/control plane) that has the vulnerability. Multiple
+     * notifications (1 notification per resource type) will be sent for a
+     * vulnerability that affects > 1 resource type.
+     * 
+ * + * string resource_type_affected = 1; + * + * @return This builder for chaining. + */ + public Builder clearResourceTypeAffected() { + + resourceTypeAffected_ = getDefaultInstance().getResourceTypeAffected(); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource type (node/control plane) that has the vulnerability. Multiple
+     * notifications (1 notification per resource type) will be sent for a
+     * vulnerability that affects > 1 resource type.
+     * 
+ * + * string resource_type_affected = 1; + * + * @param value The bytes for resourceTypeAffected to set. + * @return This builder for chaining. + */ + public Builder setResourceTypeAffectedBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceTypeAffected_ = value; + onChanged(); + return this; + } + + private java.lang.Object bulletinId_ = ""; + /** + * + * + *
+     * The ID of the bulletin corresponding to the vulnerability.
+     * 
+ * + * string bulletin_id = 2; + * + * @return The bulletinId. + */ + public java.lang.String getBulletinId() { + java.lang.Object ref = bulletinId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bulletinId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The ID of the bulletin corresponding to the vulnerability.
+     * 
+ * + * string bulletin_id = 2; + * + * @return The bytes for bulletinId. + */ + public com.google.protobuf.ByteString getBulletinIdBytes() { + java.lang.Object ref = bulletinId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bulletinId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The ID of the bulletin corresponding to the vulnerability.
+     * 
+ * + * string bulletin_id = 2; + * + * @param value The bulletinId to set. + * @return This builder for chaining. + */ + public Builder setBulletinId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + bulletinId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The ID of the bulletin corresponding to the vulnerability.
+     * 
+ * + * string bulletin_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearBulletinId() { + + bulletinId_ = getDefaultInstance().getBulletinId(); + onChanged(); + return this; + } + /** + * + * + *
+     * The ID of the bulletin corresponding to the vulnerability.
+     * 
+ * + * string bulletin_id = 2; + * + * @param value The bytes for bulletinId to set. + * @return This builder for chaining. + */ + public Builder setBulletinIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bulletinId_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList cveIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureCveIdsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + cveIds_ = new com.google.protobuf.LazyStringArrayList(cveIds_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * + * @return A list containing the cveIds. + */ + public com.google.protobuf.ProtocolStringList getCveIdsList() { + return cveIds_.getUnmodifiableView(); + } + /** + * + * + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * + * @return The count of cveIds. + */ + public int getCveIdsCount() { + return cveIds_.size(); + } + /** + * + * + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * + * @param index The index of the element to return. + * @return The cveIds at the given index. + */ + public java.lang.String getCveIds(int index) { + return cveIds_.get(index); + } + /** + * + * + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * + * @param index The index of the value to return. + * @return The bytes of the cveIds at the given index. + */ + public com.google.protobuf.ByteString getCveIdsBytes(int index) { + return cveIds_.getByteString(index); + } + /** + * + * + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * + * @param index The index to set the value at. + * @param value The cveIds to set. + * @return This builder for chaining. + */ + public Builder setCveIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCveIdsIsMutable(); + cveIds_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * + * @param value The cveIds to add. + * @return This builder for chaining. + */ + public Builder addCveIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCveIdsIsMutable(); + cveIds_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * + * @param values The cveIds to add. + * @return This builder for chaining. + */ + public Builder addAllCveIds(java.lang.Iterable values) { + ensureCveIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cveIds_); + onChanged(); + return this; + } + /** + * + * + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * + * @return This builder for chaining. + */ + public Builder clearCveIds() { + cveIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * + * @param value The bytes of the cveIds to add. + * @return This builder for chaining. + */ + public Builder addCveIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCveIdsIsMutable(); + cveIds_.add(value); + onChanged(); + return this; + } + + private java.lang.Object severity_ = ""; + /** + * + * + *
+     * The severity of this bulletin as it relates to GKE.
+     * 
+ * + * string severity = 4; + * + * @return The severity. + */ + public java.lang.String getSeverity() { + java.lang.Object ref = severity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + severity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The severity of this bulletin as it relates to GKE.
+     * 
+ * + * string severity = 4; + * + * @return The bytes for severity. + */ + public com.google.protobuf.ByteString getSeverityBytes() { + java.lang.Object ref = severity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + severity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The severity of this bulletin as it relates to GKE.
+     * 
+ * + * string severity = 4; + * + * @param value The severity to set. + * @return This builder for chaining. + */ + public Builder setSeverity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + severity_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The severity of this bulletin as it relates to GKE.
+     * 
+ * + * string severity = 4; + * + * @return This builder for chaining. + */ + public Builder clearSeverity() { + + severity_ = getDefaultInstance().getSeverity(); + onChanged(); + return this; + } + /** + * + * + *
+     * The severity of this bulletin as it relates to GKE.
+     * 
+ * + * string severity = 4; + * + * @param value The bytes for severity to set. + * @return This builder for chaining. + */ + public Builder setSeverityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + severity_ = value; + onChanged(); + return this; + } + + private java.lang.Object bulletinUri_ = ""; + /** + * + * + *
+     * The URI link to the bulletin on the website for more information.
+     * 
+ * + * string bulletin_uri = 5; + * + * @return The bulletinUri. + */ + public java.lang.String getBulletinUri() { + java.lang.Object ref = bulletinUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bulletinUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The URI link to the bulletin on the website for more information.
+     * 
+ * + * string bulletin_uri = 5; + * + * @return The bytes for bulletinUri. + */ + public com.google.protobuf.ByteString getBulletinUriBytes() { + java.lang.Object ref = bulletinUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bulletinUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The URI link to the bulletin on the website for more information.
+     * 
+ * + * string bulletin_uri = 5; + * + * @param value The bulletinUri to set. + * @return This builder for chaining. + */ + public Builder setBulletinUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + bulletinUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The URI link to the bulletin on the website for more information.
+     * 
+ * + * string bulletin_uri = 5; + * + * @return This builder for chaining. + */ + public Builder clearBulletinUri() { + + bulletinUri_ = getDefaultInstance().getBulletinUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * The URI link to the bulletin on the website for more information.
+     * 
+ * + * string bulletin_uri = 5; + * + * @param value The bytes for bulletinUri to set. + * @return This builder for chaining. + */ + public Builder setBulletinUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bulletinUri_ = value; + onChanged(); + return this; + } + + private java.lang.Object briefDescription_ = ""; + /** + * + * + *
+     * A brief description of the bulletin. See the bulletin pointed to by the
+     * bulletin_uri field for an expanded description.
+     * 
+ * + * string brief_description = 6; + * + * @return The briefDescription. + */ + public java.lang.String getBriefDescription() { + java.lang.Object ref = briefDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + briefDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A brief description of the bulletin. See the bulletin pointed to by the
+     * bulletin_uri field for an expanded description.
+     * 
+ * + * string brief_description = 6; + * + * @return The bytes for briefDescription. + */ + public com.google.protobuf.ByteString getBriefDescriptionBytes() { + java.lang.Object ref = briefDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + briefDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A brief description of the bulletin. See the bulletin pointed to by the
+     * bulletin_uri field for an expanded description.
+     * 
+ * + * string brief_description = 6; + * + * @param value The briefDescription to set. + * @return This builder for chaining. + */ + public Builder setBriefDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + briefDescription_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A brief description of the bulletin. See the bulletin pointed to by the
+     * bulletin_uri field for an expanded description.
+     * 
+ * + * string brief_description = 6; + * + * @return This builder for chaining. + */ + public Builder clearBriefDescription() { + + briefDescription_ = getDefaultInstance().getBriefDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * A brief description of the bulletin. See the bulletin pointed to by the
+     * bulletin_uri field for an expanded description.
+     * 
+ * + * string brief_description = 6; + * + * @param value The bytes for briefDescription to set. + * @return This builder for chaining. + */ + public Builder setBriefDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + briefDescription_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList affectedSupportedMinors_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAffectedSupportedMinorsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + affectedSupportedMinors_ = + new com.google.protobuf.LazyStringArrayList(affectedSupportedMinors_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * + * @return A list containing the affectedSupportedMinors. + */ + public com.google.protobuf.ProtocolStringList getAffectedSupportedMinorsList() { + return affectedSupportedMinors_.getUnmodifiableView(); + } + /** + * + * + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * + * @return The count of affectedSupportedMinors. + */ + public int getAffectedSupportedMinorsCount() { + return affectedSupportedMinors_.size(); + } + /** + * + * + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param index The index of the element to return. + * @return The affectedSupportedMinors at the given index. + */ + public java.lang.String getAffectedSupportedMinors(int index) { + return affectedSupportedMinors_.get(index); + } + /** + * + * + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param index The index of the value to return. + * @return The bytes of the affectedSupportedMinors at the given index. + */ + public com.google.protobuf.ByteString getAffectedSupportedMinorsBytes(int index) { + return affectedSupportedMinors_.getByteString(index); + } + /** + * + * + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param index The index to set the value at. + * @param value The affectedSupportedMinors to set. + * @return This builder for chaining. + */ + public Builder setAffectedSupportedMinors(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAffectedSupportedMinorsIsMutable(); + affectedSupportedMinors_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param value The affectedSupportedMinors to add. + * @return This builder for chaining. + */ + public Builder addAffectedSupportedMinors(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAffectedSupportedMinorsIsMutable(); + affectedSupportedMinors_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param values The affectedSupportedMinors to add. + * @return This builder for chaining. + */ + public Builder addAllAffectedSupportedMinors(java.lang.Iterable values) { + ensureAffectedSupportedMinorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, affectedSupportedMinors_); + onChanged(); + return this; + } + /** + * + * + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * + * @return This builder for chaining. + */ + public Builder clearAffectedSupportedMinors() { + affectedSupportedMinors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param value The bytes of the affectedSupportedMinors to add. + * @return This builder for chaining. + */ + public Builder addAffectedSupportedMinorsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAffectedSupportedMinorsIsMutable(); + affectedSupportedMinors_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList patchedVersions_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensurePatchedVersionsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + patchedVersions_ = new com.google.protobuf.LazyStringArrayList(patchedVersions_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * + * @return A list containing the patchedVersions. + */ + public com.google.protobuf.ProtocolStringList getPatchedVersionsList() { + return patchedVersions_.getUnmodifiableView(); + } + /** + * + * + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * + * @return The count of patchedVersions. + */ + public int getPatchedVersionsCount() { + return patchedVersions_.size(); + } + /** + * + * + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * + * @param index The index of the element to return. + * @return The patchedVersions at the given index. + */ + public java.lang.String getPatchedVersions(int index) { + return patchedVersions_.get(index); + } + /** + * + * + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * + * @param index The index of the value to return. + * @return The bytes of the patchedVersions at the given index. + */ + public com.google.protobuf.ByteString getPatchedVersionsBytes(int index) { + return patchedVersions_.getByteString(index); + } + /** + * + * + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * + * @param index The index to set the value at. + * @param value The patchedVersions to set. + * @return This builder for chaining. + */ + public Builder setPatchedVersions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePatchedVersionsIsMutable(); + patchedVersions_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * + * @param value The patchedVersions to add. + * @return This builder for chaining. + */ + public Builder addPatchedVersions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePatchedVersionsIsMutable(); + patchedVersions_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * + * @param values The patchedVersions to add. + * @return This builder for chaining. + */ + public Builder addAllPatchedVersions(java.lang.Iterable values) { + ensurePatchedVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, patchedVersions_); + onChanged(); + return this; + } + /** + * + * + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * + * @return This builder for chaining. + */ + public Builder clearPatchedVersions() { + patchedVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * + * @param value The bytes of the patchedVersions to add. + * @return This builder for chaining. + */ + public Builder addPatchedVersionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePatchedVersionsIsMutable(); + patchedVersions_.add(value); + onChanged(); + return this; + } + + private java.lang.Object suggestedUpgradeTarget_ = ""; + /** + * + * + *
+     * This represents a version selected from the patched_versions field that
+     * the cluster receiving this notification should most likely want to upgrade
+     * to based on its current version. Note that if this notification is being
+     * received by a given cluster, it means that this version is currently
+     * available as an upgrade target in that cluster's location.
+     * 
+ * + * string suggested_upgrade_target = 9; + * + * @return The suggestedUpgradeTarget. + */ + public java.lang.String getSuggestedUpgradeTarget() { + java.lang.Object ref = suggestedUpgradeTarget_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + suggestedUpgradeTarget_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * This represents a version selected from the patched_versions field that
+     * the cluster receiving this notification should most likely want to upgrade
+     * to based on its current version. Note that if this notification is being
+     * received by a given cluster, it means that this version is currently
+     * available as an upgrade target in that cluster's location.
+     * 
+ * + * string suggested_upgrade_target = 9; + * + * @return The bytes for suggestedUpgradeTarget. + */ + public com.google.protobuf.ByteString getSuggestedUpgradeTargetBytes() { + java.lang.Object ref = suggestedUpgradeTarget_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + suggestedUpgradeTarget_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * This represents a version selected from the patched_versions field that
+     * the cluster receiving this notification should most likely want to upgrade
+     * to based on its current version. Note that if this notification is being
+     * received by a given cluster, it means that this version is currently
+     * available as an upgrade target in that cluster's location.
+     * 
+ * + * string suggested_upgrade_target = 9; + * + * @param value The suggestedUpgradeTarget to set. + * @return This builder for chaining. + */ + public Builder setSuggestedUpgradeTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + suggestedUpgradeTarget_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * This represents a version selected from the patched_versions field that
+     * the cluster receiving this notification should most likely want to upgrade
+     * to based on its current version. Note that if this notification is being
+     * received by a given cluster, it means that this version is currently
+     * available as an upgrade target in that cluster's location.
+     * 
+ * + * string suggested_upgrade_target = 9; + * + * @return This builder for chaining. + */ + public Builder clearSuggestedUpgradeTarget() { + + suggestedUpgradeTarget_ = getDefaultInstance().getSuggestedUpgradeTarget(); + onChanged(); + return this; + } + /** + * + * + *
+     * This represents a version selected from the patched_versions field that
+     * the cluster receiving this notification should most likely want to upgrade
+     * to based on its current version. Note that if this notification is being
+     * received by a given cluster, it means that this version is currently
+     * available as an upgrade target in that cluster's location.
+     * 
+ * + * string suggested_upgrade_target = 9; + * + * @param value The bytes for suggestedUpgradeTarget to set. + * @return This builder for chaining. + */ + public Builder setSuggestedUpgradeTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + suggestedUpgradeTarget_ = value; + onChanged(); + return this; + } + + private boolean manualStepsRequired_; + /** + * + * + *
+     * If this field is specified, it means there are manual steps that the user
+     * must take to make their clusters safe.
+     * 
+ * + * bool manual_steps_required = 10; + * + * @return The manualStepsRequired. + */ + @java.lang.Override + public boolean getManualStepsRequired() { + return manualStepsRequired_; + } + /** + * + * + *
+     * If this field is specified, it means there are manual steps that the user
+     * must take to make their clusters safe.
+     * 
+ * + * bool manual_steps_required = 10; + * + * @param value The manualStepsRequired to set. + * @return This builder for chaining. + */ + public Builder setManualStepsRequired(boolean value) { + + manualStepsRequired_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If this field is specified, it means there are manual steps that the user
+     * must take to make their clusters safe.
+     * 
+ * + * bool manual_steps_required = 10; + * + * @return This builder for chaining. + */ + public Builder clearManualStepsRequired() { + + manualStepsRequired_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SecurityBulletinEvent) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SecurityBulletinEvent) + private static final com.google.container.v1beta1.SecurityBulletinEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SecurityBulletinEvent(); + } + + public static com.google.container.v1beta1.SecurityBulletinEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecurityBulletinEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..dfb6c6ceb713 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecurityBulletinEventOrBuilder.java @@ -0,0 +1,356 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface SecurityBulletinEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SecurityBulletinEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resource type (node/control plane) that has the vulnerability. Multiple
+   * notifications (1 notification per resource type) will be sent for a
+   * vulnerability that affects > 1 resource type.
+   * 
+ * + * string resource_type_affected = 1; + * + * @return The resourceTypeAffected. + */ + java.lang.String getResourceTypeAffected(); + /** + * + * + *
+   * The resource type (node/control plane) that has the vulnerability. Multiple
+   * notifications (1 notification per resource type) will be sent for a
+   * vulnerability that affects > 1 resource type.
+   * 
+ * + * string resource_type_affected = 1; + * + * @return The bytes for resourceTypeAffected. + */ + com.google.protobuf.ByteString getResourceTypeAffectedBytes(); + + /** + * + * + *
+   * The ID of the bulletin corresponding to the vulnerability.
+   * 
+ * + * string bulletin_id = 2; + * + * @return The bulletinId. + */ + java.lang.String getBulletinId(); + /** + * + * + *
+   * The ID of the bulletin corresponding to the vulnerability.
+   * 
+ * + * string bulletin_id = 2; + * + * @return The bytes for bulletinId. + */ + com.google.protobuf.ByteString getBulletinIdBytes(); + + /** + * + * + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * + * @return A list containing the cveIds. + */ + java.util.List getCveIdsList(); + /** + * + * + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * + * @return The count of cveIds. + */ + int getCveIdsCount(); + /** + * + * + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * + * @param index The index of the element to return. + * @return The cveIds at the given index. + */ + java.lang.String getCveIds(int index); + /** + * + * + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * + * @param index The index of the value to return. + * @return The bytes of the cveIds at the given index. + */ + com.google.protobuf.ByteString getCveIdsBytes(int index); + + /** + * + * + *
+   * The severity of this bulletin as it relates to GKE.
+   * 
+ * + * string severity = 4; + * + * @return The severity. + */ + java.lang.String getSeverity(); + /** + * + * + *
+   * The severity of this bulletin as it relates to GKE.
+   * 
+ * + * string severity = 4; + * + * @return The bytes for severity. + */ + com.google.protobuf.ByteString getSeverityBytes(); + + /** + * + * + *
+   * The URI link to the bulletin on the website for more information.
+   * 
+ * + * string bulletin_uri = 5; + * + * @return The bulletinUri. + */ + java.lang.String getBulletinUri(); + /** + * + * + *
+   * The URI link to the bulletin on the website for more information.
+   * 
+ * + * string bulletin_uri = 5; + * + * @return The bytes for bulletinUri. + */ + com.google.protobuf.ByteString getBulletinUriBytes(); + + /** + * + * + *
+   * A brief description of the bulletin. See the bulletin pointed to by the
+   * bulletin_uri field for an expanded description.
+   * 
+ * + * string brief_description = 6; + * + * @return The briefDescription. + */ + java.lang.String getBriefDescription(); + /** + * + * + *
+   * A brief description of the bulletin. See the bulletin pointed to by the
+   * bulletin_uri field for an expanded description.
+   * 
+ * + * string brief_description = 6; + * + * @return The bytes for briefDescription. + */ + com.google.protobuf.ByteString getBriefDescriptionBytes(); + + /** + * + * + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * + * @return A list containing the affectedSupportedMinors. + */ + java.util.List getAffectedSupportedMinorsList(); + /** + * + * + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * + * @return The count of affectedSupportedMinors. + */ + int getAffectedSupportedMinorsCount(); + /** + * + * + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param index The index of the element to return. + * @return The affectedSupportedMinors at the given index. + */ + java.lang.String getAffectedSupportedMinors(int index); + /** + * + * + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param index The index of the value to return. + * @return The bytes of the affectedSupportedMinors at the given index. + */ + com.google.protobuf.ByteString getAffectedSupportedMinorsBytes(int index); + + /** + * + * + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * + * @return A list containing the patchedVersions. + */ + java.util.List getPatchedVersionsList(); + /** + * + * + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * + * @return The count of patchedVersions. + */ + int getPatchedVersionsCount(); + /** + * + * + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * + * @param index The index of the element to return. + * @return The patchedVersions at the given index. + */ + java.lang.String getPatchedVersions(int index); + /** + * + * + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * + * @param index The index of the value to return. + * @return The bytes of the patchedVersions at the given index. + */ + com.google.protobuf.ByteString getPatchedVersionsBytes(int index); + + /** + * + * + *
+   * This represents a version selected from the patched_versions field that
+   * the cluster receiving this notification should most likely want to upgrade
+   * to based on its current version. Note that if this notification is being
+   * received by a given cluster, it means that this version is currently
+   * available as an upgrade target in that cluster's location.
+   * 
+ * + * string suggested_upgrade_target = 9; + * + * @return The suggestedUpgradeTarget. + */ + java.lang.String getSuggestedUpgradeTarget(); + /** + * + * + *
+   * This represents a version selected from the patched_versions field that
+   * the cluster receiving this notification should most likely want to upgrade
+   * to based on its current version. Note that if this notification is being
+   * received by a given cluster, it means that this version is currently
+   * available as an upgrade target in that cluster's location.
+   * 
+ * + * string suggested_upgrade_target = 9; + * + * @return The bytes for suggestedUpgradeTarget. + */ + com.google.protobuf.ByteString getSuggestedUpgradeTargetBytes(); + + /** + * + * + *
+   * If this field is specified, it means there are manual steps that the user
+   * must take to make their clusters safe.
+   * 
+ * + * bool manual_steps_required = 10; + * + * @return The manualStepsRequired. + */ + boolean getManualStepsRequired(); +} diff --git a/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 new file mode 100644 index 000000000000..322d4ef0618f --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServerConfig.java @@ -0,0 +1,5255 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Kubernetes Engine service configuration.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ServerConfig} + */ +public final class ServerConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ServerConfig) + ServerConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ServerConfig.newBuilder() to construct. + private ServerConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ServerConfig() { + defaultClusterVersion_ = ""; + validNodeVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + defaultImageType_ = ""; + validImageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + channels_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ServerConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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.MapField internalGetMapField(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.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReleaseChannelConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ServerConfig_ReleaseChannelConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ServerConfig_ReleaseChannelConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.class, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.Builder.class); + } + + @java.lang.Deprecated + public interface AvailableVersionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Kubernetes version.
+       * 
+ * + * string version = 1; + * + * @return The version. + */ + java.lang.String getVersion(); + /** + * + * + *
+       * Kubernetes version.
+       * 
+ * + * string version = 1; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); + + /** + * + * + *
+       * Reason for availability.
+       * 
+ * + * string reason = 2; + * + * @return The reason. + */ + java.lang.String getReason(); + /** + * + * + *
+       * Reason for availability.
+       * 
+ * + * string reason = 2; + * + * @return The bytes for reason. + */ + com.google.protobuf.ByteString getReasonBytes(); + } + /** + * + * + *
+     * Deprecated.
+     * 
+ * + * Protobuf type {@code + * google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion} + */ + @java.lang.Deprecated + public static final class AvailableVersion extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion) + AvailableVersionOrBuilder { + private static final long serialVersionUID = 0L; + // Use AvailableVersion.newBuilder() to construct. + private AvailableVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AvailableVersion() { + version_ = ""; + reason_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AvailableVersion(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ServerConfig_ReleaseChannelConfig_AvailableVersion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ServerConfig_ReleaseChannelConfig_AvailableVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + .class, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + .Builder.class); + } + + public static final int VERSION_FIELD_NUMBER = 1; + private volatile java.lang.Object version_; + /** + * + * + *
+       * Kubernetes version.
+       * 
+ * + * string version = 1; + * + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + * + * + *
+       * Kubernetes version.
+       * 
+ * + * string version = 1; + * + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REASON_FIELD_NUMBER = 2; + private volatile java.lang.Object reason_; + /** + * + * + *
+       * Reason for availability.
+       * 
+ * + * string reason = 2; + * + * @return The reason. + */ + @java.lang.Override + public java.lang.String getReason() { + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reason_ = s; + return s; + } + } + /** + * + * + *
+       * Reason for availability.
+       * 
+ * + * string reason = 2; + * + * @return The bytes for reason. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + version_ = ""; + + reason_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ServerConfig_ReleaseChannelConfig_AvailableVersion_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + getDefaultInstanceForType() { + return com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + build() { + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + buildPartial() { + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion result = + new com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion( + this); + result.version_ = version_; + result.reason_ = reason_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion) { + return mergeFrom( + (com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion other) { + if (other + == com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + .getDefaultInstance()) return this; + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (!other.getReason().isEmpty()) { + reason_ = other.reason_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + reason_ = input.readStringRequireUtf8(); + + 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 java.lang.Object version_ = ""; + /** + * + * + *
+         * Kubernetes version.
+         * 
+ * + * string version = 1; + * + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * Kubernetes version.
+         * 
+ * + * string version = 1; + * + * @return The bytes for version. + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * Kubernetes version.
+         * 
+ * + * string version = 1; + * + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * Kubernetes version.
+         * 
+ * + * string version = 1; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + * + * + *
+         * Kubernetes version.
+         * 
+ * + * string version = 1; + * + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + private java.lang.Object reason_ = ""; + /** + * + * + *
+         * Reason for availability.
+         * 
+ * + * string reason = 2; + * + * @return The reason. + */ + public java.lang.String getReason() { + java.lang.Object ref = reason_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reason_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * Reason for availability.
+         * 
+ * + * string reason = 2; + * + * @return The bytes for reason. + */ + public com.google.protobuf.ByteString getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * Reason for availability.
+         * 
+ * + * string reason = 2; + * + * @param value The reason to set. + * @return This builder for chaining. + */ + public Builder setReason(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + reason_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * Reason for availability.
+         * 
+ * + * string reason = 2; + * + * @return This builder for chaining. + */ + public Builder clearReason() { + + reason_ = getDefaultInstance().getReason(); + onChanged(); + return this; + } + /** + * + * + *
+         * Reason for availability.
+         * 
+ * + * string reason = 2; + * + * @param value The bytes for reason to set. + * @return This builder for chaining. + */ + public Builder setReasonBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + reason_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion) + private static final com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig + .AvailableVersion + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion(); + } + + public static com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AvailableVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int CHANNEL_FIELD_NUMBER = 1; + private int channel_; + /** + * + * + *
+     * The release channel this configuration applies to.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; + * + * @return The enum numeric value on the wire for channel. + */ + @java.lang.Override + public int getChannelValue() { + return channel_; + } + /** + * + * + *
+     * The release channel this configuration applies to.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; + * + * @return The channel. + */ + @java.lang.Override + public com.google.container.v1beta1.ReleaseChannel.Channel getChannel() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.ReleaseChannel.Channel result = + com.google.container.v1beta1.ReleaseChannel.Channel.valueOf(channel_); + return result == null + ? com.google.container.v1beta1.ReleaseChannel.Channel.UNRECOGNIZED + : result; + } + + public static final int DEFAULT_VERSION_FIELD_NUMBER = 2; + private volatile java.lang.Object defaultVersion_; + /** + * + * + *
+     * The default version for newly created clusters on the channel.
+     * 
+ * + * string default_version = 2; + * + * @return The defaultVersion. + */ + @java.lang.Override + public java.lang.String getDefaultVersion() { + java.lang.Object ref = defaultVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultVersion_ = s; + return s; + } + } + /** + * + * + *
+     * The default version for newly created clusters on the channel.
+     * 
+ * + * string default_version = 2; + * + * @return The bytes for defaultVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultVersionBytes() { + java.lang.Object ref = defaultVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AVAILABLE_VERSIONS_FIELD_NUMBER = 3; + private java.util.List< + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion> + availableVersions_; + /** + * + * + *
+     * Deprecated.
+     * This field has been deprecated and replaced with the valid_versions
+     * field.
+     * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.List< + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion> + getAvailableVersionsList() { + return availableVersions_; + } + /** + * + * + *
+     * Deprecated.
+     * This field has been deprecated and replaced with the valid_versions
+     * field.
+     * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.List< + ? extends + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig + .AvailableVersionOrBuilder> + getAvailableVersionsOrBuilderList() { + return availableVersions_; + } + /** + * + * + *
+     * Deprecated.
+     * This field has been deprecated and replaced with the valid_versions
+     * field.
+     * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public int getAvailableVersionsCount() { + return availableVersions_.size(); + } + /** + * + * + *
+     * Deprecated.
+     * This field has been deprecated and replaced with the valid_versions
+     * field.
+     * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + getAvailableVersions(int index) { + return availableVersions_.get(index); + } + /** + * + * + *
+     * Deprecated.
+     * This field has been deprecated and replaced with the valid_versions
+     * field.
+     * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersionOrBuilder + getAvailableVersionsOrBuilder(int index) { + return availableVersions_.get(index); + } + + public static final int VALID_VERSIONS_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList validVersions_; + /** + * + * + *
+     * List of valid versions for the channel.
+     * 
+ * + * repeated string valid_versions = 4; + * + * @return A list containing the validVersions. + */ + public com.google.protobuf.ProtocolStringList getValidVersionsList() { + return validVersions_; + } + /** + * + * + *
+     * List of valid versions for the channel.
+     * 
+ * + * repeated string valid_versions = 4; + * + * @return The count of validVersions. + */ + public int getValidVersionsCount() { + return validVersions_.size(); + } + /** + * + * + *
+     * List of valid versions for the channel.
+     * 
+ * + * repeated string valid_versions = 4; + * + * @param index The index of the element to return. + * @return The validVersions at the given index. + */ + public java.lang.String getValidVersions(int index) { + return validVersions_.get(index); + } + /** + * + * + *
+     * List of valid versions for the channel.
+     * 
+ * + * repeated string valid_versions = 4; + * + * @param index The index of the value to return. + * @return The bytes of the validVersions at the given index. + */ + public com.google.protobuf.ByteString getValidVersionsBytes(int index) { + return validVersions_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (channel_ != com.google.container.v1beta1.ReleaseChannel.Channel.UNSPECIFIED.getNumber()) { + output.writeEnum(1, channel_); + } + if (!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(); + channel_ = 0; + + defaultVersion_ = ""; + + if (availableVersionsBuilder_ == null) { + availableVersions_ = java.util.Collections.emptyList(); + } else { + availableVersions_ = null; + availableVersionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + validVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ServerConfig_ReleaseChannelConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig + getDefaultInstanceForType() { + return com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig build() { + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig buildPartial() { + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig result = + new com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig(this); + int from_bitField0_ = bitField0_; + result.channel_ = channel_; + result.defaultVersion_ = defaultVersion_; + if (availableVersionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + availableVersions_ = java.util.Collections.unmodifiableList(availableVersions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.availableVersions_ = availableVersions_; + } else { + result.availableVersions_ = availableVersionsBuilder_.build(); + } + if (((bitField0_ & 0x00000002) != 0)) { + validVersions_ = validVersions_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.validVersions_ = validVersions_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig) { + return mergeFrom((com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig other) { + if (other + == com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.getDefaultInstance()) + return this; + if (other.channel_ != 0) { + setChannelValue(other.getChannelValue()); + } + if (!other.getDefaultVersion().isEmpty()) { + defaultVersion_ = other.defaultVersion_; + onChanged(); + } + if (availableVersionsBuilder_ == null) { + if (!other.availableVersions_.isEmpty()) { + if (availableVersions_.isEmpty()) { + availableVersions_ = other.availableVersions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAvailableVersionsIsMutable(); + availableVersions_.addAll(other.availableVersions_); + } + onChanged(); + } + } else { + if (!other.availableVersions_.isEmpty()) { + if (availableVersionsBuilder_.isEmpty()) { + availableVersionsBuilder_.dispose(); + availableVersionsBuilder_ = null; + availableVersions_ = other.availableVersions_; + bitField0_ = (bitField0_ & ~0x00000001); + availableVersionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAvailableVersionsFieldBuilder() + : null; + } else { + availableVersionsBuilder_.addAllMessages(other.availableVersions_); + } + } + } + if (!other.validVersions_.isEmpty()) { + if (validVersions_.isEmpty()) { + validVersions_ = other.validVersions_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureValidVersionsIsMutable(); + validVersions_.addAll(other.validVersions_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 8 + case 18: + { + defaultVersion_ = input.readStringRequireUtf8(); + + 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; + onChanged(); + return this; + } + /** + * + * + *
+       * The release channel this configuration applies to.
+       * 
+ * + * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; + * + * @return The channel. + */ + @java.lang.Override + public com.google.container.v1beta1.ReleaseChannel.Channel getChannel() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.ReleaseChannel.Channel result = + com.google.container.v1beta1.ReleaseChannel.Channel.valueOf(channel_); + return result == null + ? com.google.container.v1beta1.ReleaseChannel.Channel.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * The release channel this configuration applies to.
+       * 
+ * + * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; + * + * @param value The channel to set. + * @return This builder for chaining. + */ + public Builder setChannel(com.google.container.v1beta1.ReleaseChannel.Channel value) { + if (value == null) { + throw new NullPointerException(); + } + + channel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * The release channel this configuration applies to.
+       * 
+ * + * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; + * + * @return This builder for chaining. + */ + public Builder clearChannel() { + + channel_ = 0; + onChanged(); + return this; + } + + private java.lang.Object defaultVersion_ = ""; + /** + * + * + *
+       * The default version for newly created clusters on the channel.
+       * 
+ * + * string default_version = 2; + * + * @return The defaultVersion. + */ + public java.lang.String getDefaultVersion() { + java.lang.Object ref = defaultVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The default version for newly created clusters on the channel.
+       * 
+ * + * string default_version = 2; + * + * @return The bytes for defaultVersion. + */ + public com.google.protobuf.ByteString getDefaultVersionBytes() { + java.lang.Object ref = defaultVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The default version for newly created clusters on the channel.
+       * 
+ * + * string default_version = 2; + * + * @param value The defaultVersion to set. + * @return This builder for chaining. + */ + public Builder setDefaultVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + defaultVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The default version for newly created clusters on the channel.
+       * 
+ * + * string default_version = 2; + * + * @return This builder for chaining. + */ + public Builder clearDefaultVersion() { + + defaultVersion_ = getDefaultInstance().getDefaultVersion(); + onChanged(); + return this; + } + /** + * + * + *
+       * The default version for newly created clusters on the channel.
+       * 
+ * + * string default_version = 2; + * + * @param value The bytes for defaultVersion to set. + * @return This builder for chaining. + */ + public Builder setDefaultVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + defaultVersion_ = value; + onChanged(); + return this; + } + + private java.util.List< + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion> + availableVersions_ = java.util.Collections.emptyList(); + + private void ensureAvailableVersionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + availableVersions_ = + new java.util.ArrayList< + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion>( + availableVersions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + .Builder, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig + .AvailableVersionOrBuilder> + availableVersionsBuilder_; + + /** + * + * + *
+       * Deprecated.
+       * This field has been deprecated and replaced with the valid_versions
+       * field.
+       * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public java.util.List< + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion> + getAvailableVersionsList() { + if (availableVersionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(availableVersions_); + } else { + return availableVersionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Deprecated.
+       * This field has been deprecated and replaced with the valid_versions
+       * field.
+       * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public int getAvailableVersionsCount() { + if (availableVersionsBuilder_ == null) { + return availableVersions_.size(); + } else { + return availableVersionsBuilder_.getCount(); + } + } + /** + * + * + *
+       * Deprecated.
+       * This field has been deprecated and replaced with the valid_versions
+       * field.
+       * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + getAvailableVersions(int index) { + if (availableVersionsBuilder_ == null) { + return availableVersions_.get(index); + } else { + return availableVersionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Deprecated.
+       * This field has been deprecated and replaced with the valid_versions
+       * field.
+       * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setAvailableVersions( + int index, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion value) { + if (availableVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAvailableVersionsIsMutable(); + availableVersions_.set(index, value); + onChanged(); + } else { + availableVersionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Deprecated.
+       * This field has been deprecated and replaced with the valid_versions
+       * field.
+       * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setAvailableVersions( + int index, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion.Builder + builderForValue) { + if (availableVersionsBuilder_ == null) { + ensureAvailableVersionsIsMutable(); + availableVersions_.set(index, builderForValue.build()); + onChanged(); + } else { + availableVersionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Deprecated.
+       * This field has been deprecated and replaced with the valid_versions
+       * field.
+       * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder addAvailableVersions( + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion value) { + if (availableVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAvailableVersionsIsMutable(); + availableVersions_.add(value); + onChanged(); + } else { + availableVersionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Deprecated.
+       * This field has been deprecated and replaced with the valid_versions
+       * field.
+       * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder addAvailableVersions( + int index, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion value) { + if (availableVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAvailableVersionsIsMutable(); + availableVersions_.add(index, value); + onChanged(); + } else { + availableVersionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Deprecated.
+       * This field has been deprecated and replaced with the valid_versions
+       * field.
+       * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder addAvailableVersions( + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion.Builder + builderForValue) { + if (availableVersionsBuilder_ == null) { + ensureAvailableVersionsIsMutable(); + availableVersions_.add(builderForValue.build()); + onChanged(); + } else { + availableVersionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Deprecated.
+       * This field has been deprecated and replaced with the valid_versions
+       * field.
+       * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder addAvailableVersions( + int index, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion.Builder + builderForValue) { + if (availableVersionsBuilder_ == null) { + ensureAvailableVersionsIsMutable(); + availableVersions_.add(index, builderForValue.build()); + onChanged(); + } else { + availableVersionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Deprecated.
+       * This field has been deprecated and replaced with the valid_versions
+       * field.
+       * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder addAllAvailableVersions( + java.lang.Iterable< + ? extends + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig + .AvailableVersion> + values) { + if (availableVersionsBuilder_ == null) { + ensureAvailableVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, availableVersions_); + onChanged(); + } else { + availableVersionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Deprecated.
+       * This field has been deprecated and replaced with the valid_versions
+       * field.
+       * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder clearAvailableVersions() { + if (availableVersionsBuilder_ == null) { + availableVersions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + availableVersionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Deprecated.
+       * This field has been deprecated and replaced with the valid_versions
+       * field.
+       * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder removeAvailableVersions(int index) { + if (availableVersionsBuilder_ == null) { + ensureAvailableVersionsIsMutable(); + availableVersions_.remove(index); + onChanged(); + } else { + availableVersionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Deprecated.
+       * This field has been deprecated and replaced with the valid_versions
+       * field.
+       * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion.Builder + getAvailableVersionsBuilder(int index) { + return getAvailableVersionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Deprecated.
+       * This field has been deprecated and replaced with the valid_versions
+       * field.
+       * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig + .AvailableVersionOrBuilder + getAvailableVersionsOrBuilder(int index) { + if (availableVersionsBuilder_ == null) { + return availableVersions_.get(index); + } else { + return availableVersionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Deprecated.
+       * This field has been deprecated and replaced with the valid_versions
+       * field.
+       * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public java.util.List< + ? extends + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig + .AvailableVersionOrBuilder> + getAvailableVersionsOrBuilderList() { + if (availableVersionsBuilder_ != null) { + return availableVersionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(availableVersions_); + } + } + /** + * + * + *
+       * Deprecated.
+       * This field has been deprecated and replaced with the valid_versions
+       * field.
+       * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion.Builder + addAvailableVersionsBuilder() { + return getAvailableVersionsFieldBuilder() + .addBuilder( + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + .getDefaultInstance()); + } + /** + * + * + *
+       * Deprecated.
+       * This field has been deprecated and replaced with the valid_versions
+       * field.
+       * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion.Builder + addAvailableVersionsBuilder(int index) { + return getAvailableVersionsFieldBuilder() + .addBuilder( + index, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + .getDefaultInstance()); + } + /** + * + * + *
+       * Deprecated.
+       * This field has been deprecated and replaced with the valid_versions
+       * field.
+       * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public java.util.List< + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + .Builder> + getAvailableVersionsBuilderList() { + return getAvailableVersionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + .Builder, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig + .AvailableVersionOrBuilder> + getAvailableVersionsFieldBuilder() { + if (availableVersionsBuilder_ == null) { + availableVersionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + .Builder, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig + .AvailableVersionOrBuilder>( + availableVersions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + availableVersions_ = null; + } + return availableVersionsBuilder_; + } + + private com.google.protobuf.LazyStringList validVersions_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureValidVersionsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + validVersions_ = new com.google.protobuf.LazyStringArrayList(validVersions_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * + * @return A list containing the validVersions. + */ + public com.google.protobuf.ProtocolStringList getValidVersionsList() { + return validVersions_.getUnmodifiableView(); + } + /** + * + * + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * + * @return The count of validVersions. + */ + public int getValidVersionsCount() { + return validVersions_.size(); + } + /** + * + * + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * + * @param index The index of the element to return. + * @return The validVersions at the given index. + */ + public java.lang.String getValidVersions(int index) { + return validVersions_.get(index); + } + /** + * + * + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * + * @param index The index of the value to return. + * @return The bytes of the validVersions at the given index. + */ + public com.google.protobuf.ByteString getValidVersionsBytes(int index) { + return validVersions_.getByteString(index); + } + /** + * + * + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * + * @param index The index to set the value at. + * @param value The validVersions to set. + * @return This builder for chaining. + */ + public Builder setValidVersions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidVersionsIsMutable(); + validVersions_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * + * @param value The validVersions to add. + * @return This builder for chaining. + */ + public Builder addValidVersions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidVersionsIsMutable(); + validVersions_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * + * @param values The validVersions to add. + * @return This builder for chaining. + */ + public Builder addAllValidVersions(java.lang.Iterable values) { + ensureValidVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, validVersions_); + onChanged(); + return this; + } + /** + * + * + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * + * @return This builder for chaining. + */ + public Builder clearValidVersions() { + validVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * + * @param value The bytes of the validVersions to add. + * @return This builder for chaining. + */ + public Builder addValidVersionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValidVersionsIsMutable(); + validVersions_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ServerConfig.ReleaseChannelConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ServerConfig.ReleaseChannelConfig) + private static final com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig(); + } + + public static com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReleaseChannelConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int DEFAULT_CLUSTER_VERSION_FIELD_NUMBER = 1; + private volatile java.lang.Object defaultClusterVersion_; + /** + * + * + *
+   * Version of Kubernetes the service deploys by default.
+   * 
+ * + * string default_cluster_version = 1; + * + * @return The defaultClusterVersion. + */ + @java.lang.Override + public java.lang.String getDefaultClusterVersion() { + java.lang.Object ref = defaultClusterVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultClusterVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Version of Kubernetes the service deploys by default.
+   * 
+ * + * string default_cluster_version = 1; + * + * @return The bytes for defaultClusterVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultClusterVersionBytes() { + java.lang.Object ref = defaultClusterVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultClusterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALID_NODE_VERSIONS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList validNodeVersions_; + /** + * + * + *
+   * List of valid node upgrade target versions, in descending order.
+   * 
+ * + * repeated string valid_node_versions = 3; + * + * @return A list containing the validNodeVersions. + */ + public com.google.protobuf.ProtocolStringList getValidNodeVersionsList() { + return validNodeVersions_; + } + /** + * + * + *
+   * List of valid node upgrade target versions, in descending order.
+   * 
+ * + * repeated string valid_node_versions = 3; + * + * @return The count of validNodeVersions. + */ + public int getValidNodeVersionsCount() { + return validNodeVersions_.size(); + } + /** + * + * + *
+   * List of valid node upgrade target versions, in descending order.
+   * 
+ * + * repeated string valid_node_versions = 3; + * + * @param index The index of the element to return. + * @return The validNodeVersions at the given index. + */ + public java.lang.String getValidNodeVersions(int index) { + return validNodeVersions_.get(index); + } + /** + * + * + *
+   * List of valid node upgrade target versions, in descending order.
+   * 
+ * + * repeated string valid_node_versions = 3; + * + * @param index The index of the value to return. + * @return The bytes of the validNodeVersions at the given index. + */ + public com.google.protobuf.ByteString getValidNodeVersionsBytes(int index) { + return validNodeVersions_.getByteString(index); + } + + public static final int DEFAULT_IMAGE_TYPE_FIELD_NUMBER = 4; + private volatile java.lang.Object defaultImageType_; + /** + * + * + *
+   * Default image type.
+   * 
+ * + * string default_image_type = 4; + * + * @return The defaultImageType. + */ + @java.lang.Override + public java.lang.String getDefaultImageType() { + java.lang.Object ref = defaultImageType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultImageType_ = s; + return s; + } + } + /** + * + * + *
+   * Default image type.
+   * 
+ * + * string default_image_type = 4; + * + * @return The bytes for defaultImageType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultImageTypeBytes() { + java.lang.Object ref = defaultImageType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultImageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALID_IMAGE_TYPES_FIELD_NUMBER = 5; + private com.google.protobuf.LazyStringList validImageTypes_; + /** + * + * + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + * + * @return A list containing the validImageTypes. + */ + public com.google.protobuf.ProtocolStringList getValidImageTypesList() { + return validImageTypes_; + } + /** + * + * + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + * + * @return The count of validImageTypes. + */ + public int getValidImageTypesCount() { + return validImageTypes_.size(); + } + /** + * + * + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + * + * @param index The index of the element to return. + * @return The validImageTypes at the given index. + */ + public java.lang.String getValidImageTypes(int index) { + return validImageTypes_.get(index); + } + /** + * + * + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + * + * @param index The index of the value to return. + * @return The bytes of the validImageTypes at the given index. + */ + public com.google.protobuf.ByteString getValidImageTypesBytes(int index) { + return validImageTypes_.getByteString(index); + } + + public static final int VALID_MASTER_VERSIONS_FIELD_NUMBER = 6; + private com.google.protobuf.LazyStringList validMasterVersions_; + /** + * + * + *
+   * List of valid master versions, in descending order.
+   * 
+ * + * repeated string valid_master_versions = 6; + * + * @return A list containing the validMasterVersions. + */ + public com.google.protobuf.ProtocolStringList getValidMasterVersionsList() { + return validMasterVersions_; + } + /** + * + * + *
+   * List of valid master versions, in descending order.
+   * 
+ * + * repeated string valid_master_versions = 6; + * + * @return The count of validMasterVersions. + */ + public int getValidMasterVersionsCount() { + return validMasterVersions_.size(); + } + /** + * + * + *
+   * List of valid master versions, in descending order.
+   * 
+ * + * repeated string valid_master_versions = 6; + * + * @param index The index of the element to return. + * @return The validMasterVersions at the given index. + */ + public java.lang.String getValidMasterVersions(int index) { + return validMasterVersions_.get(index); + } + /** + * + * + *
+   * List of valid master versions, in descending order.
+   * 
+ * + * repeated string valid_master_versions = 6; + * + * @param index The index of the value to return. + * @return The bytes of the validMasterVersions at the given index. + */ + public com.google.protobuf.ByteString getValidMasterVersionsBytes(int index) { + return validMasterVersions_.getByteString(index); + } + + public static final int CHANNELS_FIELD_NUMBER = 9; + private java.util.List channels_; + /** + * + * + *
+   * List of release channel configurations.
+   * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + @java.lang.Override + public java.util.List + getChannelsList() { + return channels_; + } + /** + * + * + *
+   * List of release channel configurations.
+   * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + @java.lang.Override + public java.util.List< + ? extends com.google.container.v1beta1.ServerConfig.ReleaseChannelConfigOrBuilder> + getChannelsOrBuilderList() { + return channels_; + } + /** + * + * + *
+   * List of release channel configurations.
+   * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + @java.lang.Override + public int getChannelsCount() { + return channels_.size(); + } + /** + * + * + *
+   * List of release channel configurations.
+   * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + @java.lang.Override + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig getChannels(int index) { + return channels_.get(index); + } + /** + * + * + *
+   * List of release channel configurations.
+   * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + @java.lang.Override + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfigOrBuilder + getChannelsOrBuilder(int index) { + return channels_.get(index); + } + + 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()); + } + + 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 com.google.container.v1beta1.WindowsVersions getWindowsVersionMapsOrDefault( + java.lang.String key, 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.MapField internalGetMapField(int number) { + switch (number) { + case 10: + return internalGetWindowsVersionMaps(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(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(); + defaultClusterVersion_ = ""; + + validNodeVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + defaultImageType_ = ""; + + validImageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + if (channelsBuilder_ == null) { + channels_ = java.util.Collections.emptyList(); + } else { + channels_ = null; + channelsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + 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); + int from_bitField0_ = bitField0_; + result.defaultClusterVersion_ = defaultClusterVersion_; + if (((bitField0_ & 0x00000001) != 0)) { + validNodeVersions_ = validNodeVersions_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.validNodeVersions_ = validNodeVersions_; + result.defaultImageType_ = defaultImageType_; + if (((bitField0_ & 0x00000002) != 0)) { + validImageTypes_ = validImageTypes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.validImageTypes_ = validImageTypes_; + if (((bitField0_ & 0x00000004) != 0)) { + validMasterVersions_ = validMasterVersions_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.validMasterVersions_ = validMasterVersions_; + if (channelsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + channels_ = java.util.Collections.unmodifiableList(channels_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.channels_ = channels_; + } else { + result.channels_ = channelsBuilder_.build(); + } + result.windowsVersionMaps_ = internalGetWindowsVersionMaps(); + result.windowsVersionMaps_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ServerConfig) { + return mergeFrom((com.google.container.v1beta1.ServerConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ServerConfig other) { + if (other == com.google.container.v1beta1.ServerConfig.getDefaultInstance()) return this; + if (!other.getDefaultClusterVersion().isEmpty()) { + defaultClusterVersion_ = other.defaultClusterVersion_; + onChanged(); + } + if (!other.validNodeVersions_.isEmpty()) { + if (validNodeVersions_.isEmpty()) { + validNodeVersions_ = other.validNodeVersions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValidNodeVersionsIsMutable(); + validNodeVersions_.addAll(other.validNodeVersions_); + } + onChanged(); + } + if (!other.getDefaultImageType().isEmpty()) { + defaultImageType_ = other.defaultImageType_; + onChanged(); + } + if (!other.validImageTypes_.isEmpty()) { + if (validImageTypes_.isEmpty()) { + validImageTypes_ = other.validImageTypes_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureValidImageTypesIsMutable(); + validImageTypes_.addAll(other.validImageTypes_); + } + onChanged(); + } + if (!other.validMasterVersions_.isEmpty()) { + if (validMasterVersions_.isEmpty()) { + validMasterVersions_ = other.validMasterVersions_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureValidMasterVersionsIsMutable(); + validMasterVersions_.addAll(other.validMasterVersions_); + } + onChanged(); + } + if (channelsBuilder_ == null) { + if (!other.channels_.isEmpty()) { + if (channels_.isEmpty()) { + channels_ = other.channels_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureChannelsIsMutable(); + channels_.addAll(other.channels_); + } + onChanged(); + } + } else { + if (!other.channels_.isEmpty()) { + if (channelsBuilder_.isEmpty()) { + channelsBuilder_.dispose(); + channelsBuilder_ = null; + channels_ = other.channels_; + bitField0_ = (bitField0_ & ~0x00000008); + channelsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getChannelsFieldBuilder() + : null; + } else { + channelsBuilder_.addAllMessages(other.channels_); + } + } + } + internalGetMutableWindowsVersionMaps().mergeFrom(other.internalGetWindowsVersionMaps()); + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureValidNodeVersionsIsMutable(); + validNodeVersions_.add(s); + break; + } // case 26 + case 34: + { + defaultImageType_ = input.readStringRequireUtf8(); + + 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() + .getMutableMap() + .put(windowsVersionMaps__.getKey(), windowsVersionMaps__.getValue()); + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Version of Kubernetes the service deploys by default.
+     * 
+ * + * string default_cluster_version = 1; + * + * @return This builder for chaining. + */ + public Builder clearDefaultClusterVersion() { + + defaultClusterVersion_ = getDefaultInstance().getDefaultClusterVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * Version of Kubernetes the service deploys by default.
+     * 
+ * + * string default_cluster_version = 1; + * + * @param value The bytes for defaultClusterVersion to set. + * @return This builder for chaining. + */ + public Builder setDefaultClusterVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + defaultClusterVersion_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList validNodeVersions_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureValidNodeVersionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + validNodeVersions_ = new com.google.protobuf.LazyStringArrayList(validNodeVersions_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * List of valid node upgrade target versions, in descending order.
+     * 
+ * + * repeated string valid_node_versions = 3; + * + * @return A list containing the validNodeVersions. + */ + public com.google.protobuf.ProtocolStringList getValidNodeVersionsList() { + return validNodeVersions_.getUnmodifiableView(); + } + /** + * + * + *
+     * List of valid node upgrade target versions, in descending order.
+     * 
+ * + * repeated string valid_node_versions = 3; + * + * @return The count of validNodeVersions. + */ + public int getValidNodeVersionsCount() { + return validNodeVersions_.size(); + } + /** + * + * + *
+     * List of valid node upgrade target versions, in descending order.
+     * 
+ * + * repeated string valid_node_versions = 3; + * + * @param index The index of the element to return. + * @return The validNodeVersions at the given index. + */ + public java.lang.String getValidNodeVersions(int index) { + return validNodeVersions_.get(index); + } + /** + * + * + *
+     * List of valid node upgrade target versions, in descending order.
+     * 
+ * + * repeated string valid_node_versions = 3; + * + * @param index The index of the value to return. + * @return The bytes of the validNodeVersions at the given index. + */ + public com.google.protobuf.ByteString getValidNodeVersionsBytes(int index) { + return validNodeVersions_.getByteString(index); + } + /** + * + * + *
+     * List of valid node upgrade target versions, in descending order.
+     * 
+ * + * repeated string valid_node_versions = 3; + * + * @param index The index to set the value at. + * @param value The validNodeVersions to set. + * @return This builder for chaining. + */ + public Builder setValidNodeVersions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidNodeVersionsIsMutable(); + validNodeVersions_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of valid node upgrade target versions, in descending order.
+     * 
+ * + * repeated string valid_node_versions = 3; + * + * @param value The validNodeVersions to add. + * @return This builder for chaining. + */ + public Builder addValidNodeVersions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidNodeVersionsIsMutable(); + validNodeVersions_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of valid node upgrade target versions, in descending order.
+     * 
+ * + * repeated string valid_node_versions = 3; + * + * @param values The validNodeVersions to add. + * @return This builder for chaining. + */ + public Builder addAllValidNodeVersions(java.lang.Iterable values) { + ensureValidNodeVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, validNodeVersions_); + onChanged(); + return this; + } + /** + * + * + *
+     * List of valid node upgrade target versions, in descending order.
+     * 
+ * + * repeated string valid_node_versions = 3; + * + * @return This builder for chaining. + */ + public Builder clearValidNodeVersions() { + validNodeVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * List of valid node upgrade target versions, in descending order.
+     * 
+ * + * repeated string valid_node_versions = 3; + * + * @param value The bytes of the validNodeVersions to add. + * @return This builder for chaining. + */ + public Builder addValidNodeVersionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValidNodeVersionsIsMutable(); + validNodeVersions_.add(value); + onChanged(); + return this; + } + + private java.lang.Object defaultImageType_ = ""; + /** + * + * + *
+     * Default image type.
+     * 
+ * + * string default_image_type = 4; + * + * @return The defaultImageType. + */ + public java.lang.String getDefaultImageType() { + java.lang.Object ref = defaultImageType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultImageType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Default image type.
+     * 
+ * + * string default_image_type = 4; + * + * @return The bytes for defaultImageType. + */ + public com.google.protobuf.ByteString getDefaultImageTypeBytes() { + java.lang.Object ref = defaultImageType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultImageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Default image type.
+     * 
+ * + * string default_image_type = 4; + * + * @param value The defaultImageType to set. + * @return This builder for chaining. + */ + public Builder setDefaultImageType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + defaultImageType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Default image type.
+     * 
+ * + * string default_image_type = 4; + * + * @return This builder for chaining. + */ + public Builder clearDefaultImageType() { + + defaultImageType_ = getDefaultInstance().getDefaultImageType(); + onChanged(); + return this; + } + /** + * + * + *
+     * Default image type.
+     * 
+ * + * string default_image_type = 4; + * + * @param value The bytes for defaultImageType to set. + * @return This builder for chaining. + */ + public Builder setDefaultImageTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + defaultImageType_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList validImageTypes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureValidImageTypesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + validImageTypes_ = new com.google.protobuf.LazyStringArrayList(validImageTypes_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + * + * @return A list containing the validImageTypes. + */ + public com.google.protobuf.ProtocolStringList getValidImageTypesList() { + return validImageTypes_.getUnmodifiableView(); + } + /** + * + * + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + * + * @return The count of validImageTypes. + */ + public int getValidImageTypesCount() { + return validImageTypes_.size(); + } + /** + * + * + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + * + * @param index The index of the element to return. + * @return The validImageTypes at the given index. + */ + public java.lang.String getValidImageTypes(int index) { + return validImageTypes_.get(index); + } + /** + * + * + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + * + * @param index The index of the value to return. + * @return The bytes of the validImageTypes at the given index. + */ + public com.google.protobuf.ByteString getValidImageTypesBytes(int index) { + return validImageTypes_.getByteString(index); + } + /** + * + * + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + * + * @param index The index to set the value at. + * @param value The validImageTypes to set. + * @return This builder for chaining. + */ + public Builder setValidImageTypes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidImageTypesIsMutable(); + validImageTypes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + * + * @param value The validImageTypes to add. + * @return This builder for chaining. + */ + public Builder addValidImageTypes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidImageTypesIsMutable(); + validImageTypes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + * + * @param values The validImageTypes to add. + * @return This builder for chaining. + */ + public Builder addAllValidImageTypes(java.lang.Iterable values) { + ensureValidImageTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, validImageTypes_); + onChanged(); + return this; + } + /** + * + * + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + * + * @return This builder for chaining. + */ + public Builder clearValidImageTypes() { + validImageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + * + * @param value The bytes of the validImageTypes to add. + * @return This builder for chaining. + */ + public Builder addValidImageTypesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValidImageTypesIsMutable(); + validImageTypes_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList validMasterVersions_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureValidMasterVersionsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + validMasterVersions_ = new com.google.protobuf.LazyStringArrayList(validMasterVersions_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+     * List of valid master versions, in descending order.
+     * 
+ * + * repeated string valid_master_versions = 6; + * + * @return A list containing the validMasterVersions. + */ + public com.google.protobuf.ProtocolStringList getValidMasterVersionsList() { + return validMasterVersions_.getUnmodifiableView(); + } + /** + * + * + *
+     * List of valid master versions, in descending order.
+     * 
+ * + * repeated string valid_master_versions = 6; + * + * @return The count of validMasterVersions. + */ + public int getValidMasterVersionsCount() { + return validMasterVersions_.size(); + } + /** + * + * + *
+     * List of valid master versions, in descending order.
+     * 
+ * + * repeated string valid_master_versions = 6; + * + * @param index The index of the element to return. + * @return The validMasterVersions at the given index. + */ + public java.lang.String getValidMasterVersions(int index) { + return validMasterVersions_.get(index); + } + /** + * + * + *
+     * List of valid master versions, in descending order.
+     * 
+ * + * repeated string valid_master_versions = 6; + * + * @param index The index of the value to return. + * @return The bytes of the validMasterVersions at the given index. + */ + public com.google.protobuf.ByteString getValidMasterVersionsBytes(int index) { + return validMasterVersions_.getByteString(index); + } + /** + * + * + *
+     * List of valid master versions, in descending order.
+     * 
+ * + * repeated string valid_master_versions = 6; + * + * @param index The index to set the value at. + * @param value The validMasterVersions to set. + * @return This builder for chaining. + */ + public Builder setValidMasterVersions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidMasterVersionsIsMutable(); + validMasterVersions_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of valid master versions, in descending order.
+     * 
+ * + * repeated string valid_master_versions = 6; + * + * @param value The validMasterVersions to add. + * @return This builder for chaining. + */ + public Builder addValidMasterVersions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidMasterVersionsIsMutable(); + validMasterVersions_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of valid master versions, in descending order.
+     * 
+ * + * repeated string valid_master_versions = 6; + * + * @param values The validMasterVersions to add. + * @return This builder for chaining. + */ + public Builder addAllValidMasterVersions(java.lang.Iterable values) { + ensureValidMasterVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, validMasterVersions_); + onChanged(); + return this; + } + /** + * + * + *
+     * List of valid master versions, in descending order.
+     * 
+ * + * repeated string valid_master_versions = 6; + * + * @return This builder for chaining. + */ + public Builder clearValidMasterVersions() { + validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * List of valid master versions, in descending order.
+     * 
+ * + * repeated string valid_master_versions = 6; + * + * @param value The bytes of the validMasterVersions to add. + * @return This builder for chaining. + */ + public Builder addValidMasterVersionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValidMasterVersionsIsMutable(); + validMasterVersions_.add(value); + onChanged(); + return this; + } + + private java.util.List + channels_ = java.util.Collections.emptyList(); + + private void ensureChannelsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + channels_ = + new java.util.ArrayList( + channels_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.Builder, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfigOrBuilder> + channelsBuilder_; + + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + * + */ + public java.util.List + getChannelsList() { + if (channelsBuilder_ == null) { + return java.util.Collections.unmodifiableList(channels_); + } else { + return channelsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + * + */ + public int getChannelsCount() { + if (channelsBuilder_ == null) { + return channels_.size(); + } else { + return channelsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + * + */ + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig getChannels(int index) { + if (channelsBuilder_ == null) { + return channels_.get(index); + } else { + return channelsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + * + */ + public Builder setChannels( + int index, com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig value) { + if (channelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChannelsIsMutable(); + channels_.set(index, value); + onChanged(); + } else { + channelsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + * + */ + public Builder setChannels( + int index, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.Builder builderForValue) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.set(index, builderForValue.build()); + onChanged(); + } else { + channelsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + * + */ + public Builder addChannels( + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig value) { + if (channelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChannelsIsMutable(); + channels_.add(value); + onChanged(); + } else { + channelsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + * + */ + public Builder addChannels( + int index, com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig value) { + if (channelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChannelsIsMutable(); + channels_.add(index, value); + onChanged(); + } else { + channelsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + * + */ + public Builder addChannels( + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.Builder builderForValue) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.add(builderForValue.build()); + onChanged(); + } else { + channelsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + * + */ + public Builder addChannels( + int index, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.Builder builderForValue) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.add(index, builderForValue.build()); + onChanged(); + } else { + channelsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + * + */ + public Builder addAllChannels( + java.lang.Iterable + values) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, channels_); + onChanged(); + } else { + channelsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + * + */ + public Builder clearChannels() { + if (channelsBuilder_ == null) { + channels_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + channelsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + * + */ + public Builder removeChannels(int index) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.remove(index); + onChanged(); + } else { + channelsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + * + */ + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.Builder + getChannelsBuilder(int index) { + return getChannelsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + * + */ + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfigOrBuilder + getChannelsOrBuilder(int index) { + if (channelsBuilder_ == null) { + return channels_.get(index); + } else { + return channelsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + * + */ + public java.util.List< + ? extends com.google.container.v1beta1.ServerConfig.ReleaseChannelConfigOrBuilder> + getChannelsOrBuilderList() { + if (channelsBuilder_ != null) { + return channelsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(channels_); + } + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + * + */ + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.Builder + addChannelsBuilder() { + return getChannelsFieldBuilder() + .addBuilder( + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.getDefaultInstance()); + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + * + */ + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.Builder + addChannelsBuilder(int index) { + return getChannelsFieldBuilder() + .addBuilder( + index, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.getDefaultInstance()); + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + * + */ + public java.util.List + getChannelsBuilderList() { + return getChannelsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.Builder, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfigOrBuilder> + getChannelsFieldBuilder() { + if (channelsBuilder_ == null) { + channelsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.Builder, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfigOrBuilder>( + channels_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + channels_ = null; + } + return channelsBuilder_; + } + + 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_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.container.v1beta1.WindowsVersions> + internalGetMutableWindowsVersionMaps() { + onChanged(); + ; + if (windowsVersionMaps_ == null) { + windowsVersionMaps_ = + com.google.protobuf.MapField.newMapField( + WindowsVersionMapsDefaultEntryHolder.defaultEntry); + } + if (!windowsVersionMaps_.isMutable()) { + windowsVersionMaps_ = windowsVersionMaps_.copy(); + } + 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 com.google.container.v1beta1.WindowsVersions getWindowsVersionMapsOrDefault( + java.lang.String key, 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); + } + + public Builder clearWindowsVersionMaps() { + internalGetMutableWindowsVersionMaps().getMutableMap().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().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableWindowsVersionMaps() { + return internalGetMutableWindowsVersionMaps().getMutableMap(); + } + /** + * + * + *
+     * 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().getMutableMap().put(key, value); + 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) { + internalGetMutableWindowsVersionMaps().getMutableMap().putAll(values); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.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 new file mode 100644 index 000000000000..dfc602dce554 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServerConfigOrBuilder.java @@ -0,0 +1,347 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ServerConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ServerConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Version of Kubernetes the service deploys by default.
+   * 
+ * + * string default_cluster_version = 1; + * + * @return The defaultClusterVersion. + */ + java.lang.String getDefaultClusterVersion(); + /** + * + * + *
+   * Version of Kubernetes the service deploys by default.
+   * 
+ * + * string default_cluster_version = 1; + * + * @return The bytes for defaultClusterVersion. + */ + com.google.protobuf.ByteString getDefaultClusterVersionBytes(); + + /** + * + * + *
+   * List of valid node upgrade target versions, in descending order.
+   * 
+ * + * repeated string valid_node_versions = 3; + * + * @return A list containing the validNodeVersions. + */ + java.util.List getValidNodeVersionsList(); + /** + * + * + *
+   * List of valid node upgrade target versions, in descending order.
+   * 
+ * + * repeated string valid_node_versions = 3; + * + * @return The count of validNodeVersions. + */ + int getValidNodeVersionsCount(); + /** + * + * + *
+   * List of valid node upgrade target versions, in descending order.
+   * 
+ * + * repeated string valid_node_versions = 3; + * + * @param index The index of the element to return. + * @return The validNodeVersions at the given index. + */ + java.lang.String getValidNodeVersions(int index); + /** + * + * + *
+   * List of valid node upgrade target versions, in descending order.
+   * 
+ * + * repeated string valid_node_versions = 3; + * + * @param index The index of the value to return. + * @return The bytes of the validNodeVersions at the given index. + */ + com.google.protobuf.ByteString getValidNodeVersionsBytes(int index); + + /** + * + * + *
+   * Default image type.
+   * 
+ * + * string default_image_type = 4; + * + * @return The defaultImageType. + */ + java.lang.String getDefaultImageType(); + /** + * + * + *
+   * Default image type.
+   * 
+ * + * string default_image_type = 4; + * + * @return The bytes for defaultImageType. + */ + com.google.protobuf.ByteString getDefaultImageTypeBytes(); + + /** + * + * + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + * + * @return A list containing the validImageTypes. + */ + java.util.List getValidImageTypesList(); + /** + * + * + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + * + * @return The count of validImageTypes. + */ + int getValidImageTypesCount(); + /** + * + * + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + * + * @param index The index of the element to return. + * @return The validImageTypes at the given index. + */ + java.lang.String getValidImageTypes(int index); + /** + * + * + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + * + * @param index The index of the value to return. + * @return The bytes of the validImageTypes at the given index. + */ + com.google.protobuf.ByteString getValidImageTypesBytes(int index); + + /** + * + * + *
+   * List of valid master versions, in descending order.
+   * 
+ * + * repeated string valid_master_versions = 6; + * + * @return A list containing the validMasterVersions. + */ + java.util.List getValidMasterVersionsList(); + /** + * + * + *
+   * List of valid master versions, in descending order.
+   * 
+ * + * repeated string valid_master_versions = 6; + * + * @return The count of validMasterVersions. + */ + int getValidMasterVersionsCount(); + /** + * + * + *
+   * List of valid master versions, in descending order.
+   * 
+ * + * repeated string valid_master_versions = 6; + * + * @param index The index of the element to return. + * @return The validMasterVersions at the given index. + */ + java.lang.String getValidMasterVersions(int index); + /** + * + * + *
+   * List of valid master versions, in descending order.
+   * 
+ * + * repeated string valid_master_versions = 6; + * + * @param index The index of the value to return. + * @return The bytes of the validMasterVersions at the given index. + */ + com.google.protobuf.ByteString getValidMasterVersionsBytes(int index); + + /** + * + * + *
+   * List of release channel configurations.
+   * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + java.util.List getChannelsList(); + /** + * + * + *
+   * List of release channel configurations.
+   * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig getChannels(int index); + /** + * + * + *
+   * List of release channel configurations.
+   * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + int getChannelsCount(); + /** + * + * + *
+   * List of release channel configurations.
+   * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + java.util.List + getChannelsOrBuilderList(); + /** + * + * + *
+   * List of release channel configurations.
+   * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfigOrBuilder getChannelsOrBuilder( + int index); + + /** + * + * + *
+   * 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 new file mode 100644 index 000000000000..fb710d4fe909 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServiceExternalIPsConfig.java @@ -0,0 +1,528 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * 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(); + 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); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.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(); + + 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 boolean enabled_; + /** + * + * + *
+     * Whether Services with ExternalIPs field are allowed or not.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether Services with ExternalIPs field are allowed or not.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether Services with ExternalIPs field are allowed or not.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..49036833d6d7 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServiceExternalIPsConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +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 new file mode 100644 index 000000000000..fbd52b61434d --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequest.java @@ -0,0 +1,1579 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * SetAddonsRequest sets the addons associated with the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SetAddonsConfigRequest} + */ +public final class SetAddonsConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetAddonsConfigRequest) + SetAddonsConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetAddonsConfigRequest.newBuilder() to construct. + private SetAddonsConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SetAddonsConfigRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SetAddonsConfigRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetAddonsConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetAddonsConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetAddonsConfigRequest.class, + com.google.container.v1beta1.SetAddonsConfigRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=2693 + * @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=2693 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Required. Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2702 + * @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=2702 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * Required. Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2709 + * @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=2709 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDONS_CONFIG_FIELD_NUMBER = 4; + private com.google.container.v1beta1.AddonsConfig addonsConfig_; + /** + * + * + *
+   * Required. The desired configurations for the various addons available to run in the
+   * cluster.
+   * 
+ * + * + * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the addonsConfig field is set. + */ + @java.lang.Override + public boolean hasAddonsConfig() { + return addonsConfig_ != null; + } + /** + * + * + *
+   * Required. The desired configurations for the various addons available to run in the
+   * cluster.
+   * 
+ * + * + * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The addonsConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.AddonsConfig getAddonsConfig() { + return addonsConfig_ == null + ? com.google.container.v1beta1.AddonsConfig.getDefaultInstance() + : addonsConfig_; + } + /** + * + * + *
+   * Required. The desired configurations for the various addons available to run in the
+   * cluster.
+   * 
+ * + * + * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.container.v1beta1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() { + return getAddonsConfig(); + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set addons.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set addons.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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 (addonsConfig_ != null) { + 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 (addonsConfig_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + if (addonsConfigBuilder_ == null) { + addonsConfig_ = null; + } else { + addonsConfig_ = null; + addonsConfigBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetAddonsConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SetAddonsConfigRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.SetAddonsConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SetAddonsConfigRequest build() { + com.google.container.v1beta1.SetAddonsConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SetAddonsConfigRequest buildPartial() { + com.google.container.v1beta1.SetAddonsConfigRequest result = + new com.google.container.v1beta1.SetAddonsConfigRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + if (addonsConfigBuilder_ == null) { + result.addonsConfig_ = addonsConfig_; + } else { + result.addonsConfig_ = addonsConfigBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.SetAddonsConfigRequest) { + return mergeFrom((com.google.container.v1beta1.SetAddonsConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SetAddonsConfigRequest other) { + if (other == com.google.container.v1beta1.SetAddonsConfigRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (other.hasAddonsConfig()) { + mergeAddonsConfig(other.getAddonsConfig()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + input.readMessage(getAddonsConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 50: + { + name_ = input.readStringRequireUtf8(); + + 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 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=2693 + * @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=2693 + * @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=2693 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=2693 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=2693 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2702 + * @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=2702 + * @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=2702 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2702 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2702 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2709 + * @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=2709 + * @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=2709 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2709 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2709 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.AddonsConfig addonsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AddonsConfig, + com.google.container.v1beta1.AddonsConfig.Builder, + com.google.container.v1beta1.AddonsConfigOrBuilder> + addonsConfigBuilder_; + /** + * + * + *
+     * Required. The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * + * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the addonsConfig field is set. + */ + public boolean hasAddonsConfig() { + return addonsConfigBuilder_ != null || addonsConfig_ != null; + } + /** + * + * + *
+     * Required. The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * + * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The addonsConfig. + */ + public com.google.container.v1beta1.AddonsConfig getAddonsConfig() { + if (addonsConfigBuilder_ == null) { + return addonsConfig_ == null + ? com.google.container.v1beta1.AddonsConfig.getDefaultInstance() + : addonsConfig_; + } else { + return addonsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * + * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAddonsConfig(com.google.container.v1beta1.AddonsConfig value) { + if (addonsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + addonsConfig_ = value; + onChanged(); + } else { + addonsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * + * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAddonsConfig( + com.google.container.v1beta1.AddonsConfig.Builder builderForValue) { + if (addonsConfigBuilder_ == null) { + addonsConfig_ = builderForValue.build(); + onChanged(); + } else { + addonsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * + * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAddonsConfig(com.google.container.v1beta1.AddonsConfig value) { + if (addonsConfigBuilder_ == null) { + if (addonsConfig_ != null) { + addonsConfig_ = + com.google.container.v1beta1.AddonsConfig.newBuilder(addonsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + addonsConfig_ = value; + } + onChanged(); + } else { + addonsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * + * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAddonsConfig() { + if (addonsConfigBuilder_ == null) { + addonsConfig_ = null; + onChanged(); + } else { + addonsConfig_ = null; + addonsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * + * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1beta1.AddonsConfig.Builder getAddonsConfigBuilder() { + + onChanged(); + return getAddonsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * + * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1beta1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() { + if (addonsConfigBuilder_ != null) { + return addonsConfigBuilder_.getMessageOrBuilder(); + } else { + return addonsConfig_ == null + ? com.google.container.v1beta1.AddonsConfig.getDefaultInstance() + : addonsConfig_; + } + } + /** + * + * + *
+     * Required. The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * + * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AddonsConfig, + com.google.container.v1beta1.AddonsConfig.Builder, + com.google.container.v1beta1.AddonsConfigOrBuilder> + getAddonsConfigFieldBuilder() { + if (addonsConfigBuilder_ == null) { + addonsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AddonsConfig, + com.google.container.v1beta1.AddonsConfig.Builder, + com.google.container.v1beta1.AddonsConfigOrBuilder>( + getAddonsConfig(), getParentForChildren(), isClean()); + addonsConfig_ = null; + } + return addonsConfigBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set addons.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set addons.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set addons.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set addons.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set addons.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetAddonsConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetAddonsConfigRequest) + private static final com.google.container.v1beta1.SetAddonsConfigRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SetAddonsConfigRequest(); + } + + public static com.google.container.v1beta1.SetAddonsConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetAddonsConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..a71dc450870a --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequestOrBuilder.java @@ -0,0 +1,205 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface SetAddonsConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetAddonsConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=2693 + * @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=2693 + * @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=2702 + * @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=2702 + * @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=2709 + * @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=2709 + * @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 new file mode 100644 index 000000000000..913554715242 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequest.java @@ -0,0 +1,1837 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * SetLabelsRequest sets the Google Cloud Platform labels on a Google Container
+ * Engine cluster, which will in turn set them for Google Compute Engine
+ * resources used by that cluster
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SetLabelsRequest} + */ +public final class SetLabelsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetLabelsRequest) + SetLabelsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetLabelsRequest.newBuilder() to construct. + private SetLabelsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SetLabelsRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + labelFingerprint_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SetLabelsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetLabelsRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetResourceLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetLabelsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetLabelsRequest.class, + com.google.container.v1beta1.SetLabelsRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=4014 + * @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=4014 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Required. Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=4023 + * @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=4023 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * Required. Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=4030 + * @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=4030 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_LABELS_FIELD_NUMBER = 4; + + private static final class ResourceLabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetLabelsRequest_ResourceLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField resourceLabels_; + + private com.google.protobuf.MapField + internalGetResourceLabels() { + if (resourceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + return resourceLabels_; + } + + public int getResourceLabelsCount() { + return internalGetResourceLabels().getMap().size(); + } + /** + * + * + *
+   * Required. The labels to set for that cluster.
+   * 
+ * + * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public boolean containsResourceLabels(java.lang.String key) { + if (key == null) { + throw new 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 java.lang.String getResourceLabelsOrDefault( + java.lang.String key, 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; + private volatile java.lang.Object labelFingerprint_; + /** + * + * + *
+   * Required. The fingerprint of the previous set of labels for this resource,
+   * used to detect conflicts. The fingerprint is initially generated by
+   * Kubernetes Engine and changes after every request to modify or update
+   * labels. You must always provide an up-to-date fingerprint hash when
+   * updating or changing labels. Make a `get()` request to the
+   * resource to get the latest fingerprint.
+   * 
+ * + * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The labelFingerprint. + */ + @java.lang.Override + public java.lang.String getLabelFingerprint() { + java.lang.Object ref = labelFingerprint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + labelFingerprint_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The fingerprint of the previous set of labels for this resource,
+   * used to detect conflicts. The fingerprint is initially generated by
+   * Kubernetes Engine and changes after every request to modify or update
+   * labels. You must always provide an up-to-date fingerprint hash when
+   * updating or changing labels. Make a `get()` request to the
+   * resource to get the latest fingerprint.
+   * 
+ * + * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for labelFingerprint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLabelFingerprintBytes() { + java.lang.Object ref = labelFingerprint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + labelFingerprint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster 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.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetResourceLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 4: + return internalGetMutableResourceLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetLabelsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetLabelsRequest.class, + com.google.container.v1beta1.SetLabelsRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.SetLabelsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + internalGetMutableResourceLabels().clear(); + labelFingerprint_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetLabelsRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SetLabelsRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.SetLabelsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SetLabelsRequest build() { + com.google.container.v1beta1.SetLabelsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SetLabelsRequest buildPartial() { + com.google.container.v1beta1.SetLabelsRequest result = + new com.google.container.v1beta1.SetLabelsRequest(this); + int from_bitField0_ = bitField0_; + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.resourceLabels_ = internalGetResourceLabels(); + result.resourceLabels_.makeImmutable(); + result.labelFingerprint_ = labelFingerprint_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.SetLabelsRequest) { + return mergeFrom((com.google.container.v1beta1.SetLabelsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SetLabelsRequest other) { + if (other == com.google.container.v1beta1.SetLabelsRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + internalGetMutableResourceLabels().mergeFrom(other.internalGetResourceLabels()); + if (!other.getLabelFingerprint().isEmpty()) { + labelFingerprint_ = other.labelFingerprint_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry resourceLabels__ = + input.readMessage( + ResourceLabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableResourceLabels() + .getMutableMap() + .put(resourceLabels__.getKey(), resourceLabels__.getValue()); + break; + } // case 34 + case 42: + { + labelFingerprint_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 58: + { + name_ = input.readStringRequireUtf8(); + + 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=4014 + * @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=4014 + * @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=4014 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=4014 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=4014 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=4023 + * @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=4023 + * @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=4023 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=4023 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=4023 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=4030 + * @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=4030 + * @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=4030 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=4030 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=4030 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField resourceLabels_; + + private com.google.protobuf.MapField + internalGetResourceLabels() { + if (resourceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + return resourceLabels_; + } + + private com.google.protobuf.MapField + internalGetMutableResourceLabels() { + onChanged(); + ; + if (resourceLabels_ == null) { + resourceLabels_ = + com.google.protobuf.MapField.newMapField(ResourceLabelsDefaultEntryHolder.defaultEntry); + } + if (!resourceLabels_.isMutable()) { + resourceLabels_ = resourceLabels_.copy(); + } + return resourceLabels_; + } + + public int getResourceLabelsCount() { + return internalGetResourceLabels().getMap().size(); + } + /** + * + * + *
+     * Required. The labels to set for that cluster.
+     * 
+ * + * + * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public boolean containsResourceLabels(java.lang.String key) { + if (key == null) { + throw new 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 java.lang.String getResourceLabelsOrDefault( + java.lang.String key, 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() { + 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() { + 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); + return this; + } + /** + * + * + *
+     * Required. The labels to set for that cluster.
+     * 
+ * + * + * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder putAllResourceLabels(java.util.Map values) { + internalGetMutableResourceLabels().getMutableMap().putAll(values); + return this; + } + + private java.lang.Object labelFingerprint_ = ""; + /** + * + * + *
+     * Required. The fingerprint of the previous set of labels for this resource,
+     * used to detect conflicts. The fingerprint is initially generated by
+     * Kubernetes Engine and changes after every request to modify or update
+     * labels. You must always provide an up-to-date fingerprint hash when
+     * updating or changing labels. Make a `get()` request to the
+     * resource to get the latest fingerprint.
+     * 
+ * + * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The labelFingerprint. + */ + public java.lang.String getLabelFingerprint() { + java.lang.Object ref = labelFingerprint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + labelFingerprint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The fingerprint of the previous set of labels for this resource,
+     * used to detect conflicts. The fingerprint is initially generated by
+     * Kubernetes Engine and changes after every request to modify or update
+     * labels. You must always provide an up-to-date fingerprint hash when
+     * updating or changing labels. Make a `get()` request to the
+     * resource to get the latest fingerprint.
+     * 
+ * + * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for labelFingerprint. + */ + public com.google.protobuf.ByteString getLabelFingerprintBytes() { + java.lang.Object ref = labelFingerprint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + labelFingerprint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The fingerprint of the previous set of labels for this resource,
+     * used to detect conflicts. The fingerprint is initially generated by
+     * Kubernetes Engine and changes after every request to modify or update
+     * labels. You must always provide an up-to-date fingerprint hash when
+     * updating or changing labels. Make a `get()` request to the
+     * resource to get the latest fingerprint.
+     * 
+ * + * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The labelFingerprint to set. + * @return This builder for chaining. + */ + public Builder setLabelFingerprint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + labelFingerprint_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The fingerprint of the previous set of labels for this resource,
+     * used to detect conflicts. The fingerprint is initially generated by
+     * Kubernetes Engine and changes after every request to modify or update
+     * labels. You must always provide an up-to-date fingerprint hash when
+     * updating or changing labels. Make a `get()` request to the
+     * resource to get the latest fingerprint.
+     * 
+ * + * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearLabelFingerprint() { + + labelFingerprint_ = getDefaultInstance().getLabelFingerprint(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The fingerprint of the previous set of labels for this resource,
+     * used to detect conflicts. The fingerprint is initially generated by
+     * Kubernetes Engine and changes after every request to modify or update
+     * labels. You must always provide an up-to-date fingerprint hash when
+     * updating or changing labels. Make a `get()` request to the
+     * resource to get the latest fingerprint.
+     * 
+ * + * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for labelFingerprint to set. + * @return This builder for chaining. + */ + public Builder setLabelFingerprintBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + labelFingerprint_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..cb45a76940de --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequestOrBuilder.java @@ -0,0 +1,260 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface SetLabelsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetLabelsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=4014 + * @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=4014 + * @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=4023 + * @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=4023 + * @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=4030 + * @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=4030 + * @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 new file mode 100644 index 000000000000..81f113c6282f --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequest.java @@ -0,0 +1,1368 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for
+ * a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SetLegacyAbacRequest} + */ +public final class SetLegacyAbacRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetLegacyAbacRequest) + SetLegacyAbacRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetLegacyAbacRequest.newBuilder() to construct. + private SetLegacyAbacRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SetLegacyAbacRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SetLegacyAbacRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetLegacyAbacRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetLegacyAbacRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetLegacyAbacRequest.class, + com.google.container.v1beta1.SetLegacyAbacRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=4057 + * @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=4057 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Required. Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=4066 + * @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=4066 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * Required. Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=4073 + * @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=4073 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENABLED_FIELD_NUMBER = 4; + private boolean enabled_; + /** + * + * + *
+   * Required. Whether ABAC authorization will be enabled in the cluster.
+   * 
+ * + * bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster 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(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + enabled_ = false; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetLegacyAbacRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SetLegacyAbacRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.SetLegacyAbacRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SetLegacyAbacRequest build() { + com.google.container.v1beta1.SetLegacyAbacRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SetLegacyAbacRequest buildPartial() { + com.google.container.v1beta1.SetLegacyAbacRequest result = + new com.google.container.v1beta1.SetLegacyAbacRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.enabled_ = enabled_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.SetLegacyAbacRequest) { + return mergeFrom((com.google.container.v1beta1.SetLegacyAbacRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SetLegacyAbacRequest other) { + if (other == com.google.container.v1beta1.SetLegacyAbacRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: + { + enabled_ = input.readBool(); + + break; + } // case 32 + case 50: + { + name_ = input.readStringRequireUtf8(); + + 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 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=4057 + * @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=4057 + * @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=4057 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=4057 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=4057 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=4066 + * @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=4066 + * @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=4066 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=4066 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=4066 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=4073 + * @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=4073 + * @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=4073 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=4073 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=4073 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Required. Whether ABAC authorization will be enabled in the cluster.
+     * 
+ * + * bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Required. Whether ABAC authorization will be enabled in the cluster.
+     * 
+ * + * bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Whether ABAC authorization will be enabled in the cluster.
+     * 
+ * + * bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..2089b7bf9909 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequestOrBuilder.java @@ -0,0 +1,174 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface SetLegacyAbacRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetLegacyAbacRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=4057 + * @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=4057 + * @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=4066 + * @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=4066 + * @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=4073 + * @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=4073 + * @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 new file mode 100644 index 000000000000..5516022d3252 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequest.java @@ -0,0 +1,1613 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * SetLocationsRequest sets the locations of the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SetLocationsRequest} + */ +public final class SetLocationsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetLocationsRequest) + SetLocationsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetLocationsRequest.newBuilder() to construct. + private SetLocationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SetLocationsRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SetLocationsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetLocationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetLocationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetLocationsRequest.class, + com.google.container.v1beta1.SetLocationsRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=2728 + * @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=2728 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Required. Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2737 + * @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=2737 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * Required. Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2744 + * @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=2744 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATIONS_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList locations_; + /** + * + * + *
+   * Required. The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located. Changing the locations a cluster is in
+   * will result in nodes being either created or removed from the cluster,
+   * depending on whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the locations. + */ + public com.google.protobuf.ProtocolStringList getLocationsList() { + return locations_; + } + /** + * + * + *
+   * Required. The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located. Changing the locations a cluster is in
+   * will result in nodes being either created or removed from the cluster,
+   * depending on whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of locations. + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + * + * + *
+   * Required. The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located. Changing the locations a cluster is in
+   * will result in nodes being either created or removed from the cluster,
+   * depending on whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + * + * + *
+   * Required. The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located. Changing the locations a cluster is in
+   * will result in nodes being either created or removed from the cluster,
+   * depending on whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + public com.google.protobuf.ByteString getLocationsBytes(int index) { + return locations_.getByteString(index); + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set locations.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set locations.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetLocationsRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SetLocationsRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.SetLocationsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SetLocationsRequest build() { + com.google.container.v1beta1.SetLocationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SetLocationsRequest buildPartial() { + com.google.container.v1beta1.SetLocationsRequest result = + new com.google.container.v1beta1.SetLocationsRequest(this); + int from_bitField0_ = bitField0_; + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + if (((bitField0_ & 0x00000001) != 0)) { + locations_ = locations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.locations_ = locations_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.SetLocationsRequest) { + return mergeFrom((com.google.container.v1beta1.SetLocationsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SetLocationsRequest other) { + if (other == com.google.container.v1beta1.SetLocationsRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureLocationsIsMutable(); + locations_.add(s); + break; + } // case 34 + case 50: + { + name_ = input.readStringRequireUtf8(); + + 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=2728 + * @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=2728 + * @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=2728 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=2728 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=2728 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2737 + * @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=2737 + * @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=2737 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2737 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2737 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2744 + * @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=2744 + * @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=2744 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2744 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2744 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList locations_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureLocationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + locations_ = new com.google.protobuf.LazyStringArrayList(locations_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Required. The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located. Changing the locations a cluster is in
+     * will result in nodes being either created or removed from the cluster,
+     * depending on whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the locations. + */ + public com.google.protobuf.ProtocolStringList getLocationsList() { + return locations_.getUnmodifiableView(); + } + /** + * + * + *
+     * Required. The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located. Changing the locations a cluster is in
+     * will result in nodes being either created or removed from the cluster,
+     * depending on whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of locations. + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + * + * + *
+     * Required. The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located. Changing the locations a cluster is in
+     * will result in nodes being either created or removed from the cluster,
+     * depending on whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + * + * + *
+     * Required. The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located. Changing the locations a cluster is in
+     * will result in nodes being either created or removed from the cluster,
+     * depending on whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + public com.google.protobuf.ByteString getLocationsBytes(int index) { + return locations_.getByteString(index); + } + /** + * + * + *
+     * Required. The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located. Changing the locations a cluster is in
+     * will result in nodes being either created or removed from the cluster,
+     * depending on whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The locations to set. + * @return This builder for chaining. + */ + public Builder setLocations(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located. Changing the locations a cluster is in
+     * will result in nodes being either created or removed from the cluster,
+     * depending on whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The locations to add. + * @return This builder for chaining. + */ + public Builder addLocations(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located. Changing the locations a cluster is in
+     * will result in nodes being either created or removed from the cluster,
+     * depending on whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The locations to add. + * @return This builder for chaining. + */ + public Builder addAllLocations(java.lang.Iterable values) { + ensureLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located. Changing the locations a cluster is in
+     * will result in nodes being either created or removed from the cluster,
+     * depending on whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearLocations() { + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located. Changing the locations a cluster is in
+     * will result in nodes being either created or removed from the cluster,
+     * depending on whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the locations to add. + * @return This builder for chaining. + */ + public Builder addLocationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set locations.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set locations.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set locations.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set locations.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set locations.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetLocationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetLocationsRequest) + private static final com.google.container.v1beta1.SetLocationsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SetLocationsRequest(); + } + + public static com.google.container.v1beta1.SetLocationsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetLocationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..e0c2f093c1f6 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequestOrBuilder.java @@ -0,0 +1,232 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface SetLocationsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetLocationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=2728 + * @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=2728 + * @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=2737 + * @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=2737 + * @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=2744 + * @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=2744 + * @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 new file mode 100644 index 000000000000..69486beb99c4 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequest.java @@ -0,0 +1,1510 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * SetLoggingServiceRequest sets the logging service of a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SetLoggingServiceRequest} + */ +public final class SetLoggingServiceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetLoggingServiceRequest) + SetLoggingServiceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetLoggingServiceRequest.newBuilder() to construct. + private SetLoggingServiceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SetLoggingServiceRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + loggingService_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SetLoggingServiceRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetLoggingServiceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetLoggingServiceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetLoggingServiceRequest.class, + com.google.container.v1beta1.SetLoggingServiceRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=2605 + * @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=2605 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Required. Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2614 + * @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=2614 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * Required. Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2621 + * @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=2621 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOGGING_SERVICE_FIELD_NUMBER = 4; + private volatile java.lang.Object loggingService_; + /** + * + * + *
+   * Required. The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
+   * * `none` - no logs will be exported from the cluster.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+   * 
+ * + * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The loggingService. + */ + @java.lang.Override + public java.lang.String getLoggingService() { + java.lang.Object ref = loggingService_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + loggingService_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
+   * * `none` - no logs will be exported from the cluster.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+   * 
+ * + * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for loggingService. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLoggingServiceBytes() { + java.lang.Object ref = loggingService_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + loggingService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set logging.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 5; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set logging.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 5; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + loggingService_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetLoggingServiceRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SetLoggingServiceRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.SetLoggingServiceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SetLoggingServiceRequest build() { + com.google.container.v1beta1.SetLoggingServiceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SetLoggingServiceRequest buildPartial() { + com.google.container.v1beta1.SetLoggingServiceRequest result = + new com.google.container.v1beta1.SetLoggingServiceRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.loggingService_ = loggingService_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.SetLoggingServiceRequest) { + return mergeFrom((com.google.container.v1beta1.SetLoggingServiceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SetLoggingServiceRequest other) { + if (other == com.google.container.v1beta1.SetLoggingServiceRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getLoggingService().isEmpty()) { + loggingService_ = other.loggingService_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + loggingService_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + name_ = input.readStringRequireUtf8(); + + 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 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=2605 + * @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=2605 + * @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=2605 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=2605 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=2605 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2614 + * @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=2614 + * @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=2614 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2614 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2614 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2621 + * @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=2621 + * @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=2621 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2621 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2621 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object loggingService_ = ""; + /** + * + * + *
+     * Required. The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The loggingService. + */ + public java.lang.String getLoggingService() { + java.lang.Object ref = loggingService_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + loggingService_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for loggingService. + */ + public com.google.protobuf.ByteString getLoggingServiceBytes() { + java.lang.Object ref = loggingService_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + loggingService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The loggingService to set. + * @return This builder for chaining. + */ + public Builder setLoggingService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + loggingService_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearLoggingService() { + + loggingService_ = getDefaultInstance().getLoggingService(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for loggingService to set. + * @return This builder for chaining. + */ + public Builder setLoggingServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + loggingService_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set logging.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set logging.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set logging.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set logging.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set logging.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetLoggingServiceRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetLoggingServiceRequest) + private static final com.google.container.v1beta1.SetLoggingServiceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SetLoggingServiceRequest(); + } + + public static com.google.container.v1beta1.SetLoggingServiceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetLoggingServiceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..a56d70971c93 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequestOrBuilder.java @@ -0,0 +1,202 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface SetLoggingServiceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetLoggingServiceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=2605 + * @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=2605 + * @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=2614 + * @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=2614 + * @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=2621 + * @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=2621 + * @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 new file mode 100644 index 000000000000..893a73ea6184 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMaintenancePolicyRequest.java @@ -0,0 +1,1490 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * SetMaintenancePolicyRequest sets the maintenance policy for a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SetMaintenancePolicyRequest} + */ +public final class SetMaintenancePolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetMaintenancePolicyRequest) + SetMaintenancePolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetMaintenancePolicyRequest.newBuilder() to construct. + private SetMaintenancePolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SetMaintenancePolicyRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SetMaintenancePolicyRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetMaintenancePolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetMaintenancePolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetMaintenancePolicyRequest.class, + com.google.container.v1beta1.SetMaintenancePolicyRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Required. The Google Developers Console [project ID or project
+   * number](https://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; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Required. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides.
+   * 
+ * + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. + */ + @java.lang.Override + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides.
+   * 
+ * + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * Required. The name of the cluster to update.
+   * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + @java.lang.Override + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the cluster to update.
+   * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAINTENANCE_POLICY_FIELD_NUMBER = 4; + private com.google.container.v1beta1.MaintenancePolicy maintenancePolicy_; + /** + * + * + *
+   * Required. The maintenance policy to be set for the cluster. An empty field
+   * clears the existing maintenance policy.
+   * 
+ * + * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the maintenancePolicy field is set. + */ + @java.lang.Override + public boolean hasMaintenancePolicy() { + return maintenancePolicy_ != null; + } + /** + * + * + *
+   * Required. The maintenance policy to be set for the cluster. An empty field
+   * clears the existing maintenance policy.
+   * 
+ * + * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The maintenancePolicy. + */ + @java.lang.Override + public com.google.container.v1beta1.MaintenancePolicy getMaintenancePolicy() { + return maintenancePolicy_ == null + ? com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance() + : maintenancePolicy_; + } + /** + * + * + *
+   * Required. The maintenance policy to be set for the cluster. An empty field
+   * clears the existing maintenance policy.
+   * 
+ * + * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.container.v1beta1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { + return getMaintenancePolicy(); + } + + public static final int NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster 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 (maintenancePolicy_ != null) { + 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 (maintenancePolicy_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + if (maintenancePolicyBuilder_ == null) { + maintenancePolicy_ = null; + } else { + maintenancePolicy_ = null; + maintenancePolicyBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetMaintenancePolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SetMaintenancePolicyRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.SetMaintenancePolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SetMaintenancePolicyRequest build() { + com.google.container.v1beta1.SetMaintenancePolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SetMaintenancePolicyRequest buildPartial() { + com.google.container.v1beta1.SetMaintenancePolicyRequest result = + new com.google.container.v1beta1.SetMaintenancePolicyRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + if (maintenancePolicyBuilder_ == null) { + result.maintenancePolicy_ = maintenancePolicy_; + } else { + result.maintenancePolicy_ = maintenancePolicyBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.SetMaintenancePolicyRequest) { + return mergeFrom((com.google.container.v1beta1.SetMaintenancePolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SetMaintenancePolicyRequest other) { + if (other == com.google.container.v1beta1.SetMaintenancePolicyRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (other.hasMaintenancePolicy()) { + mergeMaintenancePolicy(other.getMaintenancePolicy()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + input.readMessage( + getMaintenancePolicyFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + name_ = input.readStringRequireUtf8(); + + 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 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; + 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(); + 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; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Required. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides.
+     * 
+ * + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides.
+     * 
+ * + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. + */ + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides.
+     * 
+ * + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides.
+     * 
+ * + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides.
+     * 
+ * + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * Required. The name of the cluster to update.
+     * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the cluster to update.
+     * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the cluster to update.
+     * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the cluster to update.
+     * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the cluster to update.
+     * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.MaintenancePolicy maintenancePolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaintenancePolicy, + com.google.container.v1beta1.MaintenancePolicy.Builder, + com.google.container.v1beta1.MaintenancePolicyOrBuilder> + maintenancePolicyBuilder_; + /** + * + * + *
+     * Required. The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the maintenancePolicy field is set. + */ + public boolean hasMaintenancePolicy() { + return maintenancePolicyBuilder_ != null || maintenancePolicy_ != null; + } + /** + * + * + *
+     * Required. The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The maintenancePolicy. + */ + public com.google.container.v1beta1.MaintenancePolicy getMaintenancePolicy() { + if (maintenancePolicyBuilder_ == null) { + return maintenancePolicy_ == null + ? com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance() + : maintenancePolicy_; + } else { + return maintenancePolicyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMaintenancePolicy(com.google.container.v1beta1.MaintenancePolicy value) { + if (maintenancePolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maintenancePolicy_ = value; + onChanged(); + } else { + maintenancePolicyBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMaintenancePolicy( + com.google.container.v1beta1.MaintenancePolicy.Builder builderForValue) { + if (maintenancePolicyBuilder_ == null) { + maintenancePolicy_ = builderForValue.build(); + onChanged(); + } else { + maintenancePolicyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMaintenancePolicy(com.google.container.v1beta1.MaintenancePolicy value) { + if (maintenancePolicyBuilder_ == null) { + if (maintenancePolicy_ != null) { + maintenancePolicy_ = + com.google.container.v1beta1.MaintenancePolicy.newBuilder(maintenancePolicy_) + .mergeFrom(value) + .buildPartial(); + } else { + maintenancePolicy_ = value; + } + onChanged(); + } else { + maintenancePolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMaintenancePolicy() { + if (maintenancePolicyBuilder_ == null) { + maintenancePolicy_ = null; + onChanged(); + } else { + maintenancePolicy_ = null; + maintenancePolicyBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1beta1.MaintenancePolicy.Builder getMaintenancePolicyBuilder() { + + onChanged(); + return getMaintenancePolicyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1beta1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { + if (maintenancePolicyBuilder_ != null) { + return maintenancePolicyBuilder_.getMessageOrBuilder(); + } else { + return maintenancePolicy_ == null + ? com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance() + : maintenancePolicy_; + } + } + /** + * + * + *
+     * Required. The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaintenancePolicy, + com.google.container.v1beta1.MaintenancePolicy.Builder, + com.google.container.v1beta1.MaintenancePolicyOrBuilder> + getMaintenancePolicyFieldBuilder() { + if (maintenancePolicyBuilder_ == null) { + maintenancePolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaintenancePolicy, + com.google.container.v1beta1.MaintenancePolicy.Builder, + com.google.container.v1beta1.MaintenancePolicyOrBuilder>( + getMaintenancePolicy(), getParentForChildren(), isClean()); + maintenancePolicy_ = null; + } + return maintenancePolicyBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..58bf29feaf88 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMaintenancePolicyRequestOrBuilder.java @@ -0,0 +1,179 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface SetMaintenancePolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetMaintenancePolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Google Developers Console [project ID or project
+   * number](https://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 new file mode 100644 index 000000000000..748184797252 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequest.java @@ -0,0 +1,1918 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * SetMasterAuthRequest updates the admin password of a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SetMasterAuthRequest} + */ +public final class SetMasterAuthRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetMasterAuthRequest) + SetMasterAuthRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetMasterAuthRequest.newBuilder() to construct. + private SetMasterAuthRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SetMasterAuthRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + action_ = 0; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SetMasterAuthRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetMasterAuthRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetMasterAuthRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetMasterAuthRequest.class, + com.google.container.v1beta1.SetMasterAuthRequest.Builder.class); + } + + /** + * + * + *
+   * Operation type: what type update to perform.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.SetMasterAuthRequest.Action} + */ + public enum Action implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Operation is unknown and will error out.
+     * 
+ * + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + * + * + *
+     * Set the password to a user generated value.
+     * 
+ * + * SET_PASSWORD = 1; + */ + SET_PASSWORD(1), + /** + * + * + *
+     * Generate a new password and set it to that.
+     * 
+ * + * GENERATE_PASSWORD = 2; + */ + GENERATE_PASSWORD(2), + /** + * + * + *
+     * Set the username.  If an empty username is provided, basic authentication
+     * is disabled for the cluster.  If a non-empty username is provided, basic
+     * authentication is enabled, with either a provided password or a generated
+     * one.
+     * 
+ * + * SET_USERNAME = 3; + */ + SET_USERNAME(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Operation is unknown and will error out.
+     * 
+ * + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + * + * + *
+     * Set the password to a user generated value.
+     * 
+ * + * SET_PASSWORD = 1; + */ + public static final int SET_PASSWORD_VALUE = 1; + /** + * + * + *
+     * Generate a new password and set it to that.
+     * 
+ * + * GENERATE_PASSWORD = 2; + */ + public static final int GENERATE_PASSWORD_VALUE = 2; + /** + * + * + *
+     * Set the username.  If an empty username is provided, basic authentication
+     * is disabled for the cluster.  If a non-empty username is provided, basic
+     * authentication is enabled, with either a provided password or a generated
+     * one.
+     * 
+ * + * SET_USERNAME = 3; + */ + public static final int SET_USERNAME_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Action valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Action forNumber(int value) { + switch (value) { + case 0: + return UNKNOWN; + case 1: + return SET_PASSWORD; + case 2: + return GENERATE_PASSWORD; + case 3: + return SET_USERNAME; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Action findValueByNumber(int number) { + return Action.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1beta1.SetMasterAuthRequest.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Action[] VALUES = values(); + + public static Action valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Action(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.SetMasterAuthRequest.Action) + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=2829 + * @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=2829 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Required. Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2838 + * @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=2838 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * Required. Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2845 + * @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=2845 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACTION_FIELD_NUMBER = 4; + private int action_; + /** + * + * + *
+   * Required. The exact form of action to be taken on the master auth.
+   * 
+ * + * + * .google.container.v1beta1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for action. + */ + @java.lang.Override + public int getActionValue() { + return action_; + } + /** + * + * + *
+   * Required. The exact form of action to be taken on the master auth.
+   * 
+ * + * + * .google.container.v1beta1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The action. + */ + @java.lang.Override + public com.google.container.v1beta1.SetMasterAuthRequest.Action getAction() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.SetMasterAuthRequest.Action result = + com.google.container.v1beta1.SetMasterAuthRequest.Action.valueOf(action_); + return result == null + ? com.google.container.v1beta1.SetMasterAuthRequest.Action.UNRECOGNIZED + : result; + } + + public static final int UPDATE_FIELD_NUMBER = 5; + private com.google.container.v1beta1.MasterAuth update_; + /** + * + * + *
+   * Required. A description of the update.
+   * 
+ * + * + * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the update field is set. + */ + @java.lang.Override + public boolean hasUpdate() { + return update_ != null; + } + /** + * + * + *
+   * Required. A description of the update.
+   * 
+ * + * + * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The update. + */ + @java.lang.Override + public com.google.container.v1beta1.MasterAuth getUpdate() { + return update_ == null ? com.google.container.v1beta1.MasterAuth.getDefaultInstance() : update_; + } + /** + * + * + *
+   * Required. A description of the update.
+   * 
+ * + * + * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.container.v1beta1.MasterAuthOrBuilder getUpdateOrBuilder() { + return getUpdate(); + } + + public static final int NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set auth.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 7; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set auth.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 7; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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 (update_ != null) { + 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 (update_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + action_ = 0; + + if (updateBuilder_ == null) { + update_ = null; + } else { + update_ = null; + updateBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetMasterAuthRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SetMasterAuthRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.SetMasterAuthRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SetMasterAuthRequest build() { + com.google.container.v1beta1.SetMasterAuthRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SetMasterAuthRequest buildPartial() { + com.google.container.v1beta1.SetMasterAuthRequest result = + new com.google.container.v1beta1.SetMasterAuthRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.action_ = action_; + if (updateBuilder_ == null) { + result.update_ = update_; + } else { + result.update_ = updateBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.SetMasterAuthRequest) { + return mergeFrom((com.google.container.v1beta1.SetMasterAuthRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SetMasterAuthRequest other) { + if (other == com.google.container.v1beta1.SetMasterAuthRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (other.action_ != 0) { + setActionValue(other.getActionValue()); + } + if (other.hasUpdate()) { + mergeUpdate(other.getUpdate()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: + { + action_ = input.readEnum(); + + break; + } // case 32 + case 42: + { + input.readMessage(getUpdateFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 58: + { + name_ = input.readStringRequireUtf8(); + + 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 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=2829 + * @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=2829 + * @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=2829 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=2829 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=2829 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2838 + * @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=2838 + * @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=2838 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2838 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2838 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2845 + * @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=2845 + * @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=2845 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2845 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2845 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private int action_ = 0; + /** + * + * + *
+     * Required. The exact form of action to be taken on the master auth.
+     * 
+ * + * + * .google.container.v1beta1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for action. + */ + @java.lang.Override + public int getActionValue() { + return action_; + } + /** + * + * + *
+     * Required. The exact form of action to be taken on the master auth.
+     * 
+ * + * + * .google.container.v1beta1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for action to set. + * @return This builder for chaining. + */ + public Builder setActionValue(int value) { + + action_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The exact form of action to be taken on the master auth.
+     * 
+ * + * + * .google.container.v1beta1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The action. + */ + @java.lang.Override + public com.google.container.v1beta1.SetMasterAuthRequest.Action getAction() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.SetMasterAuthRequest.Action result = + com.google.container.v1beta1.SetMasterAuthRequest.Action.valueOf(action_); + return result == null + ? com.google.container.v1beta1.SetMasterAuthRequest.Action.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. The exact form of action to be taken on the master auth.
+     * 
+ * + * + * .google.container.v1beta1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The action to set. + * @return This builder for chaining. + */ + public Builder setAction(com.google.container.v1beta1.SetMasterAuthRequest.Action value) { + if (value == null) { + throw new NullPointerException(); + } + + action_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The exact form of action to be taken on the master auth.
+     * 
+ * + * + * .google.container.v1beta1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearAction() { + + action_ = 0; + onChanged(); + return this; + } + + private com.google.container.v1beta1.MasterAuth update_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MasterAuth, + com.google.container.v1beta1.MasterAuth.Builder, + com.google.container.v1beta1.MasterAuthOrBuilder> + updateBuilder_; + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the update field is set. + */ + public boolean hasUpdate() { + return updateBuilder_ != null || update_ != null; + } + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The update. + */ + public com.google.container.v1beta1.MasterAuth getUpdate() { + if (updateBuilder_ == null) { + return update_ == null + ? com.google.container.v1beta1.MasterAuth.getDefaultInstance() + : update_; + } else { + return updateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdate(com.google.container.v1beta1.MasterAuth value) { + if (updateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + update_ = value; + onChanged(); + } else { + updateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdate(com.google.container.v1beta1.MasterAuth.Builder builderForValue) { + if (updateBuilder_ == null) { + update_ = builderForValue.build(); + onChanged(); + } else { + updateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdate(com.google.container.v1beta1.MasterAuth value) { + if (updateBuilder_ == null) { + if (update_ != null) { + update_ = + com.google.container.v1beta1.MasterAuth.newBuilder(update_) + .mergeFrom(value) + .buildPartial(); + } else { + update_ = value; + } + onChanged(); + } else { + updateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdate() { + if (updateBuilder_ == null) { + update_ = null; + onChanged(); + } else { + update_ = null; + updateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1beta1.MasterAuth.Builder getUpdateBuilder() { + + onChanged(); + return getUpdateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1beta1.MasterAuthOrBuilder getUpdateOrBuilder() { + if (updateBuilder_ != null) { + return updateBuilder_.getMessageOrBuilder(); + } else { + return update_ == null + ? com.google.container.v1beta1.MasterAuth.getDefaultInstance() + : update_; + } + } + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MasterAuth, + com.google.container.v1beta1.MasterAuth.Builder, + com.google.container.v1beta1.MasterAuthOrBuilder> + getUpdateFieldBuilder() { + if (updateBuilder_ == null) { + updateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MasterAuth, + com.google.container.v1beta1.MasterAuth.Builder, + com.google.container.v1beta1.MasterAuthOrBuilder>( + getUpdate(), getParentForChildren(), isClean()); + update_ = null; + } + return updateBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set auth.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set auth.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set auth.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set auth.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set auth.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetMasterAuthRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetMasterAuthRequest) + private static final com.google.container.v1beta1.SetMasterAuthRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SetMasterAuthRequest(); + } + + public static com.google.container.v1beta1.SetMasterAuthRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetMasterAuthRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..065daff048ec --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequestOrBuilder.java @@ -0,0 +1,231 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface SetMasterAuthRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetMasterAuthRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=2829 + * @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=2829 + * @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=2838 + * @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=2838 + * @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=2845 + * @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=2845 + * @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 new file mode 100644 index 000000000000..6af7d06845c3 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequest.java @@ -0,0 +1,1510 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * SetMonitoringServiceRequest sets the monitoring service of a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SetMonitoringServiceRequest} + */ +public final class SetMonitoringServiceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetMonitoringServiceRequest) + SetMonitoringServiceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetMonitoringServiceRequest.newBuilder() to construct. + private SetMonitoringServiceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SetMonitoringServiceRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + monitoringService_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SetMonitoringServiceRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetMonitoringServiceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetMonitoringServiceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetMonitoringServiceRequest.class, + com.google.container.v1beta1.SetMonitoringServiceRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=2649 + * @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=2649 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Required. Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2658 + * @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=2658 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * Required. Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2665 + * @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=2665 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MONITORING_SERVICE_FIELD_NUMBER = 4; + private volatile java.lang.Object monitoringService_; + /** + * + * + *
+   * Required. The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+   * 
+ * + * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The monitoringService. + */ + @java.lang.Override + public java.lang.String getMonitoringService() { + java.lang.Object ref = monitoringService_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + monitoringService_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+   * 
+ * + * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for monitoringService. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMonitoringServiceBytes() { + java.lang.Object ref = monitoringService_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + monitoringService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set monitoring.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set monitoring.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + monitoringService_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetMonitoringServiceRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SetMonitoringServiceRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.SetMonitoringServiceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SetMonitoringServiceRequest build() { + com.google.container.v1beta1.SetMonitoringServiceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SetMonitoringServiceRequest buildPartial() { + com.google.container.v1beta1.SetMonitoringServiceRequest result = + new com.google.container.v1beta1.SetMonitoringServiceRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.monitoringService_ = monitoringService_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.SetMonitoringServiceRequest) { + return mergeFrom((com.google.container.v1beta1.SetMonitoringServiceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SetMonitoringServiceRequest other) { + if (other == com.google.container.v1beta1.SetMonitoringServiceRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getMonitoringService().isEmpty()) { + monitoringService_ = other.monitoringService_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + monitoringService_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 50: + { + name_ = input.readStringRequireUtf8(); + + 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 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=2649 + * @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=2649 + * @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=2649 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=2649 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=2649 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2658 + * @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=2658 + * @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=2658 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2658 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2658 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2665 + * @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=2665 + * @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=2665 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2665 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2665 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object monitoringService_ = ""; + /** + * + * + *
+     * Required. The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The monitoringService. + */ + public java.lang.String getMonitoringService() { + java.lang.Object ref = monitoringService_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + monitoringService_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for monitoringService. + */ + public com.google.protobuf.ByteString getMonitoringServiceBytes() { + java.lang.Object ref = monitoringService_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + monitoringService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The monitoringService to set. + * @return This builder for chaining. + */ + public Builder setMonitoringService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + monitoringService_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMonitoringService() { + + monitoringService_ = getDefaultInstance().getMonitoringService(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for monitoringService to set. + * @return This builder for chaining. + */ + public Builder setMonitoringServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + monitoringService_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set monitoring.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set monitoring.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set monitoring.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set monitoring.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set monitoring.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetMonitoringServiceRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetMonitoringServiceRequest) + private static final com.google.container.v1beta1.SetMonitoringServiceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SetMonitoringServiceRequest(); + } + + public static com.google.container.v1beta1.SetMonitoringServiceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetMonitoringServiceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..1c9f6b89a24a --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequestOrBuilder.java @@ -0,0 +1,202 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface SetMonitoringServiceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetMonitoringServiceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=2649 + * @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=2649 + * @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=2658 + * @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=2658 + * @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=2665 + * @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=2665 + * @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 new file mode 100644 index 000000000000..1888c75744e3 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequest.java @@ -0,0 +1,1567 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * SetNetworkPolicyRequest enables/disables network policy for a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SetNetworkPolicyRequest} + */ +public final class SetNetworkPolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetNetworkPolicyRequest) + SetNetworkPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetNetworkPolicyRequest.newBuilder() to construct. + private SetNetworkPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SetNetworkPolicyRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SetNetworkPolicyRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetNetworkPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetNetworkPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetNetworkPolicyRequest.class, + com.google.container.v1beta1.SetNetworkPolicyRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=4260 + * @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=4260 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Required. Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.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.SetNetworkPolicyRequest.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; + 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=4276 + * @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=4276 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_POLICY_FIELD_NUMBER = 4; + private com.google.container.v1beta1.NetworkPolicy networkPolicy_; + /** + * + * + *
+   * Required. Configuration options for the NetworkPolicy feature.
+   * 
+ * + * + * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the networkPolicy field is set. + */ + @java.lang.Override + public boolean hasNetworkPolicy() { + return networkPolicy_ != null; + } + /** + * + * + *
+   * Required. Configuration options for the NetworkPolicy feature.
+   * 
+ * + * + * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The networkPolicy. + */ + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicy getNetworkPolicy() { + return networkPolicy_ == null + ? com.google.container.v1beta1.NetworkPolicy.getDefaultInstance() + : networkPolicy_; + } + /** + * + * + *
+   * Required. Configuration options for the NetworkPolicy feature.
+   * 
+ * + * + * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { + return getNetworkPolicy(); + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster 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 (networkPolicy_ != null) { + 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 (networkPolicy_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + if (networkPolicyBuilder_ == null) { + networkPolicy_ = null; + } else { + networkPolicy_ = null; + networkPolicyBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetNetworkPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SetNetworkPolicyRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.SetNetworkPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SetNetworkPolicyRequest build() { + com.google.container.v1beta1.SetNetworkPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SetNetworkPolicyRequest buildPartial() { + com.google.container.v1beta1.SetNetworkPolicyRequest result = + new com.google.container.v1beta1.SetNetworkPolicyRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + if (networkPolicyBuilder_ == null) { + result.networkPolicy_ = networkPolicy_; + } else { + result.networkPolicy_ = networkPolicyBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.SetNetworkPolicyRequest) { + return mergeFrom((com.google.container.v1beta1.SetNetworkPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SetNetworkPolicyRequest other) { + if (other == com.google.container.v1beta1.SetNetworkPolicyRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (other.hasNetworkPolicy()) { + mergeNetworkPolicy(other.getNetworkPolicy()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + input.readMessage(getNetworkPolicyFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 50: + { + name_ = input.readStringRequireUtf8(); + + 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 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=4260 + * @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=4260 + * @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=4260 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=4260 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=4260 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.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.SetNetworkPolicyRequest.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.SetNetworkPolicyRequest.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; + 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=4269 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.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; + 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=4276 + * @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=4276 + * @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=4276 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=4276 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=4276 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NetworkPolicy networkPolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkPolicy, + com.google.container.v1beta1.NetworkPolicy.Builder, + com.google.container.v1beta1.NetworkPolicyOrBuilder> + networkPolicyBuilder_; + /** + * + * + *
+     * Required. Configuration options for the NetworkPolicy feature.
+     * 
+ * + * + * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the networkPolicy field is set. + */ + public boolean hasNetworkPolicy() { + return networkPolicyBuilder_ != null || networkPolicy_ != null; + } + /** + * + * + *
+     * Required. Configuration options for the NetworkPolicy feature.
+     * 
+ * + * + * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The networkPolicy. + */ + public com.google.container.v1beta1.NetworkPolicy getNetworkPolicy() { + if (networkPolicyBuilder_ == null) { + return networkPolicy_ == null + ? com.google.container.v1beta1.NetworkPolicy.getDefaultInstance() + : networkPolicy_; + } else { + return networkPolicyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Configuration options for the NetworkPolicy feature.
+     * 
+ * + * + * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setNetworkPolicy(com.google.container.v1beta1.NetworkPolicy value) { + if (networkPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkPolicy_ = value; + onChanged(); + } else { + networkPolicyBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. Configuration options for the NetworkPolicy feature.
+     * 
+ * + * + * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setNetworkPolicy( + com.google.container.v1beta1.NetworkPolicy.Builder builderForValue) { + if (networkPolicyBuilder_ == null) { + networkPolicy_ = builderForValue.build(); + onChanged(); + } else { + networkPolicyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. Configuration options for the NetworkPolicy feature.
+     * 
+ * + * + * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeNetworkPolicy(com.google.container.v1beta1.NetworkPolicy value) { + if (networkPolicyBuilder_ == null) { + if (networkPolicy_ != null) { + networkPolicy_ = + com.google.container.v1beta1.NetworkPolicy.newBuilder(networkPolicy_) + .mergeFrom(value) + .buildPartial(); + } else { + networkPolicy_ = value; + } + onChanged(); + } else { + networkPolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Configuration options for the NetworkPolicy feature.
+     * 
+ * + * + * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearNetworkPolicy() { + if (networkPolicyBuilder_ == null) { + networkPolicy_ = null; + onChanged(); + } else { + networkPolicy_ = null; + networkPolicyBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Configuration options for the NetworkPolicy feature.
+     * 
+ * + * + * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1beta1.NetworkPolicy.Builder getNetworkPolicyBuilder() { + + onChanged(); + return getNetworkPolicyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Configuration options for the NetworkPolicy feature.
+     * 
+ * + * + * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1beta1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { + if (networkPolicyBuilder_ != null) { + return networkPolicyBuilder_.getMessageOrBuilder(); + } else { + return networkPolicy_ == null + ? com.google.container.v1beta1.NetworkPolicy.getDefaultInstance() + : networkPolicy_; + } + } + /** + * + * + *
+     * Required. Configuration options for the NetworkPolicy feature.
+     * 
+ * + * + * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkPolicy, + com.google.container.v1beta1.NetworkPolicy.Builder, + com.google.container.v1beta1.NetworkPolicyOrBuilder> + getNetworkPolicyFieldBuilder() { + if (networkPolicyBuilder_ == null) { + networkPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkPolicy, + com.google.container.v1beta1.NetworkPolicy.Builder, + com.google.container.v1beta1.NetworkPolicyOrBuilder>( + getNetworkPolicy(), getParentForChildren(), isClean()); + networkPolicy_ = null; + } + return networkPolicyBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..831069abb63f --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequestOrBuilder.java @@ -0,0 +1,202 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface SetNetworkPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetNetworkPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=4260 + * @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=4260 + * @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=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.SetNetworkPolicyRequest.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.
+   * This field 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=4276 + * @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=4276 + * @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 new file mode 100644 index 000000000000..2d806a5010c7 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequest.java @@ -0,0 +1,1788 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SetNodePoolAutoscalingRequest} + */ +public final class SetNodePoolAutoscalingRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetNodePoolAutoscalingRequest) + SetNodePoolAutoscalingRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetNodePoolAutoscalingRequest.newBuilder() to construct. + private SetNodePoolAutoscalingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SetNodePoolAutoscalingRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SetNodePoolAutoscalingRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetNodePoolAutoscalingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetNodePoolAutoscalingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetNodePoolAutoscalingRequest.class, + com.google.container.v1beta1.SetNodePoolAutoscalingRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=2563 + * @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=2563 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Required. Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2572 + * @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=2572 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * Required. Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2579 + * @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=2579 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object nodePoolId_; + /** + * + * + *
+   * Required. Deprecated. The name of the node pool to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2586 + * @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=2586 + * @return The bytes for nodePoolId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTOSCALING_FIELD_NUMBER = 5; + private com.google.container.v1beta1.NodePoolAutoscaling autoscaling_; + /** + * + * + *
+   * Required. Autoscaling configuration for the node pool.
+   * 
+ * + * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the autoscaling field is set. + */ + @java.lang.Override + public boolean hasAutoscaling() { + return autoscaling_ != null; + } + /** + * + * + *
+   * Required. Autoscaling configuration for the node pool.
+   * 
+ * + * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The autoscaling. + */ + @java.lang.Override + public com.google.container.v1beta1.NodePoolAutoscaling getAutoscaling() { + return autoscaling_ == null + ? com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() + : autoscaling_; + } + /** + * + * + *
+   * Required. Autoscaling configuration for the node pool.
+   * 
+ * + * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.container.v1beta1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder() { + return getAutoscaling(); + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster, node pool) of the node pool to set
+   * autoscaler settings. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 6; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster, node pool) of the node pool to set
+   * autoscaler settings. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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 (autoscaling_ != null) { + 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 (autoscaling_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + nodePoolId_ = ""; + + if (autoscalingBuilder_ == null) { + autoscaling_ = null; + } else { + autoscaling_ = null; + autoscalingBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetNodePoolAutoscalingRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SetNodePoolAutoscalingRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.SetNodePoolAutoscalingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SetNodePoolAutoscalingRequest build() { + com.google.container.v1beta1.SetNodePoolAutoscalingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SetNodePoolAutoscalingRequest buildPartial() { + com.google.container.v1beta1.SetNodePoolAutoscalingRequest result = + new com.google.container.v1beta1.SetNodePoolAutoscalingRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.nodePoolId_ = nodePoolId_; + if (autoscalingBuilder_ == null) { + result.autoscaling_ = autoscaling_; + } else { + result.autoscaling_ = autoscalingBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.SetNodePoolAutoscalingRequest) { + return mergeFrom((com.google.container.v1beta1.SetNodePoolAutoscalingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SetNodePoolAutoscalingRequest other) { + if (other == com.google.container.v1beta1.SetNodePoolAutoscalingRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + onChanged(); + } + if (other.hasAutoscaling()) { + mergeAutoscaling(other.getAutoscaling()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + nodePoolId_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + input.readMessage(getAutoscalingFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 50: + { + name_ = input.readStringRequireUtf8(); + + 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 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=2563 + * @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=2563 + * @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=2563 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=2563 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=2563 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2572 + * @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=2572 + * @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=2572 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2572 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2572 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2579 + * @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=2579 + * @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=2579 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2579 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2579 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is + * deprecated. See google/container/v1beta1/cluster_service.proto;l=2586 + * @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=2586 + * @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=2586 + * @param value The nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodePoolId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is + * deprecated. See google/container/v1beta1/cluster_service.proto;l=2586 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearNodePoolId() { + + nodePoolId_ = getDefaultInstance().getNodePoolId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is + * deprecated. See google/container/v1beta1/cluster_service.proto;l=2586 + * @param value The bytes for nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodePoolId_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NodePoolAutoscaling autoscaling_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolAutoscaling, + com.google.container.v1beta1.NodePoolAutoscaling.Builder, + com.google.container.v1beta1.NodePoolAutoscalingOrBuilder> + autoscalingBuilder_; + /** + * + * + *
+     * Required. Autoscaling configuration for the node pool.
+     * 
+ * + * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the autoscaling field is set. + */ + public boolean hasAutoscaling() { + return autoscalingBuilder_ != null || autoscaling_ != null; + } + /** + * + * + *
+     * Required. Autoscaling configuration for the node pool.
+     * 
+ * + * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The autoscaling. + */ + public com.google.container.v1beta1.NodePoolAutoscaling getAutoscaling() { + if (autoscalingBuilder_ == null) { + return autoscaling_ == null + ? com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() + : autoscaling_; + } else { + return autoscalingBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Autoscaling configuration for the node pool.
+     * 
+ * + * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAutoscaling(com.google.container.v1beta1.NodePoolAutoscaling value) { + if (autoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autoscaling_ = value; + onChanged(); + } else { + autoscalingBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. Autoscaling configuration for the node pool.
+     * 
+ * + * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAutoscaling( + com.google.container.v1beta1.NodePoolAutoscaling.Builder builderForValue) { + if (autoscalingBuilder_ == null) { + autoscaling_ = builderForValue.build(); + onChanged(); + } else { + autoscalingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. Autoscaling configuration for the node pool.
+     * 
+ * + * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAutoscaling(com.google.container.v1beta1.NodePoolAutoscaling value) { + if (autoscalingBuilder_ == null) { + if (autoscaling_ != null) { + autoscaling_ = + com.google.container.v1beta1.NodePoolAutoscaling.newBuilder(autoscaling_) + .mergeFrom(value) + .buildPartial(); + } else { + autoscaling_ = value; + } + onChanged(); + } else { + autoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Autoscaling configuration for the node pool.
+     * 
+ * + * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAutoscaling() { + if (autoscalingBuilder_ == null) { + autoscaling_ = null; + onChanged(); + } else { + autoscaling_ = null; + autoscalingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Autoscaling configuration for the node pool.
+     * 
+ * + * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1beta1.NodePoolAutoscaling.Builder getAutoscalingBuilder() { + + onChanged(); + return getAutoscalingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Autoscaling configuration for the node pool.
+     * 
+ * + * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1beta1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder() { + if (autoscalingBuilder_ != null) { + return autoscalingBuilder_.getMessageOrBuilder(); + } else { + return autoscaling_ == null + ? com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() + : autoscaling_; + } + } + /** + * + * + *
+     * Required. Autoscaling configuration for the node pool.
+     * 
+ * + * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolAutoscaling, + com.google.container.v1beta1.NodePoolAutoscaling.Builder, + com.google.container.v1beta1.NodePoolAutoscalingOrBuilder> + getAutoscalingFieldBuilder() { + if (autoscalingBuilder_ == null) { + autoscalingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolAutoscaling, + com.google.container.v1beta1.NodePoolAutoscaling.Builder, + com.google.container.v1beta1.NodePoolAutoscalingOrBuilder>( + getAutoscaling(), getParentForChildren(), isClean()); + autoscaling_ = null; + } + return autoscalingBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster, node pool) of the node pool to set
+     * autoscaler settings. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool) of the node pool to set
+     * autoscaler settings. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool) of the node pool to set
+     * autoscaler settings. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool) of the node pool to set
+     * autoscaler settings. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool) of the node pool to set
+     * autoscaler settings. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetNodePoolAutoscalingRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetNodePoolAutoscalingRequest) + private static final com.google.container.v1beta1.SetNodePoolAutoscalingRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SetNodePoolAutoscalingRequest(); + } + + public static com.google.container.v1beta1.SetNodePoolAutoscalingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetNodePoolAutoscalingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..e61246b474d5 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequestOrBuilder.java @@ -0,0 +1,239 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface SetNodePoolAutoscalingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetNodePoolAutoscalingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=2563 + * @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=2563 + * @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=2572 + * @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=2572 + * @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=2579 + * @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=2579 + * @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=2586 + * @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=2586 + * @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 new file mode 100644 index 000000000000..09ee44a4cc8b --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequest.java @@ -0,0 +1,1790 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * SetNodePoolManagementRequest sets the node management properties of a node
+ * pool.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SetNodePoolManagementRequest} + */ +public final class SetNodePoolManagementRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetNodePoolManagementRequest) + SetNodePoolManagementRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetNodePoolManagementRequest.newBuilder() to construct. + private SetNodePoolManagementRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SetNodePoolManagementRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SetNodePoolManagementRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetNodePoolManagementRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetNodePoolManagementRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetNodePoolManagementRequest.class, + com.google.container.v1beta1.SetNodePoolManagementRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=3698 + * @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=3698 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Required. Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3707 + * @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=3707 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * Required. Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3714 + * @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=3714 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object nodePoolId_; + /** + * + * + *
+   * Required. Deprecated. The name of the node pool to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3721 + * @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=3721 + * @return The bytes for nodePoolId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MANAGEMENT_FIELD_NUMBER = 5; + private com.google.container.v1beta1.NodeManagement management_; + /** + * + * + *
+   * Required. NodeManagement configuration for the node pool.
+   * 
+ * + * + * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the management field is set. + */ + @java.lang.Override + public boolean hasManagement() { + return management_ != null; + } + /** + * + * + *
+   * Required. NodeManagement configuration for the node pool.
+   * 
+ * + * + * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The management. + */ + @java.lang.Override + public com.google.container.v1beta1.NodeManagement getManagement() { + return management_ == null + ? com.google.container.v1beta1.NodeManagement.getDefaultInstance() + : management_; + } + /** + * + * + *
+   * Required. NodeManagement configuration for the node pool.
+   * 
+ * + * + * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuilder() { + return getManagement(); + } + + public static final int NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * management properties. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 7; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * management properties. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 7; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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 (management_ != null) { + 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 (management_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + nodePoolId_ = ""; + + if (managementBuilder_ == null) { + management_ = null; + } else { + management_ = null; + managementBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetNodePoolManagementRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SetNodePoolManagementRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.SetNodePoolManagementRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SetNodePoolManagementRequest build() { + com.google.container.v1beta1.SetNodePoolManagementRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SetNodePoolManagementRequest buildPartial() { + com.google.container.v1beta1.SetNodePoolManagementRequest result = + new com.google.container.v1beta1.SetNodePoolManagementRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.nodePoolId_ = nodePoolId_; + if (managementBuilder_ == null) { + result.management_ = management_; + } else { + result.management_ = managementBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.SetNodePoolManagementRequest) { + return mergeFrom((com.google.container.v1beta1.SetNodePoolManagementRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SetNodePoolManagementRequest other) { + if (other == com.google.container.v1beta1.SetNodePoolManagementRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + onChanged(); + } + if (other.hasManagement()) { + mergeManagement(other.getManagement()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + nodePoolId_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + input.readMessage(getManagementFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 58: + { + name_ = input.readStringRequireUtf8(); + + 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 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=3698 + * @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=3698 + * @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=3698 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=3698 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=3698 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3707 + * @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=3707 + * @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=3707 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3707 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3707 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3714 + * @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=3714 + * @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=3714 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3714 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3714 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3721 + * @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=3721 + * @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=3721 + * @param value The nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodePoolId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3721 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearNodePoolId() { + + nodePoolId_ = getDefaultInstance().getNodePoolId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3721 + * @param value The bytes for nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodePoolId_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NodeManagement management_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeManagement, + com.google.container.v1beta1.NodeManagement.Builder, + com.google.container.v1beta1.NodeManagementOrBuilder> + managementBuilder_; + /** + * + * + *
+     * Required. NodeManagement configuration for the node pool.
+     * 
+ * + * + * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the management field is set. + */ + public boolean hasManagement() { + return managementBuilder_ != null || management_ != null; + } + /** + * + * + *
+     * Required. NodeManagement configuration for the node pool.
+     * 
+ * + * + * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The management. + */ + public com.google.container.v1beta1.NodeManagement getManagement() { + if (managementBuilder_ == null) { + return management_ == null + ? com.google.container.v1beta1.NodeManagement.getDefaultInstance() + : management_; + } else { + return managementBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. NodeManagement configuration for the node pool.
+     * 
+ * + * + * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setManagement(com.google.container.v1beta1.NodeManagement value) { + if (managementBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + management_ = value; + onChanged(); + } else { + managementBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. NodeManagement configuration for the node pool.
+     * 
+ * + * + * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setManagement( + com.google.container.v1beta1.NodeManagement.Builder builderForValue) { + if (managementBuilder_ == null) { + management_ = builderForValue.build(); + onChanged(); + } else { + managementBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. NodeManagement configuration for the node pool.
+     * 
+ * + * + * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeManagement(com.google.container.v1beta1.NodeManagement value) { + if (managementBuilder_ == null) { + if (management_ != null) { + management_ = + com.google.container.v1beta1.NodeManagement.newBuilder(management_) + .mergeFrom(value) + .buildPartial(); + } else { + management_ = value; + } + onChanged(); + } else { + managementBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. NodeManagement configuration for the node pool.
+     * 
+ * + * + * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearManagement() { + if (managementBuilder_ == null) { + management_ = null; + onChanged(); + } else { + management_ = null; + managementBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. NodeManagement configuration for the node pool.
+     * 
+ * + * + * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1beta1.NodeManagement.Builder getManagementBuilder() { + + onChanged(); + return getManagementFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. NodeManagement configuration for the node pool.
+     * 
+ * + * + * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuilder() { + if (managementBuilder_ != null) { + return managementBuilder_.getMessageOrBuilder(); + } else { + return management_ == null + ? com.google.container.v1beta1.NodeManagement.getDefaultInstance() + : management_; + } + } + /** + * + * + *
+     * Required. NodeManagement configuration for the node pool.
+     * 
+ * + * + * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeManagement, + com.google.container.v1beta1.NodeManagement.Builder, + com.google.container.v1beta1.NodeManagementOrBuilder> + getManagementFieldBuilder() { + if (managementBuilder_ == null) { + managementBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeManagement, + com.google.container.v1beta1.NodeManagement.Builder, + com.google.container.v1beta1.NodeManagementOrBuilder>( + getManagement(), getParentForChildren(), isClean()); + management_ = null; + } + return managementBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * management properties. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 7; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * management properties. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 7; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * management properties. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 7; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * management properties. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 7; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * management properties. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 7; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetNodePoolManagementRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetNodePoolManagementRequest) + private static final com.google.container.v1beta1.SetNodePoolManagementRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SetNodePoolManagementRequest(); + } + + public static com.google.container.v1beta1.SetNodePoolManagementRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetNodePoolManagementRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..aec7cff6c87a --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequestOrBuilder.java @@ -0,0 +1,239 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface SetNodePoolManagementRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetNodePoolManagementRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=3698 + * @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=3698 + * @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=3707 + * @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=3707 + * @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=3714 + * @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=3714 + * @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=3721 + * @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=3721 + * @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 new file mode 100644 index 000000000000..8dd79bd375c5 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequest.java @@ -0,0 +1,1586 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * SetNodePoolSizeRequest sets the size 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetNodePoolSizeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetNodePoolSizeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetNodePoolSizeRequest.class, + com.google.container.v1beta1.SetNodePoolSizeRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=3740 + * @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=3740 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Required. Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3749 + * @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=3749 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * Required. Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3756 + * @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=3756 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object nodePoolId_; + /** + * + * + *
+   * Required. Deprecated. The name of the node pool to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3763 + * @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=3763 + * @return The bytes for nodePoolId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_COUNT_FIELD_NUMBER = 5; + private int nodeCount_; + /** + * + * + *
+   * Required. The desired node count for the pool.
+   * 
+ * + * int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeCount. + */ + @java.lang.Override + public int getNodeCount() { + return nodeCount_; + } + + public static final int NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * size.
+   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 7; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * size.
+   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 7; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + nodePoolId_ = ""; + + nodeCount_ = 0; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetNodePoolSizeRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SetNodePoolSizeRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.SetNodePoolSizeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SetNodePoolSizeRequest build() { + com.google.container.v1beta1.SetNodePoolSizeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SetNodePoolSizeRequest buildPartial() { + com.google.container.v1beta1.SetNodePoolSizeRequest result = + new com.google.container.v1beta1.SetNodePoolSizeRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.nodePoolId_ = nodePoolId_; + result.nodeCount_ = nodeCount_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.SetNodePoolSizeRequest) { + return mergeFrom((com.google.container.v1beta1.SetNodePoolSizeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SetNodePoolSizeRequest other) { + if (other == com.google.container.v1beta1.SetNodePoolSizeRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + onChanged(); + } + if (other.getNodeCount() != 0) { + setNodeCount(other.getNodeCount()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + nodePoolId_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 40: + { + nodeCount_ = input.readInt32(); + + break; + } // case 40 + case 58: + { + name_ = input.readStringRequireUtf8(); + + 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 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=3740 + * @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=3740 + * @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=3740 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=3740 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=3740 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3749 + * @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=3749 + * @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=3749 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3749 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3749 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3756 + * @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=3756 + * @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=3756 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3756 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3756 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3763 + * @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=3763 + * @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=3763 + * @param value The nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodePoolId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3763 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearNodePoolId() { + + nodePoolId_ = getDefaultInstance().getNodePoolId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=3763 + * @param value The bytes for nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodePoolId_ = value; + onChanged(); + return this; + } + + private int nodeCount_; + /** + * + * + *
+     * Required. The desired node count for the pool.
+     * 
+ * + * int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeCount. + */ + @java.lang.Override + public int getNodeCount() { + return nodeCount_; + } + /** + * + * + *
+     * Required. The desired node count for the pool.
+     * 
+ * + * int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The nodeCount to set. + * @return This builder for chaining. + */ + public Builder setNodeCount(int value) { + + nodeCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The desired node count for the pool.
+     * 
+ * + * int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearNodeCount() { + + nodeCount_ = 0; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * size.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 7; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * size.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 7; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * size.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 7; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * size.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 7; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * size.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 7; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetNodePoolSizeRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetNodePoolSizeRequest) + private static final com.google.container.v1beta1.SetNodePoolSizeRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SetNodePoolSizeRequest(); + } + + public static com.google.container.v1beta1.SetNodePoolSizeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetNodePoolSizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..07d4e83b70ad --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequestOrBuilder.java @@ -0,0 +1,211 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface SetNodePoolSizeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetNodePoolSizeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=3740 + * @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=3740 + * @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=3749 + * @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=3749 + * @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=3756 + * @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=3756 + * @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=3763 + * @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=3763 + * @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 new file mode 100644 index 000000000000..9892d1c3aa75 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedInstanceConfig.java @@ -0,0 +1,646 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * A set of Shielded Instance options.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ShieldedInstanceConfig} + */ +public final class ShieldedInstanceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ShieldedInstanceConfig) + ShieldedInstanceConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ShieldedInstanceConfig.newBuilder() to construct. + private ShieldedInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ShieldedInstanceConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ShieldedInstanceConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ShieldedInstanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ShieldedInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ShieldedInstanceConfig.class, + com.google.container.v1beta1.ShieldedInstanceConfig.Builder.class); + } + + public static final int ENABLE_SECURE_BOOT_FIELD_NUMBER = 1; + private boolean enableSecureBoot_; + /** + * + * + *
+   * Defines whether the instance has Secure Boot enabled.
+   * Secure Boot helps ensure that the system only runs authentic software by
+   * verifying the digital signature of all boot components, and halting the
+   * boot process if signature verification fails.
+   * 
+ * + * bool enable_secure_boot = 1; + * + * @return The enableSecureBoot. + */ + @java.lang.Override + public boolean getEnableSecureBoot() { + return enableSecureBoot_; + } + + public static final int ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER = 2; + private boolean enableIntegrityMonitoring_; + /** + * + * + *
+   * Defines whether the instance has integrity monitoring enabled.
+   * Enables monitoring and attestation of the boot integrity of the instance.
+   * The attestation is performed against the integrity policy baseline. This
+   * baseline is initially derived from the implicitly trusted boot image when
+   * the instance is created.
+   * 
+ * + * bool enable_integrity_monitoring = 2; + * + * @return The enableIntegrityMonitoring. + */ + @java.lang.Override + public boolean getEnableIntegrityMonitoring() { + return enableIntegrityMonitoring_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enableSecureBoot_ != false) { + output.writeBool(1, enableSecureBoot_); + } + if (enableIntegrityMonitoring_ != false) { + output.writeBool(2, enableIntegrityMonitoring_); + } + 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(); + enableSecureBoot_ = false; + + enableIntegrityMonitoring_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ShieldedInstanceConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ShieldedInstanceConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.ShieldedInstanceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ShieldedInstanceConfig build() { + com.google.container.v1beta1.ShieldedInstanceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ShieldedInstanceConfig buildPartial() { + com.google.container.v1beta1.ShieldedInstanceConfig result = + new com.google.container.v1beta1.ShieldedInstanceConfig(this); + result.enableSecureBoot_ = enableSecureBoot_; + result.enableIntegrityMonitoring_ = enableIntegrityMonitoring_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ShieldedInstanceConfig) { + return mergeFrom((com.google.container.v1beta1.ShieldedInstanceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ShieldedInstanceConfig other) { + if (other == com.google.container.v1beta1.ShieldedInstanceConfig.getDefaultInstance()) + return this; + if (other.getEnableSecureBoot() != false) { + setEnableSecureBoot(other.getEnableSecureBoot()); + } + if (other.getEnableIntegrityMonitoring() != false) { + setEnableIntegrityMonitoring(other.getEnableIntegrityMonitoring()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 8 + case 16: + { + enableIntegrityMonitoring_ = input.readBool(); + + 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 boolean enableSecureBoot_; + /** + * + * + *
+     * Defines whether the instance has Secure Boot enabled.
+     * Secure Boot helps ensure that the system only runs authentic software by
+     * verifying the digital signature of all boot components, and halting the
+     * boot process if signature verification fails.
+     * 
+ * + * bool enable_secure_boot = 1; + * + * @return The enableSecureBoot. + */ + @java.lang.Override + public boolean getEnableSecureBoot() { + return enableSecureBoot_; + } + /** + * + * + *
+     * Defines whether the instance has Secure Boot enabled.
+     * Secure Boot helps ensure that the system only runs authentic software by
+     * verifying the digital signature of all boot components, and halting the
+     * boot process if signature verification fails.
+     * 
+ * + * bool enable_secure_boot = 1; + * + * @param value The enableSecureBoot to set. + * @return This builder for chaining. + */ + public Builder setEnableSecureBoot(boolean value) { + + enableSecureBoot_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Defines whether the instance has Secure Boot enabled.
+     * Secure Boot helps ensure that the system only runs authentic software by
+     * verifying the digital signature of all boot components, and halting the
+     * boot process if signature verification fails.
+     * 
+ * + * bool enable_secure_boot = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnableSecureBoot() { + + enableSecureBoot_ = false; + onChanged(); + return this; + } + + private boolean enableIntegrityMonitoring_; + /** + * + * + *
+     * Defines whether the instance has integrity monitoring enabled.
+     * Enables monitoring and attestation of the boot integrity of the instance.
+     * The attestation is performed against the integrity policy baseline. This
+     * baseline is initially derived from the implicitly trusted boot image when
+     * the instance is created.
+     * 
+ * + * bool enable_integrity_monitoring = 2; + * + * @return The enableIntegrityMonitoring. + */ + @java.lang.Override + public boolean getEnableIntegrityMonitoring() { + return enableIntegrityMonitoring_; + } + /** + * + * + *
+     * Defines whether the instance has integrity monitoring enabled.
+     * Enables monitoring and attestation of the boot integrity of the instance.
+     * The attestation is performed against the integrity policy baseline. This
+     * baseline is initially derived from the implicitly trusted boot image when
+     * the instance is created.
+     * 
+ * + * bool enable_integrity_monitoring = 2; + * + * @param value The enableIntegrityMonitoring to set. + * @return This builder for chaining. + */ + public Builder setEnableIntegrityMonitoring(boolean value) { + + enableIntegrityMonitoring_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Defines whether the instance has integrity monitoring enabled.
+     * Enables monitoring and attestation of the boot integrity of the instance.
+     * The attestation is performed against the integrity policy baseline. This
+     * baseline is initially derived from the implicitly trusted boot image when
+     * the instance is created.
+     * 
+ * + * bool enable_integrity_monitoring = 2; + * + * @return This builder for chaining. + */ + public Builder clearEnableIntegrityMonitoring() { + + enableIntegrityMonitoring_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ShieldedInstanceConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ShieldedInstanceConfig) + private static final com.google.container.v1beta1.ShieldedInstanceConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ShieldedInstanceConfig(); + } + + public static com.google.container.v1beta1.ShieldedInstanceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ShieldedInstanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..2ed7d031a6e0 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedInstanceConfigOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ShieldedInstanceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ShieldedInstanceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Defines whether the instance has Secure Boot enabled.
+   * Secure Boot helps ensure that the system only runs authentic software by
+   * verifying the digital signature of all boot components, and halting the
+   * boot process if signature verification fails.
+   * 
+ * + * bool enable_secure_boot = 1; + * + * @return The enableSecureBoot. + */ + boolean getEnableSecureBoot(); + + /** + * + * + *
+   * Defines whether the instance has integrity monitoring enabled.
+   * Enables monitoring and attestation of the boot integrity of the instance.
+   * The attestation is performed against the integrity policy baseline. This
+   * baseline is initially derived from the implicitly trusted boot image when
+   * the instance is created.
+   * 
+ * + * bool enable_integrity_monitoring = 2; + * + * @return The enableIntegrityMonitoring. + */ + boolean getEnableIntegrityMonitoring(); +} diff --git a/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 new file mode 100644 index 000000000000..bdde06d53925 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedNodes.java @@ -0,0 +1,526 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration of Shielded Nodes feature.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ShieldedNodes} + */ +public final class ShieldedNodes extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ShieldedNodes) + ShieldedNodesOrBuilder { + private static final long serialVersionUID = 0L; + // Use ShieldedNodes.newBuilder() to construct. + private ShieldedNodes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ShieldedNodes() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ShieldedNodes(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ShieldedNodes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ShieldedNodes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ShieldedNodes.class, + com.google.container.v1beta1.ShieldedNodes.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether Shielded Nodes features are enabled on all nodes in this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + 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(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ShieldedNodes_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ShieldedNodes getDefaultInstanceForType() { + return com.google.container.v1beta1.ShieldedNodes.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ShieldedNodes build() { + com.google.container.v1beta1.ShieldedNodes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ShieldedNodes buildPartial() { + com.google.container.v1beta1.ShieldedNodes result = + new com.google.container.v1beta1.ShieldedNodes(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ShieldedNodes) { + return mergeFrom((com.google.container.v1beta1.ShieldedNodes) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ShieldedNodes other) { + if (other == com.google.container.v1beta1.ShieldedNodes.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 boolean enabled_; + /** + * + * + *
+     * Whether Shielded Nodes features are enabled on all nodes in this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether Shielded Nodes features are enabled on all nodes in this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether Shielded Nodes features are enabled on all nodes in this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ShieldedNodes) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ShieldedNodes) + private static final com.google.container.v1beta1.ShieldedNodes DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ShieldedNodes(); + } + + public static com.google.container.v1beta1.ShieldedNodes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ShieldedNodes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..9342c124cffd --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedNodesOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ShieldedNodesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ShieldedNodes) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether Shielded Nodes features are enabled on all nodes in this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/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 new file mode 100644 index 000000000000..feb41cd1d549 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequest.java @@ -0,0 +1,1368 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * StartIPRotationRequest creates a new IP for the cluster and then performs
+ * a node upgrade on each node pool to point to the new IP.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.StartIPRotationRequest} + */ +public final class StartIPRotationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.StartIPRotationRequest) + StartIPRotationRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use StartIPRotationRequest.newBuilder() to construct. + private StartIPRotationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StartIPRotationRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StartIPRotationRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_StartIPRotationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_StartIPRotationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.StartIPRotationRequest.class, + com.google.container.v1beta1.StartIPRotationRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=4092 + * @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=4092 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Required. Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See + * google/container/v1beta1/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; + } + } + /** + * + * + *
+   * Required. Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This 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=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; + 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=4108 + * @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=4108 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster 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_; + /** + * + * + *
+   * 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(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + name_ = ""; + + rotateCredentials_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_StartIPRotationRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.StartIPRotationRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.StartIPRotationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.StartIPRotationRequest build() { + com.google.container.v1beta1.StartIPRotationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.StartIPRotationRequest buildPartial() { + com.google.container.v1beta1.StartIPRotationRequest result = + new com.google.container.v1beta1.StartIPRotationRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.name_ = name_; + result.rotateCredentials_ = rotateCredentials_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.StartIPRotationRequest) { + return mergeFrom((com.google.container.v1beta1.StartIPRotationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.StartIPRotationRequest other) { + if (other == com.google.container.v1beta1.StartIPRotationRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getRotateCredentials() != false) { + setRotateCredentials(other.getRotateCredentials()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 50: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 56: + { + rotateCredentials_ = input.readBool(); + + 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 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=4092 + * @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=4092 + * @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=4092 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=4092 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=4092 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See + * google/container/v1beta1/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; + } + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This 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=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; + } + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This 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=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; + 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=4101 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See + * google/container/v1beta1/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; + 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=4108 + * @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=4108 + * @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=4108 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=4108 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=4108 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster 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; + 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(); + 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; + onChanged(); + return this; + } + + private boolean rotateCredentials_; + /** + * + * + *
+     * Whether to rotate credentials during IP rotation.
+     * 
+ * + * bool rotate_credentials = 7; + * + * @return The rotateCredentials. + */ + @java.lang.Override + public boolean getRotateCredentials() { + return rotateCredentials_; + } + /** + * + * + *
+     * Whether to rotate credentials during IP rotation.
+     * 
+ * + * bool rotate_credentials = 7; + * + * @param value The rotateCredentials to set. + * @return This builder for chaining. + */ + public Builder setRotateCredentials(boolean value) { + + rotateCredentials_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether to rotate credentials during IP rotation.
+     * 
+ * + * bool rotate_credentials = 7; + * + * @return This builder for chaining. + */ + public Builder clearRotateCredentials() { + + rotateCredentials_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.StartIPRotationRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.StartIPRotationRequest) + private static final com.google.container.v1beta1.StartIPRotationRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.StartIPRotationRequest(); + } + + public static com.google.container.v1beta1.StartIPRotationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartIPRotationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..590bdc7c1a0f --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequestOrBuilder.java @@ -0,0 +1,174 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface StartIPRotationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.StartIPRotationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=4092 + * @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=4092 + * @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=4101 + * @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=4101 + * @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=4108 + * @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=4108 + * @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/StatusCondition.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusCondition.java new file mode 100644 index 000000000000..2a5b26edbf91 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusCondition.java @@ -0,0 +1,1196 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * StatusCondition describes why a cluster or a node pool has a certain status
+ * (e.g., ERROR or DEGRADED).
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.StatusCondition} + */ +public final class StatusCondition extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.StatusCondition) + StatusConditionOrBuilder { + private static final long serialVersionUID = 0L; + // Use StatusCondition.newBuilder() to construct. + private StatusCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StatusCondition() { + code_ = 0; + message_ = ""; + canonicalCode_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StatusCondition(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * 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=4395 + * @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=4395 + * @return The code. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.container.v1beta1.StatusCondition.Code getCode() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.StatusCondition.Code result = + com.google.container.v1beta1.StatusCondition.Code.valueOf(code_); + return result == null ? com.google.container.v1beta1.StatusCondition.Code.UNRECOGNIZED : result; + } + + public static final int MESSAGE_FIELD_NUMBER = 2; + private volatile java.lang.Object message_; + /** + * + * + *
+   * Human-friendly representation of the condition
+   * 
+ * + * string message = 2; + * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + /** + * + * + *
+   * Human-friendly representation of the condition
+   * 
+ * + * string message = 2; + * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CANONICAL_CODE_FIELD_NUMBER = 3; + private int canonicalCode_; + /** + * + * + *
+   * Canonical code of the condition.
+   * 
+ * + * .google.rpc.Code canonical_code = 3; + * + * @return The enum numeric value on the wire for canonicalCode. + */ + @java.lang.Override + public int getCanonicalCodeValue() { + return canonicalCode_; + } + /** + * + * + *
+   * Canonical code of the condition.
+   * 
+ * + * .google.rpc.Code canonical_code = 3; + * + * @return The canonicalCode. + */ + @java.lang.Override + public com.google.rpc.Code getCanonicalCode() { + @SuppressWarnings("deprecation") + com.google.rpc.Code result = com.google.rpc.Code.valueOf(canonicalCode_); + return result == null ? com.google.rpc.Code.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (code_ != com.google.container.v1beta1.StatusCondition.Code.UNKNOWN.getNumber()) { + output.writeEnum(1, code_); + } + if (!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(); + code_ = 0; + + message_ = ""; + + canonicalCode_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_StatusCondition_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.StatusCondition getDefaultInstanceForType() { + return com.google.container.v1beta1.StatusCondition.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.StatusCondition build() { + com.google.container.v1beta1.StatusCondition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.StatusCondition buildPartial() { + com.google.container.v1beta1.StatusCondition result = + new com.google.container.v1beta1.StatusCondition(this); + result.code_ = code_; + result.message_ = message_; + result.canonicalCode_ = canonicalCode_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.StatusCondition) { + return mergeFrom((com.google.container.v1beta1.StatusCondition) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.StatusCondition other) { + if (other == com.google.container.v1beta1.StatusCondition.getDefaultInstance()) return this; + if (other.code_ != 0) { + setCodeValue(other.getCodeValue()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (other.canonicalCode_ != 0) { + setCanonicalCodeValue(other.getCanonicalCodeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 8 + case 18: + { + message_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + canonicalCode_ = input.readEnum(); + + 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 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=4395 + * @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=4395 + * @param value The enum numeric value on the wire for code to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setCodeValue(int value) { + + code_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Machine-friendly representation of the condition
+     * Deprecated. Use canonical_code instead.
+     * 
+ * + * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; + * + * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=4395 + * @return The code. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.container.v1beta1.StatusCondition.Code getCode() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.StatusCondition.Code result = + com.google.container.v1beta1.StatusCondition.Code.valueOf(code_); + return result == null + ? com.google.container.v1beta1.StatusCondition.Code.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Machine-friendly representation of the condition
+     * Deprecated. Use canonical_code instead.
+     * 
+ * + * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; + * + * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=4395 + * @param value The code to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setCode(com.google.container.v1beta1.StatusCondition.Code value) { + if (value == null) { + throw new NullPointerException(); + } + + code_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Machine-friendly representation of the condition
+     * Deprecated. Use canonical_code instead.
+     * 
+ * + * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; + * + * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=4395 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearCode() { + + code_ = 0; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + * + * + *
+     * Human-friendly representation of the condition
+     * 
+ * + * string message = 2; + * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Human-friendly representation of the condition
+     * 
+ * + * string message = 2; + * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Human-friendly representation of the condition
+     * 
+ * + * string message = 2; + * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Human-friendly representation of the condition
+     * 
+ * + * string message = 2; + * + * @return This builder for chaining. + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + * + * + *
+     * Human-friendly representation of the condition
+     * 
+ * + * string message = 2; + * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + + private int canonicalCode_ = 0; + /** + * + * + *
+     * Canonical code of the condition.
+     * 
+ * + * .google.rpc.Code canonical_code = 3; + * + * @return The enum numeric value on the wire for canonicalCode. + */ + @java.lang.Override + public int getCanonicalCodeValue() { + return canonicalCode_; + } + /** + * + * + *
+     * Canonical code of the condition.
+     * 
+ * + * .google.rpc.Code canonical_code = 3; + * + * @param value The enum numeric value on the wire for canonicalCode to set. + * @return This builder for chaining. + */ + public Builder setCanonicalCodeValue(int value) { + + canonicalCode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Canonical code of the condition.
+     * 
+ * + * .google.rpc.Code canonical_code = 3; + * + * @return The canonicalCode. + */ + @java.lang.Override + public com.google.rpc.Code getCanonicalCode() { + @SuppressWarnings("deprecation") + com.google.rpc.Code result = com.google.rpc.Code.valueOf(canonicalCode_); + return result == null ? com.google.rpc.Code.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Canonical code of the condition.
+     * 
+ * + * .google.rpc.Code canonical_code = 3; + * + * @param value The canonicalCode to set. + * @return This builder for chaining. + */ + public Builder setCanonicalCode(com.google.rpc.Code value) { + if (value == null) { + throw new NullPointerException(); + } + + canonicalCode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Canonical code of the condition.
+     * 
+ * + * .google.rpc.Code canonical_code = 3; + * + * @return This builder for chaining. + */ + public Builder clearCanonicalCode() { + + canonicalCode_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.StatusCondition) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.StatusCondition) + private static final com.google.container.v1beta1.StatusCondition DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.StatusCondition(); + } + + public static com.google.container.v1beta1.StatusCondition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StatusCondition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..3d21e1ba1e2e --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusConditionOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface 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=4395 + * @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=4395 + * @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 new file mode 100644 index 000000000000..b6d2e7b2eb4f --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TimeWindow.java @@ -0,0 +1,1379 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Represents an arbitrary window of time.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.TimeWindow} + */ +public final class TimeWindow extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.TimeWindow) + TimeWindowOrBuilder { + private static final long serialVersionUID = 0L; + // Use TimeWindow.newBuilder() to construct. + private TimeWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TimeWindow() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TimeWindow(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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 optionsCase_ = 0; + private java.lang.Object options_; + + public enum OptionsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + MAINTENANCE_EXCLUSION_OPTIONS(3), + OPTIONS_NOT_SET(0); + private final int value; + + private OptionsCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OptionsCase valueOf(int value) { + return forNumber(value); + } + + public static OptionsCase forNumber(int value) { + switch (value) { + case 3: + return MAINTENANCE_EXCLUSION_OPTIONS; + case 0: + return OPTIONS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OptionsCase getOptionsCase() { + return OptionsCase.forNumber(optionsCase_); + } + + public static final int MAINTENANCE_EXCLUSION_OPTIONS_FIELD_NUMBER = 3; + /** + * + * + *
+   * MaintenanceExclusionOptions provides maintenance exclusion related
+   * options.
+   * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * + * + * @return Whether the maintenanceExclusionOptions field is set. + */ + @java.lang.Override + public boolean hasMaintenanceExclusionOptions() { + return optionsCase_ == 3; + } + /** + * + * + *
+   * MaintenanceExclusionOptions provides maintenance exclusion related
+   * options.
+   * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * + * + * @return The maintenanceExclusionOptions. + */ + @java.lang.Override + public com.google.container.v1beta1.MaintenanceExclusionOptions getMaintenanceExclusionOptions() { + if (optionsCase_ == 3) { + return (com.google.container.v1beta1.MaintenanceExclusionOptions) options_; + } + return com.google.container.v1beta1.MaintenanceExclusionOptions.getDefaultInstance(); + } + /** + * + * + *
+   * MaintenanceExclusionOptions provides maintenance exclusion related
+   * options.
+   * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * + */ + @java.lang.Override + public com.google.container.v1beta1.MaintenanceExclusionOptionsOrBuilder + getMaintenanceExclusionOptionsOrBuilder() { + if (optionsCase_ == 3) { + return (com.google.container.v1beta1.MaintenanceExclusionOptions) options_; + } + return com.google.container.v1beta1.MaintenanceExclusionOptions.getDefaultInstance(); + } + + public static final int START_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+   * The time that the window first starts.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return startTime_ != null; + } + /** + * + * + *
+   * The time that the window first starts.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+   * The time that the window first starts.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return getStartTime(); + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+   * The time that the window ends. The end time should take place after the
+   * start time.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return endTime_ != null; + } + /** + * + * + *
+   * The time that the window ends. The end time should take place after the
+   * start time.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+   * The time that the window ends. The end time should take place after the
+   * start time.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return getEndTime(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (startTime_ != null) { + output.writeMessage(1, getStartTime()); + } + if (endTime_ != null) { + output.writeMessage(2, getEndTime()); + } + 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 (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); + } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (optionsCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.container.v1beta1.MaintenanceExclusionOptions) options_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (maintenanceExclusionOptionsBuilder_ != null) { + maintenanceExclusionOptionsBuilder_.clear(); + } + if (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + 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 (optionsCase_ == 3) { + if (maintenanceExclusionOptionsBuilder_ == null) { + result.options_ = options_; + } else { + result.options_ = maintenanceExclusionOptionsBuilder_.build(); + } + } + if (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.build(); + } + result.optionsCase_ = optionsCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.TimeWindow) { + return mergeFrom((com.google.container.v1beta1.TimeWindow) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.TimeWindow other) { + if (other == com.google.container.v1beta1.TimeWindow.getDefaultInstance()) return this; + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + 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); + + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + + 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 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 startTimeBuilder_ != null || startTime_ != null; + } + /** + * + * + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + onChanged(); + } else { + startTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (startTime_ != null) { + startTime_ = + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + } else { + startTime_ = value; + } + onChanged(); + } else { + startTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+     * The time that the window ends. The end time should take place after the
+     * start time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; + } + /** + * + * + *
+     * The time that the window ends. The end time should take place after the
+     * start time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The time that the window ends. The end time should take place after the
+     * start time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + onChanged(); + } else { + endTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The time that the window ends. The end time should take place after the
+     * start time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The time that the window ends. The end time should take place after the
+     * start time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (endTime_ != null) { + endTime_ = + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + } else { + endTime_ = value; + } + onChanged(); + } else { + endTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The time that the window ends. The end time should take place after the
+     * start time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time that the window ends. The end time should take place after the
+     * start time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time that the window ends. The end time should take place after the
+     * start time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+     * The time that the window ends. The end time should take place after the
+     * start time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.TimeWindow) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.TimeWindow) + private static final com.google.container.v1beta1.TimeWindow DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.TimeWindow(); + } + + public static com.google.container.v1beta1.TimeWindow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeWindow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..5c908f22e495 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TimeWindowOrBuilder.java @@ -0,0 +1,142 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface TimeWindowOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.TimeWindow) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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(); + + public 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 new file mode 100644 index 000000000000..fba03a119c1f --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TpuConfig.java @@ -0,0 +1,795 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration for Cloud TPU.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.TpuConfig} + */ +public final class TpuConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.TpuConfig) + TpuConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use TpuConfig.newBuilder() to construct. + private TpuConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TpuConfig() { + ipv4CidrBlock_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TpuConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_TpuConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_TpuConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.TpuConfig.class, + com.google.container.v1beta1.TpuConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether Cloud TPU integration is enabled or not.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int USE_SERVICE_NETWORKING_FIELD_NUMBER = 2; + private boolean useServiceNetworking_; + /** + * + * + *
+   * Whether to use service networking for Cloud TPU or not.
+   * 
+ * + * bool use_service_networking = 2; + * + * @return The useServiceNetworking. + */ + @java.lang.Override + public boolean getUseServiceNetworking() { + return useServiceNetworking_; + } + + public static final int IPV4_CIDR_BLOCK_FIELD_NUMBER = 3; + private volatile java.lang.Object ipv4CidrBlock_; + /** + * + * + *
+   * IPv4 CIDR block reserved for Cloud TPU in the VPC.
+   * 
+ * + * string ipv4_cidr_block = 3; + * + * @return The ipv4CidrBlock. + */ + @java.lang.Override + public java.lang.String getIpv4CidrBlock() { + java.lang.Object ref = ipv4CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipv4CidrBlock_ = s; + return s; + } + } + /** + * + * + *
+   * IPv4 CIDR block reserved for Cloud TPU in the VPC.
+   * 
+ * + * string ipv4_cidr_block = 3; + * + * @return The bytes for ipv4CidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIpv4CidrBlockBytes() { + java.lang.Object ref = ipv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + if (useServiceNetworking_ != false) { + output.writeBool(2, useServiceNetworking_); + } + if (!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(); + enabled_ = false; + + useServiceNetworking_ = false; + + ipv4CidrBlock_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_TpuConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.TpuConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.TpuConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.TpuConfig build() { + com.google.container.v1beta1.TpuConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.TpuConfig buildPartial() { + com.google.container.v1beta1.TpuConfig result = + new com.google.container.v1beta1.TpuConfig(this); + result.enabled_ = enabled_; + result.useServiceNetworking_ = useServiceNetworking_; + result.ipv4CidrBlock_ = ipv4CidrBlock_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.TpuConfig) { + return mergeFrom((com.google.container.v1beta1.TpuConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.TpuConfig other) { + if (other == com.google.container.v1beta1.TpuConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (other.getUseServiceNetworking() != false) { + setUseServiceNetworking(other.getUseServiceNetworking()); + } + if (!other.getIpv4CidrBlock().isEmpty()) { + ipv4CidrBlock_ = other.ipv4CidrBlock_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 8 + case 16: + { + useServiceNetworking_ = input.readBool(); + + break; + } // case 16 + case 26: + { + ipv4CidrBlock_ = input.readStringRequireUtf8(); + + 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 boolean enabled_; + /** + * + * + *
+     * Whether Cloud TPU integration is enabled or not.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether Cloud TPU integration is enabled or not.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether Cloud TPU integration is enabled or not.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + private boolean useServiceNetworking_; + /** + * + * + *
+     * Whether to use service networking for Cloud TPU or not.
+     * 
+ * + * bool use_service_networking = 2; + * + * @return The useServiceNetworking. + */ + @java.lang.Override + public boolean getUseServiceNetworking() { + return useServiceNetworking_; + } + /** + * + * + *
+     * Whether to use service networking for Cloud TPU or not.
+     * 
+ * + * bool use_service_networking = 2; + * + * @param value The useServiceNetworking to set. + * @return This builder for chaining. + */ + public Builder setUseServiceNetworking(boolean value) { + + useServiceNetworking_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether to use service networking for Cloud TPU or not.
+     * 
+ * + * bool use_service_networking = 2; + * + * @return This builder for chaining. + */ + public Builder clearUseServiceNetworking() { + + useServiceNetworking_ = false; + onChanged(); + return this; + } + + private java.lang.Object ipv4CidrBlock_ = ""; + /** + * + * + *
+     * IPv4 CIDR block reserved for Cloud TPU in the VPC.
+     * 
+ * + * string ipv4_cidr_block = 3; + * + * @return The ipv4CidrBlock. + */ + public java.lang.String getIpv4CidrBlock() { + java.lang.Object ref = ipv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * IPv4 CIDR block reserved for Cloud TPU in the VPC.
+     * 
+ * + * string ipv4_cidr_block = 3; + * + * @return The bytes for ipv4CidrBlock. + */ + public com.google.protobuf.ByteString getIpv4CidrBlockBytes() { + java.lang.Object ref = ipv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * IPv4 CIDR block reserved for Cloud TPU in the VPC.
+     * 
+ * + * string ipv4_cidr_block = 3; + * + * @param value The ipv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setIpv4CidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ipv4CidrBlock_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * IPv4 CIDR block reserved for Cloud TPU in the VPC.
+     * 
+ * + * string ipv4_cidr_block = 3; + * + * @return This builder for chaining. + */ + public Builder clearIpv4CidrBlock() { + + ipv4CidrBlock_ = getDefaultInstance().getIpv4CidrBlock(); + onChanged(); + return this; + } + /** + * + * + *
+     * IPv4 CIDR block reserved for Cloud TPU in the VPC.
+     * 
+ * + * string ipv4_cidr_block = 3; + * + * @param value The bytes for ipv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ipv4CidrBlock_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.TpuConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.TpuConfig) + private static final com.google.container.v1beta1.TpuConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.TpuConfig(); + } + + public static com.google.container.v1beta1.TpuConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TpuConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..3ad14a486a12 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TpuConfigOrBuilder.java @@ -0,0 +1,76 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface TpuConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.TpuConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether Cloud TPU integration is enabled or not.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); + + /** + * + * + *
+   * Whether to use service networking for Cloud TPU or not.
+   * 
+ * + * bool use_service_networking = 2; + * + * @return The useServiceNetworking. + */ + boolean getUseServiceNetworking(); + + /** + * + * + *
+   * IPv4 CIDR block reserved for Cloud TPU in the VPC.
+   * 
+ * + * string ipv4_cidr_block = 3; + * + * @return The ipv4CidrBlock. + */ + java.lang.String getIpv4CidrBlock(); + /** + * + * + *
+   * IPv4 CIDR block reserved for Cloud TPU in the VPC.
+   * 
+ * + * string ipv4_cidr_block = 3; + * + * @return The bytes for ipv4CidrBlock. + */ + com.google.protobuf.ByteString getIpv4CidrBlockBytes(); +} diff --git a/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 new file mode 100644 index 000000000000..77ecd909f6dc --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequest.java @@ -0,0 +1,1566 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * UpdateClusterRequest updates the settings of a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.UpdateClusterRequest} + */ +public final class UpdateClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.UpdateClusterRequest) + UpdateClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateClusterRequest.newBuilder() to construct. + private UpdateClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateClusterRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateClusterRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UpdateClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UpdateClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.UpdateClusterRequest.class, + com.google.container.v1beta1.UpdateClusterRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=2420 + * @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=2420 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Required. Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2429 + * @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=2429 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * Required. Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2436 + * @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=2436 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UPDATE_FIELD_NUMBER = 4; + private com.google.container.v1beta1.ClusterUpdate update_; + /** + * + * + *
+   * Required. A description of the update.
+   * 
+ * + * + * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the update field is set. + */ + @java.lang.Override + public boolean hasUpdate() { + return update_ != null; + } + /** + * + * + *
+   * Required. A description of the update.
+   * 
+ * + * + * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The update. + */ + @java.lang.Override + public com.google.container.v1beta1.ClusterUpdate getUpdate() { + return update_ == null + ? com.google.container.v1beta1.ClusterUpdate.getDefaultInstance() + : update_; + } + /** + * + * + *
+   * Required. A description of the update.
+   * 
+ * + * + * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.container.v1beta1.ClusterUpdateOrBuilder getUpdateOrBuilder() { + return getUpdate(); + } + + public static final int NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 5; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 5; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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 (update_ != null) { + 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 (update_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + if (updateBuilder_ == null) { + update_ = null; + } else { + update_ = null; + updateBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UpdateClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.UpdateClusterRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.UpdateClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.UpdateClusterRequest build() { + com.google.container.v1beta1.UpdateClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.UpdateClusterRequest buildPartial() { + com.google.container.v1beta1.UpdateClusterRequest result = + new com.google.container.v1beta1.UpdateClusterRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + if (updateBuilder_ == null) { + result.update_ = update_; + } else { + result.update_ = updateBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.UpdateClusterRequest) { + return mergeFrom((com.google.container.v1beta1.UpdateClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.UpdateClusterRequest other) { + if (other == com.google.container.v1beta1.UpdateClusterRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (other.hasUpdate()) { + mergeUpdate(other.getUpdate()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + input.readMessage(getUpdateFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + name_ = input.readStringRequireUtf8(); + + 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 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=2420 + * @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=2420 + * @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=2420 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=2420 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=2420 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2429 + * @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=2429 + * @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=2429 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2429 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2429 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2436 + * @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=2436 + * @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=2436 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2436 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2436 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.ClusterUpdate update_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterUpdate, + com.google.container.v1beta1.ClusterUpdate.Builder, + com.google.container.v1beta1.ClusterUpdateOrBuilder> + updateBuilder_; + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the update field is set. + */ + public boolean hasUpdate() { + return updateBuilder_ != null || update_ != null; + } + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The update. + */ + public com.google.container.v1beta1.ClusterUpdate getUpdate() { + if (updateBuilder_ == null) { + return update_ == null + ? com.google.container.v1beta1.ClusterUpdate.getDefaultInstance() + : update_; + } else { + return updateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdate(com.google.container.v1beta1.ClusterUpdate value) { + if (updateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + update_ = value; + onChanged(); + } else { + updateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdate(com.google.container.v1beta1.ClusterUpdate.Builder builderForValue) { + if (updateBuilder_ == null) { + update_ = builderForValue.build(); + onChanged(); + } else { + updateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdate(com.google.container.v1beta1.ClusterUpdate value) { + if (updateBuilder_ == null) { + if (update_ != null) { + update_ = + com.google.container.v1beta1.ClusterUpdate.newBuilder(update_) + .mergeFrom(value) + .buildPartial(); + } else { + update_ = value; + } + onChanged(); + } else { + updateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdate() { + if (updateBuilder_ == null) { + update_ = null; + onChanged(); + } else { + update_ = null; + updateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1beta1.ClusterUpdate.Builder getUpdateBuilder() { + + onChanged(); + return getUpdateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1beta1.ClusterUpdateOrBuilder getUpdateOrBuilder() { + if (updateBuilder_ != null) { + return updateBuilder_.getMessageOrBuilder(); + } else { + return update_ == null + ? com.google.container.v1beta1.ClusterUpdate.getDefaultInstance() + : update_; + } + } + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterUpdate, + com.google.container.v1beta1.ClusterUpdate.Builder, + com.google.container.v1beta1.ClusterUpdateOrBuilder> + getUpdateFieldBuilder() { + if (updateBuilder_ == null) { + updateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterUpdate, + com.google.container.v1beta1.ClusterUpdate.Builder, + com.google.container.v1beta1.ClusterUpdateOrBuilder>( + getUpdate(), getParentForChildren(), isClean()); + update_ = null; + } + return updateBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.UpdateClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.UpdateClusterRequest) + private static final com.google.container.v1beta1.UpdateClusterRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.UpdateClusterRequest(); + } + + public static com.google.container.v1beta1.UpdateClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..3f00e6a0757b --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequestOrBuilder.java @@ -0,0 +1,202 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface UpdateClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.UpdateClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=2420 + * @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=2420 + * @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=2429 + * @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=2429 + * @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=2436 + * @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=2436 + * @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 new file mode 100644 index 000000000000..2523cb27e1a9 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequest.java @@ -0,0 +1,1502 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * UpdateMasterRequest updates the master of the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.UpdateMasterRequest} + */ +public final class UpdateMasterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.UpdateMasterRequest) + UpdateMasterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateMasterRequest.newBuilder() to construct. + private UpdateMasterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateMasterRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + masterVersion_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateMasterRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UpdateMasterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UpdateMasterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.UpdateMasterRequest.class, + com.google.container.v1beta1.UpdateMasterRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=2768 + * @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=2768 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Required. Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2777 + * @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=2777 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * Required. Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2784 + * @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=2784 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MASTER_VERSION_FIELD_NUMBER = 4; + private volatile java.lang.Object masterVersion_; + /** + * + * + *
+   * Required. The Kubernetes version to change the master to.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
+   * 
+ * + * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The masterVersion. + */ + @java.lang.Override + public java.lang.String getMasterVersion() { + java.lang.Object ref = masterVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + masterVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The Kubernetes version to change the master to.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
+   * 
+ * + * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for masterVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMasterVersionBytes() { + java.lang.Object ref = masterVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + masterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 7; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 7; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + masterVersion_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UpdateMasterRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.UpdateMasterRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.UpdateMasterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.UpdateMasterRequest build() { + com.google.container.v1beta1.UpdateMasterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.UpdateMasterRequest buildPartial() { + com.google.container.v1beta1.UpdateMasterRequest result = + new com.google.container.v1beta1.UpdateMasterRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.masterVersion_ = masterVersion_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.UpdateMasterRequest) { + return mergeFrom((com.google.container.v1beta1.UpdateMasterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.UpdateMasterRequest other) { + if (other == com.google.container.v1beta1.UpdateMasterRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getMasterVersion().isEmpty()) { + masterVersion_ = other.masterVersion_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + masterVersion_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 58: + { + name_ = input.readStringRequireUtf8(); + + 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 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=2768 + * @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=2768 + * @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=2768 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=2768 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=2768 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2777 + * @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=2777 + * @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=2777 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2777 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2777 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2784 + * @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=2784 + * @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=2784 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2784 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2784 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object masterVersion_ = ""; + /** + * + * + *
+     * Required. The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The masterVersion. + */ + public java.lang.String getMasterVersion() { + java.lang.Object ref = masterVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + masterVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for masterVersion. + */ + public com.google.protobuf.ByteString getMasterVersionBytes() { + java.lang.Object ref = masterVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + masterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The masterVersion to set. + * @return This builder for chaining. + */ + public Builder setMasterVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + masterVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMasterVersion() { + + masterVersion_ = getDefaultInstance().getMasterVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for masterVersion to set. + * @return This builder for chaining. + */ + public Builder setMasterVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + masterVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.UpdateMasterRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.UpdateMasterRequest) + private static final com.google.container.v1beta1.UpdateMasterRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.UpdateMasterRequest(); + } + + public static com.google.container.v1beta1.UpdateMasterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateMasterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..a02fd785f581 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequestOrBuilder.java @@ -0,0 +1,200 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface UpdateMasterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.UpdateMasterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=2768 + * @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=2768 + * @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=2777 + * @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=2777 + * @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=2784 + * @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=2784 + * @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 new file mode 100644 index 000000000000..b3a0b4a1558b --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequest.java @@ -0,0 +1,5813 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * SetNodePoolVersionRequest updates the version of a node pool.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.UpdateNodePoolRequest} + */ +public final class UpdateNodePoolRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.UpdateNodePoolRequest) + UpdateNodePoolRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateNodePoolRequest.newBuilder() to construct. + private UpdateNodePoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateNodePoolRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + nodeVersion_ = ""; + imageType_ = ""; + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateNodePoolRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UpdateNodePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UpdateNodePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.UpdateNodePoolRequest.class, + com.google.container.v1beta1.UpdateNodePoolRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field 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=2454 + * @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=2454 + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Required. Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2463 + * @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=2463 + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * Required. Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2470 + * @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=2470 + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object nodePoolId_; + /** + * + * + *
+   * Required. Deprecated. The name of the node pool to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2477 + * @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=2477 + * @return The bytes for nodePoolId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_VERSION_FIELD_NUMBER = 5; + private volatile java.lang.Object nodeVersion_; + /** + * + * + *
+   * Required. The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by Kubernetes Engine or
+   * version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeVersion. + */ + @java.lang.Override + public java.lang.String getNodeVersion() { + java.lang.Object ref = nodeVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by Kubernetes Engine or
+   * version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for nodeVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNodeVersionBytes() { + java.lang.Object ref = nodeVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IMAGE_TYPE_FIELD_NUMBER = 6; + private volatile java.lang.Object imageType_; + /** + * + * + *
+   * Required. The desired image type for the node pool.
+   * 
+ * + * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The imageType. + */ + @java.lang.Override + public java.lang.String getImageType() { + java.lang.Object ref = imageType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageType_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The desired image type for the node pool.
+   * 
+ * + * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for imageType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getImageTypeBytes() { + java.lang.Object ref = imageType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATIONS_FIELD_NUMBER = 13; + private com.google.protobuf.LazyStringList locations_; + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * node pool's nodes should be located. Changing the locations for a node pool
+   * will result in nodes being either created or removed from the node pool,
+   * depending on whether locations are being added or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return A list containing the locations. + */ + public com.google.protobuf.ProtocolStringList getLocationsList() { + return locations_; + } + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * node pool's nodes should be located. Changing the locations for a node pool
+   * will result in nodes being either created or removed from the node pool,
+   * depending on whether locations are being added or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return The count of locations. + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * node pool's nodes should be located. Changing the locations for a node pool
+   * will result in nodes being either created or removed from the node pool,
+   * depending on whether locations are being added or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * node pool's nodes should be located. Changing the locations for a node pool
+   * will result in nodes being either created or removed from the node pool,
+   * depending on whether locations are being added or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + public com.google.protobuf.ByteString getLocationsBytes(int index) { + return locations_.getByteString(index); + } + + public static final int WORKLOAD_METADATA_CONFIG_FIELD_NUMBER = 14; + private com.google.container.v1beta1.WorkloadMetadataConfig workloadMetadataConfig_; + /** + * + * + *
+   * The desired workload metadata config for the node pool.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return Whether the workloadMetadataConfig field is set. + */ + @java.lang.Override + public boolean hasWorkloadMetadataConfig() { + return workloadMetadataConfig_ != null; + } + /** + * + * + *
+   * The desired workload metadata config for the node pool.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return The workloadMetadataConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.WorkloadMetadataConfig getWorkloadMetadataConfig() { + return workloadMetadataConfig_ == null + ? com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance() + : workloadMetadataConfig_; + } + /** + * + * + *
+   * The desired workload metadata config for the node pool.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + @java.lang.Override + public com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder + getWorkloadMetadataConfigOrBuilder() { + return getWorkloadMetadataConfig(); + } + + public static final int NAME_FIELD_NUMBER = 8; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster, node pool) of the node pool to
+   * update. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 8; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster, node pool) of the node pool to
+   * update. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 8; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UPGRADE_SETTINGS_FIELD_NUMBER = 15; + private com.google.container.v1beta1.NodePool.UpgradeSettings upgradeSettings_; + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; + * + * @return Whether the upgradeSettings field is set. + */ + @java.lang.Override + public boolean hasUpgradeSettings() { + return upgradeSettings_ != null; + } + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; + * + * @return The upgradeSettings. + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool.UpgradeSettings getUpgradeSettings() { + return upgradeSettings_ == null + ? com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance() + : upgradeSettings_; + } + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder + getUpgradeSettingsOrBuilder() { + return getUpgradeSettings(); + } + + public static final int 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 tags_ != null; + } + /** + * + * + *
+   * 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 getTags(); + } + + 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 taints_ != null; + } + /** + * + * + *
+   * 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 getTaints(); + } + + 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 labels_ != null; + } + /** + * + * + *
+   * 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 getLabels(); + } + + public static final int LINUX_NODE_CONFIG_FIELD_NUMBER = 19; + private com.google.container.v1beta1.LinuxNodeConfig linuxNodeConfig_; + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 19; + * + * @return Whether the linuxNodeConfig field is set. + */ + @java.lang.Override + public boolean hasLinuxNodeConfig() { + return linuxNodeConfig_ != null; + } + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 19; + * + * @return The linuxNodeConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.LinuxNodeConfig getLinuxNodeConfig() { + return linuxNodeConfig_ == null + ? com.google.container.v1beta1.LinuxNodeConfig.getDefaultInstance() + : linuxNodeConfig_; + } + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 19; + */ + @java.lang.Override + public com.google.container.v1beta1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder() { + return getLinuxNodeConfig(); + } + + public static final int KUBELET_CONFIG_FIELD_NUMBER = 20; + private com.google.container.v1beta1.NodeKubeletConfig kubeletConfig_; + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; + * + * @return Whether the kubeletConfig field is set. + */ + @java.lang.Override + public boolean hasKubeletConfig() { + return kubeletConfig_ != null; + } + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; + * + * @return The kubeletConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.NodeKubeletConfig getKubeletConfig() { + return kubeletConfig_ == null + ? com.google.container.v1beta1.NodeKubeletConfig.getDefaultInstance() + : kubeletConfig_; + } + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; + */ + @java.lang.Override + public com.google.container.v1beta1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder() { + return getKubeletConfig(); + } + + 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 nodeNetworkConfig_ != null; + } + /** + * + * + *
+   * 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 getNodeNetworkConfig(); + } + + public static final int GCFS_CONFIG_FIELD_NUMBER = 22; + private com.google.container.v1beta1.GcfsConfig gcfsConfig_; + /** + * + * + *
+   * GCFS config.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + * + * @return Whether the gcfsConfig field is set. + */ + @java.lang.Override + public boolean hasGcfsConfig() { + return gcfsConfig_ != null; + } + /** + * + * + *
+   * GCFS config.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + * + * @return The gcfsConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.GcfsConfig getGcfsConfig() { + return gcfsConfig_ == null + ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() + : gcfsConfig_; + } + /** + * + * + *
+   * GCFS config.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + */ + @java.lang.Override + public com.google.container.v1beta1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { + return getGcfsConfig(); + } + + public static final int 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 confidentialNodes_ != null; + } + /** + * + * + *
+   * 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 getConfidentialNodes(); + } + + 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 gvnic_ != null; + } + /** + * + * + *
+   * 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 getGvnic(); + } + + 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 loggingConfig_ != null; + } + /** + * + * + *
+   * 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 getLoggingConfig(); + } + + 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 resourceLabels_ != null; + } + /** + * + * + *
+   * 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 getResourceLabels(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 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 (workloadMetadataConfig_ != null) { + output.writeMessage(14, getWorkloadMetadataConfig()); + } + if (upgradeSettings_ != null) { + output.writeMessage(15, getUpgradeSettings()); + } + if (tags_ != null) { + output.writeMessage(16, getTags()); + } + if (taints_ != null) { + output.writeMessage(17, getTaints()); + } + if (labels_ != null) { + output.writeMessage(18, getLabels()); + } + if (linuxNodeConfig_ != null) { + output.writeMessage(19, getLinuxNodeConfig()); + } + if (kubeletConfig_ != null) { + output.writeMessage(20, getKubeletConfig()); + } + if (nodeNetworkConfig_ != null) { + output.writeMessage(21, getNodeNetworkConfig()); + } + if (gcfsConfig_ != null) { + output.writeMessage(22, getGcfsConfig()); + } + if (confidentialNodes_ != null) { + output.writeMessage(23, getConfidentialNodes()); + } + if (gvnic_ != null) { + output.writeMessage(29, getGvnic()); + } + if (loggingConfig_ != null) { + output.writeMessage(32, getLoggingConfig()); + } + if (resourceLabels_ != null) { + output.writeMessage(33, getResourceLabels()); + } + getUnknownFields().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 (workloadMetadataConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(14, getWorkloadMetadataConfig()); + } + if (upgradeSettings_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getUpgradeSettings()); + } + if (tags_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getTags()); + } + if (taints_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getTaints()); + } + if (labels_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getLabels()); + } + if (linuxNodeConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getLinuxNodeConfig()); + } + if (kubeletConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getKubeletConfig()); + } + if (nodeNetworkConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getNodeNetworkConfig()); + } + if (gcfsConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getGcfsConfig()); + } + if (confidentialNodes_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getConfidentialNodes()); + } + if (gvnic_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getGvnic()); + } + if (loggingConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(32, getLoggingConfig()); + } + if (resourceLabels_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(33, getResourceLabels()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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 (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 (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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(); + } + 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(); + } + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + nodePoolId_ = ""; + + nodeVersion_ = ""; + + imageType_ = ""; + + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfig_ = null; + } else { + workloadMetadataConfig_ = null; + workloadMetadataConfigBuilder_ = null; + } + name_ = ""; + + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = null; + } else { + upgradeSettings_ = null; + upgradeSettingsBuilder_ = null; + } + if (tagsBuilder_ == null) { + tags_ = null; + } else { + tags_ = null; + tagsBuilder_ = null; + } + if (taintsBuilder_ == null) { + taints_ = null; + } else { + taints_ = null; + taintsBuilder_ = null; + } + if (labelsBuilder_ == null) { + labels_ = null; + } else { + labels_ = null; + labelsBuilder_ = null; + } + if (linuxNodeConfigBuilder_ == null) { + linuxNodeConfig_ = null; + } else { + linuxNodeConfig_ = null; + linuxNodeConfigBuilder_ = null; + } + if (kubeletConfigBuilder_ == null) { + kubeletConfig_ = null; + } else { + kubeletConfig_ = null; + kubeletConfigBuilder_ = null; + } + if (nodeNetworkConfigBuilder_ == null) { + nodeNetworkConfig_ = null; + } else { + nodeNetworkConfig_ = null; + nodeNetworkConfigBuilder_ = null; + } + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = null; + } else { + gcfsConfig_ = null; + gcfsConfigBuilder_ = null; + } + if (confidentialNodesBuilder_ == null) { + confidentialNodes_ = null; + } else { + confidentialNodes_ = null; + confidentialNodesBuilder_ = null; + } + if (gvnicBuilder_ == null) { + gvnic_ = null; + } else { + gvnic_ = null; + gvnicBuilder_ = null; + } + if (loggingConfigBuilder_ == null) { + loggingConfig_ = null; + } else { + loggingConfig_ = null; + loggingConfigBuilder_ = null; + } + if (resourceLabelsBuilder_ == null) { + resourceLabels_ = null; + } else { + resourceLabels_ = null; + resourceLabelsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UpdateNodePoolRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.UpdateNodePoolRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.UpdateNodePoolRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.UpdateNodePoolRequest build() { + com.google.container.v1beta1.UpdateNodePoolRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.UpdateNodePoolRequest buildPartial() { + com.google.container.v1beta1.UpdateNodePoolRequest result = + new com.google.container.v1beta1.UpdateNodePoolRequest(this); + int from_bitField0_ = bitField0_; + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.nodePoolId_ = nodePoolId_; + result.nodeVersion_ = nodeVersion_; + result.imageType_ = imageType_; + if (((bitField0_ & 0x00000001) != 0)) { + locations_ = locations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.locations_ = locations_; + if (workloadMetadataConfigBuilder_ == null) { + result.workloadMetadataConfig_ = workloadMetadataConfig_; + } else { + result.workloadMetadataConfig_ = workloadMetadataConfigBuilder_.build(); + } + result.name_ = name_; + if (upgradeSettingsBuilder_ == null) { + result.upgradeSettings_ = upgradeSettings_; + } else { + result.upgradeSettings_ = upgradeSettingsBuilder_.build(); + } + if (tagsBuilder_ == null) { + result.tags_ = tags_; + } else { + result.tags_ = tagsBuilder_.build(); + } + if (taintsBuilder_ == null) { + result.taints_ = taints_; + } else { + result.taints_ = taintsBuilder_.build(); + } + if (labelsBuilder_ == null) { + result.labels_ = labels_; + } else { + result.labels_ = labelsBuilder_.build(); + } + if (linuxNodeConfigBuilder_ == null) { + result.linuxNodeConfig_ = linuxNodeConfig_; + } else { + result.linuxNodeConfig_ = linuxNodeConfigBuilder_.build(); + } + if (kubeletConfigBuilder_ == null) { + result.kubeletConfig_ = kubeletConfig_; + } else { + result.kubeletConfig_ = kubeletConfigBuilder_.build(); + } + if (nodeNetworkConfigBuilder_ == null) { + result.nodeNetworkConfig_ = nodeNetworkConfig_; + } else { + result.nodeNetworkConfig_ = nodeNetworkConfigBuilder_.build(); + } + if (gcfsConfigBuilder_ == null) { + result.gcfsConfig_ = gcfsConfig_; + } else { + result.gcfsConfig_ = gcfsConfigBuilder_.build(); + } + if (confidentialNodesBuilder_ == null) { + result.confidentialNodes_ = confidentialNodes_; + } else { + result.confidentialNodes_ = confidentialNodesBuilder_.build(); + } + if (gvnicBuilder_ == null) { + result.gvnic_ = gvnic_; + } else { + result.gvnic_ = gvnicBuilder_.build(); + } + if (loggingConfigBuilder_ == null) { + result.loggingConfig_ = loggingConfig_; + } else { + result.loggingConfig_ = loggingConfigBuilder_.build(); + } + if (resourceLabelsBuilder_ == null) { + result.resourceLabels_ = resourceLabels_; + } else { + result.resourceLabels_ = resourceLabelsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.UpdateNodePoolRequest) { + return mergeFrom((com.google.container.v1beta1.UpdateNodePoolRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.UpdateNodePoolRequest other) { + if (other == com.google.container.v1beta1.UpdateNodePoolRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + onChanged(); + } + if (!other.getNodeVersion().isEmpty()) { + nodeVersion_ = other.nodeVersion_; + onChanged(); + } + if (!other.getImageType().isEmpty()) { + imageType_ = other.imageType_; + onChanged(); + } + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + if (other.hasWorkloadMetadataConfig()) { + mergeWorkloadMetadataConfig(other.getWorkloadMetadataConfig()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasUpgradeSettings()) { + mergeUpgradeSettings(other.getUpgradeSettings()); + } + if (other.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.hasLoggingConfig()) { + mergeLoggingConfig(other.getLoggingConfig()); + } + if (other.hasResourceLabels()) { + mergeResourceLabels(other.getResourceLabels()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + nodePoolId_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + nodeVersion_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + imageType_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 66: + { + name_ = input.readStringRequireUtf8(); + + 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); + + break; + } // case 114 + case 122: + { + input.readMessage(getUpgradeSettingsFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 122 + case 130: + { + input.readMessage(getTagsFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 130 + case 138: + { + input.readMessage(getTaintsFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 138 + case 146: + { + input.readMessage(getLabelsFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 146 + case 154: + { + input.readMessage(getLinuxNodeConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 154 + case 162: + { + input.readMessage(getKubeletConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 162 + case 170: + { + input.readMessage( + getNodeNetworkConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 170 + case 178: + { + input.readMessage(getGcfsConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 178 + case 186: + { + input.readMessage( + getConfidentialNodesFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 186 + case 234: + { + input.readMessage(getGvnicFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 234 + case 258: + { + input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 258 + case 266: + { + input.readMessage(getResourceLabelsFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 266 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // 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=2454 + * @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=2454 + * @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=2454 + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=2454 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field 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=2454 + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2463 + * @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=2463 + * @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=2463 + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2463 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2463 + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2470 + * @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=2470 + * @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=2470 + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2470 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2470 + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + * + * + *
+     * Required. Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2477 + * @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=2477 + * @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=2477 + * @param value The nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodePoolId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2477 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearNodePoolId() { + + nodePoolId_ = getDefaultInstance().getNodePoolId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=2477 + * @param value The bytes for nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodePoolId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodeVersion_ = ""; + /** + * + * + *
+     * Required. The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeVersion. + */ + public java.lang.String getNodeVersion() { + java.lang.Object ref = nodeVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for nodeVersion. + */ + public com.google.protobuf.ByteString getNodeVersionBytes() { + java.lang.Object ref = nodeVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The nodeVersion to set. + * @return This builder for chaining. + */ + public Builder setNodeVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearNodeVersion() { + + nodeVersion_ = getDefaultInstance().getNodeVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for nodeVersion to set. + * @return This builder for chaining. + */ + public Builder setNodeVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object imageType_ = ""; + /** + * + * + *
+     * Required. The desired image type for the node pool.
+     * 
+ * + * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The imageType. + */ + public java.lang.String getImageType() { + java.lang.Object ref = imageType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The desired image type for the node pool.
+     * 
+ * + * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for imageType. + */ + public com.google.protobuf.ByteString getImageTypeBytes() { + java.lang.Object ref = imageType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The desired image type for the node pool.
+     * 
+ * + * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The imageType to set. + * @return This builder for chaining. + */ + public Builder setImageType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + imageType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The desired image type for the node pool.
+     * 
+ * + * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearImageType() { + + imageType_ = getDefaultInstance().getImageType(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The desired image type for the node pool.
+     * 
+ * + * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for imageType to set. + * @return This builder for chaining. + */ + public Builder setImageTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + imageType_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList locations_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureLocationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + locations_ = new com.google.protobuf.LazyStringArrayList(locations_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * node pool's nodes should be located. Changing the locations for a node pool
+     * will result in nodes being either created or removed from the node pool,
+     * depending on whether locations are being added or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @return A list containing the locations. + */ + public com.google.protobuf.ProtocolStringList getLocationsList() { + return locations_.getUnmodifiableView(); + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * node pool's nodes should be located. Changing the locations for a node pool
+     * will result in nodes being either created or removed from the node pool,
+     * depending on whether locations are being added or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @return The count of locations. + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * node pool's nodes should be located. Changing the locations for a node pool
+     * will result in nodes being either created or removed from the node pool,
+     * depending on whether locations are being added or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * node pool's nodes should be located. Changing the locations for a node pool
+     * will result in nodes being either created or removed from the node pool,
+     * depending on whether locations are being added or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + public com.google.protobuf.ByteString getLocationsBytes(int index) { + return locations_.getByteString(index); + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * node pool's nodes should be located. Changing the locations for a node pool
+     * will result in nodes being either created or removed from the node pool,
+     * depending on whether locations are being added or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param index The index to set the value at. + * @param value The locations to set. + * @return This builder for chaining. + */ + public Builder setLocations(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * node pool's nodes should be located. Changing the locations for a node pool
+     * will result in nodes being either created or removed from the node pool,
+     * depending on whether locations are being added or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param value The locations to add. + * @return This builder for chaining. + */ + public Builder addLocations(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * node pool's nodes should be located. Changing the locations for a node pool
+     * will result in nodes being either created or removed from the node pool,
+     * depending on whether locations are being added or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param values The locations to add. + * @return This builder for chaining. + */ + public Builder addAllLocations(java.lang.Iterable values) { + ensureLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * node pool's nodes should be located. Changing the locations for a node pool
+     * will result in nodes being either created or removed from the node pool,
+     * depending on whether locations are being added or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @return This builder for chaining. + */ + public Builder clearLocations() { + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * node pool's nodes should be located. Changing the locations for a node pool
+     * will result in nodes being either created or removed from the node pool,
+     * depending on whether locations are being added or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param value The bytes of the locations to add. + * @return This builder for chaining. + */ + public Builder addLocationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + return this; + } + + private com.google.container.v1beta1.WorkloadMetadataConfig workloadMetadataConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadMetadataConfig, + com.google.container.v1beta1.WorkloadMetadataConfig.Builder, + com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder> + workloadMetadataConfigBuilder_; + /** + * + * + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return Whether the workloadMetadataConfig field is set. + */ + public boolean hasWorkloadMetadataConfig() { + return workloadMetadataConfigBuilder_ != null || workloadMetadataConfig_ != null; + } + /** + * + * + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return The workloadMetadataConfig. + */ + public com.google.container.v1beta1.WorkloadMetadataConfig getWorkloadMetadataConfig() { + if (workloadMetadataConfigBuilder_ == null) { + return workloadMetadataConfig_ == null + ? com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance() + : workloadMetadataConfig_; + } else { + return workloadMetadataConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder setWorkloadMetadataConfig( + com.google.container.v1beta1.WorkloadMetadataConfig value) { + if (workloadMetadataConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workloadMetadataConfig_ = value; + onChanged(); + } else { + workloadMetadataConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder setWorkloadMetadataConfig( + com.google.container.v1beta1.WorkloadMetadataConfig.Builder builderForValue) { + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfig_ = builderForValue.build(); + onChanged(); + } else { + workloadMetadataConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder mergeWorkloadMetadataConfig( + com.google.container.v1beta1.WorkloadMetadataConfig value) { + if (workloadMetadataConfigBuilder_ == null) { + if (workloadMetadataConfig_ != null) { + workloadMetadataConfig_ = + com.google.container.v1beta1.WorkloadMetadataConfig.newBuilder( + workloadMetadataConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + workloadMetadataConfig_ = value; + } + onChanged(); + } else { + workloadMetadataConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder clearWorkloadMetadataConfig() { + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfig_ = null; + onChanged(); + } else { + workloadMetadataConfig_ = null; + workloadMetadataConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public com.google.container.v1beta1.WorkloadMetadataConfig.Builder + getWorkloadMetadataConfigBuilder() { + + onChanged(); + return getWorkloadMetadataConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder + getWorkloadMetadataConfigOrBuilder() { + if (workloadMetadataConfigBuilder_ != null) { + return workloadMetadataConfigBuilder_.getMessageOrBuilder(); + } else { + return workloadMetadataConfig_ == null + ? com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance() + : workloadMetadataConfig_; + } + } + /** + * + * + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadMetadataConfig, + com.google.container.v1beta1.WorkloadMetadataConfig.Builder, + com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder> + getWorkloadMetadataConfigFieldBuilder() { + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadMetadataConfig, + com.google.container.v1beta1.WorkloadMetadataConfig.Builder, + com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder>( + getWorkloadMetadataConfig(), getParentForChildren(), isClean()); + workloadMetadataConfig_ = null; + } + return workloadMetadataConfigBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster, node pool) of the node pool to
+     * update. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 8; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool) of the node pool to
+     * update. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 8; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool) of the node pool to
+     * update. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 8; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool) of the node pool to
+     * update. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 8; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool) of the node pool to
+     * update. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 8; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NodePool.UpgradeSettings upgradeSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool.UpgradeSettings, + com.google.container.v1beta1.NodePool.UpgradeSettings.Builder, + com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder> + upgradeSettingsBuilder_; + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; + * + * @return Whether the upgradeSettings field is set. + */ + public boolean hasUpgradeSettings() { + return upgradeSettingsBuilder_ != null || upgradeSettings_ != null; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; + * + * @return The upgradeSettings. + */ + public com.google.container.v1beta1.NodePool.UpgradeSettings getUpgradeSettings() { + if (upgradeSettingsBuilder_ == null) { + return upgradeSettings_ == null + ? com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance() + : upgradeSettings_; + } else { + return upgradeSettingsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + public Builder setUpgradeSettings(com.google.container.v1beta1.NodePool.UpgradeSettings value) { + if (upgradeSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + upgradeSettings_ = value; + onChanged(); + } else { + upgradeSettingsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + public Builder setUpgradeSettings( + com.google.container.v1beta1.NodePool.UpgradeSettings.Builder builderForValue) { + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = builderForValue.build(); + onChanged(); + } else { + upgradeSettingsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + public Builder mergeUpgradeSettings( + com.google.container.v1beta1.NodePool.UpgradeSettings value) { + if (upgradeSettingsBuilder_ == null) { + if (upgradeSettings_ != null) { + upgradeSettings_ = + com.google.container.v1beta1.NodePool.UpgradeSettings.newBuilder(upgradeSettings_) + .mergeFrom(value) + .buildPartial(); + } else { + upgradeSettings_ = value; + } + onChanged(); + } else { + upgradeSettingsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + public Builder clearUpgradeSettings() { + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = null; + onChanged(); + } else { + upgradeSettings_ = null; + upgradeSettingsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + public com.google.container.v1beta1.NodePool.UpgradeSettings.Builder + getUpgradeSettingsBuilder() { + + onChanged(); + return getUpgradeSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + public com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder + getUpgradeSettingsOrBuilder() { + if (upgradeSettingsBuilder_ != null) { + return upgradeSettingsBuilder_.getMessageOrBuilder(); + } else { + return upgradeSettings_ == null + ? com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance() + : upgradeSettings_; + } + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool.UpgradeSettings, + com.google.container.v1beta1.NodePool.UpgradeSettings.Builder, + com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder> + getUpgradeSettingsFieldBuilder() { + if (upgradeSettingsBuilder_ == null) { + upgradeSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool.UpgradeSettings, + com.google.container.v1beta1.NodePool.UpgradeSettings.Builder, + com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder>( + getUpgradeSettings(), getParentForChildren(), isClean()); + upgradeSettings_ = null; + } + return upgradeSettingsBuilder_; + } + + private com.google.container.v1beta1.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 tagsBuilder_ != null || tags_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + tagsBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + tagsBuilder_.setMessage(builderForValue.build()); + } + + 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 (tags_ != null) { + tags_ = + com.google.container.v1beta1.NetworkTags.newBuilder(tags_) + .mergeFrom(value) + .buildPartial(); + } else { + tags_ = value; + } + onChanged(); + } else { + tagsBuilder_.mergeFrom(value); + } + + 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() { + if (tagsBuilder_ == null) { + tags_ = null; + onChanged(); + } else { + tags_ = null; + tagsBuilder_ = null; + } + + 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() { + + 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 taintsBuilder_ != null || taints_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + taintsBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + taintsBuilder_.setMessage(builderForValue.build()); + } + + 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 (taints_ != null) { + taints_ = + com.google.container.v1beta1.NodeTaints.newBuilder(taints_) + .mergeFrom(value) + .buildPartial(); + } else { + taints_ = value; + } + onChanged(); + } else { + taintsBuilder_.mergeFrom(value); + } + + 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() { + if (taintsBuilder_ == null) { + taints_ = null; + onChanged(); + } else { + taints_ = null; + taintsBuilder_ = null; + } + + 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() { + + 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 labelsBuilder_ != null || labels_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + labelsBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + labelsBuilder_.setMessage(builderForValue.build()); + } + + 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 (labels_ != null) { + labels_ = + com.google.container.v1beta1.NodeLabels.newBuilder(labels_) + .mergeFrom(value) + .buildPartial(); + } else { + labels_ = value; + } + onChanged(); + } else { + labelsBuilder_.mergeFrom(value); + } + + 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() { + if (labelsBuilder_ == null) { + labels_ = null; + onChanged(); + } else { + labels_ = null; + labelsBuilder_ = null; + } + + 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() { + + 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 linuxNodeConfigBuilder_ != null || linuxNodeConfig_ != null; + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 19; + * + * @return The linuxNodeConfig. + */ + public com.google.container.v1beta1.LinuxNodeConfig getLinuxNodeConfig() { + if (linuxNodeConfigBuilder_ == null) { + return linuxNodeConfig_ == null + ? com.google.container.v1beta1.LinuxNodeConfig.getDefaultInstance() + : linuxNodeConfig_; + } else { + return linuxNodeConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 19; + */ + public Builder setLinuxNodeConfig(com.google.container.v1beta1.LinuxNodeConfig value) { + if (linuxNodeConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + linuxNodeConfig_ = value; + onChanged(); + } else { + linuxNodeConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 19; + */ + public Builder setLinuxNodeConfig( + com.google.container.v1beta1.LinuxNodeConfig.Builder builderForValue) { + if (linuxNodeConfigBuilder_ == null) { + linuxNodeConfig_ = builderForValue.build(); + onChanged(); + } else { + linuxNodeConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 19; + */ + public Builder mergeLinuxNodeConfig(com.google.container.v1beta1.LinuxNodeConfig value) { + if (linuxNodeConfigBuilder_ == null) { + if (linuxNodeConfig_ != null) { + linuxNodeConfig_ = + com.google.container.v1beta1.LinuxNodeConfig.newBuilder(linuxNodeConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + linuxNodeConfig_ = value; + } + onChanged(); + } else { + linuxNodeConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 19; + */ + public Builder clearLinuxNodeConfig() { + if (linuxNodeConfigBuilder_ == null) { + linuxNodeConfig_ = null; + onChanged(); + } else { + linuxNodeConfig_ = null; + linuxNodeConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 19; + */ + public com.google.container.v1beta1.LinuxNodeConfig.Builder getLinuxNodeConfigBuilder() { + + onChanged(); + return getLinuxNodeConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 19; + */ + public com.google.container.v1beta1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder() { + if (linuxNodeConfigBuilder_ != null) { + return linuxNodeConfigBuilder_.getMessageOrBuilder(); + } else { + return linuxNodeConfig_ == null + ? com.google.container.v1beta1.LinuxNodeConfig.getDefaultInstance() + : linuxNodeConfig_; + } + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 19; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.LinuxNodeConfig, + com.google.container.v1beta1.LinuxNodeConfig.Builder, + com.google.container.v1beta1.LinuxNodeConfigOrBuilder> + getLinuxNodeConfigFieldBuilder() { + if (linuxNodeConfigBuilder_ == null) { + linuxNodeConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.LinuxNodeConfig, + com.google.container.v1beta1.LinuxNodeConfig.Builder, + com.google.container.v1beta1.LinuxNodeConfigOrBuilder>( + getLinuxNodeConfig(), getParentForChildren(), isClean()); + linuxNodeConfig_ = null; + } + return linuxNodeConfigBuilder_; + } + + private com.google.container.v1beta1.NodeKubeletConfig kubeletConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeKubeletConfig, + com.google.container.v1beta1.NodeKubeletConfig.Builder, + com.google.container.v1beta1.NodeKubeletConfigOrBuilder> + kubeletConfigBuilder_; + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; + * + * @return Whether the kubeletConfig field is set. + */ + public boolean hasKubeletConfig() { + return kubeletConfigBuilder_ != null || kubeletConfig_ != null; + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; + * + * @return The kubeletConfig. + */ + public com.google.container.v1beta1.NodeKubeletConfig getKubeletConfig() { + if (kubeletConfigBuilder_ == null) { + return kubeletConfig_ == null + ? com.google.container.v1beta1.NodeKubeletConfig.getDefaultInstance() + : kubeletConfig_; + } else { + return kubeletConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; + */ + public Builder setKubeletConfig(com.google.container.v1beta1.NodeKubeletConfig value) { + if (kubeletConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kubeletConfig_ = value; + onChanged(); + } else { + kubeletConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; + */ + public Builder setKubeletConfig( + com.google.container.v1beta1.NodeKubeletConfig.Builder builderForValue) { + if (kubeletConfigBuilder_ == null) { + kubeletConfig_ = builderForValue.build(); + onChanged(); + } else { + kubeletConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; + */ + public Builder mergeKubeletConfig(com.google.container.v1beta1.NodeKubeletConfig value) { + if (kubeletConfigBuilder_ == null) { + if (kubeletConfig_ != null) { + kubeletConfig_ = + com.google.container.v1beta1.NodeKubeletConfig.newBuilder(kubeletConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + kubeletConfig_ = value; + } + onChanged(); + } else { + kubeletConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; + */ + public Builder clearKubeletConfig() { + if (kubeletConfigBuilder_ == null) { + kubeletConfig_ = null; + onChanged(); + } else { + kubeletConfig_ = null; + kubeletConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; + */ + public com.google.container.v1beta1.NodeKubeletConfig.Builder getKubeletConfigBuilder() { + + onChanged(); + return getKubeletConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; + */ + public com.google.container.v1beta1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder() { + if (kubeletConfigBuilder_ != null) { + return kubeletConfigBuilder_.getMessageOrBuilder(); + } else { + return kubeletConfig_ == null + ? com.google.container.v1beta1.NodeKubeletConfig.getDefaultInstance() + : kubeletConfig_; + } + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeKubeletConfig, + com.google.container.v1beta1.NodeKubeletConfig.Builder, + com.google.container.v1beta1.NodeKubeletConfigOrBuilder> + getKubeletConfigFieldBuilder() { + if (kubeletConfigBuilder_ == null) { + kubeletConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeKubeletConfig, + com.google.container.v1beta1.NodeKubeletConfig.Builder, + com.google.container.v1beta1.NodeKubeletConfigOrBuilder>( + getKubeletConfig(), getParentForChildren(), isClean()); + kubeletConfig_ = null; + } + return kubeletConfigBuilder_; + } + + 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 nodeNetworkConfigBuilder_ != null || nodeNetworkConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + nodeNetworkConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + nodeNetworkConfigBuilder_.setMessage(builderForValue.build()); + } + + 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 (nodeNetworkConfig_ != null) { + nodeNetworkConfig_ = + com.google.container.v1beta1.NodeNetworkConfig.newBuilder(nodeNetworkConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + nodeNetworkConfig_ = value; + } + onChanged(); + } else { + nodeNetworkConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Node network config.
+     * 
+ * + * .google.container.v1beta1.NodeNetworkConfig node_network_config = 21; + */ + public Builder clearNodeNetworkConfig() { + if (nodeNetworkConfigBuilder_ == null) { + nodeNetworkConfig_ = null; + onChanged(); + } else { + nodeNetworkConfig_ = null; + nodeNetworkConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Node network config.
+     * 
+ * + * .google.container.v1beta1.NodeNetworkConfig node_network_config = 21; + */ + public com.google.container.v1beta1.NodeNetworkConfig.Builder getNodeNetworkConfigBuilder() { + + 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 gcfsConfigBuilder_ != null || gcfsConfig_ != null; + } + /** + * + * + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + * + * @return The gcfsConfig. + */ + public com.google.container.v1beta1.GcfsConfig getGcfsConfig() { + if (gcfsConfigBuilder_ == null) { + return gcfsConfig_ == null + ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() + : gcfsConfig_; + } else { + return gcfsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + */ + public Builder setGcfsConfig(com.google.container.v1beta1.GcfsConfig value) { + if (gcfsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcfsConfig_ = value; + onChanged(); + } else { + gcfsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + */ + public Builder setGcfsConfig(com.google.container.v1beta1.GcfsConfig.Builder builderForValue) { + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = builderForValue.build(); + onChanged(); + } else { + gcfsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + */ + public Builder mergeGcfsConfig(com.google.container.v1beta1.GcfsConfig value) { + if (gcfsConfigBuilder_ == null) { + if (gcfsConfig_ != null) { + gcfsConfig_ = + com.google.container.v1beta1.GcfsConfig.newBuilder(gcfsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + gcfsConfig_ = value; + } + onChanged(); + } else { + gcfsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + */ + public Builder clearGcfsConfig() { + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = null; + onChanged(); + } else { + gcfsConfig_ = null; + gcfsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + */ + public com.google.container.v1beta1.GcfsConfig.Builder getGcfsConfigBuilder() { + + onChanged(); + return getGcfsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + */ + public com.google.container.v1beta1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { + if (gcfsConfigBuilder_ != null) { + return gcfsConfigBuilder_.getMessageOrBuilder(); + } else { + return gcfsConfig_ == null + ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() + : gcfsConfig_; + } + } + /** + * + * + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcfsConfig, + com.google.container.v1beta1.GcfsConfig.Builder, + com.google.container.v1beta1.GcfsConfigOrBuilder> + getGcfsConfigFieldBuilder() { + if (gcfsConfigBuilder_ == null) { + gcfsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcfsConfig, + com.google.container.v1beta1.GcfsConfig.Builder, + com.google.container.v1beta1.GcfsConfigOrBuilder>( + getGcfsConfig(), getParentForChildren(), isClean()); + gcfsConfig_ = null; + } + return gcfsConfigBuilder_; + } + + private com.google.container.v1beta1.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 confidentialNodesBuilder_ != null || confidentialNodes_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + confidentialNodesBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + confidentialNodesBuilder_.setMessage(builderForValue.build()); + } + + 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 (confidentialNodes_ != null) { + confidentialNodes_ = + com.google.container.v1beta1.ConfidentialNodes.newBuilder(confidentialNodes_) + .mergeFrom(value) + .buildPartial(); + } else { + confidentialNodes_ = value; + } + onChanged(); + } else { + confidentialNodesBuilder_.mergeFrom(value); + } + + 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() { + if (confidentialNodesBuilder_ == null) { + confidentialNodes_ = null; + onChanged(); + } else { + confidentialNodes_ = null; + confidentialNodesBuilder_ = null; + } + + 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() { + + 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 gvnicBuilder_ != null || gvnic_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + gvnicBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + gvnicBuilder_.setMessage(builderForValue.build()); + } + + 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 (gvnic_ != null) { + gvnic_ = + com.google.container.v1beta1.VirtualNIC.newBuilder(gvnic_) + .mergeFrom(value) + .buildPartial(); + } else { + gvnic_ = value; + } + onChanged(); + } else { + gvnicBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1beta1.VirtualNIC gvnic = 29; + */ + public Builder clearGvnic() { + if (gvnicBuilder_ == null) { + gvnic_ = null; + onChanged(); + } else { + gvnic_ = null; + gvnicBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1beta1.VirtualNIC gvnic = 29; + */ + public com.google.container.v1beta1.VirtualNIC.Builder getGvnicBuilder() { + + 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 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 loggingConfigBuilder_ != null || loggingConfig_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + loggingConfigBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + loggingConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 32; + */ + public Builder mergeLoggingConfig(com.google.container.v1beta1.NodePoolLoggingConfig value) { + if (loggingConfigBuilder_ == null) { + if (loggingConfig_ != null) { + loggingConfig_ = + com.google.container.v1beta1.NodePoolLoggingConfig.newBuilder(loggingConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + loggingConfig_ = value; + } + onChanged(); + } else { + loggingConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 32; + */ + public Builder clearLoggingConfig() { + if (loggingConfigBuilder_ == null) { + loggingConfig_ = null; + onChanged(); + } else { + loggingConfig_ = null; + loggingConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 32; + */ + public com.google.container.v1beta1.NodePoolLoggingConfig.Builder getLoggingConfigBuilder() { + + 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 resourceLabelsBuilder_ != null || resourceLabels_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + resourceLabelsBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + resourceLabelsBuilder_.setMessage(builderForValue.build()); + } + + 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 (resourceLabels_ != null) { + resourceLabels_ = + com.google.container.v1beta1.ResourceLabels.newBuilder(resourceLabels_) + .mergeFrom(value) + .buildPartial(); + } else { + resourceLabels_ = value; + } + onChanged(); + } else { + resourceLabelsBuilder_.mergeFrom(value); + } + + 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() { + if (resourceLabelsBuilder_ == null) { + resourceLabels_ = null; + onChanged(); + } else { + resourceLabels_ = null; + resourceLabelsBuilder_ = null; + } + + 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() { + + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 new file mode 100644 index 000000000000..29a845939fde --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequestOrBuilder.java @@ -0,0 +1,810 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +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=2454 + * @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=2454 + * @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=2463 + * @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=2463 + * @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=2470 + * @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=2470 + * @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=2477 + * @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=2477 + * @return The bytes for nodePoolId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getNodePoolIdBytes(); + + /** + * + * + *
+   * Required. The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by Kubernetes Engine or
+   * version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeVersion. + */ + java.lang.String getNodeVersion(); + /** + * + * + *
+   * Required. The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by Kubernetes Engine or
+   * version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for nodeVersion. + */ + com.google.protobuf.ByteString getNodeVersionBytes(); + + /** + * + * + *
+   * Required. The desired image type for the node pool.
+   * 
+ * + * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The imageType. + */ + java.lang.String getImageType(); + /** + * + * + *
+   * Required. The desired image type for the node pool.
+   * 
+ * + * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for imageType. + */ + com.google.protobuf.ByteString getImageTypeBytes(); + + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * node pool's nodes should be located. Changing the locations for a node pool
+   * will result in nodes being either created or removed from the node pool,
+   * depending on whether locations are being added or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return A list containing the locations. + */ + java.util.List getLocationsList(); + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * node pool's nodes should be located. Changing the locations for a node pool
+   * will result in nodes being either created or removed from the node pool,
+   * depending on whether locations are being added or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return The count of locations. + */ + int getLocationsCount(); + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * node pool's nodes should be located. Changing the locations for a node pool
+   * will result in nodes being either created or removed from the node pool,
+   * depending on whether locations are being added or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + java.lang.String getLocations(int index); + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * node pool's nodes should be located. Changing the locations for a node pool
+   * will result in nodes being either created or removed from the node pool,
+   * depending on whether locations are being added or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + com.google.protobuf.ByteString getLocationsBytes(int index); + + /** + * + * + *
+   * The desired workload metadata config for the node pool.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return Whether the workloadMetadataConfig field is set. + */ + boolean hasWorkloadMetadataConfig(); + /** + * + * + *
+   * The desired workload metadata config for the node pool.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return The workloadMetadataConfig. + */ + com.google.container.v1beta1.WorkloadMetadataConfig getWorkloadMetadataConfig(); + /** + * + * + *
+   * The desired workload metadata config for the node pool.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder getWorkloadMetadataConfigOrBuilder(); + + /** + * + * + *
+   * The name (project, location, cluster, node pool) of the node pool to
+   * update. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 8; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name (project, location, cluster, node pool) of the node pool to
+   * update. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 8; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; + * + * @return Whether the upgradeSettings field is set. + */ + boolean hasUpgradeSettings(); + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; + * + * @return The upgradeSettings. + */ + com.google.container.v1beta1.NodePool.UpgradeSettings getUpgradeSettings(); + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder(); + + /** + * + * + *
+   * 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(); + + /** + * + * + *
+   * 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(); +} 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 new file mode 100644 index 000000000000..640eafbf815e --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeAvailableEvent.java @@ -0,0 +1,1505 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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); + } + + public static final int VERSION_FIELD_NUMBER = 1; + private volatile java.lang.Object version_; + /** + * + * + *
+   * The release version available for upgrade.
+   * 
+ * + * string version = 1; + * + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + * + * + *
+   * The release version available for upgrade.
+   * 
+ * + * string version = 1; + * + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 2; + private int resourceType_; + /** + * + * + *
+   * The resource type of the release version.
+   * 
+ * + * .google.container.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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.UpgradeResourceType result = + com.google.container.v1beta1.UpgradeResourceType.valueOf(resourceType_); + return result == null ? com.google.container.v1beta1.UpgradeResourceType.UNRECOGNIZED : result; + } + + public static final int 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 releaseChannel_ != null; + } + /** + * + * + *
+   * 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 getReleaseChannel(); + } + + public static final int RESOURCE_FIELD_NUMBER = 4; + private volatile java.lang.Object resource_; + /** + * + * + *
+   * Optional relative path to the resource. For example, the relative path of
+   * the node pool.
+   * 
+ * + * string resource = 4; + * + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } + } + /** + * + * + *
+   * Optional relative path to the resource. For example, the relative path of
+   * the node pool.
+   * 
+ * + * string resource = 4; + * + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 windowsVersions_ != null; + } + /** + * + * + *
+   * 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 getWindowsVersions(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 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 (releaseChannel_ != null) { + output.writeMessage(3, getReleaseChannel()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, resource_); + } + if (windowsVersions_ != null) { + 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 (releaseChannel_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getReleaseChannel()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, resource_); + } + if (windowsVersions_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + version_ = ""; + + resourceType_ = 0; + + if (releaseChannelBuilder_ == null) { + releaseChannel_ = null; + } else { + releaseChannel_ = null; + releaseChannelBuilder_ = null; + } + resource_ = ""; + + if (windowsVersionsBuilder_ == null) { + windowsVersions_ = null; + } else { + windowsVersions_ = null; + 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); + result.version_ = version_; + result.resourceType_ = resourceType_; + if (releaseChannelBuilder_ == null) { + result.releaseChannel_ = releaseChannel_; + } else { + result.releaseChannel_ = releaseChannelBuilder_.build(); + } + result.resource_ = resource_; + if (windowsVersionsBuilder_ == null) { + result.windowsVersions_ = windowsVersions_; + } else { + result.windowsVersions_ = windowsVersionsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.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_; + onChanged(); + } + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + if (other.hasReleaseChannel()) { + mergeReleaseChannel(other.getReleaseChannel()); + } + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + 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(); + + break; + } // case 10 + case 16: + { + resourceType_ = input.readEnum(); + + break; + } // case 16 + case 26: + { + input.readMessage(getReleaseChannelFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + resource_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + input.readMessage(getWindowsVersionsFieldBuilder().getBuilder(), extensionRegistry); + + 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 java.lang.Object version_ = ""; + /** + * + * + *
+     * The release version available for upgrade.
+     * 
+ * + * string version = 1; + * + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The release version available for upgrade.
+     * 
+ * + * string version = 1; + * + * @return The bytes for version. + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The release version available for upgrade.
+     * 
+ * + * string version = 1; + * + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The release version available for upgrade.
+     * 
+ * + * string version = 1; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * The release version available for upgrade.
+     * 
+ * + * string version = 1; + * + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + private int resourceType_ = 0; + /** + * + * + *
+     * The resource type of the release version.
+     * 
+ * + * .google.container.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; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.UpgradeResourceType result = + com.google.container.v1beta1.UpgradeResourceType.valueOf(resourceType_); + return result == null + ? com.google.container.v1beta1.UpgradeResourceType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * 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(); + } + + 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() { + + 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 releaseChannelBuilder_ != null || releaseChannel_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + releaseChannelBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + releaseChannelBuilder_.setMessage(builderForValue.build()); + } + + 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 (releaseChannel_ != null) { + releaseChannel_ = + com.google.container.v1beta1.ReleaseChannel.newBuilder(releaseChannel_) + .mergeFrom(value) + .buildPartial(); + } else { + releaseChannel_ = value; + } + onChanged(); + } else { + releaseChannelBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 3; + */ + public Builder clearReleaseChannel() { + if (releaseChannelBuilder_ == null) { + releaseChannel_ = null; + onChanged(); + } else { + releaseChannel_ = null; + releaseChannelBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 3; + */ + public com.google.container.v1beta1.ReleaseChannel.Builder getReleaseChannelBuilder() { + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional relative path to the resource. For example, the relative path of
+     * the node pool.
+     * 
+ * + * string resource = 4; + * + * @return This builder for chaining. + */ + public Builder clearResource() { + + resource_ = getDefaultInstance().getResource(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional relative path to the resource. For example, the relative path of
+     * the node pool.
+     * 
+ * + * string resource = 4; + * + * @param value The bytes for resource to set. + * @return This builder for chaining. + */ + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resource_ = value; + onChanged(); + return this; + } + + 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 windowsVersionsBuilder_ != null || windowsVersions_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + windowsVersionsBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + windowsVersionsBuilder_.setMessage(builderForValue.build()); + } + + 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 (windowsVersions_ != null) { + windowsVersions_ = + com.google.container.v1beta1.WindowsVersions.newBuilder(windowsVersions_) + .mergeFrom(value) + .buildPartial(); + } else { + windowsVersions_ = value; + } + onChanged(); + } else { + windowsVersionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Windows node versions info.
+     * 
+ * + * .google.container.v1beta1.WindowsVersions windows_versions = 5; + */ + public Builder clearWindowsVersions() { + if (windowsVersionsBuilder_ == null) { + windowsVersions_ = null; + onChanged(); + } else { + windowsVersions_ = null; + windowsVersionsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Windows node versions info.
+     * 
+ * + * .google.container.v1beta1.WindowsVersions windows_versions = 5; + */ + public com.google.container.v1beta1.WindowsVersions.Builder getWindowsVersionsBuilder() { + + 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 new file mode 100644 index 000000000000..25095b9b3422 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeAvailableEventOrBuilder.java @@ -0,0 +1,175 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface 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 new file mode 100644 index 000000000000..ec33f5370883 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeEvent.java @@ -0,0 +1,1580 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * UpgradeEvent is a notification sent to customers by the cluster server when
+ * a resource is upgrading.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.UpgradeEvent} + */ +public final class UpgradeEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.UpgradeEvent) + UpgradeEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpgradeEvent.newBuilder() to construct. + private UpgradeEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpgradeEvent() { + resourceType_ = 0; + operation_ = ""; + currentVersion_ = ""; + targetVersion_ = ""; + resource_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpgradeEvent(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UpgradeEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UpgradeEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.UpgradeEvent.class, + com.google.container.v1beta1.UpgradeEvent.Builder.class); + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; + private int resourceType_; + /** + * + * + *
+   * 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.UpgradeResourceType result = + com.google.container.v1beta1.UpgradeResourceType.valueOf(resourceType_); + return result == null ? com.google.container.v1beta1.UpgradeResourceType.UNRECOGNIZED : result; + } + + public static final int OPERATION_FIELD_NUMBER = 2; + private volatile java.lang.Object operation_; + /** + * + * + *
+   * The operation associated with this upgrade.
+   * 
+ * + * string operation = 2; + * + * @return The operation. + */ + @java.lang.Override + public java.lang.String getOperation() { + java.lang.Object ref = operation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operation_ = s; + return s; + } + } + /** + * + * + *
+   * The operation associated with this upgrade.
+   * 
+ * + * string operation = 2; + * + * @return The bytes for operation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOperationBytes() { + java.lang.Object ref = operation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPERATION_START_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp operationStartTime_; + /** + * + * + *
+   * The time when the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + * + * @return Whether the operationStartTime field is set. + */ + @java.lang.Override + public boolean hasOperationStartTime() { + return operationStartTime_ != null; + } + /** + * + * + *
+   * The time when the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + * + * @return The operationStartTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getOperationStartTime() { + return operationStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : operationStartTime_; + } + /** + * + * + *
+   * The time when the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getOperationStartTimeOrBuilder() { + return getOperationStartTime(); + } + + public static final int CURRENT_VERSION_FIELD_NUMBER = 4; + private volatile java.lang.Object currentVersion_; + /** + * + * + *
+   * The current version before the upgrade.
+   * 
+ * + * string current_version = 4; + * + * @return The currentVersion. + */ + @java.lang.Override + public java.lang.String getCurrentVersion() { + java.lang.Object ref = currentVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentVersion_ = s; + return s; + } + } + /** + * + * + *
+   * The current version before the upgrade.
+   * 
+ * + * string current_version = 4; + * + * @return The bytes for currentVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCurrentVersionBytes() { + java.lang.Object ref = currentVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + currentVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_VERSION_FIELD_NUMBER = 5; + private volatile java.lang.Object targetVersion_; + /** + * + * + *
+   * The target version for the upgrade.
+   * 
+ * + * string target_version = 5; + * + * @return The targetVersion. + */ + @java.lang.Override + public java.lang.String getTargetVersion() { + java.lang.Object ref = targetVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetVersion_ = s; + return s; + } + } + /** + * + * + *
+   * The target version for the upgrade.
+   * 
+ * + * string target_version = 5; + * + * @return The bytes for targetVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetVersionBytes() { + java.lang.Object ref = targetVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_FIELD_NUMBER = 6; + private volatile java.lang.Object resource_; + /** + * + * + *
+   * Optional relative path to the resource. For example in node pool upgrades,
+   * the relative path of the node pool.
+   * 
+ * + * string resource = 6; + * + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } + } + /** + * + * + *
+   * Optional relative path to the resource. For example in node pool upgrades,
+   * the relative path of the node pool.
+   * 
+ * + * string resource = 6; + * + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (resourceType_ + != com.google.container.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 (operationStartTime_ != null) { + output.writeMessage(3, getOperationStartTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, currentVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, targetVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, resource_); + } + 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 (operationStartTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOperationStartTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, currentVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, targetVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, resource_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + resourceType_ = 0; + + operation_ = ""; + + if (operationStartTimeBuilder_ == null) { + operationStartTime_ = null; + } else { + operationStartTime_ = null; + operationStartTimeBuilder_ = null; + } + currentVersion_ = ""; + + targetVersion_ = ""; + + resource_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UpgradeEvent_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.UpgradeEvent getDefaultInstanceForType() { + return com.google.container.v1beta1.UpgradeEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.UpgradeEvent build() { + com.google.container.v1beta1.UpgradeEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.UpgradeEvent buildPartial() { + com.google.container.v1beta1.UpgradeEvent result = + new com.google.container.v1beta1.UpgradeEvent(this); + result.resourceType_ = resourceType_; + result.operation_ = operation_; + if (operationStartTimeBuilder_ == null) { + result.operationStartTime_ = operationStartTime_; + } else { + result.operationStartTime_ = operationStartTimeBuilder_.build(); + } + result.currentVersion_ = currentVersion_; + result.targetVersion_ = targetVersion_; + result.resource_ = resource_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.UpgradeEvent) { + return mergeFrom((com.google.container.v1beta1.UpgradeEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.UpgradeEvent other) { + if (other == com.google.container.v1beta1.UpgradeEvent.getDefaultInstance()) return this; + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + if (!other.getOperation().isEmpty()) { + operation_ = other.operation_; + onChanged(); + } + if (other.hasOperationStartTime()) { + mergeOperationStartTime(other.getOperationStartTime()); + } + if (!other.getCurrentVersion().isEmpty()) { + currentVersion_ = other.currentVersion_; + onChanged(); + } + if (!other.getTargetVersion().isEmpty()) { + targetVersion_ = other.targetVersion_; + onChanged(); + } + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 8 + case 18: + { + operation_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage( + getOperationStartTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + currentVersion_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + targetVersion_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + resource_ = input.readStringRequireUtf8(); + + 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 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; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.UpgradeResourceType result = + com.google.container.v1beta1.UpgradeResourceType.valueOf(resourceType_); + return result == null + ? com.google.container.v1beta1.UpgradeResourceType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * 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(); + } + + 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() { + + resourceType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object operation_ = ""; + /** + * + * + *
+     * The operation associated with this upgrade.
+     * 
+ * + * string operation = 2; + * + * @return The operation. + */ + public java.lang.String getOperation() { + java.lang.Object ref = operation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The operation associated with this upgrade.
+     * 
+ * + * string operation = 2; + * + * @return The bytes for operation. + */ + public com.google.protobuf.ByteString getOperationBytes() { + java.lang.Object ref = operation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The operation associated with this upgrade.
+     * 
+ * + * string operation = 2; + * + * @param value The operation to set. + * @return This builder for chaining. + */ + public Builder setOperation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + operation_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The operation associated with this upgrade.
+     * 
+ * + * string operation = 2; + * + * @return This builder for chaining. + */ + public Builder clearOperation() { + + operation_ = getDefaultInstance().getOperation(); + onChanged(); + return this; + } + /** + * + * + *
+     * The operation associated with this upgrade.
+     * 
+ * + * string operation = 2; + * + * @param value The bytes for operation to set. + * @return This builder for chaining. + */ + public Builder setOperationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + operation_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp operationStartTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + operationStartTimeBuilder_; + /** + * + * + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + * + * @return Whether the operationStartTime field is set. + */ + public boolean hasOperationStartTime() { + return operationStartTimeBuilder_ != null || operationStartTime_ != null; + } + /** + * + * + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + * + * @return The operationStartTime. + */ + public com.google.protobuf.Timestamp getOperationStartTime() { + if (operationStartTimeBuilder_ == null) { + return operationStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : operationStartTime_; + } else { + return operationStartTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + public Builder setOperationStartTime(com.google.protobuf.Timestamp value) { + if (operationStartTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + operationStartTime_ = value; + onChanged(); + } else { + operationStartTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + public Builder setOperationStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (operationStartTimeBuilder_ == null) { + operationStartTime_ = builderForValue.build(); + onChanged(); + } else { + operationStartTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + public Builder mergeOperationStartTime(com.google.protobuf.Timestamp value) { + if (operationStartTimeBuilder_ == null) { + if (operationStartTime_ != null) { + operationStartTime_ = + com.google.protobuf.Timestamp.newBuilder(operationStartTime_) + .mergeFrom(value) + .buildPartial(); + } else { + operationStartTime_ = value; + } + onChanged(); + } else { + operationStartTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + public Builder clearOperationStartTime() { + if (operationStartTimeBuilder_ == null) { + operationStartTime_ = null; + onChanged(); + } else { + operationStartTime_ = null; + operationStartTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + public com.google.protobuf.Timestamp.Builder getOperationStartTimeBuilder() { + + onChanged(); + return getOperationStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getOperationStartTimeOrBuilder() { + if (operationStartTimeBuilder_ != null) { + return operationStartTimeBuilder_.getMessageOrBuilder(); + } else { + return operationStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : operationStartTime_; + } + } + /** + * + * + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getOperationStartTimeFieldBuilder() { + if (operationStartTimeBuilder_ == null) { + operationStartTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getOperationStartTime(), getParentForChildren(), isClean()); + operationStartTime_ = null; + } + return operationStartTimeBuilder_; + } + + private java.lang.Object currentVersion_ = ""; + /** + * + * + *
+     * The current version before the upgrade.
+     * 
+ * + * string current_version = 4; + * + * @return The currentVersion. + */ + public java.lang.String getCurrentVersion() { + java.lang.Object ref = currentVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The current version before the upgrade.
+     * 
+ * + * string current_version = 4; + * + * @return The bytes for currentVersion. + */ + public com.google.protobuf.ByteString getCurrentVersionBytes() { + java.lang.Object ref = currentVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + currentVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The current version before the upgrade.
+     * 
+ * + * string current_version = 4; + * + * @param value The currentVersion to set. + * @return This builder for chaining. + */ + public Builder setCurrentVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + currentVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The current version before the upgrade.
+     * 
+ * + * string current_version = 4; + * + * @return This builder for chaining. + */ + public Builder clearCurrentVersion() { + + currentVersion_ = getDefaultInstance().getCurrentVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * The current version before the upgrade.
+     * 
+ * + * string current_version = 4; + * + * @param value The bytes for currentVersion to set. + * @return This builder for chaining. + */ + public Builder setCurrentVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + currentVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object targetVersion_ = ""; + /** + * + * + *
+     * The target version for the upgrade.
+     * 
+ * + * string target_version = 5; + * + * @return The targetVersion. + */ + public java.lang.String getTargetVersion() { + java.lang.Object ref = targetVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The target version for the upgrade.
+     * 
+ * + * string target_version = 5; + * + * @return The bytes for targetVersion. + */ + public com.google.protobuf.ByteString getTargetVersionBytes() { + java.lang.Object ref = targetVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The target version for the upgrade.
+     * 
+ * + * string target_version = 5; + * + * @param value The targetVersion to set. + * @return This builder for chaining. + */ + public Builder setTargetVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + targetVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The target version for the upgrade.
+     * 
+ * + * string target_version = 5; + * + * @return This builder for chaining. + */ + public Builder clearTargetVersion() { + + targetVersion_ = getDefaultInstance().getTargetVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * The target version for the upgrade.
+     * 
+ * + * string target_version = 5; + * + * @param value The bytes for targetVersion to set. + * @return This builder for chaining. + */ + public Builder setTargetVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + targetVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object resource_ = ""; + /** + * + * + *
+     * Optional relative path to the resource. For example in node pool upgrades,
+     * the relative path of the node pool.
+     * 
+ * + * string resource = 6; + * + * @return The resource. + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional relative path to the resource. For example in node pool upgrades,
+     * the relative path of the node pool.
+     * 
+ * + * string resource = 6; + * + * @return The bytes for resource. + */ + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional relative path to the resource. For example in node pool upgrades,
+     * the relative path of the node pool.
+     * 
+ * + * string resource = 6; + * + * @param value The resource to set. + * @return This builder for chaining. + */ + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resource_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional relative path to the resource. For example in node pool upgrades,
+     * the relative path of the node pool.
+     * 
+ * + * string resource = 6; + * + * @return This builder for chaining. + */ + public Builder clearResource() { + + resource_ = getDefaultInstance().getResource(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional relative path to the resource. For example in node pool upgrades,
+     * the relative path of the node pool.
+     * 
+ * + * string resource = 6; + * + * @param value The bytes for resource to set. + * @return This builder for chaining. + */ + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resource_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..c6ae8da3fe12 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeEventOrBuilder.java @@ -0,0 +1,187 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface UpgradeEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.UpgradeEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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 new file mode 100644 index 000000000000..317f441b67c3 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeResourceType.java @@ -0,0 +1,180 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * UpgradeResourceType is the resource type that is upgrading. It is used
+ * in upgrade notifications.
+ * 
+ * + * Protobuf enum {@code google.container.v1beta1.UpgradeResourceType} + */ +public enum UpgradeResourceType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value. This shouldn't be used.
+   * 
+ * + * UPGRADE_RESOURCE_TYPE_UNSPECIFIED = 0; + */ + UPGRADE_RESOURCE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Master / control plane
+   * 
+ * + * MASTER = 1; + */ + MASTER(1), + /** + * + * + *
+   * Node pool
+   * 
+ * + * NODE_POOL = 2; + */ + NODE_POOL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default value. This shouldn't be used.
+   * 
+ * + * UPGRADE_RESOURCE_TYPE_UNSPECIFIED = 0; + */ + public static final int UPGRADE_RESOURCE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Master / control plane
+   * 
+ * + * MASTER = 1; + */ + public static final int MASTER_VALUE = 1; + /** + * + * + *
+   * Node pool
+   * 
+ * + * NODE_POOL = 2; + */ + public static final int NODE_POOL_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static UpgradeResourceType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static UpgradeResourceType forNumber(int value) { + switch (value) { + case 0: + return UPGRADE_RESOURCE_TYPE_UNSPECIFIED; + case 1: + return MASTER; + case 2: + return NODE_POOL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public UpgradeResourceType findValueByNumber(int number) { + return UpgradeResourceType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.getDescriptor().getEnumTypes().get(1); + } + + private static final UpgradeResourceType[] VALUES = values(); + + public static UpgradeResourceType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private UpgradeResourceType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.UpgradeResourceType) +} diff --git a/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 new file mode 100644 index 000000000000..6dd934bd0b8a --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetwork.java @@ -0,0 +1,1749 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * UsableSubnetwork resource returns the subnetwork name, its associated network
+ * and the primary CIDR range.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.UsableSubnetwork} + */ +public final class UsableSubnetwork extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.UsableSubnetwork) + UsableSubnetworkOrBuilder { + private static final long serialVersionUID = 0L; + // Use UsableSubnetwork.newBuilder() to construct. + private UsableSubnetwork(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UsableSubnetwork() { + subnetwork_ = ""; + network_ = ""; + ipCidrRange_ = ""; + secondaryIpRanges_ = java.util.Collections.emptyList(); + statusMessage_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UsableSubnetwork(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UsableSubnetwork_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UsableSubnetwork_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.UsableSubnetwork.class, + com.google.container.v1beta1.UsableSubnetwork.Builder.class); + } + + public static final int SUBNETWORK_FIELD_NUMBER = 1; + private volatile java.lang.Object subnetwork_; + /** + * + * + *
+   * Subnetwork Name.
+   * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+   * 
+ * + * string subnetwork = 1; + * + * @return The subnetwork. + */ + @java.lang.Override + public java.lang.String getSubnetwork() { + java.lang.Object ref = subnetwork_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetwork_ = s; + return s; + } + } + /** + * + * + *
+   * Subnetwork Name.
+   * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+   * 
+ * + * string subnetwork = 1; + * + * @return The bytes for subnetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSubnetworkBytes() { + java.lang.Object ref = subnetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_FIELD_NUMBER = 2; + private volatile java.lang.Object network_; + /** + * + * + *
+   * Network Name.
+   * Example: projects/my-project/global/networks/my-network
+   * 
+ * + * string network = 2; + * + * @return The network. + */ + @java.lang.Override + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } + } + /** + * + * + *
+   * Network Name.
+   * Example: projects/my-project/global/networks/my-network
+   * 
+ * + * string network = 2; + * + * @return The bytes for network. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IP_CIDR_RANGE_FIELD_NUMBER = 3; + private volatile java.lang.Object ipCidrRange_; + /** + * + * + *
+   * The range of internal addresses that are owned by this subnetwork.
+   * 
+ * + * string ip_cidr_range = 3; + * + * @return The ipCidrRange. + */ + @java.lang.Override + public java.lang.String getIpCidrRange() { + java.lang.Object ref = ipCidrRange_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipCidrRange_ = s; + return s; + } + } + /** + * + * + *
+   * The range of internal addresses that are owned by this subnetwork.
+   * 
+ * + * string ip_cidr_range = 3; + * + * @return The bytes for ipCidrRange. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIpCidrRangeBytes() { + java.lang.Object ref = ipCidrRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipCidrRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECONDARY_IP_RANGES_FIELD_NUMBER = 4; + private java.util.List + secondaryIpRanges_; + /** + * + * + *
+   * Secondary IP ranges.
+   * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + @java.lang.Override + public java.util.List + getSecondaryIpRangesList() { + return secondaryIpRanges_; + } + /** + * + * + *
+   * Secondary IP ranges.
+   * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder> + getSecondaryIpRangesOrBuilderList() { + return secondaryIpRanges_; + } + /** + * + * + *
+   * Secondary IP ranges.
+   * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + @java.lang.Override + public int getSecondaryIpRangesCount() { + return secondaryIpRanges_.size(); + } + /** + * + * + *
+   * Secondary IP ranges.
+   * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + @java.lang.Override + public com.google.container.v1beta1.UsableSubnetworkSecondaryRange getSecondaryIpRanges( + int index) { + return secondaryIpRanges_.get(index); + } + /** + * + * + *
+   * Secondary IP ranges.
+   * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + @java.lang.Override + public com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder + getSecondaryIpRangesOrBuilder(int index) { + return secondaryIpRanges_.get(index); + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; + private volatile java.lang.Object statusMessage_; + /** + * + * + *
+   * A human readable status message representing the reasons for cases where
+   * the caller cannot use the secondary ranges under the subnet. For example if
+   * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+   * permission message will be given by status_message.
+   * 
+ * + * string status_message = 5; + * + * @return The statusMessage. + */ + @java.lang.Override + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } + } + /** + * + * + *
+   * A human readable status message representing the reasons for cases where
+   * the caller cannot use the secondary ranges under the subnet. For example if
+   * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+   * permission message will be given by status_message.
+   * 
+ * + * string status_message = 5; + * + * @return The bytes for statusMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + subnetwork_ = ""; + + network_ = ""; + + ipCidrRange_ = ""; + + if (secondaryIpRangesBuilder_ == null) { + secondaryIpRanges_ = java.util.Collections.emptyList(); + } else { + secondaryIpRanges_ = null; + secondaryIpRangesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + statusMessage_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UsableSubnetwork_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.UsableSubnetwork getDefaultInstanceForType() { + return com.google.container.v1beta1.UsableSubnetwork.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.UsableSubnetwork build() { + com.google.container.v1beta1.UsableSubnetwork result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.UsableSubnetwork buildPartial() { + com.google.container.v1beta1.UsableSubnetwork result = + new com.google.container.v1beta1.UsableSubnetwork(this); + int from_bitField0_ = bitField0_; + result.subnetwork_ = subnetwork_; + result.network_ = network_; + result.ipCidrRange_ = ipCidrRange_; + if (secondaryIpRangesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + secondaryIpRanges_ = java.util.Collections.unmodifiableList(secondaryIpRanges_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.secondaryIpRanges_ = secondaryIpRanges_; + } else { + result.secondaryIpRanges_ = secondaryIpRangesBuilder_.build(); + } + result.statusMessage_ = statusMessage_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.UsableSubnetwork) { + return mergeFrom((com.google.container.v1beta1.UsableSubnetwork) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.UsableSubnetwork other) { + if (other == com.google.container.v1beta1.UsableSubnetwork.getDefaultInstance()) return this; + if (!other.getSubnetwork().isEmpty()) { + subnetwork_ = other.subnetwork_; + onChanged(); + } + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + onChanged(); + } + if (!other.getIpCidrRange().isEmpty()) { + ipCidrRange_ = other.ipCidrRange_; + onChanged(); + } + if (secondaryIpRangesBuilder_ == null) { + if (!other.secondaryIpRanges_.isEmpty()) { + if (secondaryIpRanges_.isEmpty()) { + secondaryIpRanges_ = other.secondaryIpRanges_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.addAll(other.secondaryIpRanges_); + } + onChanged(); + } + } else { + if (!other.secondaryIpRanges_.isEmpty()) { + if (secondaryIpRangesBuilder_.isEmpty()) { + secondaryIpRangesBuilder_.dispose(); + secondaryIpRangesBuilder_ = null; + secondaryIpRanges_ = other.secondaryIpRanges_; + bitField0_ = (bitField0_ & ~0x00000001); + secondaryIpRangesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSecondaryIpRangesFieldBuilder() + : null; + } else { + secondaryIpRangesBuilder_.addAllMessages(other.secondaryIpRanges_); + } + } + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + network_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + ipCidrRange_ = input.readStringRequireUtf8(); + + 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(); + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Subnetwork Name.
+     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 1; + * + * @return This builder for chaining. + */ + public Builder clearSubnetwork() { + + subnetwork_ = getDefaultInstance().getSubnetwork(); + onChanged(); + return this; + } + /** + * + * + *
+     * Subnetwork Name.
+     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 1; + * + * @param value The bytes for subnetwork to set. + * @return This builder for chaining. + */ + public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subnetwork_ = value; + onChanged(); + return this; + } + + private java.lang.Object network_ = ""; + /** + * + * + *
+     * Network Name.
+     * Example: projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 2; + * + * @return The network. + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Network Name.
+     * Example: projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 2; + * + * @return The bytes for network. + */ + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Network Name.
+     * Example: projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 2; + * + * @param value The network to set. + * @return This builder for chaining. + */ + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + network_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Network Name.
+     * Example: projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 2; + * + * @return This builder for chaining. + */ + public Builder clearNetwork() { + + network_ = getDefaultInstance().getNetwork(); + onChanged(); + return this; + } + /** + * + * + *
+     * Network Name.
+     * Example: projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 2; + * + * @param value The bytes for network to set. + * @return This builder for chaining. + */ + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + network_ = value; + onChanged(); + return this; + } + + private java.lang.Object ipCidrRange_ = ""; + /** + * + * + *
+     * The range of internal addresses that are owned by this subnetwork.
+     * 
+ * + * string ip_cidr_range = 3; + * + * @return The ipCidrRange. + */ + public java.lang.String getIpCidrRange() { + java.lang.Object ref = ipCidrRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipCidrRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The range of internal addresses that are owned by this subnetwork.
+     * 
+ * + * string ip_cidr_range = 3; + * + * @return The bytes for ipCidrRange. + */ + public com.google.protobuf.ByteString getIpCidrRangeBytes() { + java.lang.Object ref = ipCidrRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipCidrRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The range of internal addresses that are owned by this subnetwork.
+     * 
+ * + * string ip_cidr_range = 3; + * + * @param value The ipCidrRange to set. + * @return This builder for chaining. + */ + public Builder setIpCidrRange(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ipCidrRange_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The range of internal addresses that are owned by this subnetwork.
+     * 
+ * + * string ip_cidr_range = 3; + * + * @return This builder for chaining. + */ + public Builder clearIpCidrRange() { + + ipCidrRange_ = getDefaultInstance().getIpCidrRange(); + onChanged(); + return this; + } + /** + * + * + *
+     * The range of internal addresses that are owned by this subnetwork.
+     * 
+ * + * string ip_cidr_range = 3; + * + * @param value The bytes for ipCidrRange to set. + * @return This builder for chaining. + */ + public Builder setIpCidrRangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ipCidrRange_ = value; + onChanged(); + return this; + } + + private java.util.List + secondaryIpRanges_ = java.util.Collections.emptyList(); + + private void ensureSecondaryIpRangesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + secondaryIpRanges_ = + new java.util.ArrayList( + secondaryIpRanges_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.UsableSubnetworkSecondaryRange, + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder, + com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder> + secondaryIpRangesBuilder_; + + /** + * + * + *
+     * Secondary IP ranges.
+     * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public java.util.List + getSecondaryIpRangesList() { + if (secondaryIpRangesBuilder_ == null) { + return java.util.Collections.unmodifiableList(secondaryIpRanges_); + } else { + return secondaryIpRangesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Secondary IP ranges.
+     * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public int getSecondaryIpRangesCount() { + if (secondaryIpRangesBuilder_ == null) { + return secondaryIpRanges_.size(); + } else { + return secondaryIpRangesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Secondary IP ranges.
+     * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public com.google.container.v1beta1.UsableSubnetworkSecondaryRange getSecondaryIpRanges( + int index) { + if (secondaryIpRangesBuilder_ == null) { + return secondaryIpRanges_.get(index); + } else { + return secondaryIpRangesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Secondary IP ranges.
+     * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public Builder setSecondaryIpRanges( + int index, com.google.container.v1beta1.UsableSubnetworkSecondaryRange value) { + if (secondaryIpRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.set(index, value); + onChanged(); + } else { + secondaryIpRangesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Secondary IP ranges.
+     * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public Builder setSecondaryIpRanges( + int index, + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder builderForValue) { + if (secondaryIpRangesBuilder_ == null) { + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.set(index, builderForValue.build()); + onChanged(); + } else { + secondaryIpRangesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Secondary IP ranges.
+     * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public Builder addSecondaryIpRanges( + com.google.container.v1beta1.UsableSubnetworkSecondaryRange value) { + if (secondaryIpRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.add(value); + onChanged(); + } else { + secondaryIpRangesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Secondary IP ranges.
+     * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public Builder addSecondaryIpRanges( + int index, com.google.container.v1beta1.UsableSubnetworkSecondaryRange value) { + if (secondaryIpRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.add(index, value); + onChanged(); + } else { + secondaryIpRangesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Secondary IP ranges.
+     * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public Builder addSecondaryIpRanges( + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder builderForValue) { + if (secondaryIpRangesBuilder_ == null) { + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.add(builderForValue.build()); + onChanged(); + } else { + secondaryIpRangesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Secondary IP ranges.
+     * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public Builder addSecondaryIpRanges( + int index, + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder builderForValue) { + if (secondaryIpRangesBuilder_ == null) { + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.add(index, builderForValue.build()); + onChanged(); + } else { + secondaryIpRangesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Secondary IP ranges.
+     * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public Builder addAllSecondaryIpRanges( + java.lang.Iterable + values) { + if (secondaryIpRangesBuilder_ == null) { + ensureSecondaryIpRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, secondaryIpRanges_); + onChanged(); + } else { + secondaryIpRangesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Secondary IP ranges.
+     * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public Builder clearSecondaryIpRanges() { + if (secondaryIpRangesBuilder_ == null) { + secondaryIpRanges_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + secondaryIpRangesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Secondary IP ranges.
+     * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public Builder removeSecondaryIpRanges(int index) { + if (secondaryIpRangesBuilder_ == null) { + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.remove(index); + onChanged(); + } else { + secondaryIpRangesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Secondary IP ranges.
+     * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder + getSecondaryIpRangesBuilder(int index) { + return getSecondaryIpRangesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Secondary IP ranges.
+     * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder + getSecondaryIpRangesOrBuilder(int index) { + if (secondaryIpRangesBuilder_ == null) { + return secondaryIpRanges_.get(index); + } else { + return secondaryIpRangesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Secondary IP ranges.
+     * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public java.util.List< + ? extends com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder> + getSecondaryIpRangesOrBuilderList() { + if (secondaryIpRangesBuilder_ != null) { + return secondaryIpRangesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(secondaryIpRanges_); + } + } + /** + * + * + *
+     * Secondary IP ranges.
+     * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder + addSecondaryIpRangesBuilder() { + return getSecondaryIpRangesFieldBuilder() + .addBuilder( + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.getDefaultInstance()); + } + /** + * + * + *
+     * Secondary IP ranges.
+     * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder + addSecondaryIpRangesBuilder(int index) { + return getSecondaryIpRangesFieldBuilder() + .addBuilder( + index, + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.getDefaultInstance()); + } + /** + * + * + *
+     * Secondary IP ranges.
+     * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public java.util.List + getSecondaryIpRangesBuilderList() { + return getSecondaryIpRangesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.UsableSubnetworkSecondaryRange, + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder, + com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder> + getSecondaryIpRangesFieldBuilder() { + if (secondaryIpRangesBuilder_ == null) { + secondaryIpRangesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.UsableSubnetworkSecondaryRange, + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder, + com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder>( + secondaryIpRanges_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + secondaryIpRanges_ = null; + } + return secondaryIpRangesBuilder_; + } + + private java.lang.Object statusMessage_ = ""; + /** + * + * + *
+     * A human readable status message representing the reasons for cases where
+     * the caller cannot use the secondary ranges under the subnet. For example if
+     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+     * permission message will be given by status_message.
+     * 
+ * + * string status_message = 5; + * + * @return The statusMessage. + */ + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A human readable status message representing the reasons for cases where
+     * the caller cannot use the secondary ranges under the subnet. For example if
+     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+     * permission message will be given by status_message.
+     * 
+ * + * string status_message = 5; + * + * @return The bytes for statusMessage. + */ + public com.google.protobuf.ByteString getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A human readable status message representing the reasons for cases where
+     * the caller cannot use the secondary ranges under the subnet. For example if
+     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+     * permission message will be given by status_message.
+     * 
+ * + * string status_message = 5; + * + * @param value The statusMessage to set. + * @return This builder for chaining. + */ + public Builder setStatusMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + statusMessage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A human readable status message representing the reasons for cases where
+     * the caller cannot use the secondary ranges under the subnet. For example if
+     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+     * permission message will be given by status_message.
+     * 
+ * + * string status_message = 5; + * + * @return This builder for chaining. + */ + public Builder clearStatusMessage() { + + statusMessage_ = getDefaultInstance().getStatusMessage(); + onChanged(); + return this; + } + /** + * + * + *
+     * A human readable status message representing the reasons for cases where
+     * the caller cannot use the secondary ranges under the subnet. For example if
+     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+     * permission message will be given by status_message.
+     * 
+ * + * string status_message = 5; + * + * @param value The bytes for statusMessage to set. + * @return This builder for chaining. + */ + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + statusMessage_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.UsableSubnetwork) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.UsableSubnetwork) + private static final com.google.container.v1beta1.UsableSubnetwork DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.UsableSubnetwork(); + } + + public static com.google.container.v1beta1.UsableSubnetwork getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UsableSubnetwork parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..70038b7a206e --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetworkOrBuilder.java @@ -0,0 +1,199 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface UsableSubnetworkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.UsableSubnetwork) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Subnetwork Name.
+   * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+   * 
+ * + * string subnetwork = 1; + * + * @return The subnetwork. + */ + java.lang.String getSubnetwork(); + /** + * + * + *
+   * Subnetwork Name.
+   * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+   * 
+ * + * string subnetwork = 1; + * + * @return The bytes for subnetwork. + */ + com.google.protobuf.ByteString getSubnetworkBytes(); + + /** + * + * + *
+   * Network Name.
+   * Example: projects/my-project/global/networks/my-network
+   * 
+ * + * string network = 2; + * + * @return The network. + */ + java.lang.String getNetwork(); + /** + * + * + *
+   * Network Name.
+   * Example: projects/my-project/global/networks/my-network
+   * 
+ * + * string network = 2; + * + * @return The bytes for network. + */ + com.google.protobuf.ByteString getNetworkBytes(); + + /** + * + * + *
+   * The range of internal addresses that are owned by this subnetwork.
+   * 
+ * + * string ip_cidr_range = 3; + * + * @return The ipCidrRange. + */ + java.lang.String getIpCidrRange(); + /** + * + * + *
+   * The range of internal addresses that are owned by this subnetwork.
+   * 
+ * + * string ip_cidr_range = 3; + * + * @return The bytes for ipCidrRange. + */ + com.google.protobuf.ByteString getIpCidrRangeBytes(); + + /** + * + * + *
+   * Secondary IP ranges.
+   * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + java.util.List + getSecondaryIpRangesList(); + /** + * + * + *
+   * Secondary IP ranges.
+   * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + com.google.container.v1beta1.UsableSubnetworkSecondaryRange getSecondaryIpRanges(int index); + /** + * + * + *
+   * Secondary IP ranges.
+   * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + int getSecondaryIpRangesCount(); + /** + * + * + *
+   * Secondary IP ranges.
+   * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + java.util.List + getSecondaryIpRangesOrBuilderList(); + /** + * + * + *
+   * Secondary IP ranges.
+   * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder + getSecondaryIpRangesOrBuilder(int index); + + /** + * + * + *
+   * A human readable status message representing the reasons for cases where
+   * the caller cannot use the secondary ranges under the subnet. For example if
+   * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+   * permission message will be given by status_message.
+   * 
+ * + * string status_message = 5; + * + * @return The statusMessage. + */ + java.lang.String getStatusMessage(); + /** + * + * + *
+   * A human readable status message representing the reasons for cases where
+   * the caller cannot use the secondary ranges under the subnet. For example if
+   * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+   * permission message will be given by status_message.
+   * 
+ * + * string status_message = 5; + * + * @return The bytes for statusMessage. + */ + com.google.protobuf.ByteString getStatusMessageBytes(); +} diff --git a/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 new file mode 100644 index 000000000000..b2ac95d05bbc --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetworkSecondaryRange.java @@ -0,0 +1,1169 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Secondary IP range of a usable subnetwork.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.UsableSubnetworkSecondaryRange} + */ +public final class UsableSubnetworkSecondaryRange extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.UsableSubnetworkSecondaryRange) + UsableSubnetworkSecondaryRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use UsableSubnetworkSecondaryRange.newBuilder() to construct. + private UsableSubnetworkSecondaryRange( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UsableSubnetworkSecondaryRange() { + rangeName_ = ""; + ipCidrRange_ = ""; + status_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UsableSubnetworkSecondaryRange(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UsableSubnetworkSecondaryRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UsableSubnetworkSecondaryRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.class, + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder.class); + } + + /** + * + * + *
+   * Status shows the current usage of a secondary IP range.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.UsableSubnetworkSecondaryRange.Status} + */ + public enum Status implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * UNKNOWN is the zero value of the Status enum. It's not a valid status.
+     * 
+ * + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + * + * + *
+     * UNUSED denotes that this range is unclaimed by any cluster.
+     * 
+ * + * UNUSED = 1; + */ + UNUSED(1), + /** + * + * + *
+     * IN_USE_SERVICE denotes that this range is claimed by a cluster for
+     * services. It cannot be used for other clusters.
+     * 
+ * + * IN_USE_SERVICE = 2; + */ + IN_USE_SERVICE(2), + /** + * + * + *
+     * IN_USE_SHAREABLE_POD denotes this range was created by the network admin
+     * and is currently claimed by a cluster for pods. It can only be used by
+     * other clusters as a pod range.
+     * 
+ * + * IN_USE_SHAREABLE_POD = 3; + */ + IN_USE_SHAREABLE_POD(3), + /** + * + * + *
+     * IN_USE_MANAGED_POD denotes this range was created by GKE and is claimed
+     * for pods. It cannot be used for other clusters.
+     * 
+ * + * IN_USE_MANAGED_POD = 4; + */ + IN_USE_MANAGED_POD(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * UNKNOWN is the zero value of the Status enum. It's not a valid status.
+     * 
+ * + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + * + * + *
+     * UNUSED denotes that this range is unclaimed by any cluster.
+     * 
+ * + * UNUSED = 1; + */ + public static final int UNUSED_VALUE = 1; + /** + * + * + *
+     * IN_USE_SERVICE denotes that this range is claimed by a cluster for
+     * services. It cannot be used for other clusters.
+     * 
+ * + * IN_USE_SERVICE = 2; + */ + public static final int IN_USE_SERVICE_VALUE = 2; + /** + * + * + *
+     * IN_USE_SHAREABLE_POD denotes this range was created by the network admin
+     * and is currently claimed by a cluster for pods. It can only be used by
+     * other clusters as a pod range.
+     * 
+ * + * IN_USE_SHAREABLE_POD = 3; + */ + public static final int IN_USE_SHAREABLE_POD_VALUE = 3; + /** + * + * + *
+     * IN_USE_MANAGED_POD denotes this range was created by GKE and is claimed
+     * for pods. It cannot be used for other clusters.
+     * 
+ * + * IN_USE_MANAGED_POD = 4; + */ + public static final int IN_USE_MANAGED_POD_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Status valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Status forNumber(int value) { + switch (value) { + case 0: + return UNKNOWN; + case 1: + return UNUSED; + case 2: + return IN_USE_SERVICE; + case 3: + return IN_USE_SHAREABLE_POD; + case 4: + return IN_USE_MANAGED_POD; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1beta1.UsableSubnetworkSecondaryRange.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Status[] VALUES = values(); + + public static Status valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Status(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.UsableSubnetworkSecondaryRange.Status) + } + + public static final int RANGE_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object rangeName_; + /** + * + * + *
+   * The name associated with this subnetwork secondary range, used when adding
+   * an alias IP range to a VM instance.
+   * 
+ * + * string range_name = 1; + * + * @return The rangeName. + */ + @java.lang.Override + public java.lang.String getRangeName() { + java.lang.Object ref = rangeName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rangeName_ = s; + return s; + } + } + /** + * + * + *
+   * The name associated with this subnetwork secondary range, used when adding
+   * an alias IP range to a VM instance.
+   * 
+ * + * string range_name = 1; + * + * @return The bytes for rangeName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRangeNameBytes() { + java.lang.Object ref = rangeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rangeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IP_CIDR_RANGE_FIELD_NUMBER = 2; + private volatile java.lang.Object ipCidrRange_; + /** + * + * + *
+   * The range of IP addresses belonging to this subnetwork secondary range.
+   * 
+ * + * string ip_cidr_range = 2; + * + * @return The ipCidrRange. + */ + @java.lang.Override + public java.lang.String getIpCidrRange() { + java.lang.Object ref = ipCidrRange_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipCidrRange_ = s; + return s; + } + } + /** + * + * + *
+   * The range of IP addresses belonging to this subnetwork secondary range.
+   * 
+ * + * string ip_cidr_range = 2; + * + * @return The bytes for ipCidrRange. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIpCidrRangeBytes() { + java.lang.Object ref = ipCidrRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipCidrRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 3; + private int status_; + /** + * + * + *
+   * This field is to determine the status of the secondary range programmably.
+   * 
+ * + * .google.container.v1beta1.UsableSubnetworkSecondaryRange.Status status = 3; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + /** + * + * + *
+   * This field is to determine the status of the secondary range programmably.
+   * 
+ * + * .google.container.v1beta1.UsableSubnetworkSecondaryRange.Status status = 3; + * + * @return The status. + */ + @java.lang.Override + public com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status result = + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status.valueOf(status_); + return result == null + ? com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + rangeName_ = ""; + + ipCidrRange_ = ""; + + status_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UsableSubnetworkSecondaryRange_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.UsableSubnetworkSecondaryRange getDefaultInstanceForType() { + return com.google.container.v1beta1.UsableSubnetworkSecondaryRange.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.UsableSubnetworkSecondaryRange build() { + com.google.container.v1beta1.UsableSubnetworkSecondaryRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.UsableSubnetworkSecondaryRange buildPartial() { + com.google.container.v1beta1.UsableSubnetworkSecondaryRange result = + new com.google.container.v1beta1.UsableSubnetworkSecondaryRange(this); + result.rangeName_ = rangeName_; + result.ipCidrRange_ = ipCidrRange_; + result.status_ = status_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.UsableSubnetworkSecondaryRange) { + return mergeFrom((com.google.container.v1beta1.UsableSubnetworkSecondaryRange) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.UsableSubnetworkSecondaryRange other) { + if (other == com.google.container.v1beta1.UsableSubnetworkSecondaryRange.getDefaultInstance()) + return this; + if (!other.getRangeName().isEmpty()) { + rangeName_ = other.rangeName_; + onChanged(); + } + if (!other.getIpCidrRange().isEmpty()) { + ipCidrRange_ = other.ipCidrRange_; + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + ipCidrRange_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + status_ = input.readEnum(); + + 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 java.lang.Object rangeName_ = ""; + /** + * + * + *
+     * The name associated with this subnetwork secondary range, used when adding
+     * an alias IP range to a VM instance.
+     * 
+ * + * string range_name = 1; + * + * @return The rangeName. + */ + public java.lang.String getRangeName() { + java.lang.Object ref = rangeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rangeName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name associated with this subnetwork secondary range, used when adding
+     * an alias IP range to a VM instance.
+     * 
+ * + * string range_name = 1; + * + * @return The bytes for rangeName. + */ + public com.google.protobuf.ByteString getRangeNameBytes() { + java.lang.Object ref = rangeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rangeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name associated with this subnetwork secondary range, used when adding
+     * an alias IP range to a VM instance.
+     * 
+ * + * string range_name = 1; + * + * @param value The rangeName to set. + * @return This builder for chaining. + */ + public Builder setRangeName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + rangeName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name associated with this subnetwork secondary range, used when adding
+     * an alias IP range to a VM instance.
+     * 
+ * + * string range_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearRangeName() { + + rangeName_ = getDefaultInstance().getRangeName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name associated with this subnetwork secondary range, used when adding
+     * an alias IP range to a VM instance.
+     * 
+ * + * string range_name = 1; + * + * @param value The bytes for rangeName to set. + * @return This builder for chaining. + */ + public Builder setRangeNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + rangeName_ = value; + onChanged(); + return this; + } + + private java.lang.Object ipCidrRange_ = ""; + /** + * + * + *
+     * The range of IP addresses belonging to this subnetwork secondary range.
+     * 
+ * + * string ip_cidr_range = 2; + * + * @return The ipCidrRange. + */ + public java.lang.String getIpCidrRange() { + java.lang.Object ref = ipCidrRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipCidrRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The range of IP addresses belonging to this subnetwork secondary range.
+     * 
+ * + * string ip_cidr_range = 2; + * + * @return The bytes for ipCidrRange. + */ + public com.google.protobuf.ByteString getIpCidrRangeBytes() { + java.lang.Object ref = ipCidrRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipCidrRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The range of IP addresses belonging to this subnetwork secondary range.
+     * 
+ * + * string ip_cidr_range = 2; + * + * @param value The ipCidrRange to set. + * @return This builder for chaining. + */ + public Builder setIpCidrRange(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ipCidrRange_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The range of IP addresses belonging to this subnetwork secondary range.
+     * 
+ * + * string ip_cidr_range = 2; + * + * @return This builder for chaining. + */ + public Builder clearIpCidrRange() { + + ipCidrRange_ = getDefaultInstance().getIpCidrRange(); + onChanged(); + return this; + } + /** + * + * + *
+     * The range of IP addresses belonging to this subnetwork secondary range.
+     * 
+ * + * string ip_cidr_range = 2; + * + * @param value The bytes for ipCidrRange to set. + * @return This builder for chaining. + */ + public Builder setIpCidrRangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ipCidrRange_ = value; + onChanged(); + return this; + } + + private int status_ = 0; + /** + * + * + *
+     * This field is to determine the status of the secondary range programmably.
+     * 
+ * + * .google.container.v1beta1.UsableSubnetworkSecondaryRange.Status status = 3; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + /** + * + * + *
+     * This field is to determine the status of the secondary range programmably.
+     * 
+ * + * .google.container.v1beta1.UsableSubnetworkSecondaryRange.Status status = 3; + * + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + + status_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * This field is to determine the status of the secondary range programmably.
+     * 
+ * + * .google.container.v1beta1.UsableSubnetworkSecondaryRange.Status status = 3; + * + * @return The status. + */ + @java.lang.Override + public com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status result = + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status.valueOf(status_); + return result == null + ? com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * This field is to determine the status of the secondary range programmably.
+     * 
+ * + * .google.container.v1beta1.UsableSubnetworkSecondaryRange.Status status = 3; + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus( + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * This field is to determine the status of the secondary range programmably.
+     * 
+ * + * .google.container.v1beta1.UsableSubnetworkSecondaryRange.Status status = 3; + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + + status_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.UsableSubnetworkSecondaryRange) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.UsableSubnetworkSecondaryRange) + private static final com.google.container.v1beta1.UsableSubnetworkSecondaryRange DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.UsableSubnetworkSecondaryRange(); + } + + public static com.google.container.v1beta1.UsableSubnetworkSecondaryRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UsableSubnetworkSecondaryRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..60b50a74e684 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetworkSecondaryRangeOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface UsableSubnetworkSecondaryRangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.UsableSubnetworkSecondaryRange) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name associated with this subnetwork secondary range, used when adding
+   * an alias IP range to a VM instance.
+   * 
+ * + * string range_name = 1; + * + * @return The rangeName. + */ + java.lang.String getRangeName(); + /** + * + * + *
+   * The name associated with this subnetwork secondary range, used when adding
+   * an alias IP range to a VM instance.
+   * 
+ * + * string range_name = 1; + * + * @return The bytes for rangeName. + */ + com.google.protobuf.ByteString getRangeNameBytes(); + + /** + * + * + *
+   * The range of IP addresses belonging to this subnetwork secondary range.
+   * 
+ * + * string ip_cidr_range = 2; + * + * @return The ipCidrRange. + */ + java.lang.String getIpCidrRange(); + /** + * + * + *
+   * The range of IP addresses belonging to this subnetwork secondary range.
+   * 
+ * + * string ip_cidr_range = 2; + * + * @return The bytes for ipCidrRange. + */ + com.google.protobuf.ByteString getIpCidrRangeBytes(); + + /** + * + * + *
+   * This field is to determine the status of the secondary range programmably.
+   * 
+ * + * .google.container.v1beta1.UsableSubnetworkSecondaryRange.Status status = 3; + * + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * + * + *
+   * This field is to determine the status of the secondary range programmably.
+   * 
+ * + * .google.container.v1beta1.UsableSubnetworkSecondaryRange.Status status = 3; + * + * @return The status. + */ + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status getStatus(); +} diff --git a/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 new file mode 100644 index 000000000000..6252b0dc4bd1 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VerticalPodAutoscaling.java @@ -0,0 +1,531 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * VerticalPodAutoscaling contains global, per-cluster information
+ * required by Vertical Pod Autoscaler to automatically adjust
+ * the resources of pods controlled by it.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.VerticalPodAutoscaling} + */ +public final class VerticalPodAutoscaling extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.VerticalPodAutoscaling) + VerticalPodAutoscalingOrBuilder { + private static final long serialVersionUID = 0L; + // Use VerticalPodAutoscaling.newBuilder() to construct. + private VerticalPodAutoscaling(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VerticalPodAutoscaling() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VerticalPodAutoscaling(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_VerticalPodAutoscaling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_VerticalPodAutoscaling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.VerticalPodAutoscaling.class, + com.google.container.v1beta1.VerticalPodAutoscaling.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Enables vertical pod autoscaling.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + 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(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_VerticalPodAutoscaling_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.VerticalPodAutoscaling getDefaultInstanceForType() { + return com.google.container.v1beta1.VerticalPodAutoscaling.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.VerticalPodAutoscaling build() { + com.google.container.v1beta1.VerticalPodAutoscaling result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.VerticalPodAutoscaling buildPartial() { + com.google.container.v1beta1.VerticalPodAutoscaling result = + new com.google.container.v1beta1.VerticalPodAutoscaling(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.VerticalPodAutoscaling) { + return mergeFrom((com.google.container.v1beta1.VerticalPodAutoscaling) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.VerticalPodAutoscaling other) { + if (other == com.google.container.v1beta1.VerticalPodAutoscaling.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + 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 boolean enabled_; + /** + * + * + *
+     * Enables vertical pod autoscaling.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Enables vertical pod autoscaling.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Enables vertical pod autoscaling.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.VerticalPodAutoscaling) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.VerticalPodAutoscaling) + private static final com.google.container.v1beta1.VerticalPodAutoscaling DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.VerticalPodAutoscaling(); + } + + public static com.google.container.v1beta1.VerticalPodAutoscaling getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerticalPodAutoscaling parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..bf8c72e0854d --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VerticalPodAutoscalingOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface VerticalPodAutoscalingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.VerticalPodAutoscaling) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Enables vertical pod autoscaling.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/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 new file mode 100644 index 000000000000..e19f4cc4e3cf --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VirtualNIC.java @@ -0,0 +1,525 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration of 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * 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(); + 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); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.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(); + + 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 boolean enabled_; + /** + * + * + *
+     * Whether gVNIC features are enabled in the node pool.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether gVNIC features are enabled in the node pool.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether gVNIC features are enabled in the node pool.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 new file mode 100644 index 000000000000..1482a7848dc7 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VirtualNICOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +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/WindowsVersions.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WindowsVersions.java new file mode 100644 index 000000000000..f88d46d82381 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WindowsVersions.java @@ -0,0 +1,2109 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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); + } + + public static final int IMAGE_TYPE_FIELD_NUMBER = 1; + 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; + 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 supportEndDate_ != null; + } + /** + * + * + *
+     * 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 getSupportEndDate(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 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 (supportEndDate_ != null) { + 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 (supportEndDate_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + imageType_ = ""; + + osVersion_ = ""; + + if (supportEndDateBuilder_ == null) { + supportEndDate_ = null; + } else { + supportEndDate_ = null; + 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); + result.imageType_ = imageType_; + result.osVersion_ = osVersion_; + if (supportEndDateBuilder_ == null) { + result.supportEndDate_ = supportEndDate_; + } else { + result.supportEndDate_ = supportEndDateBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.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_; + onChanged(); + } + if (!other.getOsVersion().isEmpty()) { + osVersion_ = other.osVersion_; + 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(); + + break; + } // case 10 + case 18: + { + osVersion_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage( + getSupportEndDateFieldBuilder().getBuilder(), extensionRegistry); + + 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 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; + onChanged(); + return this; + } + /** + * + * + *
+       * Windows server image type
+       * 
+ * + * string image_type = 1; + * + * @return This builder for chaining. + */ + public Builder clearImageType() { + + imageType_ = getDefaultInstance().getImageType(); + 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; + 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; + onChanged(); + return this; + } + /** + * + * + *
+       * Windows server build number
+       * 
+ * + * string os_version = 2; + * + * @return This builder for chaining. + */ + public Builder clearOsVersion() { + + osVersion_ = getDefaultInstance().getOsVersion(); + 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; + 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 supportEndDateBuilder_ != null || supportEndDate_ != null; + } + /** + * + * + *
+       * 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; + onChanged(); + } else { + supportEndDateBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + supportEndDateBuilder_.setMessage(builderForValue.build()); + } + + 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 (supportEndDate_ != null) { + supportEndDate_ = + com.google.type.Date.newBuilder(supportEndDate_).mergeFrom(value).buildPartial(); + } else { + supportEndDate_ = value; + } + onChanged(); + } else { + supportEndDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Mainstream support end date
+       * 
+ * + * .google.type.Date support_end_date = 3; + */ + public Builder clearSupportEndDate() { + if (supportEndDateBuilder_ == null) { + supportEndDate_ = null; + onChanged(); + } else { + supportEndDate_ = null; + supportEndDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Mainstream support end date
+       * 
+ * + * .google.type.Date support_end_date = 3; + */ + public com.google.type.Date.Builder getSupportEndDateBuilder() { + + 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; + 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(); + 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); + int from_bitField0_ = bitField0_; + if (windowsVersionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + windowsVersions_ = java.util.Collections.unmodifiableList(windowsVersions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.windowsVersions_ = windowsVersions_; + } else { + result.windowsVersions_ = windowsVersionsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.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 new file mode 100644 index 000000000000..eb0618d7a875 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WindowsVersionsOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface 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 new file mode 100644 index 000000000000..6a1cab542b46 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadALTSConfig.java @@ -0,0 +1,747 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration for 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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); + } + + 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 enableAlts_ != null; + } + /** + * + * + *
+   * 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 getEnableAlts(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enableAlts_ != null) { + output.writeMessage(1, getEnableAlts()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableAlts_ != null) { + 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (enableAltsBuilder_ == null) { + enableAlts_ = null; + } else { + enableAlts_ = null; + 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 (enableAltsBuilder_ == null) { + result.enableAlts_ = enableAlts_; + } else { + result.enableAlts_ = enableAltsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.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); + + 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 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 enableAltsBuilder_ != null || enableAlts_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + enableAltsBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + enableAltsBuilder_.setMessage(builderForValue.build()); + } + + 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 (enableAlts_ != null) { + enableAlts_ = + com.google.protobuf.BoolValue.newBuilder(enableAlts_).mergeFrom(value).buildPartial(); + } else { + enableAlts_ = value; + } + onChanged(); + } else { + enableAltsBuilder_.mergeFrom(value); + } + + 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() { + if (enableAltsBuilder_ == null) { + enableAlts_ = null; + onChanged(); + } else { + enableAlts_ = null; + enableAltsBuilder_ = null; + } + + 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() { + + 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 new file mode 100644 index 000000000000..82f752254d6f --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadALTSConfigOrBuilder.java @@ -0,0 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface 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 new file mode 100644 index 000000000000..5d35d20940d8 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadCertificates.java @@ -0,0 +1,776 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration for issuance of mTLS keys and certificates to Kubernetes pods.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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); + } + + 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 enableCertificates_ != null; + } + /** + * + * + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   * Requires Workload Identity
+   * ([workload_pool][google.container.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 getEnableCertificates(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enableCertificates_ != null) { + output.writeMessage(1, getEnableCertificates()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableCertificates_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEnableCertificates()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return 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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (enableCertificatesBuilder_ == null) { + enableCertificates_ = null; + } else { + enableCertificates_ = null; + enableCertificatesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_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 (enableCertificatesBuilder_ == null) { + result.enableCertificates_ = enableCertificates_; + } else { + result.enableCertificates_ = enableCertificatesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.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); + + 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 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 enableCertificatesBuilder_ != null || enableCertificates_ != null; + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.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; + onChanged(); + } else { + enableCertificatesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.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(); + onChanged(); + } else { + enableCertificatesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.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 (enableCertificates_ != null) { + enableCertificates_ = + com.google.protobuf.BoolValue.newBuilder(enableCertificates_) + .mergeFrom(value) + .buildPartial(); + } else { + enableCertificates_ = value; + } + onChanged(); + } else { + enableCertificatesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public Builder clearEnableCertificates() { + if (enableCertificatesBuilder_ == null) { + enableCertificates_ = null; + onChanged(); + } else { + enableCertificates_ = null; + enableCertificatesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public com.google.protobuf.BoolValue.Builder getEnableCertificatesBuilder() { + + onChanged(); + return getEnableCertificatesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadCertificatesOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadCertificatesOrBuilder.java similarity index 75% rename from owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadCertificatesOrBuilder.java rename to java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadCertificatesOrBuilder.java index e8007686ee2a..bad25d28e8a3 100644 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadCertificatesOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadCertificatesOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/container/v1beta1/cluster_service.proto package com.google.container.v1beta1; -public interface 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.
    * If set, the GKE Workload Identity Certificates controller and node agent
@@ -19,10 +37,13 @@ public interface WorkloadCertificatesOrBuilder extends
    * 
* * .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
@@ -34,10 +55,13 @@ public interface WorkloadCertificatesOrBuilder extends
    * 
* * .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
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
new file mode 100644
index 000000000000..1496b3a539f9
--- /dev/null
+++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadConfig.java
@@ -0,0 +1,842 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/container/v1beta1/cluster_service.proto
+
+package com.google.container.v1beta1;
+
+/**
+ *
+ *
+ * 
+ * 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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + 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_; + /** + * + * + *
+   * 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.WorkloadConfig.Mode result = + com.google.container.v1beta1.WorkloadConfig.Mode.valueOf(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(); + auditMode_ = 0; + 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_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); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + to_bitField0_ |= 0x00000001; + } + result.auditMode_ = auditMode_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.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) { + bitField0_ |= 0x00000001; + auditMode_ = value; + 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() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.WorkloadConfig.Mode result = + com.google.container.v1beta1.WorkloadConfig.Mode.valueOf(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 new file mode 100644 index 000000000000..2814009d86c3 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadConfigOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface 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 new file mode 100644 index 000000000000..c6230bd531c5 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfig.java @@ -0,0 +1,994 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+ * policies.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.WorkloadIdentityConfig} + */ +public final class WorkloadIdentityConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.WorkloadIdentityConfig) + WorkloadIdentityConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkloadIdentityConfig.newBuilder() to construct. + private WorkloadIdentityConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WorkloadIdentityConfig() { + identityNamespace_ = ""; + workloadPool_ = ""; + identityProvider_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WorkloadIdentityConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_WorkloadIdentityConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_WorkloadIdentityConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.WorkloadIdentityConfig.class, + com.google.container.v1beta1.WorkloadIdentityConfig.Builder.class); + } + + public static final int IDENTITY_NAMESPACE_FIELD_NUMBER = 1; + private volatile java.lang.Object identityNamespace_; + /** + * + * + *
+   * IAM Identity Namespace to attach all Kubernetes Service Accounts to.
+   * 
+ * + * string identity_namespace = 1 [deprecated = true]; + * + * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4651 + * @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=4651 + * @return The bytes for identityNamespace. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getIdentityNamespaceBytes() { + java.lang.Object ref = identityNamespace_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + identityNamespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKLOAD_POOL_FIELD_NUMBER = 2; + private volatile java.lang.Object workloadPool_; + /** + * + * + *
+   * The workload pool to attach all Kubernetes service accounts to.
+   * 
+ * + * string workload_pool = 2; + * + * @return The workloadPool. + */ + @java.lang.Override + public java.lang.String getWorkloadPool() { + java.lang.Object ref = workloadPool_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workloadPool_ = s; + return s; + } + } + /** + * + * + *
+   * The workload pool to attach all Kubernetes service accounts to.
+   * 
+ * + * string workload_pool = 2; + * + * @return The bytes for workloadPool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWorkloadPoolBytes() { + java.lang.Object ref = workloadPool_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workloadPool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IDENTITY_PROVIDER_FIELD_NUMBER = 3; + private volatile java.lang.Object identityProvider_; + /** + * + * + *
+   * identity provider is the third party identity provider.
+   * 
+ * + * string identity_provider = 3; + * + * @return The identityProvider. + */ + @java.lang.Override + public java.lang.String getIdentityProvider() { + java.lang.Object ref = identityProvider_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identityProvider_ = s; + return s; + } + } + /** + * + * + *
+   * identity provider is the third party identity provider.
+   * 
+ * + * string identity_provider = 3; + * + * @return The bytes for identityProvider. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdentityProviderBytes() { + java.lang.Object ref = identityProvider_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + identityProvider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!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(); + identityNamespace_ = ""; + + workloadPool_ = ""; + + identityProvider_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_WorkloadIdentityConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.WorkloadIdentityConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.WorkloadIdentityConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.WorkloadIdentityConfig build() { + com.google.container.v1beta1.WorkloadIdentityConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.WorkloadIdentityConfig buildPartial() { + com.google.container.v1beta1.WorkloadIdentityConfig result = + new com.google.container.v1beta1.WorkloadIdentityConfig(this); + result.identityNamespace_ = identityNamespace_; + result.workloadPool_ = workloadPool_; + result.identityProvider_ = identityProvider_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.WorkloadIdentityConfig) { + return mergeFrom((com.google.container.v1beta1.WorkloadIdentityConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.WorkloadIdentityConfig other) { + if (other == com.google.container.v1beta1.WorkloadIdentityConfig.getDefaultInstance()) + return this; + if (!other.getIdentityNamespace().isEmpty()) { + identityNamespace_ = other.identityNamespace_; + onChanged(); + } + if (!other.getWorkloadPool().isEmpty()) { + workloadPool_ = other.workloadPool_; + onChanged(); + } + if (!other.getIdentityProvider().isEmpty()) { + identityProvider_ = other.identityProvider_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + workloadPool_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + identityProvider_ = input.readStringRequireUtf8(); + + 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 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=4651 + * @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=4651 + * @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=4651 + * @param value The identityNamespace to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setIdentityNamespace(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + identityNamespace_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * IAM Identity Namespace to attach all Kubernetes Service Accounts to.
+     * 
+ * + * string identity_namespace = 1 [deprecated = true]; + * + * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4651 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearIdentityNamespace() { + + identityNamespace_ = getDefaultInstance().getIdentityNamespace(); + onChanged(); + return this; + } + /** + * + * + *
+     * IAM Identity Namespace to attach all Kubernetes Service Accounts to.
+     * 
+ * + * string identity_namespace = 1 [deprecated = true]; + * + * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4651 + * @param value The bytes for identityNamespace to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setIdentityNamespaceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + identityNamespace_ = value; + onChanged(); + return this; + } + + private java.lang.Object workloadPool_ = ""; + /** + * + * + *
+     * The workload pool to attach all Kubernetes service accounts to.
+     * 
+ * + * string workload_pool = 2; + * + * @return The workloadPool. + */ + public java.lang.String getWorkloadPool() { + java.lang.Object ref = workloadPool_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workloadPool_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The workload pool to attach all Kubernetes service accounts to.
+     * 
+ * + * string workload_pool = 2; + * + * @return The bytes for workloadPool. + */ + public com.google.protobuf.ByteString getWorkloadPoolBytes() { + java.lang.Object ref = workloadPool_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workloadPool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The workload pool to attach all Kubernetes service accounts to.
+     * 
+ * + * string workload_pool = 2; + * + * @param value The workloadPool to set. + * @return This builder for chaining. + */ + public Builder setWorkloadPool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + workloadPool_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The workload pool to attach all Kubernetes service accounts to.
+     * 
+ * + * string workload_pool = 2; + * + * @return This builder for chaining. + */ + public Builder clearWorkloadPool() { + + workloadPool_ = getDefaultInstance().getWorkloadPool(); + onChanged(); + return this; + } + /** + * + * + *
+     * The workload pool to attach all Kubernetes service accounts to.
+     * 
+ * + * string workload_pool = 2; + * + * @param value The bytes for workloadPool to set. + * @return This builder for chaining. + */ + public Builder setWorkloadPoolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + workloadPool_ = value; + onChanged(); + return this; + } + + private java.lang.Object identityProvider_ = ""; + /** + * + * + *
+     * identity provider is the third party identity provider.
+     * 
+ * + * string identity_provider = 3; + * + * @return The identityProvider. + */ + public java.lang.String getIdentityProvider() { + java.lang.Object ref = identityProvider_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identityProvider_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * identity provider is the third party identity provider.
+     * 
+ * + * string identity_provider = 3; + * + * @return The bytes for identityProvider. + */ + public com.google.protobuf.ByteString getIdentityProviderBytes() { + java.lang.Object ref = identityProvider_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + identityProvider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * identity provider is the third party identity provider.
+     * 
+ * + * string identity_provider = 3; + * + * @param value The identityProvider to set. + * @return This builder for chaining. + */ + public Builder setIdentityProvider(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + identityProvider_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * identity provider is the third party identity provider.
+     * 
+ * + * string identity_provider = 3; + * + * @return This builder for chaining. + */ + public Builder clearIdentityProvider() { + + identityProvider_ = getDefaultInstance().getIdentityProvider(); + onChanged(); + return this; + } + /** + * + * + *
+     * identity provider is the third party identity provider.
+     * 
+ * + * string identity_provider = 3; + * + * @param value The bytes for identityProvider to set. + * @return This builder for chaining. + */ + public Builder setIdentityProviderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + identityProvider_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.WorkloadIdentityConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.WorkloadIdentityConfig) + private static final com.google.container.v1beta1.WorkloadIdentityConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.WorkloadIdentityConfig(); + } + + public static com.google.container.v1beta1.WorkloadIdentityConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkloadIdentityConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..15b618a55f87 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfigOrBuilder.java @@ -0,0 +1,106 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface WorkloadIdentityConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.WorkloadIdentityConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * IAM Identity Namespace to attach all Kubernetes Service Accounts to.
+   * 
+ * + * string identity_namespace = 1 [deprecated = true]; + * + * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4651 + * @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=4651 + * @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 new file mode 100644 index 000000000000..2ee25b168c0a --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfig.java @@ -0,0 +1,1171 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * WorkloadMetadataConfig defines the metadata configuration to expose to
+ * workloads on the node pool.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.WorkloadMetadataConfig} + */ +public final class WorkloadMetadataConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.WorkloadMetadataConfig) + WorkloadMetadataConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkloadMetadataConfig.newBuilder() to construct. + private WorkloadMetadataConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WorkloadMetadataConfig() { + nodeMetadata_ = 0; + mode_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WorkloadMetadataConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_WorkloadMetadataConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_WorkloadMetadataConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.WorkloadMetadataConfig.class, + com.google.container.v1beta1.WorkloadMetadataConfig.Builder.class); + } + + /** + * + * + *
+   * NodeMetadata is the configuration for if and how to expose the node
+   * metadata to the workload running on the node.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata} + */ + public enum NodeMetadata implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not set.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + * + * + *
+     * Prevent workloads not in hostNetwork from accessing certain VM metadata,
+     * specifically kube-env, which contains Kubelet credentials, and the
+     * instance identity token.
+     * Metadata concealment is a temporary security solution available while the
+     * bootstrapping process for cluster nodes is being redesigned with
+     * significant security improvements.  This feature is scheduled to be
+     * deprecated in the future and later removed.
+     * 
+ * + * SECURE = 1; + */ + SECURE(1), + /** + * + * + *
+     * Expose all VM metadata to pods.
+     * 
+ * + * EXPOSE = 2; + */ + EXPOSE(2), + /** + * + * + *
+     * Run the GKE Metadata Server on this node. The GKE Metadata Server exposes
+     * a metadata API to workloads that is compatible with the V1 Compute
+     * Metadata APIs exposed by the Compute Engine and App Engine Metadata
+     * Servers. This feature can only be enabled if Workload Identity is enabled
+     * at the cluster level.
+     * 
+ * + * GKE_METADATA_SERVER = 3; + */ + GKE_METADATA_SERVER(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not set.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Prevent workloads not in hostNetwork from accessing certain VM metadata,
+     * specifically kube-env, which contains Kubelet credentials, and the
+     * instance identity token.
+     * Metadata concealment is a temporary security solution available while the
+     * bootstrapping process for cluster nodes is being redesigned with
+     * significant security improvements.  This feature is scheduled to be
+     * deprecated in the future and later removed.
+     * 
+ * + * SECURE = 1; + */ + public static final int SECURE_VALUE = 1; + /** + * + * + *
+     * Expose all VM metadata to pods.
+     * 
+ * + * EXPOSE = 2; + */ + public static final int EXPOSE_VALUE = 2; + /** + * + * + *
+     * Run the GKE Metadata Server on this node. The GKE Metadata Server exposes
+     * a metadata API to workloads that is compatible with the V1 Compute
+     * Metadata APIs exposed by the Compute Engine and App Engine Metadata
+     * Servers. This feature can only be enabled if Workload Identity is enabled
+     * at the cluster level.
+     * 
+ * + * GKE_METADATA_SERVER = 3; + */ + public static final int GKE_METADATA_SERVER_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static NodeMetadata valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static NodeMetadata forNumber(int value) { + switch (value) { + case 0: + return UNSPECIFIED; + case 1: + return SECURE; + case 2: + return EXPOSE; + case 3: + return GKE_METADATA_SERVER; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public NodeMetadata findValueByNumber(int number) { + return NodeMetadata.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1beta1.WorkloadMetadataConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final NodeMetadata[] VALUES = values(); + + public static NodeMetadata valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private NodeMetadata(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata) + } + + /** + * + * + *
+   * Mode is the configuration for how to expose metadata to workloads running
+   * on the node.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.WorkloadMetadataConfig.Mode} + */ + public enum Mode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not set.
+     * 
+ * + * MODE_UNSPECIFIED = 0; + */ + MODE_UNSPECIFIED(0), + /** + * + * + *
+     * Expose all Compute Engine metadata to pods.
+     * 
+ * + * GCE_METADATA = 1; + */ + GCE_METADATA(1), + /** + * + * + *
+     * Run the GKE Metadata Server on this node. The GKE Metadata Server exposes
+     * a metadata API to workloads that is compatible with the V1 Compute
+     * Metadata APIs exposed by the Compute Engine and App Engine Metadata
+     * Servers. This feature can only be enabled if Workload Identity is enabled
+     * at the cluster level.
+     * 
+ * + * GKE_METADATA = 2; + */ + GKE_METADATA(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not set.
+     * 
+ * + * MODE_UNSPECIFIED = 0; + */ + public static final int MODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Expose all Compute Engine metadata to pods.
+     * 
+ * + * GCE_METADATA = 1; + */ + public static final int GCE_METADATA_VALUE = 1; + /** + * + * + *
+     * Run the GKE Metadata Server on this node. The GKE Metadata Server exposes
+     * a metadata API to workloads that is compatible with the V1 Compute
+     * Metadata APIs exposed by the Compute Engine and App Engine Metadata
+     * Servers. This feature can only be enabled if Workload Identity is enabled
+     * at the cluster level.
+     * 
+ * + * GKE_METADATA = 2; + */ + public static final int GKE_METADATA_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Mode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Mode forNumber(int value) { + switch (value) { + case 0: + return MODE_UNSPECIFIED; + case 1: + return GCE_METADATA; + case 2: + return GKE_METADATA; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Mode findValueByNumber(int number) { + return Mode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1beta1.WorkloadMetadataConfig.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final Mode[] VALUES = values(); + + public static Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Mode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.WorkloadMetadataConfig.Mode) + } + + public static final int NODE_METADATA_FIELD_NUMBER = 1; + private int nodeMetadata_; + /** + * + * + *
+   * NodeMetadata is the configuration for how to expose metadata to the
+   * workloads running on the node.
+   * 
+ * + * + * .google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata node_metadata = 1 [deprecated = true]; + * + * + * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=4248 + * @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=4248 + * @return The nodeMetadata. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata getNodeMetadata() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata result = + com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata.valueOf(nodeMetadata_); + return result == null + ? com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata.UNRECOGNIZED + : result; + } + + public static final int MODE_FIELD_NUMBER = 2; + private int mode_; + /** + * + * + *
+   * Mode is the configuration for how to expose metadata to workloads running
+   * on the node pool.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig.Mode mode = 2; + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + /** + * + * + *
+   * Mode is the configuration for how to expose metadata to workloads running
+   * on the node pool.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig.Mode mode = 2; + * + * @return The mode. + */ + @java.lang.Override + public com.google.container.v1beta1.WorkloadMetadataConfig.Mode getMode() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.WorkloadMetadataConfig.Mode result = + com.google.container.v1beta1.WorkloadMetadataConfig.Mode.valueOf(mode_); + return result == null + ? com.google.container.v1beta1.WorkloadMetadataConfig.Mode.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (nodeMetadata_ + != com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata.UNSPECIFIED + .getNumber()) { + output.writeEnum(1, nodeMetadata_); + } + if (mode_ + != com.google.container.v1beta1.WorkloadMetadataConfig.Mode.MODE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, mode_); + } + 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(); + nodeMetadata_ = 0; + + mode_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_WorkloadMetadataConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.WorkloadMetadataConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.WorkloadMetadataConfig build() { + com.google.container.v1beta1.WorkloadMetadataConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.WorkloadMetadataConfig buildPartial() { + com.google.container.v1beta1.WorkloadMetadataConfig result = + new com.google.container.v1beta1.WorkloadMetadataConfig(this); + result.nodeMetadata_ = nodeMetadata_; + result.mode_ = mode_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.WorkloadMetadataConfig) { + return mergeFrom((com.google.container.v1beta1.WorkloadMetadataConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.WorkloadMetadataConfig other) { + if (other == com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance()) + return this; + if (other.nodeMetadata_ != 0) { + setNodeMetadataValue(other.getNodeMetadataValue()); + } + if (other.mode_ != 0) { + setModeValue(other.getModeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 8 + case 16: + { + mode_ = input.readEnum(); + + 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 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=4248 + * @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=4248 + * @param value The enum numeric value on the wire for nodeMetadata to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodeMetadataValue(int value) { + + nodeMetadata_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * NodeMetadata is the configuration for how to expose metadata to the
+     * workloads running on the node.
+     * 
+ * + * + * .google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata node_metadata = 1 [deprecated = true]; + * + * + * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=4248 + * @return The nodeMetadata. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata getNodeMetadata() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata result = + com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata.valueOf(nodeMetadata_); + return result == null + ? com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * NodeMetadata is the configuration for how to expose metadata to the
+     * workloads running on the node.
+     * 
+ * + * + * .google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata node_metadata = 1 [deprecated = true]; + * + * + * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=4248 + * @param value The nodeMetadata to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodeMetadata( + com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeMetadata_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * NodeMetadata is the configuration for how to expose metadata to the
+     * workloads running on the node.
+     * 
+ * + * + * .google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata node_metadata = 1 [deprecated = true]; + * + * + * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=4248 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearNodeMetadata() { + + nodeMetadata_ = 0; + onChanged(); + return this; + } + + private int mode_ = 0; + /** + * + * + *
+     * Mode is the configuration for how to expose metadata to workloads running
+     * on the node pool.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig.Mode mode = 2; + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + /** + * + * + *
+     * Mode is the configuration for how to expose metadata to workloads running
+     * on the node pool.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig.Mode mode = 2; + * + * @param value The enum numeric value on the wire for mode to set. + * @return This builder for chaining. + */ + public Builder setModeValue(int value) { + + mode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Mode is the configuration for how to expose metadata to workloads running
+     * on the node pool.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig.Mode mode = 2; + * + * @return The mode. + */ + @java.lang.Override + public com.google.container.v1beta1.WorkloadMetadataConfig.Mode getMode() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.WorkloadMetadataConfig.Mode result = + com.google.container.v1beta1.WorkloadMetadataConfig.Mode.valueOf(mode_); + return result == null + ? com.google.container.v1beta1.WorkloadMetadataConfig.Mode.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Mode is the configuration for how to expose metadata to workloads running
+     * on the node pool.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig.Mode mode = 2; + * + * @param value The mode to set. + * @return This builder for chaining. + */ + public Builder setMode(com.google.container.v1beta1.WorkloadMetadataConfig.Mode value) { + if (value == null) { + throw new NullPointerException(); + } + + mode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Mode is the configuration for how to expose metadata to workloads running
+     * on the node pool.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig.Mode mode = 2; + * + * @return This builder for chaining. + */ + public Builder clearMode() { + + mode_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.WorkloadMetadataConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.WorkloadMetadataConfig) + private static final com.google.container.v1beta1.WorkloadMetadataConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.WorkloadMetadataConfig(); + } + + public static com.google.container.v1beta1.WorkloadMetadataConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkloadMetadataConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.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 new file mode 100644 index 000000000000..4afc72f2af27 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfigOrBuilder.java @@ -0,0 +1,89 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface WorkloadMetadataConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.WorkloadMetadataConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * NodeMetadata is the configuration for how to expose metadata to the
+   * workloads running on the node.
+   * 
+ * + * + * .google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata node_metadata = 1 [deprecated = true]; + * + * + * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See + * google/container/v1beta1/cluster_service.proto;l=4248 + * @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=4248 + * @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/proto/google/container/v1beta1/cluster_service.proto b/java-container/proto-google-cloud-container-v1beta1/src/main/proto/google/container/v1beta1/cluster_service.proto similarity index 100% rename from owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/proto/google/container/v1beta1/cluster_service.proto rename to java-container/proto-google-cloud-container-v1beta1/src/main/proto/google/container/v1beta1/cluster_service.proto 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 deleted file mode 100644 index aec67db85ebf..000000000000 --- a/owl-bot-staging/java-container/v1/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java +++ /dev/null @@ -1,586 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.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(); - } - - 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(); - } - - @Override - public ClusterManagerSettings build() throws IOException { - return new ClusterManagerSettings(this); - } - } -} 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 deleted file mode 100644 index 8ae2ac50ca28..000000000000 --- a/owl-bot-staging/java-container/v1/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerStub.java +++ /dev/null @@ -1,1268 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.UnaryCallable; -import com.google.common.collect.ImmutableMap; -import com.google.container.v1.CancelOperationRequest; -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 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 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 -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings getClusterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getClusterMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings createClusterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createClusterMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings updateClusterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateClusterMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings updateNodePoolTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateNodePoolMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("node_pool_id", String.valueOf(request.getNodePoolId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings - setNodePoolAutoscalingTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setNodePoolAutoscalingMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("node_pool_id", String.valueOf(request.getNodePoolId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings setLoggingServiceTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setLoggingServiceMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings setMonitoringServiceTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setMonitoringServiceMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings setAddonsConfigTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setAddonsConfigMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings setLocationsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setLocationsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings updateMasterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateMasterMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings setMasterAuthTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setMasterAuthMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteClusterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteClusterMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings - listOperationsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listOperationsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings getOperationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getOperationMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - params.put("operation_id", String.valueOf(request.getOperationId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings cancelOperationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(cancelOperationMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - params.put("operation_id", String.valueOf(request.getOperationId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings getServerConfigTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getServerConfigMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings - getJSONWebKeysTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getJSONWebKeysMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings listNodePoolsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listNodePoolsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("parent", String.valueOf(request.getParent())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings getNodePoolTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getNodePoolMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("node_pool_id", String.valueOf(request.getNodePoolId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings createNodePoolTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createNodePoolMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("parent", String.valueOf(request.getParent())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteNodePoolTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteNodePoolMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("node_pool_id", String.valueOf(request.getNodePoolId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings - completeNodePoolUpgradeTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(completeNodePoolUpgradeMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - rollbackNodePoolUpgradeTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(rollbackNodePoolUpgradeMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("node_pool_id", String.valueOf(request.getNodePoolId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings - setNodePoolManagementTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setNodePoolManagementMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("node_pool_id", String.valueOf(request.getNodePoolId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings setLabelsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setLabelsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings setLegacyAbacTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setLegacyAbacMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings startIPRotationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(startIPRotationMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings completeIPRotationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(completeIPRotationMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings setNodePoolSizeTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setNodePoolSizeMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("node_pool_id", String.valueOf(request.getNodePoolId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings setNetworkPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setNetworkPolicyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings setMaintenancePolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setMaintenancePolicyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings - listUsableSubnetworksTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(listUsableSubnetworksMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - - this.listClustersCallable = - callableFactory.createUnaryCallable( - listClustersTransportSettings, settings.listClustersSettings(), clientContext); - this.getClusterCallable = - callableFactory.createUnaryCallable( - getClusterTransportSettings, settings.getClusterSettings(), clientContext); - this.createClusterCallable = - callableFactory.createUnaryCallable( - createClusterTransportSettings, settings.createClusterSettings(), clientContext); - this.updateClusterCallable = - callableFactory.createUnaryCallable( - updateClusterTransportSettings, settings.updateClusterSettings(), clientContext); - this.updateNodePoolCallable = - callableFactory.createUnaryCallable( - updateNodePoolTransportSettings, settings.updateNodePoolSettings(), clientContext); - this.setNodePoolAutoscalingCallable = - callableFactory.createUnaryCallable( - setNodePoolAutoscalingTransportSettings, - settings.setNodePoolAutoscalingSettings(), - clientContext); - this.setLoggingServiceCallable = - callableFactory.createUnaryCallable( - setLoggingServiceTransportSettings, - settings.setLoggingServiceSettings(), - clientContext); - this.setMonitoringServiceCallable = - callableFactory.createUnaryCallable( - setMonitoringServiceTransportSettings, - settings.setMonitoringServiceSettings(), - clientContext); - this.setAddonsConfigCallable = - callableFactory.createUnaryCallable( - setAddonsConfigTransportSettings, settings.setAddonsConfigSettings(), clientContext); - this.setLocationsCallable = - callableFactory.createUnaryCallable( - setLocationsTransportSettings, settings.setLocationsSettings(), clientContext); - this.updateMasterCallable = - callableFactory.createUnaryCallable( - updateMasterTransportSettings, settings.updateMasterSettings(), clientContext); - this.setMasterAuthCallable = - callableFactory.createUnaryCallable( - setMasterAuthTransportSettings, settings.setMasterAuthSettings(), clientContext); - this.deleteClusterCallable = - callableFactory.createUnaryCallable( - deleteClusterTransportSettings, settings.deleteClusterSettings(), clientContext); - this.listOperationsCallable = - callableFactory.createUnaryCallable( - listOperationsTransportSettings, settings.listOperationsSettings(), clientContext); - this.getOperationCallable = - callableFactory.createUnaryCallable( - getOperationTransportSettings, settings.getOperationSettings(), clientContext); - this.cancelOperationCallable = - callableFactory.createUnaryCallable( - cancelOperationTransportSettings, settings.cancelOperationSettings(), clientContext); - this.getServerConfigCallable = - callableFactory.createUnaryCallable( - getServerConfigTransportSettings, settings.getServerConfigSettings(), clientContext); - this.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.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 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/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 deleted file mode 100644 index b40809697a30..000000000000 --- a/owl-bot-staging/java-container/v1/grpc-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterManagerGrpc.java +++ /dev/null @@ -1,3175 +0,0 @@ -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 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; - } - - /** - * 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 static abstract class ClusterManagerImplBase implements io.grpc.BindableService { - - /** - *
-     * Lists all clusters owned by a project in either the specified zone or all
-     * zones.
-     * 
- */ - public void listClusters(com.google.container.v1.ListClustersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListClustersMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getGetClusterMethod(), responseObserver); - } - - /** - *
-     * Creates a cluster, consisting of the specified number and type of Google
-     * Compute Engine instances.
-     * By default, the cluster is created in the project's
-     * [default
-     * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks).
-     * One firewall is added for the cluster. After cluster creation,
-     * the Kubelet creates routes for each node to allow the containers
-     * on that node to communicate with all other instances in the
-     * cluster.
-     * Finally, an entry is added to the project's global metadata indicating
-     * which CIDR range the cluster is using.
-     * 
- */ - public void createCluster(com.google.container.v1.CreateClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateClusterMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getUpdateClusterMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getUpdateNodePoolMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getSetNodePoolAutoscalingMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getSetLoggingServiceMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getSetMonitoringServiceMethod(), 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.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 - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public void listOperations(com.google.container.v1.ListOperationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListOperationsMethod(), responseObserver); - } - - /** - *
-     * Gets the specified operation.
-     * 
- */ - public void getOperation(com.google.container.v1.GetOperationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetOperationMethod(), responseObserver); - } - - /** - *
-     * Cancels the specified operation.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * This API is not yet intended for general use, and is not available for all
-     * clusters.
-     * 
- */ - public void getJSONWebKeys(com.google.container.v1.GetJSONWebKeysRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetJSONWebKeysMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getListNodePoolsMethod(), responseObserver); - } - - /** - *
-     * Retrieves the requested node pool.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public void setLegacyAbac(com.google.container.v1.SetLegacyAbacRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetLegacyAbacMethod(), responseObserver); - } - - /** - *
-     * Starts master IP rotation.
-     * 
- */ - public void startIPRotation(com.google.container.v1.StartIPRotationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartIPRotationMethod(), responseObserver); - } - - /** - *
-     * Completes master IP rotation.
-     * 
- */ - public 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].
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public void listUsableSubnetworks(com.google.container.v1.ListUsableSubnetworksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListUsableSubnetworksMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListClustersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.ListClustersRequest, - com.google.container.v1.ListClustersResponse>( - this, METHODID_LIST_CLUSTERS))) - .addMethod( - getGetClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.GetClusterRequest, - com.google.container.v1.Cluster>( - this, METHODID_GET_CLUSTER))) - .addMethod( - getCreateClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.CreateClusterRequest, - com.google.container.v1.Operation>( - this, METHODID_CREATE_CLUSTER))) - .addMethod( - getUpdateClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.UpdateClusterRequest, - com.google.container.v1.Operation>( - this, METHODID_UPDATE_CLUSTER))) - .addMethod( - getUpdateNodePoolMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.UpdateNodePoolRequest, - com.google.container.v1.Operation>( - this, METHODID_UPDATE_NODE_POOL))) - .addMethod( - getSetNodePoolAutoscalingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.SetNodePoolAutoscalingRequest, - com.google.container.v1.Operation>( - this, METHODID_SET_NODE_POOL_AUTOSCALING))) - .addMethod( - getSetLoggingServiceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.SetLoggingServiceRequest, - com.google.container.v1.Operation>( - this, METHODID_SET_LOGGING_SERVICE))) - .addMethod( - getSetMonitoringServiceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.SetMonitoringServiceRequest, - com.google.container.v1.Operation>( - this, METHODID_SET_MONITORING_SERVICE))) - .addMethod( - getSetAddonsConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.SetAddonsConfigRequest, - com.google.container.v1.Operation>( - this, METHODID_SET_ADDONS_CONFIG))) - .addMethod( - getSetLocationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.SetLocationsRequest, - com.google.container.v1.Operation>( - this, METHODID_SET_LOCATIONS))) - .addMethod( - getUpdateMasterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.UpdateMasterRequest, - com.google.container.v1.Operation>( - this, METHODID_UPDATE_MASTER))) - .addMethod( - getSetMasterAuthMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.SetMasterAuthRequest, - com.google.container.v1.Operation>( - this, METHODID_SET_MASTER_AUTH))) - .addMethod( - getDeleteClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.DeleteClusterRequest, - com.google.container.v1.Operation>( - this, METHODID_DELETE_CLUSTER))) - .addMethod( - getListOperationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.ListOperationsRequest, - com.google.container.v1.ListOperationsResponse>( - this, METHODID_LIST_OPERATIONS))) - .addMethod( - getGetOperationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.GetOperationRequest, - com.google.container.v1.Operation>( - this, METHODID_GET_OPERATION))) - .addMethod( - getCancelOperationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.CancelOperationRequest, - com.google.protobuf.Empty>( - this, METHODID_CANCEL_OPERATION))) - .addMethod( - getGetServerConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.GetServerConfigRequest, - com.google.container.v1.ServerConfig>( - this, METHODID_GET_SERVER_CONFIG))) - .addMethod( - getGetJSONWebKeysMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.GetJSONWebKeysRequest, - com.google.container.v1.GetJSONWebKeysResponse>( - this, METHODID_GET_JSONWEB_KEYS))) - .addMethod( - getListNodePoolsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.ListNodePoolsRequest, - com.google.container.v1.ListNodePoolsResponse>( - this, METHODID_LIST_NODE_POOLS))) - .addMethod( - getGetNodePoolMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.GetNodePoolRequest, - com.google.container.v1.NodePool>( - this, METHODID_GET_NODE_POOL))) - .addMethod( - getCreateNodePoolMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.CreateNodePoolRequest, - com.google.container.v1.Operation>( - this, METHODID_CREATE_NODE_POOL))) - .addMethod( - getDeleteNodePoolMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.DeleteNodePoolRequest, - com.google.container.v1.Operation>( - this, METHODID_DELETE_NODE_POOL))) - .addMethod( - getCompleteNodePoolUpgradeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.CompleteNodePoolUpgradeRequest, - com.google.protobuf.Empty>( - this, METHODID_COMPLETE_NODE_POOL_UPGRADE))) - .addMethod( - getRollbackNodePoolUpgradeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.RollbackNodePoolUpgradeRequest, - com.google.container.v1.Operation>( - this, METHODID_ROLLBACK_NODE_POOL_UPGRADE))) - .addMethod( - getSetNodePoolManagementMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.SetNodePoolManagementRequest, - com.google.container.v1.Operation>( - this, METHODID_SET_NODE_POOL_MANAGEMENT))) - .addMethod( - getSetLabelsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.SetLabelsRequest, - com.google.container.v1.Operation>( - this, METHODID_SET_LABELS))) - .addMethod( - getSetLegacyAbacMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.SetLegacyAbacRequest, - com.google.container.v1.Operation>( - this, METHODID_SET_LEGACY_ABAC))) - .addMethod( - getStartIPRotationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.StartIPRotationRequest, - com.google.container.v1.Operation>( - this, METHODID_START_IPROTATION))) - .addMethod( - getCompleteIPRotationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.CompleteIPRotationRequest, - com.google.container.v1.Operation>( - this, METHODID_COMPLETE_IPROTATION))) - .addMethod( - getSetNodePoolSizeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.SetNodePoolSizeRequest, - com.google.container.v1.Operation>( - this, METHODID_SET_NODE_POOL_SIZE))) - .addMethod( - getSetNetworkPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.SetNetworkPolicyRequest, - com.google.container.v1.Operation>( - this, METHODID_SET_NETWORK_POLICY))) - .addMethod( - getSetMaintenancePolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.SetMaintenancePolicyRequest, - com.google.container.v1.Operation>( - this, METHODID_SET_MAINTENANCE_POLICY))) - .addMethod( - getListUsableSubnetworksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.ListUsableSubnetworksRequest, - com.google.container.v1.ListUsableSubnetworksResponse>( - this, METHODID_LIST_USABLE_SUBNETWORKS))) - .build(); - } - } - - /** - *
-   * 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.
-     * This API is not yet intended for general use, and is not available for all
-     * clusters.
-     * 
- */ - public void getJSONWebKeys(com.google.container.v1.GetJSONWebKeysRequest request, - io.grpc.stub.StreamObserver responseObserver) { - 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); - } - } - - /** - *
-   * 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.
-     * This API is not yet intended for general use, and is not available for all
-     * clusters.
-     * 
- */ - public com.google.container.v1.GetJSONWebKeysResponse getJSONWebKeys(com.google.container.v1.GetJSONWebKeysRequest request) { - return 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); - } - } - - /** - *
-   * 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.
-     * This API is not yet intended for general use, and is not available for all
-     * clusters.
-     * 
- */ - 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); - } - } - - 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 class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final ClusterManagerImplBase serviceImpl; - private final int methodId; - - MethodHandlers(ClusterManagerImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_CLUSTERS: - serviceImpl.listClusters((com.google.container.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; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class ClusterManagerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ClusterManagerBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.container.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 String methodName; - - ClusterManagerMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (ClusterManagerGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ClusterManagerFileDescriptorSupplier()) - .addMethod(getListClustersMethod()) - .addMethod(getGetClusterMethod()) - .addMethod(getCreateClusterMethod()) - .addMethod(getUpdateClusterMethod()) - .addMethod(getUpdateNodePoolMethod()) - .addMethod(getSetNodePoolAutoscalingMethod()) - .addMethod(getSetLoggingServiceMethod()) - .addMethod(getSetMonitoringServiceMethod()) - .addMethod(getSetAddonsConfigMethod()) - .addMethod(getSetLocationsMethod()) - .addMethod(getUpdateMasterMethod()) - .addMethod(getSetMasterAuthMethod()) - .addMethod(getDeleteClusterMethod()) - .addMethod(getListOperationsMethod()) - .addMethod(getGetOperationMethod()) - .addMethod(getCancelOperationMethod()) - .addMethod(getGetServerConfigMethod()) - .addMethod(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()) - .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 deleted file mode 100644 index 21d5a401ce31..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfig.java +++ /dev/null @@ -1,1086 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * The number of the accelerator cards exposed to an instance.
-   * 
- * - * int64 accelerator_count = 1; - * @return The acceleratorCount. - */ - @java.lang.Override - public long getAcceleratorCount() { - return acceleratorCount_; - } - - public static final int ACCELERATOR_TYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object acceleratorType_; - /** - *
-   * The accelerator type resource name. List of supported accelerators
-   * [here](https://cloud.google.com/compute/docs/gpus)
-   * 
- * - * string accelerator_type = 2; - * @return The acceleratorType. - */ - @java.lang.Override - public java.lang.String getAcceleratorType() { - java.lang.Object ref = acceleratorType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - acceleratorType_ = s; - return s; - } - } - /** - *
-   * The accelerator type resource name. List of supported accelerators
-   * [here](https://cloud.google.com/compute/docs/gpus)
-   * 
- * - * string accelerator_type = 2; - * @return The bytes for acceleratorType. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAcceleratorTypeBytes() { - java.lang.Object ref = acceleratorType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - acceleratorType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GPU_PARTITION_SIZE_FIELD_NUMBER = 3; - private volatile java.lang.Object gpuPartitionSize_; - /** - *
-   * Size of partitions to create on the GPU. Valid values are described in the
-   * NVIDIA [mig user
-   * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
-   * 
- * - * string gpu_partition_size = 3; - * @return The gpuPartitionSize. - */ - @java.lang.Override - public java.lang.String getGpuPartitionSize() { - java.lang.Object ref = gpuPartitionSize_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gpuPartitionSize_ = s; - return s; - } - } - /** - *
-   * Size of partitions to create on the GPU. Valid values are described in the
-   * NVIDIA [mig user
-   * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
-   * 
- * - * string gpu_partition_size = 3; - * @return The bytes for gpuPartitionSize. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getGpuPartitionSizeBytes() { - java.lang.Object ref = gpuPartitionSize_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gpuPartitionSize_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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()); - } - 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()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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(); - } - 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(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - acceleratorCount_ = 0L; - - acceleratorType_ = ""; - - gpuPartitionSize_ = ""; - - if (gpuSharingConfigBuilder_ == null) { - gpuSharingConfig_ = null; - } else { - gpuSharingConfigBuilder_.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_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); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.acceleratorCount_ = acceleratorCount_; - result.acceleratorType_ = acceleratorType_; - result.gpuPartitionSize_ = gpuPartitionSize_; - if (((from_bitField0_ & 0x00000001) != 0)) { - if (gpuSharingConfigBuilder_ == null) { - result.gpuSharingConfig_ = gpuSharingConfig_; - } else { - result.gpuSharingConfig_ = gpuSharingConfigBuilder_.build(); - } - to_bitField0_ |= 0x00000001; - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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_; - onChanged(); - } - if (!other.getGpuPartitionSize().isEmpty()) { - gpuPartitionSize_ = other.gpuPartitionSize_; - onChanged(); - } - if (other.hasGpuSharingConfig()) { - mergeGpuSharingConfig(other.getGpuSharingConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 8 - case 18: { - acceleratorType_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - gpuPartitionSize_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 42: { - input.readMessage( - getGpuSharingConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 long acceleratorCount_ ; - /** - *
-     * The number of the accelerator cards exposed to an instance.
-     * 
- * - * int64 accelerator_count = 1; - * @return The acceleratorCount. - */ - @java.lang.Override - public long getAcceleratorCount() { - return acceleratorCount_; - } - /** - *
-     * The number of the accelerator cards exposed to an instance.
-     * 
- * - * int64 accelerator_count = 1; - * @param value The acceleratorCount to set. - * @return This builder for chaining. - */ - public Builder setAcceleratorCount(long value) { - - acceleratorCount_ = value; - onChanged(); - return this; - } - /** - *
-     * The number of the accelerator cards exposed to an instance.
-     * 
- * - * int64 accelerator_count = 1; - * @return This builder for chaining. - */ - public Builder clearAcceleratorCount() { - - acceleratorCount_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object acceleratorType_ = ""; - /** - *
-     * The accelerator type resource name. List of supported accelerators
-     * [here](https://cloud.google.com/compute/docs/gpus)
-     * 
- * - * string accelerator_type = 2; - * @return The acceleratorType. - */ - public java.lang.String getAcceleratorType() { - java.lang.Object ref = acceleratorType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - acceleratorType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The accelerator type resource name. List of supported accelerators
-     * [here](https://cloud.google.com/compute/docs/gpus)
-     * 
- * - * string accelerator_type = 2; - * @return The bytes for acceleratorType. - */ - public com.google.protobuf.ByteString - getAcceleratorTypeBytes() { - java.lang.Object ref = acceleratorType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - acceleratorType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The accelerator type resource name. List of supported accelerators
-     * [here](https://cloud.google.com/compute/docs/gpus)
-     * 
- * - * string accelerator_type = 2; - * @param value The acceleratorType to set. - * @return This builder for chaining. - */ - public Builder setAcceleratorType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - acceleratorType_ = value; - onChanged(); - return this; - } - /** - *
-     * The accelerator type resource name. List of supported accelerators
-     * [here](https://cloud.google.com/compute/docs/gpus)
-     * 
- * - * string accelerator_type = 2; - * @return This builder for chaining. - */ - public Builder clearAcceleratorType() { - - acceleratorType_ = getDefaultInstance().getAcceleratorType(); - onChanged(); - return this; - } - /** - *
-     * The accelerator type resource name. List of supported accelerators
-     * [here](https://cloud.google.com/compute/docs/gpus)
-     * 
- * - * string accelerator_type = 2; - * @param value The bytes for acceleratorType to set. - * @return This builder for chaining. - */ - public Builder setAcceleratorTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - acceleratorType_ = value; - onChanged(); - return this; - } - - private java.lang.Object gpuPartitionSize_ = ""; - /** - *
-     * Size of partitions to create on the GPU. Valid values are described in the
-     * NVIDIA [mig user
-     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
-     * 
- * - * string gpu_partition_size = 3; - * @return The gpuPartitionSize. - */ - public java.lang.String getGpuPartitionSize() { - java.lang.Object ref = gpuPartitionSize_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gpuPartitionSize_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Size of partitions to create on the GPU. Valid values are described in the
-     * NVIDIA [mig user
-     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
-     * 
- * - * string gpu_partition_size = 3; - * @return The bytes for gpuPartitionSize. - */ - public com.google.protobuf.ByteString - getGpuPartitionSizeBytes() { - java.lang.Object ref = gpuPartitionSize_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gpuPartitionSize_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Size of partitions to create on the GPU. Valid values are described in the
-     * NVIDIA [mig user
-     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
-     * 
- * - * string gpu_partition_size = 3; - * @param value The gpuPartitionSize to set. - * @return This builder for chaining. - */ - public Builder setGpuPartitionSize( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - gpuPartitionSize_ = value; - onChanged(); - return this; - } - /** - *
-     * Size of partitions to create on the GPU. Valid values are described in the
-     * NVIDIA [mig user
-     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
-     * 
- * - * string gpu_partition_size = 3; - * @return This builder for chaining. - */ - public Builder clearGpuPartitionSize() { - - gpuPartitionSize_ = getDefaultInstance().getGpuPartitionSize(); - onChanged(); - return this; - } - /** - *
-     * Size of partitions to create on the GPU. Valid values are described in the
-     * NVIDIA [mig user
-     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
-     * 
- * - * string gpu_partition_size = 3; - * @param value The bytes for gpuPartitionSize to set. - * @return This builder for chaining. - */ - public Builder setGpuPartitionSizeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - gpuPartitionSize_ = value; - onChanged(); - return this; - } - - 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_ & 0x00000001) != 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; - onChanged(); - } else { - gpuSharingConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - 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(); - onChanged(); - } else { - gpuSharingConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - 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_ & 0x00000001) != 0) && - gpuSharingConfig_ != null && - gpuSharingConfig_ != com.google.container.v1.GPUSharingConfig.getDefaultInstance()) { - gpuSharingConfig_ = - com.google.container.v1.GPUSharingConfig.newBuilder(gpuSharingConfig_).mergeFrom(value).buildPartial(); - } else { - gpuSharingConfig_ = value; - } - onChanged(); - } else { - gpuSharingConfigBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - *
-     * The configuration for GPU sharing options.
-     * 
- * - * optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; - */ - public Builder clearGpuSharingConfig() { - if (gpuSharingConfigBuilder_ == null) { - gpuSharingConfig_ = null; - onChanged(); - } else { - gpuSharingConfigBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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_ |= 0x00000001; - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 055414b349d9..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfigOrBuilder.java +++ /dev/null @@ -1,92 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); -} 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 deleted file mode 100644 index 1ff47ae621e6..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java +++ /dev/null @@ -1,2851 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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); - } - - 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 httpLoadBalancing_ != null; - } - /** - *
-   * Configuration for the HTTP (L7) load balancing controller addon, which
-   * makes it easy to set up HTTP load balancers for services in a cluster.
-   * 
- * - * .google.container.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 getHttpLoadBalancing(); - } - - 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 horizontalPodAutoscaling_ != null; - } - /** - *
-   * Configuration for the horizontal pod autoscaling feature, which
-   * increases or decreases the number of replica pods a replication controller
-   * has based on the resource usage of the existing pods.
-   * 
- * - * .google.container.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 getHorizontalPodAutoscaling(); - } - - 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=1043 - * @return Whether the kubernetesDashboard field is set. - */ - @java.lang.Override - @java.lang.Deprecated public boolean hasKubernetesDashboard() { - return kubernetesDashboard_ != null; - } - /** - *
-   * Configuration for the Kubernetes Dashboard.
-   * This addon is deprecated, and will be disabled in 1.15. It is recommended
-   * to use the Cloud Console to manage and monitor your Kubernetes clusters,
-   * workloads and applications. For more information, see:
-   * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
-   * 
- * - * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. - * See google/container/v1/cluster_service.proto;l=1043 - * @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 getKubernetesDashboard(); - } - - 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 networkPolicyConfig_ != null; - } - /** - *
-   * Configuration for NetworkPolicy. This only tracks whether the addon
-   * is enabled or not on the Master, it does not track whether network policy
-   * is enabled for the nodes.
-   * 
- * - * .google.container.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 getNetworkPolicyConfig(); - } - - 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 cloudRunConfig_ != null; - } - /** - *
-   * 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 getCloudRunConfig(); - } - - public static final int DNS_CACHE_CONFIG_FIELD_NUMBER = 8; - private com.google.container.v1.DnsCacheConfig dnsCacheConfig_; - /** - *
-   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-   * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - * @return Whether the dnsCacheConfig field is set. - */ - @java.lang.Override - public boolean hasDnsCacheConfig() { - return dnsCacheConfig_ != null; - } - /** - *
-   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-   * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - * @return The dnsCacheConfig. - */ - @java.lang.Override - public com.google.container.v1.DnsCacheConfig getDnsCacheConfig() { - return dnsCacheConfig_ == null ? com.google.container.v1.DnsCacheConfig.getDefaultInstance() : dnsCacheConfig_; - } - /** - *
-   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-   * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - */ - @java.lang.Override - public com.google.container.v1.DnsCacheConfigOrBuilder getDnsCacheConfigOrBuilder() { - return getDnsCacheConfig(); - } - - public static final int CONFIG_CONNECTOR_CONFIG_FIELD_NUMBER = 10; - private com.google.container.v1.ConfigConnectorConfig configConnectorConfig_; - /** - *
-   * Configuration for the ConfigConnector add-on, a Kubernetes
-   * extension to manage hosted GCP services through the Kubernetes API
-   * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - * @return Whether the configConnectorConfig field is set. - */ - @java.lang.Override - public boolean hasConfigConnectorConfig() { - return configConnectorConfig_ != null; - } - /** - *
-   * Configuration for the ConfigConnector add-on, a Kubernetes
-   * extension to manage hosted GCP services through the Kubernetes API
-   * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - * @return The configConnectorConfig. - */ - @java.lang.Override - public com.google.container.v1.ConfigConnectorConfig getConfigConnectorConfig() { - return configConnectorConfig_ == null ? com.google.container.v1.ConfigConnectorConfig.getDefaultInstance() : configConnectorConfig_; - } - /** - *
-   * Configuration for the ConfigConnector add-on, a Kubernetes
-   * extension to manage hosted GCP services through the Kubernetes API
-   * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - */ - @java.lang.Override - public com.google.container.v1.ConfigConnectorConfigOrBuilder getConfigConnectorConfigOrBuilder() { - return getConfigConnectorConfig(); - } - - public static final int GCE_PERSISTENT_DISK_CSI_DRIVER_CONFIG_FIELD_NUMBER = 11; - private com.google.container.v1.GcePersistentDiskCsiDriverConfig gcePersistentDiskCsiDriverConfig_; - /** - *
-   * Configuration for the Compute Engine Persistent Disk CSI driver.
-   * 
- * - * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - * @return Whether the gcePersistentDiskCsiDriverConfig field is set. - */ - @java.lang.Override - public boolean hasGcePersistentDiskCsiDriverConfig() { - return gcePersistentDiskCsiDriverConfig_ != null; - } - /** - *
-   * Configuration for the Compute Engine Persistent Disk CSI driver.
-   * 
- * - * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - * @return The gcePersistentDiskCsiDriverConfig. - */ - @java.lang.Override - public com.google.container.v1.GcePersistentDiskCsiDriverConfig getGcePersistentDiskCsiDriverConfig() { - return gcePersistentDiskCsiDriverConfig_ == null ? com.google.container.v1.GcePersistentDiskCsiDriverConfig.getDefaultInstance() : gcePersistentDiskCsiDriverConfig_; - } - /** - *
-   * Configuration for the Compute Engine Persistent Disk CSI driver.
-   * 
- * - * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - */ - @java.lang.Override - public com.google.container.v1.GcePersistentDiskCsiDriverConfigOrBuilder getGcePersistentDiskCsiDriverConfigOrBuilder() { - return getGcePersistentDiskCsiDriverConfig(); - } - - public static final int GCP_FILESTORE_CSI_DRIVER_CONFIG_FIELD_NUMBER = 14; - private com.google.container.v1.GcpFilestoreCsiDriverConfig gcpFilestoreCsiDriverConfig_; - /** - *
-   * Configuration for the GCP Filestore CSI driver.
-   * 
- * - * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * @return Whether the gcpFilestoreCsiDriverConfig field is set. - */ - @java.lang.Override - public boolean hasGcpFilestoreCsiDriverConfig() { - return gcpFilestoreCsiDriverConfig_ != null; - } - /** - *
-   * Configuration for the GCP Filestore CSI driver.
-   * 
- * - * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * @return The gcpFilestoreCsiDriverConfig. - */ - @java.lang.Override - public com.google.container.v1.GcpFilestoreCsiDriverConfig getGcpFilestoreCsiDriverConfig() { - return gcpFilestoreCsiDriverConfig_ == null ? com.google.container.v1.GcpFilestoreCsiDriverConfig.getDefaultInstance() : gcpFilestoreCsiDriverConfig_; - } - /** - *
-   * Configuration for the GCP Filestore CSI driver.
-   * 
- * - * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - */ - @java.lang.Override - public com.google.container.v1.GcpFilestoreCsiDriverConfigOrBuilder getGcpFilestoreCsiDriverConfigOrBuilder() { - return getGcpFilestoreCsiDriverConfig(); - } - - 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 gkeBackupAgentConfig_ != null; - } - /** - *
-   * 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 getGkeBackupAgentConfig(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (httpLoadBalancing_ != null) { - output.writeMessage(1, getHttpLoadBalancing()); - } - if (horizontalPodAutoscaling_ != null) { - output.writeMessage(2, getHorizontalPodAutoscaling()); - } - if (kubernetesDashboard_ != null) { - output.writeMessage(3, getKubernetesDashboard()); - } - if (networkPolicyConfig_ != null) { - output.writeMessage(4, getNetworkPolicyConfig()); - } - if (cloudRunConfig_ != null) { - output.writeMessage(7, getCloudRunConfig()); - } - if (dnsCacheConfig_ != null) { - output.writeMessage(8, getDnsCacheConfig()); - } - if (configConnectorConfig_ != null) { - output.writeMessage(10, getConfigConnectorConfig()); - } - if (gcePersistentDiskCsiDriverConfig_ != null) { - output.writeMessage(11, getGcePersistentDiskCsiDriverConfig()); - } - if (gcpFilestoreCsiDriverConfig_ != null) { - output.writeMessage(14, getGcpFilestoreCsiDriverConfig()); - } - if (gkeBackupAgentConfig_ != null) { - output.writeMessage(16, getGkeBackupAgentConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (httpLoadBalancing_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getHttpLoadBalancing()); - } - if (horizontalPodAutoscaling_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getHorizontalPodAutoscaling()); - } - if (kubernetesDashboard_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getKubernetesDashboard()); - } - if (networkPolicyConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getNetworkPolicyConfig()); - } - if (cloudRunConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getCloudRunConfig()); - } - if (dnsCacheConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getDnsCacheConfig()); - } - if (configConnectorConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getConfigConnectorConfig()); - } - if (gcePersistentDiskCsiDriverConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getGcePersistentDiskCsiDriverConfig()); - } - if (gcpFilestoreCsiDriverConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getGcpFilestoreCsiDriverConfig()); - } - if (gkeBackupAgentConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getGkeBackupAgentConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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 (!getUnknownFields().equals(other.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(); - } - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (httpLoadBalancingBuilder_ == null) { - httpLoadBalancing_ = null; - } else { - httpLoadBalancing_ = null; - httpLoadBalancingBuilder_ = null; - } - if (horizontalPodAutoscalingBuilder_ == null) { - horizontalPodAutoscaling_ = null; - } else { - horizontalPodAutoscaling_ = null; - horizontalPodAutoscalingBuilder_ = null; - } - if (kubernetesDashboardBuilder_ == null) { - kubernetesDashboard_ = null; - } else { - kubernetesDashboard_ = null; - kubernetesDashboardBuilder_ = null; - } - if (networkPolicyConfigBuilder_ == null) { - networkPolicyConfig_ = null; - } else { - networkPolicyConfig_ = null; - networkPolicyConfigBuilder_ = null; - } - if (cloudRunConfigBuilder_ == null) { - cloudRunConfig_ = null; - } else { - cloudRunConfig_ = null; - cloudRunConfigBuilder_ = null; - } - if (dnsCacheConfigBuilder_ == null) { - dnsCacheConfig_ = null; - } else { - dnsCacheConfig_ = null; - dnsCacheConfigBuilder_ = null; - } - if (configConnectorConfigBuilder_ == null) { - configConnectorConfig_ = null; - } else { - configConnectorConfig_ = null; - configConnectorConfigBuilder_ = null; - } - if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { - gcePersistentDiskCsiDriverConfig_ = null; - } else { - gcePersistentDiskCsiDriverConfig_ = null; - gcePersistentDiskCsiDriverConfigBuilder_ = null; - } - if (gcpFilestoreCsiDriverConfigBuilder_ == null) { - gcpFilestoreCsiDriverConfig_ = null; - } else { - gcpFilestoreCsiDriverConfig_ = null; - gcpFilestoreCsiDriverConfigBuilder_ = null; - } - if (gkeBackupAgentConfigBuilder_ == null) { - gkeBackupAgentConfig_ = null; - } else { - gkeBackupAgentConfig_ = null; - gkeBackupAgentConfigBuilder_ = 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 (httpLoadBalancingBuilder_ == null) { - result.httpLoadBalancing_ = httpLoadBalancing_; - } else { - result.httpLoadBalancing_ = httpLoadBalancingBuilder_.build(); - } - if (horizontalPodAutoscalingBuilder_ == null) { - result.horizontalPodAutoscaling_ = horizontalPodAutoscaling_; - } else { - result.horizontalPodAutoscaling_ = horizontalPodAutoscalingBuilder_.build(); - } - if (kubernetesDashboardBuilder_ == null) { - result.kubernetesDashboard_ = kubernetesDashboard_; - } else { - result.kubernetesDashboard_ = kubernetesDashboardBuilder_.build(); - } - if (networkPolicyConfigBuilder_ == null) { - result.networkPolicyConfig_ = networkPolicyConfig_; - } else { - result.networkPolicyConfig_ = networkPolicyConfigBuilder_.build(); - } - if (cloudRunConfigBuilder_ == null) { - result.cloudRunConfig_ = cloudRunConfig_; - } else { - result.cloudRunConfig_ = cloudRunConfigBuilder_.build(); - } - if (dnsCacheConfigBuilder_ == null) { - result.dnsCacheConfig_ = dnsCacheConfig_; - } else { - result.dnsCacheConfig_ = dnsCacheConfigBuilder_.build(); - } - if (configConnectorConfigBuilder_ == null) { - result.configConnectorConfig_ = configConnectorConfig_; - } else { - result.configConnectorConfig_ = configConnectorConfigBuilder_.build(); - } - if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { - result.gcePersistentDiskCsiDriverConfig_ = gcePersistentDiskCsiDriverConfig_; - } else { - result.gcePersistentDiskCsiDriverConfig_ = gcePersistentDiskCsiDriverConfigBuilder_.build(); - } - if (gcpFilestoreCsiDriverConfigBuilder_ == null) { - result.gcpFilestoreCsiDriverConfig_ = gcpFilestoreCsiDriverConfig_; - } else { - result.gcpFilestoreCsiDriverConfig_ = gcpFilestoreCsiDriverConfigBuilder_.build(); - } - if (gkeBackupAgentConfigBuilder_ == null) { - result.gkeBackupAgentConfig_ = gkeBackupAgentConfig_; - } else { - result.gkeBackupAgentConfig_ = gkeBackupAgentConfigBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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); - - break; - } // case 10 - case 18: { - input.readMessage( - getHorizontalPodAutoscalingFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - case 26: { - input.readMessage( - getKubernetesDashboardFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 26 - case 34: { - input.readMessage( - getNetworkPolicyConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 34 - case 58: { - input.readMessage( - getCloudRunConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 58 - case 66: { - input.readMessage( - getDnsCacheConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 66 - case 82: { - input.readMessage( - getConfigConnectorConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 82 - case 90: { - input.readMessage( - getGcePersistentDiskCsiDriverConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 90 - case 114: { - input.readMessage( - getGcpFilestoreCsiDriverConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 114 - case 130: { - input.readMessage( - getGkeBackupAgentConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 130 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - 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 httpLoadBalancingBuilder_ != null || httpLoadBalancing_ != null; - } - /** - *
-     * Configuration for the HTTP (L7) load balancing controller addon, which
-     * makes it easy to set up HTTP load balancers for services in a cluster.
-     * 
- * - * .google.container.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; - onChanged(); - } else { - httpLoadBalancingBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for the HTTP (L7) load balancing controller addon, which
-     * makes it easy to set up HTTP load balancers for services in a cluster.
-     * 
- * - * .google.container.v1.HttpLoadBalancing http_load_balancing = 1; - */ - public Builder setHttpLoadBalancing( - com.google.container.v1.HttpLoadBalancing.Builder builderForValue) { - if (httpLoadBalancingBuilder_ == null) { - httpLoadBalancing_ = builderForValue.build(); - onChanged(); - } else { - httpLoadBalancingBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for the HTTP (L7) load balancing controller addon, which
-     * makes it easy to set up HTTP load balancers for services in a cluster.
-     * 
- * - * .google.container.v1.HttpLoadBalancing http_load_balancing = 1; - */ - public Builder mergeHttpLoadBalancing(com.google.container.v1.HttpLoadBalancing value) { - if (httpLoadBalancingBuilder_ == null) { - if (httpLoadBalancing_ != null) { - httpLoadBalancing_ = - com.google.container.v1.HttpLoadBalancing.newBuilder(httpLoadBalancing_).mergeFrom(value).buildPartial(); - } else { - httpLoadBalancing_ = value; - } - onChanged(); - } else { - httpLoadBalancingBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for the HTTP (L7) load balancing controller addon, which
-     * makes it easy to set up HTTP load balancers for services in a cluster.
-     * 
- * - * .google.container.v1.HttpLoadBalancing http_load_balancing = 1; - */ - public Builder clearHttpLoadBalancing() { - if (httpLoadBalancingBuilder_ == null) { - httpLoadBalancing_ = null; - onChanged(); - } else { - httpLoadBalancing_ = null; - httpLoadBalancingBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for the HTTP (L7) load balancing controller addon, which
-     * makes it easy to set up HTTP load balancers for services in a cluster.
-     * 
- * - * .google.container.v1.HttpLoadBalancing http_load_balancing = 1; - */ - public com.google.container.v1.HttpLoadBalancing.Builder getHttpLoadBalancingBuilder() { - - onChanged(); - return getHttpLoadBalancingFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for the HTTP (L7) load balancing controller addon, which
-     * makes it easy to set up HTTP load balancers for services in a cluster.
-     * 
- * - * .google.container.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 horizontalPodAutoscalingBuilder_ != null || horizontalPodAutoscaling_ != null; - } - /** - *
-     * Configuration for the horizontal pod autoscaling feature, which
-     * increases or decreases the number of replica pods a replication controller
-     * has based on the resource usage of the existing pods.
-     * 
- * - * .google.container.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; - onChanged(); - } else { - horizontalPodAutoscalingBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for the horizontal pod autoscaling feature, which
-     * increases or decreases the number of replica pods a replication controller
-     * has based on the resource usage of the existing pods.
-     * 
- * - * .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - */ - public Builder setHorizontalPodAutoscaling( - com.google.container.v1.HorizontalPodAutoscaling.Builder builderForValue) { - if (horizontalPodAutoscalingBuilder_ == null) { - horizontalPodAutoscaling_ = builderForValue.build(); - onChanged(); - } else { - horizontalPodAutoscalingBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for the horizontal pod autoscaling feature, which
-     * increases or decreases the number of replica pods a replication controller
-     * has based on the resource usage of the existing pods.
-     * 
- * - * .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - */ - public Builder mergeHorizontalPodAutoscaling(com.google.container.v1.HorizontalPodAutoscaling value) { - if (horizontalPodAutoscalingBuilder_ == null) { - if (horizontalPodAutoscaling_ != null) { - horizontalPodAutoscaling_ = - com.google.container.v1.HorizontalPodAutoscaling.newBuilder(horizontalPodAutoscaling_).mergeFrom(value).buildPartial(); - } else { - horizontalPodAutoscaling_ = value; - } - onChanged(); - } else { - horizontalPodAutoscalingBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for the horizontal pod autoscaling feature, which
-     * increases or decreases the number of replica pods a replication controller
-     * has based on the resource usage of the existing pods.
-     * 
- * - * .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - */ - public Builder clearHorizontalPodAutoscaling() { - if (horizontalPodAutoscalingBuilder_ == null) { - horizontalPodAutoscaling_ = null; - onChanged(); - } else { - horizontalPodAutoscaling_ = null; - horizontalPodAutoscalingBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for the horizontal pod autoscaling feature, which
-     * increases or decreases the number of replica pods a replication controller
-     * has based on the resource usage of the existing pods.
-     * 
- * - * .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - */ - public com.google.container.v1.HorizontalPodAutoscaling.Builder getHorizontalPodAutoscalingBuilder() { - - onChanged(); - return getHorizontalPodAutoscalingFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for the horizontal pod autoscaling feature, which
-     * increases or decreases the number of replica pods a replication controller
-     * has based on the resource usage of the existing pods.
-     * 
- * - * .google.container.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=1043 - * @return Whether the kubernetesDashboard field is set. - */ - @java.lang.Deprecated public boolean hasKubernetesDashboard() { - return kubernetesDashboardBuilder_ != null || kubernetesDashboard_ != null; - } - /** - *
-     * Configuration for the Kubernetes Dashboard.
-     * This addon is deprecated, and will be disabled in 1.15. It is recommended
-     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
-     * workloads and applications. For more information, see:
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
-     * 
- * - * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. - * See google/container/v1/cluster_service.proto;l=1043 - * @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; - onChanged(); - } else { - kubernetesDashboardBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for the Kubernetes Dashboard.
-     * This addon is deprecated, and will be disabled in 1.15. It is recommended
-     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
-     * workloads and applications. For more information, see:
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
-     * 
- * - * .google.container.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(); - onChanged(); - } else { - kubernetesDashboardBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for the Kubernetes Dashboard.
-     * This addon is deprecated, and will be disabled in 1.15. It is recommended
-     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
-     * workloads and applications. For more information, see:
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
-     * 
- * - * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - */ - @java.lang.Deprecated public Builder mergeKubernetesDashboard(com.google.container.v1.KubernetesDashboard value) { - if (kubernetesDashboardBuilder_ == null) { - if (kubernetesDashboard_ != null) { - kubernetesDashboard_ = - com.google.container.v1.KubernetesDashboard.newBuilder(kubernetesDashboard_).mergeFrom(value).buildPartial(); - } else { - kubernetesDashboard_ = value; - } - onChanged(); - } else { - kubernetesDashboardBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for the Kubernetes Dashboard.
-     * This addon is deprecated, and will be disabled in 1.15. It is recommended
-     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
-     * workloads and applications. For more information, see:
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
-     * 
- * - * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearKubernetesDashboard() { - if (kubernetesDashboardBuilder_ == null) { - kubernetesDashboard_ = null; - onChanged(); - } else { - kubernetesDashboard_ = null; - kubernetesDashboardBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for the Kubernetes Dashboard.
-     * This addon is deprecated, and will be disabled in 1.15. It is recommended
-     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
-     * workloads and applications. For more information, see:
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
-     * 
- * - * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.container.v1.KubernetesDashboard.Builder getKubernetesDashboardBuilder() { - - onChanged(); - return getKubernetesDashboardFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for the Kubernetes Dashboard.
-     * This addon is deprecated, and will be disabled in 1.15. It is recommended
-     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
-     * workloads and applications. For more information, see:
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
-     * 
- * - * .google.container.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 networkPolicyConfigBuilder_ != null || networkPolicyConfig_ != null; - } - /** - *
-     * Configuration for NetworkPolicy. This only tracks whether the addon
-     * is enabled or not on the Master, it does not track whether network policy
-     * is enabled for the nodes.
-     * 
- * - * .google.container.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; - onChanged(); - } else { - networkPolicyConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for NetworkPolicy. This only tracks whether the addon
-     * is enabled or not on the Master, it does not track whether network policy
-     * is enabled for the nodes.
-     * 
- * - * .google.container.v1.NetworkPolicyConfig network_policy_config = 4; - */ - public Builder setNetworkPolicyConfig( - com.google.container.v1.NetworkPolicyConfig.Builder builderForValue) { - if (networkPolicyConfigBuilder_ == null) { - networkPolicyConfig_ = builderForValue.build(); - onChanged(); - } else { - networkPolicyConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for NetworkPolicy. This only tracks whether the addon
-     * is enabled or not on the Master, it does not track whether network policy
-     * is enabled for the nodes.
-     * 
- * - * .google.container.v1.NetworkPolicyConfig network_policy_config = 4; - */ - public Builder mergeNetworkPolicyConfig(com.google.container.v1.NetworkPolicyConfig value) { - if (networkPolicyConfigBuilder_ == null) { - if (networkPolicyConfig_ != null) { - networkPolicyConfig_ = - com.google.container.v1.NetworkPolicyConfig.newBuilder(networkPolicyConfig_).mergeFrom(value).buildPartial(); - } else { - networkPolicyConfig_ = value; - } - onChanged(); - } else { - networkPolicyConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for NetworkPolicy. This only tracks whether the addon
-     * is enabled or not on the Master, it does not track whether network policy
-     * is enabled for the nodes.
-     * 
- * - * .google.container.v1.NetworkPolicyConfig network_policy_config = 4; - */ - public Builder clearNetworkPolicyConfig() { - if (networkPolicyConfigBuilder_ == null) { - networkPolicyConfig_ = null; - onChanged(); - } else { - networkPolicyConfig_ = null; - networkPolicyConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for NetworkPolicy. This only tracks whether the addon
-     * is enabled or not on the Master, it does not track whether network policy
-     * is enabled for the nodes.
-     * 
- * - * .google.container.v1.NetworkPolicyConfig network_policy_config = 4; - */ - public com.google.container.v1.NetworkPolicyConfig.Builder getNetworkPolicyConfigBuilder() { - - onChanged(); - return getNetworkPolicyConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for NetworkPolicy. This only tracks whether the addon
-     * is enabled or not on the Master, it does not track whether network policy
-     * is enabled for the nodes.
-     * 
- * - * .google.container.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 cloudRunConfigBuilder_ != null || cloudRunConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - cloudRunConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - cloudRunConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (cloudRunConfig_ != null) { - cloudRunConfig_ = - com.google.container.v1.CloudRunConfig.newBuilder(cloudRunConfig_).mergeFrom(value).buildPartial(); - } else { - cloudRunConfig_ = value; - } - onChanged(); - } else { - cloudRunConfigBuilder_.mergeFrom(value); - } - - 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() { - if (cloudRunConfigBuilder_ == null) { - cloudRunConfig_ = null; - onChanged(); - } else { - cloudRunConfig_ = null; - cloudRunConfigBuilder_ = null; - } - - 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() { - - 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 dnsCacheConfigBuilder_ != null || dnsCacheConfig_ != null; - } - /** - *
-     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-     * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - * @return The dnsCacheConfig. - */ - public com.google.container.v1.DnsCacheConfig getDnsCacheConfig() { - if (dnsCacheConfigBuilder_ == null) { - return dnsCacheConfig_ == null ? com.google.container.v1.DnsCacheConfig.getDefaultInstance() : dnsCacheConfig_; - } else { - return dnsCacheConfigBuilder_.getMessage(); - } - } - /** - *
-     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-     * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - */ - public Builder setDnsCacheConfig(com.google.container.v1.DnsCacheConfig value) { - if (dnsCacheConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dnsCacheConfig_ = value; - onChanged(); - } else { - dnsCacheConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-     * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - */ - public Builder setDnsCacheConfig( - com.google.container.v1.DnsCacheConfig.Builder builderForValue) { - if (dnsCacheConfigBuilder_ == null) { - dnsCacheConfig_ = builderForValue.build(); - onChanged(); - } else { - dnsCacheConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-     * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - */ - public Builder mergeDnsCacheConfig(com.google.container.v1.DnsCacheConfig value) { - if (dnsCacheConfigBuilder_ == null) { - if (dnsCacheConfig_ != null) { - dnsCacheConfig_ = - com.google.container.v1.DnsCacheConfig.newBuilder(dnsCacheConfig_).mergeFrom(value).buildPartial(); - } else { - dnsCacheConfig_ = value; - } - onChanged(); - } else { - dnsCacheConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-     * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - */ - public Builder clearDnsCacheConfig() { - if (dnsCacheConfigBuilder_ == null) { - dnsCacheConfig_ = null; - onChanged(); - } else { - dnsCacheConfig_ = null; - dnsCacheConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-     * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - */ - public com.google.container.v1.DnsCacheConfig.Builder getDnsCacheConfigBuilder() { - - onChanged(); - return getDnsCacheConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-     * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - */ - public com.google.container.v1.DnsCacheConfigOrBuilder getDnsCacheConfigOrBuilder() { - if (dnsCacheConfigBuilder_ != null) { - return dnsCacheConfigBuilder_.getMessageOrBuilder(); - } else { - return dnsCacheConfig_ == null ? - com.google.container.v1.DnsCacheConfig.getDefaultInstance() : dnsCacheConfig_; - } - } - /** - *
-     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-     * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DnsCacheConfig, com.google.container.v1.DnsCacheConfig.Builder, com.google.container.v1.DnsCacheConfigOrBuilder> - getDnsCacheConfigFieldBuilder() { - if (dnsCacheConfigBuilder_ == null) { - dnsCacheConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DnsCacheConfig, com.google.container.v1.DnsCacheConfig.Builder, com.google.container.v1.DnsCacheConfigOrBuilder>( - getDnsCacheConfig(), - getParentForChildren(), - isClean()); - dnsCacheConfig_ = null; - } - return dnsCacheConfigBuilder_; - } - - private com.google.container.v1.ConfigConnectorConfig configConnectorConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ConfigConnectorConfig, com.google.container.v1.ConfigConnectorConfig.Builder, com.google.container.v1.ConfigConnectorConfigOrBuilder> configConnectorConfigBuilder_; - /** - *
-     * Configuration for the ConfigConnector add-on, a Kubernetes
-     * extension to manage hosted GCP services through the Kubernetes API
-     * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - * @return Whether the configConnectorConfig field is set. - */ - public boolean hasConfigConnectorConfig() { - return configConnectorConfigBuilder_ != null || configConnectorConfig_ != null; - } - /** - *
-     * Configuration for the ConfigConnector add-on, a Kubernetes
-     * extension to manage hosted GCP services through the Kubernetes API
-     * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - * @return The configConnectorConfig. - */ - public com.google.container.v1.ConfigConnectorConfig getConfigConnectorConfig() { - if (configConnectorConfigBuilder_ == null) { - return configConnectorConfig_ == null ? com.google.container.v1.ConfigConnectorConfig.getDefaultInstance() : configConnectorConfig_; - } else { - return configConnectorConfigBuilder_.getMessage(); - } - } - /** - *
-     * Configuration for the ConfigConnector add-on, a Kubernetes
-     * extension to manage hosted GCP services through the Kubernetes API
-     * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - */ - public Builder setConfigConnectorConfig(com.google.container.v1.ConfigConnectorConfig value) { - if (configConnectorConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - configConnectorConfig_ = value; - onChanged(); - } else { - configConnectorConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for the ConfigConnector add-on, a Kubernetes
-     * extension to manage hosted GCP services through the Kubernetes API
-     * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - */ - public Builder setConfigConnectorConfig( - com.google.container.v1.ConfigConnectorConfig.Builder builderForValue) { - if (configConnectorConfigBuilder_ == null) { - configConnectorConfig_ = builderForValue.build(); - onChanged(); - } else { - configConnectorConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for the ConfigConnector add-on, a Kubernetes
-     * extension to manage hosted GCP services through the Kubernetes API
-     * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - */ - public Builder mergeConfigConnectorConfig(com.google.container.v1.ConfigConnectorConfig value) { - if (configConnectorConfigBuilder_ == null) { - if (configConnectorConfig_ != null) { - configConnectorConfig_ = - com.google.container.v1.ConfigConnectorConfig.newBuilder(configConnectorConfig_).mergeFrom(value).buildPartial(); - } else { - configConnectorConfig_ = value; - } - onChanged(); - } else { - configConnectorConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for the ConfigConnector add-on, a Kubernetes
-     * extension to manage hosted GCP services through the Kubernetes API
-     * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - */ - public Builder clearConfigConnectorConfig() { - if (configConnectorConfigBuilder_ == null) { - configConnectorConfig_ = null; - onChanged(); - } else { - configConnectorConfig_ = null; - configConnectorConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for the ConfigConnector add-on, a Kubernetes
-     * extension to manage hosted GCP services through the Kubernetes API
-     * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - */ - public com.google.container.v1.ConfigConnectorConfig.Builder getConfigConnectorConfigBuilder() { - - onChanged(); - return getConfigConnectorConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for the ConfigConnector add-on, a Kubernetes
-     * extension to manage hosted GCP services through the Kubernetes API
-     * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - */ - public com.google.container.v1.ConfigConnectorConfigOrBuilder getConfigConnectorConfigOrBuilder() { - if (configConnectorConfigBuilder_ != null) { - return configConnectorConfigBuilder_.getMessageOrBuilder(); - } else { - return configConnectorConfig_ == null ? - com.google.container.v1.ConfigConnectorConfig.getDefaultInstance() : configConnectorConfig_; - } - } - /** - *
-     * Configuration for the ConfigConnector add-on, a Kubernetes
-     * extension to manage hosted GCP services through the Kubernetes API
-     * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ConfigConnectorConfig, com.google.container.v1.ConfigConnectorConfig.Builder, com.google.container.v1.ConfigConnectorConfigOrBuilder> - getConfigConnectorConfigFieldBuilder() { - if (configConnectorConfigBuilder_ == null) { - configConnectorConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ConfigConnectorConfig, com.google.container.v1.ConfigConnectorConfig.Builder, com.google.container.v1.ConfigConnectorConfigOrBuilder>( - getConfigConnectorConfig(), - getParentForChildren(), - isClean()); - configConnectorConfig_ = null; - } - return configConnectorConfigBuilder_; - } - - private com.google.container.v1.GcePersistentDiskCsiDriverConfig gcePersistentDiskCsiDriverConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GcePersistentDiskCsiDriverConfig, com.google.container.v1.GcePersistentDiskCsiDriverConfig.Builder, com.google.container.v1.GcePersistentDiskCsiDriverConfigOrBuilder> gcePersistentDiskCsiDriverConfigBuilder_; - /** - *
-     * Configuration for the Compute Engine Persistent Disk CSI driver.
-     * 
- * - * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - * @return Whether the gcePersistentDiskCsiDriverConfig field is set. - */ - public boolean hasGcePersistentDiskCsiDriverConfig() { - return gcePersistentDiskCsiDriverConfigBuilder_ != null || gcePersistentDiskCsiDriverConfig_ != null; - } - /** - *
-     * Configuration for the Compute Engine Persistent Disk CSI driver.
-     * 
- * - * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - * @return The gcePersistentDiskCsiDriverConfig. - */ - public com.google.container.v1.GcePersistentDiskCsiDriverConfig getGcePersistentDiskCsiDriverConfig() { - if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { - return gcePersistentDiskCsiDriverConfig_ == null ? com.google.container.v1.GcePersistentDiskCsiDriverConfig.getDefaultInstance() : gcePersistentDiskCsiDriverConfig_; - } else { - return gcePersistentDiskCsiDriverConfigBuilder_.getMessage(); - } - } - /** - *
-     * Configuration for the Compute Engine Persistent Disk CSI driver.
-     * 
- * - * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - */ - public Builder setGcePersistentDiskCsiDriverConfig(com.google.container.v1.GcePersistentDiskCsiDriverConfig value) { - if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gcePersistentDiskCsiDriverConfig_ = value; - onChanged(); - } else { - gcePersistentDiskCsiDriverConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for the Compute Engine Persistent Disk CSI driver.
-     * 
- * - * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - */ - public Builder setGcePersistentDiskCsiDriverConfig( - com.google.container.v1.GcePersistentDiskCsiDriverConfig.Builder builderForValue) { - if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { - gcePersistentDiskCsiDriverConfig_ = builderForValue.build(); - onChanged(); - } else { - gcePersistentDiskCsiDriverConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for the Compute Engine Persistent Disk CSI driver.
-     * 
- * - * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - */ - public Builder mergeGcePersistentDiskCsiDriverConfig(com.google.container.v1.GcePersistentDiskCsiDriverConfig value) { - if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { - if (gcePersistentDiskCsiDriverConfig_ != null) { - gcePersistentDiskCsiDriverConfig_ = - com.google.container.v1.GcePersistentDiskCsiDriverConfig.newBuilder(gcePersistentDiskCsiDriverConfig_).mergeFrom(value).buildPartial(); - } else { - gcePersistentDiskCsiDriverConfig_ = value; - } - onChanged(); - } else { - gcePersistentDiskCsiDriverConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for the Compute Engine Persistent Disk CSI driver.
-     * 
- * - * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - */ - public Builder clearGcePersistentDiskCsiDriverConfig() { - if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { - gcePersistentDiskCsiDriverConfig_ = null; - onChanged(); - } else { - gcePersistentDiskCsiDriverConfig_ = null; - gcePersistentDiskCsiDriverConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for the Compute Engine Persistent Disk CSI driver.
-     * 
- * - * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - */ - public com.google.container.v1.GcePersistentDiskCsiDriverConfig.Builder getGcePersistentDiskCsiDriverConfigBuilder() { - - onChanged(); - return getGcePersistentDiskCsiDriverConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for the Compute Engine Persistent Disk CSI driver.
-     * 
- * - * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - */ - public com.google.container.v1.GcePersistentDiskCsiDriverConfigOrBuilder getGcePersistentDiskCsiDriverConfigOrBuilder() { - if (gcePersistentDiskCsiDriverConfigBuilder_ != null) { - return gcePersistentDiskCsiDriverConfigBuilder_.getMessageOrBuilder(); - } else { - return gcePersistentDiskCsiDriverConfig_ == null ? - com.google.container.v1.GcePersistentDiskCsiDriverConfig.getDefaultInstance() : gcePersistentDiskCsiDriverConfig_; - } - } - /** - *
-     * Configuration for the Compute Engine Persistent Disk CSI driver.
-     * 
- * - * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GcePersistentDiskCsiDriverConfig, com.google.container.v1.GcePersistentDiskCsiDriverConfig.Builder, com.google.container.v1.GcePersistentDiskCsiDriverConfigOrBuilder> - getGcePersistentDiskCsiDriverConfigFieldBuilder() { - if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { - gcePersistentDiskCsiDriverConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GcePersistentDiskCsiDriverConfig, com.google.container.v1.GcePersistentDiskCsiDriverConfig.Builder, com.google.container.v1.GcePersistentDiskCsiDriverConfigOrBuilder>( - getGcePersistentDiskCsiDriverConfig(), - getParentForChildren(), - isClean()); - gcePersistentDiskCsiDriverConfig_ = null; - } - return gcePersistentDiskCsiDriverConfigBuilder_; - } - - private com.google.container.v1.GcpFilestoreCsiDriverConfig gcpFilestoreCsiDriverConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GcpFilestoreCsiDriverConfig, com.google.container.v1.GcpFilestoreCsiDriverConfig.Builder, com.google.container.v1.GcpFilestoreCsiDriverConfigOrBuilder> gcpFilestoreCsiDriverConfigBuilder_; - /** - *
-     * Configuration for the GCP Filestore CSI driver.
-     * 
- * - * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * @return Whether the gcpFilestoreCsiDriverConfig field is set. - */ - public boolean hasGcpFilestoreCsiDriverConfig() { - return gcpFilestoreCsiDriverConfigBuilder_ != null || gcpFilestoreCsiDriverConfig_ != null; - } - /** - *
-     * Configuration for the GCP Filestore CSI driver.
-     * 
- * - * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * @return The gcpFilestoreCsiDriverConfig. - */ - public com.google.container.v1.GcpFilestoreCsiDriverConfig getGcpFilestoreCsiDriverConfig() { - if (gcpFilestoreCsiDriverConfigBuilder_ == null) { - return gcpFilestoreCsiDriverConfig_ == null ? com.google.container.v1.GcpFilestoreCsiDriverConfig.getDefaultInstance() : gcpFilestoreCsiDriverConfig_; - } else { - return gcpFilestoreCsiDriverConfigBuilder_.getMessage(); - } - } - /** - *
-     * Configuration for the GCP Filestore CSI driver.
-     * 
- * - * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - */ - public Builder setGcpFilestoreCsiDriverConfig(com.google.container.v1.GcpFilestoreCsiDriverConfig value) { - if (gcpFilestoreCsiDriverConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gcpFilestoreCsiDriverConfig_ = value; - onChanged(); - } else { - gcpFilestoreCsiDriverConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for the GCP Filestore CSI driver.
-     * 
- * - * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - */ - public Builder setGcpFilestoreCsiDriverConfig( - com.google.container.v1.GcpFilestoreCsiDriverConfig.Builder builderForValue) { - if (gcpFilestoreCsiDriverConfigBuilder_ == null) { - gcpFilestoreCsiDriverConfig_ = builderForValue.build(); - onChanged(); - } else { - gcpFilestoreCsiDriverConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for the GCP Filestore CSI driver.
-     * 
- * - * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - */ - public Builder mergeGcpFilestoreCsiDriverConfig(com.google.container.v1.GcpFilestoreCsiDriverConfig value) { - if (gcpFilestoreCsiDriverConfigBuilder_ == null) { - if (gcpFilestoreCsiDriverConfig_ != null) { - gcpFilestoreCsiDriverConfig_ = - com.google.container.v1.GcpFilestoreCsiDriverConfig.newBuilder(gcpFilestoreCsiDriverConfig_).mergeFrom(value).buildPartial(); - } else { - gcpFilestoreCsiDriverConfig_ = value; - } - onChanged(); - } else { - gcpFilestoreCsiDriverConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for the GCP Filestore CSI driver.
-     * 
- * - * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - */ - public Builder clearGcpFilestoreCsiDriverConfig() { - if (gcpFilestoreCsiDriverConfigBuilder_ == null) { - gcpFilestoreCsiDriverConfig_ = null; - onChanged(); - } else { - gcpFilestoreCsiDriverConfig_ = null; - gcpFilestoreCsiDriverConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for the GCP Filestore CSI driver.
-     * 
- * - * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - */ - public com.google.container.v1.GcpFilestoreCsiDriverConfig.Builder getGcpFilestoreCsiDriverConfigBuilder() { - - onChanged(); - return getGcpFilestoreCsiDriverConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for the GCP Filestore CSI driver.
-     * 
- * - * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - */ - public com.google.container.v1.GcpFilestoreCsiDriverConfigOrBuilder getGcpFilestoreCsiDriverConfigOrBuilder() { - if (gcpFilestoreCsiDriverConfigBuilder_ != null) { - return gcpFilestoreCsiDriverConfigBuilder_.getMessageOrBuilder(); - } else { - return gcpFilestoreCsiDriverConfig_ == null ? - com.google.container.v1.GcpFilestoreCsiDriverConfig.getDefaultInstance() : gcpFilestoreCsiDriverConfig_; - } - } - /** - *
-     * Configuration for the GCP Filestore CSI driver.
-     * 
- * - * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GcpFilestoreCsiDriverConfig, com.google.container.v1.GcpFilestoreCsiDriverConfig.Builder, com.google.container.v1.GcpFilestoreCsiDriverConfigOrBuilder> - getGcpFilestoreCsiDriverConfigFieldBuilder() { - if (gcpFilestoreCsiDriverConfigBuilder_ == null) { - gcpFilestoreCsiDriverConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GcpFilestoreCsiDriverConfig, com.google.container.v1.GcpFilestoreCsiDriverConfig.Builder, com.google.container.v1.GcpFilestoreCsiDriverConfigOrBuilder>( - getGcpFilestoreCsiDriverConfig(), - getParentForChildren(), - isClean()); - gcpFilestoreCsiDriverConfig_ = null; - } - return gcpFilestoreCsiDriverConfigBuilder_; - } - - 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 gkeBackupAgentConfigBuilder_ != null || gkeBackupAgentConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - gkeBackupAgentConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - gkeBackupAgentConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (gkeBackupAgentConfig_ != null) { - gkeBackupAgentConfig_ = - com.google.container.v1.GkeBackupAgentConfig.newBuilder(gkeBackupAgentConfig_).mergeFrom(value).buildPartial(); - } else { - gkeBackupAgentConfig_ = value; - } - onChanged(); - } else { - gkeBackupAgentConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for the Backup for GKE agent addon.
-     * 
- * - * .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; - */ - public Builder clearGkeBackupAgentConfig() { - if (gkeBackupAgentConfigBuilder_ == null) { - gkeBackupAgentConfig_ = null; - onChanged(); - } else { - gkeBackupAgentConfig_ = null; - gkeBackupAgentConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for the Backup for GKE agent addon.
-     * 
- * - * .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; - */ - public com.google.container.v1.GkeBackupAgentConfig.Builder getGkeBackupAgentConfigBuilder() { - - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index fc86cf428adf..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java +++ /dev/null @@ -1,316 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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=1043 - * @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=1043 - * @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(); -} 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 deleted file mode 100644 index 3f6c14206f07..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedMachineFeatures.java +++ /dev/null @@ -1,539 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * Specifies options for controlling advanced machine features.
- * 
- * - * Protobuf type {@code google.container.v1.AdvancedMachineFeatures} - */ -public final class AdvancedMachineFeatures extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.AdvancedMachineFeatures) - AdvancedMachineFeaturesOrBuilder { -private static final long serialVersionUID = 0L; - // Use AdvancedMachineFeatures.newBuilder() to construct. - private AdvancedMachineFeatures(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AdvancedMachineFeatures() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AdvancedMachineFeatures(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AdvancedMachineFeatures_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AdvancedMachineFeatures_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.AdvancedMachineFeatures.class, com.google.container.v1.AdvancedMachineFeatures.Builder.class); - } - - private int bitField0_; - public static final int THREADS_PER_CORE_FIELD_NUMBER = 1; - private long threadsPerCore_; - /** - *
-   * The number of threads per physical core. To disable simultaneous
-   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
-   * supported per core by the underlying processor is assumed.
-   * 
- * - * optional int64 threads_per_core = 1; - * @return Whether the threadsPerCore field is set. - */ - @java.lang.Override - public boolean hasThreadsPerCore() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * The number of threads per physical core. To disable simultaneous
-   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
-   * supported per core by the underlying processor is assumed.
-   * 
- * - * optional int64 threads_per_core = 1; - * @return The threadsPerCore. - */ - @java.lang.Override - public long getThreadsPerCore() { - return threadsPerCore_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt64(1, threadsPerCore_); - } - 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(); - threadsPerCore_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AdvancedMachineFeatures_descriptor; - } - - @java.lang.Override - public com.google.container.v1.AdvancedMachineFeatures getDefaultInstanceForType() { - return com.google.container.v1.AdvancedMachineFeatures.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.AdvancedMachineFeatures build() { - com.google.container.v1.AdvancedMachineFeatures result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.AdvancedMachineFeatures buildPartial() { - com.google.container.v1.AdvancedMachineFeatures result = new com.google.container.v1.AdvancedMachineFeatures(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.threadsPerCore_ = threadsPerCore_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.AdvancedMachineFeatures) { - return mergeFrom((com.google.container.v1.AdvancedMachineFeatures)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.AdvancedMachineFeatures other) { - if (other == com.google.container.v1.AdvancedMachineFeatures.getDefaultInstance()) return this; - if (other.hasThreadsPerCore()) { - setThreadsPerCore(other.getThreadsPerCore()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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) { - bitField0_ |= 0x00000001; - threadsPerCore_ = value; - onChanged(); - return this; - } - /** - *
-     * The number of threads per physical core. To disable simultaneous
-     * multithreading (SMT) set this to 1. If unset, the maximum number of threads
-     * supported per core by the underlying processor is assumed.
-     * 
- * - * optional int64 threads_per_core = 1; - * @return This builder for chaining. - */ - public Builder clearThreadsPerCore() { - bitField0_ = (bitField0_ & ~0x00000001); - threadsPerCore_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1.AdvancedMachineFeatures) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.AdvancedMachineFeatures) - private static final com.google.container.v1.AdvancedMachineFeatures DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1.AdvancedMachineFeatures(); - } - - public static com.google.container.v1.AdvancedMachineFeatures getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AdvancedMachineFeatures parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index ed62ca6d7e8d..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedMachineFeaturesOrBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface AdvancedMachineFeaturesOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.AdvancedMachineFeatures) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The number of threads per physical core. To disable simultaneous
-   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
-   * supported per core by the underlying processor is assumed.
-   * 
- * - * optional int64 threads_per_core = 1; - * @return Whether the threadsPerCore field is set. - */ - boolean hasThreadsPerCore(); - /** - *
-   * The number of threads per physical core. To disable simultaneous
-   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
-   * supported per core by the underlying processor is assumed.
-   * 
- * - * optional int64 threads_per_core = 1; - * @return The threadsPerCore. - */ - long getThreadsPerCore(); -} diff --git a/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 deleted file mode 100644 index 3dee169bac35..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AuthenticatorGroupsConfig.java +++ /dev/null @@ -1,666 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * Whether this cluster should return group membership lookups
-   * during authentication using a group of security groups.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - public static final int SECURITY_GROUP_FIELD_NUMBER = 2; - private volatile java.lang.Object securityGroup_; - /** - *
-   * The name of the security group-of-groups to be used. Only relevant
-   * if enabled = true.
-   * 
- * - * string security_group = 2; - * @return The securityGroup. - */ - @java.lang.Override - public java.lang.String getSecurityGroup() { - java.lang.Object ref = securityGroup_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - securityGroup_ = s; - return s; - } - } - /** - *
-   * The name of the security group-of-groups to be used. Only relevant
-   * if enabled = true.
-   * 
- * - * string security_group = 2; - * @return The bytes for securityGroup. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSecurityGroupBytes() { - java.lang.Object ref = securityGroup_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - securityGroup_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - if (!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(); - 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); - result.enabled_ = enabled_; - result.securityGroup_ = securityGroup_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 8 - case 18: { - securityGroup_ = input.readStringRequireUtf8(); - - 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 boolean enabled_ ; - /** - *
-     * Whether this cluster should return group membership lookups
-     * during authentication using a group of security groups.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Whether this cluster should return group membership lookups
-     * during authentication using a group of security groups.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether this cluster should return group membership lookups
-     * during authentication using a group of security groups.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - - private java.lang.Object securityGroup_ = ""; - /** - *
-     * The name of the security group-of-groups to be used. Only relevant
-     * if enabled = true.
-     * 
- * - * string security_group = 2; - * @return The securityGroup. - */ - public java.lang.String getSecurityGroup() { - java.lang.Object ref = securityGroup_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - securityGroup_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name of the security group-of-groups to be used. Only relevant
-     * if enabled = true.
-     * 
- * - * string security_group = 2; - * @return The bytes for securityGroup. - */ - public com.google.protobuf.ByteString - getSecurityGroupBytes() { - java.lang.Object ref = securityGroup_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - securityGroup_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name of the security group-of-groups to be used. Only relevant
-     * if enabled = true.
-     * 
- * - * string security_group = 2; - * @param value The securityGroup to set. - * @return This builder for chaining. - */ - public Builder setSecurityGroup( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - securityGroup_ = value; - onChanged(); - return this; - } - /** - *
-     * The name of the security group-of-groups to be used. Only relevant
-     * if enabled = true.
-     * 
- * - * string security_group = 2; - * @return This builder for chaining. - */ - public Builder clearSecurityGroup() { - - securityGroup_ = getDefaultInstance().getSecurityGroup(); - onChanged(); - return this; - } - /** - *
-     * The name of the security group-of-groups to be used. Only relevant
-     * if enabled = true.
-     * 
- * - * string security_group = 2; - * @param value The bytes for securityGroup to set. - * @return This builder for chaining. - */ - public Builder setSecurityGroupBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - securityGroup_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index 5787609630bb..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AuthenticatorGroupsConfigOrBuilder.java +++ /dev/null @@ -1,42 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index 8489548245c1..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptions.java +++ /dev/null @@ -1,762 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - private volatile java.lang.Object autoUpgradeStartTime_; - /** - *
-   * [Output only] This field is set when upgrades are about to commence
-   * with the approximate start time for the upgrades, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string auto_upgrade_start_time = 1; - * @return The autoUpgradeStartTime. - */ - @java.lang.Override - public java.lang.String getAutoUpgradeStartTime() { - java.lang.Object ref = autoUpgradeStartTime_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - autoUpgradeStartTime_ = s; - return s; - } - } - /** - *
-   * [Output only] This field is set when upgrades are about to commence
-   * with the approximate start time for the upgrades, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string auto_upgrade_start_time = 1; - * @return The bytes for autoUpgradeStartTime. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAutoUpgradeStartTimeBytes() { - java.lang.Object ref = autoUpgradeStartTime_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - autoUpgradeStartTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 2; - private volatile java.lang.Object description_; - /** - *
-   * [Output only] This field is set when upgrades are about to commence
-   * with the description of the upgrade.
-   * 
- * - * string description = 2; - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - *
-   * [Output only] This field is set when upgrades are about to commence
-   * with the description of the upgrade.
-   * 
- * - * string description = 2; - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - 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); - result.autoUpgradeStartTime_ = autoUpgradeStartTime_; - result.description_ = description_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - description_ = input.readStringRequireUtf8(); - - 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 java.lang.Object autoUpgradeStartTime_ = ""; - /** - *
-     * [Output only] This field is set when upgrades are about to commence
-     * with the approximate start time for the upgrades, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string auto_upgrade_start_time = 1; - * @return The autoUpgradeStartTime. - */ - public java.lang.String getAutoUpgradeStartTime() { - java.lang.Object ref = autoUpgradeStartTime_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - autoUpgradeStartTime_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * [Output only] This field is set when upgrades are about to commence
-     * with the approximate start time for the upgrades, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string auto_upgrade_start_time = 1; - * @return The bytes for autoUpgradeStartTime. - */ - public com.google.protobuf.ByteString - getAutoUpgradeStartTimeBytes() { - java.lang.Object ref = autoUpgradeStartTime_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - autoUpgradeStartTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * [Output only] This field is set when upgrades are about to commence
-     * with the approximate start time for the upgrades, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string auto_upgrade_start_time = 1; - * @param value The autoUpgradeStartTime to set. - * @return This builder for chaining. - */ - public Builder setAutoUpgradeStartTime( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - autoUpgradeStartTime_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] This field is set when upgrades are about to commence
-     * with the approximate start time for the upgrades, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string auto_upgrade_start_time = 1; - * @return This builder for chaining. - */ - public Builder clearAutoUpgradeStartTime() { - - autoUpgradeStartTime_ = getDefaultInstance().getAutoUpgradeStartTime(); - onChanged(); - return this; - } - /** - *
-     * [Output only] This field is set when upgrades are about to commence
-     * with the approximate start time for the upgrades, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string auto_upgrade_start_time = 1; - * @param value The bytes for autoUpgradeStartTime to set. - * @return This builder for chaining. - */ - public Builder setAutoUpgradeStartTimeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - autoUpgradeStartTime_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - *
-     * [Output only] This field is set when upgrades are about to commence
-     * with the description of the upgrade.
-     * 
- * - * string description = 2; - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * [Output only] This field is set when upgrades are about to commence
-     * with the description of the upgrade.
-     * 
- * - * string description = 2; - * @return The bytes for description. - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * [Output only] This field is set when upgrades are about to commence
-     * with the description of the upgrade.
-     * 
- * - * string description = 2; - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] This field is set when upgrades are about to commence
-     * with the description of the upgrade.
-     * 
- * - * string description = 2; - * @return This builder for chaining. - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - *
-     * [Output only] This field is set when upgrades are about to commence
-     * with the description of the upgrade.
-     * 
- * - * string description = 2; - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index 1b40fa18779b..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptionsOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index 66801a6a70a6..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Autopilot.java +++ /dev/null @@ -1,490 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * Autopilot is the configuration for Autopilot settings on the cluster.
- * 
- * - * Protobuf type {@code google.container.v1.Autopilot} - */ -public final class Autopilot extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.Autopilot) - AutopilotOrBuilder { -private static final long serialVersionUID = 0L; - // Use Autopilot.newBuilder() to construct. - private Autopilot(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Autopilot() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Autopilot(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_Autopilot_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_Autopilot_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.Autopilot.class, com.google.container.v1.Autopilot.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-   * Enable Autopilot
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - 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.Autopilot)) { - return super.equals(obj); - } - com.google.container.v1.Autopilot other = (com.google.container.v1.Autopilot) 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.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_Autopilot_descriptor; - } - - @java.lang.Override - public com.google.container.v1.Autopilot getDefaultInstanceForType() { - return com.google.container.v1.Autopilot.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.Autopilot build() { - com.google.container.v1.Autopilot result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.Autopilot buildPartial() { - com.google.container.v1.Autopilot result = new com.google.container.v1.Autopilot(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.Autopilot) { - return mergeFrom((com.google.container.v1.Autopilot)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.Autopilot other) { - if (other == com.google.container.v1.Autopilot.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 boolean enabled_ ; - /** - *
-     * Enable Autopilot
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Enable Autopilot
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Enable Autopilot
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1.Autopilot) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.Autopilot) - private static final com.google.container.v1.Autopilot DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1.Autopilot(); - } - - public static com.google.container.v1.Autopilot getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Autopilot parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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/AutopilotOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutopilotOrBuilder.java deleted file mode 100644 index 226b8506a2ed..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutopilotOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface AutopilotOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.Autopilot) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Enable Autopilot
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/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 deleted file mode 100644 index b6830b80f946..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java +++ /dev/null @@ -1,2394 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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.EMPTY; - serviceAccount_ = ""; - minCpuPlatform_ = ""; - diskType_ = ""; - bootDiskKmsKey_ = ""; - imageType_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AutoprovisioningNodePoolDefaults(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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); - } - - public static final int OAUTH_SCOPES_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList oauthScopes_; - /** - *
-   * 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; - 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 upgradeSettings_ != null; - } - /** - *
-   * Specifies the upgrade settings for NAP created node pools
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - * @return The upgradeSettings. - */ - @java.lang.Override - public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { - return upgradeSettings_ == null ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() : upgradeSettings_; - } - /** - *
-   * Specifies the upgrade settings for NAP created node pools
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - @java.lang.Override - public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { - return getUpgradeSettings(); - } - - public static final int MANAGEMENT_FIELD_NUMBER = 4; - private com.google.container.v1.NodeManagement management_; - /** - *
-   * Specifies the node management options for NAP created node-pools.
-   * 
- * - * .google.container.v1.NodeManagement management = 4; - * @return Whether the management field is set. - */ - @java.lang.Override - public boolean hasManagement() { - return management_ != null; - } - /** - *
-   * Specifies the node management options for NAP created node-pools.
-   * 
- * - * .google.container.v1.NodeManagement management = 4; - * @return The management. - */ - @java.lang.Override - public com.google.container.v1.NodeManagement getManagement() { - return management_ == null ? com.google.container.v1.NodeManagement.getDefaultInstance() : management_; - } - /** - *
-   * Specifies the node management options for NAP created node-pools.
-   * 
- * - * .google.container.v1.NodeManagement management = 4; - */ - @java.lang.Override - public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() { - return getManagement(); - } - - public static final int MIN_CPU_PLATFORM_FIELD_NUMBER = 5; - private volatile java.lang.Object minCpuPlatform_; - /** - *
-   * 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
-   * https://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=3398 - * @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
-   * https://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=3398 - * @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_; - /** - *
-   * Size of the disk attached to each node, specified in GB.
-   * The smallest allowed disk size is 10GB.
-   * If unspecified, the default disk size is 100GB.
-   * 
- * - * int32 disk_size_gb = 6; - * @return The diskSizeGb. - */ - @java.lang.Override - public int getDiskSizeGb() { - return diskSizeGb_; - } - - public static final int DISK_TYPE_FIELD_NUMBER = 7; - private volatile java.lang.Object diskType_; - /** - *
-   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-   * 'pd-balanced')
-   * If unspecified, the default disk type is 'pd-standard'
-   * 
- * - * string disk_type = 7; - * @return The diskType. - */ - @java.lang.Override - public java.lang.String getDiskType() { - java.lang.Object ref = diskType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - diskType_ = s; - return s; - } - } - /** - *
-   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-   * 'pd-balanced')
-   * If unspecified, the default disk type is 'pd-standard'
-   * 
- * - * string disk_type = 7; - * @return The bytes for diskType. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDiskTypeBytes() { - java.lang.Object ref = diskType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - diskType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 8; - private com.google.container.v1.ShieldedInstanceConfig shieldedInstanceConfig_; - /** - *
-   * Shielded Instance options.
-   * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - * @return Whether the shieldedInstanceConfig field is set. - */ - @java.lang.Override - public boolean hasShieldedInstanceConfig() { - return shieldedInstanceConfig_ != null; - } - /** - *
-   * Shielded Instance options.
-   * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - * @return The shieldedInstanceConfig. - */ - @java.lang.Override - public com.google.container.v1.ShieldedInstanceConfig getShieldedInstanceConfig() { - return shieldedInstanceConfig_ == null ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; - } - /** - *
-   * Shielded Instance options.
-   * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - @java.lang.Override - public com.google.container.v1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { - return getShieldedInstanceConfig(); - } - - public static final int BOOT_DISK_KMS_KEY_FIELD_NUMBER = 9; - private volatile java.lang.Object bootDiskKmsKey_; - /** - *
-   * The Customer Managed Encryption Key used to encrypt the boot disk attached
-   * to each node in the node pool. This should be of the form
-   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-   * For more information about protecting resources with Cloud KMS Keys please
-   * see:
-   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-   * 
- * - * string boot_disk_kms_key = 9; - * @return The bootDiskKmsKey. - */ - @java.lang.Override - public java.lang.String getBootDiskKmsKey() { - java.lang.Object ref = bootDiskKmsKey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bootDiskKmsKey_ = s; - return s; - } - } - /** - *
-   * The Customer Managed Encryption Key used to encrypt the boot disk attached
-   * to each node in the node pool. This should be of the form
-   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-   * For more information about protecting resources with Cloud KMS Keys please
-   * see:
-   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-   * 
- * - * string boot_disk_kms_key = 9; - * @return The bytes for bootDiskKmsKey. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBootDiskKmsKeyBytes() { - java.lang.Object ref = bootDiskKmsKey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bootDiskKmsKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IMAGE_TYPE_FIELD_NUMBER = 10; - private volatile java.lang.Object imageType_; - /** - *
-   * The image type to use for NAP created node.
-   * 
- * - * 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.
-   * 
- * - * string image_type = 10; - * @return The bytes for imageType. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getImageTypeBytes() { - java.lang.Object ref = imageType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - imageType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < oauthScopes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, oauthScopes_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceAccount_); - } - if (upgradeSettings_ != null) { - output.writeMessage(3, getUpgradeSettings()); - } - if (management_ != null) { - 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 (shieldedInstanceConfig_ != null) { - 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_); - } - 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 (upgradeSettings_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpgradeSettings()); - } - if (management_ != null) { - 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 (shieldedInstanceConfig_ != null) { - 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_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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 (!getUnknownFields().equals(other.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(); - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - serviceAccount_ = ""; - - if (upgradeSettingsBuilder_ == null) { - upgradeSettings_ = null; - } else { - upgradeSettings_ = null; - upgradeSettingsBuilder_ = null; - } - if (managementBuilder_ == null) { - management_ = null; - } else { - management_ = null; - managementBuilder_ = null; - } - minCpuPlatform_ = ""; - - diskSizeGb_ = 0; - - diskType_ = ""; - - if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfig_ = null; - } else { - shieldedInstanceConfig_ = null; - shieldedInstanceConfigBuilder_ = null; - } - bootDiskKmsKey_ = ""; - - imageType_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.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); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - oauthScopes_ = oauthScopes_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.oauthScopes_ = oauthScopes_; - result.serviceAccount_ = serviceAccount_; - if (upgradeSettingsBuilder_ == null) { - result.upgradeSettings_ = upgradeSettings_; - } else { - result.upgradeSettings_ = upgradeSettingsBuilder_.build(); - } - if (managementBuilder_ == null) { - result.management_ = management_; - } else { - result.management_ = managementBuilder_.build(); - } - result.minCpuPlatform_ = minCpuPlatform_; - result.diskSizeGb_ = diskSizeGb_; - result.diskType_ = diskType_; - if (shieldedInstanceConfigBuilder_ == null) { - result.shieldedInstanceConfig_ = shieldedInstanceConfig_; - } else { - result.shieldedInstanceConfig_ = shieldedInstanceConfigBuilder_.build(); - } - result.bootDiskKmsKey_ = bootDiskKmsKey_; - result.imageType_ = imageType_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_ = (bitField0_ & ~0x00000001); - } else { - ensureOauthScopesIsMutable(); - oauthScopes_.addAll(other.oauthScopes_); - } - onChanged(); - } - if (!other.getServiceAccount().isEmpty()) { - serviceAccount_ = other.serviceAccount_; - onChanged(); - } - if (other.hasUpgradeSettings()) { - mergeUpgradeSettings(other.getUpgradeSettings()); - } - if (other.hasManagement()) { - mergeManagement(other.getManagement()); - } - if (!other.getMinCpuPlatform().isEmpty()) { - minCpuPlatform_ = other.minCpuPlatform_; - onChanged(); - } - if (other.getDiskSizeGb() != 0) { - setDiskSizeGb(other.getDiskSizeGb()); - } - if (!other.getDiskType().isEmpty()) { - diskType_ = other.diskType_; - onChanged(); - } - if (other.hasShieldedInstanceConfig()) { - mergeShieldedInstanceConfig(other.getShieldedInstanceConfig()); - } - if (!other.getBootDiskKmsKey().isEmpty()) { - bootDiskKmsKey_ = other.bootDiskKmsKey_; - onChanged(); - } - if (!other.getImageType().isEmpty()) { - imageType_ = other.imageType_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 18 - case 26: { - input.readMessage( - getUpgradeSettingsFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 26 - case 34: { - input.readMessage( - getManagementFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 34 - case 42: { - minCpuPlatform_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 48: { - diskSizeGb_ = input.readInt32(); - - break; - } // case 48 - case 58: { - diskType_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 66: { - input.readMessage( - getShieldedInstanceConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 66 - case 74: { - bootDiskKmsKey_ = input.readStringRequireUtf8(); - - break; - } // case 74 - case 82: { - imageType_ = input.readStringRequireUtf8(); - - 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 com.google.protobuf.LazyStringList oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureOauthScopesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - oauthScopes_ = new com.google.protobuf.LazyStringArrayList(oauthScopes_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * 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_.getUnmodifiableView(); - } - /** - *
-     * 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); - 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); - 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_); - 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.EMPTY; - 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); - 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; - 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(); - 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; - 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 upgradeSettingsBuilder_ != null || upgradeSettings_ != null; - } - /** - *
-     * Specifies the upgrade settings for NAP created node pools
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - * @return The upgradeSettings. - */ - public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { - if (upgradeSettingsBuilder_ == null) { - return upgradeSettings_ == null ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() : upgradeSettings_; - } else { - return upgradeSettingsBuilder_.getMessage(); - } - } - /** - *
-     * Specifies the upgrade settings for NAP created node pools
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - public Builder setUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { - if (upgradeSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - upgradeSettings_ = value; - onChanged(); - } else { - upgradeSettingsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Specifies the upgrade settings for NAP created node pools
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - public Builder setUpgradeSettings( - com.google.container.v1.NodePool.UpgradeSettings.Builder builderForValue) { - if (upgradeSettingsBuilder_ == null) { - upgradeSettings_ = builderForValue.build(); - onChanged(); - } else { - upgradeSettingsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Specifies the upgrade settings for NAP created node pools
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - public Builder mergeUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { - if (upgradeSettingsBuilder_ == null) { - if (upgradeSettings_ != null) { - upgradeSettings_ = - com.google.container.v1.NodePool.UpgradeSettings.newBuilder(upgradeSettings_).mergeFrom(value).buildPartial(); - } else { - upgradeSettings_ = value; - } - onChanged(); - } else { - upgradeSettingsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Specifies the upgrade settings for NAP created node pools
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - public Builder clearUpgradeSettings() { - if (upgradeSettingsBuilder_ == null) { - upgradeSettings_ = null; - onChanged(); - } else { - upgradeSettings_ = null; - upgradeSettingsBuilder_ = null; - } - - return this; - } - /** - *
-     * Specifies the upgrade settings for NAP created node pools
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - public com.google.container.v1.NodePool.UpgradeSettings.Builder getUpgradeSettingsBuilder() { - - onChanged(); - return getUpgradeSettingsFieldBuilder().getBuilder(); - } - /** - *
-     * Specifies the upgrade settings for NAP created node pools
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { - if (upgradeSettingsBuilder_ != null) { - return upgradeSettingsBuilder_.getMessageOrBuilder(); - } else { - return upgradeSettings_ == null ? - com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() : upgradeSettings_; - } - } - /** - *
-     * Specifies the upgrade settings for NAP created node pools
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.UpgradeSettings, com.google.container.v1.NodePool.UpgradeSettings.Builder, com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> - getUpgradeSettingsFieldBuilder() { - if (upgradeSettingsBuilder_ == null) { - upgradeSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.UpgradeSettings, com.google.container.v1.NodePool.UpgradeSettings.Builder, com.google.container.v1.NodePool.UpgradeSettingsOrBuilder>( - getUpgradeSettings(), - getParentForChildren(), - isClean()); - upgradeSettings_ = null; - } - return upgradeSettingsBuilder_; - } - - private com.google.container.v1.NodeManagement management_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeManagement, com.google.container.v1.NodeManagement.Builder, com.google.container.v1.NodeManagementOrBuilder> managementBuilder_; - /** - *
-     * Specifies the node management options for NAP created node-pools.
-     * 
- * - * .google.container.v1.NodeManagement management = 4; - * @return Whether the management field is set. - */ - public boolean hasManagement() { - return managementBuilder_ != null || management_ != null; - } - /** - *
-     * Specifies the node management options for NAP created node-pools.
-     * 
- * - * .google.container.v1.NodeManagement management = 4; - * @return The management. - */ - public com.google.container.v1.NodeManagement getManagement() { - if (managementBuilder_ == null) { - return management_ == null ? com.google.container.v1.NodeManagement.getDefaultInstance() : management_; - } else { - return managementBuilder_.getMessage(); - } - } - /** - *
-     * Specifies the node management options for NAP created node-pools.
-     * 
- * - * .google.container.v1.NodeManagement management = 4; - */ - public Builder setManagement(com.google.container.v1.NodeManagement value) { - if (managementBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - management_ = value; - onChanged(); - } else { - managementBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Specifies the node management options for NAP created node-pools.
-     * 
- * - * .google.container.v1.NodeManagement management = 4; - */ - public Builder setManagement( - com.google.container.v1.NodeManagement.Builder builderForValue) { - if (managementBuilder_ == null) { - management_ = builderForValue.build(); - onChanged(); - } else { - managementBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Specifies the node management options for NAP created node-pools.
-     * 
- * - * .google.container.v1.NodeManagement management = 4; - */ - public Builder mergeManagement(com.google.container.v1.NodeManagement value) { - if (managementBuilder_ == null) { - if (management_ != null) { - management_ = - com.google.container.v1.NodeManagement.newBuilder(management_).mergeFrom(value).buildPartial(); - } else { - management_ = value; - } - onChanged(); - } else { - managementBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Specifies the node management options for NAP created node-pools.
-     * 
- * - * .google.container.v1.NodeManagement management = 4; - */ - public Builder clearManagement() { - if (managementBuilder_ == null) { - management_ = null; - onChanged(); - } else { - management_ = null; - managementBuilder_ = null; - } - - return this; - } - /** - *
-     * Specifies the node management options for NAP created node-pools.
-     * 
- * - * .google.container.v1.NodeManagement management = 4; - */ - public com.google.container.v1.NodeManagement.Builder getManagementBuilder() { - - onChanged(); - return getManagementFieldBuilder().getBuilder(); - } - /** - *
-     * Specifies the node management options for NAP created node-pools.
-     * 
- * - * .google.container.v1.NodeManagement management = 4; - */ - public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() { - if (managementBuilder_ != null) { - return managementBuilder_.getMessageOrBuilder(); - } else { - return management_ == null ? - com.google.container.v1.NodeManagement.getDefaultInstance() : management_; - } - } - /** - *
-     * Specifies the node management options for NAP created node-pools.
-     * 
- * - * .google.container.v1.NodeManagement management = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeManagement, com.google.container.v1.NodeManagement.Builder, com.google.container.v1.NodeManagementOrBuilder> - getManagementFieldBuilder() { - if (managementBuilder_ == null) { - managementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeManagement, com.google.container.v1.NodeManagement.Builder, com.google.container.v1.NodeManagementOrBuilder>( - getManagement(), - getParentForChildren(), - isClean()); - management_ = null; - } - return managementBuilder_; - } - - private java.lang.Object minCpuPlatform_ = ""; - /** - *
-     * 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
-     * https://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=3398 - * @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
-     * https://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=3398 - * @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
-     * https://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=3398 - * @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; - 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
-     * https://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=3398 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearMinCpuPlatform() { - - minCpuPlatform_ = getDefaultInstance().getMinCpuPlatform(); - 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
-     * https://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=3398 - * @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; - onChanged(); - return this; - } - - private int diskSizeGb_ ; - /** - *
-     * Size of the disk attached to each node, specified in GB.
-     * The smallest allowed disk size is 10GB.
-     * If unspecified, the default disk size is 100GB.
-     * 
- * - * int32 disk_size_gb = 6; - * @return The diskSizeGb. - */ - @java.lang.Override - public int getDiskSizeGb() { - return diskSizeGb_; - } - /** - *
-     * Size of the disk attached to each node, specified in GB.
-     * The smallest allowed disk size is 10GB.
-     * If unspecified, the default disk size is 100GB.
-     * 
- * - * int32 disk_size_gb = 6; - * @param value The diskSizeGb to set. - * @return This builder for chaining. - */ - public Builder setDiskSizeGb(int value) { - - diskSizeGb_ = value; - onChanged(); - return this; - } - /** - *
-     * Size of the disk attached to each node, specified in GB.
-     * The smallest allowed disk size is 10GB.
-     * If unspecified, the default disk size is 100GB.
-     * 
- * - * int32 disk_size_gb = 6; - * @return This builder for chaining. - */ - public Builder clearDiskSizeGb() { - - diskSizeGb_ = 0; - onChanged(); - return this; - } - - private java.lang.Object diskType_ = ""; - /** - *
-     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-     * 'pd-balanced')
-     * If unspecified, the default disk type is 'pd-standard'
-     * 
- * - * string disk_type = 7; - * @return The diskType. - */ - public java.lang.String getDiskType() { - java.lang.Object ref = diskType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - diskType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-     * 'pd-balanced')
-     * If unspecified, the default disk type is 'pd-standard'
-     * 
- * - * string disk_type = 7; - * @return The bytes for diskType. - */ - public com.google.protobuf.ByteString - getDiskTypeBytes() { - java.lang.Object ref = diskType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - diskType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-     * 'pd-balanced')
-     * If unspecified, the default disk type is 'pd-standard'
-     * 
- * - * string disk_type = 7; - * @param value The diskType to set. - * @return This builder for chaining. - */ - public Builder setDiskType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - diskType_ = value; - onChanged(); - return this; - } - /** - *
-     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-     * 'pd-balanced')
-     * If unspecified, the default disk type is 'pd-standard'
-     * 
- * - * string disk_type = 7; - * @return This builder for chaining. - */ - public Builder clearDiskType() { - - diskType_ = getDefaultInstance().getDiskType(); - onChanged(); - return this; - } - /** - *
-     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-     * 'pd-balanced')
-     * If unspecified, the default disk type is 'pd-standard'
-     * 
- * - * string disk_type = 7; - * @param value The bytes for diskType to set. - * @return This builder for chaining. - */ - public Builder setDiskTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - diskType_ = value; - onChanged(); - return this; - } - - private com.google.container.v1.ShieldedInstanceConfig shieldedInstanceConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedInstanceConfig, com.google.container.v1.ShieldedInstanceConfig.Builder, com.google.container.v1.ShieldedInstanceConfigOrBuilder> shieldedInstanceConfigBuilder_; - /** - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - * @return Whether the shieldedInstanceConfig field is set. - */ - public boolean hasShieldedInstanceConfig() { - return shieldedInstanceConfigBuilder_ != null || shieldedInstanceConfig_ != null; - } - /** - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - * @return The shieldedInstanceConfig. - */ - public com.google.container.v1.ShieldedInstanceConfig getShieldedInstanceConfig() { - if (shieldedInstanceConfigBuilder_ == null) { - return shieldedInstanceConfig_ == null ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; - } else { - return shieldedInstanceConfigBuilder_.getMessage(); - } - } - /** - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - public Builder setShieldedInstanceConfig(com.google.container.v1.ShieldedInstanceConfig value) { - if (shieldedInstanceConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - shieldedInstanceConfig_ = value; - onChanged(); - } else { - shieldedInstanceConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - public Builder setShieldedInstanceConfig( - com.google.container.v1.ShieldedInstanceConfig.Builder builderForValue) { - if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfig_ = builderForValue.build(); - onChanged(); - } else { - shieldedInstanceConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - public Builder mergeShieldedInstanceConfig(com.google.container.v1.ShieldedInstanceConfig value) { - if (shieldedInstanceConfigBuilder_ == null) { - if (shieldedInstanceConfig_ != null) { - shieldedInstanceConfig_ = - com.google.container.v1.ShieldedInstanceConfig.newBuilder(shieldedInstanceConfig_).mergeFrom(value).buildPartial(); - } else { - shieldedInstanceConfig_ = value; - } - onChanged(); - } else { - shieldedInstanceConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - public Builder clearShieldedInstanceConfig() { - if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfig_ = null; - onChanged(); - } else { - shieldedInstanceConfig_ = null; - shieldedInstanceConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - public com.google.container.v1.ShieldedInstanceConfig.Builder getShieldedInstanceConfigBuilder() { - - onChanged(); - return getShieldedInstanceConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - public com.google.container.v1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { - if (shieldedInstanceConfigBuilder_ != null) { - return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); - } else { - return shieldedInstanceConfig_ == null ? - com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; - } - } - /** - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedInstanceConfig, com.google.container.v1.ShieldedInstanceConfig.Builder, com.google.container.v1.ShieldedInstanceConfigOrBuilder> - getShieldedInstanceConfigFieldBuilder() { - if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedInstanceConfig, com.google.container.v1.ShieldedInstanceConfig.Builder, com.google.container.v1.ShieldedInstanceConfigOrBuilder>( - getShieldedInstanceConfig(), - getParentForChildren(), - isClean()); - shieldedInstanceConfig_ = null; - } - return shieldedInstanceConfigBuilder_; - } - - private java.lang.Object bootDiskKmsKey_ = ""; - /** - *
-     * The Customer Managed Encryption Key used to encrypt the boot disk attached
-     * to each node in the node pool. This should be of the form
-     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-     * For more information about protecting resources with Cloud KMS Keys please
-     * see:
-     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-     * 
- * - * string boot_disk_kms_key = 9; - * @return The bootDiskKmsKey. - */ - public java.lang.String getBootDiskKmsKey() { - java.lang.Object ref = bootDiskKmsKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bootDiskKmsKey_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The Customer Managed Encryption Key used to encrypt the boot disk attached
-     * to each node in the node pool. This should be of the form
-     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-     * For more information about protecting resources with Cloud KMS Keys please
-     * see:
-     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-     * 
- * - * string boot_disk_kms_key = 9; - * @return The bytes for bootDiskKmsKey. - */ - public com.google.protobuf.ByteString - getBootDiskKmsKeyBytes() { - java.lang.Object ref = bootDiskKmsKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bootDiskKmsKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The Customer Managed Encryption Key used to encrypt the boot disk attached
-     * to each node in the node pool. This should be of the form
-     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-     * For more information about protecting resources with Cloud KMS Keys please
-     * see:
-     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-     * 
- * - * string boot_disk_kms_key = 9; - * @param value The bootDiskKmsKey to set. - * @return This builder for chaining. - */ - public Builder setBootDiskKmsKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - bootDiskKmsKey_ = value; - onChanged(); - return this; - } - /** - *
-     * The Customer Managed Encryption Key used to encrypt the boot disk attached
-     * to each node in the node pool. This should be of the form
-     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-     * For more information about protecting resources with Cloud KMS Keys please
-     * see:
-     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-     * 
- * - * string boot_disk_kms_key = 9; - * @return This builder for chaining. - */ - public Builder clearBootDiskKmsKey() { - - bootDiskKmsKey_ = getDefaultInstance().getBootDiskKmsKey(); - onChanged(); - return this; - } - /** - *
-     * The Customer Managed Encryption Key used to encrypt the boot disk attached
-     * to each node in the node pool. This should be of the form
-     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-     * For more information about protecting resources with Cloud KMS Keys please
-     * see:
-     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-     * 
- * - * string boot_disk_kms_key = 9; - * @param value The bytes for bootDiskKmsKey to set. - * @return This builder for chaining. - */ - public Builder setBootDiskKmsKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - bootDiskKmsKey_ = value; - onChanged(); - return this; - } - - private java.lang.Object imageType_ = ""; - /** - *
-     * The image type to use for NAP created node.
-     * 
- * - * 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.
-     * 
- * - * 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.
-     * 
- * - * string image_type = 10; - * @param value The imageType to set. - * @return This builder for chaining. - */ - public Builder setImageType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - imageType_ = value; - onChanged(); - return this; - } - /** - *
-     * The image type to use for NAP created node.
-     * 
- * - * string image_type = 10; - * @return This builder for chaining. - */ - public Builder clearImageType() { - - imageType_ = getDefaultInstance().getImageType(); - onChanged(); - return this; - } - /** - *
-     * The image type to use for NAP created node.
-     * 
- * - * string image_type = 10; - * @param value The bytes for imageType to set. - * @return This builder for chaining. - */ - public Builder setImageTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - imageType_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index c76407b3f96d..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java +++ /dev/null @@ -1,283 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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
-   * https://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=3398 - * @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
-   * https://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=3398 - * @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.
-   * 
- * - * string image_type = 10; - * @return The imageType. - */ - java.lang.String getImageType(); - /** - *
-   * The image type to use for NAP created node.
-   * 
- * - * string image_type = 10; - * @return The bytes for imageType. - */ - com.google.protobuf.ByteString - getImageTypeBytes(); -} 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 deleted file mode 100644 index 947ec5a2e377..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorization.java +++ /dev/null @@ -1,792 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * 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=1278 - * @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_; - /** - *
-   * Mode of operation for binauthz policy evaluation. Currently the only
-   * options are equivalent to enable/disable. 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. Currently the only
-   * options are equivalent to enable/disable. 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() { - @SuppressWarnings("deprecation") - com.google.container.v1.BinaryAuthorization.EvaluationMode result = com.google.container.v1.BinaryAuthorization.EvaluationMode.valueOf(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(); - 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); - result.enabled_ = enabled_; - result.evaluationMode_ = evaluationMode_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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(); - - break; - } // case 8 - case 16: { - evaluationMode_ = input.readEnum(); - - 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 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=1278 - * @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=1278 - * @param value The enabled to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setEnabled(boolean value) { - - enabled_ = value; - 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=1278 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - - private int evaluationMode_ = 0; - /** - *
-     * Mode of operation for binauthz policy evaluation. Currently the only
-     * options are equivalent to enable/disable. 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. Currently the only
-     * options are equivalent to enable/disable. 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; - onChanged(); - return this; - } - /** - *
-     * Mode of operation for binauthz policy evaluation. Currently the only
-     * options are equivalent to enable/disable. 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() { - @SuppressWarnings("deprecation") - com.google.container.v1.BinaryAuthorization.EvaluationMode result = com.google.container.v1.BinaryAuthorization.EvaluationMode.valueOf(evaluationMode_); - return result == null ? com.google.container.v1.BinaryAuthorization.EvaluationMode.UNRECOGNIZED : result; - } - /** - *
-     * Mode of operation for binauthz policy evaluation. Currently the only
-     * options are equivalent to enable/disable. 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(); - } - - evaluationMode_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Mode of operation for binauthz policy evaluation. Currently the only
-     * options are equivalent to enable/disable. If unspecified, defaults to
-     * DISABLED.
-     * 
- * - * .google.container.v1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; - * @return This builder for chaining. - */ - public Builder clearEvaluationMode() { - - 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 deleted file mode 100644 index 4e581fe2f938..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorizationOrBuilder.java +++ /dev/null @@ -1,46 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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=1278 - * @return The enabled. - */ - @java.lang.Deprecated boolean getEnabled(); - - /** - *
-   * Mode of operation for binauthz policy evaluation. Currently the only
-   * options are equivalent to enable/disable. 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. Currently the only
-   * options are equivalent to enable/disable. 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 deleted file mode 100644 index 252cb6e9e818..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BlueGreenSettings.java +++ /dev/null @@ -1,2027 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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(); - - public 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - 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(); - if (batchSoakDurationBuilder_ == null) { - batchSoakDuration_ = null; - } else { - batchSoakDurationBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (updateBatchSizeCase_ == 1) { - result.updateBatchSize_ = updateBatchSize_; - } - if (updateBatchSizeCase_ == 2) { - result.updateBatchSize_ = updateBatchSize_; - } - if (((from_bitField0_ & 0x00000001) != 0)) { - if (batchSoakDurationBuilder_ == null) { - result.batchSoakDuration_ = batchSoakDuration_; - } else { - result.batchSoakDuration_ = batchSoakDurationBuilder_.build(); - } - to_bitField0_ |= 0x00000001; - } - result.bitField0_ = to_bitField0_; - result.updateBatchSizeCase_ = updateBatchSizeCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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_ |= 0x00000001; - 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_ & 0x00000001) != 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; - onChanged(); - } else { - batchSoakDurationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - 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(); - onChanged(); - } else { - batchSoakDurationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - 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_ & 0x00000001) != 0) && - batchSoakDuration_ != null && - batchSoakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { - batchSoakDuration_ = - com.google.protobuf.Duration.newBuilder(batchSoakDuration_).mergeFrom(value).buildPartial(); - } else { - batchSoakDuration_ = value; - } - onChanged(); - } else { - batchSoakDurationBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - *
-       * Soak time after each batch gets drained. Default to zero.
-       * 
- * - * optional .google.protobuf.Duration batch_soak_duration = 3; - */ - public Builder clearBatchSoakDuration() { - if (batchSoakDurationBuilder_ == null) { - batchSoakDuration_ = null; - onChanged(); - } else { - batchSoakDurationBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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_ |= 0x00000001; - 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; - 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(); - if (standardRolloutPolicyBuilder_ != null) { - standardRolloutPolicyBuilder_.clear(); - } - if (nodePoolSoakDurationBuilder_ == null) { - nodePoolSoakDuration_ = null; - } else { - nodePoolSoakDurationBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (rolloutPolicyCase_ == 1) { - if (standardRolloutPolicyBuilder_ == null) { - result.rolloutPolicy_ = rolloutPolicy_; - } else { - result.rolloutPolicy_ = standardRolloutPolicyBuilder_.build(); - } - } - if (((from_bitField0_ & 0x00000001) != 0)) { - if (nodePoolSoakDurationBuilder_ == null) { - result.nodePoolSoakDuration_ = nodePoolSoakDuration_; - } else { - result.nodePoolSoakDuration_ = nodePoolSoakDurationBuilder_.build(); - } - to_bitField0_ |= 0x00000001; - } - result.bitField0_ = to_bitField0_; - result.rolloutPolicyCase_ = rolloutPolicyCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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_ |= 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 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_ & 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. - */ - 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; - onChanged(); - } else { - nodePoolSoakDurationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - 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(); - onChanged(); - } else { - nodePoolSoakDurationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - 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_ & 0x00000001) != 0) && - nodePoolSoakDuration_ != null && - nodePoolSoakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { - nodePoolSoakDuration_ = - com.google.protobuf.Duration.newBuilder(nodePoolSoakDuration_).mergeFrom(value).buildPartial(); - } else { - nodePoolSoakDuration_ = value; - } - onChanged(); - } else { - nodePoolSoakDurationBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - 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() { - if (nodePoolSoakDurationBuilder_ == null) { - nodePoolSoakDuration_ = null; - onChanged(); - } else { - nodePoolSoakDurationBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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_ |= 0x00000001; - 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 deleted file mode 100644 index dbb224c08e31..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BlueGreenSettingsOrBuilder.java +++ /dev/null @@ -1,68 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - - public 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 deleted file mode 100644 index 6ec9b7a5151a..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java +++ /dev/null @@ -1,1160 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - 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=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.CancelOperationRequest.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; - 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=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
-   * 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=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 OPERATION_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object operationId_; - /** - *
-   * Deprecated. The server-assigned `name` of the operation.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string operation_id = 3 [deprecated = true]; - * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. - * See google/container/v1/cluster_service.proto;l=2639 - * @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=2639 - * @return The bytes for operationId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getOperationIdBytes() { - java.lang.Object ref = operationId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - operationId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, operation id) of the operation to cancel.
-   * Specified in the format `projects/*/locations/*/operations/*`.
-   * 
- * - * string name = 4; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project, location, operation id) of the operation to cancel.
-   * Specified in the format `projects/*/locations/*/operations/*`.
-   * 
- * - * string name = 4; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - 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); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.operationId_ = operationId_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getOperationId().isEmpty()) { - operationId_ = other.operationId_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - operationId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - name_ = input.readStringRequireUtf8(); - - 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 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=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.CancelOperationRequest.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.CancelOperationRequest.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; - 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=2629 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - 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=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; - 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=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
-     * 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=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
-     * 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=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; - 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=2635 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - 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=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; - 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=2639 - * @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=2639 - * @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=2639 - * @param value The operationId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setOperationId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - operationId_ = value; - onChanged(); - return this; - } - /** - *
-     * 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=2639 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearOperationId() { - - operationId_ = getDefaultInstance().getOperationId(); - onChanged(); - return this; - } - /** - *
-     * Deprecated. The server-assigned `name` of the operation.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string operation_id = 3 [deprecated = true]; - * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. - * See google/container/v1/cluster_service.proto;l=2639 - * @param value The bytes for operationId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setOperationIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - operationId_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, operation id) of the operation to cancel.
-     * Specified in the format `projects/*/locations/*/operations/*`.
-     * 
- * - * string name = 4; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name (project, location, operation id) of the operation to cancel.
-     * Specified in the format `projects/*/locations/*/operations/*`.
-     * 
- * - * string name = 4; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name (project, location, operation id) of the operation to cancel.
-     * Specified in the format `projects/*/locations/*/operations/*`.
-     * 
- * - * string name = 4; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name (project, location, operation id) of the operation to cancel.
-     * Specified in the format `projects/*/locations/*/operations/*`.
-     * 
- * - * string name = 4; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project, location, operation id) of the operation to cancel.
-     * Specified in the format `projects/*/locations/*/operations/*`.
-     * 
- * - * string name = 4; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index 63106632d469..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java +++ /dev/null @@ -1,115 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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=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.CancelOperationRequest.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
-   * 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=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
-   * 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=2635 - * @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=2639 - * @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=2639 - * @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/ClientCertificateConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClientCertificateConfig.java deleted file mode 100644 index 2027fd6427d7..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClientCertificateConfig.java +++ /dev/null @@ -1,490 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * 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(); - 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); - result.issueClientCertificate_ = issueClientCertificate_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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(); - - 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 boolean issueClientCertificate_ ; - /** - *
-     * Issue a client certificate.
-     * 
- * - * bool issue_client_certificate = 1; - * @return The issueClientCertificate. - */ - @java.lang.Override - public boolean getIssueClientCertificate() { - return issueClientCertificate_; - } - /** - *
-     * Issue a client certificate.
-     * 
- * - * bool issue_client_certificate = 1; - * @param value The issueClientCertificate to set. - * @return This builder for chaining. - */ - public Builder setIssueClientCertificate(boolean value) { - - issueClientCertificate_ = value; - onChanged(); - return this; - } - /** - *
-     * Issue a client certificate.
-     * 
- * - * bool issue_client_certificate = 1; - * @return This builder for chaining. - */ - public Builder clearIssueClientCertificate() { - - issueClientCertificate_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index fd8b4826c1a8..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClientCertificateConfigOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index 68ca6778d7aa..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfig.java +++ /dev/null @@ -1,758 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * Configuration options for the 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * Whether Cloud Run addon is enabled for this cluster.
-   * 
- * - * bool disabled = 1; - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - - public static final int LOAD_BALANCER_TYPE_FIELD_NUMBER = 3; - private int loadBalancerType_; - /** - *
-   * Which load balancer type is installed for Cloud Run.
-   * 
- * - * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * @return The enum numeric value on the wire for loadBalancerType. - */ - @java.lang.Override public int getLoadBalancerTypeValue() { - return loadBalancerType_; - } - /** - *
-   * Which load balancer type is installed for Cloud Run.
-   * 
- * - * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * @return The loadBalancerType. - */ - @java.lang.Override public com.google.container.v1.CloudRunConfig.LoadBalancerType getLoadBalancerType() { - @SuppressWarnings("deprecation") - com.google.container.v1.CloudRunConfig.LoadBalancerType result = com.google.container.v1.CloudRunConfig.LoadBalancerType.valueOf(loadBalancerType_); - return result == null ? com.google.container.v1.CloudRunConfig.LoadBalancerType.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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(); - 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); - result.disabled_ = disabled_; - result.loadBalancerType_ = loadBalancerType_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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(); - - break; - } // case 8 - case 24: { - loadBalancerType_ = input.readEnum(); - - 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 boolean disabled_ ; - /** - *
-     * Whether Cloud Run addon is enabled for this cluster.
-     * 
- * - * bool disabled = 1; - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - /** - *
-     * Whether Cloud Run addon is enabled for this cluster.
-     * 
- * - * bool disabled = 1; - * @param value The disabled to set. - * @return This builder for chaining. - */ - public Builder setDisabled(boolean value) { - - disabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether Cloud Run addon is enabled for this cluster.
-     * 
- * - * bool disabled = 1; - * @return This builder for chaining. - */ - public Builder clearDisabled() { - - disabled_ = false; - onChanged(); - return this; - } - - private int loadBalancerType_ = 0; - /** - *
-     * Which load balancer type is installed for Cloud Run.
-     * 
- * - * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * @return The enum numeric value on the wire for loadBalancerType. - */ - @java.lang.Override public int getLoadBalancerTypeValue() { - return loadBalancerType_; - } - /** - *
-     * Which load balancer type is installed for Cloud Run.
-     * 
- * - * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * @param value The enum numeric value on the wire for loadBalancerType to set. - * @return This builder for chaining. - */ - public Builder setLoadBalancerTypeValue(int value) { - - loadBalancerType_ = value; - onChanged(); - return this; - } - /** - *
-     * Which load balancer type is installed for Cloud Run.
-     * 
- * - * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * @return The loadBalancerType. - */ - @java.lang.Override - public com.google.container.v1.CloudRunConfig.LoadBalancerType getLoadBalancerType() { - @SuppressWarnings("deprecation") - com.google.container.v1.CloudRunConfig.LoadBalancerType result = com.google.container.v1.CloudRunConfig.LoadBalancerType.valueOf(loadBalancerType_); - return result == null ? com.google.container.v1.CloudRunConfig.LoadBalancerType.UNRECOGNIZED : result; - } - /** - *
-     * Which load balancer type is installed for Cloud Run.
-     * 
- * - * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * @param value The loadBalancerType to set. - * @return This builder for chaining. - */ - public Builder setLoadBalancerType(com.google.container.v1.CloudRunConfig.LoadBalancerType value) { - if (value == null) { - throw new NullPointerException(); - } - - loadBalancerType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Which load balancer type is installed for Cloud Run.
-     * 
- * - * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * @return This builder for chaining. - */ - public Builder clearLoadBalancerType() { - - loadBalancerType_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index d12a13c53e46..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfigOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index 0fd97410db31..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java +++ /dev/null @@ -1,14236 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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.EMPTY; - labelFingerprint_ = ""; - selfLink_ = ""; - zone_ = ""; - endpoint_ = ""; - initialClusterVersion_ = ""; - currentMasterVersion_ = ""; - currentNodeVersion_ = ""; - createTime_ = ""; - status_ = 0; - statusMessage_ = ""; - servicesIpv4Cidr_ = ""; - instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - expireTime_ = ""; - location_ = ""; - tpuIpv4CidrBlock_ = ""; - conditions_ = java.util.Collections.emptyList(); - id_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Cluster(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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.MapField internalGetMapField( - int number) { - switch (number) { - case 15: - return internalGetResourceLabels(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.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_; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-   * The name of this cluster. The name must be unique within this project
-   * and location (e.g. zone or region), and can be up to 40 characters with
-   * the following restrictions:
-   * * Lowercase letters, numbers, and hyphens only.
-   * * Must start with a letter.
-   * * Must end with a number or a letter.
-   * 
- * - * string name = 1; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name of this cluster. The name must be unique within this project
-   * and location (e.g. zone or region), and can be up to 40 characters with
-   * the following restrictions:
-   * * Lowercase letters, numbers, and hyphens only.
-   * * Must start with a letter.
-   * * Must end with a number or a letter.
-   * 
- * - * string name = 1; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 2; - private volatile java.lang.Object description_; - /** - *
-   * An optional description of this cluster.
-   * 
- * - * string description = 2; - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - *
-   * An optional description of this cluster.
-   * 
- * - * string description = 2; - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INITIAL_NODE_COUNT_FIELD_NUMBER = 3; - private int initialNodeCount_; - /** - *
-   * The number of nodes to create in this cluster. You must ensure that your
-   * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
-   * is sufficient for this number of instances. You must also have available
-   * firewall and routes quota.
-   * For requests, this field should only be used in lieu of a
-   * "node_pool" object, since this configuration (along with the
-   * "node_config") will be used to create a "NodePool" object with an
-   * auto-generated name. Do not use this and a node_pool at the same time.
-   * This field is deprecated, use node_pool.initial_node_count instead.
-   * 
- * - * int32 initial_node_count = 3 [deprecated = true]; - * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. - * See google/container/v1/cluster_service.proto;l=1464 - * @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=1477 - * @return Whether the nodeConfig field is set. - */ - @java.lang.Override - @java.lang.Deprecated public boolean hasNodeConfig() { - return nodeConfig_ != null; - } - /** - *
-   * Parameters used in creating the cluster's nodes.
-   * For requests, this field should only be used in lieu of a
-   * "node_pool" object, since this configuration (along with the
-   * "initial_node_count") will be used to create a "NodePool" object with an
-   * auto-generated name. Do not use this and a node_pool at the same time.
-   * For responses, this field will be populated with the node configuration of
-   * the first node pool. (For configuration of each node pool, see
-   * `node_pool.config`)
-   * If unspecified, the defaults are used.
-   * This field is deprecated, use node_pool.config instead.
-   * 
- * - * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; - * @deprecated google.container.v1.Cluster.node_config is deprecated. - * See google/container/v1/cluster_service.proto;l=1477 - * @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 getNodeConfig(); - } - - 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 masterAuth_ != null; - } - /** - *
-   * The authentication information for accessing the master endpoint.
-   * If unspecified, the defaults are used:
-   * For clusters before v1.12, if master_auth is unspecified, `username` will
-   * be set to "admin", a random password will be generated, and a client
-   * certificate will be issued.
-   * 
- * - * .google.container.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 getMasterAuth(); - } - - public static final int LOGGING_SERVICE_FIELD_NUMBER = 6; - private volatile java.lang.Object loggingService_; - /** - *
-   * The logging service the cluster should use to write logs.
-   * Currently available options:
-   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-   * service with a Kubernetes-native resource model
-   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-   *   available as of GKE 1.15).
-   * * `none` - no logs will be exported from the cluster.
-   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-   * 
- * - * string logging_service = 6; - * @return The loggingService. - */ - @java.lang.Override - public java.lang.String getLoggingService() { - java.lang.Object ref = loggingService_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - loggingService_ = s; - return s; - } - } - /** - *
-   * The logging service the cluster should use to write logs.
-   * Currently available options:
-   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-   * service with a Kubernetes-native resource model
-   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-   *   available as of GKE 1.15).
-   * * `none` - no logs will be exported from the cluster.
-   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-   * 
- * - * string logging_service = 6; - * @return The bytes for loggingService. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getLoggingServiceBytes() { - java.lang.Object ref = loggingService_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - loggingService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MONITORING_SERVICE_FIELD_NUMBER = 7; - private volatile java.lang.Object monitoringService_; - /** - *
-   * The monitoring service the cluster should use to write metrics.
-   * Currently available options:
-   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-   * service with a Kubernetes-native resource model
-   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-   *   longer available as of GKE 1.15).
-   * * `none` - No metrics will be exported from the cluster.
-   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-   * 
- * - * string monitoring_service = 7; - * @return The monitoringService. - */ - @java.lang.Override - public java.lang.String getMonitoringService() { - java.lang.Object ref = monitoringService_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - monitoringService_ = s; - return s; - } - } - /** - *
-   * The monitoring service the cluster should use to write metrics.
-   * Currently available options:
-   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-   * service with a Kubernetes-native resource model
-   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-   *   longer available as of GKE 1.15).
-   * * `none` - No metrics will be exported from the cluster.
-   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-   * 
- * - * string monitoring_service = 7; - * @return The bytes for monitoringService. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMonitoringServiceBytes() { - java.lang.Object ref = monitoringService_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - monitoringService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NETWORK_FIELD_NUMBER = 8; - private volatile java.lang.Object network_; - /** - *
-   * The name of the Google Compute Engine
-   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-   * to which the cluster is connected. If left unspecified, the `default`
-   * network will be used.
-   * 
- * - * 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; - 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 addonsConfig_ != null; - } - /** - *
-   * 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 getAddonsConfig(); - } - - public static final int SUBNETWORK_FIELD_NUMBER = 11; - private volatile java.lang.Object subnetwork_; - /** - *
-   * The name of the Google Compute Engine
-   * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
-   * the cluster is connected.
-   * 
- * - * 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; - 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; - private com.google.protobuf.LazyStringList locations_; - /** - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This field provides a default value if
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * are not specified during node pool creation.
-   * Warning: changing cluster locations will update the
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * of all node pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string locations = 13; - * @return A list containing the locations. - */ - public com.google.protobuf.ProtocolStringList - getLocationsList() { - return locations_; - } - /** - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This field provides a default value if
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * are not specified during node pool creation.
-   * Warning: changing cluster locations will update the
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * of all node pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string locations = 13; - * @return The count of locations. - */ - public int getLocationsCount() { - return locations_.size(); - } - /** - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This field provides a default value if
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * are not specified during node pool creation.
-   * Warning: changing cluster locations will update the
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * of all node pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string locations = 13; - * @param index The index of the element to return. - * @return The locations at the given index. - */ - public java.lang.String getLocations(int index) { - return locations_.get(index); - } - /** - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This field provides a default value if
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * are not specified during node pool creation.
-   * Warning: changing cluster locations will update the
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * of all node pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string locations = 13; - * @param index The index of the value to return. - * @return The bytes of the locations at the given index. - */ - public com.google.protobuf.ByteString - getLocationsBytes(int index) { - return locations_.getByteString(index); - } - - public static final int ENABLE_KUBERNETES_ALPHA_FIELD_NUMBER = 14; - private boolean enableKubernetesAlpha_; - /** - *
-   * Kubernetes alpha features are enabled on this cluster. This includes alpha
-   * API groups (e.g. 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, - ""); - } - 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 java.lang.String getResourceLabelsOrDefault( - java.lang.String key, - 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; - 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 legacyAbac_ != null; - } - /** - *
-   * 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 getLegacyAbac(); - } - - 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 networkPolicy_ != null; - } - /** - *
-   * 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 getNetworkPolicy(); - } - - 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 ipAllocationPolicy_ != null; - } - /** - *
-   * 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 getIpAllocationPolicy(); - } - - 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 masterAuthorizedNetworksConfig_ != null; - } - /** - *
-   * 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 getMasterAuthorizedNetworksConfig(); - } - - 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 maintenancePolicy_ != null; - } - /** - *
-   * 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 getMaintenancePolicy(); - } - - 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 binaryAuthorization_ != null; - } - /** - *
-   * 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 getBinaryAuthorization(); - } - - 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 autoscaling_ != null; - } - /** - *
-   * 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 getAutoscaling(); - } - - 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 networkConfig_ != null; - } - /** - *
-   * 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 getNetworkConfig(); - } - - 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 defaultMaxPodsConstraint_ != null; - } - /** - *
-   * The default constraint on the maximum number of pods that can be run
-   * simultaneously on a node in the node pool of this cluster. Only honored
-   * if cluster created with IP Alias support.
-   * 
- * - * .google.container.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 getDefaultMaxPodsConstraint(); - } - - 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 resourceUsageExportConfig_ != null; - } - /** - *
-   * 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 getResourceUsageExportConfig(); - } - - 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 authenticatorGroupsConfig_ != null; - } - /** - *
-   * 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 getAuthenticatorGroupsConfig(); - } - - 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 privateClusterConfig_ != null; - } - /** - *
-   * 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 getPrivateClusterConfig(); - } - - 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 databaseEncryption_ != null; - } - /** - *
-   * 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 getDatabaseEncryption(); - } - - 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 verticalPodAutoscaling_ != null; - } - /** - *
-   * 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 getVerticalPodAutoscaling(); - } - - public static final int SHIELDED_NODES_FIELD_NUMBER = 40; - private com.google.container.v1.ShieldedNodes shieldedNodes_; - /** - *
-   * Shielded Nodes configuration.
-   * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - * @return Whether the shieldedNodes field is set. - */ - @java.lang.Override - public boolean hasShieldedNodes() { - return shieldedNodes_ != null; - } - /** - *
-   * Shielded Nodes configuration.
-   * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - * @return The shieldedNodes. - */ - @java.lang.Override - public com.google.container.v1.ShieldedNodes getShieldedNodes() { - return shieldedNodes_ == null ? com.google.container.v1.ShieldedNodes.getDefaultInstance() : shieldedNodes_; - } - /** - *
-   * Shielded Nodes configuration.
-   * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - */ - @java.lang.Override - public com.google.container.v1.ShieldedNodesOrBuilder getShieldedNodesOrBuilder() { - return getShieldedNodes(); - } - - public static final int RELEASE_CHANNEL_FIELD_NUMBER = 41; - private com.google.container.v1.ReleaseChannel releaseChannel_; - /** - *
-   * Release channel configuration.
-   * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - * @return Whether the releaseChannel field is set. - */ - @java.lang.Override - public boolean hasReleaseChannel() { - return releaseChannel_ != null; - } - /** - *
-   * Release channel configuration.
-   * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - * @return The releaseChannel. - */ - @java.lang.Override - public com.google.container.v1.ReleaseChannel getReleaseChannel() { - return releaseChannel_ == null ? com.google.container.v1.ReleaseChannel.getDefaultInstance() : releaseChannel_; - } - /** - *
-   * Release channel configuration.
-   * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - */ - @java.lang.Override - public com.google.container.v1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder() { - return getReleaseChannel(); - } - - public static final int WORKLOAD_IDENTITY_CONFIG_FIELD_NUMBER = 43; - private com.google.container.v1.WorkloadIdentityConfig workloadIdentityConfig_; - /** - *
-   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-   * policies.
-   * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - * @return Whether the workloadIdentityConfig field is set. - */ - @java.lang.Override - public boolean hasWorkloadIdentityConfig() { - return workloadIdentityConfig_ != null; - } - /** - *
-   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-   * policies.
-   * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - * @return The workloadIdentityConfig. - */ - @java.lang.Override - public com.google.container.v1.WorkloadIdentityConfig getWorkloadIdentityConfig() { - return workloadIdentityConfig_ == null ? com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() : workloadIdentityConfig_; - } - /** - *
-   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-   * policies.
-   * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - */ - @java.lang.Override - public com.google.container.v1.WorkloadIdentityConfigOrBuilder getWorkloadIdentityConfigOrBuilder() { - return getWorkloadIdentityConfig(); - } - - public static final int MESH_CERTIFICATES_FIELD_NUMBER = 67; - private com.google.container.v1.MeshCertificates meshCertificates_; - /** - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1.MeshCertificates mesh_certificates = 67; - * @return Whether the meshCertificates field is set. - */ - @java.lang.Override - public boolean hasMeshCertificates() { - return meshCertificates_ != null; - } - /** - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1.MeshCertificates mesh_certificates = 67; - * @return The meshCertificates. - */ - @java.lang.Override - public com.google.container.v1.MeshCertificates getMeshCertificates() { - return meshCertificates_ == null ? com.google.container.v1.MeshCertificates.getDefaultInstance() : meshCertificates_; - } - /** - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1.MeshCertificates mesh_certificates = 67; - */ - @java.lang.Override - public com.google.container.v1.MeshCertificatesOrBuilder getMeshCertificatesOrBuilder() { - return getMeshCertificates(); - } - - public static final int 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 costManagementConfig_ != null; - } - /** - *
-   * 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 getCostManagementConfig(); - } - - public static final int NOTIFICATION_CONFIG_FIELD_NUMBER = 49; - private com.google.container.v1.NotificationConfig notificationConfig_; - /** - *
-   * Notification configuration of the cluster.
-   * 
- * - * .google.container.v1.NotificationConfig notification_config = 49; - * @return Whether the notificationConfig field is set. - */ - @java.lang.Override - public boolean hasNotificationConfig() { - return notificationConfig_ != null; - } - /** - *
-   * Notification configuration of the cluster.
-   * 
- * - * .google.container.v1.NotificationConfig notification_config = 49; - * @return The notificationConfig. - */ - @java.lang.Override - public com.google.container.v1.NotificationConfig getNotificationConfig() { - return notificationConfig_ == null ? com.google.container.v1.NotificationConfig.getDefaultInstance() : notificationConfig_; - } - /** - *
-   * Notification configuration of the cluster.
-   * 
- * - * .google.container.v1.NotificationConfig notification_config = 49; - */ - @java.lang.Override - public com.google.container.v1.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { - return getNotificationConfig(); - } - - public static final int CONFIDENTIAL_NODES_FIELD_NUMBER = 50; - private com.google.container.v1.ConfidentialNodes confidentialNodes_; - /** - *
-   * Configuration of Confidential Nodes.
-   * 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 confidentialNodes_ != null; - } - /** - *
-   * 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 getConfidentialNodes(); - } - - 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 identityServiceConfig_ != null; - } - /** - *
-   * 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 getIdentityServiceConfig(); - } - - public static final int SELF_LINK_FIELD_NUMBER = 100; - private volatile java.lang.Object selfLink_; - /** - *
-   * [Output only] Server-defined URL for the resource.
-   * 
- * - * string self_link = 100; - * @return The selfLink. - */ - @java.lang.Override - public java.lang.String getSelfLink() { - java.lang.Object ref = selfLink_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - selfLink_ = s; - return s; - } - } - /** - *
-   * [Output only] Server-defined URL for the resource.
-   * 
- * - * string self_link = 100; - * @return The bytes for selfLink. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSelfLinkBytes() { - java.lang.Object ref = selfLink_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - selfLink_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 101; - private volatile java.lang.Object zone_; - /** - *
-   * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field is deprecated, use location instead.
-   * 
- * - * string zone = 101 [deprecated = true]; - * @deprecated google.container.v1.Cluster.zone is deprecated. - * See google/container/v1/cluster_service.proto;l=1643 - * @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=1643 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ENDPOINT_FIELD_NUMBER = 102; - private volatile java.lang.Object endpoint_; - /** - *
-   * [Output only] The IP address of this cluster's master endpoint.
-   * The endpoint can be accessed from the internet at
-   * `https://username:password@endpoint/`.
-   * See the `masterAuth` property of this resource for username and
-   * password information.
-   * 
- * - * string endpoint = 102; - * @return The endpoint. - */ - @java.lang.Override - public java.lang.String getEndpoint() { - java.lang.Object ref = endpoint_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - endpoint_ = s; - return s; - } - } - /** - *
-   * [Output only] The IP address of this cluster's master endpoint.
-   * The endpoint can be accessed from the internet at
-   * `https://username:password@endpoint/`.
-   * See the `masterAuth` property of this resource for username and
-   * password information.
-   * 
- * - * string endpoint = 102; - * @return The bytes for endpoint. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getEndpointBytes() { - java.lang.Object ref = endpoint_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - endpoint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INITIAL_CLUSTER_VERSION_FIELD_NUMBER = 103; - private volatile java.lang.Object initialClusterVersion_; - /** - *
-   * The initial Kubernetes version for this cluster.  Valid versions are those
-   * found in validMasterVersions returned by getServerConfig.  The version can
-   * be upgraded over time; such upgrades are reflected in
-   * currentMasterVersion and currentNodeVersion.
-   * Users may specify either explicit versions offered by
-   * Kubernetes Engine or version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "","-": picks the default Kubernetes version
-   * 
- * - * string initial_cluster_version = 103; - * @return The initialClusterVersion. - */ - @java.lang.Override - public java.lang.String getInitialClusterVersion() { - java.lang.Object ref = initialClusterVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - initialClusterVersion_ = s; - return s; - } - } - /** - *
-   * The initial Kubernetes version for this cluster.  Valid versions are those
-   * found in validMasterVersions returned by getServerConfig.  The version can
-   * be upgraded over time; such upgrades are reflected in
-   * currentMasterVersion and currentNodeVersion.
-   * Users may specify either explicit versions offered by
-   * Kubernetes Engine or version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "","-": picks the default Kubernetes version
-   * 
- * - * string initial_cluster_version = 103; - * @return The bytes for initialClusterVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getInitialClusterVersionBytes() { - java.lang.Object ref = initialClusterVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - initialClusterVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CURRENT_MASTER_VERSION_FIELD_NUMBER = 104; - private volatile java.lang.Object currentMasterVersion_; - /** - *
-   * [Output only] The current software version of the master endpoint.
-   * 
- * - * string current_master_version = 104; - * @return The currentMasterVersion. - */ - @java.lang.Override - public java.lang.String getCurrentMasterVersion() { - java.lang.Object ref = currentMasterVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currentMasterVersion_ = s; - return s; - } - } - /** - *
-   * [Output only] The current software version of the master endpoint.
-   * 
- * - * string current_master_version = 104; - * @return The bytes for currentMasterVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCurrentMasterVersionBytes() { - java.lang.Object ref = currentMasterVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - currentMasterVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CURRENT_NODE_VERSION_FIELD_NUMBER = 105; - private volatile java.lang.Object currentNodeVersion_; - /** - *
-   * [Output only] Deprecated, use
-   * [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=1676 - * @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=1676 - * @return The bytes for currentNodeVersion. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getCurrentNodeVersionBytes() { - java.lang.Object ref = currentNodeVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - currentNodeVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CREATE_TIME_FIELD_NUMBER = 106; - private volatile java.lang.Object createTime_; - /** - *
-   * [Output only] The time the cluster was created, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string create_time = 106; - * @return The createTime. - */ - @java.lang.Override - public java.lang.String getCreateTime() { - java.lang.Object ref = createTime_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - createTime_ = s; - return s; - } - } - /** - *
-   * [Output only] The time the cluster was created, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string create_time = 106; - * @return The bytes for createTime. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCreateTimeBytes() { - java.lang.Object ref = createTime_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - createTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_FIELD_NUMBER = 107; - private int status_; - /** - *
-   * [Output only] The current status of this cluster.
-   * 
- * - * .google.container.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() { - @SuppressWarnings("deprecation") - com.google.container.v1.Cluster.Status result = com.google.container.v1.Cluster.Status.valueOf(status_); - return result == null ? com.google.container.v1.Cluster.Status.UNRECOGNIZED : result; - } - - public static final int STATUS_MESSAGE_FIELD_NUMBER = 108; - private volatile java.lang.Object statusMessage_; - /** - *
-   * [Output only] Deprecated. Use conditions instead.
-   * Additional information about the current status of this
-   * cluster, if available.
-   * 
- * - * string status_message = 108 [deprecated = true]; - * @deprecated google.container.v1.Cluster.status_message is deprecated. - * See google/container/v1/cluster_service.proto;l=1688 - * @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=1688 - * @return The bytes for statusMessage. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getStatusMessageBytes() { - java.lang.Object ref = statusMessage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - statusMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_IPV4_CIDR_SIZE_FIELD_NUMBER = 109; - private int nodeIpv4CidrSize_; - /** - *
-   * [Output only] The size of the address space on each node for hosting
-   * containers. This is provisioned from within the `container_ipv4_cidr`
-   * range. This field will only be set when cluster is in route-based network
-   * mode.
-   * 
- * - * int32 node_ipv4_cidr_size = 109; - * @return The nodeIpv4CidrSize. - */ - @java.lang.Override - public int getNodeIpv4CidrSize() { - return nodeIpv4CidrSize_; - } - - public static final int SERVICES_IPV4_CIDR_FIELD_NUMBER = 110; - private volatile java.lang.Object servicesIpv4Cidr_; - /** - *
-   * [Output only] The IP address range of the Kubernetes services in
-   * this cluster, in
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `1.2.3.4/29`). Service addresses are
-   * typically put in the last `/16` from the container CIDR.
-   * 
- * - * string services_ipv4_cidr = 110; - * @return The servicesIpv4Cidr. - */ - @java.lang.Override - public java.lang.String getServicesIpv4Cidr() { - java.lang.Object ref = servicesIpv4Cidr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - servicesIpv4Cidr_ = s; - return s; - } - } - /** - *
-   * [Output only] The IP address range of the Kubernetes services in
-   * this cluster, in
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `1.2.3.4/29`). Service addresses are
-   * typically put in the last `/16` from the container CIDR.
-   * 
- * - * string services_ipv4_cidr = 110; - * @return The bytes for servicesIpv4Cidr. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getServicesIpv4CidrBytes() { - java.lang.Object ref = servicesIpv4Cidr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - servicesIpv4Cidr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INSTANCE_GROUP_URLS_FIELD_NUMBER = 111; - private com.google.protobuf.LazyStringList instanceGroupUrls_; - /** - *
-   * Deprecated. Use node_pools.instance_group_urls.
-   * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. - * See google/container/v1/cluster_service.proto;l=1704 - * @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=1704 - * @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=1704 - * @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=1704 - * @param index The index of the value to return. - * @return The bytes of the instanceGroupUrls at the given index. - */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getInstanceGroupUrlsBytes(int index) { - return instanceGroupUrls_.getByteString(index); - } - - public static final int CURRENT_NODE_COUNT_FIELD_NUMBER = 112; - private int currentNodeCount_; - /** - *
-   * [Output only]  The number of nodes currently in the cluster. Deprecated.
-   * Call Kubernetes API directly to retrieve node information.
-   * 
- * - * int32 current_node_count = 112 [deprecated = true]; - * @deprecated google.container.v1.Cluster.current_node_count is deprecated. - * See google/container/v1/cluster_service.proto;l=1708 - * @return The currentNodeCount. - */ - @java.lang.Override - @java.lang.Deprecated public int getCurrentNodeCount() { - return currentNodeCount_; - } - - public static final int EXPIRE_TIME_FIELD_NUMBER = 113; - private volatile java.lang.Object expireTime_; - /** - *
-   * [Output only] The time the cluster will be automatically
-   * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string expire_time = 113; - * @return The expireTime. - */ - @java.lang.Override - public java.lang.String getExpireTime() { - java.lang.Object ref = expireTime_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - expireTime_ = s; - return s; - } - } - /** - *
-   * [Output only] The time the cluster will be automatically
-   * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string expire_time = 113; - * @return The bytes for expireTime. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getExpireTimeBytes() { - java.lang.Object ref = expireTime_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - expireTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOCATION_FIELD_NUMBER = 114; - private volatile java.lang.Object location_; - /** - *
-   * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * or
-   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * in which the cluster resides.
-   * 
- * - * string location = 114; - * @return The location. - */ - @java.lang.Override - public java.lang.String getLocation() { - java.lang.Object ref = location_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - location_ = s; - return s; - } - } - /** - *
-   * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * or
-   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * in which the cluster resides.
-   * 
- * - * string location = 114; - * @return The bytes for location. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getLocationBytes() { - java.lang.Object ref = location_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - location_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ENABLE_TPU_FIELD_NUMBER = 115; - private boolean enableTpu_; - /** - *
-   * Enable the ability to use Cloud TPUs in this cluster.
-   * 
- * - * bool enable_tpu = 115; - * @return The enableTpu. - */ - @java.lang.Override - public boolean getEnableTpu() { - return enableTpu_; - } - - public static final int TPU_IPV4_CIDR_BLOCK_FIELD_NUMBER = 116; - private volatile java.lang.Object tpuIpv4CidrBlock_; - /** - *
-   * [Output only] The IP address range of the Cloud TPUs in this cluster, in
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `1.2.3.4/29`).
-   * 
- * - * string tpu_ipv4_cidr_block = 116; - * @return The tpuIpv4CidrBlock. - */ - @java.lang.Override - public java.lang.String getTpuIpv4CidrBlock() { - java.lang.Object ref = tpuIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tpuIpv4CidrBlock_ = s; - return s; - } - } - /** - *
-   * [Output only] The IP address range of the Cloud TPUs in this cluster, in
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `1.2.3.4/29`).
-   * 
- * - * string tpu_ipv4_cidr_block = 116; - * @return The bytes for tpuIpv4CidrBlock. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTpuIpv4CidrBlockBytes() { - java.lang.Object ref = tpuIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tpuIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONDITIONS_FIELD_NUMBER = 118; - 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 autopilot_ != null; - } - /** - *
-   * Autopilot configuration for the cluster.
-   * 
- * - * .google.container.v1.Autopilot autopilot = 128; - * @return The autopilot. - */ - @java.lang.Override - public com.google.container.v1.Autopilot getAutopilot() { - return autopilot_ == null ? com.google.container.v1.Autopilot.getDefaultInstance() : autopilot_; - } - /** - *
-   * Autopilot configuration for the cluster.
-   * 
- * - * .google.container.v1.Autopilot autopilot = 128; - */ - @java.lang.Override - public com.google.container.v1.AutopilotOrBuilder getAutopilotOrBuilder() { - return getAutopilot(); - } - - public static final int ID_FIELD_NUMBER = 129; - private volatile java.lang.Object id_; - /** - *
-   * Output only. Unique id for the cluster.
-   * 
- * - * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The id. - */ - @java.lang.Override - public 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_ & 0x00000001) != 0); - } - /** - *
-   * Default NodePool settings for the entire cluster. These settings are
-   * overridden if specified on the specific NodePool object.
-   * 
- * - * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; - * @return The nodePoolDefaults. - */ - @java.lang.Override - public com.google.container.v1.NodePoolDefaults getNodePoolDefaults() { - return nodePoolDefaults_ == null ? com.google.container.v1.NodePoolDefaults.getDefaultInstance() : nodePoolDefaults_; - } - /** - *
-   * Default NodePool settings for the entire cluster. These settings are
-   * overridden if specified on the specific NodePool object.
-   * 
- * - * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; - */ - @java.lang.Override - public com.google.container.v1.NodePoolDefaultsOrBuilder getNodePoolDefaultsOrBuilder() { - return nodePoolDefaults_ == null ? com.google.container.v1.NodePoolDefaults.getDefaultInstance() : nodePoolDefaults_; - } - - public static final int LOGGING_CONFIG_FIELD_NUMBER = 132; - private com.google.container.v1.LoggingConfig loggingConfig_; - /** - *
-   * Logging configuration for the cluster.
-   * 
- * - * .google.container.v1.LoggingConfig logging_config = 132; - * @return Whether the loggingConfig field is set. - */ - @java.lang.Override - public boolean hasLoggingConfig() { - return loggingConfig_ != null; - } - /** - *
-   * Logging configuration for the cluster.
-   * 
- * - * .google.container.v1.LoggingConfig logging_config = 132; - * @return The loggingConfig. - */ - @java.lang.Override - public com.google.container.v1.LoggingConfig getLoggingConfig() { - return loggingConfig_ == null ? com.google.container.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; - } - /** - *
-   * Logging configuration for the cluster.
-   * 
- * - * .google.container.v1.LoggingConfig logging_config = 132; - */ - @java.lang.Override - public com.google.container.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { - return getLoggingConfig(); - } - - public static final int MONITORING_CONFIG_FIELD_NUMBER = 133; - private com.google.container.v1.MonitoringConfig monitoringConfig_; - /** - *
-   * Monitoring configuration for the cluster.
-   * 
- * - * .google.container.v1.MonitoringConfig monitoring_config = 133; - * @return Whether the monitoringConfig field is set. - */ - @java.lang.Override - public boolean hasMonitoringConfig() { - return monitoringConfig_ != null; - } - /** - *
-   * Monitoring configuration for the cluster.
-   * 
- * - * .google.container.v1.MonitoringConfig monitoring_config = 133; - * @return The monitoringConfig. - */ - @java.lang.Override - public com.google.container.v1.MonitoringConfig getMonitoringConfig() { - return monitoringConfig_ == null ? com.google.container.v1.MonitoringConfig.getDefaultInstance() : monitoringConfig_; - } - /** - *
-   * Monitoring configuration for the cluster.
-   * 
- * - * .google.container.v1.MonitoringConfig monitoring_config = 133; - */ - @java.lang.Override - public com.google.container.v1.MonitoringConfigOrBuilder getMonitoringConfigOrBuilder() { - return getMonitoringConfig(); - } - - 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 nodePoolAutoConfig_ != null; - } - /** - *
-   * 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 getNodePoolAutoConfig(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); - } - if (initialNodeCount_ != 0) { - output.writeInt32(3, initialNodeCount_); - } - if (nodeConfig_ != null) { - output.writeMessage(4, getNodeConfig()); - } - if (masterAuth_ != null) { - output.writeMessage(5, getMasterAuth()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loggingService_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, loggingService_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(monitoringService_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, monitoringService_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, network_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterIpv4Cidr_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, clusterIpv4Cidr_); - } - if (addonsConfig_ != null) { - output.writeMessage(10, getAddonsConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, subnetwork_); - } - for (int i = 0; i < nodePools_.size(); i++) { - output.writeMessage(12, nodePools_.get(i)); - } - for (int i = 0; i < locations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, locations_.getRaw(i)); - } - if (enableKubernetesAlpha_ != false) { - output.writeBool(14, enableKubernetesAlpha_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetResourceLabels(), - ResourceLabelsDefaultEntryHolder.defaultEntry, - 15); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(labelFingerprint_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 16, labelFingerprint_); - } - if (legacyAbac_ != null) { - output.writeMessage(18, getLegacyAbac()); - } - if (networkPolicy_ != null) { - output.writeMessage(19, getNetworkPolicy()); - } - if (ipAllocationPolicy_ != null) { - output.writeMessage(20, getIpAllocationPolicy()); - } - if (masterAuthorizedNetworksConfig_ != null) { - output.writeMessage(22, getMasterAuthorizedNetworksConfig()); - } - if (maintenancePolicy_ != null) { - output.writeMessage(23, getMaintenancePolicy()); - } - if (binaryAuthorization_ != null) { - output.writeMessage(24, getBinaryAuthorization()); - } - if (autoscaling_ != null) { - output.writeMessage(26, getAutoscaling()); - } - if (networkConfig_ != null) { - output.writeMessage(27, getNetworkConfig()); - } - if (defaultMaxPodsConstraint_ != null) { - output.writeMessage(30, getDefaultMaxPodsConstraint()); - } - if (resourceUsageExportConfig_ != null) { - output.writeMessage(33, getResourceUsageExportConfig()); - } - if (authenticatorGroupsConfig_ != null) { - output.writeMessage(34, getAuthenticatorGroupsConfig()); - } - if (privateClusterConfig_ != null) { - output.writeMessage(37, getPrivateClusterConfig()); - } - if (databaseEncryption_ != null) { - output.writeMessage(38, getDatabaseEncryption()); - } - if (verticalPodAutoscaling_ != null) { - output.writeMessage(39, getVerticalPodAutoscaling()); - } - if (shieldedNodes_ != null) { - output.writeMessage(40, getShieldedNodes()); - } - if (releaseChannel_ != null) { - output.writeMessage(41, getReleaseChannel()); - } - if (workloadIdentityConfig_ != null) { - output.writeMessage(43, getWorkloadIdentityConfig()); - } - if (costManagementConfig_ != null) { - output.writeMessage(45, getCostManagementConfig()); - } - if (notificationConfig_ != null) { - output.writeMessage(49, getNotificationConfig()); - } - if (confidentialNodes_ != null) { - output.writeMessage(50, getConfidentialNodes()); - } - if (identityServiceConfig_ != null) { - output.writeMessage(54, getIdentityServiceConfig()); - } - if (meshCertificates_ != null) { - output.writeMessage(67, getMeshCertificates()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 100, selfLink_); - } - 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 (autopilot_ != null) { - output.writeMessage(128, getAutopilot()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 129, id_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(131, getNodePoolDefaults()); - } - if (loggingConfig_ != null) { - output.writeMessage(132, getLoggingConfig()); - } - if (monitoringConfig_ != null) { - output.writeMessage(133, getMonitoringConfig()); - } - if (nodePoolAutoConfig_ != null) { - output.writeMessage(136, getNodePoolAutoConfig()); - } - getUnknownFields().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 (nodeConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getNodeConfig()); - } - if (masterAuth_ != null) { - 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 (addonsConfig_ != null) { - 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 (legacyAbac_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, getLegacyAbac()); - } - if (networkPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, getNetworkPolicy()); - } - if (ipAllocationPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, getIpAllocationPolicy()); - } - if (masterAuthorizedNetworksConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, getMasterAuthorizedNetworksConfig()); - } - if (maintenancePolicy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(23, getMaintenancePolicy()); - } - if (binaryAuthorization_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(24, getBinaryAuthorization()); - } - if (autoscaling_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(26, getAutoscaling()); - } - if (networkConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(27, getNetworkConfig()); - } - if (defaultMaxPodsConstraint_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(30, getDefaultMaxPodsConstraint()); - } - if (resourceUsageExportConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(33, getResourceUsageExportConfig()); - } - if (authenticatorGroupsConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(34, getAuthenticatorGroupsConfig()); - } - if (privateClusterConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(37, getPrivateClusterConfig()); - } - if (databaseEncryption_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(38, getDatabaseEncryption()); - } - if (verticalPodAutoscaling_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(39, getVerticalPodAutoscaling()); - } - if (shieldedNodes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(40, getShieldedNodes()); - } - if (releaseChannel_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(41, getReleaseChannel()); - } - if (workloadIdentityConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(43, getWorkloadIdentityConfig()); - } - if (costManagementConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(45, getCostManagementConfig()); - } - if (notificationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(49, getNotificationConfig()); - } - if (confidentialNodes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(50, getConfidentialNodes()); - } - if (identityServiceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(54, getIdentityServiceConfig()); - } - if (meshCertificates_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(67, getMeshCertificates()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, selfLink_); - } - 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 (autopilot_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(128, getAutopilot()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(129, id_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(131, getNodePoolDefaults()); - } - if (loggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(132, getLoggingConfig()); - } - if (monitoringConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(133, getMonitoringConfig()); - } - if (nodePoolAutoConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(136, getNodePoolAutoConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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 = (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.MapField internalGetMapField( - int number) { - switch (number) { - case 15: - return internalGetResourceLabels(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 15: - return internalGetMutableResourceLabels(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.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) { - getNodePoolsFieldBuilder(); - getConditionsFieldBuilder(); - getNodePoolDefaultsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - description_ = ""; - - initialNodeCount_ = 0; - - if (nodeConfigBuilder_ == null) { - nodeConfig_ = null; - } else { - nodeConfig_ = null; - nodeConfigBuilder_ = null; - } - if (masterAuthBuilder_ == null) { - masterAuth_ = null; - } else { - masterAuth_ = null; - masterAuthBuilder_ = null; - } - loggingService_ = ""; - - monitoringService_ = ""; - - network_ = ""; - - clusterIpv4Cidr_ = ""; - - if (addonsConfigBuilder_ == null) { - addonsConfig_ = null; - } else { - addonsConfig_ = null; - addonsConfigBuilder_ = null; - } - subnetwork_ = ""; - - if (nodePoolsBuilder_ == null) { - nodePools_ = java.util.Collections.emptyList(); - } else { - nodePools_ = null; - nodePoolsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - enableKubernetesAlpha_ = false; - - internalGetMutableResourceLabels().clear(); - labelFingerprint_ = ""; - - if (legacyAbacBuilder_ == null) { - legacyAbac_ = null; - } else { - legacyAbac_ = null; - legacyAbacBuilder_ = null; - } - if (networkPolicyBuilder_ == null) { - networkPolicy_ = null; - } else { - networkPolicy_ = null; - networkPolicyBuilder_ = null; - } - if (ipAllocationPolicyBuilder_ == null) { - ipAllocationPolicy_ = null; - } else { - ipAllocationPolicy_ = null; - ipAllocationPolicyBuilder_ = null; - } - if (masterAuthorizedNetworksConfigBuilder_ == null) { - masterAuthorizedNetworksConfig_ = null; - } else { - masterAuthorizedNetworksConfig_ = null; - masterAuthorizedNetworksConfigBuilder_ = null; - } - if (maintenancePolicyBuilder_ == null) { - maintenancePolicy_ = null; - } else { - maintenancePolicy_ = null; - maintenancePolicyBuilder_ = null; - } - if (binaryAuthorizationBuilder_ == null) { - binaryAuthorization_ = null; - } else { - binaryAuthorization_ = null; - binaryAuthorizationBuilder_ = null; - } - if (autoscalingBuilder_ == null) { - autoscaling_ = null; - } else { - autoscaling_ = null; - autoscalingBuilder_ = null; - } - if (networkConfigBuilder_ == null) { - networkConfig_ = null; - } else { - networkConfig_ = null; - networkConfigBuilder_ = null; - } - if (defaultMaxPodsConstraintBuilder_ == null) { - defaultMaxPodsConstraint_ = null; - } else { - defaultMaxPodsConstraint_ = null; - defaultMaxPodsConstraintBuilder_ = null; - } - if (resourceUsageExportConfigBuilder_ == null) { - resourceUsageExportConfig_ = null; - } else { - resourceUsageExportConfig_ = null; - resourceUsageExportConfigBuilder_ = null; - } - if (authenticatorGroupsConfigBuilder_ == null) { - authenticatorGroupsConfig_ = null; - } else { - authenticatorGroupsConfig_ = null; - authenticatorGroupsConfigBuilder_ = null; - } - if (privateClusterConfigBuilder_ == null) { - privateClusterConfig_ = null; - } else { - privateClusterConfig_ = null; - privateClusterConfigBuilder_ = null; - } - if (databaseEncryptionBuilder_ == null) { - databaseEncryption_ = null; - } else { - databaseEncryption_ = null; - databaseEncryptionBuilder_ = null; - } - if (verticalPodAutoscalingBuilder_ == null) { - verticalPodAutoscaling_ = null; - } else { - verticalPodAutoscaling_ = null; - verticalPodAutoscalingBuilder_ = null; - } - if (shieldedNodesBuilder_ == null) { - shieldedNodes_ = null; - } else { - shieldedNodes_ = null; - shieldedNodesBuilder_ = null; - } - if (releaseChannelBuilder_ == null) { - releaseChannel_ = null; - } else { - releaseChannel_ = null; - releaseChannelBuilder_ = null; - } - if (workloadIdentityConfigBuilder_ == null) { - workloadIdentityConfig_ = null; - } else { - workloadIdentityConfig_ = null; - workloadIdentityConfigBuilder_ = null; - } - if (meshCertificatesBuilder_ == null) { - meshCertificates_ = null; - } else { - meshCertificates_ = null; - meshCertificatesBuilder_ = null; - } - if (costManagementConfigBuilder_ == null) { - costManagementConfig_ = null; - } else { - costManagementConfig_ = null; - costManagementConfigBuilder_ = null; - } - if (notificationConfigBuilder_ == null) { - notificationConfig_ = null; - } else { - notificationConfig_ = null; - notificationConfigBuilder_ = null; - } - if (confidentialNodesBuilder_ == null) { - confidentialNodes_ = null; - } else { - confidentialNodes_ = null; - confidentialNodesBuilder_ = null; - } - if (identityServiceConfigBuilder_ == null) { - identityServiceConfig_ = null; - } else { - identityServiceConfig_ = null; - identityServiceConfigBuilder_ = null; - } - selfLink_ = ""; - - zone_ = ""; - - endpoint_ = ""; - - initialClusterVersion_ = ""; - - currentMasterVersion_ = ""; - - currentNodeVersion_ = ""; - - createTime_ = ""; - - status_ = 0; - - statusMessage_ = ""; - - nodeIpv4CidrSize_ = 0; - - servicesIpv4Cidr_ = ""; - - instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - currentNodeCount_ = 0; - - expireTime_ = ""; - - location_ = ""; - - enableTpu_ = false; - - tpuIpv4CidrBlock_ = ""; - - if (conditionsBuilder_ == null) { - conditions_ = java.util.Collections.emptyList(); - } else { - conditions_ = null; - conditionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - if (autopilotBuilder_ == null) { - autopilot_ = null; - } else { - autopilot_ = null; - autopilotBuilder_ = null; - } - id_ = ""; - - if (nodePoolDefaultsBuilder_ == null) { - nodePoolDefaults_ = null; - } else { - nodePoolDefaultsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - if (monitoringConfigBuilder_ == null) { - monitoringConfig_ = null; - } else { - monitoringConfig_ = null; - monitoringConfigBuilder_ = null; - } - if (nodePoolAutoConfigBuilder_ == null) { - nodePoolAutoConfig_ = null; - } else { - nodePoolAutoConfig_ = null; - nodePoolAutoConfigBuilder_ = 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); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.name_ = name_; - result.description_ = description_; - result.initialNodeCount_ = initialNodeCount_; - if (nodeConfigBuilder_ == null) { - result.nodeConfig_ = nodeConfig_; - } else { - result.nodeConfig_ = nodeConfigBuilder_.build(); - } - if (masterAuthBuilder_ == null) { - result.masterAuth_ = masterAuth_; - } else { - result.masterAuth_ = masterAuthBuilder_.build(); - } - result.loggingService_ = loggingService_; - result.monitoringService_ = monitoringService_; - result.network_ = network_; - result.clusterIpv4Cidr_ = clusterIpv4Cidr_; - if (addonsConfigBuilder_ == null) { - result.addonsConfig_ = addonsConfig_; - } else { - result.addonsConfig_ = addonsConfigBuilder_.build(); - } - result.subnetwork_ = subnetwork_; - if (nodePoolsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - nodePools_ = java.util.Collections.unmodifiableList(nodePools_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.nodePools_ = nodePools_; - } else { - result.nodePools_ = nodePoolsBuilder_.build(); - } - if (((bitField0_ & 0x00000002) != 0)) { - locations_ = locations_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.locations_ = locations_; - result.enableKubernetesAlpha_ = enableKubernetesAlpha_; - result.resourceLabels_ = internalGetResourceLabels(); - result.resourceLabels_.makeImmutable(); - result.labelFingerprint_ = labelFingerprint_; - if (legacyAbacBuilder_ == null) { - result.legacyAbac_ = legacyAbac_; - } else { - result.legacyAbac_ = legacyAbacBuilder_.build(); - } - if (networkPolicyBuilder_ == null) { - result.networkPolicy_ = networkPolicy_; - } else { - result.networkPolicy_ = networkPolicyBuilder_.build(); - } - if (ipAllocationPolicyBuilder_ == null) { - result.ipAllocationPolicy_ = ipAllocationPolicy_; - } else { - result.ipAllocationPolicy_ = ipAllocationPolicyBuilder_.build(); - } - if (masterAuthorizedNetworksConfigBuilder_ == null) { - result.masterAuthorizedNetworksConfig_ = masterAuthorizedNetworksConfig_; - } else { - result.masterAuthorizedNetworksConfig_ = masterAuthorizedNetworksConfigBuilder_.build(); - } - if (maintenancePolicyBuilder_ == null) { - result.maintenancePolicy_ = maintenancePolicy_; - } else { - result.maintenancePolicy_ = maintenancePolicyBuilder_.build(); - } - if (binaryAuthorizationBuilder_ == null) { - result.binaryAuthorization_ = binaryAuthorization_; - } else { - result.binaryAuthorization_ = binaryAuthorizationBuilder_.build(); - } - if (autoscalingBuilder_ == null) { - result.autoscaling_ = autoscaling_; - } else { - result.autoscaling_ = autoscalingBuilder_.build(); - } - if (networkConfigBuilder_ == null) { - result.networkConfig_ = networkConfig_; - } else { - result.networkConfig_ = networkConfigBuilder_.build(); - } - if (defaultMaxPodsConstraintBuilder_ == null) { - result.defaultMaxPodsConstraint_ = defaultMaxPodsConstraint_; - } else { - result.defaultMaxPodsConstraint_ = defaultMaxPodsConstraintBuilder_.build(); - } - if (resourceUsageExportConfigBuilder_ == null) { - result.resourceUsageExportConfig_ = resourceUsageExportConfig_; - } else { - result.resourceUsageExportConfig_ = resourceUsageExportConfigBuilder_.build(); - } - if (authenticatorGroupsConfigBuilder_ == null) { - result.authenticatorGroupsConfig_ = authenticatorGroupsConfig_; - } else { - result.authenticatorGroupsConfig_ = authenticatorGroupsConfigBuilder_.build(); - } - if (privateClusterConfigBuilder_ == null) { - result.privateClusterConfig_ = privateClusterConfig_; - } else { - result.privateClusterConfig_ = privateClusterConfigBuilder_.build(); - } - if (databaseEncryptionBuilder_ == null) { - result.databaseEncryption_ = databaseEncryption_; - } else { - result.databaseEncryption_ = databaseEncryptionBuilder_.build(); - } - if (verticalPodAutoscalingBuilder_ == null) { - result.verticalPodAutoscaling_ = verticalPodAutoscaling_; - } else { - result.verticalPodAutoscaling_ = verticalPodAutoscalingBuilder_.build(); - } - if (shieldedNodesBuilder_ == null) { - result.shieldedNodes_ = shieldedNodes_; - } else { - result.shieldedNodes_ = shieldedNodesBuilder_.build(); - } - if (releaseChannelBuilder_ == null) { - result.releaseChannel_ = releaseChannel_; - } else { - result.releaseChannel_ = releaseChannelBuilder_.build(); - } - if (workloadIdentityConfigBuilder_ == null) { - result.workloadIdentityConfig_ = workloadIdentityConfig_; - } else { - result.workloadIdentityConfig_ = workloadIdentityConfigBuilder_.build(); - } - if (meshCertificatesBuilder_ == null) { - result.meshCertificates_ = meshCertificates_; - } else { - result.meshCertificates_ = meshCertificatesBuilder_.build(); - } - if (costManagementConfigBuilder_ == null) { - result.costManagementConfig_ = costManagementConfig_; - } else { - result.costManagementConfig_ = costManagementConfigBuilder_.build(); - } - if (notificationConfigBuilder_ == null) { - result.notificationConfig_ = notificationConfig_; - } else { - result.notificationConfig_ = notificationConfigBuilder_.build(); - } - if (confidentialNodesBuilder_ == null) { - result.confidentialNodes_ = confidentialNodes_; - } else { - result.confidentialNodes_ = confidentialNodesBuilder_.build(); - } - if (identityServiceConfigBuilder_ == null) { - result.identityServiceConfig_ = identityServiceConfig_; - } else { - result.identityServiceConfig_ = identityServiceConfigBuilder_.build(); - } - result.selfLink_ = selfLink_; - result.zone_ = zone_; - result.endpoint_ = endpoint_; - result.initialClusterVersion_ = initialClusterVersion_; - result.currentMasterVersion_ = currentMasterVersion_; - result.currentNodeVersion_ = currentNodeVersion_; - result.createTime_ = createTime_; - result.status_ = status_; - result.statusMessage_ = statusMessage_; - result.nodeIpv4CidrSize_ = nodeIpv4CidrSize_; - result.servicesIpv4Cidr_ = servicesIpv4Cidr_; - if (((bitField0_ & 0x00000008) != 0)) { - instanceGroupUrls_ = instanceGroupUrls_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.instanceGroupUrls_ = instanceGroupUrls_; - result.currentNodeCount_ = currentNodeCount_; - result.expireTime_ = expireTime_; - result.location_ = location_; - result.enableTpu_ = enableTpu_; - result.tpuIpv4CidrBlock_ = tpuIpv4CidrBlock_; - if (conditionsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - conditions_ = java.util.Collections.unmodifiableList(conditions_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.conditions_ = conditions_; - } else { - result.conditions_ = conditionsBuilder_.build(); - } - if (autopilotBuilder_ == null) { - result.autopilot_ = autopilot_; - } else { - result.autopilot_ = autopilotBuilder_.build(); - } - result.id_ = id_; - if (((from_bitField0_ & 0x00000020) != 0)) { - if (nodePoolDefaultsBuilder_ == null) { - result.nodePoolDefaults_ = nodePoolDefaults_; - } else { - result.nodePoolDefaults_ = nodePoolDefaultsBuilder_.build(); - } - to_bitField0_ |= 0x00000001; - } - if (loggingConfigBuilder_ == null) { - result.loggingConfig_ = loggingConfig_; - } else { - result.loggingConfig_ = loggingConfigBuilder_.build(); - } - if (monitoringConfigBuilder_ == null) { - result.monitoringConfig_ = monitoringConfig_; - } else { - result.monitoringConfig_ = monitoringConfigBuilder_.build(); - } - if (nodePoolAutoConfigBuilder_ == null) { - result.nodePoolAutoConfig_ = nodePoolAutoConfig_; - } else { - result.nodePoolAutoConfig_ = nodePoolAutoConfigBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (other.getInitialNodeCount() != 0) { - setInitialNodeCount(other.getInitialNodeCount()); - } - if (other.hasNodeConfig()) { - mergeNodeConfig(other.getNodeConfig()); - } - if (other.hasMasterAuth()) { - mergeMasterAuth(other.getMasterAuth()); - } - if (!other.getLoggingService().isEmpty()) { - loggingService_ = other.loggingService_; - onChanged(); - } - if (!other.getMonitoringService().isEmpty()) { - monitoringService_ = other.monitoringService_; - onChanged(); - } - if (!other.getNetwork().isEmpty()) { - network_ = other.network_; - onChanged(); - } - if (!other.getClusterIpv4Cidr().isEmpty()) { - clusterIpv4Cidr_ = other.clusterIpv4Cidr_; - onChanged(); - } - if (other.hasAddonsConfig()) { - mergeAddonsConfig(other.getAddonsConfig()); - } - if (!other.getSubnetwork().isEmpty()) { - subnetwork_ = other.subnetwork_; - onChanged(); - } - if (nodePoolsBuilder_ == null) { - if (!other.nodePools_.isEmpty()) { - if (nodePools_.isEmpty()) { - nodePools_ = other.nodePools_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNodePoolsIsMutable(); - nodePools_.addAll(other.nodePools_); - } - onChanged(); - } - } else { - if (!other.nodePools_.isEmpty()) { - if (nodePoolsBuilder_.isEmpty()) { - nodePoolsBuilder_.dispose(); - nodePoolsBuilder_ = null; - nodePools_ = other.nodePools_; - bitField0_ = (bitField0_ & ~0x00000001); - nodePoolsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNodePoolsFieldBuilder() : null; - } else { - nodePoolsBuilder_.addAllMessages(other.nodePools_); - } - } - } - if (!other.locations_.isEmpty()) { - if (locations_.isEmpty()) { - locations_ = other.locations_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureLocationsIsMutable(); - locations_.addAll(other.locations_); - } - onChanged(); - } - if (other.getEnableKubernetesAlpha() != false) { - setEnableKubernetesAlpha(other.getEnableKubernetesAlpha()); - } - internalGetMutableResourceLabels().mergeFrom( - other.internalGetResourceLabels()); - if (!other.getLabelFingerprint().isEmpty()) { - labelFingerprint_ = other.labelFingerprint_; - onChanged(); - } - if (other.hasLegacyAbac()) { - mergeLegacyAbac(other.getLegacyAbac()); - } - if (other.hasNetworkPolicy()) { - mergeNetworkPolicy(other.getNetworkPolicy()); - } - if (other.hasIpAllocationPolicy()) { - mergeIpAllocationPolicy(other.getIpAllocationPolicy()); - } - if (other.hasMasterAuthorizedNetworksConfig()) { - mergeMasterAuthorizedNetworksConfig(other.getMasterAuthorizedNetworksConfig()); - } - if (other.hasMaintenancePolicy()) { - mergeMaintenancePolicy(other.getMaintenancePolicy()); - } - if (other.hasBinaryAuthorization()) { - mergeBinaryAuthorization(other.getBinaryAuthorization()); - } - if (other.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_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getEndpoint().isEmpty()) { - endpoint_ = other.endpoint_; - onChanged(); - } - if (!other.getInitialClusterVersion().isEmpty()) { - initialClusterVersion_ = other.initialClusterVersion_; - onChanged(); - } - if (!other.getCurrentMasterVersion().isEmpty()) { - currentMasterVersion_ = other.currentMasterVersion_; - onChanged(); - } - if (!other.getCurrentNodeVersion().isEmpty()) { - currentNodeVersion_ = other.currentNodeVersion_; - onChanged(); - } - if (!other.getCreateTime().isEmpty()) { - createTime_ = other.createTime_; - onChanged(); - } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); - } - if (!other.getStatusMessage().isEmpty()) { - statusMessage_ = other.statusMessage_; - onChanged(); - } - if (other.getNodeIpv4CidrSize() != 0) { - setNodeIpv4CidrSize(other.getNodeIpv4CidrSize()); - } - if (!other.getServicesIpv4Cidr().isEmpty()) { - servicesIpv4Cidr_ = other.servicesIpv4Cidr_; - onChanged(); - } - if (!other.instanceGroupUrls_.isEmpty()) { - if (instanceGroupUrls_.isEmpty()) { - instanceGroupUrls_ = other.instanceGroupUrls_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureInstanceGroupUrlsIsMutable(); - instanceGroupUrls_.addAll(other.instanceGroupUrls_); - } - onChanged(); - } - if (other.getCurrentNodeCount() != 0) { - setCurrentNodeCount(other.getCurrentNodeCount()); - } - if (!other.getExpireTime().isEmpty()) { - expireTime_ = other.expireTime_; - onChanged(); - } - if (!other.getLocation().isEmpty()) { - location_ = other.location_; - onChanged(); - } - if (other.getEnableTpu() != false) { - setEnableTpu(other.getEnableTpu()); - } - if (!other.getTpuIpv4CidrBlock().isEmpty()) { - tpuIpv4CidrBlock_ = other.tpuIpv4CidrBlock_; - onChanged(); - } - if (conditionsBuilder_ == null) { - if (!other.conditions_.isEmpty()) { - if (conditions_.isEmpty()) { - conditions_ = other.conditions_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureConditionsIsMutable(); - conditions_.addAll(other.conditions_); - } - onChanged(); - } - } else { - if (!other.conditions_.isEmpty()) { - if (conditionsBuilder_.isEmpty()) { - conditionsBuilder_.dispose(); - conditionsBuilder_ = null; - conditions_ = other.conditions_; - bitField0_ = (bitField0_ & ~0x00000010); - conditionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getConditionsFieldBuilder() : null; - } else { - conditionsBuilder_.addAllMessages(other.conditions_); - } - } - } - if (other.hasAutopilot()) { - mergeAutopilot(other.getAutopilot()); - } - if (!other.getId().isEmpty()) { - id_ = other.id_; - onChanged(); - } - if (other.hasNodePoolDefaults()) { - mergeNodePoolDefaults(other.getNodePoolDefaults()); - } - if (other.hasLoggingConfig()) { - mergeLoggingConfig(other.getLoggingConfig()); - } - if (other.hasMonitoringConfig()) { - mergeMonitoringConfig(other.getMonitoringConfig()); - } - if (other.hasNodePoolAutoConfig()) { - mergeNodePoolAutoConfig(other.getNodePoolAutoConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - description_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: { - initialNodeCount_ = input.readInt32(); - - break; - } // case 24 - case 34: { - input.readMessage( - getNodeConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 34 - case 42: { - input.readMessage( - getMasterAuthFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 42 - case 50: { - loggingService_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 58: { - monitoringService_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 66: { - network_ = input.readStringRequireUtf8(); - - break; - } // case 66 - case 74: { - clusterIpv4Cidr_ = input.readStringRequireUtf8(); - - break; - } // case 74 - case 82: { - input.readMessage( - getAddonsConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 82 - case 90: { - subnetwork_ = input.readStringRequireUtf8(); - - 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(); - - break; - } // case 112 - case 122: { - com.google.protobuf.MapEntry - resourceLabels__ = input.readMessage( - ResourceLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableResourceLabels().getMutableMap().put( - resourceLabels__.getKey(), resourceLabels__.getValue()); - break; - } // case 122 - case 130: { - labelFingerprint_ = input.readStringRequireUtf8(); - - break; - } // case 130 - case 146: { - input.readMessage( - getLegacyAbacFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 146 - case 154: { - input.readMessage( - getNetworkPolicyFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 154 - case 162: { - input.readMessage( - getIpAllocationPolicyFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 162 - case 178: { - input.readMessage( - getMasterAuthorizedNetworksConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 178 - case 186: { - input.readMessage( - getMaintenancePolicyFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 186 - case 194: { - input.readMessage( - getBinaryAuthorizationFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 194 - case 210: { - input.readMessage( - getAutoscalingFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 210 - case 218: { - input.readMessage( - getNetworkConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 218 - case 242: { - input.readMessage( - getDefaultMaxPodsConstraintFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 242 - case 266: { - input.readMessage( - getResourceUsageExportConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 266 - case 274: { - input.readMessage( - getAuthenticatorGroupsConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 274 - case 298: { - input.readMessage( - getPrivateClusterConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 298 - case 306: { - input.readMessage( - getDatabaseEncryptionFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 306 - case 314: { - input.readMessage( - getVerticalPodAutoscalingFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 314 - case 322: { - input.readMessage( - getShieldedNodesFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 322 - case 330: { - input.readMessage( - getReleaseChannelFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 330 - case 346: { - input.readMessage( - getWorkloadIdentityConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 346 - case 362: { - input.readMessage( - getCostManagementConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 362 - case 394: { - input.readMessage( - getNotificationConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 394 - case 402: { - input.readMessage( - getConfidentialNodesFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 402 - case 434: { - input.readMessage( - getIdentityServiceConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 434 - case 538: { - input.readMessage( - getMeshCertificatesFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 538 - case 802: { - selfLink_ = input.readStringRequireUtf8(); - - break; - } // case 802 - case 810: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 810 - case 818: { - endpoint_ = input.readStringRequireUtf8(); - - break; - } // case 818 - case 826: { - initialClusterVersion_ = input.readStringRequireUtf8(); - - break; - } // case 826 - case 834: { - currentMasterVersion_ = input.readStringRequireUtf8(); - - break; - } // case 834 - case 842: { - currentNodeVersion_ = input.readStringRequireUtf8(); - - break; - } // case 842 - case 850: { - createTime_ = input.readStringRequireUtf8(); - - break; - } // case 850 - case 856: { - status_ = input.readEnum(); - - break; - } // case 856 - case 866: { - statusMessage_ = input.readStringRequireUtf8(); - - break; - } // case 866 - case 872: { - nodeIpv4CidrSize_ = input.readInt32(); - - break; - } // case 872 - case 882: { - servicesIpv4Cidr_ = input.readStringRequireUtf8(); - - break; - } // case 882 - case 890: { - java.lang.String s = input.readStringRequireUtf8(); - ensureInstanceGroupUrlsIsMutable(); - instanceGroupUrls_.add(s); - break; - } // case 890 - case 896: { - currentNodeCount_ = input.readInt32(); - - break; - } // case 896 - case 906: { - expireTime_ = input.readStringRequireUtf8(); - - break; - } // case 906 - case 914: { - location_ = input.readStringRequireUtf8(); - - break; - } // case 914 - case 920: { - enableTpu_ = input.readBool(); - - break; - } // case 920 - case 930: { - tpuIpv4CidrBlock_ = input.readStringRequireUtf8(); - - 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); - - break; - } // case 1026 - case 1034: { - id_ = input.readStringRequireUtf8(); - - break; - } // case 1034 - case 1050: { - input.readMessage( - getNodePoolDefaultsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 1050 - case 1058: { - input.readMessage( - getLoggingConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 1058 - case 1066: { - input.readMessage( - getMonitoringConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 1066 - case 1090: { - input.readMessage( - getNodePoolAutoConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 1090 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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 this cluster. The name must be unique within this project
-     * and location (e.g. zone or region), and can be up to 40 characters with
-     * the following restrictions:
-     * * Lowercase letters, numbers, and hyphens only.
-     * * Must start with a letter.
-     * * Must end with a number or a letter.
-     * 
- * - * string name = 1; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name of this cluster. The name must be unique within this project
-     * and location (e.g. zone or region), and can be up to 40 characters with
-     * the following restrictions:
-     * * Lowercase letters, numbers, and hyphens only.
-     * * Must start with a letter.
-     * * Must end with a number or a letter.
-     * 
- * - * string name = 1; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name of this cluster. The name must be unique within this project
-     * and location (e.g. zone or region), and can be up to 40 characters with
-     * the following restrictions:
-     * * Lowercase letters, numbers, and hyphens only.
-     * * Must start with a letter.
-     * * Must end with a number or a letter.
-     * 
- * - * string name = 1; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name of this cluster. The name must be unique within this project
-     * and location (e.g. zone or region), and can be up to 40 characters with
-     * the following restrictions:
-     * * Lowercase letters, numbers, and hyphens only.
-     * * Must start with a letter.
-     * * Must end with a number or a letter.
-     * 
- * - * string name = 1; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name of this cluster. The name must be unique within this project
-     * and location (e.g. zone or region), and can be up to 40 characters with
-     * the following restrictions:
-     * * Lowercase letters, numbers, and hyphens only.
-     * * Must start with a letter.
-     * * Must end with a number or a letter.
-     * 
- * - * string name = 1; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - *
-     * An optional description of this cluster.
-     * 
- * - * string description = 2; - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * An optional description of this cluster.
-     * 
- * - * string description = 2; - * @return The bytes for description. - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * An optional description of this cluster.
-     * 
- * - * string description = 2; - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - *
-     * An optional description of this cluster.
-     * 
- * - * string description = 2; - * @return This builder for chaining. - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - *
-     * An optional description of this cluster.
-     * 
- * - * string description = 2; - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private int initialNodeCount_ ; - /** - *
-     * The number of nodes to create in this cluster. You must ensure that your
-     * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
-     * is sufficient for this number of instances. You must also have available
-     * firewall and routes quota.
-     * For requests, this field should only be used in lieu of a
-     * "node_pool" object, since this configuration (along with the
-     * "node_config") will be used to create a "NodePool" object with an
-     * auto-generated name. Do not use this and a node_pool at the same time.
-     * This field is deprecated, use node_pool.initial_node_count instead.
-     * 
- * - * int32 initial_node_count = 3 [deprecated = true]; - * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. - * See google/container/v1/cluster_service.proto;l=1464 - * @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=1464 - * @param value The initialNodeCount to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setInitialNodeCount(int value) { - - initialNodeCount_ = value; - onChanged(); - return this; - } - /** - *
-     * The number of nodes to create in this cluster. You must ensure that your
-     * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
-     * is sufficient for this number of instances. You must also have available
-     * firewall and routes quota.
-     * For requests, this field should only be used in lieu of a
-     * "node_pool" object, since this configuration (along with the
-     * "node_config") will be used to create a "NodePool" object with an
-     * auto-generated name. Do not use this and a node_pool at the same time.
-     * This field is deprecated, use node_pool.initial_node_count instead.
-     * 
- * - * int32 initial_node_count = 3 [deprecated = true]; - * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. - * See google/container/v1/cluster_service.proto;l=1464 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearInitialNodeCount() { - - 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=1477 - * @return Whether the nodeConfig field is set. - */ - @java.lang.Deprecated public boolean hasNodeConfig() { - return nodeConfigBuilder_ != null || nodeConfig_ != null; - } - /** - *
-     * Parameters used in creating the cluster's nodes.
-     * For requests, this field should only be used in lieu of a
-     * "node_pool" object, since this configuration (along with the
-     * "initial_node_count") will be used to create a "NodePool" object with an
-     * auto-generated name. Do not use this and a node_pool at the same time.
-     * For responses, this field will be populated with the node configuration of
-     * the first node pool. (For configuration of each node pool, see
-     * `node_pool.config`)
-     * If unspecified, the defaults are used.
-     * This field is deprecated, use node_pool.config instead.
-     * 
- * - * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; - * @deprecated google.container.v1.Cluster.node_config is deprecated. - * See google/container/v1/cluster_service.proto;l=1477 - * @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; - onChanged(); - } else { - nodeConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Parameters used in creating the cluster's nodes.
-     * For requests, this field should only be used in lieu of a
-     * "node_pool" object, since this configuration (along with the
-     * "initial_node_count") will be used to create a "NodePool" object with an
-     * auto-generated name. Do not use this and a node_pool at the same time.
-     * For responses, this field will be populated with the node configuration of
-     * the first node pool. (For configuration of each node pool, see
-     * `node_pool.config`)
-     * If unspecified, the defaults are used.
-     * This field is deprecated, use node_pool.config instead.
-     * 
- * - * .google.container.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(); - onChanged(); - } else { - nodeConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Parameters used in creating the cluster's nodes.
-     * For requests, this field should only be used in lieu of a
-     * "node_pool" object, since this configuration (along with the
-     * "initial_node_count") will be used to create a "NodePool" object with an
-     * auto-generated name. Do not use this and a node_pool at the same time.
-     * For responses, this field will be populated with the node configuration of
-     * the first node pool. (For configuration of each node pool, see
-     * `node_pool.config`)
-     * If unspecified, the defaults are used.
-     * This field is deprecated, use node_pool.config instead.
-     * 
- * - * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; - */ - @java.lang.Deprecated public Builder mergeNodeConfig(com.google.container.v1.NodeConfig value) { - if (nodeConfigBuilder_ == null) { - if (nodeConfig_ != null) { - nodeConfig_ = - com.google.container.v1.NodeConfig.newBuilder(nodeConfig_).mergeFrom(value).buildPartial(); - } else { - nodeConfig_ = value; - } - onChanged(); - } else { - nodeConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Parameters used in creating the cluster's nodes.
-     * For requests, this field should only be used in lieu of a
-     * "node_pool" object, since this configuration (along with the
-     * "initial_node_count") will be used to create a "NodePool" object with an
-     * auto-generated name. Do not use this and a node_pool at the same time.
-     * For responses, this field will be populated with the node configuration of
-     * the first node pool. (For configuration of each node pool, see
-     * `node_pool.config`)
-     * If unspecified, the defaults are used.
-     * This field is deprecated, use node_pool.config instead.
-     * 
- * - * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearNodeConfig() { - if (nodeConfigBuilder_ == null) { - nodeConfig_ = null; - onChanged(); - } else { - nodeConfig_ = null; - nodeConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Parameters used in creating the cluster's nodes.
-     * For requests, this field should only be used in lieu of a
-     * "node_pool" object, since this configuration (along with the
-     * "initial_node_count") will be used to create a "NodePool" object with an
-     * auto-generated name. Do not use this and a node_pool at the same time.
-     * For responses, this field will be populated with the node configuration of
-     * the first node pool. (For configuration of each node pool, see
-     * `node_pool.config`)
-     * If unspecified, the defaults are used.
-     * This field is deprecated, use node_pool.config instead.
-     * 
- * - * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.container.v1.NodeConfig.Builder getNodeConfigBuilder() { - - onChanged(); - return getNodeConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Parameters used in creating the cluster's nodes.
-     * For requests, this field should only be used in lieu of a
-     * "node_pool" object, since this configuration (along with the
-     * "initial_node_count") will be used to create a "NodePool" object with an
-     * auto-generated name. Do not use this and a node_pool at the same time.
-     * For responses, this field will be populated with the node configuration of
-     * the first node pool. (For configuration of each node pool, see
-     * `node_pool.config`)
-     * If unspecified, the defaults are used.
-     * This field is deprecated, use node_pool.config instead.
-     * 
- * - * .google.container.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 masterAuthBuilder_ != null || masterAuth_ != null; - } - /** - *
-     * The authentication information for accessing the master endpoint.
-     * If unspecified, the defaults are used:
-     * For clusters before v1.12, if master_auth is unspecified, `username` will
-     * be set to "admin", a random password will be generated, and a client
-     * certificate will be issued.
-     * 
- * - * .google.container.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; - onChanged(); - } else { - masterAuthBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The authentication information for accessing the master endpoint.
-     * If unspecified, the defaults are used:
-     * For clusters before v1.12, if master_auth is unspecified, `username` will
-     * be set to "admin", a random password will be generated, and a client
-     * certificate will be issued.
-     * 
- * - * .google.container.v1.MasterAuth master_auth = 5; - */ - public Builder setMasterAuth( - com.google.container.v1.MasterAuth.Builder builderForValue) { - if (masterAuthBuilder_ == null) { - masterAuth_ = builderForValue.build(); - onChanged(); - } else { - masterAuthBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The authentication information for accessing the master endpoint.
-     * If unspecified, the defaults are used:
-     * For clusters before v1.12, if master_auth is unspecified, `username` will
-     * be set to "admin", a random password will be generated, and a client
-     * certificate will be issued.
-     * 
- * - * .google.container.v1.MasterAuth master_auth = 5; - */ - public Builder mergeMasterAuth(com.google.container.v1.MasterAuth value) { - if (masterAuthBuilder_ == null) { - if (masterAuth_ != null) { - masterAuth_ = - com.google.container.v1.MasterAuth.newBuilder(masterAuth_).mergeFrom(value).buildPartial(); - } else { - masterAuth_ = value; - } - onChanged(); - } else { - masterAuthBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The authentication information for accessing the master endpoint.
-     * If unspecified, the defaults are used:
-     * For clusters before v1.12, if master_auth is unspecified, `username` will
-     * be set to "admin", a random password will be generated, and a client
-     * certificate will be issued.
-     * 
- * - * .google.container.v1.MasterAuth master_auth = 5; - */ - public Builder clearMasterAuth() { - if (masterAuthBuilder_ == null) { - masterAuth_ = null; - onChanged(); - } else { - masterAuth_ = null; - masterAuthBuilder_ = null; - } - - return this; - } - /** - *
-     * The authentication information for accessing the master endpoint.
-     * If unspecified, the defaults are used:
-     * For clusters before v1.12, if master_auth is unspecified, `username` will
-     * be set to "admin", a random password will be generated, and a client
-     * certificate will be issued.
-     * 
- * - * .google.container.v1.MasterAuth master_auth = 5; - */ - public com.google.container.v1.MasterAuth.Builder getMasterAuthBuilder() { - - onChanged(); - return getMasterAuthFieldBuilder().getBuilder(); - } - /** - *
-     * The authentication information for accessing the master endpoint.
-     * If unspecified, the defaults are used:
-     * For clusters before v1.12, if master_auth is unspecified, `username` will
-     * be set to "admin", a random password will be generated, and a client
-     * certificate will be issued.
-     * 
- * - * .google.container.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; - onChanged(); - return this; - } - /** - *
-     * The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string logging_service = 6; - * @return This builder for chaining. - */ - public Builder clearLoggingService() { - - loggingService_ = getDefaultInstance().getLoggingService(); - onChanged(); - return this; - } - /** - *
-     * The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string logging_service = 6; - * @param value The bytes for loggingService to set. - * @return This builder for chaining. - */ - public Builder setLoggingServiceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - loggingService_ = value; - onChanged(); - return this; - } - - private java.lang.Object monitoringService_ = ""; - /** - *
-     * The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string monitoring_service = 7; - * @return The monitoringService. - */ - public java.lang.String getMonitoringService() { - java.lang.Object ref = monitoringService_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - monitoringService_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string monitoring_service = 7; - * @return The bytes for monitoringService. - */ - public com.google.protobuf.ByteString - getMonitoringServiceBytes() { - java.lang.Object ref = monitoringService_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - monitoringService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string monitoring_service = 7; - * @param value The monitoringService to set. - * @return This builder for chaining. - */ - public Builder setMonitoringService( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - monitoringService_ = value; - onChanged(); - return this; - } - /** - *
-     * The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string monitoring_service = 7; - * @return This builder for chaining. - */ - public Builder clearMonitoringService() { - - monitoringService_ = getDefaultInstance().getMonitoringService(); - onChanged(); - return this; - } - /** - *
-     * The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string monitoring_service = 7; - * @param value The bytes for monitoringService to set. - * @return This builder for chaining. - */ - public Builder setMonitoringServiceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - monitoringService_ = value; - onChanged(); - return this; - } - - private java.lang.Object network_ = ""; - /** - *
-     * The name of the Google Compute Engine
-     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-     * to which the cluster is connected. If left unspecified, the `default`
-     * network will be used.
-     * 
- * - * 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; - 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(); - 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; - onChanged(); - return this; - } - - private java.lang.Object clusterIpv4Cidr_ = ""; - /** - *
-     * The IP address range of the container pods in this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`). Leave blank to have
-     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
-     * 
- * - * string cluster_ipv4_cidr = 9; - * @return The clusterIpv4Cidr. - */ - public java.lang.String getClusterIpv4Cidr() { - java.lang.Object ref = clusterIpv4Cidr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterIpv4Cidr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The IP address range of the container pods in this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`). Leave blank to have
-     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
-     * 
- * - * string cluster_ipv4_cidr = 9; - * @return The bytes for clusterIpv4Cidr. - */ - public com.google.protobuf.ByteString - getClusterIpv4CidrBytes() { - java.lang.Object ref = clusterIpv4Cidr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterIpv4Cidr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The IP address range of the container pods in this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`). Leave blank to have
-     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
-     * 
- * - * string cluster_ipv4_cidr = 9; - * @param value The clusterIpv4Cidr to set. - * @return This builder for chaining. - */ - public Builder setClusterIpv4Cidr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterIpv4Cidr_ = value; - onChanged(); - return this; - } - /** - *
-     * The IP address range of the container pods in this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`). Leave blank to have
-     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
-     * 
- * - * string cluster_ipv4_cidr = 9; - * @return This builder for chaining. - */ - public Builder clearClusterIpv4Cidr() { - - clusterIpv4Cidr_ = getDefaultInstance().getClusterIpv4Cidr(); - onChanged(); - return this; - } - /** - *
-     * The IP address range of the container pods in this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`). Leave blank to have
-     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
-     * 
- * - * string cluster_ipv4_cidr = 9; - * @param value The bytes for clusterIpv4Cidr to set. - * @return This builder for chaining. - */ - public Builder setClusterIpv4CidrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterIpv4Cidr_ = value; - onChanged(); - return this; - } - - private com.google.container.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 addonsConfigBuilder_ != null || addonsConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - addonsConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - addonsConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (addonsConfig_ != null) { - addonsConfig_ = - com.google.container.v1.AddonsConfig.newBuilder(addonsConfig_).mergeFrom(value).buildPartial(); - } else { - addonsConfig_ = value; - } - onChanged(); - } else { - addonsConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig addons_config = 10; - */ - public Builder clearAddonsConfig() { - if (addonsConfigBuilder_ == null) { - addonsConfig_ = null; - onChanged(); - } else { - addonsConfig_ = null; - addonsConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig addons_config = 10; - */ - public com.google.container.v1.AddonsConfig.Builder getAddonsConfigBuilder() { - - 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; - 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(); - 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; - onChanged(); - return this; - } - - private java.util.List nodePools_ = - java.util.Collections.emptyList(); - private void ensureNodePoolsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - nodePools_ = new java.util.ArrayList(nodePools_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.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_ & ~0x00000001); - onChanged(); - } else { - nodePoolsBuilder_.clear(); - } - return this; - } - /** - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.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_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - nodePools_ = null; - } - return nodePoolsBuilder_; - } - - private com.google.protobuf.LazyStringList locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureLocationsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - locations_ = new com.google.protobuf.LazyStringArrayList(locations_); - bitField0_ |= 0x00000002; - } - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This field provides a default value if
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * are not specified during node pool creation.
-     * Warning: changing cluster locations will update the
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * of all node pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string locations = 13; - * @return A list containing the locations. - */ - public com.google.protobuf.ProtocolStringList - getLocationsList() { - return locations_.getUnmodifiableView(); - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This field provides a default value if
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * are not specified during node pool creation.
-     * Warning: changing cluster locations will update the
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * of all node pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string locations = 13; - * @return The count of locations. - */ - public int getLocationsCount() { - return locations_.size(); - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This field provides a default value if
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * are not specified during node pool creation.
-     * Warning: changing cluster locations will update the
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * of all node pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string locations = 13; - * @param index The index of the element to return. - * @return The locations at the given index. - */ - public java.lang.String getLocations(int index) { - return locations_.get(index); - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This field provides a default value if
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * are not specified during node pool creation.
-     * Warning: changing cluster locations will update the
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * of all node pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string locations = 13; - * @param index The index of the value to return. - * @return The bytes of the locations at the given index. - */ - public com.google.protobuf.ByteString - getLocationsBytes(int index) { - return locations_.getByteString(index); - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This field provides a default value if
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * are not specified during node pool creation.
-     * Warning: changing cluster locations will update the
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * of all node pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string locations = 13; - * @param index The index to set the value at. - * @param value The locations to set. - * @return This builder for chaining. - */ - public Builder setLocations( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); - locations_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This field provides a default value if
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * are not specified during node pool creation.
-     * Warning: changing cluster locations will update the
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * of all node pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string locations = 13; - * @param value The locations to add. - * @return This builder for chaining. - */ - public Builder addLocations( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); - locations_.add(value); - onChanged(); - return this; - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This field provides a default value if
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * are not specified during node pool creation.
-     * Warning: changing cluster locations will update the
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * of all node pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string locations = 13; - * @param values The locations to add. - * @return This builder for chaining. - */ - public Builder addAllLocations( - java.lang.Iterable values) { - ensureLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, locations_); - onChanged(); - return this; - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This field provides a default value if
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * are not specified during node pool creation.
-     * Warning: changing cluster locations will update the
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * of all node pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string locations = 13; - * @return This builder for chaining. - */ - public Builder clearLocations() { - locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This field provides a default value if
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * are not specified during node pool creation.
-     * Warning: changing cluster locations will update the
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * of all node pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string locations = 13; - * @param value The bytes of the locations to add. - * @return This builder for chaining. - */ - public Builder addLocationsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureLocationsIsMutable(); - locations_.add(value); - onChanged(); - return this; - } - - private boolean enableKubernetesAlpha_ ; - /** - *
-     * Kubernetes alpha features are enabled on this cluster. This includes alpha
-     * API groups (e.g. 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; - 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() { - - enableKubernetesAlpha_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> resourceLabels_; - private com.google.protobuf.MapField - internalGetResourceLabels() { - if (resourceLabels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ResourceLabelsDefaultEntryHolder.defaultEntry); - } - return resourceLabels_; - } - private com.google.protobuf.MapField - internalGetMutableResourceLabels() { - onChanged();; - if (resourceLabels_ == null) { - resourceLabels_ = com.google.protobuf.MapField.newMapField( - ResourceLabelsDefaultEntryHolder.defaultEntry); - } - if (!resourceLabels_.isMutable()) { - resourceLabels_ = resourceLabels_.copy(); - } - return resourceLabels_; - } - - public int getResourceLabelsCount() { - return internalGetResourceLabels().getMap().size(); - } - /** - *
-     * The resource labels for the cluster to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * map<string, string> resource_labels = 15; - */ - - @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 java.lang.String getResourceLabelsOrDefault( - java.lang.String key, - 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() { - 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() { - 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); - return this; - } - /** - *
-     * The resource labels for the cluster to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * map<string, string> resource_labels = 15; - */ - - public Builder putAllResourceLabels( - java.util.Map values) { - internalGetMutableResourceLabels().getMutableMap() - .putAll(values); - return this; - } - - private java.lang.Object labelFingerprint_ = ""; - /** - *
-     * The fingerprint of the set of labels for this cluster.
-     * 
- * - * string label_fingerprint = 16; - * @return The labelFingerprint. - */ - public java.lang.String getLabelFingerprint() { - java.lang.Object ref = labelFingerprint_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - labelFingerprint_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The fingerprint of the set of labels for this cluster.
-     * 
- * - * string label_fingerprint = 16; - * @return The bytes for labelFingerprint. - */ - public com.google.protobuf.ByteString - getLabelFingerprintBytes() { - java.lang.Object ref = labelFingerprint_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - labelFingerprint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The fingerprint of the set of labels for this cluster.
-     * 
- * - * string label_fingerprint = 16; - * @param value The labelFingerprint to set. - * @return This builder for chaining. - */ - public Builder setLabelFingerprint( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - labelFingerprint_ = value; - onChanged(); - return this; - } - /** - *
-     * The fingerprint of the set of labels for this cluster.
-     * 
- * - * string label_fingerprint = 16; - * @return This builder for chaining. - */ - public Builder clearLabelFingerprint() { - - labelFingerprint_ = getDefaultInstance().getLabelFingerprint(); - onChanged(); - return this; - } - /** - *
-     * The fingerprint of the set of labels for this cluster.
-     * 
- * - * string label_fingerprint = 16; - * @param value The bytes for labelFingerprint to set. - * @return This builder for chaining. - */ - public Builder setLabelFingerprintBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - labelFingerprint_ = value; - onChanged(); - return this; - } - - private com.google.container.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 legacyAbacBuilder_ != null || legacyAbac_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - legacyAbacBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - legacyAbacBuilder_.setMessage(builderForValue.build()); - } - - 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 (legacyAbac_ != null) { - legacyAbac_ = - com.google.container.v1.LegacyAbac.newBuilder(legacyAbac_).mergeFrom(value).buildPartial(); - } else { - legacyAbac_ = value; - } - onChanged(); - } else { - legacyAbacBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for the legacy ABAC authorization mode.
-     * 
- * - * .google.container.v1.LegacyAbac legacy_abac = 18; - */ - public Builder clearLegacyAbac() { - if (legacyAbacBuilder_ == null) { - legacyAbac_ = null; - onChanged(); - } else { - legacyAbac_ = null; - legacyAbacBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for the legacy ABAC authorization mode.
-     * 
- * - * .google.container.v1.LegacyAbac legacy_abac = 18; - */ - public com.google.container.v1.LegacyAbac.Builder getLegacyAbacBuilder() { - - 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 networkPolicyBuilder_ != null || networkPolicy_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - networkPolicyBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - networkPolicyBuilder_.setMessage(builderForValue.build()); - } - - 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 (networkPolicy_ != null) { - networkPolicy_ = - com.google.container.v1.NetworkPolicy.newBuilder(networkPolicy_).mergeFrom(value).buildPartial(); - } else { - networkPolicy_ = value; - } - onChanged(); - } else { - networkPolicyBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1.NetworkPolicy network_policy = 19; - */ - public Builder clearNetworkPolicy() { - if (networkPolicyBuilder_ == null) { - networkPolicy_ = null; - onChanged(); - } else { - networkPolicy_ = null; - networkPolicyBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1.NetworkPolicy network_policy = 19; - */ - public com.google.container.v1.NetworkPolicy.Builder getNetworkPolicyBuilder() { - - 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 ipAllocationPolicyBuilder_ != null || ipAllocationPolicy_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - ipAllocationPolicyBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - ipAllocationPolicyBuilder_.setMessage(builderForValue.build()); - } - - 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 (ipAllocationPolicy_ != null) { - ipAllocationPolicy_ = - com.google.container.v1.IPAllocationPolicy.newBuilder(ipAllocationPolicy_).mergeFrom(value).buildPartial(); - } else { - ipAllocationPolicy_ = value; - } - onChanged(); - } else { - ipAllocationPolicyBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for cluster IP allocation.
-     * 
- * - * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - */ - public Builder clearIpAllocationPolicy() { - if (ipAllocationPolicyBuilder_ == null) { - ipAllocationPolicy_ = null; - onChanged(); - } else { - ipAllocationPolicy_ = null; - ipAllocationPolicyBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for cluster IP allocation.
-     * 
- * - * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - */ - public com.google.container.v1.IPAllocationPolicy.Builder getIpAllocationPolicyBuilder() { - - 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 masterAuthorizedNetworksConfigBuilder_ != null || masterAuthorizedNetworksConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - masterAuthorizedNetworksConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - masterAuthorizedNetworksConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (masterAuthorizedNetworksConfig_ != null) { - masterAuthorizedNetworksConfig_ = - com.google.container.v1.MasterAuthorizedNetworksConfig.newBuilder(masterAuthorizedNetworksConfig_).mergeFrom(value).buildPartial(); - } else { - masterAuthorizedNetworksConfig_ = value; - } - onChanged(); - } else { - masterAuthorizedNetworksConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The configuration options for master authorized networks feature.
-     * 
- * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - */ - public Builder clearMasterAuthorizedNetworksConfig() { - if (masterAuthorizedNetworksConfigBuilder_ == null) { - masterAuthorizedNetworksConfig_ = null; - onChanged(); - } else { - masterAuthorizedNetworksConfig_ = null; - masterAuthorizedNetworksConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * The configuration options for master authorized networks feature.
-     * 
- * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - */ - public com.google.container.v1.MasterAuthorizedNetworksConfig.Builder getMasterAuthorizedNetworksConfigBuilder() { - - 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 maintenancePolicyBuilder_ != null || maintenancePolicy_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - maintenancePolicyBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - maintenancePolicyBuilder_.setMessage(builderForValue.build()); - } - - 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 (maintenancePolicy_ != null) { - maintenancePolicy_ = - com.google.container.v1.MaintenancePolicy.newBuilder(maintenancePolicy_).mergeFrom(value).buildPartial(); - } else { - maintenancePolicy_ = value; - } - onChanged(); - } else { - maintenancePolicyBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configure the maintenance policy for this cluster.
-     * 
- * - * .google.container.v1.MaintenancePolicy maintenance_policy = 23; - */ - public Builder clearMaintenancePolicy() { - if (maintenancePolicyBuilder_ == null) { - maintenancePolicy_ = null; - onChanged(); - } else { - maintenancePolicy_ = null; - maintenancePolicyBuilder_ = null; - } - - return this; - } - /** - *
-     * Configure the maintenance policy for this cluster.
-     * 
- * - * .google.container.v1.MaintenancePolicy maintenance_policy = 23; - */ - public com.google.container.v1.MaintenancePolicy.Builder getMaintenancePolicyBuilder() { - - 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 binaryAuthorizationBuilder_ != null || binaryAuthorization_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - binaryAuthorizationBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - binaryAuthorizationBuilder_.setMessage(builderForValue.build()); - } - - 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 (binaryAuthorization_ != null) { - binaryAuthorization_ = - com.google.container.v1.BinaryAuthorization.newBuilder(binaryAuthorization_).mergeFrom(value).buildPartial(); - } else { - binaryAuthorization_ = value; - } - onChanged(); - } else { - binaryAuthorizationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for Binary Authorization.
-     * 
- * - * .google.container.v1.BinaryAuthorization binary_authorization = 24; - */ - public Builder clearBinaryAuthorization() { - if (binaryAuthorizationBuilder_ == null) { - binaryAuthorization_ = null; - onChanged(); - } else { - binaryAuthorization_ = null; - binaryAuthorizationBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for Binary Authorization.
-     * 
- * - * .google.container.v1.BinaryAuthorization binary_authorization = 24; - */ - public com.google.container.v1.BinaryAuthorization.Builder getBinaryAuthorizationBuilder() { - - 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 autoscalingBuilder_ != null || autoscaling_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - autoscalingBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - autoscalingBuilder_.setMessage(builderForValue.build()); - } - - 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 (autoscaling_ != null) { - autoscaling_ = - com.google.container.v1.ClusterAutoscaling.newBuilder(autoscaling_).mergeFrom(value).buildPartial(); - } else { - autoscaling_ = value; - } - onChanged(); - } else { - autoscalingBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling autoscaling = 26; - */ - public Builder clearAutoscaling() { - if (autoscalingBuilder_ == null) { - autoscaling_ = null; - onChanged(); - } else { - autoscaling_ = null; - autoscalingBuilder_ = null; - } - - return this; - } - /** - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling autoscaling = 26; - */ - public com.google.container.v1.ClusterAutoscaling.Builder getAutoscalingBuilder() { - - 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 networkConfigBuilder_ != null || networkConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - networkConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for cluster networking.
-     * 
- * - * .google.container.v1.NetworkConfig network_config = 27; - */ - public Builder setNetworkConfig( - com.google.container.v1.NetworkConfig.Builder builderForValue) { - if (networkConfigBuilder_ == null) { - networkConfig_ = builderForValue.build(); - onChanged(); - } else { - networkConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for cluster networking.
-     * 
- * - * .google.container.v1.NetworkConfig network_config = 27; - */ - public Builder mergeNetworkConfig(com.google.container.v1.NetworkConfig value) { - if (networkConfigBuilder_ == null) { - if (networkConfig_ != null) { - networkConfig_ = - com.google.container.v1.NetworkConfig.newBuilder(networkConfig_).mergeFrom(value).buildPartial(); - } else { - networkConfig_ = value; - } - onChanged(); - } else { - networkConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for cluster networking.
-     * 
- * - * .google.container.v1.NetworkConfig network_config = 27; - */ - public Builder clearNetworkConfig() { - if (networkConfigBuilder_ == null) { - networkConfig_ = null; - onChanged(); - } else { - networkConfig_ = null; - networkConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for cluster networking.
-     * 
- * - * .google.container.v1.NetworkConfig network_config = 27; - */ - public com.google.container.v1.NetworkConfig.Builder getNetworkConfigBuilder() { - - onChanged(); - return getNetworkConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for cluster networking.
-     * 
- * - * .google.container.v1.NetworkConfig network_config = 27; - */ - public com.google.container.v1.NetworkConfigOrBuilder getNetworkConfigOrBuilder() { - if (networkConfigBuilder_ != null) { - return networkConfigBuilder_.getMessageOrBuilder(); - } else { - return networkConfig_ == null ? - com.google.container.v1.NetworkConfig.getDefaultInstance() : networkConfig_; - } - } - /** - *
-     * Configuration for cluster networking.
-     * 
- * - * .google.container.v1.NetworkConfig network_config = 27; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkConfig, com.google.container.v1.NetworkConfig.Builder, com.google.container.v1.NetworkConfigOrBuilder> - getNetworkConfigFieldBuilder() { - if (networkConfigBuilder_ == null) { - networkConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkConfig, com.google.container.v1.NetworkConfig.Builder, com.google.container.v1.NetworkConfigOrBuilder>( - getNetworkConfig(), - getParentForChildren(), - isClean()); - networkConfig_ = null; - } - return networkConfigBuilder_; - } - - private 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 defaultMaxPodsConstraintBuilder_ != null || defaultMaxPodsConstraint_ != null; - } - /** - *
-     * The default constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool of this cluster. Only honored
-     * if cluster created with IP Alias support.
-     * 
- * - * .google.container.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; - onChanged(); - } else { - defaultMaxPodsConstraintBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The default constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool of this cluster. Only honored
-     * if cluster created with IP Alias support.
-     * 
- * - * .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; - */ - public Builder setDefaultMaxPodsConstraint( - com.google.container.v1.MaxPodsConstraint.Builder builderForValue) { - if (defaultMaxPodsConstraintBuilder_ == null) { - defaultMaxPodsConstraint_ = builderForValue.build(); - onChanged(); - } else { - defaultMaxPodsConstraintBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The default constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool of this cluster. Only honored
-     * if cluster created with IP Alias support.
-     * 
- * - * .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; - */ - public Builder mergeDefaultMaxPodsConstraint(com.google.container.v1.MaxPodsConstraint value) { - if (defaultMaxPodsConstraintBuilder_ == null) { - if (defaultMaxPodsConstraint_ != null) { - defaultMaxPodsConstraint_ = - com.google.container.v1.MaxPodsConstraint.newBuilder(defaultMaxPodsConstraint_).mergeFrom(value).buildPartial(); - } else { - defaultMaxPodsConstraint_ = value; - } - onChanged(); - } else { - defaultMaxPodsConstraintBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The default constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool of this cluster. Only honored
-     * if cluster created with IP Alias support.
-     * 
- * - * .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; - */ - public Builder clearDefaultMaxPodsConstraint() { - if (defaultMaxPodsConstraintBuilder_ == null) { - defaultMaxPodsConstraint_ = null; - onChanged(); - } else { - defaultMaxPodsConstraint_ = null; - defaultMaxPodsConstraintBuilder_ = null; - } - - return this; - } - /** - *
-     * The default constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool of this cluster. Only honored
-     * if cluster created with IP Alias support.
-     * 
- * - * .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; - */ - public com.google.container.v1.MaxPodsConstraint.Builder getDefaultMaxPodsConstraintBuilder() { - - onChanged(); - return getDefaultMaxPodsConstraintFieldBuilder().getBuilder(); - } - /** - *
-     * The default constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool of this cluster. Only honored
-     * if cluster created with IP Alias support.
-     * 
- * - * .google.container.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 resourceUsageExportConfigBuilder_ != null || resourceUsageExportConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - resourceUsageExportConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - resourceUsageExportConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (resourceUsageExportConfig_ != null) { - resourceUsageExportConfig_ = - com.google.container.v1.ResourceUsageExportConfig.newBuilder(resourceUsageExportConfig_).mergeFrom(value).buildPartial(); - } else { - resourceUsageExportConfig_ = value; - } - onChanged(); - } else { - resourceUsageExportConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for exporting resource usages. Resource usage export is
-     * disabled when this config is unspecified.
-     * 
- * - * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - */ - public Builder clearResourceUsageExportConfig() { - if (resourceUsageExportConfigBuilder_ == null) { - resourceUsageExportConfig_ = null; - onChanged(); - } else { - resourceUsageExportConfig_ = null; - resourceUsageExportConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for exporting resource usages. Resource usage export is
-     * disabled when this config is unspecified.
-     * 
- * - * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - */ - public com.google.container.v1.ResourceUsageExportConfig.Builder getResourceUsageExportConfigBuilder() { - - 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 authenticatorGroupsConfigBuilder_ != null || authenticatorGroupsConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - authenticatorGroupsConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - authenticatorGroupsConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (authenticatorGroupsConfig_ != null) { - authenticatorGroupsConfig_ = - com.google.container.v1.AuthenticatorGroupsConfig.newBuilder(authenticatorGroupsConfig_).mergeFrom(value).buildPartial(); - } else { - authenticatorGroupsConfig_ = value; - } - onChanged(); - } else { - authenticatorGroupsConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration controlling RBAC group membership information.
-     * 
- * - * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - */ - public Builder clearAuthenticatorGroupsConfig() { - if (authenticatorGroupsConfigBuilder_ == null) { - authenticatorGroupsConfig_ = null; - onChanged(); - } else { - authenticatorGroupsConfig_ = null; - authenticatorGroupsConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration controlling RBAC group membership information.
-     * 
- * - * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - */ - public com.google.container.v1.AuthenticatorGroupsConfig.Builder getAuthenticatorGroupsConfigBuilder() { - - 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 privateClusterConfigBuilder_ != null || privateClusterConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - privateClusterConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - privateClusterConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (privateClusterConfig_ != null) { - privateClusterConfig_ = - com.google.container.v1.PrivateClusterConfig.newBuilder(privateClusterConfig_).mergeFrom(value).buildPartial(); - } else { - privateClusterConfig_ = value; - } - onChanged(); - } else { - privateClusterConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for private cluster.
-     * 
- * - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - */ - public Builder clearPrivateClusterConfig() { - if (privateClusterConfigBuilder_ == null) { - privateClusterConfig_ = null; - onChanged(); - } else { - privateClusterConfig_ = null; - privateClusterConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for private cluster.
-     * 
- * - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - */ - public com.google.container.v1.PrivateClusterConfig.Builder getPrivateClusterConfigBuilder() { - - 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 databaseEncryptionBuilder_ != null || databaseEncryption_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - databaseEncryptionBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - databaseEncryptionBuilder_.setMessage(builderForValue.build()); - } - - 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 (databaseEncryption_ != null) { - databaseEncryption_ = - com.google.container.v1.DatabaseEncryption.newBuilder(databaseEncryption_).mergeFrom(value).buildPartial(); - } else { - databaseEncryption_ = value; - } - onChanged(); - } else { - databaseEncryptionBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption database_encryption = 38; - */ - public Builder clearDatabaseEncryption() { - if (databaseEncryptionBuilder_ == null) { - databaseEncryption_ = null; - onChanged(); - } else { - databaseEncryption_ = null; - databaseEncryptionBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption database_encryption = 38; - */ - public com.google.container.v1.DatabaseEncryption.Builder getDatabaseEncryptionBuilder() { - - 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 verticalPodAutoscalingBuilder_ != null || verticalPodAutoscaling_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - verticalPodAutoscalingBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - verticalPodAutoscalingBuilder_.setMessage(builderForValue.build()); - } - - 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 (verticalPodAutoscaling_ != null) { - verticalPodAutoscaling_ = - com.google.container.v1.VerticalPodAutoscaling.newBuilder(verticalPodAutoscaling_).mergeFrom(value).buildPartial(); - } else { - verticalPodAutoscaling_ = value; - } - onChanged(); - } else { - verticalPodAutoscalingBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - */ - public Builder clearVerticalPodAutoscaling() { - if (verticalPodAutoscalingBuilder_ == null) { - verticalPodAutoscaling_ = null; - onChanged(); - } else { - verticalPodAutoscaling_ = null; - verticalPodAutoscalingBuilder_ = null; - } - - return this; - } - /** - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - */ - public com.google.container.v1.VerticalPodAutoscaling.Builder getVerticalPodAutoscalingBuilder() { - - 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 shieldedNodesBuilder_ != null || shieldedNodes_ != null; - } - /** - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - * @return The shieldedNodes. - */ - public com.google.container.v1.ShieldedNodes getShieldedNodes() { - if (shieldedNodesBuilder_ == null) { - return shieldedNodes_ == null ? com.google.container.v1.ShieldedNodes.getDefaultInstance() : shieldedNodes_; - } else { - return shieldedNodesBuilder_.getMessage(); - } - } - /** - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - */ - public Builder setShieldedNodes(com.google.container.v1.ShieldedNodes value) { - if (shieldedNodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - shieldedNodes_ = value; - onChanged(); - } else { - shieldedNodesBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - */ - public Builder setShieldedNodes( - com.google.container.v1.ShieldedNodes.Builder builderForValue) { - if (shieldedNodesBuilder_ == null) { - shieldedNodes_ = builderForValue.build(); - onChanged(); - } else { - shieldedNodesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - */ - public Builder mergeShieldedNodes(com.google.container.v1.ShieldedNodes value) { - if (shieldedNodesBuilder_ == null) { - if (shieldedNodes_ != null) { - shieldedNodes_ = - com.google.container.v1.ShieldedNodes.newBuilder(shieldedNodes_).mergeFrom(value).buildPartial(); - } else { - shieldedNodes_ = value; - } - onChanged(); - } else { - shieldedNodesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - */ - public Builder clearShieldedNodes() { - if (shieldedNodesBuilder_ == null) { - shieldedNodes_ = null; - onChanged(); - } else { - shieldedNodes_ = null; - shieldedNodesBuilder_ = null; - } - - return this; - } - /** - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - */ - public com.google.container.v1.ShieldedNodes.Builder getShieldedNodesBuilder() { - - onChanged(); - return getShieldedNodesFieldBuilder().getBuilder(); - } - /** - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - */ - public com.google.container.v1.ShieldedNodesOrBuilder getShieldedNodesOrBuilder() { - if (shieldedNodesBuilder_ != null) { - return shieldedNodesBuilder_.getMessageOrBuilder(); - } else { - return shieldedNodes_ == null ? - com.google.container.v1.ShieldedNodes.getDefaultInstance() : shieldedNodes_; - } - } - /** - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedNodes, com.google.container.v1.ShieldedNodes.Builder, com.google.container.v1.ShieldedNodesOrBuilder> - getShieldedNodesFieldBuilder() { - if (shieldedNodesBuilder_ == null) { - shieldedNodesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedNodes, com.google.container.v1.ShieldedNodes.Builder, com.google.container.v1.ShieldedNodesOrBuilder>( - getShieldedNodes(), - getParentForChildren(), - isClean()); - shieldedNodes_ = null; - } - return shieldedNodesBuilder_; - } - - private com.google.container.v1.ReleaseChannel releaseChannel_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ReleaseChannel, com.google.container.v1.ReleaseChannel.Builder, com.google.container.v1.ReleaseChannelOrBuilder> releaseChannelBuilder_; - /** - *
-     * Release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - * @return Whether the releaseChannel field is set. - */ - public boolean hasReleaseChannel() { - return releaseChannelBuilder_ != null || releaseChannel_ != null; - } - /** - *
-     * Release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - * @return The releaseChannel. - */ - public com.google.container.v1.ReleaseChannel getReleaseChannel() { - if (releaseChannelBuilder_ == null) { - return releaseChannel_ == null ? com.google.container.v1.ReleaseChannel.getDefaultInstance() : releaseChannel_; - } else { - return releaseChannelBuilder_.getMessage(); - } - } - /** - *
-     * Release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - */ - public Builder setReleaseChannel(com.google.container.v1.ReleaseChannel value) { - if (releaseChannelBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - releaseChannel_ = value; - onChanged(); - } else { - releaseChannelBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - */ - public Builder setReleaseChannel( - com.google.container.v1.ReleaseChannel.Builder builderForValue) { - if (releaseChannelBuilder_ == null) { - releaseChannel_ = builderForValue.build(); - onChanged(); - } else { - releaseChannelBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - */ - public Builder mergeReleaseChannel(com.google.container.v1.ReleaseChannel value) { - if (releaseChannelBuilder_ == null) { - if (releaseChannel_ != null) { - releaseChannel_ = - com.google.container.v1.ReleaseChannel.newBuilder(releaseChannel_).mergeFrom(value).buildPartial(); - } else { - releaseChannel_ = value; - } - onChanged(); - } else { - releaseChannelBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - */ - public Builder clearReleaseChannel() { - if (releaseChannelBuilder_ == null) { - releaseChannel_ = null; - onChanged(); - } else { - releaseChannel_ = null; - releaseChannelBuilder_ = null; - } - - return this; - } - /** - *
-     * Release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - */ - public com.google.container.v1.ReleaseChannel.Builder getReleaseChannelBuilder() { - - onChanged(); - return getReleaseChannelFieldBuilder().getBuilder(); - } - /** - *
-     * Release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - */ - public com.google.container.v1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder() { - if (releaseChannelBuilder_ != null) { - return releaseChannelBuilder_.getMessageOrBuilder(); - } else { - return releaseChannel_ == null ? - com.google.container.v1.ReleaseChannel.getDefaultInstance() : releaseChannel_; - } - } - /** - *
-     * Release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ReleaseChannel, com.google.container.v1.ReleaseChannel.Builder, com.google.container.v1.ReleaseChannelOrBuilder> - getReleaseChannelFieldBuilder() { - if (releaseChannelBuilder_ == null) { - releaseChannelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ReleaseChannel, com.google.container.v1.ReleaseChannel.Builder, com.google.container.v1.ReleaseChannelOrBuilder>( - getReleaseChannel(), - getParentForChildren(), - isClean()); - releaseChannel_ = null; - } - return releaseChannelBuilder_; - } - - private com.google.container.v1.WorkloadIdentityConfig workloadIdentityConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadIdentityConfig, com.google.container.v1.WorkloadIdentityConfig.Builder, com.google.container.v1.WorkloadIdentityConfigOrBuilder> workloadIdentityConfigBuilder_; - /** - *
-     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-     * policies.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - * @return Whether the workloadIdentityConfig field is set. - */ - public boolean hasWorkloadIdentityConfig() { - return workloadIdentityConfigBuilder_ != null || workloadIdentityConfig_ != null; - } - /** - *
-     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-     * policies.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - * @return The workloadIdentityConfig. - */ - public com.google.container.v1.WorkloadIdentityConfig getWorkloadIdentityConfig() { - if (workloadIdentityConfigBuilder_ == null) { - return workloadIdentityConfig_ == null ? com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() : workloadIdentityConfig_; - } else { - return workloadIdentityConfigBuilder_.getMessage(); - } - } - /** - *
-     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-     * policies.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - */ - public Builder setWorkloadIdentityConfig(com.google.container.v1.WorkloadIdentityConfig value) { - if (workloadIdentityConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workloadIdentityConfig_ = value; - onChanged(); - } else { - workloadIdentityConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-     * policies.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - */ - public Builder setWorkloadIdentityConfig( - com.google.container.v1.WorkloadIdentityConfig.Builder builderForValue) { - if (workloadIdentityConfigBuilder_ == null) { - workloadIdentityConfig_ = builderForValue.build(); - onChanged(); - } else { - workloadIdentityConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-     * policies.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - */ - public Builder mergeWorkloadIdentityConfig(com.google.container.v1.WorkloadIdentityConfig value) { - if (workloadIdentityConfigBuilder_ == null) { - if (workloadIdentityConfig_ != null) { - workloadIdentityConfig_ = - com.google.container.v1.WorkloadIdentityConfig.newBuilder(workloadIdentityConfig_).mergeFrom(value).buildPartial(); - } else { - workloadIdentityConfig_ = value; - } - onChanged(); - } else { - workloadIdentityConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-     * policies.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - */ - public Builder clearWorkloadIdentityConfig() { - if (workloadIdentityConfigBuilder_ == null) { - workloadIdentityConfig_ = null; - onChanged(); - } else { - workloadIdentityConfig_ = null; - workloadIdentityConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-     * policies.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - */ - public com.google.container.v1.WorkloadIdentityConfig.Builder getWorkloadIdentityConfigBuilder() { - - onChanged(); - return getWorkloadIdentityConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-     * policies.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - */ - public com.google.container.v1.WorkloadIdentityConfigOrBuilder getWorkloadIdentityConfigOrBuilder() { - if (workloadIdentityConfigBuilder_ != null) { - return workloadIdentityConfigBuilder_.getMessageOrBuilder(); - } else { - return workloadIdentityConfig_ == null ? - com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() : workloadIdentityConfig_; - } - } - /** - *
-     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-     * policies.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadIdentityConfig, com.google.container.v1.WorkloadIdentityConfig.Builder, com.google.container.v1.WorkloadIdentityConfigOrBuilder> - getWorkloadIdentityConfigFieldBuilder() { - if (workloadIdentityConfigBuilder_ == null) { - workloadIdentityConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadIdentityConfig, com.google.container.v1.WorkloadIdentityConfig.Builder, com.google.container.v1.WorkloadIdentityConfigOrBuilder>( - getWorkloadIdentityConfig(), - getParentForChildren(), - isClean()); - workloadIdentityConfig_ = null; - } - return workloadIdentityConfigBuilder_; - } - - private 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 meshCertificatesBuilder_ != null || meshCertificates_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - meshCertificatesBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - meshCertificatesBuilder_.setMessage(builderForValue.build()); - } - - 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 (meshCertificates_ != null) { - meshCertificates_ = - com.google.container.v1.MeshCertificates.newBuilder(meshCertificates_).mergeFrom(value).buildPartial(); - } else { - meshCertificates_ = value; - } - onChanged(); - } else { - meshCertificatesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1.MeshCertificates mesh_certificates = 67; - */ - public Builder clearMeshCertificates() { - if (meshCertificatesBuilder_ == null) { - meshCertificates_ = null; - onChanged(); - } else { - meshCertificates_ = null; - meshCertificatesBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1.MeshCertificates mesh_certificates = 67; - */ - public com.google.container.v1.MeshCertificates.Builder getMeshCertificatesBuilder() { - - 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 costManagementConfigBuilder_ != null || costManagementConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - costManagementConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - costManagementConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (costManagementConfig_ != null) { - costManagementConfig_ = - com.google.container.v1.CostManagementConfig.newBuilder(costManagementConfig_).mergeFrom(value).buildPartial(); - } else { - costManagementConfig_ = value; - } - onChanged(); - } else { - costManagementConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1.CostManagementConfig cost_management_config = 45; - */ - public Builder clearCostManagementConfig() { - if (costManagementConfigBuilder_ == null) { - costManagementConfig_ = null; - onChanged(); - } else { - costManagementConfig_ = null; - costManagementConfigBuilder_ = null; - } - - 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() { - - 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 notificationConfigBuilder_ != null || notificationConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - notificationConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - notificationConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (notificationConfig_ != null) { - notificationConfig_ = - com.google.container.v1.NotificationConfig.newBuilder(notificationConfig_).mergeFrom(value).buildPartial(); - } else { - notificationConfig_ = value; - } - onChanged(); - } else { - notificationConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Notification configuration of the cluster.
-     * 
- * - * .google.container.v1.NotificationConfig notification_config = 49; - */ - public Builder clearNotificationConfig() { - if (notificationConfigBuilder_ == null) { - notificationConfig_ = null; - onChanged(); - } else { - notificationConfig_ = null; - notificationConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Notification configuration of the cluster.
-     * 
- * - * .google.container.v1.NotificationConfig notification_config = 49; - */ - public com.google.container.v1.NotificationConfig.Builder getNotificationConfigBuilder() { - - 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 confidentialNodesBuilder_ != null || confidentialNodes_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - confidentialNodesBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - confidentialNodesBuilder_.setMessage(builderForValue.build()); - } - - 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 (confidentialNodes_ != null) { - confidentialNodes_ = - com.google.container.v1.ConfidentialNodes.newBuilder(confidentialNodes_).mergeFrom(value).buildPartial(); - } else { - confidentialNodes_ = value; - } - onChanged(); - } else { - confidentialNodesBuilder_.mergeFrom(value); - } - - 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() { - if (confidentialNodesBuilder_ == null) { - confidentialNodes_ = null; - onChanged(); - } else { - confidentialNodes_ = null; - confidentialNodesBuilder_ = null; - } - - 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() { - - 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 identityServiceConfigBuilder_ != null || identityServiceConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - identityServiceConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - identityServiceConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (identityServiceConfig_ != null) { - identityServiceConfig_ = - com.google.container.v1.IdentityServiceConfig.newBuilder(identityServiceConfig_).mergeFrom(value).buildPartial(); - } else { - identityServiceConfig_ = value; - } - onChanged(); - } else { - identityServiceConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for Identity Service component.
-     * 
- * - * .google.container.v1.IdentityServiceConfig identity_service_config = 54; - */ - public Builder clearIdentityServiceConfig() { - if (identityServiceConfigBuilder_ == null) { - identityServiceConfig_ = null; - onChanged(); - } else { - identityServiceConfig_ = null; - identityServiceConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for Identity Service component.
-     * 
- * - * .google.container.v1.IdentityServiceConfig identity_service_config = 54; - */ - public com.google.container.v1.IdentityServiceConfig.Builder getIdentityServiceConfigBuilder() { - - 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; - onChanged(); - return this; - } - /** - *
-     * [Output only] Server-defined URL for the resource.
-     * 
- * - * string self_link = 100; - * @return This builder for chaining. - */ - public Builder clearSelfLink() { - - selfLink_ = getDefaultInstance().getSelfLink(); - onChanged(); - return this; - } - /** - *
-     * [Output only] Server-defined URL for the resource.
-     * 
- * - * string self_link = 100; - * @param value The bytes for selfLink to set. - * @return This builder for chaining. - */ - public Builder setSelfLinkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - selfLink_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field is deprecated, use location instead.
-     * 
- * - * string zone = 101 [deprecated = true]; - * @deprecated google.container.v1.Cluster.zone is deprecated. - * See google/container/v1/cluster_service.proto;l=1643 - * @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=1643 - * @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=1643 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field is deprecated, use location instead.
-     * 
- * - * string zone = 101 [deprecated = true]; - * @deprecated google.container.v1.Cluster.zone is deprecated. - * See google/container/v1/cluster_service.proto;l=1643 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field is deprecated, use location instead.
-     * 
- * - * string zone = 101 [deprecated = true]; - * @deprecated google.container.v1.Cluster.zone is deprecated. - * See google/container/v1/cluster_service.proto;l=1643 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object endpoint_ = ""; - /** - *
-     * [Output only] The IP address of this cluster's master endpoint.
-     * The endpoint can be accessed from the internet at
-     * `https://username:password@endpoint/`.
-     * See the `masterAuth` property of this resource for username and
-     * password information.
-     * 
- * - * string endpoint = 102; - * @return The endpoint. - */ - public java.lang.String getEndpoint() { - java.lang.Object ref = endpoint_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - endpoint_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * [Output only] The IP address of this cluster's master endpoint.
-     * The endpoint can be accessed from the internet at
-     * `https://username:password@endpoint/`.
-     * See the `masterAuth` property of this resource for username and
-     * password information.
-     * 
- * - * string endpoint = 102; - * @return The bytes for endpoint. - */ - public com.google.protobuf.ByteString - getEndpointBytes() { - java.lang.Object ref = endpoint_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - endpoint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * [Output only] The IP address of this cluster's master endpoint.
-     * The endpoint can be accessed from the internet at
-     * `https://username:password@endpoint/`.
-     * See the `masterAuth` property of this resource for username and
-     * password information.
-     * 
- * - * string endpoint = 102; - * @param value The endpoint to set. - * @return This builder for chaining. - */ - public Builder setEndpoint( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - endpoint_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] The IP address of this cluster's master endpoint.
-     * The endpoint can be accessed from the internet at
-     * `https://username:password@endpoint/`.
-     * See the `masterAuth` property of this resource for username and
-     * password information.
-     * 
- * - * string endpoint = 102; - * @return This builder for chaining. - */ - public Builder clearEndpoint() { - - endpoint_ = getDefaultInstance().getEndpoint(); - onChanged(); - return this; - } - /** - *
-     * [Output only] The IP address of this cluster's master endpoint.
-     * The endpoint can be accessed from the internet at
-     * `https://username:password@endpoint/`.
-     * See the `masterAuth` property of this resource for username and
-     * password information.
-     * 
- * - * string endpoint = 102; - * @param value The bytes for endpoint to set. - * @return This builder for chaining. - */ - public Builder setEndpointBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - endpoint_ = value; - onChanged(); - return this; - } - - private java.lang.Object initialClusterVersion_ = ""; - /** - *
-     * The initial Kubernetes version for this cluster.  Valid versions are those
-     * found in validMasterVersions returned by getServerConfig.  The version can
-     * be upgraded over time; such upgrades are reflected in
-     * currentMasterVersion and currentNodeVersion.
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "","-": picks the default Kubernetes version
-     * 
- * - * string initial_cluster_version = 103; - * @return The initialClusterVersion. - */ - public java.lang.String getInitialClusterVersion() { - java.lang.Object ref = initialClusterVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - initialClusterVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The initial Kubernetes version for this cluster.  Valid versions are those
-     * found in validMasterVersions returned by getServerConfig.  The version can
-     * be upgraded over time; such upgrades are reflected in
-     * currentMasterVersion and currentNodeVersion.
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "","-": picks the default Kubernetes version
-     * 
- * - * string initial_cluster_version = 103; - * @return The bytes for initialClusterVersion. - */ - public com.google.protobuf.ByteString - getInitialClusterVersionBytes() { - java.lang.Object ref = initialClusterVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - initialClusterVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The initial Kubernetes version for this cluster.  Valid versions are those
-     * found in validMasterVersions returned by getServerConfig.  The version can
-     * be upgraded over time; such upgrades are reflected in
-     * currentMasterVersion and currentNodeVersion.
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "","-": picks the default Kubernetes version
-     * 
- * - * string initial_cluster_version = 103; - * @param value The initialClusterVersion to set. - * @return This builder for chaining. - */ - public Builder setInitialClusterVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - initialClusterVersion_ = value; - onChanged(); - return this; - } - /** - *
-     * The initial Kubernetes version for this cluster.  Valid versions are those
-     * found in validMasterVersions returned by getServerConfig.  The version can
-     * be upgraded over time; such upgrades are reflected in
-     * currentMasterVersion and currentNodeVersion.
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "","-": picks the default Kubernetes version
-     * 
- * - * string initial_cluster_version = 103; - * @return This builder for chaining. - */ - public Builder clearInitialClusterVersion() { - - initialClusterVersion_ = getDefaultInstance().getInitialClusterVersion(); - onChanged(); - return this; - } - /** - *
-     * The initial Kubernetes version for this cluster.  Valid versions are those
-     * found in validMasterVersions returned by getServerConfig.  The version can
-     * be upgraded over time; such upgrades are reflected in
-     * currentMasterVersion and currentNodeVersion.
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "","-": picks the default Kubernetes version
-     * 
- * - * string initial_cluster_version = 103; - * @param value The bytes for initialClusterVersion to set. - * @return This builder for chaining. - */ - public Builder setInitialClusterVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - initialClusterVersion_ = value; - onChanged(); - return this; - } - - private java.lang.Object currentMasterVersion_ = ""; - /** - *
-     * [Output only] The current software version of the master endpoint.
-     * 
- * - * string current_master_version = 104; - * @return The currentMasterVersion. - */ - public java.lang.String getCurrentMasterVersion() { - java.lang.Object ref = currentMasterVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currentMasterVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * [Output only] The current software version of the master endpoint.
-     * 
- * - * string current_master_version = 104; - * @return The bytes for currentMasterVersion. - */ - public com.google.protobuf.ByteString - getCurrentMasterVersionBytes() { - java.lang.Object ref = currentMasterVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - currentMasterVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * [Output only] The current software version of the master endpoint.
-     * 
- * - * string current_master_version = 104; - * @param value The currentMasterVersion to set. - * @return This builder for chaining. - */ - public Builder setCurrentMasterVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - currentMasterVersion_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] The current software version of the master endpoint.
-     * 
- * - * string current_master_version = 104; - * @return This builder for chaining. - */ - public Builder clearCurrentMasterVersion() { - - currentMasterVersion_ = getDefaultInstance().getCurrentMasterVersion(); - onChanged(); - return this; - } - /** - *
-     * [Output only] The current software version of the master endpoint.
-     * 
- * - * string current_master_version = 104; - * @param value The bytes for currentMasterVersion to set. - * @return This builder for chaining. - */ - public Builder setCurrentMasterVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - currentMasterVersion_ = value; - onChanged(); - return this; - } - - private java.lang.Object currentNodeVersion_ = ""; - /** - *
-     * [Output only] Deprecated, use
-     * [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=1676 - * @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=1676 - * @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=1676 - * @param value The currentNodeVersion to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setCurrentNodeVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - currentNodeVersion_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] Deprecated, use
-     * [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=1676 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearCurrentNodeVersion() { - - currentNodeVersion_ = getDefaultInstance().getCurrentNodeVersion(); - 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=1676 - * @param value The bytes for currentNodeVersion to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setCurrentNodeVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - currentNodeVersion_ = value; - onChanged(); - return this; - } - - private java.lang.Object createTime_ = ""; - /** - *
-     * [Output only] The time the cluster was created, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string create_time = 106; - * @return The createTime. - */ - public java.lang.String getCreateTime() { - java.lang.Object ref = createTime_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - createTime_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * [Output only] The time the cluster was created, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string create_time = 106; - * @return The bytes for createTime. - */ - public com.google.protobuf.ByteString - getCreateTimeBytes() { - java.lang.Object ref = createTime_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - createTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * [Output only] The time the cluster was created, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string create_time = 106; - * @param value The createTime to set. - * @return This builder for chaining. - */ - public Builder setCreateTime( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - createTime_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] The time the cluster was created, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string create_time = 106; - * @return This builder for chaining. - */ - public Builder clearCreateTime() { - - createTime_ = getDefaultInstance().getCreateTime(); - onChanged(); - return this; - } - /** - *
-     * [Output only] The time the cluster was created, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string create_time = 106; - * @param value The bytes for createTime to set. - * @return This builder for chaining. - */ - public Builder setCreateTimeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - createTime_ = value; - onChanged(); - return this; - } - - private int status_ = 0; - /** - *
-     * [Output only] The current status of this cluster.
-     * 
- * - * .google.container.v1.Cluster.Status status = 107; - * @return The enum numeric value on the wire for status. - */ - @java.lang.Override public int getStatusValue() { - return status_; - } - /** - *
-     * [Output only] The current status of this cluster.
-     * 
- * - * .google.container.v1.Cluster.Status status = 107; - * @param value The enum numeric value on the wire for status to set. - * @return This builder for chaining. - */ - public Builder setStatusValue(int value) { - - status_ = value; - onChanged(); - return this; - } - /** - *
-     * [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() { - @SuppressWarnings("deprecation") - com.google.container.v1.Cluster.Status result = com.google.container.v1.Cluster.Status.valueOf(status_); - return result == null ? com.google.container.v1.Cluster.Status.UNRECOGNIZED : result; - } - /** - *
-     * [Output only] The current status of this cluster.
-     * 
- * - * .google.container.v1.Cluster.Status status = 107; - * @param value The status to set. - * @return This builder for chaining. - */ - public Builder setStatus(com.google.container.v1.Cluster.Status value) { - if (value == null) { - throw new NullPointerException(); - } - - status_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * [Output only] The current status of this cluster.
-     * 
- * - * .google.container.v1.Cluster.Status status = 107; - * @return This builder for chaining. - */ - public Builder clearStatus() { - - status_ = 0; - onChanged(); - return this; - } - - private java.lang.Object statusMessage_ = ""; - /** - *
-     * [Output only] Deprecated. Use conditions instead.
-     * Additional information about the current status of this
-     * cluster, if available.
-     * 
- * - * string status_message = 108 [deprecated = true]; - * @deprecated google.container.v1.Cluster.status_message is deprecated. - * See google/container/v1/cluster_service.proto;l=1688 - * @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=1688 - * @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=1688 - * @param value The statusMessage to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setStatusMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - statusMessage_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] Deprecated. Use conditions instead.
-     * Additional information about the current status of this
-     * cluster, if available.
-     * 
- * - * string status_message = 108 [deprecated = true]; - * @deprecated google.container.v1.Cluster.status_message is deprecated. - * See google/container/v1/cluster_service.proto;l=1688 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearStatusMessage() { - - statusMessage_ = getDefaultInstance().getStatusMessage(); - onChanged(); - return this; - } - /** - *
-     * [Output only] Deprecated. Use conditions instead.
-     * Additional information about the current status of this
-     * cluster, if available.
-     * 
- * - * string status_message = 108 [deprecated = true]; - * @deprecated google.container.v1.Cluster.status_message is deprecated. - * See google/container/v1/cluster_service.proto;l=1688 - * @param value The bytes for statusMessage to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setStatusMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - statusMessage_ = value; - onChanged(); - return this; - } - - private int nodeIpv4CidrSize_ ; - /** - *
-     * [Output only] The size of the address space on each node for hosting
-     * containers. This is provisioned from within the `container_ipv4_cidr`
-     * range. This field will only be set when cluster is in route-based network
-     * mode.
-     * 
- * - * int32 node_ipv4_cidr_size = 109; - * @return The nodeIpv4CidrSize. - */ - @java.lang.Override - public int getNodeIpv4CidrSize() { - return nodeIpv4CidrSize_; - } - /** - *
-     * [Output only] The size of the address space on each node for hosting
-     * containers. This is provisioned from within the `container_ipv4_cidr`
-     * range. This field will only be set when cluster is in route-based network
-     * mode.
-     * 
- * - * int32 node_ipv4_cidr_size = 109; - * @param value The nodeIpv4CidrSize to set. - * @return This builder for chaining. - */ - public Builder setNodeIpv4CidrSize(int value) { - - nodeIpv4CidrSize_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] The size of the address space on each node for hosting
-     * containers. This is provisioned from within the `container_ipv4_cidr`
-     * range. This field will only be set when cluster is in route-based network
-     * mode.
-     * 
- * - * int32 node_ipv4_cidr_size = 109; - * @return This builder for chaining. - */ - public Builder clearNodeIpv4CidrSize() { - - nodeIpv4CidrSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object servicesIpv4Cidr_ = ""; - /** - *
-     * [Output only] The IP address range of the Kubernetes services in
-     * this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`). Service addresses are
-     * typically put in the last `/16` from the container CIDR.
-     * 
- * - * string services_ipv4_cidr = 110; - * @return The servicesIpv4Cidr. - */ - public java.lang.String getServicesIpv4Cidr() { - java.lang.Object ref = servicesIpv4Cidr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - servicesIpv4Cidr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * [Output only] The IP address range of the Kubernetes services in
-     * this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`). Service addresses are
-     * typically put in the last `/16` from the container CIDR.
-     * 
- * - * string services_ipv4_cidr = 110; - * @return The bytes for servicesIpv4Cidr. - */ - public com.google.protobuf.ByteString - getServicesIpv4CidrBytes() { - java.lang.Object ref = servicesIpv4Cidr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - servicesIpv4Cidr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * [Output only] The IP address range of the Kubernetes services in
-     * this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`). Service addresses are
-     * typically put in the last `/16` from the container CIDR.
-     * 
- * - * string services_ipv4_cidr = 110; - * @param value The servicesIpv4Cidr to set. - * @return This builder for chaining. - */ - public Builder setServicesIpv4Cidr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - servicesIpv4Cidr_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] The IP address range of the Kubernetes services in
-     * this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`). Service addresses are
-     * typically put in the last `/16` from the container CIDR.
-     * 
- * - * string services_ipv4_cidr = 110; - * @return This builder for chaining. - */ - public Builder clearServicesIpv4Cidr() { - - servicesIpv4Cidr_ = getDefaultInstance().getServicesIpv4Cidr(); - onChanged(); - return this; - } - /** - *
-     * [Output only] The IP address range of the Kubernetes services in
-     * this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`). Service addresses are
-     * typically put in the last `/16` from the container CIDR.
-     * 
- * - * string services_ipv4_cidr = 110; - * @param value The bytes for servicesIpv4Cidr to set. - * @return This builder for chaining. - */ - public Builder setServicesIpv4CidrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - servicesIpv4Cidr_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureInstanceGroupUrlsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(instanceGroupUrls_); - bitField0_ |= 0x00000008; - } - } - /** - *
-     * Deprecated. Use node_pools.instance_group_urls.
-     * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. - * See google/container/v1/cluster_service.proto;l=1704 - * @return A list containing the instanceGroupUrls. - */ - @java.lang.Deprecated public com.google.protobuf.ProtocolStringList - getInstanceGroupUrlsList() { - return instanceGroupUrls_.getUnmodifiableView(); - } - /** - *
-     * Deprecated. Use node_pools.instance_group_urls.
-     * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. - * See google/container/v1/cluster_service.proto;l=1704 - * @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=1704 - * @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=1704 - * @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=1704 - * @param index The index to set the value at. - * @param value The instanceGroupUrls to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setInstanceGroupUrls( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureInstanceGroupUrlsIsMutable(); - instanceGroupUrls_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * Deprecated. Use node_pools.instance_group_urls.
-     * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. - * See google/container/v1/cluster_service.proto;l=1704 - * @param value The instanceGroupUrls to add. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder addInstanceGroupUrls( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureInstanceGroupUrlsIsMutable(); - instanceGroupUrls_.add(value); - onChanged(); - return this; - } - /** - *
-     * Deprecated. Use node_pools.instance_group_urls.
-     * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. - * See google/container/v1/cluster_service.proto;l=1704 - * @param values The instanceGroupUrls to add. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder addAllInstanceGroupUrls( - java.lang.Iterable values) { - ensureInstanceGroupUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, instanceGroupUrls_); - onChanged(); - return this; - } - /** - *
-     * Deprecated. Use node_pools.instance_group_urls.
-     * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. - * See google/container/v1/cluster_service.proto;l=1704 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearInstanceGroupUrls() { - instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - *
-     * Deprecated. Use node_pools.instance_group_urls.
-     * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. - * See google/container/v1/cluster_service.proto;l=1704 - * @param value The bytes of the instanceGroupUrls to add. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder addInstanceGroupUrlsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureInstanceGroupUrlsIsMutable(); - instanceGroupUrls_.add(value); - onChanged(); - return this; - } - - private int currentNodeCount_ ; - /** - *
-     * [Output only]  The number of nodes currently in the cluster. Deprecated.
-     * Call Kubernetes API directly to retrieve node information.
-     * 
- * - * int32 current_node_count = 112 [deprecated = true]; - * @deprecated google.container.v1.Cluster.current_node_count is deprecated. - * See google/container/v1/cluster_service.proto;l=1708 - * @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=1708 - * @param value The currentNodeCount to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setCurrentNodeCount(int value) { - - currentNodeCount_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only]  The number of nodes currently in the cluster. Deprecated.
-     * Call Kubernetes API directly to retrieve node information.
-     * 
- * - * int32 current_node_count = 112 [deprecated = true]; - * @deprecated google.container.v1.Cluster.current_node_count is deprecated. - * See google/container/v1/cluster_service.proto;l=1708 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearCurrentNodeCount() { - - currentNodeCount_ = 0; - onChanged(); - return this; - } - - private java.lang.Object expireTime_ = ""; - /** - *
-     * [Output only] The time the cluster will be automatically
-     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string expire_time = 113; - * @return The expireTime. - */ - public java.lang.String getExpireTime() { - java.lang.Object ref = expireTime_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - expireTime_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * [Output only] The time the cluster will be automatically
-     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string expire_time = 113; - * @return The bytes for expireTime. - */ - public com.google.protobuf.ByteString - getExpireTimeBytes() { - java.lang.Object ref = expireTime_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - expireTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * [Output only] The time the cluster will be automatically
-     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string expire_time = 113; - * @param value The expireTime to set. - * @return This builder for chaining. - */ - public Builder setExpireTime( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - expireTime_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] The time the cluster will be automatically
-     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string expire_time = 113; - * @return This builder for chaining. - */ - public Builder clearExpireTime() { - - expireTime_ = getDefaultInstance().getExpireTime(); - onChanged(); - return this; - } - /** - *
-     * [Output only] The time the cluster will be automatically
-     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string expire_time = 113; - * @param value The bytes for expireTime to set. - * @return This builder for chaining. - */ - public Builder setExpireTimeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - expireTime_ = value; - onChanged(); - return this; - } - - private java.lang.Object location_ = ""; - /** - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * in which the cluster resides.
-     * 
- * - * string location = 114; - * @return The location. - */ - public java.lang.String getLocation() { - java.lang.Object ref = location_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - location_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * in which the cluster resides.
-     * 
- * - * string location = 114; - * @return The bytes for location. - */ - public com.google.protobuf.ByteString - getLocationBytes() { - java.lang.Object ref = location_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - location_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * in which the cluster resides.
-     * 
- * - * string location = 114; - * @param value The location to set. - * @return This builder for chaining. - */ - public Builder setLocation( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - location_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * in which the cluster resides.
-     * 
- * - * string location = 114; - * @return This builder for chaining. - */ - public Builder clearLocation() { - - location_ = getDefaultInstance().getLocation(); - onChanged(); - return this; - } - /** - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * in which the cluster resides.
-     * 
- * - * string location = 114; - * @param value The bytes for location to set. - * @return This builder for chaining. - */ - public Builder setLocationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - location_ = value; - onChanged(); - return this; - } - - private boolean enableTpu_ ; - /** - *
-     * Enable the ability to use Cloud TPUs in this cluster.
-     * 
- * - * bool enable_tpu = 115; - * @return The enableTpu. - */ - @java.lang.Override - public boolean getEnableTpu() { - return enableTpu_; - } - /** - *
-     * Enable the ability to use Cloud TPUs in this cluster.
-     * 
- * - * bool enable_tpu = 115; - * @param value The enableTpu to set. - * @return This builder for chaining. - */ - public Builder setEnableTpu(boolean value) { - - enableTpu_ = value; - onChanged(); - return this; - } - /** - *
-     * Enable the ability to use Cloud TPUs in this cluster.
-     * 
- * - * bool enable_tpu = 115; - * @return This builder for chaining. - */ - public Builder clearEnableTpu() { - - enableTpu_ = false; - onChanged(); - return this; - } - - private java.lang.Object tpuIpv4CidrBlock_ = ""; - /** - *
-     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`).
-     * 
- * - * string tpu_ipv4_cidr_block = 116; - * @return The tpuIpv4CidrBlock. - */ - public java.lang.String getTpuIpv4CidrBlock() { - java.lang.Object ref = tpuIpv4CidrBlock_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tpuIpv4CidrBlock_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`).
-     * 
- * - * string tpu_ipv4_cidr_block = 116; - * @return The bytes for tpuIpv4CidrBlock. - */ - public com.google.protobuf.ByteString - getTpuIpv4CidrBlockBytes() { - java.lang.Object ref = tpuIpv4CidrBlock_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tpuIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`).
-     * 
- * - * string tpu_ipv4_cidr_block = 116; - * @param value The tpuIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setTpuIpv4CidrBlock( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - tpuIpv4CidrBlock_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`).
-     * 
- * - * string tpu_ipv4_cidr_block = 116; - * @return This builder for chaining. - */ - public Builder clearTpuIpv4CidrBlock() { - - tpuIpv4CidrBlock_ = getDefaultInstance().getTpuIpv4CidrBlock(); - onChanged(); - return this; - } - /** - *
-     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`).
-     * 
- * - * string tpu_ipv4_cidr_block = 116; - * @param value The bytes for tpuIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setTpuIpv4CidrBlockBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - tpuIpv4CidrBlock_ = value; - onChanged(); - return this; - } - - private java.util.List conditions_ = - java.util.Collections.emptyList(); - private void ensureConditionsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - conditions_ = new java.util.ArrayList(conditions_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.StatusCondition, com.google.container.v1.StatusCondition.Builder, com.google.container.v1.StatusConditionOrBuilder> conditionsBuilder_; - - /** - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public java.util.List getConditionsList() { - if (conditionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(conditions_); - } else { - return conditionsBuilder_.getMessageList(); - } - } - /** - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public int getConditionsCount() { - if (conditionsBuilder_ == null) { - return conditions_.size(); - } else { - return conditionsBuilder_.getCount(); - } - } - /** - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public com.google.container.v1.StatusCondition getConditions(int index) { - if (conditionsBuilder_ == null) { - return conditions_.get(index); - } else { - return conditionsBuilder_.getMessage(index); - } - } - /** - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public Builder setConditions( - int index, com.google.container.v1.StatusCondition value) { - if (conditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConditionsIsMutable(); - conditions_.set(index, value); - onChanged(); - } else { - conditionsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public Builder setConditions( - int index, com.google.container.v1.StatusCondition.Builder builderForValue) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.set(index, builderForValue.build()); - onChanged(); - } else { - conditionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public Builder addConditions(com.google.container.v1.StatusCondition value) { - if (conditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConditionsIsMutable(); - conditions_.add(value); - onChanged(); - } else { - conditionsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public Builder addConditions( - int index, com.google.container.v1.StatusCondition value) { - if (conditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConditionsIsMutable(); - conditions_.add(index, value); - onChanged(); - } else { - conditionsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public Builder addConditions( - com.google.container.v1.StatusCondition.Builder builderForValue) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.add(builderForValue.build()); - onChanged(); - } else { - conditionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public Builder addConditions( - int index, com.google.container.v1.StatusCondition.Builder builderForValue) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.add(index, builderForValue.build()); - onChanged(); - } else { - conditionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public Builder addAllConditions( - java.lang.Iterable values) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, conditions_); - onChanged(); - } else { - conditionsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public Builder clearConditions() { - if (conditionsBuilder_ == null) { - conditions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - conditionsBuilder_.clear(); - } - return this; - } - /** - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public Builder removeConditions(int index) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.remove(index); - onChanged(); - } else { - conditionsBuilder_.remove(index); - } - return this; - } - /** - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public com.google.container.v1.StatusCondition.Builder getConditionsBuilder( - int index) { - return getConditionsFieldBuilder().getBuilder(index); - } - /** - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public com.google.container.v1.StatusConditionOrBuilder getConditionsOrBuilder( - int index) { - if (conditionsBuilder_ == null) { - return conditions_.get(index); } else { - return conditionsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public java.util.List - getConditionsOrBuilderList() { - if (conditionsBuilder_ != null) { - return conditionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(conditions_); - } - } - /** - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public com.google.container.v1.StatusCondition.Builder addConditionsBuilder() { - return getConditionsFieldBuilder().addBuilder( - com.google.container.v1.StatusCondition.getDefaultInstance()); - } - /** - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public com.google.container.v1.StatusCondition.Builder addConditionsBuilder( - int index) { - return getConditionsFieldBuilder().addBuilder( - index, com.google.container.v1.StatusCondition.getDefaultInstance()); - } - /** - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public java.util.List - getConditionsBuilderList() { - return getConditionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.StatusCondition, com.google.container.v1.StatusCondition.Builder, com.google.container.v1.StatusConditionOrBuilder> - getConditionsFieldBuilder() { - if (conditionsBuilder_ == null) { - conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.StatusCondition, com.google.container.v1.StatusCondition.Builder, com.google.container.v1.StatusConditionOrBuilder>( - conditions_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - conditions_ = null; - } - return conditionsBuilder_; - } - - private com.google.container.v1.Autopilot autopilot_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.Autopilot, com.google.container.v1.Autopilot.Builder, com.google.container.v1.AutopilotOrBuilder> autopilotBuilder_; - /** - *
-     * Autopilot configuration for the cluster.
-     * 
- * - * .google.container.v1.Autopilot autopilot = 128; - * @return Whether the autopilot field is set. - */ - public boolean hasAutopilot() { - return autopilotBuilder_ != null || autopilot_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - autopilotBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - autopilotBuilder_.setMessage(builderForValue.build()); - } - - 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 (autopilot_ != null) { - autopilot_ = - com.google.container.v1.Autopilot.newBuilder(autopilot_).mergeFrom(value).buildPartial(); - } else { - autopilot_ = value; - } - onChanged(); - } else { - autopilotBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Autopilot configuration for the cluster.
-     * 
- * - * .google.container.v1.Autopilot autopilot = 128; - */ - public Builder clearAutopilot() { - if (autopilotBuilder_ == null) { - autopilot_ = null; - onChanged(); - } else { - autopilot_ = null; - autopilotBuilder_ = null; - } - - return this; - } - /** - *
-     * Autopilot configuration for the cluster.
-     * 
- * - * .google.container.v1.Autopilot autopilot = 128; - */ - public com.google.container.v1.Autopilot.Builder getAutopilotBuilder() { - - 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; - 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(); - 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; - 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 ((bitField0_ & 0x00000020) != 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; - onChanged(); - } else { - nodePoolDefaultsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - 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(); - onChanged(); - } else { - nodePoolDefaultsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - 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 (((bitField0_ & 0x00000020) != 0) && - nodePoolDefaults_ != null && - nodePoolDefaults_ != com.google.container.v1.NodePoolDefaults.getDefaultInstance()) { - nodePoolDefaults_ = - com.google.container.v1.NodePoolDefaults.newBuilder(nodePoolDefaults_).mergeFrom(value).buildPartial(); - } else { - nodePoolDefaults_ = value; - } - onChanged(); - } else { - nodePoolDefaultsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000020; - 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() { - if (nodePoolDefaultsBuilder_ == null) { - nodePoolDefaults_ = null; - onChanged(); - } else { - nodePoolDefaultsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - 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() { - bitField0_ |= 0x00000020; - 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 loggingConfigBuilder_ != null || loggingConfig_ != null; - } - /** - *
-     * Logging configuration for the cluster.
-     * 
- * - * .google.container.v1.LoggingConfig logging_config = 132; - * @return The loggingConfig. - */ - public com.google.container.v1.LoggingConfig getLoggingConfig() { - if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null ? com.google.container.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; - } else { - return 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; - onChanged(); - } else { - loggingConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - loggingConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (loggingConfig_ != null) { - loggingConfig_ = - com.google.container.v1.LoggingConfig.newBuilder(loggingConfig_).mergeFrom(value).buildPartial(); - } else { - loggingConfig_ = value; - } - onChanged(); - } else { - loggingConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Logging configuration for the cluster.
-     * 
- * - * .google.container.v1.LoggingConfig logging_config = 132; - */ - public Builder clearLoggingConfig() { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - onChanged(); - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Logging configuration for the cluster.
-     * 
- * - * .google.container.v1.LoggingConfig logging_config = 132; - */ - public com.google.container.v1.LoggingConfig.Builder getLoggingConfigBuilder() { - - 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 monitoringConfigBuilder_ != null || monitoringConfig_ != null; - } - /** - *
-     * Monitoring configuration for the cluster.
-     * 
- * - * .google.container.v1.MonitoringConfig monitoring_config = 133; - * @return The monitoringConfig. - */ - public com.google.container.v1.MonitoringConfig getMonitoringConfig() { - if (monitoringConfigBuilder_ == null) { - return monitoringConfig_ == null ? com.google.container.v1.MonitoringConfig.getDefaultInstance() : monitoringConfig_; - } else { - 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; - onChanged(); - } else { - monitoringConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - monitoringConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (monitoringConfig_ != null) { - monitoringConfig_ = - com.google.container.v1.MonitoringConfig.newBuilder(monitoringConfig_).mergeFrom(value).buildPartial(); - } else { - monitoringConfig_ = value; - } - onChanged(); - } else { - monitoringConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Monitoring configuration for the cluster.
-     * 
- * - * .google.container.v1.MonitoringConfig monitoring_config = 133; - */ - public Builder clearMonitoringConfig() { - if (monitoringConfigBuilder_ == null) { - monitoringConfig_ = null; - onChanged(); - } else { - monitoringConfig_ = null; - monitoringConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Monitoring configuration for the cluster.
-     * 
- * - * .google.container.v1.MonitoringConfig monitoring_config = 133; - */ - public com.google.container.v1.MonitoringConfig.Builder getMonitoringConfigBuilder() { - - 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 nodePoolAutoConfigBuilder_ != null || nodePoolAutoConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - nodePoolAutoConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - nodePoolAutoConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (nodePoolAutoConfig_ != null) { - nodePoolAutoConfig_ = - com.google.container.v1.NodePoolAutoConfig.newBuilder(nodePoolAutoConfig_).mergeFrom(value).buildPartial(); - } else { - nodePoolAutoConfig_ = value; - } - onChanged(); - } else { - nodePoolAutoConfigBuilder_.mergeFrom(value); - } - - 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() { - if (nodePoolAutoConfigBuilder_ == null) { - nodePoolAutoConfig_ = null; - onChanged(); - } else { - nodePoolAutoConfig_ = null; - nodePoolAutoConfigBuilder_ = null; - } - - 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() { - - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 2935d3b68222..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscaling.java +++ /dev/null @@ -1,1736 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ClusterAutoscaling(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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) - } - - public static final int ENABLE_NODE_AUTOPROVISIONING_FIELD_NUMBER = 1; - private boolean enableNodeAutoprovisioning_; - /** - *
-   * Enables automatic node pool creation and deletion.
-   * 
- * - * bool enable_node_autoprovisioning = 1; - * @return The enableNodeAutoprovisioning. - */ - @java.lang.Override - public boolean getEnableNodeAutoprovisioning() { - return enableNodeAutoprovisioning_; - } - - public static final int RESOURCE_LIMITS_FIELD_NUMBER = 2; - private java.util.List resourceLimits_; - /** - *
-   * Contains global constraints regarding minimum and maximum
-   * amount of resources in the cluster.
-   * 
- * - * repeated .google.container.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_; - /** - *
-   * Defines autoscaling behaviour.
-   * 
- * - * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; - * @return The enum numeric value on the wire for autoscalingProfile. - */ - @java.lang.Override public int getAutoscalingProfileValue() { - return autoscalingProfile_; - } - /** - *
-   * Defines autoscaling behaviour.
-   * 
- * - * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; - * @return The autoscalingProfile. - */ - @java.lang.Override public com.google.container.v1.ClusterAutoscaling.AutoscalingProfile getAutoscalingProfile() { - @SuppressWarnings("deprecation") - com.google.container.v1.ClusterAutoscaling.AutoscalingProfile result = com.google.container.v1.ClusterAutoscaling.AutoscalingProfile.valueOf(autoscalingProfile_); - return result == null ? com.google.container.v1.ClusterAutoscaling.AutoscalingProfile.UNRECOGNIZED : result; - } - - public static final int AUTOPROVISIONING_NODE_POOL_DEFAULTS_FIELD_NUMBER = 4; - private com.google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioningNodePoolDefaults_; - /** - *
-   * 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 autoprovisioningNodePoolDefaults_ != null; - } - /** - *
-   * 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 getAutoprovisioningNodePoolDefaults(); - } - - public static final int AUTOPROVISIONING_LOCATIONS_FIELD_NUMBER = 5; - private com.google.protobuf.LazyStringList autoprovisioningLocations_; - /** - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes can be created by NAP.
-   * 
- * - * repeated string autoprovisioning_locations = 5; - * @return A list containing the autoprovisioningLocations. - */ - public com.google.protobuf.ProtocolStringList - getAutoprovisioningLocationsList() { - return autoprovisioningLocations_; - } - /** - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes can be created by NAP.
-   * 
- * - * repeated string autoprovisioning_locations = 5; - * @return The count of autoprovisioningLocations. - */ - public int getAutoprovisioningLocationsCount() { - return autoprovisioningLocations_.size(); - } - /** - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes can be created by NAP.
-   * 
- * - * repeated string autoprovisioning_locations = 5; - * @param index The index of the element to return. - * @return The autoprovisioningLocations at the given index. - */ - public java.lang.String getAutoprovisioningLocations(int index) { - return autoprovisioningLocations_.get(index); - } - /** - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes can be created by NAP.
-   * 
- * - * repeated string autoprovisioning_locations = 5; - * @param index The index of the value to return. - * @return The bytes of the autoprovisioningLocations at the given index. - */ - public com.google.protobuf.ByteString - getAutoprovisioningLocationsBytes(int index) { - return autoprovisioningLocations_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enableNodeAutoprovisioning_ != false) { - output.writeBool(1, enableNodeAutoprovisioning_); - } - for (int i = 0; i < resourceLimits_.size(); i++) { - output.writeMessage(2, resourceLimits_.get(i)); - } - if (autoscalingProfile_ != com.google.container.v1.ClusterAutoscaling.AutoscalingProfile.PROFILE_UNSPECIFIED.getNumber()) { - output.writeEnum(3, autoscalingProfile_); - } - if (autoprovisioningNodePoolDefaults_ != null) { - output.writeMessage(4, getAutoprovisioningNodePoolDefaults()); - } - for (int i = 0; i < autoprovisioningLocations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, autoprovisioningLocations_.getRaw(i)); - } - 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 (autoprovisioningNodePoolDefaults_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getAutoprovisioningNodePoolDefaults()); - } - { - int dataSize = 0; - for (int i = 0; i < autoprovisioningLocations_.size(); i++) { - dataSize += computeStringSizeNoTag(autoprovisioningLocations_.getRaw(i)); - } - size += dataSize; - size += 1 * getAutoprovisioningLocationsList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - enableNodeAutoprovisioning_ = false; - - if (resourceLimitsBuilder_ == null) { - resourceLimits_ = java.util.Collections.emptyList(); - } else { - resourceLimits_ = null; - resourceLimitsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - autoscalingProfile_ = 0; - - if (autoprovisioningNodePoolDefaultsBuilder_ == null) { - autoprovisioningNodePoolDefaults_ = null; - } else { - autoprovisioningNodePoolDefaults_ = null; - autoprovisioningNodePoolDefaultsBuilder_ = null; - } - autoprovisioningLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.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); - int from_bitField0_ = bitField0_; - result.enableNodeAutoprovisioning_ = enableNodeAutoprovisioning_; - if (resourceLimitsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - resourceLimits_ = java.util.Collections.unmodifiableList(resourceLimits_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.resourceLimits_ = resourceLimits_; - } else { - result.resourceLimits_ = resourceLimitsBuilder_.build(); - } - result.autoscalingProfile_ = autoscalingProfile_; - if (autoprovisioningNodePoolDefaultsBuilder_ == null) { - result.autoprovisioningNodePoolDefaults_ = autoprovisioningNodePoolDefaults_; - } else { - result.autoprovisioningNodePoolDefaults_ = autoprovisioningNodePoolDefaultsBuilder_.build(); - } - if (((bitField0_ & 0x00000002) != 0)) { - autoprovisioningLocations_ = autoprovisioningLocations_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.autoprovisioningLocations_ = autoprovisioningLocations_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_ & ~0x00000001); - } else { - ensureResourceLimitsIsMutable(); - resourceLimits_.addAll(other.resourceLimits_); - } - onChanged(); - } - } else { - if (!other.resourceLimits_.isEmpty()) { - if (resourceLimitsBuilder_.isEmpty()) { - resourceLimitsBuilder_.dispose(); - resourceLimitsBuilder_ = null; - resourceLimits_ = other.resourceLimits_; - bitField0_ = (bitField0_ & ~0x00000001); - resourceLimitsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResourceLimitsFieldBuilder() : null; - } else { - resourceLimitsBuilder_.addAllMessages(other.resourceLimits_); - } - } - } - if (other.autoscalingProfile_ != 0) { - setAutoscalingProfileValue(other.getAutoscalingProfileValue()); - } - if (other.hasAutoprovisioningNodePoolDefaults()) { - mergeAutoprovisioningNodePoolDefaults(other.getAutoprovisioningNodePoolDefaults()); - } - if (!other.autoprovisioningLocations_.isEmpty()) { - if (autoprovisioningLocations_.isEmpty()) { - autoprovisioningLocations_ = other.autoprovisioningLocations_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureAutoprovisioningLocationsIsMutable(); - autoprovisioningLocations_.addAll(other.autoprovisioningLocations_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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(); - - break; - } // case 24 - case 34: { - input.readMessage( - getAutoprovisioningNodePoolDefaultsFieldBuilder().getBuilder(), - extensionRegistry); - - 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; - onChanged(); - return this; - } - /** - *
-     * Enables automatic node pool creation and deletion.
-     * 
- * - * bool enable_node_autoprovisioning = 1; - * @return This builder for chaining. - */ - public Builder clearEnableNodeAutoprovisioning() { - - enableNodeAutoprovisioning_ = false; - onChanged(); - return this; - } - - private java.util.List resourceLimits_ = - java.util.Collections.emptyList(); - private void ensureResourceLimitsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - resourceLimits_ = new java.util.ArrayList(resourceLimits_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.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_ & ~0x00000001); - 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_ & 0x00000001) != 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; - onChanged(); - return this; - } - /** - *
-     * Defines autoscaling behaviour.
-     * 
- * - * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; - * @return The autoscalingProfile. - */ - @java.lang.Override - public com.google.container.v1.ClusterAutoscaling.AutoscalingProfile getAutoscalingProfile() { - @SuppressWarnings("deprecation") - com.google.container.v1.ClusterAutoscaling.AutoscalingProfile result = com.google.container.v1.ClusterAutoscaling.AutoscalingProfile.valueOf(autoscalingProfile_); - return result == null ? com.google.container.v1.ClusterAutoscaling.AutoscalingProfile.UNRECOGNIZED : result; - } - /** - *
-     * Defines autoscaling behaviour.
-     * 
- * - * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; - * @param value The autoscalingProfile to set. - * @return This builder for chaining. - */ - public Builder setAutoscalingProfile(com.google.container.v1.ClusterAutoscaling.AutoscalingProfile value) { - if (value == null) { - throw new NullPointerException(); - } - - autoscalingProfile_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Defines autoscaling behaviour.
-     * 
- * - * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; - * @return This builder for chaining. - */ - public Builder clearAutoscalingProfile() { - - autoscalingProfile_ = 0; - onChanged(); - return this; - } - - private com.google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioningNodePoolDefaults_; - private com.google.protobuf.SingleFieldBuilderV3< - 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 autoprovisioningNodePoolDefaultsBuilder_ != null || autoprovisioningNodePoolDefaults_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - autoprovisioningNodePoolDefaultsBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - autoprovisioningNodePoolDefaultsBuilder_.setMessage(builderForValue.build()); - } - - 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 (autoprovisioningNodePoolDefaults_ != null) { - autoprovisioningNodePoolDefaults_ = - com.google.container.v1.AutoprovisioningNodePoolDefaults.newBuilder(autoprovisioningNodePoolDefaults_).mergeFrom(value).buildPartial(); - } else { - autoprovisioningNodePoolDefaults_ = value; - } - onChanged(); - } else { - autoprovisioningNodePoolDefaultsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-     * created by NAP.
-     * 
- * - * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - */ - public Builder clearAutoprovisioningNodePoolDefaults() { - if (autoprovisioningNodePoolDefaultsBuilder_ == null) { - autoprovisioningNodePoolDefaults_ = null; - onChanged(); - } else { - autoprovisioningNodePoolDefaults_ = null; - autoprovisioningNodePoolDefaultsBuilder_ = null; - } - - return this; - } - /** - *
-     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-     * created by NAP.
-     * 
- * - * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - */ - public com.google.container.v1.AutoprovisioningNodePoolDefaults.Builder getAutoprovisioningNodePoolDefaultsBuilder() { - - 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.LazyStringList autoprovisioningLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureAutoprovisioningLocationsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - autoprovisioningLocations_ = new com.google.protobuf.LazyStringArrayList(autoprovisioningLocations_); - bitField0_ |= 0x00000002; - } - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes can be created by NAP.
-     * 
- * - * repeated string autoprovisioning_locations = 5; - * @return A list containing the autoprovisioningLocations. - */ - public com.google.protobuf.ProtocolStringList - getAutoprovisioningLocationsList() { - return autoprovisioningLocations_.getUnmodifiableView(); - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes can be created by NAP.
-     * 
- * - * repeated string autoprovisioning_locations = 5; - * @return The count of autoprovisioningLocations. - */ - public int getAutoprovisioningLocationsCount() { - return autoprovisioningLocations_.size(); - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes can be created by NAP.
-     * 
- * - * repeated string autoprovisioning_locations = 5; - * @param index The index of the element to return. - * @return The autoprovisioningLocations at the given index. - */ - public java.lang.String getAutoprovisioningLocations(int index) { - return autoprovisioningLocations_.get(index); - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes can be created by NAP.
-     * 
- * - * repeated string autoprovisioning_locations = 5; - * @param index The index of the value to return. - * @return The bytes of the autoprovisioningLocations at the given index. - */ - public com.google.protobuf.ByteString - getAutoprovisioningLocationsBytes(int index) { - return autoprovisioningLocations_.getByteString(index); - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes can be created by NAP.
-     * 
- * - * repeated string autoprovisioning_locations = 5; - * @param index The index to set the value at. - * @param value The autoprovisioningLocations to set. - * @return This builder for chaining. - */ - public Builder setAutoprovisioningLocations( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAutoprovisioningLocationsIsMutable(); - autoprovisioningLocations_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes can be created by NAP.
-     * 
- * - * repeated string autoprovisioning_locations = 5; - * @param value The autoprovisioningLocations to add. - * @return This builder for chaining. - */ - public Builder addAutoprovisioningLocations( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAutoprovisioningLocationsIsMutable(); - autoprovisioningLocations_.add(value); - onChanged(); - return this; - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes can be created by NAP.
-     * 
- * - * repeated string autoprovisioning_locations = 5; - * @param values The autoprovisioningLocations to add. - * @return This builder for chaining. - */ - public Builder addAllAutoprovisioningLocations( - java.lang.Iterable values) { - ensureAutoprovisioningLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, autoprovisioningLocations_); - onChanged(); - return this; - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes can be created by NAP.
-     * 
- * - * repeated string autoprovisioning_locations = 5; - * @return This builder for chaining. - */ - public Builder clearAutoprovisioningLocations() { - autoprovisioningLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes can be created by NAP.
-     * 
- * - * repeated string autoprovisioning_locations = 5; - * @param value The bytes of the autoprovisioningLocations to add. - * @return This builder for chaining. - */ - public Builder addAutoprovisioningLocationsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureAutoprovisioningLocationsIsMutable(); - autoprovisioningLocations_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index f6ac5183224e..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscalingOrBuilder.java +++ /dev/null @@ -1,166 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index 448e6401f56c..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java +++ /dev/null @@ -1,1815 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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=1464 - * @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=1477 - * @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=1477 - * @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.
-   * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - * @return Whether the releaseChannel field is set. - */ - boolean hasReleaseChannel(); - /** - *
-   * Release channel configuration.
-   * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - * @return The releaseChannel. - */ - com.google.container.v1.ReleaseChannel getReleaseChannel(); - /** - *
-   * Release channel configuration.
-   * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - */ - com.google.container.v1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder(); - - /** - *
-   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-   * policies.
-   * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - * @return Whether the workloadIdentityConfig field is set. - */ - boolean hasWorkloadIdentityConfig(); - /** - *
-   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-   * policies.
-   * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - * @return The workloadIdentityConfig. - */ - com.google.container.v1.WorkloadIdentityConfig getWorkloadIdentityConfig(); - /** - *
-   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-   * policies.
-   * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - */ - com.google.container.v1.WorkloadIdentityConfigOrBuilder getWorkloadIdentityConfigOrBuilder(); - - /** - *
-   * 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=1643 - * @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=1643 - * @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=1676 - * @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=1676 - * @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=1688 - * @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=1688 - * @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=1704 - * @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=1704 - * @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=1704 - * @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=1704 - * @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=1708 - * @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(); -} 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 deleted file mode 100644 index 850873b2d9eb..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java +++ /dev/null @@ -1,2829 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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_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_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_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_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_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_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_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_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_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_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_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_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_NotificationConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NotificationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NotificationConfig_PubSub_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NotificationConfig_PubSub_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NotificationConfig_Filter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NotificationConfig_Filter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ConfidentialNodes_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ConfidentialNodes_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_UpgradeEvent_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_UpgradeEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_UpgradeAvailableEvent_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_UpgradeAvailableEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_SecurityBulletinEvent_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_SecurityBulletinEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_Autopilot_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_Autopilot_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_LoggingConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_LoggingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_LoggingComponentConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_LoggingComponentConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_MonitoringConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_MonitoringConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_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; - - 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\"\230\001\n\021NodeKubeletConfig\022\032\n\022cpu_manager_" + - "policy\030\001 \001(\t\0221\n\rcpu_cfs_quota\030\002 \001(\0132\032.go" + - "ogle.protobuf.BoolValue\022\034\n\024cpu_cfs_quota" + - "_period\030\003 \001(\t\022\026\n\016pod_pids_limit\030\004 \001(\003\"\324\013" + - "\n\nNodeConfig\022\024\n\014machine_type\030\001 \001(\t\022\024\n\014di" + - "sk_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(" + - "\0132-.google.container.v1.NodeConfig.Metad" + - "ataEntry\022\022\n\nimage_type\030\005 \001(\t\022;\n\006labels\030\006" + - " \003(\0132+.google.container.v1.NodeConfig.La" + - "belsEntry\022\027\n\017local_ssd_count\030\007 \001(\005\022\014\n\004ta" + - "gs\030\010 \003(\t\022\023\n\013preemptible\030\n \001(\010\022<\n\014acceler" + - "ators\030\013 \003(\0132&.google.container.v1.Accele" + - "ratorConfig\022\021\n\tdisk_type\030\014 \001(\t\022\030\n\020min_cp" + - "u_platform\030\r \001(\t\022M\n\030workload_metadata_co" + - "nfig\030\016 \001(\0132+.google.container.v1.Workloa" + - "dMetadataConfig\022.\n\006taints\030\017 \003(\0132\036.google" + - ".container.v1.NodeTaint\022:\n\016sandbox_confi" + - "g\030\021 \001(\0132\".google.container.v1.SandboxCon" + - "fig\022\022\n\nnode_group\030\022 \001(\t\022F\n\024reservation_a" + - "ffinity\030\023 \001(\0132(.google.container.v1.Rese" + - "rvationAffinity\022M\n\030shielded_instance_con" + - "fig\030\024 \001(\0132+.google.container.v1.Shielded" + - "InstanceConfig\022?\n\021linux_node_config\030\025 \001(" + - "\0132$.google.container.v1.LinuxNodeConfig\022" + - ">\n\016kubelet_config\030\026 \001(\0132&.google.contain" + - "er.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_mac" + - "hine_features\030\032 \001(\0132,.google.container.v" + - "1.AdvancedMachineFeatures\022.\n\005gvnic\030\035 \001(\013" + - "2\037.google.container.v1.VirtualNIC\022\014\n\004spo" + - "t\030 \001(\010\022B\n\022confidential_nodes\030# \001(\0132&.go" + - "ogle.container.v1.ConfidentialNodes\022L\n\017r" + - "esource_labels\030% \003(\01323.google.container." + - "v1.NodeConfig.ResourceLabelsEntry\022B\n\016log" + - "ging_config\030& \001(\0132*.google.container.v1." + - "NodePoolLoggingConfig\032/\n\rMetadataEntry\022\013" + - "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013Labels" + - "Entry\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\005val" + - "ue\030\002 \001(\t:\0028\001\"M\n\027AdvancedMachineFeatures\022" + - "\035\n\020threads_per_core\030\001 \001(\003H\000\210\001\001B\023\n\021_threa" + - "ds_per_core\"\376\003\n\021NodeNetworkConfig\022\035\n\020cre" + - "ate_pod_range\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\024enab" + - "le_private_nodes\030\t \001(\010H\000\210\001\001\022h\n\032network_p" + - "erformance_config\030\013 \001(\0132?.google.contain" + - "er.v1.NodeNetworkConfig.NetworkPerforman" + - "ceConfigH\001\210\001\001\032\324\001\n\030NetworkPerformanceConf" + - "ig\022n\n\033total_egress_bandwidth_tier\030\001 \001(\0162" + - "D.google.container.v1.NodeNetworkConfig." + - "NetworkPerformanceConfig.TierH\000\210\001\001\"(\n\004Ti" + - "er\022\024\n\020TIER_UNSPECIFIED\020\000\022\n\n\006TIER_1\020\001B\036\n\034" + - "_total_egress_bandwidth_tierB\027\n\025_enable_" + - "private_nodesB\035\n\033_network_performance_co" + - "nfig\"Y\n\026ShieldedInstanceConfig\022\032\n\022enable" + - "_secure_boot\030\001 \001(\010\022#\n\033enable_integrity_m" + - "onitoring\030\002 \001(\010\"k\n\rSandboxConfig\0225\n\004type" + - "\030\002 \001(\0162\'.google.container.v1.SandboxConf" + - "ig.Type\"#\n\004Type\022\017\n\013UNSPECIFIED\020\000\022\n\n\006GVIS" + - "OR\020\001\"\035\n\nGcfsConfig\022\017\n\007enabled\030\001 \001(\010\"\337\001\n\023" + - "ReservationAffinity\022O\n\030consume_reservati" + - "on_type\030\001 \001(\0162-.google.container.v1.Rese" + - "rvationAffinity.Type\022\013\n\003key\030\002 \001(\t\022\016\n\006val" + - "ues\030\003 \003(\t\"Z\n\004Type\022\017\n\013UNSPECIFIED\020\000\022\022\n\016NO" + - "_RESERVATION\020\001\022\023\n\017ANY_RESERVATION\020\002\022\030\n\024S" + - "PECIFIC_RESERVATION\020\003\"\271\001\n\tNodeTaint\022\013\n\003k" + - "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\0225\n\006effect\030\003 \001(\0162" + - "%.google.container.v1.NodeTaint.Effect\"Y" + - "\n\006Effect\022\026\n\022EFFECT_UNSPECIFIED\020\000\022\017\n\013NO_S" + - "CHEDULE\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.NodeTaint\"x\n\nNodeL" + - "abels\022;\n\006labels\030\001 \003(\0132+.google.container" + - ".v1.NodeLabels.LabelsEntry\032-\n\013LabelsEntr" + - "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\016Re" + - "sourceLabels\022?\n\006labels\030\001 \003(\0132/.google.co" + - "ntainer.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\004tags\030\001 \003(\t\"\331\001\n\nMa" + - "sterAuth\022\024\n\010username\030\001 \001(\tB\002\030\001\022\024\n\010passwo" + - "rd\030\002 \001(\tB\002\030\001\022O\n\031client_certificate_confi" + - "g\030\003 \001(\0132,.google.container.v1.ClientCert" + - "ificateConfig\022\036\n\026cluster_ca_certificate\030" + - "d \001(\t\022\032\n\022client_certificate\030e \001(\t\022\022\n\ncli" + - "ent_key\030f \001(\t\";\n\027ClientCertificateConfig" + - "\022 \n\030issue_client_certificate\030\001 \001(\010\"\223\006\n\014A" + - "ddonsConfig\022C\n\023http_load_balancing\030\001 \001(\013" + - "2&.google.container.v1.HttpLoadBalancing" + - "\022Q\n\032horizontal_pod_autoscaling\030\002 \001(\0132-.g" + - "oogle.container.v1.HorizontalPodAutoscal" + - "ing\022J\n\024kubernetes_dashboard\030\003 \001(\0132(.goog" + - "le.container.v1.KubernetesDashboardB\002\030\001\022" + - "G\n\025network_policy_config\030\004 \001(\0132(.google." + - "container.v1.NetworkPolicyConfig\022=\n\020clou" + - "d_run_config\030\007 \001(\0132#.google.container.v1" + - ".CloudRunConfig\022=\n\020dns_cache_config\030\010 \001(" + - "\0132#.google.container.v1.DnsCacheConfig\022K" + - "\n\027config_connector_config\030\n \001(\0132*.google" + - ".container.v1.ConfigConnectorConfig\022d\n%g" + - "ce_persistent_disk_csi_driver_config\030\013 \001" + - "(\01325.google.container.v1.GcePersistentDi" + - "skCsiDriverConfig\022Y\n\037gcp_filestore_csi_d" + - "river_config\030\016 \001(\01320.google.container.v1" + - ".GcpFilestoreCsiDriverConfig\022J\n\027gke_back" + - "up_agent_config\030\020 \001(\0132).google.container" + - ".v1.GkeBackupAgentConfig\"%\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\"9\n&PrivateClu" + - "sterMasterGlobalAccessConfig\022\017\n\007enabled\030" + - "\001 \001(\010\"\305\002\n\024PrivateClusterConfig\022\034\n\024enable" + - "_private_nodes\030\001 \001(\010\022\037\n\027enable_private_e" + - "ndpoint\030\002 \001(\010\022\036\n\026master_ipv4_cidr_block\030" + - "\003 \001(\t\022\030\n\020private_endpoint\030\004 \001(\t\022\027\n\017publi" + - "c_endpoint\030\005 \001(\t\022\024\n\014peering_name\030\007 \001(\t\022`" + - "\n\033master_global_access_config\030\010 \001(\0132;.go" + - "ogle.container.v1.PrivateClusterMasterGl" + - "obalAccessConfig\022#\n\033private_endpoint_sub" + - "network\030\n \001(\t\"D\n\031AuthenticatorGroupsConf" + - "ig\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.co" + - "ntainer.v1.CloudRunConfig.LoadBalancerTy" + - "pe\"x\n\020LoadBalancerType\022\"\n\036LOAD_BALANCER_" + - "TYPE_UNSPECIFIED\020\000\022\037\n\033LOAD_BALANCER_TYPE" + - "_EXTERNAL\020\001\022\037\n\033LOAD_BALANCER_TYPE_INTERN" + - "AL\020\002\"(\n\025ConfigConnectorConfig\022\017\n\007enabled" + - "\030\001 \001(\010\"3\n GcePersistentDiskCsiDriverConf" + - "ig\022\017\n\007enabled\030\001 \001(\010\".\n\033GcpFilestoreCsiDr" + - "iverConfig\022\017\n\007enabled\030\001 \001(\010\"\'\n\024GkeBackup" + - "AgentConfig\022\017\n\007enabled\030\001 \001(\010\"\216\002\n\036MasterA" + - "uthorizedNetworksConfig\022\017\n\007enabled\030\001 \001(\010" + - "\022R\n\013cidr_blocks\030\002 \003(\0132=.google.container" + - ".v1.MasterAuthorizedNetworksConfig.CidrB" + - "lock\022,\n\037gcp_public_cidrs_access_enabled\030" + - "\003 \001(\010H\000\210\001\001\0325\n\tCidrBlock\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\007e" + - "nabled\030\001 \001(\010\"\221\001\n\rNetworkPolicy\022=\n\010provid" + - "er\030\001 \001(\0162+.google.container.v1.NetworkPo" + - "licy.Provider\022\017\n\007enabled\030\002 \001(\010\"0\n\010Provid" + - "er\022\030\n\024PROVIDER_UNSPECIFIED\020\000\022\n\n\006CALICO\020\001" + - "\"\343\001\n\023BinaryAuthorization\022\023\n\007enabled\030\001 \001(" + - "\010B\002\030\001\022P\n\017evaluation_mode\030\002 \001(\01627.google." + - "container.v1.BinaryAuthorization.Evaluat" + - "ionMode\"e\n\016EvaluationMode\022\037\n\033EVALUATION_" + - "MODE_UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022$\n PROJ" + - "ECT_SINGLETON_POLICY_ENFORCE\020\002\"\215\004\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\023tp" + - "u_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.contain" + - "er.v1.StackType\022=\n\020ipv6_access_type\030\021 \001(" + - "\0162#.google.container.v1.IPv6AccessType\"\207" + - "\031\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" + - "\013node_config\030\004 \001(\0132\037.google.container.v1" + - ".NodeConfigB\002\030\001\0224\n\013master_auth\030\005 \001(\0132\037.g" + - "oogle.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.c" + - "ontainer.v1.AddonsConfig\022\022\n\nsubnetwork\030\013" + - " \001(\t\0221\n\nnode_pools\030\014 \003(\0132\035.google.contai" + - "ner.v1.NodePool\022\021\n\tlocations\030\r \003(\t\022\037\n\027en" + - "able_kubernetes_alpha\030\016 \001(\010\022I\n\017resource_" + - "labels\030\017 \003(\01320.google.container.v1.Clust" + - "er.ResourceLabelsEntry\022\031\n\021label_fingerpr" + - "int\030\020 \001(\t\0224\n\013legacy_abac\030\022 \001(\0132\037.google." + - "container.v1.LegacyAbac\022:\n\016network_polic" + - "y\030\023 \001(\0132\".google.container.v1.NetworkPol" + - "icy\022E\n\024ip_allocation_policy\030\024 \001(\0132\'.goog" + - "le.container.v1.IPAllocationPolicy\022^\n!ma" + - "ster_authorized_networks_config\030\026 \001(\01323." + - "google.container.v1.MasterAuthorizedNetw" + - "orksConfig\022B\n\022maintenance_policy\030\027 \001(\0132&" + - ".google.container.v1.MaintenancePolicy\022F" + - "\n\024binary_authorization\030\030 \001(\0132(.google.co" + - "ntainer.v1.BinaryAuthorization\022<\n\013autosc" + - "aling\030\032 \001(\0132\'.google.container.v1.Cluste" + - "rAutoscaling\022:\n\016network_config\030\033 \001(\0132\".g" + - "oogle.container.v1.NetworkConfig\022K\n\033defa" + - "ult_max_pods_constraint\030\036 \001(\0132&.google.c" + - "ontainer.v1.MaxPodsConstraint\022T\n\034resourc" + - "e_usage_export_config\030! \001(\0132..google.con" + - "tainer.v1.ResourceUsageExportConfig\022S\n\033a" + - "uthenticator_groups_config\030\" \001(\0132..googl" + - "e.container.v1.AuthenticatorGroupsConfig" + - "\022I\n\026private_cluster_config\030% \001(\0132).googl" + - "e.container.v1.PrivateClusterConfig\022D\n\023d" + - "atabase_encryption\030& \001(\0132\'.google.contai" + - "ner.v1.DatabaseEncryption\022M\n\030vertical_po" + - "d_autoscaling\030\' \001(\0132+.google.container.v" + - "1.VerticalPodAutoscaling\022:\n\016shielded_nod" + - "es\030( \001(\0132\".google.container.v1.ShieldedN" + - "odes\022<\n\017release_channel\030) \001(\0132#.google.c" + - "ontainer.v1.ReleaseChannel\022M\n\030workload_i" + - "dentity_config\030+ \001(\0132+.google.container." + - "v1.WorkloadIdentityConfig\022@\n\021mesh_certif" + - "icates\030C \001(\0132%.google.container.v1.MeshC" + - "ertificates\022I\n\026cost_management_config\030- " + - "\001(\0132).google.container.v1.CostManagement" + - "Config\022D\n\023notification_config\0301 \001(\0132\'.go" + - "ogle.container.v1.NotificationConfig\022B\n\022" + - "confidential_nodes\0302 \001(\0132&.google.contai" + - "ner.v1.ConfidentialNodes\022K\n\027identity_ser" + - "vice_config\0306 \001(\0132*.google.container.v1." + - "IdentityServiceConfig\022\021\n\tself_link\030d \001(\t" + - "\022\020\n\004zone\030e \001(\tB\002\030\001\022\020\n\010endpoint\030f \001(\t\022\037\n\027" + - "initial_cluster_version\030g \001(\t\022\036\n\026current" + - "_master_version\030h \001(\t\022 \n\024current_node_ve" + - "rsion\030i \001(\tB\002\030\001\022\023\n\013create_time\030j \001(\t\0223\n\006" + - "status\030k \001(\0162#.google.container.v1.Clust" + - "er.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_i" + - "pv4_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_bloc" + - "k\030t \001(\t\0228\n\nconditions\030v \003(\0132$.google.con" + - "tainer.v1.StatusCondition\0222\n\tautopilot\030\200" + - "\001 \001(\0132\036.google.container.v1.Autopilot\022\020\n" + - "\002id\030\201\001 \001(\tB\003\340A\003\022G\n\022node_pool_defaults\030\203\001" + - " \001(\0132%.google.container.v1.NodePoolDefau" + - "ltsH\000\210\001\001\022;\n\016logging_config\030\204\001 \001(\0132\".goog" + - "le.container.v1.LoggingConfig\022A\n\021monitor" + - "ing_config\030\205\001 \001(\0132%.google.container.v1." + - "MonitoringConfig\022G\n\025node_pool_auto_confi" + - "g\030\210\001 \001(\0132\'.google.container.v1.NodePoolA" + - "utoConfig\0325\n\023ResourceLabelsEntry\022\013\n\003key\030" + - "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"w\n\006Status\022\026\n\022ST" + - "ATUS_UNSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007" + - "RUNNING\020\002\022\017\n\013RECONCILING\020\003\022\014\n\010STOPPING\020\004" + - "\022\t\n\005ERROR\020\005\022\014\n\010DEGRADED\020\006B\025\n\023_node_pool_" + - "defaults\"L\n\022NodePoolAutoConfig\0226\n\014networ" + - "k_tags\030\001 \001(\0132 .google.container.v1.Netwo" + - "rkTags\"Y\n\020NodePoolDefaults\022E\n\024node_confi" + - "g_defaults\030\001 \001(\0132\'.google.container.v1.N" + - "odeConfigDefaults\"\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.container.v1.NodePoolLoggingConf" + - "ig\"\243\025\n\rClusterUpdate\022\034\n\024desired_node_ver" + - "sion\030\004 \001(\t\022\"\n\032desired_monitoring_service" + - "\030\005 \001(\t\022@\n\025desired_addons_config\030\006 \001(\0132!." + - "google.container.v1.AddonsConfig\022\034\n\024desi" + - "red_node_pool_id\030\007 \001(\t\022\032\n\022desired_image_" + - "type\030\010 \001(\t\022L\n\033desired_database_encryptio" + - "n\030. \001(\0132\'.google.container.v1.DatabaseEn" + - "cryption\022U\n desired_workload_identity_co" + - "nfig\030/ \001(\0132+.google.container.v1.Workloa" + - "dIdentityConfig\022H\n\031desired_mesh_certific" + - "ates\030C \001(\0132%.google.container.v1.MeshCer" + - "tificates\022B\n\026desired_shielded_nodes\0300 \001(" + - "\0132\".google.container.v1.ShieldedNodes\022Q\n" + - "\036desired_cost_management_config\0301 \001(\0132)." + - "google.container.v1.CostManagementConfig" + - "\022:\n\022desired_dns_config\0305 \001(\0132\036.google.co" + - "ntainer.v1.DNSConfig\022O\n\035desired_node_poo" + - "l_autoscaling\030\t \001(\0132(.google.container.v" + - "1.NodePoolAutoscaling\022\031\n\021desired_locatio" + - "ns\030\n \003(\t\022f\n)desired_master_authorized_ne" + - "tworks_config\030\014 \001(\01323.google.container.v" + - "1.MasterAuthorizedNetworksConfig\022L\n\033desi" + - "red_cluster_autoscaling\030\017 \001(\0132\'.google.c" + - "ontainer.v1.ClusterAutoscaling\022N\n\034desire" + - "d_binary_authorization\030\020 \001(\0132(.google.co" + - "ntainer.v1.BinaryAuthorization\022\037\n\027desire" + - "d_logging_service\030\023 \001(\t\022\\\n$desired_resou" + - "rce_usage_export_config\030\025 \001(\0132..google.c" + - "ontainer.v1.ResourceUsageExportConfig\022U\n" + - " desired_vertical_pod_autoscaling\030\026 \001(\0132" + - "+.google.container.v1.VerticalPodAutosca" + - "ling\022Q\n\036desired_private_cluster_config\030\031" + - " \001(\0132).google.container.v1.PrivateCluste" + - "rConfig\022\\\n$desired_intra_node_visibility" + - "_config\030\032 \001(\0132..google.container.v1.Intr" + - "aNodeVisibilityConfig\022K\n\033desired_default" + - "_snat_status\030\034 \001(\0132&.google.container.v1" + - ".DefaultSnatStatus\022D\n\027desired_release_ch" + - "annel\030\037 \001(\0132#.google.container.v1.Releas" + - "eChannel\022Q\n\037desired_l4ilb_subsetting_con" + - "fig\030\' \001(\0132(.google.container.v1.ILBSubse" + - "ttingConfig\022H\n\031desired_datapath_provider" + - "\0302 \001(\0162%.google.container.v1.DatapathPro" + - "vider\022X\n\"desired_private_ipv6_google_acc" + - "ess\0303 \001(\0162,.google.container.v1.PrivateI" + - "Pv6GoogleAccess\022L\n\033desired_notification_" + - "config\0307 \001(\0132\'.google.container.v1.Notif" + - "icationConfig\022[\n#desired_authenticator_g" + - "roups_config\030? \001(\0132..google.container.v1" + - ".AuthenticatorGroupsConfig\022B\n\026desired_lo" + - "gging_config\030@ \001(\0132\".google.container.v1" + - ".LoggingConfig\022H\n\031desired_monitoring_con" + - "fig\030A \001(\0132%.google.container.v1.Monitori" + - "ngConfig\022S\n\037desired_identity_service_con" + - "fig\030B \001(\0132*.google.container.v1.Identity" + - "ServiceConfig\022Z\n#desired_service_externa" + - "l_ips_config\030< \001(\0132-.google.container.v1" + - ".ServiceExternalIPsConfig\022,\n\037desired_ena" + - "ble_private_endpoint\030G \001(\010H\000\210\001\001\022\036\n\026desir" + - "ed_master_version\030d \001(\t\022<\n\023desired_gcfs_" + - "config\030m \001(\0132\037.google.container.v1.GcfsC" + - "onfig\022T\n*desired_node_pool_auto_config_n" + - "etwork_tags\030n \001(\0132 .google.container.v1." + - "NetworkTags\022I\n\032desired_gateway_api_confi" + - "g\030r \001(\0132%.google.container.v1.GatewayAPI" + - "Config\022T\n desired_node_pool_logging_conf" + - "ig\030t \001(\0132*.google.container.v1.NodePoolL" + - "oggingConfigB\"\n _desired_enable_private_" + - "endpoint\"\361\007\n\tOperation\022\014\n\004name\030\001 \001(\t\022\020\n\004" + - "zone\030\002 \001(\tB\002\030\001\022;\n\016operation_type\030\003 \001(\0162#" + - ".google.container.v1.Operation.Type\0225\n\006s" + - "tatus\030\004 \001(\0162%.google.container.v1.Operat" + - "ion.Status\022\016\n\006detail\030\010 \001(\t\022\035\n\016status_mes" + - "sage\030\005 \001(\tB\005\030\001\340A\003\022\021\n\tself_link\030\006 \001(\t\022\023\n\013" + - "target_link\030\007 \001(\t\022\020\n\010location\030\t \001(\t\022\022\n\ns" + - "tart_time\030\n \001(\t\022\020\n\010end_time\030\013 \001(\t\022=\n\010pro" + - "gress\030\014 \001(\0132&.google.container.v1.Operat" + - "ionProgressB\003\340A\003\022D\n\022cluster_conditions\030\r" + - " \003(\0132$.google.container.v1.StatusConditi" + - "onB\002\030\001\022E\n\023nodepool_conditions\030\016 \003(\0132$.go" + - "ogle.container.v1.StatusConditionB\002\030\001\022!\n" + - "\005error\030\017 \001(\0132\022.google.rpc.Status\"R\n\006Stat" + - "us\022\026\n\022STATUS_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022" + - "\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\022\014\n\010ABORTING\020\004\"\375\002\n" + - "\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n\016CREATE_CL" + - "USTER\020\001\022\022\n\016DELETE_CLUSTER\020\002\022\022\n\016UPGRADE_M" + - "ASTER\020\003\022\021\n\rUPGRADE_NODES\020\004\022\022\n\016REPAIR_CLU" + - "STER\020\005\022\022\n\016UPDATE_CLUSTER\020\006\022\024\n\020CREATE_NOD" + - "E_POOL\020\007\022\024\n\020DELETE_NODE_POOL\020\010\022\034\n\030SET_NO" + - "DE_POOL_MANAGEMENT\020\t\022\025\n\021AUTO_REPAIR_NODE" + - "S\020\n\022\026\n\022AUTO_UPGRADE_NODES\020\013\022\016\n\nSET_LABEL" + - "S\020\014\022\023\n\017SET_MASTER_AUTH\020\r\022\026\n\022SET_NODE_POO" + - "L_SIZE\020\016\022\026\n\022SET_NETWORK_POLICY\020\017\022\032\n\026SET_" + - "MAINTENANCE_POLICY\020\020\"\273\002\n\021OperationProgre" + - "ss\022\014\n\004name\030\001 \001(\t\0225\n\006status\030\002 \001(\0162%.googl" + - "e.container.v1.Operation.Status\022>\n\007metri" + - "cs\030\003 \003(\0132-.google.container.v1.Operation" + - "Progress.Metric\0226\n\006stages\030\004 \003(\0132&.google" + - ".container.v1.OperationProgress\032i\n\006Metri" + - "c\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\tint_value\030\002 \001(\003H" + - "\000\022\026\n\014double_value\030\003 \001(\001H\000\022\026\n\014string_valu" + - "e\030\004 \001(\tH\000B\007\n\005value\"\204\001\n\024CreateClusterRequ" + - "est\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.containe" + - "r.v1.ClusterB\003\340A\002\022\016\n\006parent\030\005 \001(\t\"c\n\021Get" + - "ClusterRequest\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\340" + - "A\002\022\014\n\004name\030\005 \001(\t\"\344\007\n\025UpdateNodePoolReque" + - "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\030\n\014node_poo" + - "l_id\030\004 \001(\tB\002\030\001\022\031\n\014node_version\030\005 \001(\tB\003\340A" + - "\002\022\027\n\nimage_type\030\006 \001(\tB\003\340A\002\022\014\n\004name\030\010 \001(\t" + - "\022\021\n\tlocations\030\r \003(\t\022M\n\030workload_metadata" + - "_config\030\016 \001(\0132+.google.container.v1.Work" + - "loadMetadataConfig\022G\n\020upgrade_settings\030\017" + - " \001(\0132-.google.container.v1.NodePool.Upgr" + - "adeSettings\022.\n\004tags\030\020 \001(\0132 .google.conta" + - "iner.v1.NetworkTags\022/\n\006taints\030\021 \001(\0132\037.go" + - "ogle.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.contai" + - "ner.v1.LinuxNodeConfig\022>\n\016kubelet_config" + - "\030\024 \001(\0132&.google.container.v1.NodeKubelet" + - "Config\022C\n\023node_network_config\030\025 \001(\0132&.go" + - "ogle.container.v1.NodeNetworkConfig\0224\n\013g" + - "cfs_config\030\026 \001(\0132\037.google.container.v1.G" + - "cfsConfig\022B\n\022confidential_nodes\030\027 \001(\0132&.", - "google.container.v1.ConfidentialNodes\022.\n" + - "\005gvnic\030\035 \001(\0132\037.google.container.v1.Virtu" + - "alNIC\022B\n\016logging_config\030 \001(\0132*.google.c" + - "ontainer.v1.NodePoolLoggingConfig\022<\n\017res" + - "ource_labels\030! \001(\0132#.google.container.v1" + - ".ResourceLabels\"\315\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\022B\n\013autoscaling\030\005 \001" + - "(\0132(.google.container.v1.NodePoolAutosca" + - "lingB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\210\001\n\030SetLoggingSe" + - "rviceRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004" + - "zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\034" + - "\n\017logging_service\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\005 \001" + - "(\t\"\216\001\n\033SetMonitoringServiceRequest\022\026\n\npr" + - "oject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\n" + - "cluster_id\030\003 \001(\tB\002\030\001\022\037\n\022monitoring_servi" + - "ce\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\247\001\n\026SetAddon" + - "sConfigRequest\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.contain" + - "er.v1.AddonsConfigB\003\340A\002\022\014\n\004name\030\006 \001(\t\"}\n" + - "\023SetLocationsRequest\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\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\ncluste" + - "r_id\030\003 \001(\tB\002\030\001\022\033\n\016master_version\030\004 \001(\tB\003" + - "\340A\002\022\014\n\004name\030\007 \001(\t\"\265\002\n\024SetMasterAuthReque" + - "st\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\t" + - "B\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022E\n\006action\030\004" + - " \001(\01620.google.container.v1.SetMasterAuth" + - "Request.ActionB\003\340A\002\0224\n\006update\030\005 \001(\0132\037.go" + - "ogle.container.v1.MasterAuthB\003\340A\002\022\014\n\004nam" + - "e\030\007 \001(\t\"P\n\006Action\022\013\n\007UNKNOWN\020\000\022\020\n\014SET_PA" + - "SSWORD\020\001\022\025\n\021GENERATE_PASSWORD\020\002\022\020\n\014SET_U" + - "SERNAME\020\003\"f\n\024DeleteClusterRequest\022\026\n\npro" + - "ject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nc" + - "luster_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\004 \001(\t\"O\n\023Lis" + - "tClustersRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001" + - "\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\016\n\006parent\030\004 \001(\t\"]\n\024Li" + - "stClustersResponse\022.\n\010clusters\030\001 \003(\0132\034.g" + - "oogle.container.v1.Cluster\022\025\n\rmissing_zo" + - "nes\030\002 \003(\t\"g\n\023GetOperationRequest\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\005 \001(\t\"Q\n\025Li" + - "stOperationsRequest\022\026\n\nproject_id\030\001 \001(\tB" + - "\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\016\n\006parent\030\004 \001(\t\"j\n" + - "\026CancelOperationRequest\022\026\n\nproject_id\030\001 " + - "\001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\030\n\014operation_i" + - "d\030\003 \001(\tB\002\030\001\022\014\n\004name\030\004 \001(\t\"c\n\026ListOperati" + - "onsResponse\0222\n\noperations\030\001 \003(\0132\036.google" + - ".container.v1.Operation\022\025\n\rmissing_zones" + - "\030\002 \003(\t\"P\n\026GetServerConfigRequest\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\014\n\004na" + - "me\030\004 \001(\t\"\364\002\n\014ServerConfig\022\037\n\027default_clu" + - "ster_version\030\001 \001(\t\022\033\n\023valid_node_version" + - "s\030\003 \003(\t\022\032\n\022default_image_type\030\004 \001(\t\022\031\n\021v" + - "alid_image_types\030\005 \003(\t\022\035\n\025valid_master_v" + - "ersions\030\006 \003(\t\022H\n\010channels\030\t \003(\01326.google" + - ".container.v1.ServerConfig.ReleaseChanne" + - "lConfig\032\205\001\n\024ReleaseChannelConfig\022<\n\007chan" + - "nel\030\001 \001(\0162+.google.container.v1.ReleaseC" + - "hannel.Channel\022\027\n\017default_version\030\002 \001(\t\022" + - "\026\n\016valid_versions\030\004 \003(\t\"\240\001\n\025CreateNodePo" + - "olRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zon" + - "e\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\0225\n\tn" + - "ode_pool\030\004 \001(\0132\035.google.container.v1.Nod" + - "ePoolB\003\340A\002\022\016\n\006parent\030\006 \001(\t\"\201\001\n\025DeleteNod" + - "ePoolRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004" + - "zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\030" + - "\n\014node_pool_id\030\004 \001(\tB\002\030\001\022\014\n\004name\030\006 \001(\t\"h" + - "\n\024ListNodePoolsRequest\022\026\n\nproject_id\030\001 \001" + - "(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003" + - " \001(\tB\002\030\001\022\016\n\006parent\030\005 \001(\t\"~\n\022GetNodePoolR" + - "equest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002" + - " \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\030\n\014node" + - "_pool_id\030\004 \001(\tB\002\030\001\022\014\n\004name\030\006 \001(\t\"\237\003\n\021Blu" + - "eGreenSettings\022_\n\027standard_rollout_polic" + - "y\030\001 \001(\0132<.google.container.v1.BlueGreenS" + - "ettings.StandardRolloutPolicyH\000\022?\n\027node_" + - "pool_soak_duration\030\002 \001(\0132\031.google.protob" + - "uf.DurationH\001\210\001\001\032\271\001\n\025StandardRolloutPoli" + - "cy\022\032\n\020batch_percentage\030\001 \001(\002H\000\022\032\n\020batch_" + - "node_count\030\002 \001(\005H\000\022;\n\023batch_soak_duratio" + - "n\030\003 \001(\0132\031.google.protobuf.DurationH\001\210\001\001B" + - "\023\n\021update_batch_sizeB\026\n\024_batch_soak_dura" + - "tionB\020\n\016rollout_policyB\032\n\030_node_pool_soa" + - "k_duration\"\355\014\n\010NodePool\022\014\n\004name\030\001 \001(\t\022/\n" + - "\006config\030\002 \001(\0132\037.google.container.v1.Node" + - "Config\022\032\n\022initial_node_count\030\003 \001(\005\022\021\n\tlo" + - "cations\030\r \003(\t\022>\n\016network_config\030\016 \001(\0132&." + - "google.container.v1.NodeNetworkConfig\022\021\n" + - "\tself_link\030d \001(\t\022\017\n\007version\030e \001(\t\022\033\n\023ins" + - "tance_group_urls\030f \003(\t\0224\n\006status\030g \001(\0162$" + - ".google.container.v1.NodePool.Status\022\032\n\016" + - "status_message\030h \001(\tB\002\030\001\022=\n\013autoscaling\030" + - "\004 \001(\0132(.google.container.v1.NodePoolAuto" + - "scaling\0227\n\nmanagement\030\005 \001(\0132#.google.con" + - "tainer.v1.NodeManagement\022C\n\023max_pods_con" + - "straint\030\006 \001(\0132&.google.container.v1.MaxP" + - "odsConstraint\0228\n\nconditions\030i \003(\0132$.goog" + - "le.container.v1.StatusCondition\022\032\n\022pod_i" + - "pv4_cidr_size\030\007 \001(\005\022G\n\020upgrade_settings\030" + - "k \001(\0132-.google.container.v1.NodePool.Upg" + - "radeSettings\022B\n\013update_info\030m \001(\0132(.goog" + - "le.container.v1.NodePool.UpdateInfoB\003\340A\003" + - "\032\360\001\n\017UpgradeSettings\022\021\n\tmax_surge\030\001 \001(\005\022" + - "\027\n\017max_unavailable\030\002 \001(\005\022B\n\010strategy\030\003 \001" + - "(\0162+.google.container.v1.NodePoolUpdateS" + - "trategyH\000\210\001\001\022H\n\023blue_green_settings\030\004 \001(" + - "\0132&.google.container.v1.BlueGreenSetting" + - "sH\001\210\001\001B\013\n\t_strategyB\026\n\024_blue_green_setti" + - "ngs\032\210\004\n\nUpdateInfo\022O\n\017blue_green_info\030\001 " + - "\001(\01326.google.container.v1.NodePool.Updat" + - "eInfo.BlueGreenInfo\032\250\003\n\rBlueGreenInfo\022K\n" + - "\005phase\030\001 \001(\0162<.google.container.v1.NodeP" + - "ool.UpdateInfo.BlueGreenInfo.Phase\022 \n\030bl" + - "ue_instance_group_urls\030\002 \003(\t\022!\n\031green_in" + - "stance_group_urls\030\003 \003(\t\022%\n\035blue_pool_del" + - "etion_start_time\030\004 \001(\t\022\032\n\022green_pool_ver" + - "sion\030\005 \001(\t\"\301\001\n\005Phase\022\025\n\021PHASE_UNSPECIFIE" + - "D\020\000\022\022\n\016UPDATE_STARTED\020\001\022\027\n\023CREATING_GREE" + - "N_POOL\020\002\022\027\n\023CORDONING_BLUE_POOL\020\003\022\026\n\022DRA" + - "INING_BLUE_POOL\020\004\022\025\n\021NODE_POOL_SOAKING\020\005" + - "\022\026\n\022DELETING_BLUE_POOL\020\006\022\024\n\020ROLLBACK_STA" + - "RTED\020\007\"\201\001\n\006Status\022\026\n\022STATUS_UNSPECIFIED\020" + - "\000\022\020\n\014PROVISIONING\020\001\022\013\n\007RUNNING\020\002\022\026\n\022RUNN" + - "ING_WITH_ERROR\020\003\022\017\n\013RECONCILING\020\004\022\014\n\010STO" + - "PPING\020\005\022\t\n\005ERROR\020\006\"}\n\016NodeManagement\022\024\n\014" + - "auto_upgrade\030\001 \001(\010\022\023\n\013auto_repair\030\002 \001(\010\022" + - "@\n\017upgrade_options\030\n \001(\0132\'.google.contai" + - "ner.v1.AutoUpgradeOptions\"J\n\022AutoUpgrade" + - "Options\022\037\n\027auto_upgrade_start_time\030\001 \001(\t" + - "\022\023\n\013description\030\002 \001(\t\"e\n\021MaintenancePoli" + - "cy\0226\n\006window\030\001 \001(\0132&.google.container.v1" + - ".MaintenanceWindow\022\030\n\020resource_version\030\003" + - " \001(\t\"\366\002\n\021MaintenanceWindow\022O\n\030daily_main" + - "tenance_window\030\002 \001(\0132+.google.container." + - "v1.DailyMaintenanceWindowH\000\022D\n\020recurring" + - "_window\030\003 \001(\0132(.google.container.v1.Recu" + - "rringTimeWindowH\000\022a\n\026maintenance_exclusi" + - "ons\030\004 \003(\0132A.google.container.v1.Maintena" + - "nceWindow.MaintenanceExclusionsEntry\032]\n\032" + - "MaintenanceExclusionsEntry\022\013\n\003key\030\001 \001(\t\022" + - ".\n\005value\030\002 \001(\0132\037.google.container.v1.Tim" + - "eWindow:\0028\001B\010\n\006policy\"\320\001\n\nTimeWindow\022Y\n\035" + - "maintenance_exclusion_options\030\003 \001(\01320.go" + - "ogle.container.v1.MaintenanceExclusionOp" + - "tionsH\000\022.\n\nstart_time\030\001 \001(\0132\032.google.pro" + - "tobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.goog" + - "le.protobuf.TimestampB\t\n\007options\"\264\001\n\033Mai" + - "ntenanceExclusionOptions\022E\n\005scope\030\001 \001(\0162" + - "6.google.container.v1.MaintenanceExclusi" + - "onOptions.Scope\"N\n\005Scope\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\"Z\n\023RecurringTimeWindow\022/" + - "\n\006window\030\001 \001(\0132\037.google.container.v1.Tim" + - "eWindow\022\022\n\nrecurrence\030\002 \001(\t\">\n\026DailyMain" + - "tenanceWindow\022\022\n\nstart_time\030\002 \001(\t\022\020\n\010dur" + - "ation\030\003 \001(\t\"\306\001\n\034SetNodePoolManagementReq" + - "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\030\n\014node_p" + - "ool_id\030\004 \001(\tB\002\030\001\022<\n\nmanagement\030\005 \001(\0132#.g" + - "oogle.container.v1.NodeManagementB\003\340A\002\022\014" + - "\n\004name\030\007 \001(\t\"\233\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_i" + - "d\030\004 \001(\tB\002\030\001\022\027\n\nnode_count\030\005 \001(\005B\003\340A\002\022\014\n\004" + - "name\030\007 \001(\t\".\n\036CompleteNodePoolUpgradeReq" + - "uest\022\014\n\004name\030\001 \001(\t\"\237\001\n\036RollbackNodePoolU" + - "pgradeRequest\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\022" + - "\023\n\013respect_pdb\030\007 \001(\010\"J\n\025ListNodePoolsRes" + - "ponse\0221\n\nnode_pools\030\001 \003(\0132\035.google.conta" + - "iner.v1.NodePool\"\257\003\n\022ClusterAutoscaling\022" + - "$\n\034enable_node_autoprovisioning\030\001 \001(\010\022;\n" + - "\017resource_limits\030\002 \003(\0132\".google.containe" + - "r.v1.ResourceLimit\022W\n\023autoscaling_profil" + - "e\030\003 \001(\0162:.google.container.v1.ClusterAut" + - "oscaling.AutoscalingProfile\022b\n#autoprovi" + - "sioning_node_pool_defaults\030\004 \001(\01325.googl" + - "e.container.v1.AutoprovisioningNodePoolD" + - "efaults\022\"\n\032autoprovisioning_locations\030\005 " + - "\003(\t\"U\n\022AutoscalingProfile\022\027\n\023PROFILE_UNS" + - "PECIFIED\020\000\022\030\n\024OPTIMIZE_UTILIZATION\020\001\022\014\n\010" + - "BALANCED\020\002\"\230\003\n AutoprovisioningNodePoolD" + - "efaults\022\024\n\014oauth_scopes\030\001 \003(\t\022\027\n\017service" + - "_account\030\002 \001(\t\022G\n\020upgrade_settings\030\003 \001(\013" + - "2-.google.container.v1.NodePool.UpgradeS" + - "ettings\0227\n\nmanagement\030\004 \001(\0132#.google.con" + - "tainer.v1.NodeManagement\022\034\n\020min_cpu_plat" + - "form\030\005 \001(\tB\002\030\001\022\024\n\014disk_size_gb\030\006 \001(\005\022\021\n\t" + - "disk_type\030\007 \001(\t\022M\n\030shielded_instance_con" + - "fig\030\010 \001(\0132+.google.container.v1.Shielded" + - "InstanceConfig\022\031\n\021boot_disk_kms_key\030\t \001(" + - "\t\022\022\n\nimage_type\030\n \001(\t\"H\n\rResourceLimit\022\025" + - "\n\rresource_type\030\001 \001(\t\022\017\n\007minimum\030\002 \001(\003\022\017" + - "\n\007maximum\030\003 \001(\003\"\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\017autoprovisio" + - "ned\030\004 \001(\010\022P\n\017location_policy\030\005 \001(\01627.goo" + - "gle.container.v1.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\"\222\002\n\020SetLabelsR" + - "equest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002" + - " \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022W\n\017reso" + - "urce_labels\030\004 \003(\01329.google.container.v1." + - "SetLabelsRequest.ResourceLabelsEntryB\003\340A" + - "\002\022\036\n\021label_fingerprint\030\005 \001(\tB\003\340A\002\022\014\n\004nam" + - "e\030\007 \001(\t\0325\n\023ResourceLabelsEntry\022\013\n\003key\030\001 " + - "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"|\n\024SetLegacyAbacR" + - "equest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002" + - " \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\024\n\007enab" + - "led\030\004 \001(\010B\003\340A\002\022\014\n\004name\030\006 \001(\t\"\204\001\n\026StartIP" + - "RotationRequest\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\nproj" + - "ect_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncl" + - "uster_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\007 \001(\t\"\303\001\n\021Acc" + - "eleratorConfig\022\031\n\021accelerator_count\030\001 \001(" + - "\003\022\030\n\020accelerator_type\030\002 \001(\t\022\032\n\022gpu_parti" + - "tion_size\030\003 \001(\t\022F\n\022gpu_sharing_config\030\005 " + - "\001(\0132%.google.container.v1.GPUSharingConf" + - "igH\000\210\001\001B\025\n\023_gpu_sharing_config\"\372\001\n\020GPUSh" + - "aringConfig\022\"\n\032max_shared_clients_per_gp" + - "u\030\001 \001(\003\022[\n\024gpu_sharing_strategy\030\002 \001(\01628." + - "google.container.v1.GPUSharingConfig.GPU" + - "SharingStrategyH\000\210\001\001\"L\n\022GPUSharingStrate" + - "gy\022$\n GPU_SHARING_STRATEGY_UNSPECIFIED\020\000" + - "\022\020\n\014TIME_SHARING\020\001B\027\n\025_gpu_sharing_strat" + - "egy\"\232\001\n\026WorkloadMetadataConfig\022>\n\004mode\030\002" + - " \001(\01620.google.container.v1.WorkloadMetad" + - "ataConfig.Mode\"@\n\004Mode\022\024\n\020MODE_UNSPECIFI" + - "ED\020\000\022\020\n\014GCE_METADATA\020\001\022\020\n\014GKE_METADATA\020\002" + - "\"\252\001\n\027SetNetworkPolicyRequest\022\026\n\nproject_" + - "id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluste" + - "r_id\030\003 \001(\tB\002\030\001\022?\n\016network_policy\030\004 \001(\0132\"" + - ".google.container.v1.NetworkPolicyB\003\340A\002\022" + - "\014\n\004name\030\006 \001(\t\"\271\001\n\033SetMaintenancePolicyRe" + - "quest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\021\n\004zone\030\002" + - " \001(\tB\003\340A\002\022\027\n\ncluster_id\030\003 \001(\tB\003\340A\002\022G\n\022ma" + - "intenance_policy\030\004 \001(\0132&.google.containe" + - "r.v1.MaintenancePolicyB\003\340A\002\022\014\n\004name\030\005 \001(" + - "\t\"\251\002\n\017StatusCondition\022;\n\004code\030\001 \001(\0162).go" + - "ogle.container.v1.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\"\235\001\n\004Code\022\013\n\007UNKNOW" + - "N\020\000\022\020\n\014GCE_STOCKOUT\020\001\022\037\n\033GKE_SERVICE_ACC" + - "OUNT_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_ERR" + - "OR\020\007\022\017\n\013CA_EXPIRING\020\t\"\237\004\n\rNetworkConfig\022" + - "\017\n\007network\030\001 \001(\t\022\022\n\nsubnetwork\030\002 \001(\t\022$\n\034" + - "enable_intra_node_visibility\030\005 \001(\010\022C\n\023de" + - "fault_snat_status\030\007 \001(\0132&.google.contain" + - "er.v1.DefaultSnatStatus\022\037\n\027enable_l4ilb_" + - "subsetting\030\n \001(\010\022@\n\021datapath_provider\030\013 " + - "\001(\0162%.google.container.v1.DatapathProvid" + - "er\022P\n\032private_ipv6_google_access\030\014 \001(\0162," + - ".google.container.v1.PrivateIPv6GoogleAc" + - "cess\0222\n\ndns_config\030\r \001(\0132\036.google.contai" + - "ner.v1.DNSConfig\022R\n\033service_external_ips" + - "_config\030\017 \001(\0132-.google.container.v1.Serv" + - "iceExternalIPsConfig\022A\n\022gateway_api_conf" + - "ig\030\020 \001(\0132%.google.container.v1.GatewayAP" + - "IConfig\"\274\001\n\020GatewayAPIConfig\022>\n\007channel\030" + - "\001 \001(\0162-.google.container.v1.GatewayAPICo" + - "nfig.Channel\"h\n\007Channel\022\027\n\023CHANNEL_UNSPE" + - "CIFIED\020\000\022\024\n\020CHANNEL_DISABLED\020\001\022\030\n\024CHANNE" + - "L_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\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\"@\n\026GetJSONWebK" + - "eysResponse\022&\n\004keys\030\001 \003(\0132\030.google.conta" + - "iner.v1.Jwk\"\216\001\n\016ReleaseChannel\022<\n\007channe" + - "l\030\001 \001(\0162+.google.container.v1.ReleaseCha" + - "nnel.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\024" + - "CostManagementConfig\022\017\n\007enabled\030\001 \001(\010\",\n" + - "\031IntraNodeVisibilityConfig\022\017\n\007enabled\030\001 " + - "\001(\010\"&\n\023ILBSubsettingConfig\022\017\n\007enabled\030\001 " + - "\001(\010\"\252\002\n\tDNSConfig\022<\n\013cluster_dns\030\001 \001(\0162\'" + - ".google.container.v1.DNSConfig.Provider\022" + - "B\n\021cluster_dns_scope\030\002 \001(\0162\'.google.cont" + - "ainer.v1.DNSConfig.DNSScope\022\032\n\022cluster_d" + - "ns_domain\030\003 \001(\t\"I\n\010Provider\022\030\n\024PROVIDER_" + - "UNSPECIFIED\020\000\022\024\n\020PLATFORM_DEFAULT\020\001\022\r\n\tC" + - "LOUD_DNS\020\002\"4\n\010DNSScope\022\031\n\025DNS_SCOPE_UNSP" + - "ECIFIED\020\000\022\r\n\tVPC_SCOPE\020\002\".\n\021MaxPodsConst" + - "raint\022\031\n\021max_pods_per_node\030\001 \001(\003\"/\n\026Work" + - "loadIdentityConfig\022\025\n\rworkload_pool\030\002 \001(" + - "\t\"(\n\025IdentityServiceConfig\022\017\n\007enabled\030\001 " + - "\001(\010\"K\n\020MeshCertificates\0227\n\023enable_certif" + - "icates\030\001 \001(\0132\032.google.protobuf.BoolValue" + - "\"\230\001\n\022DatabaseEncryption\022<\n\005state\030\002 \001(\0162-" + - ".google.container.v1.DatabaseEncryption." + - "State\022\020\n\010key_name\030\001 \001(\t\"2\n\005State\022\013\n\007UNKN" + - "OWN\020\000\022\r\n\tENCRYPTED\020\001\022\r\n\tDECRYPTED\020\002\"e\n\034L" + - "istUsableSubnetworksRequest\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\035ListUsableSubnetwo" + - "rksResponse\022:\n\013subnetworks\030\001 \003(\0132%.googl" + - "e.container.v1.UsableSubnetwork\022\027\n\017next_" + - "page_token\030\002 \001(\t\"\200\002\n\036UsableSubnetworkSec" + - "ondaryRange\022\022\n\nrange_name\030\001 \001(\t\022\025\n\rip_ci" + - "dr_range\030\002 \001(\t\022J\n\006status\030\003 \001(\0162:.google." + - "container.v1.UsableSubnetworkSecondaryRa" + - "nge.Status\"g\n\006Status\022\013\n\007UNKNOWN\020\000\022\n\n\006UNU" + - "SED\020\001\022\022\n\016IN_USE_SERVICE\020\002\022\030\n\024IN_USE_SHAR" + - "EABLE_POD\020\003\022\026\n\022IN_USE_MANAGED_POD\020\004\"\270\001\n\020" + - "UsableSubnetwork\022\022\n\nsubnetwork\030\001 \001(\t\022\017\n\007" + - "network\030\002 \001(\t\022\025\n\rip_cidr_range\030\003 \001(\t\022P\n\023" + - "secondary_ip_ranges\030\004 \003(\01323.google.conta" + - "iner.v1.UsableSubnetworkSecondaryRange\022\026" + - "\n\016status_message\030\005 \001(\t\"\355\002\n\031ResourceUsage" + - "ExportConfig\022`\n\024bigquery_destination\030\001 \001" + - "(\0132B.google.container.v1.ResourceUsageEx" + - "portConfig.BigQueryDestination\022&\n\036enable" + - "_network_egress_metering\030\002 \001(\010\022m\n\033consum" + - "ption_metering_config\030\003 \001(\0132H.google.con" + - "tainer.v1.ResourceUsageExportConfig.Cons" + - "umptionMeteringConfig\032)\n\023BigQueryDestina" + - "tion\022\022\n\ndataset_id\030\001 \001(\t\032,\n\031ConsumptionM" + - "eteringConfig\022\017\n\007enabled\030\001 \001(\010\")\n\026Vertic" + - "alPodAutoscaling\022\017\n\007enabled\030\001 \001(\010\"%\n\021Def" + - "aultSnatStatus\022\020\n\010disabled\030\001 \001(\010\" \n\rShie" + - "ldedNodes\022\017\n\007enabled\030\001 \001(\010\"\035\n\nVirtualNIC" + - "\022\017\n\007enabled\030\001 \001(\010\"\250\003\n\022NotificationConfig" + - "\022>\n\006pubsub\030\001 \001(\0132..google.container.v1.N" + - "otificationConfig.PubSub\032\212\001\n\006PubSub\022\017\n\007e" + - "nabled\030\001 \001(\010\022/\n\005topic\030\002 \001(\tB \372A\035\n\033pubsub" + - ".googleapis.com/Topic\022>\n\006filter\030\003 \001(\0132.." + - "google.container.v1.NotificationConfig.F" + - "ilter\032O\n\006Filter\022E\n\nevent_type\030\001 \003(\01621.go" + - "ogle.container.v1.NotificationConfig.Eve" + - "ntType\"t\n\tEventType\022\032\n\026EVENT_TYPE_UNSPEC" + - "IFIED\020\000\022\033\n\027UPGRADE_AVAILABLE_EVENT\020\001\022\021\n\r" + - "UPGRADE_EVENT\020\002\022\033\n\027SECURITY_BULLETIN_EVE" + - "NT\020\003\"$\n\021ConfidentialNodes\022\017\n\007enabled\030\001 \001" + - "(\010\"\337\001\n\014UpgradeEvent\022?\n\rresource_type\030\001 \001" + - "(\0162(.google.container.v1.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\"\271\001\n\025Upgrade" + - "AvailableEvent\022\017\n\007version\030\001 \001(\t\022?\n\rresou" + - "rce_type\030\002 \001(\0162(.google.container.v1.Upg" + - "radeResourceType\022<\n\017release_channel\030\003 \001(" + - "\0132#.google.container.v1.ReleaseChannel\022\020" + - "\n\010resource\030\004 \001(\t\"\236\002\n\025SecurityBulletinEve" + - "nt\022\036\n\026resource_type_affected\030\001 \001(\t\022\023\n\013bu" + - "lletin_id\030\002 \001(\t\022\017\n\007cve_ids\030\003 \003(\t\022\020\n\010seve" + - "rity\030\004 \001(\t\022\024\n\014bulletin_uri\030\005 \001(\t\022\031\n\021brie" + - "f_description\030\006 \001(\t\022!\n\031affected_supporte" + - "d_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\025ma" + - "nual_steps_required\030\n \001(\010\"\034\n\tAutopilot\022\017" + - "\n\007enabled\030\001 \001(\010\"V\n\rLoggingConfig\022E\n\020comp" + - "onent_config\030\001 \001(\0132+.google.container.v1" + - ".LoggingComponentConfig\"\357\001\n\026LoggingCompo" + - "nentConfig\022P\n\021enable_components\030\001 \003(\01625." + - "google.container.v1.LoggingComponentConf" + - "ig.Component\"\202\001\n\tComponent\022\031\n\025COMPONENT_" + - "UNSPECIFIED\020\000\022\025\n\021SYSTEM_COMPONENTS\020\001\022\r\n\t" + - "WORKLOADS\020\002\022\r\n\tAPISERVER\020\003\022\r\n\tSCHEDULER\020" + - "\004\022\026\n\022CONTROLLER_MANAGER\020\005\"\255\001\n\020Monitoring" + - "Config\022H\n\020component_config\030\001 \001(\0132..googl" + - "e.container.v1.MonitoringComponentConfig" + - "\022O\n\031managed_prometheus_config\030\002 \001(\0132,.go" + - "ogle.container.v1.ManagedPrometheusConfi" + - "g\"Z\n\025NodePoolLoggingConfig\022A\n\016variant_co" + - "nfig\030\001 \001(\0132).google.container.v1.Logging" + - "VariantConfig\"\237\001\n\024LoggingVariantConfig\022B" + - "\n\007variant\030\001 \001(\01621.google.container.v1.Lo" + - "ggingVariantConfig.Variant\"C\n\007Variant\022\027\n" + - "\023VARIANT_UNSPECIFIED\020\000\022\013\n\007DEFAULT\020\001\022\022\n\016M" + - "AX_THROUGHPUT\020\002\"\345\001\n\031MonitoringComponentC" + - "onfig\022S\n\021enable_components\030\001 \003(\01628.googl" + - "e.container.v1.MonitoringComponentConfig" + - ".Component\"s\n\tComponent\022\031\n\025COMPONENT_UNS" + - "PECIFIED\020\000\022\025\n\021SYSTEM_COMPONENTS\020\001\022\r\n\tAPI" + - "SERVER\020\003\022\r\n\tSCHEDULER\020\004\022\026\n\022CONTROLLER_MA" + - "NAGER\020\005\"*\n\027ManagedPrometheusConfig\022\017\n\007en" + - "abled\030\001 \001(\010*\306\001\n\027PrivateIPv6GoogleAccess\022" + - "*\n&PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIE" + - "D\020\000\022\'\n#PRIVATE_IPV6_GOOGLE_ACCESS_DISABL" + - "ED\020\001\022(\n$PRIVATE_IPV6_GOOGLE_ACCESS_TO_GO", - "OGLE\020\002\022,\n(PRIVATE_IPV6_GOOGLE_ACCESS_BID" + - "IRECTIONAL\020\003*W\n\023UpgradeResourceType\022%\n!U" + - "PGRADE_RESOURCE_TYPE_UNSPECIFIED\020\000\022\n\n\006MA" + - "STER\020\001\022\r\n\tNODE_POOL\020\002*a\n\020DatapathProvide" + - "r\022!\n\035DATAPATH_PROVIDER_UNSPECIFIED\020\000\022\023\n\017" + - "LEGACY_DATAPATH\020\001\022\025\n\021ADVANCED_DATAPATH\020\002" + - "*^\n\026NodePoolUpdateStrategy\022)\n%NODE_POOL_" + - "UPDATE_STRATEGY_UNSPECIFIED\020\000\022\016\n\nBLUE_GR" + - "EEN\020\002\022\t\n\005SURGE\020\003*@\n\tStackType\022\032\n\026STACK_T" + - "YPE_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\010EXTERNAL" + - "\020\0022\303G\n\016ClusterManager\022\350\001\n\014ListClusters\022(" + - ".google.container.v1.ListClustersRequest" + - "\032).google.container.v1.ListClustersRespo" + - "nse\"\202\001\202\323\344\223\002a\022,/v1/{parent=projects/*/loc" + - "ations/*}/clustersZ1\022//v1/projects/{proj" + - "ect_id}/zones/{zone}/clusters\332A\017project_" + - "id,zone\332A\006parent\022\355\001\n\nGetCluster\022&.google" + - ".container.v1.GetClusterRequest\032\034.google" + - ".container.v1.Cluster\"\230\001\202\323\344\223\002n\022,/v1/{nam" + - "e=projects/*/locations/*/clusters/*}Z>\022<" + - "/v1/projects/{project_id}/zones/{zone}/c" + - "lusters/{cluster_id}\332A\032project_id,zone,c" + - "luster_id\332A\004name\022\365\001\n\rCreateCluster\022).goo" + - "gle.container.v1.CreateClusterRequest\032\036." + - "google.container.v1.Operation\"\230\001\202\323\344\223\002g\"," + - "/v1/{parent=projects/*/locations/*}/clus" + - "ters:\001*Z4\"//v1/projects/{project_id}/zon" + - "es/{zone}/clusters:\001*\332A\027project_id,zone," + - "cluster\332A\016parent,cluster\022\211\002\n\rUpdateClust" + - "er\022).google.container.v1.UpdateClusterRe" + - "quest\032\036.google.container.v1.Operation\"\254\001" + - "\202\323\344\223\002t\032,/v1/{name=projects/*/locations/*" + - "/clusters/*}:\001*ZA\032*/v1/{name=projec" + - "ts/*/locations/*/clusters/*}:setResource" + - "Labels:\001*ZP\"K/v1/projects/{project_id}/z" + - "ones/{zone}/clusters/{cluster_id}/resour" + - "ceLabels:\001*\022\245\002\n\rSetLegacyAbac\022).google.c" + - "ontainer.v1.SetLegacyAbacRequest\032\036.googl" + - "e.container.v1.Operation\"\310\001\202\323\344\223\002\215\001\":/v1/" + - "{name=projects/*/locations/*/clusters/*}" + - ":setLegacyAbac:\001*ZL\"G/v1/projects/{proje" + - "ct_id}/zones/{zone}/clusters/{cluster_id" + - "}/legacyAbac:\001*\332A\"project_id,zone,cluste" + - "r_id,enabled\332A\014name,enabled\022\240\002\n\017StartIPR" + - "otation\022+.google.container.v1.StartIPRot" + - "ationRequest\032\036.google.container.v1.Opera" + - "tion\"\277\001\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.EMPTY; - desiredLoggingService_ = ""; - desiredDatapathProvider_ = 0; - desiredPrivateIpv6GoogleAccess_ = 0; - desiredMasterVersion_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ClusterUpdate(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - public static final int DESIRED_NODE_VERSION_FIELD_NUMBER = 4; - private volatile java.lang.Object desiredNodeVersion_; - /** - *
-   * The Kubernetes version to change the nodes to (typically an
-   * upgrade).
-   * Users may specify either explicit versions offered by
-   * Kubernetes Engine or version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the Kubernetes master version
-   * 
- * - * string desired_node_version = 4; - * @return The desiredNodeVersion. - */ - @java.lang.Override - public java.lang.String getDesiredNodeVersion() { - java.lang.Object ref = desiredNodeVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - desiredNodeVersion_ = s; - return s; - } - } - /** - *
-   * The Kubernetes version to change the nodes to (typically an
-   * upgrade).
-   * Users may specify either explicit versions offered by
-   * Kubernetes Engine or version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the Kubernetes master version
-   * 
- * - * string desired_node_version = 4; - * @return The bytes for desiredNodeVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDesiredNodeVersionBytes() { - java.lang.Object ref = desiredNodeVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - desiredNodeVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESIRED_MONITORING_SERVICE_FIELD_NUMBER = 5; - private volatile java.lang.Object desiredMonitoringService_; - /** - *
-   * The monitoring service the cluster should use to write metrics.
-   * Currently available options:
-   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-   * service with a Kubernetes-native resource model
-   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-   *   longer available as of GKE 1.15).
-   * * `none` - No metrics will be exported from the cluster.
-   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-   * 
- * - * string desired_monitoring_service = 5; - * @return The desiredMonitoringService. - */ - @java.lang.Override - public java.lang.String getDesiredMonitoringService() { - java.lang.Object ref = desiredMonitoringService_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - desiredMonitoringService_ = s; - return s; - } - } - /** - *
-   * The monitoring service the cluster should use to write metrics.
-   * Currently available options:
-   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-   * service with a Kubernetes-native resource model
-   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-   *   longer available as of GKE 1.15).
-   * * `none` - No metrics will be exported from the cluster.
-   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-   * 
- * - * string desired_monitoring_service = 5; - * @return The bytes for desiredMonitoringService. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDesiredMonitoringServiceBytes() { - java.lang.Object ref = desiredMonitoringService_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - desiredMonitoringService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESIRED_ADDONS_CONFIG_FIELD_NUMBER = 6; - private com.google.container.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 desiredAddonsConfig_ != null; - } - /** - *
-   * 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 getDesiredAddonsConfig(); - } - - public static final int DESIRED_NODE_POOL_ID_FIELD_NUMBER = 7; - private volatile java.lang.Object desiredNodePoolId_; - /** - *
-   * The node pool to be upgraded. This field is mandatory if
-   * "desired_node_version", "desired_image_family" or
-   * "desired_node_pool_autoscaling" is specified and there is more than one
-   * node pool on the cluster.
-   * 
- * - * string desired_node_pool_id = 7; - * @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; - 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 desiredDatabaseEncryption_ != null; - } - /** - *
-   * 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 getDesiredDatabaseEncryption(); - } - - public static final int DESIRED_WORKLOAD_IDENTITY_CONFIG_FIELD_NUMBER = 47; - private com.google.container.v1.WorkloadIdentityConfig desiredWorkloadIdentityConfig_; - /** - *
-   * Configuration for Workload Identity.
-   * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * @return Whether the desiredWorkloadIdentityConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredWorkloadIdentityConfig() { - return desiredWorkloadIdentityConfig_ != null; - } - /** - *
-   * Configuration for Workload Identity.
-   * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * @return The desiredWorkloadIdentityConfig. - */ - @java.lang.Override - public com.google.container.v1.WorkloadIdentityConfig getDesiredWorkloadIdentityConfig() { - return desiredWorkloadIdentityConfig_ == null ? com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() : desiredWorkloadIdentityConfig_; - } - /** - *
-   * Configuration for Workload Identity.
-   * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - */ - @java.lang.Override - public com.google.container.v1.WorkloadIdentityConfigOrBuilder getDesiredWorkloadIdentityConfigOrBuilder() { - return getDesiredWorkloadIdentityConfig(); - } - - public static final int DESIRED_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 desiredMeshCertificates_ != null; - } - /** - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; - * @return The desiredMeshCertificates. - */ - @java.lang.Override - public com.google.container.v1.MeshCertificates getDesiredMeshCertificates() { - return desiredMeshCertificates_ == null ? com.google.container.v1.MeshCertificates.getDefaultInstance() : desiredMeshCertificates_; - } - /** - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; - */ - @java.lang.Override - public com.google.container.v1.MeshCertificatesOrBuilder getDesiredMeshCertificatesOrBuilder() { - return getDesiredMeshCertificates(); - } - - public static final int DESIRED_SHIELDED_NODES_FIELD_NUMBER = 48; - private com.google.container.v1.ShieldedNodes desiredShieldedNodes_; - /** - *
-   * Configuration for Shielded Nodes.
-   * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - * @return Whether the desiredShieldedNodes field is set. - */ - @java.lang.Override - public boolean hasDesiredShieldedNodes() { - return desiredShieldedNodes_ != null; - } - /** - *
-   * Configuration for Shielded Nodes.
-   * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - * @return The desiredShieldedNodes. - */ - @java.lang.Override - public com.google.container.v1.ShieldedNodes getDesiredShieldedNodes() { - return desiredShieldedNodes_ == null ? com.google.container.v1.ShieldedNodes.getDefaultInstance() : desiredShieldedNodes_; - } - /** - *
-   * Configuration for Shielded Nodes.
-   * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - */ - @java.lang.Override - public com.google.container.v1.ShieldedNodesOrBuilder getDesiredShieldedNodesOrBuilder() { - return getDesiredShieldedNodes(); - } - - public static final int DESIRED_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 desiredCostManagementConfig_ != null; - } - /** - *
-   * 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 getDesiredCostManagementConfig(); - } - - public static final int DESIRED_DNS_CONFIG_FIELD_NUMBER = 53; - private com.google.container.v1.DNSConfig desiredDnsConfig_; - /** - *
-   * DNSConfig contains clusterDNS config for this cluster.
-   * 
- * - * .google.container.v1.DNSConfig desired_dns_config = 53; - * @return Whether the desiredDnsConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredDnsConfig() { - return desiredDnsConfig_ != null; - } - /** - *
-   * DNSConfig contains clusterDNS config for this cluster.
-   * 
- * - * .google.container.v1.DNSConfig desired_dns_config = 53; - * @return The desiredDnsConfig. - */ - @java.lang.Override - public com.google.container.v1.DNSConfig getDesiredDnsConfig() { - return desiredDnsConfig_ == null ? com.google.container.v1.DNSConfig.getDefaultInstance() : desiredDnsConfig_; - } - /** - *
-   * DNSConfig contains clusterDNS config for this cluster.
-   * 
- * - * .google.container.v1.DNSConfig desired_dns_config = 53; - */ - @java.lang.Override - public com.google.container.v1.DNSConfigOrBuilder getDesiredDnsConfigOrBuilder() { - return getDesiredDnsConfig(); - } - - public static final int DESIRED_NODE_POOL_AUTOSCALING_FIELD_NUMBER = 9; - private com.google.container.v1.NodePoolAutoscaling desiredNodePoolAutoscaling_; - /** - *
-   * 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 desiredNodePoolAutoscaling_ != null; - } - /** - *
-   * Autoscaler configuration for the node pool specified in
-   * desired_node_pool_id. If there is only one pool in the
-   * cluster and desired_node_pool_id is not provided then
-   * the change applies to that single node pool.
-   * 
- * - * .google.container.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 getDesiredNodePoolAutoscaling(); - } - - public static final int DESIRED_LOCATIONS_FIELD_NUMBER = 10; - private com.google.protobuf.LazyStringList desiredLocations_; - /** - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This list must always include the cluster's primary zone.
-   * Warning: changing cluster locations will update the locations of all node
-   * pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string desired_locations = 10; - * @return A list containing the desiredLocations. - */ - public com.google.protobuf.ProtocolStringList - getDesiredLocationsList() { - return desiredLocations_; - } - /** - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This list must always include the cluster's primary zone.
-   * Warning: changing cluster locations will update the locations of all node
-   * pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string desired_locations = 10; - * @return The count of desiredLocations. - */ - public int getDesiredLocationsCount() { - return desiredLocations_.size(); - } - /** - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This list must always include the cluster's primary zone.
-   * Warning: changing cluster locations will update the locations of all node
-   * pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string desired_locations = 10; - * @param index The index of the element to return. - * @return The desiredLocations at the given index. - */ - public java.lang.String getDesiredLocations(int index) { - return desiredLocations_.get(index); - } - /** - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This list must always include the cluster's primary zone.
-   * Warning: changing cluster locations will update the locations of all node
-   * pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string desired_locations = 10; - * @param index The index of the value to return. - * @return The bytes of the desiredLocations at the given index. - */ - public com.google.protobuf.ByteString - getDesiredLocationsBytes(int index) { - return desiredLocations_.getByteString(index); - } - - public static final int DESIRED_MASTER_AUTHORIZED_NETWORKS_CONFIG_FIELD_NUMBER = 12; - private com.google.container.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 desiredMasterAuthorizedNetworksConfig_ != null; - } - /** - *
-   * 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 getDesiredMasterAuthorizedNetworksConfig(); - } - - 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 desiredClusterAutoscaling_ != null; - } - /** - *
-   * 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 getDesiredClusterAutoscaling(); - } - - 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 desiredBinaryAuthorization_ != null; - } - /** - *
-   * 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 getDesiredBinaryAuthorization(); - } - - public static final int DESIRED_LOGGING_SERVICE_FIELD_NUMBER = 19; - private volatile java.lang.Object desiredLoggingService_; - /** - *
-   * The logging service the cluster should use to write logs.
-   * Currently available options:
-   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-   * service with a Kubernetes-native resource model
-   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-   *   available as of GKE 1.15).
-   * * `none` - no logs will be exported from the cluster.
-   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-   * 
- * - * string desired_logging_service = 19; - * @return The desiredLoggingService. - */ - @java.lang.Override - public java.lang.String getDesiredLoggingService() { - java.lang.Object ref = desiredLoggingService_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - desiredLoggingService_ = s; - return s; - } - } - /** - *
-   * The logging service the cluster should use to write logs.
-   * Currently available options:
-   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-   * service with a Kubernetes-native resource model
-   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-   *   available as of GKE 1.15).
-   * * `none` - no logs will be exported from the cluster.
-   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-   * 
- * - * string desired_logging_service = 19; - * @return The bytes for desiredLoggingService. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDesiredLoggingServiceBytes() { - java.lang.Object ref = desiredLoggingService_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - desiredLoggingService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESIRED_RESOURCE_USAGE_EXPORT_CONFIG_FIELD_NUMBER = 21; - private com.google.container.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 desiredResourceUsageExportConfig_ != null; - } - /** - *
-   * 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 getDesiredResourceUsageExportConfig(); - } - - 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 desiredVerticalPodAutoscaling_ != null; - } - /** - *
-   * 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 getDesiredVerticalPodAutoscaling(); - } - - public static final int DESIRED_PRIVATE_CLUSTER_CONFIG_FIELD_NUMBER = 25; - private com.google.container.v1.PrivateClusterConfig desiredPrivateClusterConfig_; - /** - *
-   * The desired private cluster configuration.
-   * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - * @return Whether the desiredPrivateClusterConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredPrivateClusterConfig() { - return desiredPrivateClusterConfig_ != null; - } - /** - *
-   * The desired private cluster configuration.
-   * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - * @return The desiredPrivateClusterConfig. - */ - @java.lang.Override - public com.google.container.v1.PrivateClusterConfig getDesiredPrivateClusterConfig() { - return desiredPrivateClusterConfig_ == null ? com.google.container.v1.PrivateClusterConfig.getDefaultInstance() : desiredPrivateClusterConfig_; - } - /** - *
-   * The desired private cluster configuration.
-   * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - @java.lang.Override - public com.google.container.v1.PrivateClusterConfigOrBuilder getDesiredPrivateClusterConfigOrBuilder() { - return getDesiredPrivateClusterConfig(); - } - - public static final int DESIRED_INTRA_NODE_VISIBILITY_CONFIG_FIELD_NUMBER = 26; - private com.google.container.v1.IntraNodeVisibilityConfig desiredIntraNodeVisibilityConfig_; - /** - *
-   * 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 desiredIntraNodeVisibilityConfig_ != null; - } - /** - *
-   * 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 getDesiredIntraNodeVisibilityConfig(); - } - - public static final int DESIRED_DEFAULT_SNAT_STATUS_FIELD_NUMBER = 28; - private com.google.container.v1.DefaultSnatStatus desiredDefaultSnatStatus_; - /** - *
-   * The desired status of whether to disable default sNAT for this cluster.
-   * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - * @return Whether the desiredDefaultSnatStatus field is set. - */ - @java.lang.Override - public boolean hasDesiredDefaultSnatStatus() { - return desiredDefaultSnatStatus_ != null; - } - /** - *
-   * The desired status of whether to disable default sNAT for this cluster.
-   * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - * @return The desiredDefaultSnatStatus. - */ - @java.lang.Override - public com.google.container.v1.DefaultSnatStatus getDesiredDefaultSnatStatus() { - return desiredDefaultSnatStatus_ == null ? com.google.container.v1.DefaultSnatStatus.getDefaultInstance() : desiredDefaultSnatStatus_; - } - /** - *
-   * The desired status of whether to disable default sNAT for this cluster.
-   * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - */ - @java.lang.Override - public com.google.container.v1.DefaultSnatStatusOrBuilder getDesiredDefaultSnatStatusOrBuilder() { - return getDesiredDefaultSnatStatus(); - } - - public static final int DESIRED_RELEASE_CHANNEL_FIELD_NUMBER = 31; - private com.google.container.v1.ReleaseChannel desiredReleaseChannel_; - /** - *
-   * The desired release channel configuration.
-   * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - * @return Whether the desiredReleaseChannel field is set. - */ - @java.lang.Override - public boolean hasDesiredReleaseChannel() { - return desiredReleaseChannel_ != null; - } - /** - *
-   * The desired release channel configuration.
-   * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - * @return The desiredReleaseChannel. - */ - @java.lang.Override - public com.google.container.v1.ReleaseChannel getDesiredReleaseChannel() { - return desiredReleaseChannel_ == null ? com.google.container.v1.ReleaseChannel.getDefaultInstance() : desiredReleaseChannel_; - } - /** - *
-   * The desired release channel configuration.
-   * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - */ - @java.lang.Override - public com.google.container.v1.ReleaseChannelOrBuilder getDesiredReleaseChannelOrBuilder() { - return getDesiredReleaseChannel(); - } - - public static final int DESIRED_L4ILB_SUBSETTING_CONFIG_FIELD_NUMBER = 39; - private com.google.container.v1.ILBSubsettingConfig desiredL4IlbSubsettingConfig_; - /** - *
-   * The desired L4 Internal Load Balancer Subsetting configuration.
-   * 
- * - * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - * @return Whether the desiredL4ilbSubsettingConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredL4IlbSubsettingConfig() { - return desiredL4IlbSubsettingConfig_ != null; - } - /** - *
-   * The desired L4 Internal Load Balancer Subsetting configuration.
-   * 
- * - * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - * @return The desiredL4ilbSubsettingConfig. - */ - @java.lang.Override - public com.google.container.v1.ILBSubsettingConfig getDesiredL4IlbSubsettingConfig() { - return desiredL4IlbSubsettingConfig_ == null ? com.google.container.v1.ILBSubsettingConfig.getDefaultInstance() : desiredL4IlbSubsettingConfig_; - } - /** - *
-   * The desired L4 Internal Load Balancer Subsetting configuration.
-   * 
- * - * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - */ - @java.lang.Override - public com.google.container.v1.ILBSubsettingConfigOrBuilder getDesiredL4IlbSubsettingConfigOrBuilder() { - return getDesiredL4IlbSubsettingConfig(); - } - - public static final int DESIRED_DATAPATH_PROVIDER_FIELD_NUMBER = 50; - private int desiredDatapathProvider_; - /** - *
-   * The desired datapath provider for the cluster.
-   * 
- * - * .google.container.v1.DatapathProvider desired_datapath_provider = 50; - * @return The enum numeric value on the wire for desiredDatapathProvider. - */ - @java.lang.Override public int getDesiredDatapathProviderValue() { - return desiredDatapathProvider_; - } - /** - *
-   * The desired datapath provider for the cluster.
-   * 
- * - * .google.container.v1.DatapathProvider desired_datapath_provider = 50; - * @return The desiredDatapathProvider. - */ - @java.lang.Override public com.google.container.v1.DatapathProvider getDesiredDatapathProvider() { - @SuppressWarnings("deprecation") - com.google.container.v1.DatapathProvider result = com.google.container.v1.DatapathProvider.valueOf(desiredDatapathProvider_); - return result == null ? com.google.container.v1.DatapathProvider.UNRECOGNIZED : result; - } - - public static final int DESIRED_PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER = 51; - private int desiredPrivateIpv6GoogleAccess_; - /** - *
-   * The desired state of IPv6 connectivity to Google Services.
-   * 
- * - * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; - * @return The enum numeric value on the wire for desiredPrivateIpv6GoogleAccess. - */ - @java.lang.Override public int getDesiredPrivateIpv6GoogleAccessValue() { - return desiredPrivateIpv6GoogleAccess_; - } - /** - *
-   * The desired state of IPv6 connectivity to Google Services.
-   * 
- * - * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; - * @return The desiredPrivateIpv6GoogleAccess. - */ - @java.lang.Override public com.google.container.v1.PrivateIPv6GoogleAccess getDesiredPrivateIpv6GoogleAccess() { - @SuppressWarnings("deprecation") - com.google.container.v1.PrivateIPv6GoogleAccess result = com.google.container.v1.PrivateIPv6GoogleAccess.valueOf(desiredPrivateIpv6GoogleAccess_); - return result == null ? com.google.container.v1.PrivateIPv6GoogleAccess.UNRECOGNIZED : result; - } - - public static final int DESIRED_NOTIFICATION_CONFIG_FIELD_NUMBER = 55; - private com.google.container.v1.NotificationConfig desiredNotificationConfig_; - /** - *
-   * The desired notification configuration.
-   * 
- * - * .google.container.v1.NotificationConfig desired_notification_config = 55; - * @return Whether the desiredNotificationConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredNotificationConfig() { - return desiredNotificationConfig_ != null; - } - /** - *
-   * The desired notification configuration.
-   * 
- * - * .google.container.v1.NotificationConfig desired_notification_config = 55; - * @return The desiredNotificationConfig. - */ - @java.lang.Override - public com.google.container.v1.NotificationConfig getDesiredNotificationConfig() { - return desiredNotificationConfig_ == null ? com.google.container.v1.NotificationConfig.getDefaultInstance() : desiredNotificationConfig_; - } - /** - *
-   * The desired notification configuration.
-   * 
- * - * .google.container.v1.NotificationConfig desired_notification_config = 55; - */ - @java.lang.Override - public com.google.container.v1.NotificationConfigOrBuilder getDesiredNotificationConfigOrBuilder() { - return getDesiredNotificationConfig(); - } - - public static final int DESIRED_AUTHENTICATOR_GROUPS_CONFIG_FIELD_NUMBER = 63; - private com.google.container.v1.AuthenticatorGroupsConfig desiredAuthenticatorGroupsConfig_; - /** - *
-   * 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 desiredAuthenticatorGroupsConfig_ != null; - } - /** - *
-   * 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 getDesiredAuthenticatorGroupsConfig(); - } - - 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 desiredLoggingConfig_ != null; - } - /** - *
-   * The desired logging configuration.
-   * 
- * - * .google.container.v1.LoggingConfig desired_logging_config = 64; - * @return The desiredLoggingConfig. - */ - @java.lang.Override - public com.google.container.v1.LoggingConfig getDesiredLoggingConfig() { - return desiredLoggingConfig_ == null ? com.google.container.v1.LoggingConfig.getDefaultInstance() : desiredLoggingConfig_; - } - /** - *
-   * The desired logging configuration.
-   * 
- * - * .google.container.v1.LoggingConfig desired_logging_config = 64; - */ - @java.lang.Override - public com.google.container.v1.LoggingConfigOrBuilder getDesiredLoggingConfigOrBuilder() { - return getDesiredLoggingConfig(); - } - - public static final int DESIRED_MONITORING_CONFIG_FIELD_NUMBER = 65; - private com.google.container.v1.MonitoringConfig desiredMonitoringConfig_; - /** - *
-   * The desired monitoring configuration.
-   * 
- * - * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; - * @return Whether the desiredMonitoringConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredMonitoringConfig() { - return desiredMonitoringConfig_ != null; - } - /** - *
-   * The desired monitoring configuration.
-   * 
- * - * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; - * @return The desiredMonitoringConfig. - */ - @java.lang.Override - public com.google.container.v1.MonitoringConfig getDesiredMonitoringConfig() { - return desiredMonitoringConfig_ == null ? com.google.container.v1.MonitoringConfig.getDefaultInstance() : desiredMonitoringConfig_; - } - /** - *
-   * The desired monitoring configuration.
-   * 
- * - * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; - */ - @java.lang.Override - public com.google.container.v1.MonitoringConfigOrBuilder getDesiredMonitoringConfigOrBuilder() { - return getDesiredMonitoringConfig(); - } - - public static final int DESIRED_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 desiredIdentityServiceConfig_ != null; - } - /** - *
-   * 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 getDesiredIdentityServiceConfig(); - } - - public static final int DESIRED_SERVICE_EXTERNAL_IPS_CONFIG_FIELD_NUMBER = 60; - private com.google.container.v1.ServiceExternalIPsConfig desiredServiceExternalIpsConfig_; - /** - *
-   * ServiceExternalIPsConfig specifies the config for the use of Services with
-   * ExternalIPs field.
-   * 
- * - * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * @return Whether the desiredServiceExternalIpsConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredServiceExternalIpsConfig() { - return desiredServiceExternalIpsConfig_ != null; - } - /** - *
-   * ServiceExternalIPsConfig specifies the config for the use of Services with
-   * ExternalIPs field.
-   * 
- * - * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * @return The desiredServiceExternalIpsConfig. - */ - @java.lang.Override - public com.google.container.v1.ServiceExternalIPsConfig getDesiredServiceExternalIpsConfig() { - return desiredServiceExternalIpsConfig_ == null ? com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance() : desiredServiceExternalIpsConfig_; - } - /** - *
-   * ServiceExternalIPsConfig specifies the config for the use of Services with
-   * ExternalIPs field.
-   * 
- * - * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - */ - @java.lang.Override - public com.google.container.v1.ServiceExternalIPsConfigOrBuilder getDesiredServiceExternalIpsConfigOrBuilder() { - return getDesiredServiceExternalIpsConfig(); - } - - public static final int DESIRED_ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER = 71; - 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 ((bitField0_ & 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_; - } - - public static final int DESIRED_MASTER_VERSION_FIELD_NUMBER = 100; - private volatile java.lang.Object desiredMasterVersion_; - /** - *
-   * The Kubernetes version to change the master to.
-   * Users may specify either explicit versions offered by
-   * Kubernetes Engine or version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the default Kubernetes version
-   * 
- * - * string desired_master_version = 100; - * @return The desiredMasterVersion. - */ - @java.lang.Override - public java.lang.String getDesiredMasterVersion() { - java.lang.Object ref = desiredMasterVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - desiredMasterVersion_ = s; - return s; - } - } - /** - *
-   * 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 desiredGcfsConfig_ != null; - } - /** - *
-   * The desired GCFS config for the cluster
-   * 
- * - * .google.container.v1.GcfsConfig desired_gcfs_config = 109; - * @return The desiredGcfsConfig. - */ - @java.lang.Override - public com.google.container.v1.GcfsConfig getDesiredGcfsConfig() { - return desiredGcfsConfig_ == null ? com.google.container.v1.GcfsConfig.getDefaultInstance() : desiredGcfsConfig_; - } - /** - *
-   * The desired GCFS config for the cluster
-   * 
- * - * .google.container.v1.GcfsConfig desired_gcfs_config = 109; - */ - @java.lang.Override - public com.google.container.v1.GcfsConfigOrBuilder getDesiredGcfsConfigOrBuilder() { - return getDesiredGcfsConfig(); - } - - 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 desiredNodePoolAutoConfigNetworkTags_ != null; - } - /** - *
-   * 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 getDesiredNodePoolAutoConfigNetworkTags(); - } - - 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 desiredGatewayApiConfig_ != null; - } - /** - *
-   * 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 getDesiredGatewayApiConfig(); - } - - 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 desiredNodePoolLoggingConfig_ != null; - } - /** - *
-   * 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 getDesiredNodePoolLoggingConfig(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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 (desiredAddonsConfig_ != null) { - 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 (desiredNodePoolAutoscaling_ != null) { - output.writeMessage(9, getDesiredNodePoolAutoscaling()); - } - for (int i = 0; i < desiredLocations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, desiredLocations_.getRaw(i)); - } - if (desiredMasterAuthorizedNetworksConfig_ != null) { - output.writeMessage(12, getDesiredMasterAuthorizedNetworksConfig()); - } - if (desiredClusterAutoscaling_ != null) { - output.writeMessage(15, getDesiredClusterAutoscaling()); - } - if (desiredBinaryAuthorization_ != null) { - output.writeMessage(16, getDesiredBinaryAuthorization()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredLoggingService_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 19, desiredLoggingService_); - } - if (desiredResourceUsageExportConfig_ != null) { - output.writeMessage(21, getDesiredResourceUsageExportConfig()); - } - if (desiredVerticalPodAutoscaling_ != null) { - output.writeMessage(22, getDesiredVerticalPodAutoscaling()); - } - if (desiredPrivateClusterConfig_ != null) { - output.writeMessage(25, getDesiredPrivateClusterConfig()); - } - if (desiredIntraNodeVisibilityConfig_ != null) { - output.writeMessage(26, getDesiredIntraNodeVisibilityConfig()); - } - if (desiredDefaultSnatStatus_ != null) { - output.writeMessage(28, getDesiredDefaultSnatStatus()); - } - if (desiredReleaseChannel_ != null) { - output.writeMessage(31, getDesiredReleaseChannel()); - } - if (desiredL4IlbSubsettingConfig_ != null) { - output.writeMessage(39, getDesiredL4IlbSubsettingConfig()); - } - if (desiredDatabaseEncryption_ != null) { - output.writeMessage(46, getDesiredDatabaseEncryption()); - } - if (desiredWorkloadIdentityConfig_ != null) { - output.writeMessage(47, getDesiredWorkloadIdentityConfig()); - } - if (desiredShieldedNodes_ != null) { - output.writeMessage(48, getDesiredShieldedNodes()); - } - if (desiredCostManagementConfig_ != null) { - 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 (desiredDnsConfig_ != null) { - output.writeMessage(53, getDesiredDnsConfig()); - } - if (desiredNotificationConfig_ != null) { - output.writeMessage(55, getDesiredNotificationConfig()); - } - if (desiredServiceExternalIpsConfig_ != null) { - output.writeMessage(60, getDesiredServiceExternalIpsConfig()); - } - if (desiredAuthenticatorGroupsConfig_ != null) { - output.writeMessage(63, getDesiredAuthenticatorGroupsConfig()); - } - if (desiredLoggingConfig_ != null) { - output.writeMessage(64, getDesiredLoggingConfig()); - } - if (desiredMonitoringConfig_ != null) { - output.writeMessage(65, getDesiredMonitoringConfig()); - } - if (desiredIdentityServiceConfig_ != null) { - output.writeMessage(66, getDesiredIdentityServiceConfig()); - } - if (desiredMeshCertificates_ != null) { - output.writeMessage(67, getDesiredMeshCertificates()); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeBool(71, desiredEnablePrivateEndpoint_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredMasterVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 100, desiredMasterVersion_); - } - if (desiredGcfsConfig_ != null) { - output.writeMessage(109, getDesiredGcfsConfig()); - } - if (desiredNodePoolAutoConfigNetworkTags_ != null) { - output.writeMessage(110, getDesiredNodePoolAutoConfigNetworkTags()); - } - if (desiredGatewayApiConfig_ != null) { - output.writeMessage(114, getDesiredGatewayApiConfig()); - } - if (desiredNodePoolLoggingConfig_ != null) { - output.writeMessage(116, getDesiredNodePoolLoggingConfig()); - } - getUnknownFields().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 (desiredAddonsConfig_ != null) { - 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 (desiredNodePoolAutoscaling_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getDesiredNodePoolAutoscaling()); - } - { - int dataSize = 0; - for (int i = 0; i < desiredLocations_.size(); i++) { - dataSize += computeStringSizeNoTag(desiredLocations_.getRaw(i)); - } - size += dataSize; - size += 1 * getDesiredLocationsList().size(); - } - if (desiredMasterAuthorizedNetworksConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getDesiredMasterAuthorizedNetworksConfig()); - } - if (desiredClusterAutoscaling_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, getDesiredClusterAutoscaling()); - } - if (desiredBinaryAuthorization_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getDesiredBinaryAuthorization()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredLoggingService_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, desiredLoggingService_); - } - if (desiredResourceUsageExportConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, getDesiredResourceUsageExportConfig()); - } - if (desiredVerticalPodAutoscaling_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, getDesiredVerticalPodAutoscaling()); - } - if (desiredPrivateClusterConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(25, getDesiredPrivateClusterConfig()); - } - if (desiredIntraNodeVisibilityConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(26, getDesiredIntraNodeVisibilityConfig()); - } - if (desiredDefaultSnatStatus_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(28, getDesiredDefaultSnatStatus()); - } - if (desiredReleaseChannel_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(31, getDesiredReleaseChannel()); - } - if (desiredL4IlbSubsettingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(39, getDesiredL4IlbSubsettingConfig()); - } - if (desiredDatabaseEncryption_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(46, getDesiredDatabaseEncryption()); - } - if (desiredWorkloadIdentityConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(47, getDesiredWorkloadIdentityConfig()); - } - if (desiredShieldedNodes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(48, getDesiredShieldedNodes()); - } - if (desiredCostManagementConfig_ != null) { - 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 (desiredDnsConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(53, getDesiredDnsConfig()); - } - if (desiredNotificationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(55, getDesiredNotificationConfig()); - } - if (desiredServiceExternalIpsConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(60, getDesiredServiceExternalIpsConfig()); - } - if (desiredAuthenticatorGroupsConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(63, getDesiredAuthenticatorGroupsConfig()); - } - if (desiredLoggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(64, getDesiredLoggingConfig()); - } - if (desiredMonitoringConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(65, getDesiredMonitoringConfig()); - } - if (desiredIdentityServiceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(66, getDesiredIdentityServiceConfig()); - } - if (desiredMeshCertificates_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(67, getDesiredMeshCertificates()); - } - if (((bitField0_ & 0x00000001) != 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 (desiredGcfsConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(109, getDesiredGcfsConfig()); - } - if (desiredNodePoolAutoConfigNetworkTags_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(110, getDesiredNodePoolAutoConfigNetworkTags()); - } - if (desiredGatewayApiConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(114, getDesiredGatewayApiConfig()); - } - if (desiredNodePoolLoggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(116, getDesiredNodePoolLoggingConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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 (hasDesiredNodePoolLoggingConfig() != other.hasDesiredNodePoolLoggingConfig()) return false; - if (hasDesiredNodePoolLoggingConfig()) { - if (!getDesiredNodePoolLoggingConfig() - .equals(other.getDesiredNodePoolLoggingConfig())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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(); - } - if (hasDesiredNodePoolLoggingConfig()) { - hash = (37 * hash) + DESIRED_NODE_POOL_LOGGING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredNodePoolLoggingConfig().hashCode(); - } - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - desiredNodeVersion_ = ""; - - desiredMonitoringService_ = ""; - - if (desiredAddonsConfigBuilder_ == null) { - desiredAddonsConfig_ = null; - } else { - desiredAddonsConfig_ = null; - desiredAddonsConfigBuilder_ = null; - } - desiredNodePoolId_ = ""; - - desiredImageType_ = ""; - - if (desiredDatabaseEncryptionBuilder_ == null) { - desiredDatabaseEncryption_ = null; - } else { - desiredDatabaseEncryption_ = null; - desiredDatabaseEncryptionBuilder_ = null; - } - if (desiredWorkloadIdentityConfigBuilder_ == null) { - desiredWorkloadIdentityConfig_ = null; - } else { - desiredWorkloadIdentityConfig_ = null; - desiredWorkloadIdentityConfigBuilder_ = null; - } - if (desiredMeshCertificatesBuilder_ == null) { - desiredMeshCertificates_ = null; - } else { - desiredMeshCertificates_ = null; - desiredMeshCertificatesBuilder_ = null; - } - if (desiredShieldedNodesBuilder_ == null) { - desiredShieldedNodes_ = null; - } else { - desiredShieldedNodes_ = null; - desiredShieldedNodesBuilder_ = null; - } - if (desiredCostManagementConfigBuilder_ == null) { - desiredCostManagementConfig_ = null; - } else { - desiredCostManagementConfig_ = null; - desiredCostManagementConfigBuilder_ = null; - } - if (desiredDnsConfigBuilder_ == null) { - desiredDnsConfig_ = null; - } else { - desiredDnsConfig_ = null; - desiredDnsConfigBuilder_ = null; - } - if (desiredNodePoolAutoscalingBuilder_ == null) { - desiredNodePoolAutoscaling_ = null; - } else { - desiredNodePoolAutoscaling_ = null; - desiredNodePoolAutoscalingBuilder_ = null; - } - desiredLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { - desiredMasterAuthorizedNetworksConfig_ = null; - } else { - desiredMasterAuthorizedNetworksConfig_ = null; - desiredMasterAuthorizedNetworksConfigBuilder_ = null; - } - if (desiredClusterAutoscalingBuilder_ == null) { - desiredClusterAutoscaling_ = null; - } else { - desiredClusterAutoscaling_ = null; - desiredClusterAutoscalingBuilder_ = null; - } - if (desiredBinaryAuthorizationBuilder_ == null) { - desiredBinaryAuthorization_ = null; - } else { - desiredBinaryAuthorization_ = null; - desiredBinaryAuthorizationBuilder_ = null; - } - desiredLoggingService_ = ""; - - if (desiredResourceUsageExportConfigBuilder_ == null) { - desiredResourceUsageExportConfig_ = null; - } else { - desiredResourceUsageExportConfig_ = null; - desiredResourceUsageExportConfigBuilder_ = null; - } - if (desiredVerticalPodAutoscalingBuilder_ == null) { - desiredVerticalPodAutoscaling_ = null; - } else { - desiredVerticalPodAutoscaling_ = null; - desiredVerticalPodAutoscalingBuilder_ = null; - } - if (desiredPrivateClusterConfigBuilder_ == null) { - desiredPrivateClusterConfig_ = null; - } else { - desiredPrivateClusterConfig_ = null; - desiredPrivateClusterConfigBuilder_ = null; - } - if (desiredIntraNodeVisibilityConfigBuilder_ == null) { - desiredIntraNodeVisibilityConfig_ = null; - } else { - desiredIntraNodeVisibilityConfig_ = null; - desiredIntraNodeVisibilityConfigBuilder_ = null; - } - if (desiredDefaultSnatStatusBuilder_ == null) { - desiredDefaultSnatStatus_ = null; - } else { - desiredDefaultSnatStatus_ = null; - desiredDefaultSnatStatusBuilder_ = null; - } - if (desiredReleaseChannelBuilder_ == null) { - desiredReleaseChannel_ = null; - } else { - desiredReleaseChannel_ = null; - desiredReleaseChannelBuilder_ = null; - } - if (desiredL4IlbSubsettingConfigBuilder_ == null) { - desiredL4IlbSubsettingConfig_ = null; - } else { - desiredL4IlbSubsettingConfig_ = null; - desiredL4IlbSubsettingConfigBuilder_ = null; - } - desiredDatapathProvider_ = 0; - - desiredPrivateIpv6GoogleAccess_ = 0; - - if (desiredNotificationConfigBuilder_ == null) { - desiredNotificationConfig_ = null; - } else { - desiredNotificationConfig_ = null; - desiredNotificationConfigBuilder_ = null; - } - if (desiredAuthenticatorGroupsConfigBuilder_ == null) { - desiredAuthenticatorGroupsConfig_ = null; - } else { - desiredAuthenticatorGroupsConfig_ = null; - desiredAuthenticatorGroupsConfigBuilder_ = null; - } - if (desiredLoggingConfigBuilder_ == null) { - desiredLoggingConfig_ = null; - } else { - desiredLoggingConfig_ = null; - desiredLoggingConfigBuilder_ = null; - } - if (desiredMonitoringConfigBuilder_ == null) { - desiredMonitoringConfig_ = null; - } else { - desiredMonitoringConfig_ = null; - desiredMonitoringConfigBuilder_ = null; - } - if (desiredIdentityServiceConfigBuilder_ == null) { - desiredIdentityServiceConfig_ = null; - } else { - desiredIdentityServiceConfig_ = null; - desiredIdentityServiceConfigBuilder_ = null; - } - if (desiredServiceExternalIpsConfigBuilder_ == null) { - desiredServiceExternalIpsConfig_ = null; - } else { - desiredServiceExternalIpsConfig_ = null; - desiredServiceExternalIpsConfigBuilder_ = null; - } - desiredEnablePrivateEndpoint_ = false; - bitField0_ = (bitField0_ & ~0x00000002); - desiredMasterVersion_ = ""; - - if (desiredGcfsConfigBuilder_ == null) { - desiredGcfsConfig_ = null; - } else { - desiredGcfsConfig_ = null; - desiredGcfsConfigBuilder_ = null; - } - if (desiredNodePoolAutoConfigNetworkTagsBuilder_ == null) { - desiredNodePoolAutoConfigNetworkTags_ = null; - } else { - desiredNodePoolAutoConfigNetworkTags_ = null; - desiredNodePoolAutoConfigNetworkTagsBuilder_ = null; - } - if (desiredGatewayApiConfigBuilder_ == null) { - desiredGatewayApiConfig_ = null; - } else { - desiredGatewayApiConfig_ = null; - desiredGatewayApiConfigBuilder_ = null; - } - if (desiredNodePoolLoggingConfigBuilder_ == null) { - desiredNodePoolLoggingConfig_ = null; - } else { - desiredNodePoolLoggingConfig_ = null; - desiredNodePoolLoggingConfigBuilder_ = null; - } - 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); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.desiredNodeVersion_ = desiredNodeVersion_; - result.desiredMonitoringService_ = desiredMonitoringService_; - if (desiredAddonsConfigBuilder_ == null) { - result.desiredAddonsConfig_ = desiredAddonsConfig_; - } else { - result.desiredAddonsConfig_ = desiredAddonsConfigBuilder_.build(); - } - result.desiredNodePoolId_ = desiredNodePoolId_; - result.desiredImageType_ = desiredImageType_; - if (desiredDatabaseEncryptionBuilder_ == null) { - result.desiredDatabaseEncryption_ = desiredDatabaseEncryption_; - } else { - result.desiredDatabaseEncryption_ = desiredDatabaseEncryptionBuilder_.build(); - } - if (desiredWorkloadIdentityConfigBuilder_ == null) { - result.desiredWorkloadIdentityConfig_ = desiredWorkloadIdentityConfig_; - } else { - result.desiredWorkloadIdentityConfig_ = desiredWorkloadIdentityConfigBuilder_.build(); - } - if (desiredMeshCertificatesBuilder_ == null) { - result.desiredMeshCertificates_ = desiredMeshCertificates_; - } else { - result.desiredMeshCertificates_ = desiredMeshCertificatesBuilder_.build(); - } - if (desiredShieldedNodesBuilder_ == null) { - result.desiredShieldedNodes_ = desiredShieldedNodes_; - } else { - result.desiredShieldedNodes_ = desiredShieldedNodesBuilder_.build(); - } - if (desiredCostManagementConfigBuilder_ == null) { - result.desiredCostManagementConfig_ = desiredCostManagementConfig_; - } else { - result.desiredCostManagementConfig_ = desiredCostManagementConfigBuilder_.build(); - } - if (desiredDnsConfigBuilder_ == null) { - result.desiredDnsConfig_ = desiredDnsConfig_; - } else { - result.desiredDnsConfig_ = desiredDnsConfigBuilder_.build(); - } - if (desiredNodePoolAutoscalingBuilder_ == null) { - result.desiredNodePoolAutoscaling_ = desiredNodePoolAutoscaling_; - } else { - result.desiredNodePoolAutoscaling_ = desiredNodePoolAutoscalingBuilder_.build(); - } - if (((bitField0_ & 0x00000001) != 0)) { - desiredLocations_ = desiredLocations_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.desiredLocations_ = desiredLocations_; - if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { - result.desiredMasterAuthorizedNetworksConfig_ = desiredMasterAuthorizedNetworksConfig_; - } else { - result.desiredMasterAuthorizedNetworksConfig_ = desiredMasterAuthorizedNetworksConfigBuilder_.build(); - } - if (desiredClusterAutoscalingBuilder_ == null) { - result.desiredClusterAutoscaling_ = desiredClusterAutoscaling_; - } else { - result.desiredClusterAutoscaling_ = desiredClusterAutoscalingBuilder_.build(); - } - if (desiredBinaryAuthorizationBuilder_ == null) { - result.desiredBinaryAuthorization_ = desiredBinaryAuthorization_; - } else { - result.desiredBinaryAuthorization_ = desiredBinaryAuthorizationBuilder_.build(); - } - result.desiredLoggingService_ = desiredLoggingService_; - if (desiredResourceUsageExportConfigBuilder_ == null) { - result.desiredResourceUsageExportConfig_ = desiredResourceUsageExportConfig_; - } else { - result.desiredResourceUsageExportConfig_ = desiredResourceUsageExportConfigBuilder_.build(); - } - if (desiredVerticalPodAutoscalingBuilder_ == null) { - result.desiredVerticalPodAutoscaling_ = desiredVerticalPodAutoscaling_; - } else { - result.desiredVerticalPodAutoscaling_ = desiredVerticalPodAutoscalingBuilder_.build(); - } - if (desiredPrivateClusterConfigBuilder_ == null) { - result.desiredPrivateClusterConfig_ = desiredPrivateClusterConfig_; - } else { - result.desiredPrivateClusterConfig_ = desiredPrivateClusterConfigBuilder_.build(); - } - if (desiredIntraNodeVisibilityConfigBuilder_ == null) { - result.desiredIntraNodeVisibilityConfig_ = desiredIntraNodeVisibilityConfig_; - } else { - result.desiredIntraNodeVisibilityConfig_ = desiredIntraNodeVisibilityConfigBuilder_.build(); - } - if (desiredDefaultSnatStatusBuilder_ == null) { - result.desiredDefaultSnatStatus_ = desiredDefaultSnatStatus_; - } else { - result.desiredDefaultSnatStatus_ = desiredDefaultSnatStatusBuilder_.build(); - } - if (desiredReleaseChannelBuilder_ == null) { - result.desiredReleaseChannel_ = desiredReleaseChannel_; - } else { - result.desiredReleaseChannel_ = desiredReleaseChannelBuilder_.build(); - } - if (desiredL4IlbSubsettingConfigBuilder_ == null) { - result.desiredL4IlbSubsettingConfig_ = desiredL4IlbSubsettingConfig_; - } else { - result.desiredL4IlbSubsettingConfig_ = desiredL4IlbSubsettingConfigBuilder_.build(); - } - result.desiredDatapathProvider_ = desiredDatapathProvider_; - result.desiredPrivateIpv6GoogleAccess_ = desiredPrivateIpv6GoogleAccess_; - if (desiredNotificationConfigBuilder_ == null) { - result.desiredNotificationConfig_ = desiredNotificationConfig_; - } else { - result.desiredNotificationConfig_ = desiredNotificationConfigBuilder_.build(); - } - if (desiredAuthenticatorGroupsConfigBuilder_ == null) { - result.desiredAuthenticatorGroupsConfig_ = desiredAuthenticatorGroupsConfig_; - } else { - result.desiredAuthenticatorGroupsConfig_ = desiredAuthenticatorGroupsConfigBuilder_.build(); - } - if (desiredLoggingConfigBuilder_ == null) { - result.desiredLoggingConfig_ = desiredLoggingConfig_; - } else { - result.desiredLoggingConfig_ = desiredLoggingConfigBuilder_.build(); - } - if (desiredMonitoringConfigBuilder_ == null) { - result.desiredMonitoringConfig_ = desiredMonitoringConfig_; - } else { - result.desiredMonitoringConfig_ = desiredMonitoringConfigBuilder_.build(); - } - if (desiredIdentityServiceConfigBuilder_ == null) { - result.desiredIdentityServiceConfig_ = desiredIdentityServiceConfig_; - } else { - result.desiredIdentityServiceConfig_ = desiredIdentityServiceConfigBuilder_.build(); - } - if (desiredServiceExternalIpsConfigBuilder_ == null) { - result.desiredServiceExternalIpsConfig_ = desiredServiceExternalIpsConfig_; - } else { - result.desiredServiceExternalIpsConfig_ = desiredServiceExternalIpsConfigBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.desiredEnablePrivateEndpoint_ = desiredEnablePrivateEndpoint_; - to_bitField0_ |= 0x00000001; - } - result.desiredMasterVersion_ = desiredMasterVersion_; - if (desiredGcfsConfigBuilder_ == null) { - result.desiredGcfsConfig_ = desiredGcfsConfig_; - } else { - result.desiredGcfsConfig_ = desiredGcfsConfigBuilder_.build(); - } - if (desiredNodePoolAutoConfigNetworkTagsBuilder_ == null) { - result.desiredNodePoolAutoConfigNetworkTags_ = desiredNodePoolAutoConfigNetworkTags_; - } else { - result.desiredNodePoolAutoConfigNetworkTags_ = desiredNodePoolAutoConfigNetworkTagsBuilder_.build(); - } - if (desiredGatewayApiConfigBuilder_ == null) { - result.desiredGatewayApiConfig_ = desiredGatewayApiConfig_; - } else { - result.desiredGatewayApiConfig_ = desiredGatewayApiConfigBuilder_.build(); - } - if (desiredNodePoolLoggingConfigBuilder_ == null) { - result.desiredNodePoolLoggingConfig_ = desiredNodePoolLoggingConfig_; - } else { - result.desiredNodePoolLoggingConfig_ = desiredNodePoolLoggingConfigBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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_; - onChanged(); - } - if (!other.getDesiredMonitoringService().isEmpty()) { - desiredMonitoringService_ = other.desiredMonitoringService_; - onChanged(); - } - if (other.hasDesiredAddonsConfig()) { - mergeDesiredAddonsConfig(other.getDesiredAddonsConfig()); - } - if (!other.getDesiredNodePoolId().isEmpty()) { - desiredNodePoolId_ = other.desiredNodePoolId_; - onChanged(); - } - if (!other.getDesiredImageType().isEmpty()) { - desiredImageType_ = other.desiredImageType_; - onChanged(); - } - if (other.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_ = (bitField0_ & ~0x00000001); - } 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_; - 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_; - onChanged(); - } - if (other.hasDesiredGcfsConfig()) { - mergeDesiredGcfsConfig(other.getDesiredGcfsConfig()); - } - if (other.hasDesiredNodePoolAutoConfigNetworkTags()) { - mergeDesiredNodePoolAutoConfigNetworkTags(other.getDesiredNodePoolAutoConfigNetworkTags()); - } - if (other.hasDesiredGatewayApiConfig()) { - mergeDesiredGatewayApiConfig(other.getDesiredGatewayApiConfig()); - } - if (other.hasDesiredNodePoolLoggingConfig()) { - mergeDesiredNodePoolLoggingConfig(other.getDesiredNodePoolLoggingConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == 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(); - - break; - } // case 34 - case 42: { - desiredMonitoringService_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: { - input.readMessage( - getDesiredAddonsConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 50 - case 58: { - desiredNodePoolId_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 66: { - desiredImageType_ = input.readStringRequireUtf8(); - - break; - } // case 66 - case 74: { - input.readMessage( - getDesiredNodePoolAutoscalingFieldBuilder().getBuilder(), - extensionRegistry); - - 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); - - break; - } // case 98 - case 122: { - input.readMessage( - getDesiredClusterAutoscalingFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 122 - case 130: { - input.readMessage( - getDesiredBinaryAuthorizationFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 130 - case 154: { - desiredLoggingService_ = input.readStringRequireUtf8(); - - break; - } // case 154 - case 170: { - input.readMessage( - getDesiredResourceUsageExportConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 170 - case 178: { - input.readMessage( - getDesiredVerticalPodAutoscalingFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 178 - case 202: { - input.readMessage( - getDesiredPrivateClusterConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 202 - case 210: { - input.readMessage( - getDesiredIntraNodeVisibilityConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 210 - case 226: { - input.readMessage( - getDesiredDefaultSnatStatusFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 226 - case 250: { - input.readMessage( - getDesiredReleaseChannelFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 250 - case 314: { - input.readMessage( - getDesiredL4IlbSubsettingConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 314 - case 370: { - input.readMessage( - getDesiredDatabaseEncryptionFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 370 - case 378: { - input.readMessage( - getDesiredWorkloadIdentityConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 378 - case 386: { - input.readMessage( - getDesiredShieldedNodesFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 386 - case 394: { - input.readMessage( - getDesiredCostManagementConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 394 - case 400: { - desiredDatapathProvider_ = input.readEnum(); - - break; - } // case 400 - case 408: { - desiredPrivateIpv6GoogleAccess_ = input.readEnum(); - - break; - } // case 408 - case 426: { - input.readMessage( - getDesiredDnsConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 426 - case 442: { - input.readMessage( - getDesiredNotificationConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 442 - case 482: { - input.readMessage( - getDesiredServiceExternalIpsConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 482 - case 506: { - input.readMessage( - getDesiredAuthenticatorGroupsConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 506 - case 514: { - input.readMessage( - getDesiredLoggingConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 514 - case 522: { - input.readMessage( - getDesiredMonitoringConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 522 - case 530: { - input.readMessage( - getDesiredIdentityServiceConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 530 - case 538: { - input.readMessage( - getDesiredMeshCertificatesFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 538 - case 568: { - desiredEnablePrivateEndpoint_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 568 - case 802: { - desiredMasterVersion_ = input.readStringRequireUtf8(); - - break; - } // case 802 - case 874: { - input.readMessage( - getDesiredGcfsConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 874 - case 882: { - input.readMessage( - getDesiredNodePoolAutoConfigNetworkTagsFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 882 - case 914: { - input.readMessage( - getDesiredGatewayApiConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 914 - case 930: { - input.readMessage( - getDesiredNodePoolLoggingConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 930 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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 desiredNodeVersion_ = ""; - /** - *
-     * The Kubernetes version to change the nodes to (typically an
-     * upgrade).
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the Kubernetes master version
-     * 
- * - * string desired_node_version = 4; - * @return The desiredNodeVersion. - */ - public java.lang.String getDesiredNodeVersion() { - java.lang.Object ref = desiredNodeVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - desiredNodeVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The Kubernetes version to change the nodes to (typically an
-     * upgrade).
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the Kubernetes master version
-     * 
- * - * string desired_node_version = 4; - * @return The bytes for desiredNodeVersion. - */ - public com.google.protobuf.ByteString - getDesiredNodeVersionBytes() { - java.lang.Object ref = desiredNodeVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - desiredNodeVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The Kubernetes version to change the nodes to (typically an
-     * upgrade).
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the Kubernetes master version
-     * 
- * - * string desired_node_version = 4; - * @param value The desiredNodeVersion to set. - * @return This builder for chaining. - */ - public Builder setDesiredNodeVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - desiredNodeVersion_ = value; - onChanged(); - return this; - } - /** - *
-     * The Kubernetes version to change the nodes to (typically an
-     * upgrade).
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the Kubernetes master version
-     * 
- * - * string desired_node_version = 4; - * @return This builder for chaining. - */ - public Builder clearDesiredNodeVersion() { - - desiredNodeVersion_ = getDefaultInstance().getDesiredNodeVersion(); - onChanged(); - return this; - } - /** - *
-     * The Kubernetes version to change the nodes to (typically an
-     * upgrade).
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the Kubernetes master version
-     * 
- * - * string desired_node_version = 4; - * @param value The bytes for desiredNodeVersion to set. - * @return This builder for chaining. - */ - public Builder setDesiredNodeVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - desiredNodeVersion_ = value; - onChanged(); - return this; - } - - private java.lang.Object desiredMonitoringService_ = ""; - /** - *
-     * The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string desired_monitoring_service = 5; - * @return The desiredMonitoringService. - */ - public java.lang.String getDesiredMonitoringService() { - java.lang.Object ref = desiredMonitoringService_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - desiredMonitoringService_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string desired_monitoring_service = 5; - * @return The bytes for desiredMonitoringService. - */ - public com.google.protobuf.ByteString - getDesiredMonitoringServiceBytes() { - java.lang.Object ref = desiredMonitoringService_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - desiredMonitoringService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string desired_monitoring_service = 5; - * @param value The desiredMonitoringService to set. - * @return This builder for chaining. - */ - public Builder setDesiredMonitoringService( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - desiredMonitoringService_ = value; - onChanged(); - return this; - } - /** - *
-     * The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string desired_monitoring_service = 5; - * @return This builder for chaining. - */ - public Builder clearDesiredMonitoringService() { - - desiredMonitoringService_ = getDefaultInstance().getDesiredMonitoringService(); - onChanged(); - return this; - } - /** - *
-     * The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string desired_monitoring_service = 5; - * @param value The bytes for desiredMonitoringService to set. - * @return This builder for chaining. - */ - public Builder setDesiredMonitoringServiceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - desiredMonitoringService_ = value; - onChanged(); - return this; - } - - private com.google.container.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 desiredAddonsConfigBuilder_ != null || desiredAddonsConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - desiredAddonsConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - desiredAddonsConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (desiredAddonsConfig_ != null) { - desiredAddonsConfig_ = - com.google.container.v1.AddonsConfig.newBuilder(desiredAddonsConfig_).mergeFrom(value).buildPartial(); - } else { - desiredAddonsConfig_ = value; - } - onChanged(); - } else { - desiredAddonsConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig desired_addons_config = 6; - */ - public Builder clearDesiredAddonsConfig() { - if (desiredAddonsConfigBuilder_ == null) { - desiredAddonsConfig_ = null; - onChanged(); - } else { - desiredAddonsConfig_ = null; - desiredAddonsConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig desired_addons_config = 6; - */ - public com.google.container.v1.AddonsConfig.Builder getDesiredAddonsConfigBuilder() { - - 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; - 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(); - 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; - onChanged(); - return this; - } - - private java.lang.Object desiredImageType_ = ""; - /** - *
-     * The desired image type for the node pool.
-     * NOTE: Set the "desired_node_pool" field as well.
-     * 
- * - * string desired_image_type = 8; - * @return The desiredImageType. - */ - public java.lang.String getDesiredImageType() { - java.lang.Object ref = desiredImageType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - desiredImageType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The desired image type for the node pool.
-     * NOTE: Set the "desired_node_pool" field as well.
-     * 
- * - * string desired_image_type = 8; - * @return The bytes for desiredImageType. - */ - public com.google.protobuf.ByteString - getDesiredImageTypeBytes() { - java.lang.Object ref = desiredImageType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - desiredImageType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The desired image type for the node pool.
-     * NOTE: Set the "desired_node_pool" field as well.
-     * 
- * - * string desired_image_type = 8; - * @param value The desiredImageType to set. - * @return This builder for chaining. - */ - public Builder setDesiredImageType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - desiredImageType_ = value; - onChanged(); - return this; - } - /** - *
-     * The desired image type for the node pool.
-     * NOTE: Set the "desired_node_pool" field as well.
-     * 
- * - * string desired_image_type = 8; - * @return This builder for chaining. - */ - public Builder clearDesiredImageType() { - - desiredImageType_ = getDefaultInstance().getDesiredImageType(); - onChanged(); - return this; - } - /** - *
-     * The desired image type for the node pool.
-     * NOTE: Set the "desired_node_pool" field as well.
-     * 
- * - * string desired_image_type = 8; - * @param value The bytes for desiredImageType to set. - * @return This builder for chaining. - */ - public Builder setDesiredImageTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - desiredImageType_ = value; - onChanged(); - return this; - } - - private com.google.container.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 desiredDatabaseEncryptionBuilder_ != null || desiredDatabaseEncryption_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - desiredDatabaseEncryptionBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - desiredDatabaseEncryptionBuilder_.setMessage(builderForValue.build()); - } - - 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 (desiredDatabaseEncryption_ != null) { - desiredDatabaseEncryption_ = - com.google.container.v1.DatabaseEncryption.newBuilder(desiredDatabaseEncryption_).mergeFrom(value).buildPartial(); - } else { - desiredDatabaseEncryption_ = value; - } - onChanged(); - } else { - desiredDatabaseEncryptionBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - */ - public Builder clearDesiredDatabaseEncryption() { - if (desiredDatabaseEncryptionBuilder_ == null) { - desiredDatabaseEncryption_ = null; - onChanged(); - } else { - desiredDatabaseEncryption_ = null; - desiredDatabaseEncryptionBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - */ - public com.google.container.v1.DatabaseEncryption.Builder getDesiredDatabaseEncryptionBuilder() { - - 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 desiredWorkloadIdentityConfigBuilder_ != null || desiredWorkloadIdentityConfig_ != null; - } - /** - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * @return The desiredWorkloadIdentityConfig. - */ - public com.google.container.v1.WorkloadIdentityConfig getDesiredWorkloadIdentityConfig() { - if (desiredWorkloadIdentityConfigBuilder_ == null) { - return desiredWorkloadIdentityConfig_ == null ? com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() : desiredWorkloadIdentityConfig_; - } else { - return desiredWorkloadIdentityConfigBuilder_.getMessage(); - } - } - /** - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - */ - public Builder setDesiredWorkloadIdentityConfig(com.google.container.v1.WorkloadIdentityConfig value) { - if (desiredWorkloadIdentityConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredWorkloadIdentityConfig_ = value; - onChanged(); - } else { - desiredWorkloadIdentityConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - */ - public Builder setDesiredWorkloadIdentityConfig( - com.google.container.v1.WorkloadIdentityConfig.Builder builderForValue) { - if (desiredWorkloadIdentityConfigBuilder_ == null) { - desiredWorkloadIdentityConfig_ = builderForValue.build(); - onChanged(); - } else { - desiredWorkloadIdentityConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - */ - public Builder mergeDesiredWorkloadIdentityConfig(com.google.container.v1.WorkloadIdentityConfig value) { - if (desiredWorkloadIdentityConfigBuilder_ == null) { - if (desiredWorkloadIdentityConfig_ != null) { - desiredWorkloadIdentityConfig_ = - com.google.container.v1.WorkloadIdentityConfig.newBuilder(desiredWorkloadIdentityConfig_).mergeFrom(value).buildPartial(); - } else { - desiredWorkloadIdentityConfig_ = value; - } - onChanged(); - } else { - desiredWorkloadIdentityConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - */ - public Builder clearDesiredWorkloadIdentityConfig() { - if (desiredWorkloadIdentityConfigBuilder_ == null) { - desiredWorkloadIdentityConfig_ = null; - onChanged(); - } else { - desiredWorkloadIdentityConfig_ = null; - desiredWorkloadIdentityConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - */ - public com.google.container.v1.WorkloadIdentityConfig.Builder getDesiredWorkloadIdentityConfigBuilder() { - - onChanged(); - return getDesiredWorkloadIdentityConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - */ - public com.google.container.v1.WorkloadIdentityConfigOrBuilder getDesiredWorkloadIdentityConfigOrBuilder() { - if (desiredWorkloadIdentityConfigBuilder_ != null) { - return desiredWorkloadIdentityConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredWorkloadIdentityConfig_ == null ? - com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() : desiredWorkloadIdentityConfig_; - } - } - /** - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadIdentityConfig, com.google.container.v1.WorkloadIdentityConfig.Builder, com.google.container.v1.WorkloadIdentityConfigOrBuilder> - getDesiredWorkloadIdentityConfigFieldBuilder() { - if (desiredWorkloadIdentityConfigBuilder_ == null) { - desiredWorkloadIdentityConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadIdentityConfig, com.google.container.v1.WorkloadIdentityConfig.Builder, com.google.container.v1.WorkloadIdentityConfigOrBuilder>( - getDesiredWorkloadIdentityConfig(), - getParentForChildren(), - isClean()); - desiredWorkloadIdentityConfig_ = null; - } - return desiredWorkloadIdentityConfigBuilder_; - } - - private com.google.container.v1.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 desiredMeshCertificatesBuilder_ != null || desiredMeshCertificates_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - desiredMeshCertificatesBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; - */ - public Builder setDesiredMeshCertificates( - com.google.container.v1.MeshCertificates.Builder builderForValue) { - if (desiredMeshCertificatesBuilder_ == null) { - desiredMeshCertificates_ = builderForValue.build(); - onChanged(); - } else { - desiredMeshCertificatesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; - */ - public Builder mergeDesiredMeshCertificates(com.google.container.v1.MeshCertificates value) { - if (desiredMeshCertificatesBuilder_ == null) { - if (desiredMeshCertificates_ != null) { - desiredMeshCertificates_ = - com.google.container.v1.MeshCertificates.newBuilder(desiredMeshCertificates_).mergeFrom(value).buildPartial(); - } else { - desiredMeshCertificates_ = value; - } - onChanged(); - } else { - desiredMeshCertificatesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; - */ - public Builder clearDesiredMeshCertificates() { - if (desiredMeshCertificatesBuilder_ == null) { - desiredMeshCertificates_ = null; - onChanged(); - } else { - desiredMeshCertificates_ = null; - desiredMeshCertificatesBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; - */ - public com.google.container.v1.MeshCertificates.Builder getDesiredMeshCertificatesBuilder() { - - onChanged(); - return getDesiredMeshCertificatesFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; - */ - public com.google.container.v1.MeshCertificatesOrBuilder getDesiredMeshCertificatesOrBuilder() { - if (desiredMeshCertificatesBuilder_ != null) { - return desiredMeshCertificatesBuilder_.getMessageOrBuilder(); - } else { - return desiredMeshCertificates_ == null ? - com.google.container.v1.MeshCertificates.getDefaultInstance() : desiredMeshCertificates_; - } - } - /** - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MeshCertificates, com.google.container.v1.MeshCertificates.Builder, com.google.container.v1.MeshCertificatesOrBuilder> - getDesiredMeshCertificatesFieldBuilder() { - if (desiredMeshCertificatesBuilder_ == null) { - desiredMeshCertificatesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MeshCertificates, com.google.container.v1.MeshCertificates.Builder, com.google.container.v1.MeshCertificatesOrBuilder>( - getDesiredMeshCertificates(), - getParentForChildren(), - isClean()); - desiredMeshCertificates_ = null; - } - return desiredMeshCertificatesBuilder_; - } - - private com.google.container.v1.ShieldedNodes desiredShieldedNodes_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedNodes, com.google.container.v1.ShieldedNodes.Builder, com.google.container.v1.ShieldedNodesOrBuilder> desiredShieldedNodesBuilder_; - /** - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - * @return Whether the desiredShieldedNodes field is set. - */ - public boolean hasDesiredShieldedNodes() { - return desiredShieldedNodesBuilder_ != null || desiredShieldedNodes_ != null; - } - /** - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - * @return The desiredShieldedNodes. - */ - public com.google.container.v1.ShieldedNodes getDesiredShieldedNodes() { - if (desiredShieldedNodesBuilder_ == null) { - return desiredShieldedNodes_ == null ? com.google.container.v1.ShieldedNodes.getDefaultInstance() : desiredShieldedNodes_; - } else { - return desiredShieldedNodesBuilder_.getMessage(); - } - } - /** - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - */ - public Builder setDesiredShieldedNodes(com.google.container.v1.ShieldedNodes value) { - if (desiredShieldedNodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredShieldedNodes_ = value; - onChanged(); - } else { - desiredShieldedNodesBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - */ - public Builder setDesiredShieldedNodes( - com.google.container.v1.ShieldedNodes.Builder builderForValue) { - if (desiredShieldedNodesBuilder_ == null) { - desiredShieldedNodes_ = builderForValue.build(); - onChanged(); - } else { - desiredShieldedNodesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - */ - public Builder mergeDesiredShieldedNodes(com.google.container.v1.ShieldedNodes value) { - if (desiredShieldedNodesBuilder_ == null) { - if (desiredShieldedNodes_ != null) { - desiredShieldedNodes_ = - com.google.container.v1.ShieldedNodes.newBuilder(desiredShieldedNodes_).mergeFrom(value).buildPartial(); - } else { - desiredShieldedNodes_ = value; - } - onChanged(); - } else { - desiredShieldedNodesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - */ - public Builder clearDesiredShieldedNodes() { - if (desiredShieldedNodesBuilder_ == null) { - desiredShieldedNodes_ = null; - onChanged(); - } else { - desiredShieldedNodes_ = null; - desiredShieldedNodesBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - */ - public com.google.container.v1.ShieldedNodes.Builder getDesiredShieldedNodesBuilder() { - - onChanged(); - return getDesiredShieldedNodesFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - */ - public com.google.container.v1.ShieldedNodesOrBuilder getDesiredShieldedNodesOrBuilder() { - if (desiredShieldedNodesBuilder_ != null) { - return desiredShieldedNodesBuilder_.getMessageOrBuilder(); - } else { - return desiredShieldedNodes_ == null ? - com.google.container.v1.ShieldedNodes.getDefaultInstance() : desiredShieldedNodes_; - } - } - /** - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedNodes, com.google.container.v1.ShieldedNodes.Builder, com.google.container.v1.ShieldedNodesOrBuilder> - getDesiredShieldedNodesFieldBuilder() { - if (desiredShieldedNodesBuilder_ == null) { - desiredShieldedNodesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedNodes, com.google.container.v1.ShieldedNodes.Builder, com.google.container.v1.ShieldedNodesOrBuilder>( - getDesiredShieldedNodes(), - getParentForChildren(), - isClean()); - desiredShieldedNodes_ = null; - } - return desiredShieldedNodesBuilder_; - } - - private com.google.container.v1.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 desiredCostManagementConfigBuilder_ != null || desiredCostManagementConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - desiredCostManagementConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - desiredCostManagementConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (desiredCostManagementConfig_ != null) { - desiredCostManagementConfig_ = - com.google.container.v1.CostManagementConfig.newBuilder(desiredCostManagementConfig_).mergeFrom(value).buildPartial(); - } else { - desiredCostManagementConfig_ = value; - } - onChanged(); - } else { - desiredCostManagementConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The desired configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1.CostManagementConfig desired_cost_management_config = 49; - */ - public Builder clearDesiredCostManagementConfig() { - if (desiredCostManagementConfigBuilder_ == null) { - desiredCostManagementConfig_ = null; - onChanged(); - } else { - desiredCostManagementConfig_ = null; - desiredCostManagementConfigBuilder_ = null; - } - - 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() { - - 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 desiredDnsConfigBuilder_ != null || desiredDnsConfig_ != null; - } - /** - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1.DNSConfig desired_dns_config = 53; - * @return The desiredDnsConfig. - */ - public com.google.container.v1.DNSConfig getDesiredDnsConfig() { - if (desiredDnsConfigBuilder_ == null) { - return desiredDnsConfig_ == null ? com.google.container.v1.DNSConfig.getDefaultInstance() : desiredDnsConfig_; - } else { - return desiredDnsConfigBuilder_.getMessage(); - } - } - /** - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1.DNSConfig desired_dns_config = 53; - */ - public Builder setDesiredDnsConfig(com.google.container.v1.DNSConfig value) { - if (desiredDnsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredDnsConfig_ = value; - onChanged(); - } else { - desiredDnsConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1.DNSConfig desired_dns_config = 53; - */ - public Builder setDesiredDnsConfig( - com.google.container.v1.DNSConfig.Builder builderForValue) { - if (desiredDnsConfigBuilder_ == null) { - desiredDnsConfig_ = builderForValue.build(); - onChanged(); - } else { - desiredDnsConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1.DNSConfig desired_dns_config = 53; - */ - public Builder mergeDesiredDnsConfig(com.google.container.v1.DNSConfig value) { - if (desiredDnsConfigBuilder_ == null) { - if (desiredDnsConfig_ != null) { - desiredDnsConfig_ = - com.google.container.v1.DNSConfig.newBuilder(desiredDnsConfig_).mergeFrom(value).buildPartial(); - } else { - desiredDnsConfig_ = value; - } - onChanged(); - } else { - desiredDnsConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1.DNSConfig desired_dns_config = 53; - */ - public Builder clearDesiredDnsConfig() { - if (desiredDnsConfigBuilder_ == null) { - desiredDnsConfig_ = null; - onChanged(); - } else { - desiredDnsConfig_ = null; - desiredDnsConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1.DNSConfig desired_dns_config = 53; - */ - public com.google.container.v1.DNSConfig.Builder getDesiredDnsConfigBuilder() { - - onChanged(); - return getDesiredDnsConfigFieldBuilder().getBuilder(); - } - /** - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1.DNSConfig desired_dns_config = 53; - */ - public com.google.container.v1.DNSConfigOrBuilder getDesiredDnsConfigOrBuilder() { - if (desiredDnsConfigBuilder_ != null) { - return desiredDnsConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredDnsConfig_ == null ? - com.google.container.v1.DNSConfig.getDefaultInstance() : desiredDnsConfig_; - } - } - /** - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1.DNSConfig desired_dns_config = 53; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DNSConfig, com.google.container.v1.DNSConfig.Builder, com.google.container.v1.DNSConfigOrBuilder> - getDesiredDnsConfigFieldBuilder() { - if (desiredDnsConfigBuilder_ == null) { - desiredDnsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DNSConfig, com.google.container.v1.DNSConfig.Builder, com.google.container.v1.DNSConfigOrBuilder>( - getDesiredDnsConfig(), - getParentForChildren(), - isClean()); - desiredDnsConfig_ = null; - } - return desiredDnsConfigBuilder_; - } - - private com.google.container.v1.NodePoolAutoscaling desiredNodePoolAutoscaling_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolAutoscaling, 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 desiredNodePoolAutoscalingBuilder_ != null || desiredNodePoolAutoscaling_ != null; - } - /** - *
-     * Autoscaler configuration for the node pool specified in
-     * desired_node_pool_id. If there is only one pool in the
-     * cluster and desired_node_pool_id is not provided then
-     * the change applies to that single node pool.
-     * 
- * - * .google.container.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; - onChanged(); - } else { - desiredNodePoolAutoscalingBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Autoscaler configuration for the node pool specified in
-     * desired_node_pool_id. If there is only one pool in the
-     * cluster and desired_node_pool_id is not provided then
-     * the change applies to that single node pool.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - */ - public Builder setDesiredNodePoolAutoscaling( - com.google.container.v1.NodePoolAutoscaling.Builder builderForValue) { - if (desiredNodePoolAutoscalingBuilder_ == null) { - desiredNodePoolAutoscaling_ = builderForValue.build(); - onChanged(); - } else { - desiredNodePoolAutoscalingBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Autoscaler configuration for the node pool specified in
-     * desired_node_pool_id. If there is only one pool in the
-     * cluster and desired_node_pool_id is not provided then
-     * the change applies to that single node pool.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - */ - public Builder mergeDesiredNodePoolAutoscaling(com.google.container.v1.NodePoolAutoscaling value) { - if (desiredNodePoolAutoscalingBuilder_ == null) { - if (desiredNodePoolAutoscaling_ != null) { - desiredNodePoolAutoscaling_ = - com.google.container.v1.NodePoolAutoscaling.newBuilder(desiredNodePoolAutoscaling_).mergeFrom(value).buildPartial(); - } else { - desiredNodePoolAutoscaling_ = value; - } - onChanged(); - } else { - desiredNodePoolAutoscalingBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Autoscaler configuration for the node pool specified in
-     * desired_node_pool_id. If there is only one pool in the
-     * cluster and desired_node_pool_id is not provided then
-     * the change applies to that single node pool.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - */ - public Builder clearDesiredNodePoolAutoscaling() { - if (desiredNodePoolAutoscalingBuilder_ == null) { - desiredNodePoolAutoscaling_ = null; - onChanged(); - } else { - desiredNodePoolAutoscaling_ = null; - desiredNodePoolAutoscalingBuilder_ = null; - } - - return this; - } - /** - *
-     * Autoscaler configuration for the node pool specified in
-     * desired_node_pool_id. If there is only one pool in the
-     * cluster and desired_node_pool_id is not provided then
-     * the change applies to that single node pool.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - */ - public com.google.container.v1.NodePoolAutoscaling.Builder getDesiredNodePoolAutoscalingBuilder() { - - onChanged(); - return getDesiredNodePoolAutoscalingFieldBuilder().getBuilder(); - } - /** - *
-     * Autoscaler configuration for the node pool specified in
-     * desired_node_pool_id. If there is only one pool in the
-     * cluster and desired_node_pool_id is not provided then
-     * the change applies to that single node pool.
-     * 
- * - * .google.container.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.LazyStringList desiredLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureDesiredLocationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - desiredLocations_ = new com.google.protobuf.LazyStringArrayList(desiredLocations_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This list must always include the cluster's primary zone.
-     * Warning: changing cluster locations will update the locations of all node
-     * pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string desired_locations = 10; - * @return A list containing the desiredLocations. - */ - public com.google.protobuf.ProtocolStringList - getDesiredLocationsList() { - return desiredLocations_.getUnmodifiableView(); - } - /** - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This list must always include the cluster's primary zone.
-     * Warning: changing cluster locations will update the locations of all node
-     * pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string desired_locations = 10; - * @return The count of desiredLocations. - */ - public int getDesiredLocationsCount() { - return desiredLocations_.size(); - } - /** - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This list must always include the cluster's primary zone.
-     * Warning: changing cluster locations will update the locations of all node
-     * pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string desired_locations = 10; - * @param index The index of the element to return. - * @return The desiredLocations at the given index. - */ - public java.lang.String getDesiredLocations(int index) { - return desiredLocations_.get(index); - } - /** - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This list must always include the cluster's primary zone.
-     * Warning: changing cluster locations will update the locations of all node
-     * pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string desired_locations = 10; - * @param index The index of the value to return. - * @return The bytes of the desiredLocations at the given index. - */ - public com.google.protobuf.ByteString - getDesiredLocationsBytes(int index) { - return desiredLocations_.getByteString(index); - } - /** - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This list must always include the cluster's primary zone.
-     * Warning: changing cluster locations will update the locations of all node
-     * pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string desired_locations = 10; - * @param index The index to set the value at. - * @param value The desiredLocations to set. - * @return This builder for chaining. - */ - public Builder setDesiredLocations( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDesiredLocationsIsMutable(); - desiredLocations_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This list must always include the cluster's primary zone.
-     * Warning: changing cluster locations will update the locations of all node
-     * pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string desired_locations = 10; - * @param value The desiredLocations to add. - * @return This builder for chaining. - */ - public Builder addDesiredLocations( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDesiredLocationsIsMutable(); - desiredLocations_.add(value); - onChanged(); - return this; - } - /** - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This list must always include the cluster's primary zone.
-     * Warning: changing cluster locations will update the locations of all node
-     * pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string desired_locations = 10; - * @param values The desiredLocations to add. - * @return This builder for chaining. - */ - public Builder addAllDesiredLocations( - java.lang.Iterable values) { - ensureDesiredLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, desiredLocations_); - onChanged(); - return this; - } - /** - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This list must always include the cluster's primary zone.
-     * Warning: changing cluster locations will update the locations of all node
-     * pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string desired_locations = 10; - * @return This builder for chaining. - */ - public Builder clearDesiredLocations() { - desiredLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This list must always include the cluster's primary zone.
-     * Warning: changing cluster locations will update the locations of all node
-     * pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string desired_locations = 10; - * @param value The bytes of the desiredLocations to add. - * @return This builder for chaining. - */ - public Builder addDesiredLocationsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureDesiredLocationsIsMutable(); - desiredLocations_.add(value); - onChanged(); - return this; - } - - private com.google.container.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 desiredMasterAuthorizedNetworksConfigBuilder_ != null || desiredMasterAuthorizedNetworksConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - desiredMasterAuthorizedNetworksConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - desiredMasterAuthorizedNetworksConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (desiredMasterAuthorizedNetworksConfig_ != null) { - desiredMasterAuthorizedNetworksConfig_ = - com.google.container.v1.MasterAuthorizedNetworksConfig.newBuilder(desiredMasterAuthorizedNetworksConfig_).mergeFrom(value).buildPartial(); - } else { - desiredMasterAuthorizedNetworksConfig_ = value; - } - onChanged(); - } else { - desiredMasterAuthorizedNetworksConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The desired configuration options for master authorized networks feature.
-     * 
- * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - */ - public Builder clearDesiredMasterAuthorizedNetworksConfig() { - if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { - desiredMasterAuthorizedNetworksConfig_ = null; - onChanged(); - } else { - desiredMasterAuthorizedNetworksConfig_ = null; - desiredMasterAuthorizedNetworksConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * The desired configuration options for master authorized networks feature.
-     * 
- * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - */ - public com.google.container.v1.MasterAuthorizedNetworksConfig.Builder getDesiredMasterAuthorizedNetworksConfigBuilder() { - - 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 desiredClusterAutoscalingBuilder_ != null || desiredClusterAutoscaling_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - desiredClusterAutoscalingBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - desiredClusterAutoscalingBuilder_.setMessage(builderForValue.build()); - } - - 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 (desiredClusterAutoscaling_ != null) { - desiredClusterAutoscaling_ = - com.google.container.v1.ClusterAutoscaling.newBuilder(desiredClusterAutoscaling_).mergeFrom(value).buildPartial(); - } else { - desiredClusterAutoscaling_ = value; - } - onChanged(); - } else { - desiredClusterAutoscalingBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - */ - public Builder clearDesiredClusterAutoscaling() { - if (desiredClusterAutoscalingBuilder_ == null) { - desiredClusterAutoscaling_ = null; - onChanged(); - } else { - desiredClusterAutoscaling_ = null; - desiredClusterAutoscalingBuilder_ = null; - } - - return this; - } - /** - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - */ - public com.google.container.v1.ClusterAutoscaling.Builder getDesiredClusterAutoscalingBuilder() { - - 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 desiredBinaryAuthorizationBuilder_ != null || desiredBinaryAuthorization_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - desiredBinaryAuthorizationBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - desiredBinaryAuthorizationBuilder_.setMessage(builderForValue.build()); - } - - 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 (desiredBinaryAuthorization_ != null) { - desiredBinaryAuthorization_ = - com.google.container.v1.BinaryAuthorization.newBuilder(desiredBinaryAuthorization_).mergeFrom(value).buildPartial(); - } else { - desiredBinaryAuthorization_ = value; - } - onChanged(); - } else { - desiredBinaryAuthorizationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The desired configuration options for the Binary Authorization feature.
-     * 
- * - * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - */ - public Builder clearDesiredBinaryAuthorization() { - if (desiredBinaryAuthorizationBuilder_ == null) { - desiredBinaryAuthorization_ = null; - onChanged(); - } else { - desiredBinaryAuthorization_ = null; - desiredBinaryAuthorizationBuilder_ = null; - } - - return this; - } - /** - *
-     * The desired configuration options for the Binary Authorization feature.
-     * 
- * - * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - */ - public com.google.container.v1.BinaryAuthorization.Builder getDesiredBinaryAuthorizationBuilder() { - - 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; - onChanged(); - return this; - } - /** - *
-     * The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string desired_logging_service = 19; - * @return This builder for chaining. - */ - public Builder clearDesiredLoggingService() { - - desiredLoggingService_ = getDefaultInstance().getDesiredLoggingService(); - onChanged(); - return this; - } - /** - *
-     * The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string desired_logging_service = 19; - * @param value The bytes for desiredLoggingService to set. - * @return This builder for chaining. - */ - public Builder setDesiredLoggingServiceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - desiredLoggingService_ = value; - onChanged(); - return this; - } - - private com.google.container.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 desiredResourceUsageExportConfigBuilder_ != null || desiredResourceUsageExportConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - desiredResourceUsageExportConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - desiredResourceUsageExportConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (desiredResourceUsageExportConfig_ != null) { - desiredResourceUsageExportConfig_ = - com.google.container.v1.ResourceUsageExportConfig.newBuilder(desiredResourceUsageExportConfig_).mergeFrom(value).buildPartial(); - } else { - desiredResourceUsageExportConfig_ = value; - } - onChanged(); - } else { - desiredResourceUsageExportConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The desired configuration for exporting resource usage.
-     * 
- * - * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - */ - public Builder clearDesiredResourceUsageExportConfig() { - if (desiredResourceUsageExportConfigBuilder_ == null) { - desiredResourceUsageExportConfig_ = null; - onChanged(); - } else { - desiredResourceUsageExportConfig_ = null; - desiredResourceUsageExportConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * The desired configuration for exporting resource usage.
-     * 
- * - * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - */ - public com.google.container.v1.ResourceUsageExportConfig.Builder getDesiredResourceUsageExportConfigBuilder() { - - 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 desiredVerticalPodAutoscalingBuilder_ != null || desiredVerticalPodAutoscaling_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - desiredVerticalPodAutoscalingBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - desiredVerticalPodAutoscalingBuilder_.setMessage(builderForValue.build()); - } - - 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 (desiredVerticalPodAutoscaling_ != null) { - desiredVerticalPodAutoscaling_ = - com.google.container.v1.VerticalPodAutoscaling.newBuilder(desiredVerticalPodAutoscaling_).mergeFrom(value).buildPartial(); - } else { - desiredVerticalPodAutoscaling_ = value; - } - onChanged(); - } else { - desiredVerticalPodAutoscalingBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - */ - public Builder clearDesiredVerticalPodAutoscaling() { - if (desiredVerticalPodAutoscalingBuilder_ == null) { - desiredVerticalPodAutoscaling_ = null; - onChanged(); - } else { - desiredVerticalPodAutoscaling_ = null; - desiredVerticalPodAutoscalingBuilder_ = null; - } - - return this; - } - /** - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - */ - public com.google.container.v1.VerticalPodAutoscaling.Builder getDesiredVerticalPodAutoscalingBuilder() { - - 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 desiredPrivateClusterConfigBuilder_ != null || desiredPrivateClusterConfig_ != null; - } - /** - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - * @return The desiredPrivateClusterConfig. - */ - public com.google.container.v1.PrivateClusterConfig getDesiredPrivateClusterConfig() { - if (desiredPrivateClusterConfigBuilder_ == null) { - return desiredPrivateClusterConfig_ == null ? com.google.container.v1.PrivateClusterConfig.getDefaultInstance() : desiredPrivateClusterConfig_; - } else { - return desiredPrivateClusterConfigBuilder_.getMessage(); - } - } - /** - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - public Builder setDesiredPrivateClusterConfig(com.google.container.v1.PrivateClusterConfig value) { - if (desiredPrivateClusterConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredPrivateClusterConfig_ = value; - onChanged(); - } else { - desiredPrivateClusterConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - public Builder setDesiredPrivateClusterConfig( - com.google.container.v1.PrivateClusterConfig.Builder builderForValue) { - if (desiredPrivateClusterConfigBuilder_ == null) { - desiredPrivateClusterConfig_ = builderForValue.build(); - onChanged(); - } else { - desiredPrivateClusterConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - public Builder mergeDesiredPrivateClusterConfig(com.google.container.v1.PrivateClusterConfig value) { - if (desiredPrivateClusterConfigBuilder_ == null) { - if (desiredPrivateClusterConfig_ != null) { - desiredPrivateClusterConfig_ = - com.google.container.v1.PrivateClusterConfig.newBuilder(desiredPrivateClusterConfig_).mergeFrom(value).buildPartial(); - } else { - desiredPrivateClusterConfig_ = value; - } - onChanged(); - } else { - desiredPrivateClusterConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - public Builder clearDesiredPrivateClusterConfig() { - if (desiredPrivateClusterConfigBuilder_ == null) { - desiredPrivateClusterConfig_ = null; - onChanged(); - } else { - desiredPrivateClusterConfig_ = null; - desiredPrivateClusterConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - public com.google.container.v1.PrivateClusterConfig.Builder getDesiredPrivateClusterConfigBuilder() { - - onChanged(); - return getDesiredPrivateClusterConfigFieldBuilder().getBuilder(); - } - /** - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - public com.google.container.v1.PrivateClusterConfigOrBuilder getDesiredPrivateClusterConfigOrBuilder() { - if (desiredPrivateClusterConfigBuilder_ != null) { - return desiredPrivateClusterConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredPrivateClusterConfig_ == null ? - com.google.container.v1.PrivateClusterConfig.getDefaultInstance() : desiredPrivateClusterConfig_; - } - } - /** - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.PrivateClusterConfig, com.google.container.v1.PrivateClusterConfig.Builder, com.google.container.v1.PrivateClusterConfigOrBuilder> - getDesiredPrivateClusterConfigFieldBuilder() { - if (desiredPrivateClusterConfigBuilder_ == null) { - desiredPrivateClusterConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.PrivateClusterConfig, com.google.container.v1.PrivateClusterConfig.Builder, com.google.container.v1.PrivateClusterConfigOrBuilder>( - getDesiredPrivateClusterConfig(), - getParentForChildren(), - isClean()); - desiredPrivateClusterConfig_ = null; - } - return desiredPrivateClusterConfigBuilder_; - } - - private com.google.container.v1.IntraNodeVisibilityConfig desiredIntraNodeVisibilityConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.IntraNodeVisibilityConfig, com.google.container.v1.IntraNodeVisibilityConfig.Builder, com.google.container.v1.IntraNodeVisibilityConfigOrBuilder> desiredIntraNodeVisibilityConfigBuilder_; - /** - *
-     * The desired config of Intra-node visibility.
-     * 
- * - * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * @return Whether the desiredIntraNodeVisibilityConfig field is set. - */ - public boolean hasDesiredIntraNodeVisibilityConfig() { - return desiredIntraNodeVisibilityConfigBuilder_ != null || desiredIntraNodeVisibilityConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - desiredIntraNodeVisibilityConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - desiredIntraNodeVisibilityConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (desiredIntraNodeVisibilityConfig_ != null) { - desiredIntraNodeVisibilityConfig_ = - com.google.container.v1.IntraNodeVisibilityConfig.newBuilder(desiredIntraNodeVisibilityConfig_).mergeFrom(value).buildPartial(); - } else { - desiredIntraNodeVisibilityConfig_ = value; - } - onChanged(); - } else { - desiredIntraNodeVisibilityConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The desired config of Intra-node visibility.
-     * 
- * - * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - */ - public Builder clearDesiredIntraNodeVisibilityConfig() { - if (desiredIntraNodeVisibilityConfigBuilder_ == null) { - desiredIntraNodeVisibilityConfig_ = null; - onChanged(); - } else { - desiredIntraNodeVisibilityConfig_ = null; - desiredIntraNodeVisibilityConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * The desired config of Intra-node visibility.
-     * 
- * - * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - */ - public com.google.container.v1.IntraNodeVisibilityConfig.Builder getDesiredIntraNodeVisibilityConfigBuilder() { - - 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 desiredDefaultSnatStatusBuilder_ != null || desiredDefaultSnatStatus_ != null; - } - /** - *
-     * The desired status of whether to disable default sNAT for this cluster.
-     * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - * @return The desiredDefaultSnatStatus. - */ - public com.google.container.v1.DefaultSnatStatus getDesiredDefaultSnatStatus() { - if (desiredDefaultSnatStatusBuilder_ == null) { - return desiredDefaultSnatStatus_ == null ? com.google.container.v1.DefaultSnatStatus.getDefaultInstance() : desiredDefaultSnatStatus_; - } else { - return desiredDefaultSnatStatusBuilder_.getMessage(); - } - } - /** - *
-     * The desired status of whether to disable default sNAT for this cluster.
-     * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - */ - public Builder setDesiredDefaultSnatStatus(com.google.container.v1.DefaultSnatStatus value) { - if (desiredDefaultSnatStatusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredDefaultSnatStatus_ = value; - onChanged(); - } else { - desiredDefaultSnatStatusBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The desired status of whether to disable default sNAT for this cluster.
-     * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - */ - public Builder setDesiredDefaultSnatStatus( - com.google.container.v1.DefaultSnatStatus.Builder builderForValue) { - if (desiredDefaultSnatStatusBuilder_ == null) { - desiredDefaultSnatStatus_ = builderForValue.build(); - onChanged(); - } else { - desiredDefaultSnatStatusBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The desired status of whether to disable default sNAT for this cluster.
-     * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - */ - public Builder mergeDesiredDefaultSnatStatus(com.google.container.v1.DefaultSnatStatus value) { - if (desiredDefaultSnatStatusBuilder_ == null) { - if (desiredDefaultSnatStatus_ != null) { - desiredDefaultSnatStatus_ = - com.google.container.v1.DefaultSnatStatus.newBuilder(desiredDefaultSnatStatus_).mergeFrom(value).buildPartial(); - } else { - desiredDefaultSnatStatus_ = value; - } - onChanged(); - } else { - desiredDefaultSnatStatusBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The desired status of whether to disable default sNAT for this cluster.
-     * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - */ - public Builder clearDesiredDefaultSnatStatus() { - if (desiredDefaultSnatStatusBuilder_ == null) { - desiredDefaultSnatStatus_ = null; - onChanged(); - } else { - desiredDefaultSnatStatus_ = null; - desiredDefaultSnatStatusBuilder_ = null; - } - - return this; - } - /** - *
-     * The desired status of whether to disable default sNAT for this cluster.
-     * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - */ - public com.google.container.v1.DefaultSnatStatus.Builder getDesiredDefaultSnatStatusBuilder() { - - onChanged(); - return getDesiredDefaultSnatStatusFieldBuilder().getBuilder(); - } - /** - *
-     * The desired status of whether to disable default sNAT for this cluster.
-     * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - */ - public com.google.container.v1.DefaultSnatStatusOrBuilder getDesiredDefaultSnatStatusOrBuilder() { - if (desiredDefaultSnatStatusBuilder_ != null) { - return desiredDefaultSnatStatusBuilder_.getMessageOrBuilder(); - } else { - return desiredDefaultSnatStatus_ == null ? - com.google.container.v1.DefaultSnatStatus.getDefaultInstance() : desiredDefaultSnatStatus_; - } - } - /** - *
-     * The desired status of whether to disable default sNAT for this cluster.
-     * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DefaultSnatStatus, com.google.container.v1.DefaultSnatStatus.Builder, com.google.container.v1.DefaultSnatStatusOrBuilder> - getDesiredDefaultSnatStatusFieldBuilder() { - if (desiredDefaultSnatStatusBuilder_ == null) { - desiredDefaultSnatStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DefaultSnatStatus, com.google.container.v1.DefaultSnatStatus.Builder, com.google.container.v1.DefaultSnatStatusOrBuilder>( - getDesiredDefaultSnatStatus(), - getParentForChildren(), - isClean()); - desiredDefaultSnatStatus_ = null; - } - return desiredDefaultSnatStatusBuilder_; - } - - private com.google.container.v1.ReleaseChannel desiredReleaseChannel_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ReleaseChannel, com.google.container.v1.ReleaseChannel.Builder, com.google.container.v1.ReleaseChannelOrBuilder> desiredReleaseChannelBuilder_; - /** - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - * @return Whether the desiredReleaseChannel field is set. - */ - public boolean hasDesiredReleaseChannel() { - return desiredReleaseChannelBuilder_ != null || desiredReleaseChannel_ != null; - } - /** - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - * @return The desiredReleaseChannel. - */ - public com.google.container.v1.ReleaseChannel getDesiredReleaseChannel() { - if (desiredReleaseChannelBuilder_ == null) { - return desiredReleaseChannel_ == null ? com.google.container.v1.ReleaseChannel.getDefaultInstance() : desiredReleaseChannel_; - } else { - return desiredReleaseChannelBuilder_.getMessage(); - } - } - /** - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - */ - public Builder setDesiredReleaseChannel(com.google.container.v1.ReleaseChannel value) { - if (desiredReleaseChannelBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredReleaseChannel_ = value; - onChanged(); - } else { - desiredReleaseChannelBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - */ - public Builder setDesiredReleaseChannel( - com.google.container.v1.ReleaseChannel.Builder builderForValue) { - if (desiredReleaseChannelBuilder_ == null) { - desiredReleaseChannel_ = builderForValue.build(); - onChanged(); - } else { - desiredReleaseChannelBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - */ - public Builder mergeDesiredReleaseChannel(com.google.container.v1.ReleaseChannel value) { - if (desiredReleaseChannelBuilder_ == null) { - if (desiredReleaseChannel_ != null) { - desiredReleaseChannel_ = - com.google.container.v1.ReleaseChannel.newBuilder(desiredReleaseChannel_).mergeFrom(value).buildPartial(); - } else { - desiredReleaseChannel_ = value; - } - onChanged(); - } else { - desiredReleaseChannelBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - */ - public Builder clearDesiredReleaseChannel() { - if (desiredReleaseChannelBuilder_ == null) { - desiredReleaseChannel_ = null; - onChanged(); - } else { - desiredReleaseChannel_ = null; - desiredReleaseChannelBuilder_ = null; - } - - return this; - } - /** - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - */ - public com.google.container.v1.ReleaseChannel.Builder getDesiredReleaseChannelBuilder() { - - onChanged(); - return getDesiredReleaseChannelFieldBuilder().getBuilder(); - } - /** - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - */ - public com.google.container.v1.ReleaseChannelOrBuilder getDesiredReleaseChannelOrBuilder() { - if (desiredReleaseChannelBuilder_ != null) { - return desiredReleaseChannelBuilder_.getMessageOrBuilder(); - } else { - return desiredReleaseChannel_ == null ? - com.google.container.v1.ReleaseChannel.getDefaultInstance() : desiredReleaseChannel_; - } - } - /** - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ReleaseChannel, com.google.container.v1.ReleaseChannel.Builder, com.google.container.v1.ReleaseChannelOrBuilder> - getDesiredReleaseChannelFieldBuilder() { - if (desiredReleaseChannelBuilder_ == null) { - desiredReleaseChannelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ReleaseChannel, com.google.container.v1.ReleaseChannel.Builder, com.google.container.v1.ReleaseChannelOrBuilder>( - getDesiredReleaseChannel(), - getParentForChildren(), - isClean()); - desiredReleaseChannel_ = null; - } - return desiredReleaseChannelBuilder_; - } - - private 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 desiredL4IlbSubsettingConfigBuilder_ != null || desiredL4IlbSubsettingConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - desiredL4IlbSubsettingConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The desired L4 Internal Load Balancer Subsetting configuration.
-     * 
- * - * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - */ - public Builder setDesiredL4IlbSubsettingConfig( - com.google.container.v1.ILBSubsettingConfig.Builder builderForValue) { - if (desiredL4IlbSubsettingConfigBuilder_ == null) { - desiredL4IlbSubsettingConfig_ = builderForValue.build(); - onChanged(); - } else { - desiredL4IlbSubsettingConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The desired L4 Internal Load Balancer Subsetting configuration.
-     * 
- * - * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - */ - public Builder mergeDesiredL4IlbSubsettingConfig(com.google.container.v1.ILBSubsettingConfig value) { - if (desiredL4IlbSubsettingConfigBuilder_ == null) { - if (desiredL4IlbSubsettingConfig_ != null) { - desiredL4IlbSubsettingConfig_ = - com.google.container.v1.ILBSubsettingConfig.newBuilder(desiredL4IlbSubsettingConfig_).mergeFrom(value).buildPartial(); - } else { - desiredL4IlbSubsettingConfig_ = value; - } - onChanged(); - } else { - desiredL4IlbSubsettingConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The desired L4 Internal Load Balancer Subsetting configuration.
-     * 
- * - * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - */ - public Builder clearDesiredL4IlbSubsettingConfig() { - if (desiredL4IlbSubsettingConfigBuilder_ == null) { - desiredL4IlbSubsettingConfig_ = null; - onChanged(); - } else { - desiredL4IlbSubsettingConfig_ = null; - desiredL4IlbSubsettingConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * The desired L4 Internal Load Balancer Subsetting configuration.
-     * 
- * - * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - */ - public com.google.container.v1.ILBSubsettingConfig.Builder getDesiredL4IlbSubsettingConfigBuilder() { - - onChanged(); - return getDesiredL4IlbSubsettingConfigFieldBuilder().getBuilder(); - } - /** - *
-     * The desired L4 Internal Load Balancer Subsetting configuration.
-     * 
- * - * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - */ - public com.google.container.v1.ILBSubsettingConfigOrBuilder getDesiredL4IlbSubsettingConfigOrBuilder() { - if (desiredL4IlbSubsettingConfigBuilder_ != null) { - return desiredL4IlbSubsettingConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredL4IlbSubsettingConfig_ == null ? - com.google.container.v1.ILBSubsettingConfig.getDefaultInstance() : desiredL4IlbSubsettingConfig_; - } - } - /** - *
-     * The desired L4 Internal Load Balancer Subsetting configuration.
-     * 
- * - * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ILBSubsettingConfig, com.google.container.v1.ILBSubsettingConfig.Builder, com.google.container.v1.ILBSubsettingConfigOrBuilder> - getDesiredL4IlbSubsettingConfigFieldBuilder() { - if (desiredL4IlbSubsettingConfigBuilder_ == null) { - desiredL4IlbSubsettingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ILBSubsettingConfig, com.google.container.v1.ILBSubsettingConfig.Builder, com.google.container.v1.ILBSubsettingConfigOrBuilder>( - getDesiredL4IlbSubsettingConfig(), - getParentForChildren(), - isClean()); - desiredL4IlbSubsettingConfig_ = null; - } - return desiredL4IlbSubsettingConfigBuilder_; - } - - private int desiredDatapathProvider_ = 0; - /** - *
-     * The desired datapath provider for the cluster.
-     * 
- * - * .google.container.v1.DatapathProvider desired_datapath_provider = 50; - * @return The enum numeric value on the wire for desiredDatapathProvider. - */ - @java.lang.Override public int getDesiredDatapathProviderValue() { - return desiredDatapathProvider_; - } - /** - *
-     * The desired datapath provider for the cluster.
-     * 
- * - * .google.container.v1.DatapathProvider desired_datapath_provider = 50; - * @param value The enum numeric value on the wire for desiredDatapathProvider to set. - * @return This builder for chaining. - */ - public Builder setDesiredDatapathProviderValue(int value) { - - desiredDatapathProvider_ = value; - onChanged(); - return this; - } - /** - *
-     * The desired datapath provider for the cluster.
-     * 
- * - * .google.container.v1.DatapathProvider desired_datapath_provider = 50; - * @return The desiredDatapathProvider. - */ - @java.lang.Override - public com.google.container.v1.DatapathProvider getDesiredDatapathProvider() { - @SuppressWarnings("deprecation") - com.google.container.v1.DatapathProvider result = com.google.container.v1.DatapathProvider.valueOf(desiredDatapathProvider_); - return result == null ? com.google.container.v1.DatapathProvider.UNRECOGNIZED : result; - } - /** - *
-     * The desired datapath provider for the cluster.
-     * 
- * - * .google.container.v1.DatapathProvider desired_datapath_provider = 50; - * @param value The desiredDatapathProvider to set. - * @return This builder for chaining. - */ - public Builder setDesiredDatapathProvider(com.google.container.v1.DatapathProvider value) { - if (value == null) { - throw new NullPointerException(); - } - - desiredDatapathProvider_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * The desired datapath provider for the cluster.
-     * 
- * - * .google.container.v1.DatapathProvider desired_datapath_provider = 50; - * @return This builder for chaining. - */ - public Builder clearDesiredDatapathProvider() { - - desiredDatapathProvider_ = 0; - onChanged(); - return this; - } - - private int desiredPrivateIpv6GoogleAccess_ = 0; - /** - *
-     * The desired state of IPv6 connectivity to Google Services.
-     * 
- * - * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; - * @return The enum numeric value on the wire for desiredPrivateIpv6GoogleAccess. - */ - @java.lang.Override public int getDesiredPrivateIpv6GoogleAccessValue() { - return desiredPrivateIpv6GoogleAccess_; - } - /** - *
-     * The desired state of IPv6 connectivity to Google Services.
-     * 
- * - * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; - * @param value The enum numeric value on the wire for desiredPrivateIpv6GoogleAccess to set. - * @return This builder for chaining. - */ - public Builder setDesiredPrivateIpv6GoogleAccessValue(int value) { - - desiredPrivateIpv6GoogleAccess_ = value; - onChanged(); - return this; - } - /** - *
-     * The desired state of IPv6 connectivity to Google Services.
-     * 
- * - * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; - * @return The desiredPrivateIpv6GoogleAccess. - */ - @java.lang.Override - public com.google.container.v1.PrivateIPv6GoogleAccess getDesiredPrivateIpv6GoogleAccess() { - @SuppressWarnings("deprecation") - com.google.container.v1.PrivateIPv6GoogleAccess result = com.google.container.v1.PrivateIPv6GoogleAccess.valueOf(desiredPrivateIpv6GoogleAccess_); - return result == null ? com.google.container.v1.PrivateIPv6GoogleAccess.UNRECOGNIZED : result; - } - /** - *
-     * The desired state of IPv6 connectivity to Google Services.
-     * 
- * - * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; - * @param value The desiredPrivateIpv6GoogleAccess to set. - * @return This builder for chaining. - */ - public Builder setDesiredPrivateIpv6GoogleAccess(com.google.container.v1.PrivateIPv6GoogleAccess value) { - if (value == null) { - throw new NullPointerException(); - } - - desiredPrivateIpv6GoogleAccess_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * The desired state of IPv6 connectivity to Google Services.
-     * 
- * - * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; - * @return This builder for chaining. - */ - public Builder clearDesiredPrivateIpv6GoogleAccess() { - - desiredPrivateIpv6GoogleAccess_ = 0; - onChanged(); - return this; - } - - private com.google.container.v1.NotificationConfig desiredNotificationConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NotificationConfig, com.google.container.v1.NotificationConfig.Builder, com.google.container.v1.NotificationConfigOrBuilder> desiredNotificationConfigBuilder_; - /** - *
-     * The desired notification configuration.
-     * 
- * - * .google.container.v1.NotificationConfig desired_notification_config = 55; - * @return Whether the desiredNotificationConfig field is set. - */ - public boolean hasDesiredNotificationConfig() { - return desiredNotificationConfigBuilder_ != null || desiredNotificationConfig_ != null; - } - /** - *
-     * The desired notification configuration.
-     * 
- * - * .google.container.v1.NotificationConfig desired_notification_config = 55; - * @return The desiredNotificationConfig. - */ - public com.google.container.v1.NotificationConfig getDesiredNotificationConfig() { - if (desiredNotificationConfigBuilder_ == null) { - return desiredNotificationConfig_ == null ? com.google.container.v1.NotificationConfig.getDefaultInstance() : desiredNotificationConfig_; - } else { - return desiredNotificationConfigBuilder_.getMessage(); - } - } - /** - *
-     * The desired notification configuration.
-     * 
- * - * .google.container.v1.NotificationConfig desired_notification_config = 55; - */ - public Builder setDesiredNotificationConfig(com.google.container.v1.NotificationConfig value) { - if (desiredNotificationConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredNotificationConfig_ = value; - onChanged(); - } else { - desiredNotificationConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The desired notification configuration.
-     * 
- * - * .google.container.v1.NotificationConfig desired_notification_config = 55; - */ - public Builder setDesiredNotificationConfig( - com.google.container.v1.NotificationConfig.Builder builderForValue) { - if (desiredNotificationConfigBuilder_ == null) { - desiredNotificationConfig_ = builderForValue.build(); - onChanged(); - } else { - desiredNotificationConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The desired notification configuration.
-     * 
- * - * .google.container.v1.NotificationConfig desired_notification_config = 55; - */ - public Builder mergeDesiredNotificationConfig(com.google.container.v1.NotificationConfig value) { - if (desiredNotificationConfigBuilder_ == null) { - if (desiredNotificationConfig_ != null) { - desiredNotificationConfig_ = - com.google.container.v1.NotificationConfig.newBuilder(desiredNotificationConfig_).mergeFrom(value).buildPartial(); - } else { - desiredNotificationConfig_ = value; - } - onChanged(); - } else { - desiredNotificationConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The desired notification configuration.
-     * 
- * - * .google.container.v1.NotificationConfig desired_notification_config = 55; - */ - public Builder clearDesiredNotificationConfig() { - if (desiredNotificationConfigBuilder_ == null) { - desiredNotificationConfig_ = null; - onChanged(); - } else { - desiredNotificationConfig_ = null; - desiredNotificationConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * The desired notification configuration.
-     * 
- * - * .google.container.v1.NotificationConfig desired_notification_config = 55; - */ - public com.google.container.v1.NotificationConfig.Builder getDesiredNotificationConfigBuilder() { - - onChanged(); - return getDesiredNotificationConfigFieldBuilder().getBuilder(); - } - /** - *
-     * The desired notification configuration.
-     * 
- * - * .google.container.v1.NotificationConfig desired_notification_config = 55; - */ - public com.google.container.v1.NotificationConfigOrBuilder getDesiredNotificationConfigOrBuilder() { - if (desiredNotificationConfigBuilder_ != null) { - return desiredNotificationConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredNotificationConfig_ == null ? - com.google.container.v1.NotificationConfig.getDefaultInstance() : desiredNotificationConfig_; - } - } - /** - *
-     * The desired notification configuration.
-     * 
- * - * .google.container.v1.NotificationConfig desired_notification_config = 55; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NotificationConfig, com.google.container.v1.NotificationConfig.Builder, com.google.container.v1.NotificationConfigOrBuilder> - getDesiredNotificationConfigFieldBuilder() { - if (desiredNotificationConfigBuilder_ == null) { - desiredNotificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NotificationConfig, com.google.container.v1.NotificationConfig.Builder, com.google.container.v1.NotificationConfigOrBuilder>( - getDesiredNotificationConfig(), - getParentForChildren(), - isClean()); - desiredNotificationConfig_ = null; - } - return desiredNotificationConfigBuilder_; - } - - private com.google.container.v1.AuthenticatorGroupsConfig desiredAuthenticatorGroupsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AuthenticatorGroupsConfig, com.google.container.v1.AuthenticatorGroupsConfig.Builder, com.google.container.v1.AuthenticatorGroupsConfigOrBuilder> desiredAuthenticatorGroupsConfigBuilder_; - /** - *
-     * The desired authenticator groups config for the cluster.
-     * 
- * - * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * @return Whether the desiredAuthenticatorGroupsConfig field is set. - */ - public boolean hasDesiredAuthenticatorGroupsConfig() { - return desiredAuthenticatorGroupsConfigBuilder_ != null || desiredAuthenticatorGroupsConfig_ != null; - } - /** - *
-     * The desired authenticator groups config for the cluster.
-     * 
- * - * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * @return The desiredAuthenticatorGroupsConfig. - */ - public com.google.container.v1.AuthenticatorGroupsConfig getDesiredAuthenticatorGroupsConfig() { - if (desiredAuthenticatorGroupsConfigBuilder_ == null) { - return desiredAuthenticatorGroupsConfig_ == null ? com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance() : desiredAuthenticatorGroupsConfig_; - } else { - return desiredAuthenticatorGroupsConfigBuilder_.getMessage(); - } - } - /** - *
-     * The desired authenticator groups config for the cluster.
-     * 
- * - * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - */ - public Builder setDesiredAuthenticatorGroupsConfig(com.google.container.v1.AuthenticatorGroupsConfig value) { - if (desiredAuthenticatorGroupsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredAuthenticatorGroupsConfig_ = value; - onChanged(); - } else { - desiredAuthenticatorGroupsConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The desired authenticator groups config for the cluster.
-     * 
- * - * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - */ - public Builder setDesiredAuthenticatorGroupsConfig( - com.google.container.v1.AuthenticatorGroupsConfig.Builder builderForValue) { - if (desiredAuthenticatorGroupsConfigBuilder_ == null) { - desiredAuthenticatorGroupsConfig_ = builderForValue.build(); - onChanged(); - } else { - desiredAuthenticatorGroupsConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The desired authenticator groups config for the cluster.
-     * 
- * - * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - */ - public Builder mergeDesiredAuthenticatorGroupsConfig(com.google.container.v1.AuthenticatorGroupsConfig value) { - if (desiredAuthenticatorGroupsConfigBuilder_ == null) { - if (desiredAuthenticatorGroupsConfig_ != null) { - desiredAuthenticatorGroupsConfig_ = - com.google.container.v1.AuthenticatorGroupsConfig.newBuilder(desiredAuthenticatorGroupsConfig_).mergeFrom(value).buildPartial(); - } else { - desiredAuthenticatorGroupsConfig_ = value; - } - onChanged(); - } else { - desiredAuthenticatorGroupsConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The desired authenticator groups config for the cluster.
-     * 
- * - * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - */ - public Builder clearDesiredAuthenticatorGroupsConfig() { - if (desiredAuthenticatorGroupsConfigBuilder_ == null) { - desiredAuthenticatorGroupsConfig_ = null; - onChanged(); - } else { - desiredAuthenticatorGroupsConfig_ = null; - desiredAuthenticatorGroupsConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * The desired authenticator groups config for the cluster.
-     * 
- * - * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - */ - public com.google.container.v1.AuthenticatorGroupsConfig.Builder getDesiredAuthenticatorGroupsConfigBuilder() { - - onChanged(); - return getDesiredAuthenticatorGroupsConfigFieldBuilder().getBuilder(); - } - /** - *
-     * The desired authenticator groups config for the cluster.
-     * 
- * - * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - */ - public com.google.container.v1.AuthenticatorGroupsConfigOrBuilder getDesiredAuthenticatorGroupsConfigOrBuilder() { - if (desiredAuthenticatorGroupsConfigBuilder_ != null) { - return desiredAuthenticatorGroupsConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredAuthenticatorGroupsConfig_ == null ? - com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance() : desiredAuthenticatorGroupsConfig_; - } - } - /** - *
-     * The desired authenticator groups config for the cluster.
-     * 
- * - * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AuthenticatorGroupsConfig, com.google.container.v1.AuthenticatorGroupsConfig.Builder, com.google.container.v1.AuthenticatorGroupsConfigOrBuilder> - getDesiredAuthenticatorGroupsConfigFieldBuilder() { - if (desiredAuthenticatorGroupsConfigBuilder_ == null) { - desiredAuthenticatorGroupsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AuthenticatorGroupsConfig, com.google.container.v1.AuthenticatorGroupsConfig.Builder, com.google.container.v1.AuthenticatorGroupsConfigOrBuilder>( - getDesiredAuthenticatorGroupsConfig(), - getParentForChildren(), - isClean()); - desiredAuthenticatorGroupsConfig_ = null; - } - return desiredAuthenticatorGroupsConfigBuilder_; - } - - private com.google.container.v1.LoggingConfig desiredLoggingConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LoggingConfig, com.google.container.v1.LoggingConfig.Builder, com.google.container.v1.LoggingConfigOrBuilder> desiredLoggingConfigBuilder_; - /** - *
-     * The desired logging configuration.
-     * 
- * - * .google.container.v1.LoggingConfig desired_logging_config = 64; - * @return Whether the desiredLoggingConfig field is set. - */ - public boolean hasDesiredLoggingConfig() { - return desiredLoggingConfigBuilder_ != null || desiredLoggingConfig_ != null; - } - /** - *
-     * The desired logging configuration.
-     * 
- * - * .google.container.v1.LoggingConfig desired_logging_config = 64; - * @return The desiredLoggingConfig. - */ - public com.google.container.v1.LoggingConfig getDesiredLoggingConfig() { - if (desiredLoggingConfigBuilder_ == null) { - return desiredLoggingConfig_ == null ? com.google.container.v1.LoggingConfig.getDefaultInstance() : desiredLoggingConfig_; - } else { - return desiredLoggingConfigBuilder_.getMessage(); - } - } - /** - *
-     * The desired logging configuration.
-     * 
- * - * .google.container.v1.LoggingConfig desired_logging_config = 64; - */ - public Builder setDesiredLoggingConfig(com.google.container.v1.LoggingConfig value) { - if (desiredLoggingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredLoggingConfig_ = value; - onChanged(); - } else { - desiredLoggingConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The desired logging configuration.
-     * 
- * - * .google.container.v1.LoggingConfig desired_logging_config = 64; - */ - public Builder setDesiredLoggingConfig( - com.google.container.v1.LoggingConfig.Builder builderForValue) { - if (desiredLoggingConfigBuilder_ == null) { - desiredLoggingConfig_ = builderForValue.build(); - onChanged(); - } else { - desiredLoggingConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The desired logging configuration.
-     * 
- * - * .google.container.v1.LoggingConfig desired_logging_config = 64; - */ - public Builder mergeDesiredLoggingConfig(com.google.container.v1.LoggingConfig value) { - if (desiredLoggingConfigBuilder_ == null) { - if (desiredLoggingConfig_ != null) { - desiredLoggingConfig_ = - com.google.container.v1.LoggingConfig.newBuilder(desiredLoggingConfig_).mergeFrom(value).buildPartial(); - } else { - desiredLoggingConfig_ = value; - } - onChanged(); - } else { - desiredLoggingConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The desired logging configuration.
-     * 
- * - * .google.container.v1.LoggingConfig desired_logging_config = 64; - */ - public Builder clearDesiredLoggingConfig() { - if (desiredLoggingConfigBuilder_ == null) { - desiredLoggingConfig_ = null; - onChanged(); - } else { - desiredLoggingConfig_ = null; - desiredLoggingConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * The desired logging configuration.
-     * 
- * - * .google.container.v1.LoggingConfig desired_logging_config = 64; - */ - public com.google.container.v1.LoggingConfig.Builder getDesiredLoggingConfigBuilder() { - - onChanged(); - return getDesiredLoggingConfigFieldBuilder().getBuilder(); - } - /** - *
-     * The desired logging configuration.
-     * 
- * - * .google.container.v1.LoggingConfig desired_logging_config = 64; - */ - public com.google.container.v1.LoggingConfigOrBuilder getDesiredLoggingConfigOrBuilder() { - if (desiredLoggingConfigBuilder_ != null) { - return desiredLoggingConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredLoggingConfig_ == null ? - com.google.container.v1.LoggingConfig.getDefaultInstance() : desiredLoggingConfig_; - } - } - /** - *
-     * The desired logging configuration.
-     * 
- * - * .google.container.v1.LoggingConfig desired_logging_config = 64; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LoggingConfig, com.google.container.v1.LoggingConfig.Builder, com.google.container.v1.LoggingConfigOrBuilder> - getDesiredLoggingConfigFieldBuilder() { - if (desiredLoggingConfigBuilder_ == null) { - desiredLoggingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LoggingConfig, com.google.container.v1.LoggingConfig.Builder, com.google.container.v1.LoggingConfigOrBuilder>( - getDesiredLoggingConfig(), - getParentForChildren(), - isClean()); - desiredLoggingConfig_ = null; - } - return desiredLoggingConfigBuilder_; - } - - private com.google.container.v1.MonitoringConfig desiredMonitoringConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MonitoringConfig, com.google.container.v1.MonitoringConfig.Builder, com.google.container.v1.MonitoringConfigOrBuilder> desiredMonitoringConfigBuilder_; - /** - *
-     * The desired monitoring configuration.
-     * 
- * - * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; - * @return Whether the desiredMonitoringConfig field is set. - */ - public boolean hasDesiredMonitoringConfig() { - return desiredMonitoringConfigBuilder_ != null || desiredMonitoringConfig_ != null; - } - /** - *
-     * The desired monitoring configuration.
-     * 
- * - * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; - * @return The desiredMonitoringConfig. - */ - public com.google.container.v1.MonitoringConfig getDesiredMonitoringConfig() { - if (desiredMonitoringConfigBuilder_ == null) { - return desiredMonitoringConfig_ == null ? com.google.container.v1.MonitoringConfig.getDefaultInstance() : desiredMonitoringConfig_; - } else { - return desiredMonitoringConfigBuilder_.getMessage(); - } - } - /** - *
-     * The desired monitoring configuration.
-     * 
- * - * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; - */ - public Builder setDesiredMonitoringConfig(com.google.container.v1.MonitoringConfig value) { - if (desiredMonitoringConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredMonitoringConfig_ = value; - onChanged(); - } else { - desiredMonitoringConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The desired monitoring configuration.
-     * 
- * - * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; - */ - public Builder setDesiredMonitoringConfig( - com.google.container.v1.MonitoringConfig.Builder builderForValue) { - if (desiredMonitoringConfigBuilder_ == null) { - desiredMonitoringConfig_ = builderForValue.build(); - onChanged(); - } else { - desiredMonitoringConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The desired monitoring configuration.
-     * 
- * - * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; - */ - public Builder mergeDesiredMonitoringConfig(com.google.container.v1.MonitoringConfig value) { - if (desiredMonitoringConfigBuilder_ == null) { - if (desiredMonitoringConfig_ != null) { - desiredMonitoringConfig_ = - com.google.container.v1.MonitoringConfig.newBuilder(desiredMonitoringConfig_).mergeFrom(value).buildPartial(); - } else { - desiredMonitoringConfig_ = value; - } - onChanged(); - } else { - desiredMonitoringConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The desired monitoring configuration.
-     * 
- * - * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; - */ - public Builder clearDesiredMonitoringConfig() { - if (desiredMonitoringConfigBuilder_ == null) { - desiredMonitoringConfig_ = null; - onChanged(); - } else { - desiredMonitoringConfig_ = null; - desiredMonitoringConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * The desired monitoring configuration.
-     * 
- * - * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; - */ - public com.google.container.v1.MonitoringConfig.Builder getDesiredMonitoringConfigBuilder() { - - onChanged(); - return getDesiredMonitoringConfigFieldBuilder().getBuilder(); - } - /** - *
-     * The desired monitoring configuration.
-     * 
- * - * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; - */ - public com.google.container.v1.MonitoringConfigOrBuilder getDesiredMonitoringConfigOrBuilder() { - if (desiredMonitoringConfigBuilder_ != null) { - return desiredMonitoringConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredMonitoringConfig_ == null ? - com.google.container.v1.MonitoringConfig.getDefaultInstance() : desiredMonitoringConfig_; - } - } - /** - *
-     * The desired monitoring configuration.
-     * 
- * - * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MonitoringConfig, com.google.container.v1.MonitoringConfig.Builder, com.google.container.v1.MonitoringConfigOrBuilder> - getDesiredMonitoringConfigFieldBuilder() { - if (desiredMonitoringConfigBuilder_ == null) { - desiredMonitoringConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MonitoringConfig, com.google.container.v1.MonitoringConfig.Builder, com.google.container.v1.MonitoringConfigOrBuilder>( - getDesiredMonitoringConfig(), - getParentForChildren(), - isClean()); - desiredMonitoringConfig_ = null; - } - return desiredMonitoringConfigBuilder_; - } - - private com.google.container.v1.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 desiredIdentityServiceConfigBuilder_ != null || desiredIdentityServiceConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - desiredIdentityServiceConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - desiredIdentityServiceConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (desiredIdentityServiceConfig_ != null) { - desiredIdentityServiceConfig_ = - com.google.container.v1.IdentityServiceConfig.newBuilder(desiredIdentityServiceConfig_).mergeFrom(value).buildPartial(); - } else { - desiredIdentityServiceConfig_ = value; - } - onChanged(); - } else { - desiredIdentityServiceConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The desired Identity Service component configuration.
-     * 
- * - * .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; - */ - public Builder clearDesiredIdentityServiceConfig() { - if (desiredIdentityServiceConfigBuilder_ == null) { - desiredIdentityServiceConfig_ = null; - onChanged(); - } else { - desiredIdentityServiceConfig_ = null; - desiredIdentityServiceConfigBuilder_ = null; - } - - 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() { - - 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 desiredServiceExternalIpsConfigBuilder_ != null || desiredServiceExternalIpsConfig_ != null; - } - /** - *
-     * ServiceExternalIPsConfig specifies the config for the use of Services with
-     * ExternalIPs field.
-     * 
- * - * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * @return The desiredServiceExternalIpsConfig. - */ - public com.google.container.v1.ServiceExternalIPsConfig getDesiredServiceExternalIpsConfig() { - if (desiredServiceExternalIpsConfigBuilder_ == null) { - return desiredServiceExternalIpsConfig_ == null ? com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance() : desiredServiceExternalIpsConfig_; - } else { - return desiredServiceExternalIpsConfigBuilder_.getMessage(); - } - } - /** - *
-     * ServiceExternalIPsConfig specifies the config for the use of Services with
-     * ExternalIPs field.
-     * 
- * - * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - */ - public Builder setDesiredServiceExternalIpsConfig(com.google.container.v1.ServiceExternalIPsConfig value) { - if (desiredServiceExternalIpsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredServiceExternalIpsConfig_ = value; - onChanged(); - } else { - desiredServiceExternalIpsConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - desiredServiceExternalIpsConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (desiredServiceExternalIpsConfig_ != null) { - desiredServiceExternalIpsConfig_ = - com.google.container.v1.ServiceExternalIPsConfig.newBuilder(desiredServiceExternalIpsConfig_).mergeFrom(value).buildPartial(); - } else { - desiredServiceExternalIpsConfig_ = value; - } - onChanged(); - } else { - desiredServiceExternalIpsConfigBuilder_.mergeFrom(value); - } - - 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() { - if (desiredServiceExternalIpsConfigBuilder_ == null) { - desiredServiceExternalIpsConfig_ = null; - onChanged(); - } else { - desiredServiceExternalIpsConfig_ = null; - desiredServiceExternalIpsConfigBuilder_ = null; - } - - 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() { - - 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 ((bitField0_ & 0x00000002) != 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) { - bitField0_ |= 0x00000002; - desiredEnablePrivateEndpoint_ = value; - 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() { - bitField0_ = (bitField0_ & ~0x00000002); - 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; - 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(); - 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; - 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 desiredGcfsConfigBuilder_ != null || desiredGcfsConfig_ != null; - } - /** - *
-     * The desired GCFS config for the cluster
-     * 
- * - * .google.container.v1.GcfsConfig desired_gcfs_config = 109; - * @return The desiredGcfsConfig. - */ - public com.google.container.v1.GcfsConfig getDesiredGcfsConfig() { - if (desiredGcfsConfigBuilder_ == null) { - return desiredGcfsConfig_ == null ? com.google.container.v1.GcfsConfig.getDefaultInstance() : desiredGcfsConfig_; - } else { - return desiredGcfsConfigBuilder_.getMessage(); - } - } - /** - *
-     * The desired GCFS config for the cluster
-     * 
- * - * .google.container.v1.GcfsConfig desired_gcfs_config = 109; - */ - public Builder setDesiredGcfsConfig(com.google.container.v1.GcfsConfig value) { - if (desiredGcfsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredGcfsConfig_ = value; - onChanged(); - } else { - desiredGcfsConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The desired GCFS config for the cluster
-     * 
- * - * .google.container.v1.GcfsConfig desired_gcfs_config = 109; - */ - public Builder setDesiredGcfsConfig( - com.google.container.v1.GcfsConfig.Builder builderForValue) { - if (desiredGcfsConfigBuilder_ == null) { - desiredGcfsConfig_ = builderForValue.build(); - onChanged(); - } else { - desiredGcfsConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The desired GCFS config for the cluster
-     * 
- * - * .google.container.v1.GcfsConfig desired_gcfs_config = 109; - */ - public Builder mergeDesiredGcfsConfig(com.google.container.v1.GcfsConfig value) { - if (desiredGcfsConfigBuilder_ == null) { - if (desiredGcfsConfig_ != null) { - desiredGcfsConfig_ = - com.google.container.v1.GcfsConfig.newBuilder(desiredGcfsConfig_).mergeFrom(value).buildPartial(); - } else { - desiredGcfsConfig_ = value; - } - onChanged(); - } else { - desiredGcfsConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The desired GCFS config for the cluster
-     * 
- * - * .google.container.v1.GcfsConfig desired_gcfs_config = 109; - */ - public Builder clearDesiredGcfsConfig() { - if (desiredGcfsConfigBuilder_ == null) { - desiredGcfsConfig_ = null; - onChanged(); - } else { - desiredGcfsConfig_ = null; - desiredGcfsConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * The desired GCFS config for the cluster
-     * 
- * - * .google.container.v1.GcfsConfig desired_gcfs_config = 109; - */ - public com.google.container.v1.GcfsConfig.Builder getDesiredGcfsConfigBuilder() { - - onChanged(); - return getDesiredGcfsConfigFieldBuilder().getBuilder(); - } - /** - *
-     * The desired GCFS config for the cluster
-     * 
- * - * .google.container.v1.GcfsConfig desired_gcfs_config = 109; - */ - public com.google.container.v1.GcfsConfigOrBuilder getDesiredGcfsConfigOrBuilder() { - if (desiredGcfsConfigBuilder_ != null) { - return desiredGcfsConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredGcfsConfig_ == null ? - com.google.container.v1.GcfsConfig.getDefaultInstance() : desiredGcfsConfig_; - } - } - /** - *
-     * The desired GCFS config for the cluster
-     * 
- * - * .google.container.v1.GcfsConfig desired_gcfs_config = 109; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GcfsConfig, com.google.container.v1.GcfsConfig.Builder, com.google.container.v1.GcfsConfigOrBuilder> - getDesiredGcfsConfigFieldBuilder() { - if (desiredGcfsConfigBuilder_ == null) { - desiredGcfsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GcfsConfig, com.google.container.v1.GcfsConfig.Builder, com.google.container.v1.GcfsConfigOrBuilder>( - getDesiredGcfsConfig(), - getParentForChildren(), - isClean()); - desiredGcfsConfig_ = null; - } - return desiredGcfsConfigBuilder_; - } - - 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 desiredNodePoolAutoConfigNetworkTagsBuilder_ != null || desiredNodePoolAutoConfigNetworkTags_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - desiredNodePoolAutoConfigNetworkTagsBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - desiredNodePoolAutoConfigNetworkTagsBuilder_.setMessage(builderForValue.build()); - } - - 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 (desiredNodePoolAutoConfigNetworkTags_ != null) { - desiredNodePoolAutoConfigNetworkTags_ = - com.google.container.v1.NetworkTags.newBuilder(desiredNodePoolAutoConfigNetworkTags_).mergeFrom(value).buildPartial(); - } else { - desiredNodePoolAutoConfigNetworkTags_ = value; - } - onChanged(); - } else { - desiredNodePoolAutoConfigNetworkTagsBuilder_.mergeFrom(value); - } - - 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() { - if (desiredNodePoolAutoConfigNetworkTagsBuilder_ == null) { - desiredNodePoolAutoConfigNetworkTags_ = null; - onChanged(); - } else { - desiredNodePoolAutoConfigNetworkTags_ = null; - desiredNodePoolAutoConfigNetworkTagsBuilder_ = null; - } - - 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() { - - 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 desiredGatewayApiConfigBuilder_ != null || desiredGatewayApiConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - desiredGatewayApiConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - desiredGatewayApiConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (desiredGatewayApiConfig_ != null) { - desiredGatewayApiConfig_ = - com.google.container.v1.GatewayAPIConfig.newBuilder(desiredGatewayApiConfig_).mergeFrom(value).buildPartial(); - } else { - desiredGatewayApiConfig_ = value; - } - onChanged(); - } else { - desiredGatewayApiConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The desired config of Gateway API on this cluster.
-     * 
- * - * .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; - */ - public Builder clearDesiredGatewayApiConfig() { - if (desiredGatewayApiConfigBuilder_ == null) { - desiredGatewayApiConfig_ = null; - onChanged(); - } else { - desiredGatewayApiConfig_ = null; - desiredGatewayApiConfigBuilder_ = null; - } - - 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() { - - 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 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 desiredNodePoolLoggingConfigBuilder_ != null || desiredNodePoolLoggingConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - desiredNodePoolLoggingConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - desiredNodePoolLoggingConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (desiredNodePoolLoggingConfig_ != null) { - desiredNodePoolLoggingConfig_ = - com.google.container.v1.NodePoolLoggingConfig.newBuilder(desiredNodePoolLoggingConfig_).mergeFrom(value).buildPartial(); - } else { - desiredNodePoolLoggingConfig_ = value; - } - onChanged(); - } else { - desiredNodePoolLoggingConfigBuilder_.mergeFrom(value); - } - - 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() { - if (desiredNodePoolLoggingConfigBuilder_ == null) { - desiredNodePoolLoggingConfig_ = null; - onChanged(); - } else { - desiredNodePoolLoggingConfig_ = null; - desiredNodePoolLoggingConfigBuilder_ = null; - } - - 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() { - - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 63645a781307..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java +++ /dev/null @@ -1,1091 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 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(); -} 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 deleted file mode 100644 index 1268cfc577dd..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java +++ /dev/null @@ -1,1160 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - 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=3579 - * @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=3579 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3585 - * @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=3585 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * 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=3589 - * @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=3589 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 7; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster 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(); - 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); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 58: { - name_ = input.readStringRequireUtf8(); - - 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 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=3579 - * @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=3579 - * @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=3579 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/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=3579 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - 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=3579 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3585 - * @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=3585 - * @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=3585 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3585 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - 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=3585 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * 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=3589 - * @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=3589 - * @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=3589 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * 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=3589 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. - * See google/container/v1/cluster_service.proto;l=3589 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster 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; - 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(); - 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; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 3bf99d8db8ea..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java +++ /dev/null @@ -1,115 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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=3579 - * @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=3579 - * @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=3585 - * @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=3585 - * @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=3589 - * @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=3589 - * @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 deleted file mode 100644 index 2e7f70131ae4..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteNodePoolUpgradeRequest.java +++ /dev/null @@ -1,590 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index ff2c79c06a89..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteNodePoolUpgradeRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index a159101d9324..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfidentialNodes.java +++ /dev/null @@ -1,492 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * ConfidentialNodes is configuration for the confidential nodes feature, which
- * makes nodes run on confidential VMs.
- * 
- * - * Protobuf type {@code google.container.v1.ConfidentialNodes} - */ -public final class ConfidentialNodes extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.ConfidentialNodes) - ConfidentialNodesOrBuilder { -private static final long serialVersionUID = 0L; - // Use ConfidentialNodes.newBuilder() to construct. - private ConfidentialNodes(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ConfidentialNodes() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ConfidentialNodes(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ConfidentialNodes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ConfidentialNodes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ConfidentialNodes.class, com.google.container.v1.ConfidentialNodes.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-   * Whether Confidential Nodes feature is enabled.
-   * 
- * - * 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(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ConfidentialNodes_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ConfidentialNodes getDefaultInstanceForType() { - return com.google.container.v1.ConfidentialNodes.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ConfidentialNodes build() { - com.google.container.v1.ConfidentialNodes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ConfidentialNodes buildPartial() { - com.google.container.v1.ConfidentialNodes result = new com.google.container.v1.ConfidentialNodes(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ConfidentialNodes) { - return mergeFrom((com.google.container.v1.ConfidentialNodes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ConfidentialNodes other) { - if (other == com.google.container.v1.ConfidentialNodes.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - onChanged(); - return this; - } - /** - *
-     * Whether Confidential Nodes feature is enabled.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1.ConfidentialNodes) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ConfidentialNodes) - private static final com.google.container.v1.ConfidentialNodes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1.ConfidentialNodes(); - } - - public static com.google.container.v1.ConfidentialNodes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfidentialNodes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 55a496362a15..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfidentialNodesOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface ConfidentialNodesOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ConfidentialNodes) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether Confidential Nodes feature is enabled.
-   * 
- * - * 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 deleted file mode 100644 index 5026f0bdfc0a..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfigConnectorConfig.java +++ /dev/null @@ -1,490 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * Configuration options for the Config Connector add-on.
- * 
- * - * Protobuf type {@code google.container.v1.ConfigConnectorConfig} - */ -public final class ConfigConnectorConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.ConfigConnectorConfig) - ConfigConnectorConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use ConfigConnectorConfig.newBuilder() to construct. - private ConfigConnectorConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ConfigConnectorConfig() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ConfigConnectorConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ConfigConnectorConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ConfigConnectorConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ConfigConnectorConfig.class, com.google.container.v1.ConfigConnectorConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-   * Whether Cloud Connector is enabled for this cluster.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - 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(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ConfigConnectorConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ConfigConnectorConfig getDefaultInstanceForType() { - return com.google.container.v1.ConfigConnectorConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ConfigConnectorConfig build() { - com.google.container.v1.ConfigConnectorConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ConfigConnectorConfig buildPartial() { - com.google.container.v1.ConfigConnectorConfig result = new com.google.container.v1.ConfigConnectorConfig(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ConfigConnectorConfig) { - return mergeFrom((com.google.container.v1.ConfigConnectorConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ConfigConnectorConfig other) { - if (other == com.google.container.v1.ConfigConnectorConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 boolean enabled_ ; - /** - *
-     * Whether Cloud Connector is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Whether Cloud Connector is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether Cloud Connector is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1.ConfigConnectorConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ConfigConnectorConfig) - private static final com.google.container.v1.ConfigConnectorConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1.ConfigConnectorConfig(); - } - - public static com.google.container.v1.ConfigConnectorConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigConnectorConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 895ef561f6c6..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfigConnectorConfigOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface ConfigConnectorConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ConfigConnectorConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether Cloud Connector is enabled for this cluster.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/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 deleted file mode 100644 index c8054cbd378a..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CostManagementConfig.java +++ /dev/null @@ -1,490 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * 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(); - 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); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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(); - - 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 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; - onChanged(); - return this; - } - /** - *
-     * Whether the feature is enabled or not.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1.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 deleted file mode 100644 index c8f4e47cd289..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CostManagementConfigOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index 56d8f68bb4d3..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java +++ /dev/null @@ -1,1216 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://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=2133 - * @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=2133 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Deprecated. The name of the Google Compute 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=2139 - * @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=2139 - * @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 cluster_ != null; - } - /** - *
-   * 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 getCluster(); - } - - public static final int PARENT_FIELD_NUMBER = 5; - private volatile java.lang.Object parent_; - /** - *
-   * The parent (project and location) where the cluster will be created.
-   * Specified in the format `projects/*/locations/*`.
-   * 
- * - * string parent = 5; - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * The parent (project and location) where the cluster will be created.
-   * Specified in the format `projects/*/locations/*`.
-   * 
- * - * string parent = 5; - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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 (cluster_ != null) { - 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 (cluster_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - zone_ = ""; - - if (clusterBuilder_ == null) { - cluster_ = null; - } else { - cluster_ = null; - clusterBuilder_ = null; - } - parent_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.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); - result.projectId_ = projectId_; - result.zone_ = zone_; - if (clusterBuilder_ == null) { - result.cluster_ = cluster_; - } else { - result.cluster_ = clusterBuilder_.build(); - } - result.parent_ = parent_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (other.hasCluster()) { - mergeCluster(other.getCluster()); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - input.readMessage( - getClusterFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 26 - case 42: { - parent_ = input.readStringRequireUtf8(); - - 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 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=2133 - * @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=2133 - * @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=2133 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The Google Developers Console [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=2133 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - 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=2133 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Deprecated. The name of the Google Compute 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=2139 - * @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=2139 - * @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=2139 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the Google Compute 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=2139 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - 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=2139 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private com.google.container.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 clusterBuilder_ != null || cluster_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - clusterBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - clusterBuilder_.setMessage(builderForValue.build()); - } - - 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 (cluster_ != null) { - cluster_ = - com.google.container.v1.Cluster.newBuilder(cluster_).mergeFrom(value).buildPartial(); - } else { - cluster_ = value; - } - onChanged(); - } else { - clusterBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Required. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
-     * 
- * - * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearCluster() { - if (clusterBuilder_ == null) { - cluster_ = null; - onChanged(); - } else { - cluster_ = null; - clusterBuilder_ = null; - } - - return this; - } - /** - *
-     * Required. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
-     * 
- * - * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.container.v1.Cluster.Builder getClusterBuilder() { - - 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; - onChanged(); - return this; - } - /** - *
-     * The parent (project and location) where the cluster will be created.
-     * Specified in the format `projects/*/locations/*`.
-     * 
- * - * string parent = 5; - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - *
-     * The parent (project and location) where the cluster will be created.
-     * Specified in the format `projects/*/locations/*`.
-     * 
- * - * string parent = 5; - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index 039ffc6a5107..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java +++ /dev/null @@ -1,119 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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=2133 - * @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=2133 - * @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=2139 - * @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=2139 - * @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 deleted file mode 100644 index ecde7da9551a..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java +++ /dev/null @@ -1,1397 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://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=2712 - * @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=2712 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Deprecated. The name of the Google Compute 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=2718 - * @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=2718 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * 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=2722 - * @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=2722 - * @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 nodePool_ != null; - } - /** - *
-   * 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 getNodePool(); - } - - public static final int PARENT_FIELD_NUMBER = 6; - 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 (nodePool_ != null) { - 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 (nodePool_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - if (nodePoolBuilder_ == null) { - nodePool_ = null; - } else { - nodePool_ = null; - nodePoolBuilder_ = null; - } - parent_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.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); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - if (nodePoolBuilder_ == null) { - result.nodePool_ = nodePool_; - } else { - result.nodePool_ = nodePoolBuilder_.build(); - } - result.parent_ = parent_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (other.hasNodePool()) { - mergeNodePool(other.getNodePool()); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - input.readMessage( - getNodePoolFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 34 - case 50: { - parent_ = input.readStringRequireUtf8(); - - 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 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=2712 - * @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=2712 - * @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=2712 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The Google Developers Console [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=2712 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - 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=2712 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Deprecated. The name of the Google Compute 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=2718 - * @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=2718 - * @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=2718 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the Google Compute 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=2718 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - 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=2718 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * 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=2722 - * @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=2722 - * @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=2722 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * 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=2722 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. - * See google/container/v1/cluster_service.proto;l=2722 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private com.google.container.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 nodePoolBuilder_ != null || nodePool_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - nodePoolBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - nodePoolBuilder_.setMessage(builderForValue.build()); - } - - 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 (nodePool_ != null) { - nodePool_ = - com.google.container.v1.NodePool.newBuilder(nodePool_).mergeFrom(value).buildPartial(); - } else { - nodePool_ = value; - } - onChanged(); - } else { - nodePoolBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Required. The node pool to create.
-     * 
- * - * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearNodePool() { - if (nodePoolBuilder_ == null) { - nodePool_ = null; - onChanged(); - } else { - nodePool_ = null; - nodePoolBuilder_ = null; - } - - return this; - } - /** - *
-     * Required. The node pool to create.
-     * 
- * - * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.container.v1.NodePool.Builder getNodePoolBuilder() { - - 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; - 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(); - 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; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index bc40c1b45970..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java +++ /dev/null @@ -1,144 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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=2712 - * @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=2712 - * @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=2718 - * @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=2718 - * @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=2722 - * @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=2722 - * @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 deleted file mode 100644 index b79dcc95ed62..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DNSConfig.java +++ /dev/null @@ -1,1093 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * DNSConfig contains the desired set of options for configuring clusterDNS.
- * 
- * - * Protobuf type {@code google.container.v1.DNSConfig} - */ -public final class DNSConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.DNSConfig) - DNSConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use DNSConfig.newBuilder() to construct. - private DNSConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DNSConfig() { - clusterDns_ = 0; - clusterDnsScope_ = 0; - clusterDnsDomain_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DNSConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DNSConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DNSConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.DNSConfig.class, com.google.container.v1.DNSConfig.Builder.class); - } - - /** - *
-   * Provider lists the various in-cluster DNS providers.
-   * 
- * - * Protobuf enum {@code google.container.v1.DNSConfig.Provider} - */ - public enum Provider - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Default value
-     * 
- * - * PROVIDER_UNSPECIFIED = 0; - */ - PROVIDER_UNSPECIFIED(0), - /** - *
-     * Use GKE default DNS provider(kube-dns) for DNS resolution.
-     * 
- * - * PLATFORM_DEFAULT = 1; - */ - PLATFORM_DEFAULT(1), - /** - *
-     * Use CloudDNS for DNS resolution.
-     * 
- * - * CLOUD_DNS = 2; - */ - CLOUD_DNS(2), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Default value
-     * 
- * - * PROVIDER_UNSPECIFIED = 0; - */ - public static final int PROVIDER_UNSPECIFIED_VALUE = 0; - /** - *
-     * Use GKE default DNS provider(kube-dns) for DNS resolution.
-     * 
- * - * PLATFORM_DEFAULT = 1; - */ - public static final int PLATFORM_DEFAULT_VALUE = 1; - /** - *
-     * Use CloudDNS for DNS resolution.
-     * 
- * - * CLOUD_DNS = 2; - */ - public static final int CLOUD_DNS_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Provider valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Provider forNumber(int value) { - switch (value) { - case 0: return PROVIDER_UNSPECIFIED; - case 1: return PLATFORM_DEFAULT; - case 2: return CLOUD_DNS; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - 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 VPC.
-     * 
- * - * VPC_SCOPE = 2; - */ - VPC_SCOPE(2), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Default value, will be inferred as cluster scope.
-     * 
- * - * DNS_SCOPE_UNSPECIFIED = 0; - */ - public static final int DNS_SCOPE_UNSPECIFIED_VALUE = 0; - /** - *
-     * DNS records are accessible from within the VPC.
-     * 
- * - * VPC_SCOPE = 2; - */ - public static final int VPC_SCOPE_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DNSScope valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static DNSScope forNumber(int value) { - switch (value) { - case 0: return DNS_SCOPE_UNSPECIFIED; - case 2: return VPC_SCOPE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - 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_; - /** - *
-   * cluster_dns indicates which in-cluster DNS provider should be used.
-   * 
- * - * .google.container.v1.DNSConfig.Provider cluster_dns = 1; - * @return The enum numeric value on the wire for clusterDns. - */ - @java.lang.Override public int getClusterDnsValue() { - return clusterDns_; - } - /** - *
-   * cluster_dns indicates which in-cluster DNS provider should be used.
-   * 
- * - * .google.container.v1.DNSConfig.Provider cluster_dns = 1; - * @return The clusterDns. - */ - @java.lang.Override public com.google.container.v1.DNSConfig.Provider getClusterDns() { - @SuppressWarnings("deprecation") - com.google.container.v1.DNSConfig.Provider result = com.google.container.v1.DNSConfig.Provider.valueOf(clusterDns_); - return result == null ? com.google.container.v1.DNSConfig.Provider.UNRECOGNIZED : result; - } - - public static final int CLUSTER_DNS_SCOPE_FIELD_NUMBER = 2; - private int clusterDnsScope_; - /** - *
-   * cluster_dns_scope indicates the scope of access to cluster DNS records.
-   * 
- * - * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; - * @return The enum numeric value on the wire for clusterDnsScope. - */ - @java.lang.Override public int getClusterDnsScopeValue() { - return clusterDnsScope_; - } - /** - *
-   * cluster_dns_scope indicates the scope of access to cluster DNS records.
-   * 
- * - * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; - * @return The clusterDnsScope. - */ - @java.lang.Override public com.google.container.v1.DNSConfig.DNSScope getClusterDnsScope() { - @SuppressWarnings("deprecation") - com.google.container.v1.DNSConfig.DNSScope result = com.google.container.v1.DNSConfig.DNSScope.valueOf(clusterDnsScope_); - return result == null ? com.google.container.v1.DNSConfig.DNSScope.UNRECOGNIZED : result; - } - - public static final int CLUSTER_DNS_DOMAIN_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterDnsDomain_; - /** - *
-   * cluster_dns_domain is the suffix used for all cluster service records.
-   * 
- * - * string cluster_dns_domain = 3; - * @return The clusterDnsDomain. - */ - @java.lang.Override - public java.lang.String getClusterDnsDomain() { - java.lang.Object ref = clusterDnsDomain_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterDnsDomain_ = s; - return s; - } - } - /** - *
-   * cluster_dns_domain is the suffix used for all cluster service records.
-   * 
- * - * string cluster_dns_domain = 3; - * @return The bytes for clusterDnsDomain. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getClusterDnsDomainBytes() { - java.lang.Object ref = clusterDnsDomain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterDnsDomain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (clusterDns_ != com.google.container.v1.DNSConfig.Provider.PROVIDER_UNSPECIFIED.getNumber()) { - output.writeEnum(1, clusterDns_); - } - if (clusterDnsScope_ != com.google.container.v1.DNSConfig.DNSScope.DNS_SCOPE_UNSPECIFIED.getNumber()) { - output.writeEnum(2, clusterDnsScope_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterDnsDomain_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterDnsDomain_); - } - 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(); - clusterDns_ = 0; - - clusterDnsScope_ = 0; - - clusterDnsDomain_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DNSConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.DNSConfig getDefaultInstanceForType() { - return com.google.container.v1.DNSConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.DNSConfig build() { - com.google.container.v1.DNSConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.DNSConfig buildPartial() { - com.google.container.v1.DNSConfig result = new com.google.container.v1.DNSConfig(this); - result.clusterDns_ = clusterDns_; - result.clusterDnsScope_ = clusterDnsScope_; - result.clusterDnsDomain_ = clusterDnsDomain_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.DNSConfig) { - return mergeFrom((com.google.container.v1.DNSConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.DNSConfig other) { - if (other == com.google.container.v1.DNSConfig.getDefaultInstance()) return this; - if (other.clusterDns_ != 0) { - setClusterDnsValue(other.getClusterDnsValue()); - } - if (other.clusterDnsScope_ != 0) { - setClusterDnsScopeValue(other.getClusterDnsScopeValue()); - } - if (!other.getClusterDnsDomain().isEmpty()) { - clusterDnsDomain_ = other.clusterDnsDomain_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 8 - case 16: { - clusterDnsScope_ = input.readEnum(); - - break; - } // case 16 - case 26: { - clusterDnsDomain_ = input.readStringRequireUtf8(); - - 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 clusterDns_ = 0; - /** - *
-     * cluster_dns indicates which in-cluster DNS provider should be used.
-     * 
- * - * .google.container.v1.DNSConfig.Provider cluster_dns = 1; - * @return The enum numeric value on the wire for clusterDns. - */ - @java.lang.Override public int getClusterDnsValue() { - return clusterDns_; - } - /** - *
-     * cluster_dns indicates which in-cluster DNS provider should be used.
-     * 
- * - * .google.container.v1.DNSConfig.Provider cluster_dns = 1; - * @param value The enum numeric value on the wire for clusterDns to set. - * @return This builder for chaining. - */ - public Builder setClusterDnsValue(int value) { - - clusterDns_ = value; - onChanged(); - return this; - } - /** - *
-     * cluster_dns indicates which in-cluster DNS provider should be used.
-     * 
- * - * .google.container.v1.DNSConfig.Provider cluster_dns = 1; - * @return The clusterDns. - */ - @java.lang.Override - public com.google.container.v1.DNSConfig.Provider getClusterDns() { - @SuppressWarnings("deprecation") - com.google.container.v1.DNSConfig.Provider result = com.google.container.v1.DNSConfig.Provider.valueOf(clusterDns_); - return result == null ? com.google.container.v1.DNSConfig.Provider.UNRECOGNIZED : result; - } - /** - *
-     * cluster_dns indicates which in-cluster DNS provider should be used.
-     * 
- * - * .google.container.v1.DNSConfig.Provider cluster_dns = 1; - * @param value The clusterDns to set. - * @return This builder for chaining. - */ - public Builder setClusterDns(com.google.container.v1.DNSConfig.Provider value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterDns_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * cluster_dns indicates which in-cluster DNS provider should be used.
-     * 
- * - * .google.container.v1.DNSConfig.Provider cluster_dns = 1; - * @return This builder for chaining. - */ - public Builder clearClusterDns() { - - clusterDns_ = 0; - onChanged(); - return this; - } - - private int clusterDnsScope_ = 0; - /** - *
-     * cluster_dns_scope indicates the scope of access to cluster DNS records.
-     * 
- * - * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; - * @return The enum numeric value on the wire for clusterDnsScope. - */ - @java.lang.Override public int getClusterDnsScopeValue() { - return clusterDnsScope_; - } - /** - *
-     * cluster_dns_scope indicates the scope of access to cluster DNS records.
-     * 
- * - * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; - * @param value The enum numeric value on the wire for clusterDnsScope to set. - * @return This builder for chaining. - */ - public Builder setClusterDnsScopeValue(int value) { - - clusterDnsScope_ = value; - onChanged(); - return this; - } - /** - *
-     * cluster_dns_scope indicates the scope of access to cluster DNS records.
-     * 
- * - * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; - * @return The clusterDnsScope. - */ - @java.lang.Override - public com.google.container.v1.DNSConfig.DNSScope getClusterDnsScope() { - @SuppressWarnings("deprecation") - com.google.container.v1.DNSConfig.DNSScope result = com.google.container.v1.DNSConfig.DNSScope.valueOf(clusterDnsScope_); - return result == null ? com.google.container.v1.DNSConfig.DNSScope.UNRECOGNIZED : result; - } - /** - *
-     * cluster_dns_scope indicates the scope of access to cluster DNS records.
-     * 
- * - * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; - * @param value The clusterDnsScope to set. - * @return This builder for chaining. - */ - public Builder setClusterDnsScope(com.google.container.v1.DNSConfig.DNSScope value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterDnsScope_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * cluster_dns_scope indicates the scope of access to cluster DNS records.
-     * 
- * - * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; - * @return This builder for chaining. - */ - public Builder clearClusterDnsScope() { - - clusterDnsScope_ = 0; - onChanged(); - return this; - } - - private java.lang.Object clusterDnsDomain_ = ""; - /** - *
-     * cluster_dns_domain is the suffix used for all cluster service records.
-     * 
- * - * string cluster_dns_domain = 3; - * @return The clusterDnsDomain. - */ - public java.lang.String getClusterDnsDomain() { - java.lang.Object ref = clusterDnsDomain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterDnsDomain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * cluster_dns_domain is the suffix used for all cluster service records.
-     * 
- * - * string cluster_dns_domain = 3; - * @return The bytes for clusterDnsDomain. - */ - public com.google.protobuf.ByteString - getClusterDnsDomainBytes() { - java.lang.Object ref = clusterDnsDomain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterDnsDomain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * cluster_dns_domain is the suffix used for all cluster service records.
-     * 
- * - * string cluster_dns_domain = 3; - * @param value The clusterDnsDomain to set. - * @return This builder for chaining. - */ - public Builder setClusterDnsDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterDnsDomain_ = value; - onChanged(); - return this; - } - /** - *
-     * cluster_dns_domain is the suffix used for all cluster service records.
-     * 
- * - * string cluster_dns_domain = 3; - * @return This builder for chaining. - */ - public Builder clearClusterDnsDomain() { - - clusterDnsDomain_ = getDefaultInstance().getClusterDnsDomain(); - onChanged(); - return this; - } - /** - *
-     * cluster_dns_domain is the suffix used for all cluster service records.
-     * 
- * - * string cluster_dns_domain = 3; - * @param value The bytes for clusterDnsDomain to set. - * @return This builder for chaining. - */ - public Builder setClusterDnsDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterDnsDomain_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1.DNSConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.DNSConfig) - private static final com.google.container.v1.DNSConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1.DNSConfig(); - } - - public static com.google.container.v1.DNSConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DNSConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index a7a67399b1a9..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DNSConfigOrBuilder.java +++ /dev/null @@ -1,67 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface DNSConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.DNSConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * cluster_dns indicates which in-cluster DNS provider should be used.
-   * 
- * - * .google.container.v1.DNSConfig.Provider cluster_dns = 1; - * @return The enum numeric value on the wire for clusterDns. - */ - int getClusterDnsValue(); - /** - *
-   * cluster_dns indicates which in-cluster DNS provider should be used.
-   * 
- * - * .google.container.v1.DNSConfig.Provider cluster_dns = 1; - * @return The clusterDns. - */ - com.google.container.v1.DNSConfig.Provider getClusterDns(); - - /** - *
-   * cluster_dns_scope indicates the scope of access to cluster DNS records.
-   * 
- * - * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; - * @return The enum numeric value on the wire for clusterDnsScope. - */ - int getClusterDnsScopeValue(); - /** - *
-   * cluster_dns_scope indicates the scope of access to cluster DNS records.
-   * 
- * - * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; - * @return The clusterDnsScope. - */ - com.google.container.v1.DNSConfig.DNSScope getClusterDnsScope(); - - /** - *
-   * cluster_dns_domain is the suffix used for all cluster service records.
-   * 
- * - * string cluster_dns_domain = 3; - * @return The clusterDnsDomain. - */ - java.lang.String getClusterDnsDomain(); - /** - *
-   * cluster_dns_domain is the suffix used for all cluster service records.
-   * 
- * - * string cluster_dns_domain = 3; - * @return The bytes for clusterDnsDomain. - */ - com.google.protobuf.ByteString - getClusterDnsDomainBytes(); -} diff --git a/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 deleted file mode 100644 index 667cdd0f346c..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindow.java +++ /dev/null @@ -1,774 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - 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; - 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(); - 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); - result.startTime_ = startTime_; - result.duration_ = duration_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getDuration().isEmpty()) { - duration_ = other.duration_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == 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(); - - break; - } // case 18 - case 26: { - duration_ = input.readStringRequireUtf8(); - - 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 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; - 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(); - 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; - 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; - 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(); - 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; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 9ff19d6f5325..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindowOrBuilder.java +++ /dev/null @@ -1,59 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index bbc090e55be1..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatabaseEncryption.java +++ /dev/null @@ -1,851 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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() { - state_ = 0; - keyName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DatabaseEncryption(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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 STATE_FIELD_NUMBER = 2; - private int state_; - /** - *
-   * Denotes the 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_; - } - /** - *
-   * Denotes the 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() { - @SuppressWarnings("deprecation") - com.google.container.v1.DatabaseEncryption.State result = com.google.container.v1.DatabaseEncryption.State.valueOf(state_); - return result == null ? com.google.container.v1.DatabaseEncryption.State.UNRECOGNIZED : result; - } - - public static final int KEY_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object keyName_; - /** - *
-   * Name of CloudKMS key to use for the encryption of secrets in etcd.
-   * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
-   * 
- * - * string key_name = 1; - * @return The keyName. - */ - @java.lang.Override - public java.lang.String getKeyName() { - java.lang.Object ref = keyName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - keyName_ = s; - return s; - } - } - /** - *
-   * Name of CloudKMS key to use for the encryption of secrets in etcd.
-   * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
-   * 
- * - * string key_name = 1; - * @return The bytes for keyName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getKeyNameBytes() { - java.lang.Object ref = keyName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - keyName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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 (state_ != other.state_) return false; - if (!getKeyName() - .equals(other.getKeyName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (37 * hash) + KEY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getKeyName().hashCode(); - hash = (29 * hash) + 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(); - state_ = 0; - - keyName_ = ""; - - 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); - result.state_ = state_; - result.keyName_ = keyName_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (!other.getKeyName().isEmpty()) { - keyName_ = other.keyName_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 16: { - state_ = input.readEnum(); - - 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 state_ = 0; - /** - *
-     * Denotes the 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_; - } - /** - *
-     * Denotes the 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; - onChanged(); - return this; - } - /** - *
-     * Denotes the 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() { - @SuppressWarnings("deprecation") - com.google.container.v1.DatabaseEncryption.State result = com.google.container.v1.DatabaseEncryption.State.valueOf(state_); - return result == null ? com.google.container.v1.DatabaseEncryption.State.UNRECOGNIZED : result; - } - /** - *
-     * Denotes the 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(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Denotes the state of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption.State state = 2; - * @return This builder for chaining. - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private java.lang.Object keyName_ = ""; - /** - *
-     * Name of CloudKMS key to use for the encryption of secrets in etcd.
-     * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
-     * 
- * - * string key_name = 1; - * @return The keyName. - */ - public java.lang.String getKeyName() { - java.lang.Object ref = keyName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - keyName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Name of CloudKMS key to use for the encryption of secrets in etcd.
-     * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
-     * 
- * - * string key_name = 1; - * @return The bytes for keyName. - */ - public com.google.protobuf.ByteString - getKeyNameBytes() { - java.lang.Object ref = keyName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - keyName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Name of CloudKMS key to use for the encryption of secrets in etcd.
-     * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
-     * 
- * - * string key_name = 1; - * @param value The keyName to set. - * @return This builder for chaining. - */ - public Builder setKeyName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - keyName_ = value; - onChanged(); - return this; - } - /** - *
-     * Name of CloudKMS key to use for the encryption of secrets in etcd.
-     * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
-     * 
- * - * string key_name = 1; - * @return This builder for chaining. - */ - public Builder clearKeyName() { - - keyName_ = getDefaultInstance().getKeyName(); - onChanged(); - return this; - } - /** - *
-     * Name of CloudKMS key to use for the encryption of secrets in etcd.
-     * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
-     * 
- * - * string key_name = 1; - * @param value The bytes for keyName to set. - * @return This builder for chaining. - */ - public Builder setKeyNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - keyName_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index c28529eac451..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatabaseEncryptionOrBuilder.java +++ /dev/null @@ -1,50 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface DatabaseEncryptionOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.DatabaseEncryption) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Denotes the state of etcd encryption.
-   * 
- * - * .google.container.v1.DatabaseEncryption.State state = 2; - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - /** - *
-   * Denotes the state of etcd encryption.
-   * 
- * - * .google.container.v1.DatabaseEncryption.State state = 2; - * @return The state. - */ - com.google.container.v1.DatabaseEncryption.State getState(); - - /** - *
-   * Name of CloudKMS key to use for the encryption of secrets in etcd.
-   * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
-   * 
- * - * string key_name = 1; - * @return The keyName. - */ - java.lang.String getKeyName(); - /** - *
-   * Name of CloudKMS key to use for the encryption of secrets in etcd.
-   * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
-   * 
- * - * string key_name = 1; - * @return The bytes for keyName. - */ - com.google.protobuf.ByteString - getKeyNameBytes(); -} diff --git a/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 deleted file mode 100644 index c89134ff3f02..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatapathProvider.java +++ /dev/null @@ -1,157 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * The datapath provider selects the implementation of the Kubernetes networking
- * model for service resolution and network policy enforcement.
- * 
- * - * Protobuf enum {@code google.container.v1.DatapathProvider} - */ -public enum DatapathProvider - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * Default value.
-   * 
- * - * DATAPATH_PROVIDER_UNSPECIFIED = 0; - */ - DATAPATH_PROVIDER_UNSPECIFIED(0), - /** - *
-   * Use the IPTables implementation based on kube-proxy.
-   * 
- * - * LEGACY_DATAPATH = 1; - */ - LEGACY_DATAPATH(1), - /** - *
-   * Use the eBPF based GKE Dataplane V2 with additional features. See the [GKE
-   * Dataplane V2
-   * documentation](https://cloud.google.com/kubernetes-engine/docs/how-to/dataplane-v2)
-   * for more.
-   * 
- * - * ADVANCED_DATAPATH = 2; - */ - ADVANCED_DATAPATH(2), - UNRECOGNIZED(-1), - ; - - /** - *
-   * Default value.
-   * 
- * - * DATAPATH_PROVIDER_UNSPECIFIED = 0; - */ - public static final int DATAPATH_PROVIDER_UNSPECIFIED_VALUE = 0; - /** - *
-   * Use the IPTables implementation based on kube-proxy.
-   * 
- * - * LEGACY_DATAPATH = 1; - */ - public static final int LEGACY_DATAPATH_VALUE = 1; - /** - *
-   * Use the eBPF based GKE Dataplane V2 with additional features. See the [GKE
-   * Dataplane V2
-   * documentation](https://cloud.google.com/kubernetes-engine/docs/how-to/dataplane-v2)
-   * for more.
-   * 
- * - * ADVANCED_DATAPATH = 2; - */ - public static final int ADVANCED_DATAPATH_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DatapathProvider valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static DatapathProvider forNumber(int value) { - switch (value) { - case 0: return DATAPATH_PROVIDER_UNSPECIFIED; - case 1: return LEGACY_DATAPATH; - case 2: return ADVANCED_DATAPATH; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - 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 deleted file mode 100644 index daa0b7dd2390..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DefaultSnatStatus.java +++ /dev/null @@ -1,492 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * DefaultSnatStatus contains the desired state of whether default sNAT should
- * be disabled on the cluster.
- * 
- * - * Protobuf type {@code google.container.v1.DefaultSnatStatus} - */ -public final class DefaultSnatStatus extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.DefaultSnatStatus) - DefaultSnatStatusOrBuilder { -private static final long serialVersionUID = 0L; - // Use DefaultSnatStatus.newBuilder() to construct. - private DefaultSnatStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DefaultSnatStatus() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DefaultSnatStatus(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DefaultSnatStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DefaultSnatStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.DefaultSnatStatus.class, com.google.container.v1.DefaultSnatStatus.Builder.class); - } - - public static final int DISABLED_FIELD_NUMBER = 1; - private boolean disabled_; - /** - *
-   * Disables cluster default sNAT rules.
-   * 
- * - * bool disabled = 1; - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (disabled_ != false) { - output.writeBool(1, disabled_); - } - 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(); - disabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DefaultSnatStatus_descriptor; - } - - @java.lang.Override - public com.google.container.v1.DefaultSnatStatus getDefaultInstanceForType() { - return com.google.container.v1.DefaultSnatStatus.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.DefaultSnatStatus build() { - com.google.container.v1.DefaultSnatStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.DefaultSnatStatus buildPartial() { - com.google.container.v1.DefaultSnatStatus result = new com.google.container.v1.DefaultSnatStatus(this); - result.disabled_ = disabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.DefaultSnatStatus) { - return mergeFrom((com.google.container.v1.DefaultSnatStatus)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.DefaultSnatStatus other) { - if (other == com.google.container.v1.DefaultSnatStatus.getDefaultInstance()) return this; - if (other.getDisabled() != false) { - setDisabled(other.getDisabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 boolean disabled_ ; - /** - *
-     * Disables cluster default sNAT rules.
-     * 
- * - * bool disabled = 1; - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - /** - *
-     * Disables cluster default sNAT rules.
-     * 
- * - * bool disabled = 1; - * @param value The disabled to set. - * @return This builder for chaining. - */ - public Builder setDisabled(boolean value) { - - disabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Disables cluster default sNAT rules.
-     * 
- * - * bool disabled = 1; - * @return This builder for chaining. - */ - public Builder clearDisabled() { - - disabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1.DefaultSnatStatus) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.DefaultSnatStatus) - private static final com.google.container.v1.DefaultSnatStatus DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1.DefaultSnatStatus(); - } - - public static com.google.container.v1.DefaultSnatStatus getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DefaultSnatStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index f0e89de1a17b..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DefaultSnatStatusOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface DefaultSnatStatusOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.DefaultSnatStatus) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Disables cluster default sNAT rules.
-   * 
- * - * bool disabled = 1; - * @return The disabled. - */ - boolean getDisabled(); -} diff --git a/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 deleted file mode 100644 index 3cbe74e0130d..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java +++ /dev/null @@ -1,1160 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - 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=2536 - * @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=2536 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2542 - * @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=2542 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * 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=2546 - * @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=2546 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster) of the cluster to delete.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 4; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project, location, cluster) of the cluster to delete.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 4; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - 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); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - name_ = input.readStringRequireUtf8(); - - 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 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=2536 - * @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=2536 - * @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=2536 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/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=2536 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - 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=2536 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2542 - * @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=2542 - * @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=2542 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2542 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - 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=2542 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * 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=2546 - * @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=2546 - * @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=2546 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * 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=2546 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the cluster to delete.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. - * See google/container/v1/cluster_service.proto;l=2546 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster) of the cluster to delete.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 4; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name (project, location, cluster) of the cluster to delete.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 4; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name (project, location, cluster) of the cluster to delete.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 4; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster) of the cluster to delete.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 4; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster) of the cluster to delete.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 4; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index 2d0cc315e275..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java +++ /dev/null @@ -1,115 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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=2536 - * @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=2536 - * @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=2542 - * @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=2542 - * @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=2546 - * @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=2546 - * @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 deleted file mode 100644 index d1f4937f260a..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java +++ /dev/null @@ -1,1353 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - 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=2738 - * @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=2738 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2744 - * @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=2744 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * 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=2748 - * @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=2748 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_POOL_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object nodePoolId_; - /** - *
-   * 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=2752 - * @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=2752 - * @return The bytes for nodePoolId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getNodePoolIdBytes() { - java.lang.Object ref = nodePoolId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodePoolId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster, node pool id) of the node pool to
-   * delete. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 6; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project, location, cluster, node pool id) of the node pool to
-   * delete. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 6; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - 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); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.nodePoolId_ = nodePoolId_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getNodePoolId().isEmpty()) { - nodePoolId_ = other.nodePoolId_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - nodePoolId_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 50: { - name_ = input.readStringRequireUtf8(); - - 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 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=2738 - * @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=2738 - * @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=2738 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/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=2738 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - 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=2738 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2744 - * @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=2744 - * @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=2744 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2744 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - 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=2744 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * 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=2748 - * @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=2748 - * @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=2748 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * 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=2748 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. - * See google/container/v1/cluster_service.proto;l=2748 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object nodePoolId_ = ""; - /** - *
-     * 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=2752 - * @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=2752 - * @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=2752 - * @param value The nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setNodePoolId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodePoolId_ = value; - onChanged(); - return this; - } - /** - *
-     * 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=2752 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearNodePoolId() { - - nodePoolId_ = getDefaultInstance().getNodePoolId(); - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the node pool to delete.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=2752 - * @param value The bytes for nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setNodePoolIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodePoolId_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to
-     * delete. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to
-     * delete. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to
-     * delete. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to
-     * delete. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to
-     * delete. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index bfe0824484fa..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java +++ /dev/null @@ -1,143 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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=2738 - * @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=2738 - * @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=2744 - * @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=2744 - * @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=2748 - * @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=2748 - * @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=2752 - * @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=2752 - * @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 deleted file mode 100644 index c6d248736b20..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DnsCacheConfig.java +++ /dev/null @@ -1,490 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * Configuration for NodeLocal DNSCache
- * 
- * - * Protobuf type {@code google.container.v1.DnsCacheConfig} - */ -public final class DnsCacheConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.DnsCacheConfig) - DnsCacheConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use DnsCacheConfig.newBuilder() to construct. - private DnsCacheConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DnsCacheConfig() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DnsCacheConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DnsCacheConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DnsCacheConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.DnsCacheConfig.class, com.google.container.v1.DnsCacheConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-   * Whether NodeLocal DNSCache is enabled for this cluster.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - 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(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DnsCacheConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.DnsCacheConfig getDefaultInstanceForType() { - return com.google.container.v1.DnsCacheConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.DnsCacheConfig build() { - com.google.container.v1.DnsCacheConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.DnsCacheConfig buildPartial() { - com.google.container.v1.DnsCacheConfig result = new com.google.container.v1.DnsCacheConfig(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.DnsCacheConfig) { - return mergeFrom((com.google.container.v1.DnsCacheConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.DnsCacheConfig other) { - if (other == com.google.container.v1.DnsCacheConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 boolean enabled_ ; - /** - *
-     * Whether NodeLocal DNSCache is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Whether NodeLocal DNSCache is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether NodeLocal DNSCache is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1.DnsCacheConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.DnsCacheConfig) - private static final com.google.container.v1.DnsCacheConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1.DnsCacheConfig(); - } - - public static com.google.container.v1.DnsCacheConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DnsCacheConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 8acfad5ddae9..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DnsCacheConfigOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface DnsCacheConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.DnsCacheConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether NodeLocal DNSCache is enabled for this cluster.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/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 deleted file mode 100644 index d80037c9480c..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GPUSharingConfig.java +++ /dev/null @@ -1,778 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * 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_; - /** - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.container.v1.GPUSharingConfig.GPUSharingStrategy result = com.google.container.v1.GPUSharingConfig.GPUSharingStrategy.valueOf(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(); - maxSharedClientsPerGpu_ = 0L; - - gpuSharingStrategy_ = 0; - 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_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); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.maxSharedClientsPerGpu_ = maxSharedClientsPerGpu_; - if (((from_bitField0_ & 0x00000001) != 0)) { - to_bitField0_ |= 0x00000001; - } - result.gpuSharingStrategy_ = gpuSharingStrategy_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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(); - - break; - } // case 8 - case 16: { - gpuSharingStrategy_ = 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 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; - 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() { - - 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_ & 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; - * @param value The enum numeric value on the wire for gpuSharingStrategy to set. - * @return This builder for chaining. - */ - public Builder setGpuSharingStrategyValue(int value) { - bitField0_ |= 0x00000001; - gpuSharingStrategy_ = value; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1.GPUSharingConfig.GPUSharingStrategy result = com.google.container.v1.GPUSharingConfig.GPUSharingStrategy.valueOf(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_ |= 0x00000001; - 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_ & ~0x00000001); - 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 deleted file mode 100644 index cd7d0b60981f..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GPUSharingConfigOrBuilder.java +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index 03a3cd464a1c..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GatewayAPIConfig.java +++ /dev/null @@ -1,695 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.container.v1.GatewayAPIConfig.Channel result = com.google.container.v1.GatewayAPIConfig.Channel.valueOf(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(); - 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); - result.channel_ = channel_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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(); - - 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 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; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1.GatewayAPIConfig.Channel result = com.google.container.v1.GatewayAPIConfig.Channel.valueOf(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(); - } - - 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() { - - 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 deleted file mode 100644 index 0b046cd810cc..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GatewayAPIConfigOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index dfe9fa7b5120..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcePersistentDiskCsiDriverConfig.java +++ /dev/null @@ -1,490 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * Configuration for the Compute Engine PD CSI driver.
- * 
- * - * Protobuf type {@code google.container.v1.GcePersistentDiskCsiDriverConfig} - */ -public final class GcePersistentDiskCsiDriverConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.GcePersistentDiskCsiDriverConfig) - GcePersistentDiskCsiDriverConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use GcePersistentDiskCsiDriverConfig.newBuilder() to construct. - private GcePersistentDiskCsiDriverConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GcePersistentDiskCsiDriverConfig() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GcePersistentDiskCsiDriverConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GcePersistentDiskCsiDriverConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GcePersistentDiskCsiDriverConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GcePersistentDiskCsiDriverConfig.class, com.google.container.v1.GcePersistentDiskCsiDriverConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-   * Whether the Compute Engine PD CSI driver is enabled for this cluster.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - 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(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GcePersistentDiskCsiDriverConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.GcePersistentDiskCsiDriverConfig getDefaultInstanceForType() { - return com.google.container.v1.GcePersistentDiskCsiDriverConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.GcePersistentDiskCsiDriverConfig build() { - com.google.container.v1.GcePersistentDiskCsiDriverConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.GcePersistentDiskCsiDriverConfig buildPartial() { - com.google.container.v1.GcePersistentDiskCsiDriverConfig result = new com.google.container.v1.GcePersistentDiskCsiDriverConfig(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.GcePersistentDiskCsiDriverConfig) { - return mergeFrom((com.google.container.v1.GcePersistentDiskCsiDriverConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.GcePersistentDiskCsiDriverConfig other) { - if (other == com.google.container.v1.GcePersistentDiskCsiDriverConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 boolean enabled_ ; - /** - *
-     * Whether the Compute Engine PD CSI driver is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Whether the Compute Engine PD CSI driver is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether the Compute Engine PD CSI driver is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1.GcePersistentDiskCsiDriverConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.GcePersistentDiskCsiDriverConfig) - private static final com.google.container.v1.GcePersistentDiskCsiDriverConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1.GcePersistentDiskCsiDriverConfig(); - } - - public static com.google.container.v1.GcePersistentDiskCsiDriverConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcePersistentDiskCsiDriverConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index c2d5188e850b..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcePersistentDiskCsiDriverConfigOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface GcePersistentDiskCsiDriverConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.GcePersistentDiskCsiDriverConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether the Compute Engine PD CSI driver is enabled for this cluster.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/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 deleted file mode 100644 index 77fb6152731a..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcfsConfig.java +++ /dev/null @@ -1,492 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * GcfsConfig contains configurations of Google Container File System
- * (image streaming).
- * 
- * - * Protobuf type {@code google.container.v1.GcfsConfig} - */ -public final class GcfsConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.GcfsConfig) - GcfsConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use GcfsConfig.newBuilder() to construct. - private GcfsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GcfsConfig() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GcfsConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GcfsConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GcfsConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GcfsConfig.class, com.google.container.v1.GcfsConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-   * Whether to use GCFS.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - 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(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GcfsConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.GcfsConfig getDefaultInstanceForType() { - return com.google.container.v1.GcfsConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.GcfsConfig build() { - com.google.container.v1.GcfsConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.GcfsConfig buildPartial() { - com.google.container.v1.GcfsConfig result = new com.google.container.v1.GcfsConfig(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.GcfsConfig) { - return mergeFrom((com.google.container.v1.GcfsConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.GcfsConfig other) { - if (other == com.google.container.v1.GcfsConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 boolean enabled_ ; - /** - *
-     * Whether to use GCFS.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Whether to use GCFS.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether to use GCFS.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1.GcfsConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.GcfsConfig) - private static final com.google.container.v1.GcfsConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1.GcfsConfig(); - } - - public static com.google.container.v1.GcfsConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcfsConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 6e8550f61df3..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcfsConfigOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface GcfsConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.GcfsConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether to use GCFS.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/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 deleted file mode 100644 index dfbcbe0303a3..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcpFilestoreCsiDriverConfig.java +++ /dev/null @@ -1,490 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * Configuration for the GCP Filestore CSI driver.
- * 
- * - * Protobuf type {@code google.container.v1.GcpFilestoreCsiDriverConfig} - */ -public final class GcpFilestoreCsiDriverConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.GcpFilestoreCsiDriverConfig) - GcpFilestoreCsiDriverConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use GcpFilestoreCsiDriverConfig.newBuilder() to construct. - private GcpFilestoreCsiDriverConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GcpFilestoreCsiDriverConfig() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GcpFilestoreCsiDriverConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GcpFilestoreCsiDriverConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GcpFilestoreCsiDriverConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GcpFilestoreCsiDriverConfig.class, com.google.container.v1.GcpFilestoreCsiDriverConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-   * Whether the GCP Filestore CSI driver is enabled for this cluster.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - 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(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GcpFilestoreCsiDriverConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.GcpFilestoreCsiDriverConfig getDefaultInstanceForType() { - return com.google.container.v1.GcpFilestoreCsiDriverConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.GcpFilestoreCsiDriverConfig build() { - com.google.container.v1.GcpFilestoreCsiDriverConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.GcpFilestoreCsiDriverConfig buildPartial() { - com.google.container.v1.GcpFilestoreCsiDriverConfig result = new com.google.container.v1.GcpFilestoreCsiDriverConfig(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.GcpFilestoreCsiDriverConfig) { - return mergeFrom((com.google.container.v1.GcpFilestoreCsiDriverConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.GcpFilestoreCsiDriverConfig other) { - if (other == com.google.container.v1.GcpFilestoreCsiDriverConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 boolean enabled_ ; - /** - *
-     * Whether the GCP Filestore CSI driver is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Whether the GCP Filestore CSI driver is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether the GCP Filestore CSI driver is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1.GcpFilestoreCsiDriverConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.GcpFilestoreCsiDriverConfig) - private static final com.google.container.v1.GcpFilestoreCsiDriverConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1.GcpFilestoreCsiDriverConfig(); - } - - public static com.google.container.v1.GcpFilestoreCsiDriverConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcpFilestoreCsiDriverConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 5e164058f180..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcpFilestoreCsiDriverConfigOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface GcpFilestoreCsiDriverConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.GcpFilestoreCsiDriverConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether the GCP Filestore CSI driver is enabled for this cluster.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/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 deleted file mode 100644 index 8fbf6e9cec44..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java +++ /dev/null @@ -1,1160 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - 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=2155 - * @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=2155 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2161 - * @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=2161 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * 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=2165 - * @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=2165 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 5; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster) of the cluster to retrieve.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 5; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project, location, cluster) of the cluster to retrieve.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 5; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - 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); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 42: { - name_ = input.readStringRequireUtf8(); - - 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 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=2155 - * @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=2155 - * @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=2155 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/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=2155 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - 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=2155 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2161 - * @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=2161 - * @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=2161 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2161 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - 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=2161 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * 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=2165 - * @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=2165 - * @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=2165 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * 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=2165 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the cluster to retrieve.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. - * See google/container/v1/cluster_service.proto;l=2165 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster) of the cluster to retrieve.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name (project, location, cluster) of the cluster to retrieve.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name (project, location, cluster) of the cluster to retrieve.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster) of the cluster to retrieve.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster) of the cluster to retrieve.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index f6bebf41a177..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java +++ /dev/null @@ -1,115 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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=2155 - * @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=2155 - * @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=2161 - * @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=2161 - * @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=2165 - * @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=2165 - * @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 deleted file mode 100644 index ec1b4c61bb77..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysRequest.java +++ /dev/null @@ -1,587 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * GetJSONWebKeysRequest gets the public component of the keys used by the
- * cluster to sign token requests. This will be the jwks_uri for the discover
- * document returned by getOpenIDConfig. See the OpenID Connect
- * Discovery 1.0 specification for details.
- * 
- * - * Protobuf type {@code google.container.v1.GetJSONWebKeysRequest} - */ -public final class GetJSONWebKeysRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.GetJSONWebKeysRequest) - GetJSONWebKeysRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetJSONWebKeysRequest.newBuilder() to construct. - private GetJSONWebKeysRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetJSONWebKeysRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetJSONWebKeysRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetJSONWebKeysRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetJSONWebKeysRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GetJSONWebKeysRequest.class, com.google.container.v1.GetJSONWebKeysRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - *
-   * The cluster (project, location, cluster 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(); - parent_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetJSONWebKeysRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.GetJSONWebKeysRequest getDefaultInstanceForType() { - return com.google.container.v1.GetJSONWebKeysRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.GetJSONWebKeysRequest build() { - com.google.container.v1.GetJSONWebKeysRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.GetJSONWebKeysRequest buildPartial() { - com.google.container.v1.GetJSONWebKeysRequest result = new com.google.container.v1.GetJSONWebKeysRequest(this); - result.parent_ = parent_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.GetJSONWebKeysRequest) { - return mergeFrom((com.google.container.v1.GetJSONWebKeysRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.GetJSONWebKeysRequest other) { - if (other == com.google.container.v1.GetJSONWebKeysRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 73a69640e1a2..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface GetJSONWebKeysRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.GetJSONWebKeysRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The cluster (project, location, cluster 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 deleted file mode 100644 index 7bccb3c18b78..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysResponse.java +++ /dev/null @@ -1,875 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc 7517
- * 
- * - * Protobuf type {@code google.container.v1.GetJSONWebKeysResponse} - */ -public final class GetJSONWebKeysResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.GetJSONWebKeysResponse) - GetJSONWebKeysResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetJSONWebKeysResponse.newBuilder() to construct. - private GetJSONWebKeysResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetJSONWebKeysResponse() { - keys_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetJSONWebKeysResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetJSONWebKeysResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetJSONWebKeysResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GetJSONWebKeysResponse.class, com.google.container.v1.GetJSONWebKeysResponse.Builder.class); - } - - public static final int KEYS_FIELD_NUMBER = 1; - private java.util.List keys_; - /** - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - @java.lang.Override - public java.util.List getKeysList() { - return keys_; - } - /** - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - @java.lang.Override - public java.util.List - getKeysOrBuilderList() { - return keys_; - } - /** - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - @java.lang.Override - public int getKeysCount() { - return keys_.size(); - } - /** - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - @java.lang.Override - public com.google.container.v1.Jwk getKeys(int index) { - return keys_.get(index); - } - /** - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - @java.lang.Override - public com.google.container.v1.JwkOrBuilder getKeysOrBuilder( - int index) { - return keys_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < keys_.size(); i++) { - output.writeMessage(1, keys_.get(i)); - } - 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(); - 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); - int from_bitField0_ = bitField0_; - if (keysBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - keys_ = java.util.Collections.unmodifiableList(keys_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.keys_ = keys_; - } else { - result.keys_ = keysBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.GetJSONWebKeysResponse) { - return mergeFrom((com.google.container.v1.GetJSONWebKeysResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.GetJSONWebKeysResponse other) { - if (other == com.google.container.v1.GetJSONWebKeysResponse.getDefaultInstance()) return this; - if (keysBuilder_ == null) { - if (!other.keys_.isEmpty()) { - if (keys_.isEmpty()) { - keys_ = other.keys_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureKeysIsMutable(); - keys_.addAll(other.keys_); - } - onChanged(); - } - } else { - if (!other.keys_.isEmpty()) { - if (keysBuilder_.isEmpty()) { - keysBuilder_.dispose(); - keysBuilder_ = null; - keys_ = other.keys_; - bitField0_ = (bitField0_ & ~0x00000001); - keysBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getKeysFieldBuilder() : null; - } else { - keysBuilder_.addAllMessages(other.keys_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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 deleted file mode 100644 index 0031bb1117a5..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysResponseOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface GetJSONWebKeysResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.GetJSONWebKeysResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - java.util.List - getKeysList(); - /** - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - com.google.container.v1.Jwk getKeys(int index); - /** - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - int getKeysCount(); - /** - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - java.util.List - getKeysOrBuilderList(); - /** - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - com.google.container.v1.JwkOrBuilder getKeysOrBuilder( - int index); -} diff --git a/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 deleted file mode 100644 index 76df443eb562..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java +++ /dev/null @@ -1,1353 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - 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=2787 - * @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=2787 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2793 - * @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=2793 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * 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=2797 - * @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=2797 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_POOL_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object nodePoolId_; - /** - *
-   * 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=2801 - * @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=2801 - * @return The bytes for nodePoolId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getNodePoolIdBytes() { - java.lang.Object ref = nodePoolId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodePoolId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster, node pool id) of the node pool to
-   * get. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 6; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project, location, cluster, node pool id) of the node pool to
-   * get. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 6; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - 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); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.nodePoolId_ = nodePoolId_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getNodePoolId().isEmpty()) { - nodePoolId_ = other.nodePoolId_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - nodePoolId_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 50: { - name_ = input.readStringRequireUtf8(); - - 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 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=2787 - * @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=2787 - * @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=2787 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/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=2787 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - 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=2787 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2793 - * @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=2793 - * @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=2793 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2793 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - 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=2793 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * 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=2797 - * @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=2797 - * @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=2797 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * 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=2797 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. - * See google/container/v1/cluster_service.proto;l=2797 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object nodePoolId_ = ""; - /** - *
-     * 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=2801 - * @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=2801 - * @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=2801 - * @param value The nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setNodePoolId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodePoolId_ = value; - onChanged(); - return this; - } - /** - *
-     * 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=2801 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearNodePoolId() { - - nodePoolId_ = getDefaultInstance().getNodePoolId(); - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the node pool.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=2801 - * @param value The bytes for nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setNodePoolIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodePoolId_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to
-     * get. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to
-     * get. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to
-     * get. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to
-     * get. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to
-     * get. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index c1887068497d..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java +++ /dev/null @@ -1,143 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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=2787 - * @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=2787 - * @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=2793 - * @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=2793 - * @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=2797 - * @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=2797 - * @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=2801 - * @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=2801 - * @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 deleted file mode 100644 index 452c3789a691..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigRequest.java +++ /dev/null @@ -1,583 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * GetOpenIDConfigRequest gets the OIDC discovery document for the
- * cluster. See the OpenID Connect Discovery 1.0 specification for details.
- * 
- * - * Protobuf type {@code google.container.v1.GetOpenIDConfigRequest} - */ -public final class GetOpenIDConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.GetOpenIDConfigRequest) - GetOpenIDConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetOpenIDConfigRequest.newBuilder() to construct. - private GetOpenIDConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetOpenIDConfigRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetOpenIDConfigRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetOpenIDConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetOpenIDConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GetOpenIDConfigRequest.class, com.google.container.v1.GetOpenIDConfigRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - *
-   * The cluster (project, location, cluster 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(); - parent_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetOpenIDConfigRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.GetOpenIDConfigRequest getDefaultInstanceForType() { - return com.google.container.v1.GetOpenIDConfigRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.GetOpenIDConfigRequest build() { - com.google.container.v1.GetOpenIDConfigRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.GetOpenIDConfigRequest buildPartial() { - com.google.container.v1.GetOpenIDConfigRequest result = new com.google.container.v1.GetOpenIDConfigRequest(this); - result.parent_ = parent_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.GetOpenIDConfigRequest) { - return mergeFrom((com.google.container.v1.GetOpenIDConfigRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.GetOpenIDConfigRequest other) { - if (other == com.google.container.v1.GetOpenIDConfigRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 619f46728e64..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface GetOpenIDConfigRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.GetOpenIDConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The cluster (project, location, cluster 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 deleted file mode 100644 index 79426236a0fa..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigResponse.java +++ /dev/null @@ -1,1933 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * GetOpenIDConfigResponse is an OIDC discovery document for the cluster.
- * See the OpenID Connect Discovery 1.0 specification for details.
- * 
- * - * Protobuf type {@code google.container.v1.GetOpenIDConfigResponse} - */ -public final class GetOpenIDConfigResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.GetOpenIDConfigResponse) - GetOpenIDConfigResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetOpenIDConfigResponse.newBuilder() to construct. - private GetOpenIDConfigResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetOpenIDConfigResponse() { - issuer_ = ""; - jwksUri_ = ""; - responseTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - subjectTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - idTokenSigningAlgValuesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - claimsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - grantTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetOpenIDConfigResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetOpenIDConfigResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetOpenIDConfigResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GetOpenIDConfigResponse.class, com.google.container.v1.GetOpenIDConfigResponse.Builder.class); - } - - public static final int ISSUER_FIELD_NUMBER = 1; - private volatile java.lang.Object issuer_; - /** - *
-   * OIDC Issuer.
-   * 
- * - * string issuer = 1; - * @return The issuer. - */ - @java.lang.Override - public java.lang.String getIssuer() { - java.lang.Object ref = issuer_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - issuer_ = s; - return s; - } - } - /** - *
-   * OIDC Issuer.
-   * 
- * - * string issuer = 1; - * @return The bytes for issuer. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIssuerBytes() { - java.lang.Object ref = issuer_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - issuer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int JWKS_URI_FIELD_NUMBER = 2; - private volatile java.lang.Object jwksUri_; - /** - *
-   * JSON Web Key uri.
-   * 
- * - * string jwks_uri = 2; - * @return The jwksUri. - */ - @java.lang.Override - public java.lang.String getJwksUri() { - java.lang.Object ref = jwksUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jwksUri_ = s; - return s; - } - } - /** - *
-   * JSON Web Key uri.
-   * 
- * - * string jwks_uri = 2; - * @return The bytes for jwksUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getJwksUriBytes() { - java.lang.Object ref = jwksUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - jwksUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESPONSE_TYPES_SUPPORTED_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList responseTypesSupported_; - /** - *
-   * Supported response types.
-   * 
- * - * repeated string response_types_supported = 3; - * @return A list containing the responseTypesSupported. - */ - public com.google.protobuf.ProtocolStringList - getResponseTypesSupportedList() { - return responseTypesSupported_; - } - /** - *
-   * Supported response types.
-   * 
- * - * repeated string response_types_supported = 3; - * @return The count of responseTypesSupported. - */ - public int getResponseTypesSupportedCount() { - return responseTypesSupported_.size(); - } - /** - *
-   * Supported response types.
-   * 
- * - * repeated string response_types_supported = 3; - * @param index The index of the element to return. - * @return The responseTypesSupported at the given index. - */ - public java.lang.String getResponseTypesSupported(int index) { - return responseTypesSupported_.get(index); - } - /** - *
-   * Supported response types.
-   * 
- * - * repeated string response_types_supported = 3; - * @param index The index of the value to return. - * @return The bytes of the responseTypesSupported at the given index. - */ - public com.google.protobuf.ByteString - getResponseTypesSupportedBytes(int index) { - return responseTypesSupported_.getByteString(index); - } - - public static final int SUBJECT_TYPES_SUPPORTED_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList subjectTypesSupported_; - /** - *
-   * Supported subject types.
-   * 
- * - * repeated string subject_types_supported = 4; - * @return A list containing the subjectTypesSupported. - */ - public com.google.protobuf.ProtocolStringList - getSubjectTypesSupportedList() { - return subjectTypesSupported_; - } - /** - *
-   * Supported subject types.
-   * 
- * - * repeated string subject_types_supported = 4; - * @return The count of subjectTypesSupported. - */ - public int getSubjectTypesSupportedCount() { - return subjectTypesSupported_.size(); - } - /** - *
-   * Supported subject types.
-   * 
- * - * repeated string subject_types_supported = 4; - * @param index The index of the element to return. - * @return The subjectTypesSupported at the given index. - */ - public java.lang.String getSubjectTypesSupported(int index) { - return subjectTypesSupported_.get(index); - } - /** - *
-   * Supported subject types.
-   * 
- * - * repeated string subject_types_supported = 4; - * @param index The index of the value to return. - * @return The bytes of the subjectTypesSupported at the given index. - */ - public com.google.protobuf.ByteString - getSubjectTypesSupportedBytes(int index) { - return subjectTypesSupported_.getByteString(index); - } - - public static final int ID_TOKEN_SIGNING_ALG_VALUES_SUPPORTED_FIELD_NUMBER = 5; - private com.google.protobuf.LazyStringList idTokenSigningAlgValuesSupported_; - /** - *
-   * supported ID Token signing Algorithms.
-   * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * @return A list containing the idTokenSigningAlgValuesSupported. - */ - public com.google.protobuf.ProtocolStringList - getIdTokenSigningAlgValuesSupportedList() { - return idTokenSigningAlgValuesSupported_; - } - /** - *
-   * supported ID Token signing Algorithms.
-   * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * @return The count of idTokenSigningAlgValuesSupported. - */ - public int getIdTokenSigningAlgValuesSupportedCount() { - return idTokenSigningAlgValuesSupported_.size(); - } - /** - *
-   * supported ID Token signing Algorithms.
-   * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * @param index The index of the element to return. - * @return The idTokenSigningAlgValuesSupported at the given index. - */ - public java.lang.String getIdTokenSigningAlgValuesSupported(int index) { - return idTokenSigningAlgValuesSupported_.get(index); - } - /** - *
-   * supported ID Token signing Algorithms.
-   * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * @param index The index of the value to return. - * @return The bytes of the idTokenSigningAlgValuesSupported at the given index. - */ - public com.google.protobuf.ByteString - getIdTokenSigningAlgValuesSupportedBytes(int index) { - return idTokenSigningAlgValuesSupported_.getByteString(index); - } - - public static final int CLAIMS_SUPPORTED_FIELD_NUMBER = 6; - private com.google.protobuf.LazyStringList claimsSupported_; - /** - *
-   * Supported claims.
-   * 
- * - * repeated string claims_supported = 6; - * @return A list containing the claimsSupported. - */ - public com.google.protobuf.ProtocolStringList - getClaimsSupportedList() { - return claimsSupported_; - } - /** - *
-   * Supported claims.
-   * 
- * - * repeated string claims_supported = 6; - * @return The count of claimsSupported. - */ - public int getClaimsSupportedCount() { - return claimsSupported_.size(); - } - /** - *
-   * Supported claims.
-   * 
- * - * repeated string claims_supported = 6; - * @param index The index of the element to return. - * @return The claimsSupported at the given index. - */ - public java.lang.String getClaimsSupported(int index) { - return claimsSupported_.get(index); - } - /** - *
-   * Supported claims.
-   * 
- * - * repeated string claims_supported = 6; - * @param index The index of the value to return. - * @return The bytes of the claimsSupported at the given index. - */ - public com.google.protobuf.ByteString - getClaimsSupportedBytes(int index) { - return claimsSupported_.getByteString(index); - } - - public static final int GRANT_TYPES_FIELD_NUMBER = 7; - private com.google.protobuf.LazyStringList grantTypes_; - /** - *
-   * Supported grant types.
-   * 
- * - * repeated string grant_types = 7; - * @return A list containing the grantTypes. - */ - public com.google.protobuf.ProtocolStringList - getGrantTypesList() { - return grantTypes_; - } - /** - *
-   * Supported grant types.
-   * 
- * - * repeated string grant_types = 7; - * @return The count of grantTypes. - */ - public int getGrantTypesCount() { - return grantTypes_.size(); - } - /** - *
-   * Supported grant types.
-   * 
- * - * repeated string grant_types = 7; - * @param index The index of the element to return. - * @return The grantTypes at the given index. - */ - public java.lang.String getGrantTypes(int index) { - return grantTypes_.get(index); - } - /** - *
-   * Supported grant types.
-   * 
- * - * repeated string grant_types = 7; - * @param index The index of the value to return. - * @return The bytes of the grantTypes at the given index. - */ - public com.google.protobuf.ByteString - getGrantTypesBytes(int index) { - return grantTypes_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - issuer_ = ""; - - jwksUri_ = ""; - - responseTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - subjectTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - idTokenSigningAlgValuesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - claimsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - grantTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetOpenIDConfigResponse_descriptor; - } - - @java.lang.Override - public com.google.container.v1.GetOpenIDConfigResponse getDefaultInstanceForType() { - return com.google.container.v1.GetOpenIDConfigResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.GetOpenIDConfigResponse build() { - com.google.container.v1.GetOpenIDConfigResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.GetOpenIDConfigResponse buildPartial() { - com.google.container.v1.GetOpenIDConfigResponse result = new com.google.container.v1.GetOpenIDConfigResponse(this); - int from_bitField0_ = bitField0_; - result.issuer_ = issuer_; - result.jwksUri_ = jwksUri_; - if (((bitField0_ & 0x00000001) != 0)) { - responseTypesSupported_ = responseTypesSupported_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.responseTypesSupported_ = responseTypesSupported_; - if (((bitField0_ & 0x00000002) != 0)) { - subjectTypesSupported_ = subjectTypesSupported_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.subjectTypesSupported_ = subjectTypesSupported_; - if (((bitField0_ & 0x00000004) != 0)) { - idTokenSigningAlgValuesSupported_ = idTokenSigningAlgValuesSupported_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.idTokenSigningAlgValuesSupported_ = idTokenSigningAlgValuesSupported_; - if (((bitField0_ & 0x00000008) != 0)) { - claimsSupported_ = claimsSupported_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.claimsSupported_ = claimsSupported_; - if (((bitField0_ & 0x00000010) != 0)) { - grantTypes_ = grantTypes_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.grantTypes_ = grantTypes_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.GetOpenIDConfigResponse) { - return mergeFrom((com.google.container.v1.GetOpenIDConfigResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.GetOpenIDConfigResponse other) { - if (other == com.google.container.v1.GetOpenIDConfigResponse.getDefaultInstance()) return this; - if (!other.getIssuer().isEmpty()) { - issuer_ = other.issuer_; - onChanged(); - } - if (!other.getJwksUri().isEmpty()) { - jwksUri_ = other.jwksUri_; - onChanged(); - } - if (!other.responseTypesSupported_.isEmpty()) { - if (responseTypesSupported_.isEmpty()) { - responseTypesSupported_ = other.responseTypesSupported_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureResponseTypesSupportedIsMutable(); - responseTypesSupported_.addAll(other.responseTypesSupported_); - } - onChanged(); - } - if (!other.subjectTypesSupported_.isEmpty()) { - if (subjectTypesSupported_.isEmpty()) { - subjectTypesSupported_ = other.subjectTypesSupported_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureSubjectTypesSupportedIsMutable(); - subjectTypesSupported_.addAll(other.subjectTypesSupported_); - } - onChanged(); - } - if (!other.idTokenSigningAlgValuesSupported_.isEmpty()) { - if (idTokenSigningAlgValuesSupported_.isEmpty()) { - idTokenSigningAlgValuesSupported_ = other.idTokenSigningAlgValuesSupported_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureIdTokenSigningAlgValuesSupportedIsMutable(); - idTokenSigningAlgValuesSupported_.addAll(other.idTokenSigningAlgValuesSupported_); - } - onChanged(); - } - if (!other.claimsSupported_.isEmpty()) { - if (claimsSupported_.isEmpty()) { - claimsSupported_ = other.claimsSupported_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureClaimsSupportedIsMutable(); - claimsSupported_.addAll(other.claimsSupported_); - } - onChanged(); - } - if (!other.grantTypes_.isEmpty()) { - if (grantTypes_.isEmpty()) { - grantTypes_ = other.grantTypes_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureGrantTypesIsMutable(); - grantTypes_.addAll(other.grantTypes_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - jwksUri_ = input.readStringRequireUtf8(); - - 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; - onChanged(); - return this; - } - /** - *
-     * OIDC Issuer.
-     * 
- * - * string issuer = 1; - * @return This builder for chaining. - */ - public Builder clearIssuer() { - - issuer_ = getDefaultInstance().getIssuer(); - onChanged(); - return this; - } - /** - *
-     * OIDC Issuer.
-     * 
- * - * string issuer = 1; - * @param value The bytes for issuer to set. - * @return This builder for chaining. - */ - public Builder setIssuerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - issuer_ = value; - onChanged(); - return this; - } - - private java.lang.Object jwksUri_ = ""; - /** - *
-     * JSON Web Key uri.
-     * 
- * - * string jwks_uri = 2; - * @return The jwksUri. - */ - public java.lang.String getJwksUri() { - java.lang.Object ref = jwksUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jwksUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * JSON Web Key uri.
-     * 
- * - * string jwks_uri = 2; - * @return The bytes for jwksUri. - */ - public com.google.protobuf.ByteString - getJwksUriBytes() { - java.lang.Object ref = jwksUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - jwksUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * JSON Web Key uri.
-     * 
- * - * string jwks_uri = 2; - * @param value The jwksUri to set. - * @return This builder for chaining. - */ - public Builder setJwksUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - jwksUri_ = value; - onChanged(); - return this; - } - /** - *
-     * JSON Web Key uri.
-     * 
- * - * string jwks_uri = 2; - * @return This builder for chaining. - */ - public Builder clearJwksUri() { - - jwksUri_ = getDefaultInstance().getJwksUri(); - onChanged(); - return this; - } - /** - *
-     * JSON Web Key uri.
-     * 
- * - * string jwks_uri = 2; - * @param value The bytes for jwksUri to set. - * @return This builder for chaining. - */ - public Builder setJwksUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - jwksUri_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList responseTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureResponseTypesSupportedIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - responseTypesSupported_ = new com.google.protobuf.LazyStringArrayList(responseTypesSupported_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * Supported response types.
-     * 
- * - * repeated string response_types_supported = 3; - * @return A list containing the responseTypesSupported. - */ - public com.google.protobuf.ProtocolStringList - getResponseTypesSupportedList() { - return responseTypesSupported_.getUnmodifiableView(); - } - /** - *
-     * Supported response types.
-     * 
- * - * repeated string response_types_supported = 3; - * @return The count of responseTypesSupported. - */ - public int getResponseTypesSupportedCount() { - return responseTypesSupported_.size(); - } - /** - *
-     * Supported response types.
-     * 
- * - * repeated string response_types_supported = 3; - * @param index The index of the element to return. - * @return The responseTypesSupported at the given index. - */ - public java.lang.String getResponseTypesSupported(int index) { - return responseTypesSupported_.get(index); - } - /** - *
-     * Supported response types.
-     * 
- * - * repeated string response_types_supported = 3; - * @param index The index of the value to return. - * @return The bytes of the responseTypesSupported at the given index. - */ - public com.google.protobuf.ByteString - getResponseTypesSupportedBytes(int index) { - return responseTypesSupported_.getByteString(index); - } - /** - *
-     * Supported response types.
-     * 
- * - * repeated string response_types_supported = 3; - * @param index The index to set the value at. - * @param value The responseTypesSupported to set. - * @return This builder for chaining. - */ - public Builder setResponseTypesSupported( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureResponseTypesSupportedIsMutable(); - responseTypesSupported_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * Supported response types.
-     * 
- * - * repeated string response_types_supported = 3; - * @param value The responseTypesSupported to add. - * @return This builder for chaining. - */ - public Builder addResponseTypesSupported( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureResponseTypesSupportedIsMutable(); - responseTypesSupported_.add(value); - onChanged(); - return this; - } - /** - *
-     * Supported response types.
-     * 
- * - * repeated string response_types_supported = 3; - * @param values The responseTypesSupported to add. - * @return This builder for chaining. - */ - public Builder addAllResponseTypesSupported( - java.lang.Iterable values) { - ensureResponseTypesSupportedIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, responseTypesSupported_); - onChanged(); - return this; - } - /** - *
-     * Supported response types.
-     * 
- * - * repeated string response_types_supported = 3; - * @return This builder for chaining. - */ - public Builder clearResponseTypesSupported() { - responseTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Supported response types.
-     * 
- * - * repeated string response_types_supported = 3; - * @param value The bytes of the responseTypesSupported to add. - * @return This builder for chaining. - */ - public Builder addResponseTypesSupportedBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureResponseTypesSupportedIsMutable(); - responseTypesSupported_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList subjectTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureSubjectTypesSupportedIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - subjectTypesSupported_ = new com.google.protobuf.LazyStringArrayList(subjectTypesSupported_); - bitField0_ |= 0x00000002; - } - } - /** - *
-     * Supported subject types.
-     * 
- * - * repeated string subject_types_supported = 4; - * @return A list containing the subjectTypesSupported. - */ - public com.google.protobuf.ProtocolStringList - getSubjectTypesSupportedList() { - return subjectTypesSupported_.getUnmodifiableView(); - } - /** - *
-     * Supported subject types.
-     * 
- * - * repeated string subject_types_supported = 4; - * @return The count of subjectTypesSupported. - */ - public int getSubjectTypesSupportedCount() { - return subjectTypesSupported_.size(); - } - /** - *
-     * Supported subject types.
-     * 
- * - * repeated string subject_types_supported = 4; - * @param index The index of the element to return. - * @return The subjectTypesSupported at the given index. - */ - public java.lang.String getSubjectTypesSupported(int index) { - return subjectTypesSupported_.get(index); - } - /** - *
-     * Supported subject types.
-     * 
- * - * repeated string subject_types_supported = 4; - * @param index The index of the value to return. - * @return The bytes of the subjectTypesSupported at the given index. - */ - public com.google.protobuf.ByteString - getSubjectTypesSupportedBytes(int index) { - return subjectTypesSupported_.getByteString(index); - } - /** - *
-     * Supported subject types.
-     * 
- * - * repeated string subject_types_supported = 4; - * @param index The index to set the value at. - * @param value The subjectTypesSupported to set. - * @return This builder for chaining. - */ - public Builder setSubjectTypesSupported( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubjectTypesSupportedIsMutable(); - subjectTypesSupported_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * Supported subject types.
-     * 
- * - * repeated string subject_types_supported = 4; - * @param value The subjectTypesSupported to add. - * @return This builder for chaining. - */ - public Builder addSubjectTypesSupported( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubjectTypesSupportedIsMutable(); - subjectTypesSupported_.add(value); - onChanged(); - return this; - } - /** - *
-     * Supported subject types.
-     * 
- * - * repeated string subject_types_supported = 4; - * @param values The subjectTypesSupported to add. - * @return This builder for chaining. - */ - public Builder addAllSubjectTypesSupported( - java.lang.Iterable values) { - ensureSubjectTypesSupportedIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, subjectTypesSupported_); - onChanged(); - return this; - } - /** - *
-     * Supported subject types.
-     * 
- * - * repeated string subject_types_supported = 4; - * @return This builder for chaining. - */ - public Builder clearSubjectTypesSupported() { - subjectTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Supported subject types.
-     * 
- * - * repeated string subject_types_supported = 4; - * @param value The bytes of the subjectTypesSupported to add. - * @return This builder for chaining. - */ - public Builder addSubjectTypesSupportedBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureSubjectTypesSupportedIsMutable(); - subjectTypesSupported_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList idTokenSigningAlgValuesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureIdTokenSigningAlgValuesSupportedIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - idTokenSigningAlgValuesSupported_ = new com.google.protobuf.LazyStringArrayList(idTokenSigningAlgValuesSupported_); - bitField0_ |= 0x00000004; - } - } - /** - *
-     * supported ID Token signing Algorithms.
-     * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * @return A list containing the idTokenSigningAlgValuesSupported. - */ - public com.google.protobuf.ProtocolStringList - getIdTokenSigningAlgValuesSupportedList() { - return idTokenSigningAlgValuesSupported_.getUnmodifiableView(); - } - /** - *
-     * supported ID Token signing Algorithms.
-     * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * @return The count of idTokenSigningAlgValuesSupported. - */ - public int getIdTokenSigningAlgValuesSupportedCount() { - return idTokenSigningAlgValuesSupported_.size(); - } - /** - *
-     * supported ID Token signing Algorithms.
-     * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * @param index The index of the element to return. - * @return The idTokenSigningAlgValuesSupported at the given index. - */ - public java.lang.String getIdTokenSigningAlgValuesSupported(int index) { - return idTokenSigningAlgValuesSupported_.get(index); - } - /** - *
-     * supported ID Token signing Algorithms.
-     * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * @param index The index of the value to return. - * @return The bytes of the idTokenSigningAlgValuesSupported at the given index. - */ - public com.google.protobuf.ByteString - getIdTokenSigningAlgValuesSupportedBytes(int index) { - return idTokenSigningAlgValuesSupported_.getByteString(index); - } - /** - *
-     * supported ID Token signing Algorithms.
-     * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * @param index The index to set the value at. - * @param value The idTokenSigningAlgValuesSupported to set. - * @return This builder for chaining. - */ - public Builder setIdTokenSigningAlgValuesSupported( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIdTokenSigningAlgValuesSupportedIsMutable(); - idTokenSigningAlgValuesSupported_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * supported ID Token signing Algorithms.
-     * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * @param value The idTokenSigningAlgValuesSupported to add. - * @return This builder for chaining. - */ - public Builder addIdTokenSigningAlgValuesSupported( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIdTokenSigningAlgValuesSupportedIsMutable(); - idTokenSigningAlgValuesSupported_.add(value); - onChanged(); - return this; - } - /** - *
-     * supported ID Token signing Algorithms.
-     * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * @param values The idTokenSigningAlgValuesSupported to add. - * @return This builder for chaining. - */ - public Builder addAllIdTokenSigningAlgValuesSupported( - java.lang.Iterable values) { - ensureIdTokenSigningAlgValuesSupportedIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, idTokenSigningAlgValuesSupported_); - onChanged(); - return this; - } - /** - *
-     * supported ID Token signing Algorithms.
-     * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * @return This builder for chaining. - */ - public Builder clearIdTokenSigningAlgValuesSupported() { - idTokenSigningAlgValuesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * supported ID Token signing Algorithms.
-     * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * @param value The bytes of the idTokenSigningAlgValuesSupported to add. - * @return This builder for chaining. - */ - public Builder addIdTokenSigningAlgValuesSupportedBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureIdTokenSigningAlgValuesSupportedIsMutable(); - idTokenSigningAlgValuesSupported_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList claimsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureClaimsSupportedIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - claimsSupported_ = new com.google.protobuf.LazyStringArrayList(claimsSupported_); - bitField0_ |= 0x00000008; - } - } - /** - *
-     * Supported claims.
-     * 
- * - * repeated string claims_supported = 6; - * @return A list containing the claimsSupported. - */ - public com.google.protobuf.ProtocolStringList - getClaimsSupportedList() { - return claimsSupported_.getUnmodifiableView(); - } - /** - *
-     * Supported claims.
-     * 
- * - * repeated string claims_supported = 6; - * @return The count of claimsSupported. - */ - public int getClaimsSupportedCount() { - return claimsSupported_.size(); - } - /** - *
-     * Supported claims.
-     * 
- * - * repeated string claims_supported = 6; - * @param index The index of the element to return. - * @return The claimsSupported at the given index. - */ - public java.lang.String getClaimsSupported(int index) { - return claimsSupported_.get(index); - } - /** - *
-     * Supported claims.
-     * 
- * - * repeated string claims_supported = 6; - * @param index The index of the value to return. - * @return The bytes of the claimsSupported at the given index. - */ - public com.google.protobuf.ByteString - getClaimsSupportedBytes(int index) { - return claimsSupported_.getByteString(index); - } - /** - *
-     * Supported claims.
-     * 
- * - * repeated string claims_supported = 6; - * @param index The index to set the value at. - * @param value The claimsSupported to set. - * @return This builder for chaining. - */ - public Builder setClaimsSupported( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureClaimsSupportedIsMutable(); - claimsSupported_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * Supported claims.
-     * 
- * - * repeated string claims_supported = 6; - * @param value The claimsSupported to add. - * @return This builder for chaining. - */ - public Builder addClaimsSupported( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureClaimsSupportedIsMutable(); - claimsSupported_.add(value); - onChanged(); - return this; - } - /** - *
-     * Supported claims.
-     * 
- * - * repeated string claims_supported = 6; - * @param values The claimsSupported to add. - * @return This builder for chaining. - */ - public Builder addAllClaimsSupported( - java.lang.Iterable values) { - ensureClaimsSupportedIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, claimsSupported_); - onChanged(); - return this; - } - /** - *
-     * Supported claims.
-     * 
- * - * repeated string claims_supported = 6; - * @return This builder for chaining. - */ - public Builder clearClaimsSupported() { - claimsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - *
-     * Supported claims.
-     * 
- * - * repeated string claims_supported = 6; - * @param value The bytes of the claimsSupported to add. - * @return This builder for chaining. - */ - public Builder addClaimsSupportedBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureClaimsSupportedIsMutable(); - claimsSupported_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList grantTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureGrantTypesIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - grantTypes_ = new com.google.protobuf.LazyStringArrayList(grantTypes_); - bitField0_ |= 0x00000010; - } - } - /** - *
-     * Supported grant types.
-     * 
- * - * repeated string grant_types = 7; - * @return A list containing the grantTypes. - */ - public com.google.protobuf.ProtocolStringList - getGrantTypesList() { - return grantTypes_.getUnmodifiableView(); - } - /** - *
-     * Supported grant types.
-     * 
- * - * repeated string grant_types = 7; - * @return The count of grantTypes. - */ - public int getGrantTypesCount() { - return grantTypes_.size(); - } - /** - *
-     * Supported grant types.
-     * 
- * - * repeated string grant_types = 7; - * @param index The index of the element to return. - * @return The grantTypes at the given index. - */ - public java.lang.String getGrantTypes(int index) { - return grantTypes_.get(index); - } - /** - *
-     * Supported grant types.
-     * 
- * - * repeated string grant_types = 7; - * @param index The index of the value to return. - * @return The bytes of the grantTypes at the given index. - */ - public com.google.protobuf.ByteString - getGrantTypesBytes(int index) { - return grantTypes_.getByteString(index); - } - /** - *
-     * Supported grant types.
-     * 
- * - * repeated string grant_types = 7; - * @param index The index to set the value at. - * @param value The grantTypes to set. - * @return This builder for chaining. - */ - public Builder setGrantTypes( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureGrantTypesIsMutable(); - grantTypes_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * Supported grant types.
-     * 
- * - * repeated string grant_types = 7; - * @param value The grantTypes to add. - * @return This builder for chaining. - */ - public Builder addGrantTypes( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureGrantTypesIsMutable(); - grantTypes_.add(value); - onChanged(); - return this; - } - /** - *
-     * Supported grant types.
-     * 
- * - * repeated string grant_types = 7; - * @param values The grantTypes to add. - * @return This builder for chaining. - */ - public Builder addAllGrantTypes( - java.lang.Iterable values) { - ensureGrantTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, grantTypes_); - onChanged(); - return this; - } - /** - *
-     * Supported grant types.
-     * 
- * - * repeated string grant_types = 7; - * @return This builder for chaining. - */ - public Builder clearGrantTypes() { - grantTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - *
-     * Supported grant types.
-     * 
- * - * repeated string grant_types = 7; - * @param value The bytes of the grantTypes to add. - * @return This builder for chaining. - */ - public Builder addGrantTypesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureGrantTypesIsMutable(); - grantTypes_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1.GetOpenIDConfigResponse) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.GetOpenIDConfigResponse) - private static final com.google.container.v1.GetOpenIDConfigResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1.GetOpenIDConfigResponse(); - } - - public static com.google.container.v1.GetOpenIDConfigResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetOpenIDConfigResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 71468d75b97b..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigResponseOrBuilder.java +++ /dev/null @@ -1,254 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface GetOpenIDConfigResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.GetOpenIDConfigResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * OIDC Issuer.
-   * 
- * - * string issuer = 1; - * @return The issuer. - */ - java.lang.String getIssuer(); - /** - *
-   * OIDC Issuer.
-   * 
- * - * string issuer = 1; - * @return The bytes for issuer. - */ - com.google.protobuf.ByteString - getIssuerBytes(); - - /** - *
-   * JSON Web Key uri.
-   * 
- * - * string jwks_uri = 2; - * @return The jwksUri. - */ - java.lang.String getJwksUri(); - /** - *
-   * JSON Web Key uri.
-   * 
- * - * string jwks_uri = 2; - * @return The bytes for jwksUri. - */ - com.google.protobuf.ByteString - getJwksUriBytes(); - - /** - *
-   * Supported response types.
-   * 
- * - * repeated string response_types_supported = 3; - * @return A list containing the responseTypesSupported. - */ - java.util.List - getResponseTypesSupportedList(); - /** - *
-   * Supported response types.
-   * 
- * - * repeated string response_types_supported = 3; - * @return The count of responseTypesSupported. - */ - int getResponseTypesSupportedCount(); - /** - *
-   * Supported response types.
-   * 
- * - * repeated string response_types_supported = 3; - * @param index The index of the element to return. - * @return The responseTypesSupported at the given index. - */ - java.lang.String getResponseTypesSupported(int index); - /** - *
-   * Supported response types.
-   * 
- * - * repeated string response_types_supported = 3; - * @param index The index of the value to return. - * @return The bytes of the responseTypesSupported at the given index. - */ - com.google.protobuf.ByteString - getResponseTypesSupportedBytes(int index); - - /** - *
-   * Supported subject types.
-   * 
- * - * repeated string subject_types_supported = 4; - * @return A list containing the subjectTypesSupported. - */ - java.util.List - getSubjectTypesSupportedList(); - /** - *
-   * Supported subject types.
-   * 
- * - * repeated string subject_types_supported = 4; - * @return The count of subjectTypesSupported. - */ - int getSubjectTypesSupportedCount(); - /** - *
-   * Supported subject types.
-   * 
- * - * repeated string subject_types_supported = 4; - * @param index The index of the element to return. - * @return The subjectTypesSupported at the given index. - */ - java.lang.String getSubjectTypesSupported(int index); - /** - *
-   * Supported subject types.
-   * 
- * - * repeated string subject_types_supported = 4; - * @param index The index of the value to return. - * @return The bytes of the subjectTypesSupported at the given index. - */ - com.google.protobuf.ByteString - getSubjectTypesSupportedBytes(int index); - - /** - *
-   * supported ID Token signing Algorithms.
-   * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * @return A list containing the idTokenSigningAlgValuesSupported. - */ - java.util.List - getIdTokenSigningAlgValuesSupportedList(); - /** - *
-   * supported ID Token signing Algorithms.
-   * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * @return The count of idTokenSigningAlgValuesSupported. - */ - int getIdTokenSigningAlgValuesSupportedCount(); - /** - *
-   * supported ID Token signing Algorithms.
-   * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * @param index The index of the element to return. - * @return The idTokenSigningAlgValuesSupported at the given index. - */ - java.lang.String getIdTokenSigningAlgValuesSupported(int index); - /** - *
-   * supported ID Token signing Algorithms.
-   * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * @param index The index of the value to return. - * @return The bytes of the idTokenSigningAlgValuesSupported at the given index. - */ - com.google.protobuf.ByteString - getIdTokenSigningAlgValuesSupportedBytes(int index); - - /** - *
-   * Supported claims.
-   * 
- * - * repeated string claims_supported = 6; - * @return A list containing the claimsSupported. - */ - java.util.List - getClaimsSupportedList(); - /** - *
-   * Supported claims.
-   * 
- * - * repeated string claims_supported = 6; - * @return The count of claimsSupported. - */ - int getClaimsSupportedCount(); - /** - *
-   * Supported claims.
-   * 
- * - * repeated string claims_supported = 6; - * @param index The index of the element to return. - * @return The claimsSupported at the given index. - */ - java.lang.String getClaimsSupported(int index); - /** - *
-   * Supported claims.
-   * 
- * - * repeated string claims_supported = 6; - * @param index The index of the value to return. - * @return The bytes of the claimsSupported at the given index. - */ - com.google.protobuf.ByteString - getClaimsSupportedBytes(int index); - - /** - *
-   * Supported grant types.
-   * 
- * - * repeated string grant_types = 7; - * @return A list containing the grantTypes. - */ - java.util.List - getGrantTypesList(); - /** - *
-   * Supported grant types.
-   * 
- * - * repeated string grant_types = 7; - * @return The count of grantTypes. - */ - int getGrantTypesCount(); - /** - *
-   * Supported grant types.
-   * 
- * - * repeated string grant_types = 7; - * @param index The index of the element to return. - * @return The grantTypes at the given index. - */ - java.lang.String getGrantTypes(int index); - /** - *
-   * Supported grant types.
-   * 
- * - * repeated string grant_types = 7; - * @param index The index of the value to return. - * @return The bytes of the grantTypes at the given index. - */ - com.google.protobuf.ByteString - getGrantTypesBytes(int index); -} diff --git a/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 deleted file mode 100644 index ea77a8860525..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java +++ /dev/null @@ -1,1160 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - 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=2588 - * @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=2588 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2594 - * @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=2594 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OPERATION_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object operationId_; - /** - *
-   * 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=2598 - * @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=2598 - * @return The bytes for operationId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getOperationIdBytes() { - java.lang.Object ref = operationId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - operationId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 5; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, operation id) of the operation to get.
-   * Specified in the format `projects/*/locations/*/operations/*`.
-   * 
- * - * string name = 5; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project, location, operation id) of the operation to get.
-   * Specified in the format `projects/*/locations/*/operations/*`.
-   * 
- * - * string name = 5; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - 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); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.operationId_ = operationId_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getOperationId().isEmpty()) { - operationId_ = other.operationId_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - operationId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 42: { - name_ = input.readStringRequireUtf8(); - - 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 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=2588 - * @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=2588 - * @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=2588 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/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=2588 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - 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=2588 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2594 - * @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=2594 - * @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=2594 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2594 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - 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=2594 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object operationId_ = ""; - /** - *
-     * 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=2598 - * @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=2598 - * @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=2598 - * @param value The operationId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setOperationId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - operationId_ = value; - onChanged(); - return this; - } - /** - *
-     * 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=2598 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearOperationId() { - - operationId_ = getDefaultInstance().getOperationId(); - onChanged(); - return this; - } - /** - *
-     * Deprecated. The server-assigned `name` of the operation.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string operation_id = 3 [deprecated = true]; - * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. - * See google/container/v1/cluster_service.proto;l=2598 - * @param value The bytes for operationId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setOperationIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - operationId_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, operation id) of the operation to get.
-     * Specified in the format `projects/*/locations/*/operations/*`.
-     * 
- * - * string name = 5; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name (project, location, operation id) of the operation to get.
-     * Specified in the format `projects/*/locations/*/operations/*`.
-     * 
- * - * string name = 5; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name (project, location, operation id) of the operation to get.
-     * Specified in the format `projects/*/locations/*/operations/*`.
-     * 
- * - * string name = 5; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name (project, location, operation id) of the operation to get.
-     * Specified in the format `projects/*/locations/*/operations/*`.
-     * 
- * - * string name = 5; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project, location, operation id) of the operation to get.
-     * Specified in the format `projects/*/locations/*/operations/*`.
-     * 
- * - * string name = 5; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index accbdfac19a5..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java +++ /dev/null @@ -1,115 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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=2588 - * @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=2588 - * @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=2594 - * @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=2594 - * @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=2598 - * @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=2598 - * @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 deleted file mode 100644 index a334d617e527..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java +++ /dev/null @@ -1,974 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - 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=2661 - * @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=2661 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * 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=2667 - * @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=2667 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object name_; - /** - *
-   * The name (project and location) of the server config to get,
-   * specified in the format `projects/*/locations/*`.
-   * 
- * - * string name = 4; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project and location) of the server config to get,
-   * specified in the format `projects/*/locations/*`.
-   * 
- * - * string name = 4; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - 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); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 34: { - name_ = input.readStringRequireUtf8(); - - 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 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=2661 - * @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=2661 - * @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=2661 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/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=2661 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - 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=2661 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * 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=2667 - * @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=2667 - * @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=2667 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * 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=2667 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - 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=2667 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project and location) of the server config to get,
-     * specified in the format `projects/*/locations/*`.
-     * 
- * - * string name = 4; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name (project and location) of the server config to get,
-     * specified in the format `projects/*/locations/*`.
-     * 
- * - * string name = 4; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name (project and location) of the server config to get,
-     * specified in the format `projects/*/locations/*`.
-     * 
- * - * string name = 4; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name (project and location) of the server config to get,
-     * specified in the format `projects/*/locations/*`.
-     * 
- * - * string name = 4; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project and location) of the server config to get,
-     * specified in the format `projects/*/locations/*`.
-     * 
- * - * string name = 4; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index 151c8976a463..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java +++ /dev/null @@ -1,89 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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=2661 - * @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=2661 - * @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=2667 - * @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=2667 - * @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 deleted file mode 100644 index 8b906c39ba5f..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GkeBackupAgentConfig.java +++ /dev/null @@ -1,490 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * 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(); - 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); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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(); - - 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 boolean enabled_ ; - /** - *
-     * Whether the Backup for GKE agent is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Whether the Backup for GKE agent is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether the Backup for GKE agent is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index ca9068a13417..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GkeBackupAgentConfigOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index d858fe81db38..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscaling.java +++ /dev/null @@ -1,502 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * Configuration options for the 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * 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(); - 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); - result.disabled_ = disabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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(); - - 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 boolean disabled_ ; - /** - *
-     * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
-     * When enabled, it ensures that metrics are collected into Stackdriver
-     * Monitoring.
-     * 
- * - * bool disabled = 1; - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - /** - *
-     * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
-     * When enabled, it ensures that metrics are collected into Stackdriver
-     * Monitoring.
-     * 
- * - * bool disabled = 1; - * @param value The disabled to set. - * @return This builder for chaining. - */ - public Builder setDisabled(boolean value) { - - disabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
-     * When enabled, it ensures that metrics are collected into Stackdriver
-     * Monitoring.
-     * 
- * - * bool disabled = 1; - * @return This builder for chaining. - */ - public Builder clearDisabled() { - - disabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index c3d6f5670b00..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscalingOrBuilder.java +++ /dev/null @@ -1,21 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index 334384b6508d..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HttpLoadBalancing.java +++ /dev/null @@ -1,500 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * Configuration options for the 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * 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(); - 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); - result.disabled_ = disabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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(); - - 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 boolean disabled_ ; - /** - *
-     * Whether the HTTP Load Balancing controller is enabled in the cluster.
-     * When enabled, it runs a small pod in the cluster that manages the load
-     * balancers.
-     * 
- * - * bool disabled = 1; - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - /** - *
-     * Whether the HTTP Load Balancing controller is enabled in the cluster.
-     * When enabled, it runs a small pod in the cluster that manages the load
-     * balancers.
-     * 
- * - * bool disabled = 1; - * @param value The disabled to set. - * @return This builder for chaining. - */ - public Builder setDisabled(boolean value) { - - disabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether the HTTP Load Balancing controller is enabled in the cluster.
-     * When enabled, it runs a small pod in the cluster that manages the load
-     * balancers.
-     * 
- * - * bool disabled = 1; - * @return This builder for chaining. - */ - public Builder clearDisabled() { - - disabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index 5ea4b6a9c23a..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HttpLoadBalancingOrBuilder.java +++ /dev/null @@ -1,21 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index 0b595d870c9a..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ILBSubsettingConfig.java +++ /dev/null @@ -1,492 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * ILBSubsettingConfig contains the desired config of L4 Internal LoadBalancer
- * subsetting on this cluster.
- * 
- * - * Protobuf type {@code google.container.v1.ILBSubsettingConfig} - */ -public final class ILBSubsettingConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.ILBSubsettingConfig) - ILBSubsettingConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use ILBSubsettingConfig.newBuilder() to construct. - private ILBSubsettingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ILBSubsettingConfig() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ILBSubsettingConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ILBSubsettingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ILBSubsettingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ILBSubsettingConfig.class, com.google.container.v1.ILBSubsettingConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-   * Enables l4 ILB subsetting for this cluster.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - 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(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ILBSubsettingConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ILBSubsettingConfig getDefaultInstanceForType() { - return com.google.container.v1.ILBSubsettingConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ILBSubsettingConfig build() { - com.google.container.v1.ILBSubsettingConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ILBSubsettingConfig buildPartial() { - com.google.container.v1.ILBSubsettingConfig result = new com.google.container.v1.ILBSubsettingConfig(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ILBSubsettingConfig) { - return mergeFrom((com.google.container.v1.ILBSubsettingConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ILBSubsettingConfig other) { - if (other == com.google.container.v1.ILBSubsettingConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 boolean enabled_ ; - /** - *
-     * Enables l4 ILB subsetting for this cluster.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Enables l4 ILB subsetting for this cluster.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Enables l4 ILB subsetting for this cluster.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1.ILBSubsettingConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ILBSubsettingConfig) - private static final com.google.container.v1.ILBSubsettingConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1.ILBSubsettingConfig(); - } - - public static com.google.container.v1.ILBSubsettingConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ILBSubsettingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 65a0e12e259d..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ILBSubsettingConfigOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface ILBSubsettingConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ILBSubsettingConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Enables l4 ILB subsetting for this cluster.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/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 deleted file mode 100644 index 5b1bf5302fb9..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java +++ /dev/null @@ -1,2975 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new IPAllocationPolicy(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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); - } - - public static final int USE_IP_ALIASES_FIELD_NUMBER = 1; - private boolean useIpAliases_; - /** - *
-   * Whether alias IPs will be used for pod IPs in the cluster.
-   * This is used in conjunction with use_routes. It cannot
-   * be true if use_routes is true. If both use_ip_aliases and use_routes are
-   * false, then the server picks the default IP allocation mode
-   * 
- * - * bool use_ip_aliases = 1; - * @return The useIpAliases. - */ - @java.lang.Override - public boolean getUseIpAliases() { - return useIpAliases_; - } - - public static final int CREATE_SUBNETWORK_FIELD_NUMBER = 2; - private boolean createSubnetwork_; - /** - *
-   * Whether a new subnetwork will be created automatically for the cluster.
-   * This field is only applicable when `use_ip_aliases` is true.
-   * 
- * - * bool create_subnetwork = 2; - * @return The createSubnetwork. - */ - @java.lang.Override - public boolean getCreateSubnetwork() { - return createSubnetwork_; - } - - public static final int SUBNETWORK_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object subnetworkName_; - /** - *
-   * A custom subnetwork name to be used if `create_subnetwork` is true.  If
-   * this field is empty, then an automatic name will be chosen for the new
-   * subnetwork.
-   * 
- * - * string subnetwork_name = 3; - * @return The subnetworkName. - */ - @java.lang.Override - public java.lang.String getSubnetworkName() { - java.lang.Object ref = subnetworkName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subnetworkName_ = s; - return s; - } - } - /** - *
-   * A custom subnetwork name to be used if `create_subnetwork` is true.  If
-   * this field is empty, then an automatic name will be chosen for the new
-   * subnetwork.
-   * 
- * - * string subnetwork_name = 3; - * @return The bytes for subnetworkName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSubnetworkNameBytes() { - java.lang.Object ref = subnetworkName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - subnetworkName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_IPV4_CIDR_FIELD_NUMBER = 4; - private volatile java.lang.Object clusterIpv4Cidr_; - /** - *
-   * This field is deprecated, use cluster_ipv4_cidr_block.
-   * 
- * - * string cluster_ipv4_cidr = 4 [deprecated = true]; - * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. - * See google/container/v1/cluster_service.proto;l=1305 - * @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=1305 - * @return The bytes for clusterIpv4Cidr. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIpv4CidrBytes() { - java.lang.Object ref = clusterIpv4Cidr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterIpv4Cidr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_IPV4_CIDR_FIELD_NUMBER = 5; - private volatile java.lang.Object nodeIpv4Cidr_; - /** - *
-   * This field is deprecated, use node_ipv4_cidr_block.
-   * 
- * - * string node_ipv4_cidr = 5 [deprecated = true]; - * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. - * See google/container/v1/cluster_service.proto;l=1308 - * @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=1308 - * @return The bytes for nodeIpv4Cidr. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getNodeIpv4CidrBytes() { - java.lang.Object ref = nodeIpv4Cidr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodeIpv4Cidr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SERVICES_IPV4_CIDR_FIELD_NUMBER = 6; - private volatile java.lang.Object servicesIpv4Cidr_; - /** - *
-   * This field is deprecated, use services_ipv4_cidr_block.
-   * 
- * - * string services_ipv4_cidr = 6 [deprecated = true]; - * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. - * See google/container/v1/cluster_service.proto;l=1311 - * @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=1311 - * @return The bytes for servicesIpv4Cidr. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getServicesIpv4CidrBytes() { - java.lang.Object ref = servicesIpv4Cidr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - servicesIpv4Cidr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_SECONDARY_RANGE_NAME_FIELD_NUMBER = 7; - private volatile java.lang.Object clusterSecondaryRangeName_; - /** - *
-   * The name of the secondary range to be used for the cluster CIDR
-   * block.  The secondary range will be used for pod IP
-   * addresses. This must be an existing secondary range associated
-   * with the cluster subnetwork.
-   * This field is only applicable with use_ip_aliases 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; - 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; - private volatile java.lang.Object clusterIpv4CidrBlock_; - /** - *
-   * The IP address range for the cluster pod IPs. If this field is set, then
-   * `cluster.cluster_ipv4_cidr` must be left blank.
-   * This field is only applicable when `use_ip_aliases` is true.
-   * Set to blank to have a range chosen with the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-   * to use.
-   * 
- * - * string cluster_ipv4_cidr_block = 9; - * @return The clusterIpv4CidrBlock. - */ - @java.lang.Override - public java.lang.String getClusterIpv4CidrBlock() { - java.lang.Object ref = clusterIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterIpv4CidrBlock_ = s; - return s; - } - } - /** - *
-   * The IP address range for the cluster pod IPs. If this field is set, then
-   * `cluster.cluster_ipv4_cidr` must be left blank.
-   * This field is only applicable when `use_ip_aliases` is true.
-   * Set to blank to have a range chosen with the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-   * to use.
-   * 
- * - * string cluster_ipv4_cidr_block = 9; - * @return The bytes for clusterIpv4CidrBlock. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getClusterIpv4CidrBlockBytes() { - java.lang.Object ref = clusterIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_IPV4_CIDR_BLOCK_FIELD_NUMBER = 10; - private volatile java.lang.Object nodeIpv4CidrBlock_; - /** - *
-   * The IP address range of the instance IPs in this cluster.
-   * This is applicable only if `create_subnetwork` is true.
-   * Set to blank to have a range chosen with the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-   * to use.
-   * 
- * - * string node_ipv4_cidr_block = 10; - * @return The nodeIpv4CidrBlock. - */ - @java.lang.Override - public java.lang.String getNodeIpv4CidrBlock() { - java.lang.Object ref = nodeIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeIpv4CidrBlock_ = s; - return s; - } - } - /** - *
-   * The IP address range of the instance IPs in this cluster.
-   * This is applicable only if `create_subnetwork` is true.
-   * Set to blank to have a range chosen with the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-   * to use.
-   * 
- * - * string node_ipv4_cidr_block = 10; - * @return The bytes for nodeIpv4CidrBlock. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNodeIpv4CidrBlockBytes() { - java.lang.Object ref = nodeIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodeIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SERVICES_IPV4_CIDR_BLOCK_FIELD_NUMBER = 11; - private volatile java.lang.Object servicesIpv4CidrBlock_; - /** - *
-   * The IP address range of the services IPs in this cluster. If blank, a range
-   * will be automatically chosen with the default size.
-   * This field is only applicable when `use_ip_aliases` is true.
-   * Set to blank to have a range chosen with the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-   * to use.
-   * 
- * - * string services_ipv4_cidr_block = 11; - * @return The servicesIpv4CidrBlock. - */ - @java.lang.Override - public java.lang.String getServicesIpv4CidrBlock() { - java.lang.Object ref = servicesIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - servicesIpv4CidrBlock_ = s; - return s; - } - } - /** - *
-   * The IP address range of the services IPs in this cluster. If blank, a range
-   * will be automatically chosen with the default size.
-   * This field is only applicable when `use_ip_aliases` is true.
-   * Set to blank to have a range chosen with the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-   * to use.
-   * 
- * - * string services_ipv4_cidr_block = 11; - * @return The bytes for servicesIpv4CidrBlock. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getServicesIpv4CidrBlockBytes() { - java.lang.Object ref = servicesIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - servicesIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TPU_IPV4_CIDR_BLOCK_FIELD_NUMBER = 13; - private volatile java.lang.Object tpuIpv4CidrBlock_; - /** - *
-   * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
-   * range will be automatically chosen with the default size.
-   * This field is only applicable when `use_ip_aliases` is true.
-   * If unspecified, the range will use the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-   * to use.
-   * 
- * - * string tpu_ipv4_cidr_block = 13; - * @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_; - /** - *
-   * 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_; - /** - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.container.v1.StackType result = com.google.container.v1.StackType.valueOf(stackType_); - return result == null ? com.google.container.v1.StackType.UNRECOGNIZED : result; - } - - public static final int IPV6_ACCESS_TYPE_FIELD_NUMBER = 17; - private int ipv6AccessType_; - /** - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.container.v1.IPv6AccessType result = com.google.container.v1.IPv6AccessType.valueOf(ipv6AccessType_); - return result == null ? com.google.container.v1.IPv6AccessType.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 (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_); - } - 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_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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_; - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - useIpAliases_ = false; - - createSubnetwork_ = false; - - subnetworkName_ = ""; - - clusterIpv4Cidr_ = ""; - - nodeIpv4Cidr_ = ""; - - servicesIpv4Cidr_ = ""; - - clusterSecondaryRangeName_ = ""; - - servicesSecondaryRangeName_ = ""; - - clusterIpv4CidrBlock_ = ""; - - nodeIpv4CidrBlock_ = ""; - - servicesIpv4CidrBlock_ = ""; - - tpuIpv4CidrBlock_ = ""; - - useRoutes_ = false; - - stackType_ = 0; - - ipv6AccessType_ = 0; - - 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); - result.useIpAliases_ = useIpAliases_; - result.createSubnetwork_ = createSubnetwork_; - result.subnetworkName_ = subnetworkName_; - result.clusterIpv4Cidr_ = clusterIpv4Cidr_; - result.nodeIpv4Cidr_ = nodeIpv4Cidr_; - result.servicesIpv4Cidr_ = servicesIpv4Cidr_; - result.clusterSecondaryRangeName_ = clusterSecondaryRangeName_; - result.servicesSecondaryRangeName_ = servicesSecondaryRangeName_; - result.clusterIpv4CidrBlock_ = clusterIpv4CidrBlock_; - result.nodeIpv4CidrBlock_ = nodeIpv4CidrBlock_; - result.servicesIpv4CidrBlock_ = servicesIpv4CidrBlock_; - result.tpuIpv4CidrBlock_ = tpuIpv4CidrBlock_; - result.useRoutes_ = useRoutes_; - result.stackType_ = stackType_; - result.ipv6AccessType_ = ipv6AccessType_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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_; - onChanged(); - } - if (!other.getClusterIpv4Cidr().isEmpty()) { - clusterIpv4Cidr_ = other.clusterIpv4Cidr_; - onChanged(); - } - if (!other.getNodeIpv4Cidr().isEmpty()) { - nodeIpv4Cidr_ = other.nodeIpv4Cidr_; - onChanged(); - } - if (!other.getServicesIpv4Cidr().isEmpty()) { - servicesIpv4Cidr_ = other.servicesIpv4Cidr_; - onChanged(); - } - if (!other.getClusterSecondaryRangeName().isEmpty()) { - clusterSecondaryRangeName_ = other.clusterSecondaryRangeName_; - onChanged(); - } - if (!other.getServicesSecondaryRangeName().isEmpty()) { - servicesSecondaryRangeName_ = other.servicesSecondaryRangeName_; - onChanged(); - } - if (!other.getClusterIpv4CidrBlock().isEmpty()) { - clusterIpv4CidrBlock_ = other.clusterIpv4CidrBlock_; - onChanged(); - } - if (!other.getNodeIpv4CidrBlock().isEmpty()) { - nodeIpv4CidrBlock_ = other.nodeIpv4CidrBlock_; - onChanged(); - } - if (!other.getServicesIpv4CidrBlock().isEmpty()) { - servicesIpv4CidrBlock_ = other.servicesIpv4CidrBlock_; - onChanged(); - } - if (!other.getTpuIpv4CidrBlock().isEmpty()) { - tpuIpv4CidrBlock_ = other.tpuIpv4CidrBlock_; - onChanged(); - } - if (other.getUseRoutes() != false) { - setUseRoutes(other.getUseRoutes()); - } - if (other.stackType_ != 0) { - setStackTypeValue(other.getStackTypeValue()); - } - if (other.ipv6AccessType_ != 0) { - setIpv6AccessTypeValue(other.getIpv6AccessTypeValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 8 - case 16: { - createSubnetwork_ = input.readBool(); - - break; - } // case 16 - case 26: { - subnetworkName_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - clusterIpv4Cidr_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - nodeIpv4Cidr_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: { - servicesIpv4Cidr_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 58: { - clusterSecondaryRangeName_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 66: { - servicesSecondaryRangeName_ = input.readStringRequireUtf8(); - - break; - } // case 66 - case 74: { - clusterIpv4CidrBlock_ = input.readStringRequireUtf8(); - - break; - } // case 74 - case 82: { - nodeIpv4CidrBlock_ = input.readStringRequireUtf8(); - - break; - } // case 82 - case 90: { - servicesIpv4CidrBlock_ = input.readStringRequireUtf8(); - - break; - } // case 90 - case 106: { - tpuIpv4CidrBlock_ = input.readStringRequireUtf8(); - - break; - } // case 106 - case 120: { - useRoutes_ = input.readBool(); - - break; - } // case 120 - case 128: { - stackType_ = input.readEnum(); - - break; - } // case 128 - case 136: { - ipv6AccessType_ = input.readEnum(); - - break; - } // case 136 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private boolean useIpAliases_ ; - /** - *
-     * Whether alias IPs will be used for pod IPs in the cluster.
-     * This is used in conjunction with use_routes. It cannot
-     * be true if use_routes is true. If both use_ip_aliases and use_routes are
-     * false, then the server picks the default IP allocation mode
-     * 
- * - * bool use_ip_aliases = 1; - * @return The useIpAliases. - */ - @java.lang.Override - public boolean getUseIpAliases() { - return useIpAliases_; - } - /** - *
-     * Whether alias IPs will be used for pod IPs in the cluster.
-     * This is used in conjunction with use_routes. It cannot
-     * be true if use_routes is true. If both use_ip_aliases and use_routes are
-     * false, then the server picks the default IP allocation mode
-     * 
- * - * bool use_ip_aliases = 1; - * @param value The useIpAliases to set. - * @return This builder for chaining. - */ - public Builder setUseIpAliases(boolean value) { - - useIpAliases_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether alias IPs will be used for pod IPs in the cluster.
-     * This is used in conjunction with use_routes. It cannot
-     * be true if use_routes is true. If both use_ip_aliases and use_routes are
-     * false, then the server picks the default IP allocation mode
-     * 
- * - * bool use_ip_aliases = 1; - * @return This builder for chaining. - */ - public Builder clearUseIpAliases() { - - useIpAliases_ = false; - onChanged(); - return this; - } - - private boolean createSubnetwork_ ; - /** - *
-     * Whether a new subnetwork will be created automatically for the cluster.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * 
- * - * bool create_subnetwork = 2; - * @return The createSubnetwork. - */ - @java.lang.Override - public boolean getCreateSubnetwork() { - return createSubnetwork_; - } - /** - *
-     * Whether a new subnetwork will be created automatically for the cluster.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * 
- * - * bool create_subnetwork = 2; - * @param value The createSubnetwork to set. - * @return This builder for chaining. - */ - public Builder setCreateSubnetwork(boolean value) { - - createSubnetwork_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether a new subnetwork will be created automatically for the cluster.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * 
- * - * bool create_subnetwork = 2; - * @return This builder for chaining. - */ - public Builder clearCreateSubnetwork() { - - createSubnetwork_ = false; - onChanged(); - return this; - } - - private java.lang.Object subnetworkName_ = ""; - /** - *
-     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
-     * this field is empty, then an automatic name will be chosen for the new
-     * subnetwork.
-     * 
- * - * string subnetwork_name = 3; - * @return The subnetworkName. - */ - public java.lang.String getSubnetworkName() { - java.lang.Object ref = subnetworkName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subnetworkName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
-     * this field is empty, then an automatic name will be chosen for the new
-     * subnetwork.
-     * 
- * - * string subnetwork_name = 3; - * @return The bytes for subnetworkName. - */ - public com.google.protobuf.ByteString - getSubnetworkNameBytes() { - java.lang.Object ref = subnetworkName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - subnetworkName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
-     * this field is empty, then an automatic name will be chosen for the new
-     * subnetwork.
-     * 
- * - * string subnetwork_name = 3; - * @param value The subnetworkName to set. - * @return This builder for chaining. - */ - public Builder setSubnetworkName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - subnetworkName_ = value; - onChanged(); - return this; - } - /** - *
-     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
-     * this field is empty, then an automatic name will be chosen for the new
-     * subnetwork.
-     * 
- * - * string subnetwork_name = 3; - * @return This builder for chaining. - */ - public Builder clearSubnetworkName() { - - subnetworkName_ = getDefaultInstance().getSubnetworkName(); - onChanged(); - return this; - } - /** - *
-     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
-     * this field is empty, then an automatic name will be chosen for the new
-     * subnetwork.
-     * 
- * - * string subnetwork_name = 3; - * @param value The bytes for subnetworkName to set. - * @return This builder for chaining. - */ - public Builder setSubnetworkNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - subnetworkName_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterIpv4Cidr_ = ""; - /** - *
-     * This field is deprecated, use cluster_ipv4_cidr_block.
-     * 
- * - * string cluster_ipv4_cidr = 4 [deprecated = true]; - * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. - * See google/container/v1/cluster_service.proto;l=1305 - * @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=1305 - * @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=1305 - * @param value The clusterIpv4Cidr to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIpv4Cidr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterIpv4Cidr_ = value; - onChanged(); - return this; - } - /** - *
-     * This field is deprecated, use cluster_ipv4_cidr_block.
-     * 
- * - * string cluster_ipv4_cidr = 4 [deprecated = true]; - * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. - * See google/container/v1/cluster_service.proto;l=1305 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterIpv4Cidr() { - - clusterIpv4Cidr_ = getDefaultInstance().getClusterIpv4Cidr(); - onChanged(); - return this; - } - /** - *
-     * This field is deprecated, use cluster_ipv4_cidr_block.
-     * 
- * - * string cluster_ipv4_cidr = 4 [deprecated = true]; - * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. - * See google/container/v1/cluster_service.proto;l=1305 - * @param value The bytes for clusterIpv4Cidr to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIpv4CidrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterIpv4Cidr_ = value; - onChanged(); - return this; - } - - private java.lang.Object nodeIpv4Cidr_ = ""; - /** - *
-     * This field is deprecated, use node_ipv4_cidr_block.
-     * 
- * - * string node_ipv4_cidr = 5 [deprecated = true]; - * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. - * See google/container/v1/cluster_service.proto;l=1308 - * @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=1308 - * @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=1308 - * @param value The nodeIpv4Cidr to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setNodeIpv4Cidr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodeIpv4Cidr_ = value; - onChanged(); - return this; - } - /** - *
-     * This field is deprecated, use node_ipv4_cidr_block.
-     * 
- * - * string node_ipv4_cidr = 5 [deprecated = true]; - * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. - * See google/container/v1/cluster_service.proto;l=1308 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearNodeIpv4Cidr() { - - nodeIpv4Cidr_ = getDefaultInstance().getNodeIpv4Cidr(); - onChanged(); - return this; - } - /** - *
-     * This field is deprecated, use node_ipv4_cidr_block.
-     * 
- * - * string node_ipv4_cidr = 5 [deprecated = true]; - * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. - * See google/container/v1/cluster_service.proto;l=1308 - * @param value The bytes for nodeIpv4Cidr to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setNodeIpv4CidrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodeIpv4Cidr_ = value; - onChanged(); - return this; - } - - private java.lang.Object servicesIpv4Cidr_ = ""; - /** - *
-     * This field is deprecated, use services_ipv4_cidr_block.
-     * 
- * - * string services_ipv4_cidr = 6 [deprecated = true]; - * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. - * See google/container/v1/cluster_service.proto;l=1311 - * @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=1311 - * @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=1311 - * @param value The servicesIpv4Cidr to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setServicesIpv4Cidr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - servicesIpv4Cidr_ = value; - onChanged(); - return this; - } - /** - *
-     * This field is deprecated, use services_ipv4_cidr_block.
-     * 
- * - * string services_ipv4_cidr = 6 [deprecated = true]; - * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. - * See google/container/v1/cluster_service.proto;l=1311 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearServicesIpv4Cidr() { - - servicesIpv4Cidr_ = getDefaultInstance().getServicesIpv4Cidr(); - onChanged(); - return this; - } - /** - *
-     * This field is deprecated, use services_ipv4_cidr_block.
-     * 
- * - * string services_ipv4_cidr = 6 [deprecated = true]; - * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. - * See google/container/v1/cluster_service.proto;l=1311 - * @param value The bytes for servicesIpv4Cidr to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setServicesIpv4CidrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - servicesIpv4Cidr_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterSecondaryRangeName_ = ""; - /** - *
-     * The name of the secondary range to be used for the cluster CIDR
-     * block.  The secondary range will be used for pod IP
-     * addresses. This must be an existing secondary range associated
-     * with the cluster subnetwork.
-     * This field is only applicable with use_ip_aliases 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; - 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(); - 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; - 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; - 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(); - 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; - onChanged(); - return this; - } - - private java.lang.Object clusterIpv4CidrBlock_ = ""; - /** - *
-     * The IP address range for the cluster pod IPs. If this field is set, then
-     * `cluster.cluster_ipv4_cidr` must be left blank.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string cluster_ipv4_cidr_block = 9; - * @return The clusterIpv4CidrBlock. - */ - public java.lang.String getClusterIpv4CidrBlock() { - java.lang.Object ref = clusterIpv4CidrBlock_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterIpv4CidrBlock_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The IP address range for the cluster pod IPs. If this field is set, then
-     * `cluster.cluster_ipv4_cidr` must be left blank.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string cluster_ipv4_cidr_block = 9; - * @return The bytes for clusterIpv4CidrBlock. - */ - public com.google.protobuf.ByteString - getClusterIpv4CidrBlockBytes() { - java.lang.Object ref = clusterIpv4CidrBlock_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The IP address range for the cluster pod IPs. If this field is set, then
-     * `cluster.cluster_ipv4_cidr` must be left blank.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string cluster_ipv4_cidr_block = 9; - * @param value The clusterIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setClusterIpv4CidrBlock( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterIpv4CidrBlock_ = value; - onChanged(); - return this; - } - /** - *
-     * The IP address range for the cluster pod IPs. If this field is set, then
-     * `cluster.cluster_ipv4_cidr` must be left blank.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string cluster_ipv4_cidr_block = 9; - * @return This builder for chaining. - */ - public Builder clearClusterIpv4CidrBlock() { - - clusterIpv4CidrBlock_ = getDefaultInstance().getClusterIpv4CidrBlock(); - onChanged(); - return this; - } - /** - *
-     * The IP address range for the cluster pod IPs. If this field is set, then
-     * `cluster.cluster_ipv4_cidr` must be left blank.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string cluster_ipv4_cidr_block = 9; - * @param value The bytes for clusterIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setClusterIpv4CidrBlockBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterIpv4CidrBlock_ = value; - onChanged(); - return this; - } - - private java.lang.Object nodeIpv4CidrBlock_ = ""; - /** - *
-     * The IP address range of the instance IPs in this cluster.
-     * This is applicable only if `create_subnetwork` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string node_ipv4_cidr_block = 10; - * @return The nodeIpv4CidrBlock. - */ - public java.lang.String getNodeIpv4CidrBlock() { - java.lang.Object ref = nodeIpv4CidrBlock_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeIpv4CidrBlock_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The IP address range of the instance IPs in this cluster.
-     * This is applicable only if `create_subnetwork` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string node_ipv4_cidr_block = 10; - * @return The bytes for nodeIpv4CidrBlock. - */ - public com.google.protobuf.ByteString - getNodeIpv4CidrBlockBytes() { - java.lang.Object ref = nodeIpv4CidrBlock_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodeIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The IP address range of the instance IPs in this cluster.
-     * This is applicable only if `create_subnetwork` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string node_ipv4_cidr_block = 10; - * @param value The nodeIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setNodeIpv4CidrBlock( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodeIpv4CidrBlock_ = value; - onChanged(); - return this; - } - /** - *
-     * The IP address range of the instance IPs in this cluster.
-     * This is applicable only if `create_subnetwork` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string node_ipv4_cidr_block = 10; - * @return This builder for chaining. - */ - public Builder clearNodeIpv4CidrBlock() { - - nodeIpv4CidrBlock_ = getDefaultInstance().getNodeIpv4CidrBlock(); - onChanged(); - return this; - } - /** - *
-     * The IP address range of the instance IPs in this cluster.
-     * This is applicable only if `create_subnetwork` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string node_ipv4_cidr_block = 10; - * @param value The bytes for nodeIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setNodeIpv4CidrBlockBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodeIpv4CidrBlock_ = value; - onChanged(); - return this; - } - - private java.lang.Object servicesIpv4CidrBlock_ = ""; - /** - *
-     * The IP address range of the services IPs in this cluster. If blank, a range
-     * will be automatically chosen with the default size.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string services_ipv4_cidr_block = 11; - * @return The servicesIpv4CidrBlock. - */ - public java.lang.String getServicesIpv4CidrBlock() { - java.lang.Object ref = servicesIpv4CidrBlock_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - servicesIpv4CidrBlock_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The IP address range of the services IPs in this cluster. If blank, a range
-     * will be automatically chosen with the default size.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string services_ipv4_cidr_block = 11; - * @return The bytes for servicesIpv4CidrBlock. - */ - public com.google.protobuf.ByteString - getServicesIpv4CidrBlockBytes() { - java.lang.Object ref = servicesIpv4CidrBlock_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - servicesIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The IP address range of the services IPs in this cluster. If blank, a range
-     * will be automatically chosen with the default size.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string services_ipv4_cidr_block = 11; - * @param value The servicesIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setServicesIpv4CidrBlock( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - servicesIpv4CidrBlock_ = value; - onChanged(); - return this; - } - /** - *
-     * The IP address range of the services IPs in this cluster. If blank, a range
-     * will be automatically chosen with the default size.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string services_ipv4_cidr_block = 11; - * @return This builder for chaining. - */ - public Builder clearServicesIpv4CidrBlock() { - - servicesIpv4CidrBlock_ = getDefaultInstance().getServicesIpv4CidrBlock(); - onChanged(); - return this; - } - /** - *
-     * The IP address range of the services IPs in this cluster. If blank, a range
-     * will be automatically chosen with the default size.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string services_ipv4_cidr_block = 11; - * @param value The bytes for servicesIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setServicesIpv4CidrBlockBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - servicesIpv4CidrBlock_ = value; - onChanged(); - return this; - } - - private 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; - 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(); - 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; - onChanged(); - return this; - } - - private boolean useRoutes_ ; - /** - *
-     * Whether routes will be used for pod IPs in the cluster.
-     * This is used in conjunction with use_ip_aliases. It cannot be true if
-     * use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
-     * then the server picks the default IP allocation mode
-     * 
- * - * bool use_routes = 15; - * @return The useRoutes. - */ - @java.lang.Override - public boolean getUseRoutes() { - return useRoutes_; - } - /** - *
-     * Whether routes will be used for pod IPs in the cluster.
-     * This is used in conjunction with use_ip_aliases. It cannot be true if
-     * use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
-     * then the server picks the default IP allocation mode
-     * 
- * - * bool use_routes = 15; - * @param value The useRoutes to set. - * @return This builder for chaining. - */ - public Builder setUseRoutes(boolean value) { - - useRoutes_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether routes will be used for pod IPs in the cluster.
-     * This is used in conjunction with use_ip_aliases. It cannot be true if
-     * use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
-     * then the server picks the default IP allocation mode
-     * 
- * - * bool use_routes = 15; - * @return This builder for chaining. - */ - public Builder clearUseRoutes() { - - useRoutes_ = false; - onChanged(); - return this; - } - - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1.StackType result = com.google.container.v1.StackType.valueOf(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(); - } - - 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() { - - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1.IPv6AccessType result = com.google.container.v1.IPv6AccessType.valueOf(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(); - } - - 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() { - - ipv6AccessType_ = 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.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 deleted file mode 100644 index f7758cf0f77f..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java +++ /dev/null @@ -1,398 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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=1305 - * @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=1305 - * @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=1308 - * @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=1308 - * @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=1311 - * @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=1311 - * @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(); -} 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 deleted file mode 100644 index 20e4a95e03bd..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPv6AccessType.java +++ /dev/null @@ -1,150 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index c94418d6f35f..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IdentityServiceConfig.java +++ /dev/null @@ -1,492 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * 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(); - 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); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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(); - - 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 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; - onChanged(); - return this; - } - /** - *
-     * Whether to enable the Identity Service component
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1.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 deleted file mode 100644 index e9a7d076cdbd..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IdentityServiceConfigOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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/IntraNodeVisibilityConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IntraNodeVisibilityConfig.java deleted file mode 100644 index a793944407b9..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IntraNodeVisibilityConfig.java +++ /dev/null @@ -1,492 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * 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(); - 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); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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(); - - 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 boolean enabled_ ; - /** - *
-     * Enables intra node visibility for this cluster.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Enables intra node visibility for this cluster.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Enables intra node visibility for this cluster.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index 9b281fd79caa..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IntraNodeVisibilityConfigOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index f42524b3eff3..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Jwk.java +++ /dev/null @@ -1,1894 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * Jwk is a JSON Web Key as specified in RFC 7517
- * 
- * - * Protobuf type {@code google.container.v1.Jwk} - */ -public final class Jwk extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.Jwk) - JwkOrBuilder { -private static final long serialVersionUID = 0L; - // Use Jwk.newBuilder() to construct. - private Jwk(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Jwk() { - kty_ = ""; - alg_ = ""; - use_ = ""; - kid_ = ""; - n_ = ""; - e_ = ""; - x_ = ""; - y_ = ""; - crv_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Jwk(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_Jwk_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_Jwk_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.Jwk.class, com.google.container.v1.Jwk.Builder.class); - } - - public static final int KTY_FIELD_NUMBER = 1; - private volatile java.lang.Object kty_; - /** - *
-   * Key Type.
-   * 
- * - * string kty = 1; - * @return The kty. - */ - @java.lang.Override - public java.lang.String getKty() { - java.lang.Object ref = kty_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kty_ = s; - return s; - } - } - /** - *
-   * Key Type.
-   * 
- * - * string kty = 1; - * @return The bytes for kty. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getKtyBytes() { - java.lang.Object ref = kty_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - kty_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ALG_FIELD_NUMBER = 2; - private volatile java.lang.Object alg_; - /** - *
-   * Algorithm.
-   * 
- * - * string alg = 2; - * @return The alg. - */ - @java.lang.Override - public java.lang.String getAlg() { - java.lang.Object ref = alg_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - alg_ = s; - return s; - } - } - /** - *
-   * Algorithm.
-   * 
- * - * string alg = 2; - * @return The bytes for alg. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAlgBytes() { - java.lang.Object ref = alg_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - alg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int USE_FIELD_NUMBER = 3; - private volatile java.lang.Object use_; - /** - *
-   * Permitted uses for the public keys.
-   * 
- * - * string use = 3; - * @return The use. - */ - @java.lang.Override - public java.lang.String getUse() { - java.lang.Object ref = use_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - use_ = s; - return s; - } - } - /** - *
-   * Permitted uses for the public keys.
-   * 
- * - * string use = 3; - * @return The bytes for use. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getUseBytes() { - java.lang.Object ref = use_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - use_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KID_FIELD_NUMBER = 4; - private volatile java.lang.Object kid_; - /** - *
-   * Key ID.
-   * 
- * - * string kid = 4; - * @return The kid. - */ - @java.lang.Override - public java.lang.String getKid() { - java.lang.Object ref = kid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kid_ = s; - return s; - } - } - /** - *
-   * Key ID.
-   * 
- * - * string kid = 4; - * @return The bytes for kid. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getKidBytes() { - java.lang.Object ref = kid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - kid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int N_FIELD_NUMBER = 5; - private volatile java.lang.Object n_; - /** - *
-   * Used for RSA keys.
-   * 
- * - * string n = 5; - * @return The n. - */ - @java.lang.Override - public java.lang.String getN() { - java.lang.Object ref = n_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - n_ = s; - return s; - } - } - /** - *
-   * Used for RSA keys.
-   * 
- * - * string n = 5; - * @return The bytes for n. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNBytes() { - java.lang.Object ref = n_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - n_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int E_FIELD_NUMBER = 6; - private volatile java.lang.Object e_; - /** - *
-   * Used for RSA keys.
-   * 
- * - * string e = 6; - * @return The e. - */ - @java.lang.Override - public java.lang.String getE() { - java.lang.Object ref = e_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - e_ = s; - return s; - } - } - /** - *
-   * Used for RSA keys.
-   * 
- * - * string e = 6; - * @return The bytes for e. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getEBytes() { - java.lang.Object ref = e_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - e_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int X_FIELD_NUMBER = 7; - private volatile java.lang.Object x_; - /** - *
-   * Used for ECDSA keys.
-   * 
- * - * string x = 7; - * @return The x. - */ - @java.lang.Override - public java.lang.String getX() { - java.lang.Object ref = x_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - x_ = s; - return s; - } - } - /** - *
-   * Used for ECDSA keys.
-   * 
- * - * string x = 7; - * @return The bytes for x. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getXBytes() { - java.lang.Object ref = x_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - x_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int Y_FIELD_NUMBER = 8; - private volatile java.lang.Object y_; - /** - *
-   * Used for ECDSA keys.
-   * 
- * - * string y = 8; - * @return The y. - */ - @java.lang.Override - public java.lang.String getY() { - java.lang.Object ref = y_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - y_ = s; - return s; - } - } - /** - *
-   * Used for ECDSA keys.
-   * 
- * - * string y = 8; - * @return The bytes for y. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getYBytes() { - java.lang.Object ref = y_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - y_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CRV_FIELD_NUMBER = 9; - private volatile java.lang.Object crv_; - /** - *
-   * Used for ECDSA keys.
-   * 
- * - * string crv = 9; - * @return The crv. - */ - @java.lang.Override - public java.lang.String getCrv() { - java.lang.Object ref = crv_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crv_ = s; - return s; - } - } - /** - *
-   * Used for ECDSA keys.
-   * 
- * - * string crv = 9; - * @return The bytes for crv. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCrvBytes() { - java.lang.Object ref = crv_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - crv_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - kty_ = ""; - - alg_ = ""; - - use_ = ""; - - kid_ = ""; - - n_ = ""; - - e_ = ""; - - x_ = ""; - - y_ = ""; - - crv_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_Jwk_descriptor; - } - - @java.lang.Override - public com.google.container.v1.Jwk getDefaultInstanceForType() { - return com.google.container.v1.Jwk.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.Jwk build() { - com.google.container.v1.Jwk result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.Jwk buildPartial() { - com.google.container.v1.Jwk result = new com.google.container.v1.Jwk(this); - result.kty_ = kty_; - result.alg_ = alg_; - result.use_ = use_; - result.kid_ = kid_; - result.n_ = n_; - result.e_ = e_; - result.x_ = x_; - result.y_ = y_; - result.crv_ = crv_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.Jwk) { - return mergeFrom((com.google.container.v1.Jwk)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.Jwk other) { - if (other == com.google.container.v1.Jwk.getDefaultInstance()) return this; - if (!other.getKty().isEmpty()) { - kty_ = other.kty_; - onChanged(); - } - if (!other.getAlg().isEmpty()) { - alg_ = other.alg_; - onChanged(); - } - if (!other.getUse().isEmpty()) { - use_ = other.use_; - onChanged(); - } - if (!other.getKid().isEmpty()) { - kid_ = other.kid_; - onChanged(); - } - if (!other.getN().isEmpty()) { - n_ = other.n_; - onChanged(); - } - if (!other.getE().isEmpty()) { - e_ = other.e_; - onChanged(); - } - if (!other.getX().isEmpty()) { - x_ = other.x_; - onChanged(); - } - if (!other.getY().isEmpty()) { - y_ = other.y_; - onChanged(); - } - if (!other.getCrv().isEmpty()) { - crv_ = other.crv_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - alg_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - use_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - kid_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - n_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: { - e_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 58: { - x_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 66: { - y_ = input.readStringRequireUtf8(); - - break; - } // case 66 - case 74: { - crv_ = input.readStringRequireUtf8(); - - 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 java.lang.Object kty_ = ""; - /** - *
-     * Key Type.
-     * 
- * - * string kty = 1; - * @return The kty. - */ - public java.lang.String getKty() { - java.lang.Object ref = kty_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kty_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Key Type.
-     * 
- * - * string kty = 1; - * @return The bytes for kty. - */ - public com.google.protobuf.ByteString - getKtyBytes() { - java.lang.Object ref = kty_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - kty_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Key Type.
-     * 
- * - * string kty = 1; - * @param value The kty to set. - * @return This builder for chaining. - */ - public Builder setKty( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - kty_ = value; - onChanged(); - return this; - } - /** - *
-     * Key Type.
-     * 
- * - * string kty = 1; - * @return This builder for chaining. - */ - public Builder clearKty() { - - kty_ = getDefaultInstance().getKty(); - onChanged(); - return this; - } - /** - *
-     * Key Type.
-     * 
- * - * string kty = 1; - * @param value The bytes for kty to set. - * @return This builder for chaining. - */ - public Builder setKtyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - kty_ = value; - onChanged(); - return this; - } - - private java.lang.Object alg_ = ""; - /** - *
-     * Algorithm.
-     * 
- * - * string alg = 2; - * @return The alg. - */ - public java.lang.String getAlg() { - java.lang.Object ref = alg_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - alg_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Algorithm.
-     * 
- * - * string alg = 2; - * @return The bytes for alg. - */ - public com.google.protobuf.ByteString - getAlgBytes() { - java.lang.Object ref = alg_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - alg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Algorithm.
-     * 
- * - * string alg = 2; - * @param value The alg to set. - * @return This builder for chaining. - */ - public Builder setAlg( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - alg_ = value; - onChanged(); - return this; - } - /** - *
-     * Algorithm.
-     * 
- * - * string alg = 2; - * @return This builder for chaining. - */ - public Builder clearAlg() { - - alg_ = getDefaultInstance().getAlg(); - onChanged(); - return this; - } - /** - *
-     * Algorithm.
-     * 
- * - * string alg = 2; - * @param value The bytes for alg to set. - * @return This builder for chaining. - */ - public Builder setAlgBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - alg_ = value; - onChanged(); - return this; - } - - private java.lang.Object use_ = ""; - /** - *
-     * Permitted uses for the public keys.
-     * 
- * - * string use = 3; - * @return The use. - */ - public java.lang.String getUse() { - java.lang.Object ref = use_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - use_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Permitted uses for the public keys.
-     * 
- * - * string use = 3; - * @return The bytes for use. - */ - public com.google.protobuf.ByteString - getUseBytes() { - java.lang.Object ref = use_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - use_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Permitted uses for the public keys.
-     * 
- * - * string use = 3; - * @param value The use to set. - * @return This builder for chaining. - */ - public Builder setUse( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - use_ = value; - onChanged(); - return this; - } - /** - *
-     * Permitted uses for the public keys.
-     * 
- * - * string use = 3; - * @return This builder for chaining. - */ - public Builder clearUse() { - - use_ = getDefaultInstance().getUse(); - onChanged(); - return this; - } - /** - *
-     * Permitted uses for the public keys.
-     * 
- * - * string use = 3; - * @param value The bytes for use to set. - * @return This builder for chaining. - */ - public Builder setUseBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - use_ = value; - onChanged(); - return this; - } - - private java.lang.Object kid_ = ""; - /** - *
-     * Key ID.
-     * 
- * - * string kid = 4; - * @return The kid. - */ - public java.lang.String getKid() { - java.lang.Object ref = kid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Key ID.
-     * 
- * - * string kid = 4; - * @return The bytes for kid. - */ - public com.google.protobuf.ByteString - getKidBytes() { - java.lang.Object ref = kid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - kid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Key ID.
-     * 
- * - * string kid = 4; - * @param value The kid to set. - * @return This builder for chaining. - */ - public Builder setKid( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - kid_ = value; - onChanged(); - return this; - } - /** - *
-     * Key ID.
-     * 
- * - * string kid = 4; - * @return This builder for chaining. - */ - public Builder clearKid() { - - kid_ = getDefaultInstance().getKid(); - onChanged(); - return this; - } - /** - *
-     * Key ID.
-     * 
- * - * string kid = 4; - * @param value The bytes for kid to set. - * @return This builder for chaining. - */ - public Builder setKidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - kid_ = value; - onChanged(); - return this; - } - - private java.lang.Object n_ = ""; - /** - *
-     * Used for RSA keys.
-     * 
- * - * string n = 5; - * @return The n. - */ - public java.lang.String getN() { - java.lang.Object ref = n_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - n_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Used for RSA keys.
-     * 
- * - * string n = 5; - * @return The bytes for n. - */ - public com.google.protobuf.ByteString - getNBytes() { - java.lang.Object ref = n_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - n_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Used for RSA keys.
-     * 
- * - * string n = 5; - * @param value The n to set. - * @return This builder for chaining. - */ - public Builder setN( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - n_ = value; - onChanged(); - return this; - } - /** - *
-     * Used for RSA keys.
-     * 
- * - * string n = 5; - * @return This builder for chaining. - */ - public Builder clearN() { - - n_ = getDefaultInstance().getN(); - onChanged(); - return this; - } - /** - *
-     * Used for RSA keys.
-     * 
- * - * string n = 5; - * @param value The bytes for n to set. - * @return This builder for chaining. - */ - public Builder setNBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - n_ = value; - onChanged(); - return this; - } - - private java.lang.Object e_ = ""; - /** - *
-     * Used for RSA keys.
-     * 
- * - * string e = 6; - * @return The e. - */ - public java.lang.String getE() { - java.lang.Object ref = e_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - e_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Used for RSA keys.
-     * 
- * - * string e = 6; - * @return The bytes for e. - */ - public com.google.protobuf.ByteString - getEBytes() { - java.lang.Object ref = e_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - e_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Used for RSA keys.
-     * 
- * - * string e = 6; - * @param value The e to set. - * @return This builder for chaining. - */ - public Builder setE( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - e_ = value; - onChanged(); - return this; - } - /** - *
-     * Used for RSA keys.
-     * 
- * - * string e = 6; - * @return This builder for chaining. - */ - public Builder clearE() { - - e_ = getDefaultInstance().getE(); - onChanged(); - return this; - } - /** - *
-     * Used for RSA keys.
-     * 
- * - * string e = 6; - * @param value The bytes for e to set. - * @return This builder for chaining. - */ - public Builder setEBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - e_ = value; - onChanged(); - return this; - } - - private java.lang.Object x_ = ""; - /** - *
-     * Used for ECDSA keys.
-     * 
- * - * string x = 7; - * @return The x. - */ - public java.lang.String getX() { - java.lang.Object ref = x_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - x_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Used for ECDSA keys.
-     * 
- * - * string x = 7; - * @return The bytes for x. - */ - public com.google.protobuf.ByteString - getXBytes() { - java.lang.Object ref = x_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - x_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Used for ECDSA keys.
-     * 
- * - * string x = 7; - * @param value The x to set. - * @return This builder for chaining. - */ - public Builder setX( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - x_ = value; - onChanged(); - return this; - } - /** - *
-     * Used for ECDSA keys.
-     * 
- * - * string x = 7; - * @return This builder for chaining. - */ - public Builder clearX() { - - x_ = getDefaultInstance().getX(); - onChanged(); - return this; - } - /** - *
-     * Used for ECDSA keys.
-     * 
- * - * string x = 7; - * @param value The bytes for x to set. - * @return This builder for chaining. - */ - public Builder setXBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - x_ = value; - onChanged(); - return this; - } - - private java.lang.Object y_ = ""; - /** - *
-     * Used for ECDSA keys.
-     * 
- * - * string y = 8; - * @return The y. - */ - public java.lang.String getY() { - java.lang.Object ref = y_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - y_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Used for ECDSA keys.
-     * 
- * - * string y = 8; - * @return The bytes for y. - */ - public com.google.protobuf.ByteString - getYBytes() { - java.lang.Object ref = y_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - y_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Used for ECDSA keys.
-     * 
- * - * string y = 8; - * @param value The y to set. - * @return This builder for chaining. - */ - public Builder setY( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - y_ = value; - onChanged(); - return this; - } - /** - *
-     * Used for ECDSA keys.
-     * 
- * - * string y = 8; - * @return This builder for chaining. - */ - public Builder clearY() { - - y_ = getDefaultInstance().getY(); - onChanged(); - return this; - } - /** - *
-     * Used for ECDSA keys.
-     * 
- * - * string y = 8; - * @param value The bytes for y to set. - * @return This builder for chaining. - */ - public Builder setYBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - y_ = value; - onChanged(); - return this; - } - - private java.lang.Object crv_ = ""; - /** - *
-     * Used for ECDSA keys.
-     * 
- * - * string crv = 9; - * @return The crv. - */ - public java.lang.String getCrv() { - java.lang.Object ref = crv_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crv_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Used for ECDSA keys.
-     * 
- * - * string crv = 9; - * @return The bytes for crv. - */ - public com.google.protobuf.ByteString - getCrvBytes() { - java.lang.Object ref = crv_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - crv_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Used for ECDSA keys.
-     * 
- * - * string crv = 9; - * @param value The crv to set. - * @return This builder for chaining. - */ - public Builder setCrv( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - crv_ = value; - onChanged(); - return this; - } - /** - *
-     * Used for ECDSA keys.
-     * 
- * - * string crv = 9; - * @return This builder for chaining. - */ - public Builder clearCrv() { - - crv_ = getDefaultInstance().getCrv(); - onChanged(); - return this; - } - /** - *
-     * Used for ECDSA keys.
-     * 
- * - * string crv = 9; - * @param value The bytes for crv to set. - * @return This builder for chaining. - */ - public Builder setCrvBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - crv_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1.Jwk) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.Jwk) - private static final com.google.container.v1.Jwk DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1.Jwk(); - } - - public static com.google.container.v1.Jwk getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Jwk parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 3adfbb359150..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/JwkOrBuilder.java +++ /dev/null @@ -1,189 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface JwkOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.Jwk) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Key Type.
-   * 
- * - * string kty = 1; - * @return The kty. - */ - java.lang.String getKty(); - /** - *
-   * Key Type.
-   * 
- * - * string kty = 1; - * @return The bytes for kty. - */ - com.google.protobuf.ByteString - getKtyBytes(); - - /** - *
-   * Algorithm.
-   * 
- * - * string alg = 2; - * @return The alg. - */ - java.lang.String getAlg(); - /** - *
-   * Algorithm.
-   * 
- * - * string alg = 2; - * @return The bytes for alg. - */ - com.google.protobuf.ByteString - getAlgBytes(); - - /** - *
-   * Permitted uses for the public keys.
-   * 
- * - * string use = 3; - * @return The use. - */ - java.lang.String getUse(); - /** - *
-   * Permitted uses for the public keys.
-   * 
- * - * string use = 3; - * @return The bytes for use. - */ - com.google.protobuf.ByteString - getUseBytes(); - - /** - *
-   * Key ID.
-   * 
- * - * string kid = 4; - * @return The kid. - */ - java.lang.String getKid(); - /** - *
-   * Key ID.
-   * 
- * - * string kid = 4; - * @return The bytes for kid. - */ - com.google.protobuf.ByteString - getKidBytes(); - - /** - *
-   * Used for RSA keys.
-   * 
- * - * string n = 5; - * @return The n. - */ - java.lang.String getN(); - /** - *
-   * Used for RSA keys.
-   * 
- * - * string n = 5; - * @return The bytes for n. - */ - com.google.protobuf.ByteString - getNBytes(); - - /** - *
-   * Used for RSA keys.
-   * 
- * - * string e = 6; - * @return The e. - */ - java.lang.String getE(); - /** - *
-   * Used for RSA keys.
-   * 
- * - * string e = 6; - * @return The bytes for e. - */ - com.google.protobuf.ByteString - getEBytes(); - - /** - *
-   * Used for ECDSA keys.
-   * 
- * - * string x = 7; - * @return The x. - */ - java.lang.String getX(); - /** - *
-   * Used for ECDSA keys.
-   * 
- * - * string x = 7; - * @return The bytes for x. - */ - com.google.protobuf.ByteString - getXBytes(); - - /** - *
-   * Used for ECDSA keys.
-   * 
- * - * string y = 8; - * @return The y. - */ - java.lang.String getY(); - /** - *
-   * Used for ECDSA keys.
-   * 
- * - * string y = 8; - * @return The bytes for y. - */ - com.google.protobuf.ByteString - getYBytes(); - - /** - *
-   * Used for ECDSA keys.
-   * 
- * - * string crv = 9; - * @return The crv. - */ - java.lang.String getCrv(); - /** - *
-   * Used for ECDSA keys.
-   * 
- * - * string crv = 9; - * @return The bytes for crv. - */ - com.google.protobuf.ByteString - getCrvBytes(); -} diff --git a/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 deleted file mode 100644 index fc7dce82a21a..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/KubernetesDashboard.java +++ /dev/null @@ -1,490 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * 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(); - 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); - result.disabled_ = disabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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(); - - 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 boolean disabled_ ; - /** - *
-     * Whether the Kubernetes Dashboard is enabled for this cluster.
-     * 
- * - * bool disabled = 1; - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - /** - *
-     * Whether the Kubernetes Dashboard is enabled for this cluster.
-     * 
- * - * bool disabled = 1; - * @param value The disabled to set. - * @return This builder for chaining. - */ - public Builder setDisabled(boolean value) { - - disabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether the Kubernetes Dashboard is enabled for this cluster.
-     * 
- * - * bool disabled = 1; - * @return This builder for chaining. - */ - public Builder clearDisabled() { - - disabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index edaebef86342..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/KubernetesDashboardOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index 2013343aa1c4..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LegacyAbac.java +++ /dev/null @@ -1,504 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * 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(); - 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); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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(); - - 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 boolean enabled_ ; - /** - *
-     * Whether the ABAC authorizer is enabled for this cluster. When enabled,
-     * identities in the system, including service accounts, nodes, and
-     * controllers, will have statically granted permissions beyond those
-     * provided by the RBAC configuration or IAM.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Whether the ABAC authorizer is enabled for this cluster. When enabled,
-     * identities in the system, including service accounts, nodes, and
-     * controllers, will have statically granted permissions beyond those
-     * provided by the RBAC configuration or IAM.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether the ABAC authorizer is enabled for this cluster. When enabled,
-     * identities in the system, including service accounts, nodes, and
-     * controllers, will have statically granted permissions beyond those
-     * provided by the RBAC configuration or IAM.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index 0636733e2229..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LegacyAbacOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index 6866ae365e93..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfig.java +++ /dev/null @@ -1,1153 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * Parameters that can be configured on Linux nodes.
- * 
- * - * Protobuf type {@code google.container.v1.LinuxNodeConfig} - */ -public final class LinuxNodeConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.LinuxNodeConfig) - LinuxNodeConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use LinuxNodeConfig.newBuilder() to construct. - private LinuxNodeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LinuxNodeConfig() { - cgroupMode_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LinuxNodeConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LinuxNodeConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetSysctls(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LinuxNodeConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.LinuxNodeConfig.class, com.google.container.v1.LinuxNodeConfig.Builder.class); - } - - /** - *
-   * 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, - ""); - } - 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 java.lang.String getSysctlsOrDefault( - java.lang.String key, - 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_; - /** - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.container.v1.LinuxNodeConfig.CgroupMode result = com.google.container.v1.LinuxNodeConfig.CgroupMode.valueOf(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.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetSysctls(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableSysctls(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LinuxNodeConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.LinuxNodeConfig.class, com.google.container.v1.LinuxNodeConfig.Builder.class); - } - - // Construct using com.google.container.v1.LinuxNodeConfig.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - 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); - int from_bitField0_ = bitField0_; - result.sysctls_ = internalGetSysctls(); - result.sysctls_.makeImmutable(); - result.cgroupMode_ = cgroupMode_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.LinuxNodeConfig) { - return mergeFrom((com.google.container.v1.LinuxNodeConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.LinuxNodeConfig other) { - if (other == com.google.container.v1.LinuxNodeConfig.getDefaultInstance()) return this; - internalGetMutableSysctls().mergeFrom( - other.internalGetSysctls()); - 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()); - break; - } // case 10 - case 16: { - cgroupMode_ = input.readEnum(); - - 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() { - onChanged();; - if (sysctls_ == null) { - sysctls_ = com.google.protobuf.MapField.newMapField( - SysctlsDefaultEntryHolder.defaultEntry); - } - if (!sysctls_.isMutable()) { - sysctls_ = sysctls_.copy(); - } - return sysctls_; - } - - public int getSysctlsCount() { - return internalGetSysctls().getMap().size(); - } - /** - *
-     * The Linux kernel parameters to be applied to the nodes and all pods running
-     * on the nodes.
-     * The following parameters are supported.
-     * net.core.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 java.lang.String getSysctlsOrDefault( - java.lang.String key, - 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() { - 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() { - 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); - 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); - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1.LinuxNodeConfig.CgroupMode result = com.google.container.v1.LinuxNodeConfig.CgroupMode.valueOf(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(); - } - - 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() { - - 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 deleted file mode 100644 index 6c909b2d2ddb..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfigOrBuilder.java +++ /dev/null @@ -1,149 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface LinuxNodeConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.LinuxNodeConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The Linux kernel parameters to be applied to the nodes and all pods running
-   * on the nodes.
-   * The following parameters are supported.
-   * net.core.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 deleted file mode 100644 index 7392a04a705e..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java +++ /dev/null @@ -1,981 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - 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=2558 - * @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=2558 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * 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=2564 - * @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=2564 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARENT_FIELD_NUMBER = 4; - private volatile java.lang.Object parent_; - /** - *
-   * The parent (project and location) where the clusters will be listed.
-   * Specified in the format `projects/*/locations/*`.
-   * Location "-" matches all zones and all regions.
-   * 
- * - * string parent = 4; - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * The parent (project and location) where the clusters will be listed.
-   * Specified in the format `projects/*/locations/*`.
-   * Location "-" matches all zones and all regions.
-   * 
- * - * string parent = 4; - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - 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); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.parent_ = parent_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 34: { - parent_ = input.readStringRequireUtf8(); - - 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 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=2558 - * @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=2558 - * @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=2558 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The Google Developers Console [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=2558 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - 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=2558 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * 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=2564 - * @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=2564 - * @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=2564 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * 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=2564 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - 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=2564 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object parent_ = ""; - /** - *
-     * The parent (project and location) where the clusters will be listed.
-     * Specified in the format `projects/*/locations/*`.
-     * Location "-" matches all zones and all regions.
-     * 
- * - * string parent = 4; - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The parent (project and location) where the clusters will be listed.
-     * Specified in the format `projects/*/locations/*`.
-     * Location "-" matches all zones and all regions.
-     * 
- * - * string parent = 4; - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The parent (project and location) where the clusters will be listed.
-     * Specified in the format `projects/*/locations/*`.
-     * Location "-" matches all zones and all regions.
-     * 
- * - * string parent = 4; - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - *
-     * The parent (project and location) where the clusters will be listed.
-     * Specified in the format `projects/*/locations/*`.
-     * Location "-" matches all zones and all regions.
-     * 
- * - * string parent = 4; - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - *
-     * The parent (project and location) where the clusters will be listed.
-     * Specified in the format `projects/*/locations/*`.
-     * Location "-" matches all zones and all regions.
-     * 
- * - * string parent = 4; - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index cf6e92855d9d..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java +++ /dev/null @@ -1,91 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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=2558 - * @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=2558 - * @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=2564 - * @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=2564 - * @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 deleted file mode 100644 index 8125a4c4075a..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersResponse.java +++ /dev/null @@ -1,1126 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListClustersResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - 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; - private com.google.protobuf.LazyStringList missingZones_; - /** - *
-   * If any zones are listed here, the list of clusters returned
-   * may be missing those zones.
-   * 
- * - * repeated string missing_zones = 2; - * @return A list containing the missingZones. - */ - public com.google.protobuf.ProtocolStringList - getMissingZonesList() { - return missingZones_; - } - /** - *
-   * If any zones are listed here, the list of clusters returned
-   * may be missing those zones.
-   * 
- * - * repeated string missing_zones = 2; - * @return The count of missingZones. - */ - public int getMissingZonesCount() { - return missingZones_.size(); - } - /** - *
-   * If any zones are listed here, the list of clusters returned
-   * may be missing those zones.
-   * 
- * - * repeated string missing_zones = 2; - * @param index The index of the element to return. - * @return The missingZones at the given index. - */ - public java.lang.String getMissingZones(int index) { - return missingZones_.get(index); - } - /** - *
-   * If any zones are listed here, the list of clusters returned
-   * may be missing those zones.
-   * 
- * - * repeated string missing_zones = 2; - * @param index The index of the value to return. - * @return The bytes of the missingZones at the given index. - */ - public com.google.protobuf.ByteString - getMissingZonesBytes(int index) { - return missingZones_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < clusters_.size(); i++) { - output.writeMessage(1, clusters_.get(i)); - } - for (int i = 0; i < missingZones_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, missingZones_.getRaw(i)); - } - 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(); - if (clustersBuilder_ == null) { - clusters_ = java.util.Collections.emptyList(); - } else { - clusters_ = null; - clustersBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.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); - int from_bitField0_ = bitField0_; - if (clustersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - clusters_ = java.util.Collections.unmodifiableList(clusters_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.clusters_ = clusters_; - } else { - result.clusters_ = clustersBuilder_.build(); - } - if (((bitField0_ & 0x00000002) != 0)) { - missingZones_ = missingZones_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.missingZones_ = missingZones_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_ = (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.LazyStringList missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureMissingZonesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - missingZones_ = new com.google.protobuf.LazyStringArrayList(missingZones_); - bitField0_ |= 0x00000002; - } - } - /** - *
-     * If any zones are listed here, the list of clusters returned
-     * may be missing those zones.
-     * 
- * - * repeated string missing_zones = 2; - * @return A list containing the missingZones. - */ - public com.google.protobuf.ProtocolStringList - getMissingZonesList() { - return missingZones_.getUnmodifiableView(); - } - /** - *
-     * If any zones are listed here, the list of clusters returned
-     * may be missing those zones.
-     * 
- * - * repeated string missing_zones = 2; - * @return The count of missingZones. - */ - public int getMissingZonesCount() { - return missingZones_.size(); - } - /** - *
-     * If any zones are listed here, the list of clusters returned
-     * may be missing those zones.
-     * 
- * - * repeated string missing_zones = 2; - * @param index The index of the element to return. - * @return The missingZones at the given index. - */ - public java.lang.String getMissingZones(int index) { - return missingZones_.get(index); - } - /** - *
-     * If any zones are listed here, the list of clusters returned
-     * may be missing those zones.
-     * 
- * - * repeated string missing_zones = 2; - * @param index The index of the value to return. - * @return The bytes of the missingZones at the given index. - */ - public com.google.protobuf.ByteString - getMissingZonesBytes(int index) { - return missingZones_.getByteString(index); - } - /** - *
-     * If any zones are listed here, the list of clusters returned
-     * may be missing those zones.
-     * 
- * - * repeated string missing_zones = 2; - * @param index The index to set the value at. - * @param value The missingZones to set. - * @return This builder for chaining. - */ - public Builder setMissingZones( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMissingZonesIsMutable(); - missingZones_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * If any zones are listed here, the list of clusters returned
-     * may be missing those zones.
-     * 
- * - * repeated string missing_zones = 2; - * @param value The missingZones to add. - * @return This builder for chaining. - */ - public Builder addMissingZones( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMissingZonesIsMutable(); - missingZones_.add(value); - onChanged(); - return this; - } - /** - *
-     * If any zones are listed here, the list of clusters returned
-     * may be missing those zones.
-     * 
- * - * repeated string missing_zones = 2; - * @param values The missingZones to add. - * @return This builder for chaining. - */ - public Builder addAllMissingZones( - java.lang.Iterable values) { - ensureMissingZonesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, missingZones_); - onChanged(); - return this; - } - /** - *
-     * If any zones are listed here, the list of clusters returned
-     * may be missing those zones.
-     * 
- * - * repeated string missing_zones = 2; - * @return This builder for chaining. - */ - public Builder clearMissingZones() { - missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * If any zones are listed here, the list of clusters returned
-     * may be missing those zones.
-     * 
- * - * repeated string missing_zones = 2; - * @param value The bytes of the missingZones to add. - * @return This builder for chaining. - */ - public Builder addMissingZonesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureMissingZonesIsMutable(); - missingZones_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index a455fa03da2b..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersResponseOrBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index 4b6b7acbe0f2..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java +++ /dev/null @@ -1,1160 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - 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=2765 - * @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=2765 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Deprecated. The name of the Google Compute 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=2771 - * @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=2771 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * 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=2775 - * @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=2775 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARENT_FIELD_NUMBER = 5; - private volatile java.lang.Object parent_; - /** - *
-   * The parent (project, location, cluster 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(); - 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); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.parent_ = parent_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 42: { - parent_ = input.readStringRequireUtf8(); - - 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 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=2765 - * @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=2765 - * @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=2765 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The Google Developers Console [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=2765 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - 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=2765 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Deprecated. The name of the Google Compute 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=2771 - * @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=2771 - * @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=2771 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the Google Compute 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=2771 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - 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=2771 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * 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=2775 - * @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=2775 - * @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=2775 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * 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=2775 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. - * See google/container/v1/cluster_service.proto;l=2775 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object parent_ = ""; - /** - *
-     * The parent (project, location, cluster 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; - 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(); - 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; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 3b3a7249f42e..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java +++ /dev/null @@ -1,115 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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=2765 - * @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=2765 - * @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=2771 - * @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=2771 - * @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=2775 - * @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=2775 - * @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 deleted file mode 100644 index bbc366161298..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsResponse.java +++ /dev/null @@ -1,852 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - 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(); - 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); - int from_bitField0_ = bitField0_; - if (nodePoolsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - nodePools_ = java.util.Collections.unmodifiableList(nodePools_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.nodePools_ = nodePools_; - } else { - result.nodePools_ = nodePoolsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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 deleted file mode 100644 index a076cf1b8278..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsResponseOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index 5f7d8c9e4fc8..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java +++ /dev/null @@ -1,981 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - 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=2610 - * @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=2610 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * 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=2616 - * @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=2616 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARENT_FIELD_NUMBER = 4; - private volatile java.lang.Object parent_; - /** - *
-   * The parent (project and location) where the operations will be listed.
-   * Specified in the format `projects/*/locations/*`.
-   * Location "-" matches all zones and all regions.
-   * 
- * - * string parent = 4; - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * The parent (project and location) where the operations will be listed.
-   * Specified in the format `projects/*/locations/*`.
-   * Location "-" matches all zones and all regions.
-   * 
- * - * string parent = 4; - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - 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); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.parent_ = parent_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 34: { - parent_ = input.readStringRequireUtf8(); - - 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 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=2610 - * @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=2610 - * @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=2610 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The Google Developers Console [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=2610 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - 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=2610 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * 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=2616 - * @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=2616 - * @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=2616 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * 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=2616 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - 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=2616 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object parent_ = ""; - /** - *
-     * The parent (project and location) where the operations will be listed.
-     * Specified in the format `projects/*/locations/*`.
-     * Location "-" matches all zones and all regions.
-     * 
- * - * string parent = 4; - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The parent (project and location) where the operations will be listed.
-     * Specified in the format `projects/*/locations/*`.
-     * Location "-" matches all zones and all regions.
-     * 
- * - * string parent = 4; - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The parent (project and location) where the operations will be listed.
-     * Specified in the format `projects/*/locations/*`.
-     * Location "-" matches all zones and all regions.
-     * 
- * - * string parent = 4; - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - *
-     * The parent (project and location) where the operations will be listed.
-     * Specified in the format `projects/*/locations/*`.
-     * Location "-" matches all zones and all regions.
-     * 
- * - * string parent = 4; - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - *
-     * The parent (project and location) where the operations will be listed.
-     * Specified in the format `projects/*/locations/*`.
-     * Location "-" matches all zones and all regions.
-     * 
- * - * string parent = 4; - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index 4a316bed0218..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java +++ /dev/null @@ -1,91 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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=2610 - * @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=2610 - * @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=2616 - * @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=2616 - * @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 deleted file mode 100644 index e13804ffa279..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsResponse.java +++ /dev/null @@ -1,1103 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListOperationsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - 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; - private com.google.protobuf.LazyStringList missingZones_; - /** - *
-   * If any zones are listed here, the list of operations returned
-   * may be missing the operations from those zones.
-   * 
- * - * repeated string missing_zones = 2; - * @return A list containing the missingZones. - */ - public com.google.protobuf.ProtocolStringList - getMissingZonesList() { - return missingZones_; - } - /** - *
-   * If any zones are listed here, the list of operations returned
-   * may be missing the operations from those zones.
-   * 
- * - * repeated string missing_zones = 2; - * @return The count of missingZones. - */ - public int getMissingZonesCount() { - return missingZones_.size(); - } - /** - *
-   * If any zones are listed here, the list of operations returned
-   * may be missing the operations from those zones.
-   * 
- * - * repeated string missing_zones = 2; - * @param index The index of the element to return. - * @return The missingZones at the given index. - */ - public java.lang.String getMissingZones(int index) { - return missingZones_.get(index); - } - /** - *
-   * If any zones are listed here, the list of operations returned
-   * may be missing the operations from those zones.
-   * 
- * - * repeated string missing_zones = 2; - * @param index The index of the value to return. - * @return The bytes of the missingZones at the given index. - */ - public com.google.protobuf.ByteString - getMissingZonesBytes(int index) { - return missingZones_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < operations_.size(); i++) { - output.writeMessage(1, operations_.get(i)); - } - for (int i = 0; i < missingZones_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, missingZones_.getRaw(i)); - } - 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(); - if (operationsBuilder_ == null) { - operations_ = java.util.Collections.emptyList(); - } else { - operations_ = null; - operationsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.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); - int from_bitField0_ = bitField0_; - if (operationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - operations_ = java.util.Collections.unmodifiableList(operations_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.operations_ = operations_; - } else { - result.operations_ = operationsBuilder_.build(); - } - if (((bitField0_ & 0x00000002) != 0)) { - missingZones_ = missingZones_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.missingZones_ = missingZones_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_ = (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.LazyStringList missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureMissingZonesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - missingZones_ = new com.google.protobuf.LazyStringArrayList(missingZones_); - bitField0_ |= 0x00000002; - } - } - /** - *
-     * If any zones are listed here, the list of operations returned
-     * may be missing the operations from those zones.
-     * 
- * - * repeated string missing_zones = 2; - * @return A list containing the missingZones. - */ - public com.google.protobuf.ProtocolStringList - getMissingZonesList() { - return missingZones_.getUnmodifiableView(); - } - /** - *
-     * If any zones are listed here, the list of operations returned
-     * may be missing the operations from those zones.
-     * 
- * - * repeated string missing_zones = 2; - * @return The count of missingZones. - */ - public int getMissingZonesCount() { - return missingZones_.size(); - } - /** - *
-     * If any zones are listed here, the list of operations returned
-     * may be missing the operations from those zones.
-     * 
- * - * repeated string missing_zones = 2; - * @param index The index of the element to return. - * @return The missingZones at the given index. - */ - public java.lang.String getMissingZones(int index) { - return missingZones_.get(index); - } - /** - *
-     * If any zones are listed here, the list of operations returned
-     * may be missing the operations from those zones.
-     * 
- * - * repeated string missing_zones = 2; - * @param index The index of the value to return. - * @return The bytes of the missingZones at the given index. - */ - public com.google.protobuf.ByteString - getMissingZonesBytes(int index) { - return missingZones_.getByteString(index); - } - /** - *
-     * If any zones are listed here, the list of operations returned
-     * may be missing the operations from those zones.
-     * 
- * - * repeated string missing_zones = 2; - * @param index The index to set the value at. - * @param value The missingZones to set. - * @return This builder for chaining. - */ - public Builder setMissingZones( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMissingZonesIsMutable(); - missingZones_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * If any zones are listed here, the list of operations returned
-     * may be missing the operations from those zones.
-     * 
- * - * repeated string missing_zones = 2; - * @param value The missingZones to add. - * @return This builder for chaining. - */ - public Builder addMissingZones( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMissingZonesIsMutable(); - missingZones_.add(value); - onChanged(); - return this; - } - /** - *
-     * If any zones are listed here, the list of operations returned
-     * may be missing the operations from those zones.
-     * 
- * - * repeated string missing_zones = 2; - * @param values The missingZones to add. - * @return This builder for chaining. - */ - public Builder addAllMissingZones( - java.lang.Iterable values) { - ensureMissingZonesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, missingZones_); - onChanged(); - return this; - } - /** - *
-     * If any zones are listed here, the list of operations returned
-     * may be missing the operations from those zones.
-     * 
- * - * repeated string missing_zones = 2; - * @return This builder for chaining. - */ - public Builder clearMissingZones() { - missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * If any zones are listed here, the list of operations returned
-     * may be missing the operations from those zones.
-     * 
- * - * repeated string missing_zones = 2; - * @param value The bytes of the missingZones to add. - * @return This builder for chaining. - */ - public Builder addMissingZonesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureMissingZonesIsMutable(); - missingZones_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index 2fb4c22ccafd..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsResponseOrBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index a75a2848c253..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksRequest.java +++ /dev/null @@ -1,1033 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - 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; - private volatile java.lang.Object filter_; - /** - *
-   * Filtering currently only supports equality on the networkProjectId and must
-   * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
-   * is the project which owns the listed subnetworks. This defaults to the
-   * parent project ID.
-   * 
- * - * string filter = 2; - * @return The filter. - */ - @java.lang.Override - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } - } - /** - *
-   * Filtering currently only supports equality on the networkProjectId and must
-   * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
-   * is the project which owns the listed subnetworks. This defaults to the
-   * parent project ID.
-   * 
- * - * string filter = 2; - * @return The bytes for filter. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; - /** - *
-   * The max number of results per page that should be returned. If the number
-   * of available results is larger than `page_size`, a `next_page_token` is
-   * returned which can be used to get the next page of results in subsequent
-   * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
-   * 
- * - * int32 page_size = 3; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; - /** - *
-   * Specifies a page token to use. Set this to the nextPageToken returned by
-   * previous list requests to get the next page of results.
-   * 
- * - * string page_token = 4; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * Specifies a page token to use. Set this to the nextPageToken returned by
-   * previous list requests to get the next page of results.
-   * 
- * - * string page_token = 4; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - 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); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - filter_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: { - pageSize_ = input.readInt32(); - - break; - } // case 24 - case 34: { - pageToken_ = input.readStringRequireUtf8(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - private java.lang.Object filter_ = ""; - /** - *
-     * Filtering currently only supports equality on the networkProjectId and must
-     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
-     * is the project which owns the listed subnetworks. This defaults to the
-     * parent project ID.
-     * 
- * - * string filter = 2; - * @return The filter. - */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Filtering currently only supports equality on the networkProjectId and must
-     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
-     * is the project which owns the listed subnetworks. This defaults to the
-     * parent project ID.
-     * 
- * - * string filter = 2; - * @return The bytes for filter. - */ - public com.google.protobuf.ByteString - getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Filtering currently only supports equality on the networkProjectId and must
-     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
-     * is the project which owns the listed subnetworks. This defaults to the
-     * parent project ID.
-     * 
- * - * string filter = 2; - * @param value The filter to set. - * @return This builder for chaining. - */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filter_ = value; - onChanged(); - return this; - } - /** - *
-     * Filtering currently only supports equality on the networkProjectId and must
-     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
-     * is the project which owns the listed subnetworks. This defaults to the
-     * parent project ID.
-     * 
- * - * string filter = 2; - * @return This builder for chaining. - */ - public Builder clearFilter() { - - filter_ = getDefaultInstance().getFilter(); - onChanged(); - return this; - } - /** - *
-     * Filtering currently only supports equality on the networkProjectId and must
-     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
-     * is the project which owns the listed subnetworks. This defaults to the
-     * parent project ID.
-     * 
- * - * string filter = 2; - * @param value The bytes for filter to set. - * @return This builder for chaining. - */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filter_ = value; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
-     * The max number of results per page that should be returned. If the number
-     * of available results is larger than `page_size`, a `next_page_token` is
-     * returned which can be used to get the next page of results in subsequent
-     * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
-     * 
- * - * int32 page_size = 3; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * The max number of results per page that should be returned. If the number
-     * of available results is larger than `page_size`, a `next_page_token` is
-     * returned which can be used to get the next page of results in subsequent
-     * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
-     * 
- * - * int32 page_size = 3; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - *
-     * The max number of results per page that should be returned. If the number
-     * of available results is larger than `page_size`, a `next_page_token` is
-     * returned which can be used to get the next page of results in subsequent
-     * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
-     * 
- * - * int32 page_size = 3; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * Specifies a page token to use. Set this to the nextPageToken returned by
-     * previous list requests to get the next page of results.
-     * 
- * - * string page_token = 4; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Specifies a page token to use. Set this to the nextPageToken returned by
-     * previous list requests to get the next page of results.
-     * 
- * - * string page_token = 4; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Specifies a page token to use. Set this to the nextPageToken returned by
-     * previous list requests to get the next page of results.
-     * 
- * - * string page_token = 4; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - *
-     * Specifies a page token to use. Set this to the nextPageToken returned by
-     * previous list requests to get the next page of results.
-     * 
- * - * string page_token = 4; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - *
-     * Specifies a page token to use. Set this to the nextPageToken returned by
-     * previous list requests to get the next page of results.
-     * 
- * - * string page_token = 4; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index a909d6513302..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksRequestOrBuilder.java +++ /dev/null @@ -1,92 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index 71dbcc66eae6..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksResponse.java +++ /dev/null @@ -1,1040 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - 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; - 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(); - 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); - int from_bitField0_ = bitField0_; - if (subnetworksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - subnetworks_ = java.util.Collections.unmodifiableList(subnetworks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.subnetworks_ = subnetworks_; - } else { - result.subnetworks_ = subnetworksBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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; - onChanged(); - return this; - } - /** - *
-     * This token allows you to get the next page of results for list requests.
-     * If the number of results is larger than `page_size`, use the
-     * `next_page_token` as a value for the query parameter `page_token` in the
-     * next request. The value will become empty when there are no more pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - *
-     * This token allows you to get the next page of results for list requests.
-     * If the number of results is larger than `page_size`, use the
-     * `next_page_token` as a value for the query parameter `page_token` in the
-     * next request. The value will become empty when there are no more pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index 8f083537b33f..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksResponseOrBuilder.java +++ /dev/null @@ -1,79 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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/LoggingComponentConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingComponentConfig.java deleted file mode 100644 index 4e510d5fed39..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingComponentConfig.java +++ /dev/null @@ -1,933 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * LoggingComponentConfig is cluster logging component configuration.
- * 
- * - * Protobuf type {@code google.container.v1.LoggingComponentConfig} - */ -public final class LoggingComponentConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.LoggingComponentConfig) - LoggingComponentConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use LoggingComponentConfig.newBuilder() to construct. - private LoggingComponentConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LoggingComponentConfig() { - enableComponents_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LoggingComponentConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - private java.util.List enableComponents_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.container.v1.LoggingComponentConfig.Component> enableComponents_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.container.v1.LoggingComponentConfig.Component>() { - public com.google.container.v1.LoggingComponentConfig.Component convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.container.v1.LoggingComponentConfig.Component result = com.google.container.v1.LoggingComponentConfig.Component.valueOf(from); - return result == null ? com.google.container.v1.LoggingComponentConfig.Component.UNRECOGNIZED : result; - } - }; - /** - *
-   * Select components to collect logs. An empty set would disable all logging.
-   * 
- * - * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * @return A list containing the enableComponents. - */ - @java.lang.Override - public java.util.List getEnableComponentsList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.container.v1.LoggingComponentConfig.Component>(enableComponents_, enableComponents_converter_); - } - /** - *
-   * Select components to collect logs. An empty set would disable all logging.
-   * 
- * - * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * @return The count of enableComponents. - */ - @java.lang.Override - public int getEnableComponentsCount() { - return enableComponents_.size(); - } - /** - *
-   * Select components to collect logs. An empty set would disable all logging.
-   * 
- * - * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * @param index The index of the element to return. - * @return The enableComponents at the given index. - */ - @java.lang.Override - public com.google.container.v1.LoggingComponentConfig.Component getEnableComponents(int index) { - return enableComponents_converter_.convert(enableComponents_.get(index)); - } - /** - *
-   * Select components to collect logs. An empty set would disable all logging.
-   * 
- * - * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * @return A list containing the enum numeric values on the wire for enableComponents. - */ - @java.lang.Override - public java.util.List - getEnableComponentsValueList() { - return enableComponents_; - } - /** - *
-   * Select components to collect logs. An empty set would disable all logging.
-   * 
- * - * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of enableComponents at the given index. - */ - @java.lang.Override - public int getEnableComponentsValue(int index) { - return enableComponents_.get(index); - } - private int enableComponentsMemoizedSerializedSize; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (getEnableComponentsList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(enableComponentsMemoizedSerializedSize); - } - for (int i = 0; i < enableComponents_.size(); i++) { - output.writeEnumNoTag(enableComponents_.get(i)); - } - 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(); - enableComponents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LoggingComponentConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.LoggingComponentConfig getDefaultInstanceForType() { - return com.google.container.v1.LoggingComponentConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.LoggingComponentConfig build() { - com.google.container.v1.LoggingComponentConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.LoggingComponentConfig buildPartial() { - com.google.container.v1.LoggingComponentConfig result = new com.google.container.v1.LoggingComponentConfig(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - enableComponents_ = java.util.Collections.unmodifiableList(enableComponents_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.enableComponents_ = enableComponents_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.LoggingComponentConfig) { - return mergeFrom((com.google.container.v1.LoggingComponentConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.LoggingComponentConfig other) { - if (other == com.google.container.v1.LoggingComponentConfig.getDefaultInstance()) return this; - if (!other.enableComponents_.isEmpty()) { - if (enableComponents_.isEmpty()) { - enableComponents_ = other.enableComponents_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEnableComponentsIsMutable(); - enableComponents_.addAll(other.enableComponents_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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 deleted file mode 100644 index 4c8365528d3d..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingComponentConfigOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface LoggingComponentConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.LoggingComponentConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Select components to collect logs. An empty set would disable all logging.
-   * 
- * - * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * @return A list containing the enableComponents. - */ - java.util.List getEnableComponentsList(); - /** - *
-   * Select components to collect logs. An empty set would disable all logging.
-   * 
- * - * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * @return The count of enableComponents. - */ - int getEnableComponentsCount(); - /** - *
-   * Select components to collect logs. An empty set would disable all logging.
-   * 
- * - * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * @param index The index of the element to return. - * @return The enableComponents at the given index. - */ - com.google.container.v1.LoggingComponentConfig.Component getEnableComponents(int index); - /** - *
-   * Select components to collect logs. An empty set would disable all logging.
-   * 
- * - * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * @return A list containing the enum numeric values on the wire for enableComponents. - */ - java.util.List - getEnableComponentsValueList(); - /** - *
-   * Select components to collect logs. An empty set would disable all logging.
-   * 
- * - * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of enableComponents at the given index. - */ - int getEnableComponentsValue(int index); -} diff --git a/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 deleted file mode 100644 index ae967f8abc8b..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingConfig.java +++ /dev/null @@ -1,639 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * LoggingConfig is cluster logging configuration.
- * 
- * - * Protobuf type {@code google.container.v1.LoggingConfig} - */ -public final class LoggingConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.LoggingConfig) - LoggingConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use LoggingConfig.newBuilder() to construct. - private LoggingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LoggingConfig() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LoggingConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LoggingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LoggingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.LoggingConfig.class, com.google.container.v1.LoggingConfig.Builder.class); - } - - public static final int COMPONENT_CONFIG_FIELD_NUMBER = 1; - private com.google.container.v1.LoggingComponentConfig componentConfig_; - /** - *
-   * Logging components configuration
-   * 
- * - * .google.container.v1.LoggingComponentConfig component_config = 1; - * @return Whether the componentConfig field is set. - */ - @java.lang.Override - public boolean hasComponentConfig() { - return componentConfig_ != null; - } - /** - *
-   * Logging components configuration
-   * 
- * - * .google.container.v1.LoggingComponentConfig component_config = 1; - * @return The componentConfig. - */ - @java.lang.Override - public com.google.container.v1.LoggingComponentConfig getComponentConfig() { - return componentConfig_ == null ? com.google.container.v1.LoggingComponentConfig.getDefaultInstance() : componentConfig_; - } - /** - *
-   * Logging components configuration
-   * 
- * - * .google.container.v1.LoggingComponentConfig component_config = 1; - */ - @java.lang.Override - public com.google.container.v1.LoggingComponentConfigOrBuilder getComponentConfigOrBuilder() { - return getComponentConfig(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (componentConfig_ != null) { - output.writeMessage(1, getComponentConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (componentConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getComponentConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (componentConfigBuilder_ == null) { - componentConfig_ = null; - } else { - componentConfig_ = null; - componentConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LoggingConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.LoggingConfig getDefaultInstanceForType() { - return com.google.container.v1.LoggingConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.LoggingConfig build() { - com.google.container.v1.LoggingConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.LoggingConfig buildPartial() { - com.google.container.v1.LoggingConfig result = new com.google.container.v1.LoggingConfig(this); - if (componentConfigBuilder_ == null) { - result.componentConfig_ = componentConfig_; - } else { - result.componentConfig_ = componentConfigBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.LoggingConfig) { - return mergeFrom((com.google.container.v1.LoggingConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.LoggingConfig other) { - if (other == com.google.container.v1.LoggingConfig.getDefaultInstance()) return this; - if (other.hasComponentConfig()) { - mergeComponentConfig(other.getComponentConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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); - - 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 com.google.container.v1.LoggingComponentConfig componentConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LoggingComponentConfig, com.google.container.v1.LoggingComponentConfig.Builder, com.google.container.v1.LoggingComponentConfigOrBuilder> componentConfigBuilder_; - /** - *
-     * Logging components configuration
-     * 
- * - * .google.container.v1.LoggingComponentConfig component_config = 1; - * @return Whether the componentConfig field is set. - */ - public boolean hasComponentConfig() { - return componentConfigBuilder_ != null || componentConfig_ != null; - } - /** - *
-     * Logging components configuration
-     * 
- * - * .google.container.v1.LoggingComponentConfig component_config = 1; - * @return The componentConfig. - */ - public com.google.container.v1.LoggingComponentConfig getComponentConfig() { - if (componentConfigBuilder_ == null) { - return componentConfig_ == null ? com.google.container.v1.LoggingComponentConfig.getDefaultInstance() : componentConfig_; - } else { - return componentConfigBuilder_.getMessage(); - } - } - /** - *
-     * Logging components configuration
-     * 
- * - * .google.container.v1.LoggingComponentConfig component_config = 1; - */ - public Builder setComponentConfig(com.google.container.v1.LoggingComponentConfig value) { - if (componentConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - componentConfig_ = value; - onChanged(); - } else { - componentConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Logging components configuration
-     * 
- * - * .google.container.v1.LoggingComponentConfig component_config = 1; - */ - public Builder setComponentConfig( - com.google.container.v1.LoggingComponentConfig.Builder builderForValue) { - if (componentConfigBuilder_ == null) { - componentConfig_ = builderForValue.build(); - onChanged(); - } else { - componentConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Logging components configuration
-     * 
- * - * .google.container.v1.LoggingComponentConfig component_config = 1; - */ - public Builder mergeComponentConfig(com.google.container.v1.LoggingComponentConfig value) { - if (componentConfigBuilder_ == null) { - if (componentConfig_ != null) { - componentConfig_ = - com.google.container.v1.LoggingComponentConfig.newBuilder(componentConfig_).mergeFrom(value).buildPartial(); - } else { - componentConfig_ = value; - } - onChanged(); - } else { - componentConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Logging components configuration
-     * 
- * - * .google.container.v1.LoggingComponentConfig component_config = 1; - */ - public Builder clearComponentConfig() { - if (componentConfigBuilder_ == null) { - componentConfig_ = null; - onChanged(); - } else { - componentConfig_ = null; - componentConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Logging components configuration
-     * 
- * - * .google.container.v1.LoggingComponentConfig component_config = 1; - */ - public com.google.container.v1.LoggingComponentConfig.Builder getComponentConfigBuilder() { - - onChanged(); - return getComponentConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Logging components configuration
-     * 
- * - * .google.container.v1.LoggingComponentConfig component_config = 1; - */ - public com.google.container.v1.LoggingComponentConfigOrBuilder getComponentConfigOrBuilder() { - if (componentConfigBuilder_ != null) { - return componentConfigBuilder_.getMessageOrBuilder(); - } else { - return componentConfig_ == null ? - com.google.container.v1.LoggingComponentConfig.getDefaultInstance() : componentConfig_; - } - } - /** - *
-     * Logging components configuration
-     * 
- * - * .google.container.v1.LoggingComponentConfig component_config = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LoggingComponentConfig, com.google.container.v1.LoggingComponentConfig.Builder, com.google.container.v1.LoggingComponentConfigOrBuilder> - getComponentConfigFieldBuilder() { - if (componentConfigBuilder_ == null) { - componentConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LoggingComponentConfig, com.google.container.v1.LoggingComponentConfig.Builder, com.google.container.v1.LoggingComponentConfigOrBuilder>( - getComponentConfig(), - getParentForChildren(), - isClean()); - componentConfig_ = null; - } - return componentConfigBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1.LoggingConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.LoggingConfig) - private static final com.google.container.v1.LoggingConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1.LoggingConfig(); - } - - public static com.google.container.v1.LoggingConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LoggingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index b01b33511bb3..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingConfigOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface LoggingConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.LoggingConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Logging components configuration
-   * 
- * - * .google.container.v1.LoggingComponentConfig component_config = 1; - * @return Whether the componentConfig field is set. - */ - boolean hasComponentConfig(); - /** - *
-   * Logging components configuration
-   * 
- * - * .google.container.v1.LoggingComponentConfig component_config = 1; - * @return The componentConfig. - */ - com.google.container.v1.LoggingComponentConfig getComponentConfig(); - /** - *
-   * Logging components configuration
-   * 
- * - * .google.container.v1.LoggingComponentConfig component_config = 1; - */ - com.google.container.v1.LoggingComponentConfigOrBuilder getComponentConfigOrBuilder(); -} diff --git a/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 deleted file mode 100644 index 5ff72af7cc96..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingVariantConfig.java +++ /dev/null @@ -1,677 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.container.v1.LoggingVariantConfig.Variant result = com.google.container.v1.LoggingVariantConfig.Variant.valueOf(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(); - 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); - result.variant_ = variant_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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(); - - 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 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; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1.LoggingVariantConfig.Variant result = com.google.container.v1.LoggingVariantConfig.Variant.valueOf(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(); - } - - 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() { - - 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 deleted file mode 100644 index f998a52c6e06..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingVariantConfigOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index aa502fccbb88..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceExclusionOptions.java +++ /dev/null @@ -1,694 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * Represents the Maintenance exclusion option.
- * 
- * - * Protobuf type {@code google.container.v1.MaintenanceExclusionOptions} - */ -public final class MaintenanceExclusionOptions extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.MaintenanceExclusionOptions) - MaintenanceExclusionOptionsOrBuilder { -private static final long serialVersionUID = 0L; - // Use MaintenanceExclusionOptions.newBuilder() to construct. - private MaintenanceExclusionOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MaintenanceExclusionOptions() { - scope_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MaintenanceExclusionOptions(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * Scope specifies the upgrade scope which upgrades are blocked by the
-   * exclusion.
-   * 
- * - * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; - * @return The enum numeric value on the wire for scope. - */ - @java.lang.Override public int getScopeValue() { - return scope_; - } - /** - *
-   * Scope specifies the upgrade scope which upgrades are blocked by the
-   * exclusion.
-   * 
- * - * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; - * @return The scope. - */ - @java.lang.Override public com.google.container.v1.MaintenanceExclusionOptions.Scope getScope() { - @SuppressWarnings("deprecation") - com.google.container.v1.MaintenanceExclusionOptions.Scope result = com.google.container.v1.MaintenanceExclusionOptions.Scope.valueOf(scope_); - return result == null ? com.google.container.v1.MaintenanceExclusionOptions.Scope.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (scope_ != com.google.container.v1.MaintenanceExclusionOptions.Scope.NO_UPGRADES.getNumber()) { - output.writeEnum(1, scope_); - } - 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(); - scope_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MaintenanceExclusionOptions_descriptor; - } - - @java.lang.Override - public com.google.container.v1.MaintenanceExclusionOptions getDefaultInstanceForType() { - return com.google.container.v1.MaintenanceExclusionOptions.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.MaintenanceExclusionOptions build() { - com.google.container.v1.MaintenanceExclusionOptions result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.MaintenanceExclusionOptions buildPartial() { - com.google.container.v1.MaintenanceExclusionOptions result = new com.google.container.v1.MaintenanceExclusionOptions(this); - result.scope_ = scope_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.MaintenanceExclusionOptions) { - return mergeFrom((com.google.container.v1.MaintenanceExclusionOptions)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.MaintenanceExclusionOptions other) { - if (other == com.google.container.v1.MaintenanceExclusionOptions.getDefaultInstance()) return this; - if (other.scope_ != 0) { - setScopeValue(other.getScopeValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 scope_ = 0; - /** - *
-     * Scope specifies the upgrade scope which upgrades are blocked by the
-     * exclusion.
-     * 
- * - * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; - * @return The enum numeric value on the wire for scope. - */ - @java.lang.Override public int getScopeValue() { - return scope_; - } - /** - *
-     * Scope specifies the upgrade scope which upgrades are blocked by the
-     * exclusion.
-     * 
- * - * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; - * @param value The enum numeric value on the wire for scope to set. - * @return This builder for chaining. - */ - public Builder setScopeValue(int value) { - - scope_ = value; - onChanged(); - return this; - } - /** - *
-     * Scope specifies the upgrade scope which upgrades are blocked by the
-     * exclusion.
-     * 
- * - * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; - * @return The scope. - */ - @java.lang.Override - public com.google.container.v1.MaintenanceExclusionOptions.Scope getScope() { - @SuppressWarnings("deprecation") - com.google.container.v1.MaintenanceExclusionOptions.Scope result = com.google.container.v1.MaintenanceExclusionOptions.Scope.valueOf(scope_); - return result == null ? com.google.container.v1.MaintenanceExclusionOptions.Scope.UNRECOGNIZED : result; - } - /** - *
-     * Scope specifies the upgrade scope which upgrades are blocked by the
-     * exclusion.
-     * 
- * - * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; - * @param value The scope to set. - * @return This builder for chaining. - */ - public Builder setScope(com.google.container.v1.MaintenanceExclusionOptions.Scope value) { - if (value == null) { - throw new NullPointerException(); - } - - scope_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Scope specifies the upgrade scope which upgrades are blocked by the
-     * exclusion.
-     * 
- * - * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; - * @return This builder for chaining. - */ - public Builder clearScope() { - - scope_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1.MaintenanceExclusionOptions) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.MaintenanceExclusionOptions) - private static final com.google.container.v1.MaintenanceExclusionOptions DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1.MaintenanceExclusionOptions(); - } - - public static com.google.container.v1.MaintenanceExclusionOptions getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MaintenanceExclusionOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index a168f3674b06..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceExclusionOptionsOrBuilder.java +++ /dev/null @@ -1,30 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface MaintenanceExclusionOptionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.MaintenanceExclusionOptions) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Scope specifies the upgrade scope which upgrades are blocked by the
-   * exclusion.
-   * 
- * - * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; - * @return The enum numeric value on the wire for scope. - */ - int getScopeValue(); - /** - *
-   * Scope specifies the upgrade scope which upgrades are blocked by the
-   * exclusion.
-   * 
- * - * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; - * @return The scope. - */ - com.google.container.v1.MaintenanceExclusionOptions.Scope getScope(); -} diff --git a/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 deleted file mode 100644 index 5d5e7c8964b0..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicy.java +++ /dev/null @@ -1,832 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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); - } - - 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 window_ != null; - } - /** - *
-   * 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 getWindow(); - } - - public static final int RESOURCE_VERSION_FIELD_NUMBER = 3; - private volatile java.lang.Object resourceVersion_; - /** - *
-   * A hash identifying the version of this policy, so that updates to fields of
-   * the policy won't accidentally undo intermediate changes (and so that users
-   * of the API unaware of some fields won't accidentally remove other fields).
-   * Make a `get()` request to the cluster to get the current
-   * resource version and include it with requests to set the policy.
-   * 
- * - * string resource_version = 3; - * @return The resourceVersion. - */ - @java.lang.Override - public java.lang.String getResourceVersion() { - java.lang.Object ref = resourceVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resourceVersion_ = s; - return s; - } - } - /** - *
-   * A hash identifying the version of this policy, so that updates to fields of
-   * the policy won't accidentally undo intermediate changes (and so that users
-   * of the API unaware of some fields won't accidentally remove other fields).
-   * Make a `get()` request to the cluster to get the current
-   * resource version and include it with requests to set the policy.
-   * 
- * - * string resource_version = 3; - * @return The bytes for resourceVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getResourceVersionBytes() { - java.lang.Object ref = resourceVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resourceVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (window_ != null) { - output.writeMessage(1, getWindow()); - } - if (!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 (window_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (windowBuilder_ == null) { - window_ = null; - } else { - window_ = null; - windowBuilder_ = null; - } - resourceVersion_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.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 (windowBuilder_ == null) { - result.window_ = window_; - } else { - result.window_ = windowBuilder_.build(); - } - result.resourceVersion_ = resourceVersion_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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); - - break; - } // case 10 - case 26: { - resourceVersion_ = input.readStringRequireUtf8(); - - 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 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 windowBuilder_ != null || window_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - windowBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - windowBuilder_.setMessage(builderForValue.build()); - } - - 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 (window_ != null) { - window_ = - com.google.container.v1.MaintenanceWindow.newBuilder(window_).mergeFrom(value).buildPartial(); - } else { - window_ = value; - } - onChanged(); - } else { - windowBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Specifies the maintenance window in which maintenance may be performed.
-     * 
- * - * .google.container.v1.MaintenanceWindow window = 1; - */ - public Builder clearWindow() { - if (windowBuilder_ == null) { - window_ = null; - onChanged(); - } else { - window_ = null; - windowBuilder_ = null; - } - - return this; - } - /** - *
-     * Specifies the maintenance window in which maintenance may be performed.
-     * 
- * - * .google.container.v1.MaintenanceWindow window = 1; - */ - public com.google.container.v1.MaintenanceWindow.Builder getWindowBuilder() { - - 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; - onChanged(); - return this; - } - /** - *
-     * A hash identifying the version of this policy, so that updates to fields of
-     * the policy won't accidentally undo intermediate changes (and so that users
-     * of the API unaware of some fields won't accidentally remove other fields).
-     * Make a `get()` request to the cluster to get the current
-     * resource version and include it with requests to set the policy.
-     * 
- * - * string resource_version = 3; - * @return This builder for chaining. - */ - public Builder clearResourceVersion() { - - resourceVersion_ = getDefaultInstance().getResourceVersion(); - onChanged(); - return this; - } - /** - *
-     * A hash identifying the version of this policy, so that updates to fields of
-     * the policy won't accidentally undo intermediate changes (and so that users
-     * of the API unaware of some fields won't accidentally remove other fields).
-     * Make a `get()` request to the cluster to get the current
-     * resource version and include it with requests to set the policy.
-     * 
- * - * string resource_version = 3; - * @param value The bytes for resourceVersion to set. - * @return This builder for chaining. - */ - public Builder setResourceVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - resourceVersion_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index c3afa9206bbf..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicyOrBuilder.java +++ /dev/null @@ -1,64 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index 9eb05f608799..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceWindow.java +++ /dev/null @@ -1,1358 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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.MapField internalGetMapField( - int number) { - switch (number) { - case 4: - return internalGetMaintenanceExclusions(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.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; - 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()); - } - 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 com.google.container.v1.TimeWindow getMaintenanceExclusionsOrDefault( - java.lang.String key, - 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.MapField internalGetMapField( - int number) { - switch (number) { - case 4: - return internalGetMaintenanceExclusions(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 4: - return internalGetMutableMaintenanceExclusions(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.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(); - 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); - int from_bitField0_ = bitField0_; - if (policyCase_ == 2) { - if (dailyMaintenanceWindowBuilder_ == null) { - result.policy_ = policy_; - } else { - result.policy_ = dailyMaintenanceWindowBuilder_.build(); - } - } - if (policyCase_ == 3) { - if (recurringWindowBuilder_ == null) { - result.policy_ = policy_; - } else { - result.policy_ = recurringWindowBuilder_.build(); - } - } - result.maintenanceExclusions_ = internalGetMaintenanceExclusions(); - result.maintenanceExclusions_.makeImmutable(); - result.policyCase_ = policyCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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()); - 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().getMutableMap().put( - maintenanceExclusions__.getKey(), maintenanceExclusions__.getValue()); - 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 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_; - } - private com.google.protobuf.MapField - internalGetMutableMaintenanceExclusions() { - onChanged();; - if (maintenanceExclusions_ == null) { - maintenanceExclusions_ = com.google.protobuf.MapField.newMapField( - MaintenanceExclusionsDefaultEntryHolder.defaultEntry); - } - if (!maintenanceExclusions_.isMutable()) { - maintenanceExclusions_ = maintenanceExclusions_.copy(); - } - return maintenanceExclusions_; - } - - public int getMaintenanceExclusionsCount() { - return internalGetMaintenanceExclusions().getMap().size(); - } - /** - *
-     * Exceptions to maintenance window. Non-emergency maintenance should not
-     * occur in these windows.
-     * 
- * - * map<string, .google.container.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 com.google.container.v1.TimeWindow getMaintenanceExclusionsOrDefault( - java.lang.String key, - 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); - } - - public Builder clearMaintenanceExclusions() { - internalGetMutableMaintenanceExclusions().getMutableMap() - .clear(); - return this; - } - /** - *
-     * Exceptions to maintenance window. Non-emergency maintenance should not
-     * occur in these windows.
-     * 
- * - * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; - */ - - public Builder removeMaintenanceExclusions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableMaintenanceExclusions().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableMaintenanceExclusions() { - return internalGetMutableMaintenanceExclusions().getMutableMap(); - } - /** - *
-     * Exceptions to maintenance window. Non-emergency maintenance should not
-     * occur in these windows.
-     * 
- * - * map<string, .google.container.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().getMutableMap() - .put(key, value); - 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) { - internalGetMutableMaintenanceExclusions().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index 7c1c7d929694..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceWindowOrBuilder.java +++ /dev/null @@ -1,132 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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); - - public 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 deleted file mode 100644 index 7d6b9acafeda..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ManagedPrometheusConfig.java +++ /dev/null @@ -1,492 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * 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(); - 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); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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(); - - 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 boolean enabled_ ; - /** - *
-     * Enable Managed Collection.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Enable Managed Collection.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Enable Managed Collection.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index a0fee708ab6e..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ManagedPrometheusConfigOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index a5fb82a3573e..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java +++ /dev/null @@ -1,1632 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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); - } - - public static final int USERNAME_FIELD_NUMBER = 1; - private volatile java.lang.Object username_; - /** - *
-   * The username to use for HTTP basic authentication to the master endpoint.
-   * For clusters v1.6.0 and later, basic authentication can be disabled by
-   * leaving username unspecified (or setting it to the empty string).
-   * Warning: basic authentication is deprecated, and will be removed in GKE
-   * control plane versions 1.19 and newer. For a list of recommended
-   * authentication methods, see:
-   * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
-   * 
- * - * string username = 1 [deprecated = true]; - * @deprecated google.container.v1.MasterAuth.username is deprecated. - * See google/container/v1/cluster_service.proto;l=989 - * @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=989 - * @return The bytes for username. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getUsernameBytes() { - java.lang.Object ref = username_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - username_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PASSWORD_FIELD_NUMBER = 2; - private volatile java.lang.Object password_; - /** - *
-   * The password to use for HTTP basic authentication to the master endpoint.
-   * Because the master endpoint is open to the Internet, you should create a
-   * strong password.  If a password is provided for cluster creation, username
-   * must be non-empty.
-   * Warning: basic authentication is deprecated, and will be removed in GKE
-   * control plane versions 1.19 and newer. For a list of recommended
-   * authentication methods, see:
-   * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
-   * 
- * - * string password = 2 [deprecated = true]; - * @deprecated google.container.v1.MasterAuth.password is deprecated. - * See google/container/v1/cluster_service.proto;l=1000 - * @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=1000 - * @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 clientCertificateConfig_ != null; - } - /** - *
-   * Configuration for client certificate authentication on the cluster. For
-   * clusters before v1.12, if no configuration is specified, a client
-   * certificate is issued.
-   * 
- * - * .google.container.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 getClientCertificateConfig(); - } - - public static final int CLUSTER_CA_CERTIFICATE_FIELD_NUMBER = 100; - private volatile java.lang.Object clusterCaCertificate_; - /** - *
-   * [Output only] Base64-encoded public certificate that is the root of
-   * trust for the cluster.
-   * 
- * - * string cluster_ca_certificate = 100; - * @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; - private volatile java.lang.Object clientCertificate_; - /** - *
-   * [Output only] Base64-encoded public certificate used by clients to
-   * authenticate to the cluster endpoint.
-   * 
- * - * string client_certificate = 101; - * @return The clientCertificate. - */ - @java.lang.Override - public java.lang.String getClientCertificate() { - java.lang.Object ref = clientCertificate_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientCertificate_ = s; - return s; - } - } - /** - *
-   * [Output only] Base64-encoded public certificate used by clients to
-   * authenticate to the cluster endpoint.
-   * 
- * - * string client_certificate = 101; - * @return The bytes for clientCertificate. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getClientCertificateBytes() { - java.lang.Object ref = clientCertificate_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientCertificate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLIENT_KEY_FIELD_NUMBER = 102; - private volatile java.lang.Object clientKey_; - /** - *
-   * [Output only] Base64-encoded private key used by clients to authenticate
-   * to the cluster endpoint.
-   * 
- * - * string client_key = 102; - * @return The clientKey. - */ - @java.lang.Override - public java.lang.String getClientKey() { - java.lang.Object ref = clientKey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientKey_ = s; - return s; - } - } - /** - *
-   * [Output only] Base64-encoded private key used by clients to authenticate
-   * to the cluster endpoint.
-   * 
- * - * string client_key = 102; - * @return The bytes for clientKey. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getClientKeyBytes() { - java.lang.Object ref = clientKey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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 (clientCertificateConfig_ != null) { - 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 (clientCertificateConfig_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - username_ = ""; - - password_ = ""; - - if (clientCertificateConfigBuilder_ == null) { - clientCertificateConfig_ = null; - } else { - clientCertificateConfig_ = null; - clientCertificateConfigBuilder_ = null; - } - clusterCaCertificate_ = ""; - - clientCertificate_ = ""; - - clientKey_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.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); - result.username_ = username_; - result.password_ = password_; - if (clientCertificateConfigBuilder_ == null) { - result.clientCertificateConfig_ = clientCertificateConfig_; - } else { - result.clientCertificateConfig_ = clientCertificateConfigBuilder_.build(); - } - result.clusterCaCertificate_ = clusterCaCertificate_; - result.clientCertificate_ = clientCertificate_; - result.clientKey_ = clientKey_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getPassword().isEmpty()) { - password_ = other.password_; - onChanged(); - } - if (other.hasClientCertificateConfig()) { - mergeClientCertificateConfig(other.getClientCertificateConfig()); - } - if (!other.getClusterCaCertificate().isEmpty()) { - clusterCaCertificate_ = other.clusterCaCertificate_; - onChanged(); - } - if (!other.getClientCertificate().isEmpty()) { - clientCertificate_ = other.clientCertificate_; - onChanged(); - } - if (!other.getClientKey().isEmpty()) { - clientKey_ = other.clientKey_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - password_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - input.readMessage( - getClientCertificateConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 26 - case 802: { - clusterCaCertificate_ = input.readStringRequireUtf8(); - - break; - } // case 802 - case 810: { - clientCertificate_ = input.readStringRequireUtf8(); - - break; - } // case 810 - case 818: { - clientKey_ = input.readStringRequireUtf8(); - - 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 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=989 - * @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=989 - * @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=989 - * @param value The username to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setUsername( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - username_ = value; - onChanged(); - return this; - } - /** - *
-     * The username to use for HTTP basic authentication to the master endpoint.
-     * For clusters v1.6.0 and later, basic authentication can be disabled by
-     * leaving username unspecified (or setting it to the empty string).
-     * Warning: basic authentication is deprecated, and will be removed in GKE
-     * control plane versions 1.19 and newer. For a list of recommended
-     * authentication methods, see:
-     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
-     * 
- * - * string username = 1 [deprecated = true]; - * @deprecated google.container.v1.MasterAuth.username is deprecated. - * See google/container/v1/cluster_service.proto;l=989 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearUsername() { - - username_ = getDefaultInstance().getUsername(); - onChanged(); - return this; - } - /** - *
-     * The username to use for HTTP basic authentication to the master endpoint.
-     * For clusters v1.6.0 and later, basic authentication can be disabled by
-     * leaving username unspecified (or setting it to the empty string).
-     * Warning: basic authentication is deprecated, and will be removed in GKE
-     * control plane versions 1.19 and newer. For a list of recommended
-     * authentication methods, see:
-     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
-     * 
- * - * string username = 1 [deprecated = true]; - * @deprecated google.container.v1.MasterAuth.username is deprecated. - * See google/container/v1/cluster_service.proto;l=989 - * @param value The bytes for username to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - username_ = value; - onChanged(); - return this; - } - - private java.lang.Object password_ = ""; - /** - *
-     * The password to use for HTTP basic authentication to the master endpoint.
-     * Because the master endpoint is open to the Internet, you should create a
-     * strong password.  If a password is provided for cluster creation, username
-     * must be non-empty.
-     * Warning: basic authentication is deprecated, and will be removed in GKE
-     * control plane versions 1.19 and newer. For a list of recommended
-     * authentication methods, see:
-     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
-     * 
- * - * string password = 2 [deprecated = true]; - * @deprecated google.container.v1.MasterAuth.password is deprecated. - * See google/container/v1/cluster_service.proto;l=1000 - * @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=1000 - * @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=1000 - * @param value The password to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setPassword( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - password_ = value; - onChanged(); - return this; - } - /** - *
-     * The password to use for HTTP basic authentication to the master endpoint.
-     * Because the master endpoint is open to the Internet, you should create a
-     * strong password.  If a password is provided for cluster creation, username
-     * must be non-empty.
-     * Warning: basic authentication is deprecated, and will be removed in GKE
-     * control plane versions 1.19 and newer. For a list of recommended
-     * authentication methods, see:
-     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
-     * 
- * - * string password = 2 [deprecated = true]; - * @deprecated google.container.v1.MasterAuth.password is deprecated. - * See google/container/v1/cluster_service.proto;l=1000 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearPassword() { - - password_ = getDefaultInstance().getPassword(); - onChanged(); - return this; - } - /** - *
-     * The password to use for HTTP basic authentication to the master endpoint.
-     * Because the master endpoint is open to the Internet, you should create a
-     * strong password.  If a password is provided for cluster creation, username
-     * must be non-empty.
-     * Warning: basic authentication is deprecated, and will be removed in GKE
-     * control plane versions 1.19 and newer. For a list of recommended
-     * authentication methods, see:
-     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
-     * 
- * - * string password = 2 [deprecated = true]; - * @deprecated google.container.v1.MasterAuth.password is deprecated. - * See google/container/v1/cluster_service.proto;l=1000 - * @param value The bytes for password to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setPasswordBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - password_ = value; - onChanged(); - return this; - } - - private com.google.container.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 clientCertificateConfigBuilder_ != null || clientCertificateConfig_ != null; - } - /** - *
-     * Configuration for client certificate authentication on the cluster. For
-     * clusters before v1.12, if no configuration is specified, a client
-     * certificate is issued.
-     * 
- * - * .google.container.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; - onChanged(); - } else { - clientCertificateConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for client certificate authentication on the cluster. For
-     * clusters before v1.12, if no configuration is specified, a client
-     * certificate is issued.
-     * 
- * - * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; - */ - public Builder setClientCertificateConfig( - com.google.container.v1.ClientCertificateConfig.Builder builderForValue) { - if (clientCertificateConfigBuilder_ == null) { - clientCertificateConfig_ = builderForValue.build(); - onChanged(); - } else { - clientCertificateConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for client certificate authentication on the cluster. For
-     * clusters before v1.12, if no configuration is specified, a client
-     * certificate is issued.
-     * 
- * - * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; - */ - public Builder mergeClientCertificateConfig(com.google.container.v1.ClientCertificateConfig value) { - if (clientCertificateConfigBuilder_ == null) { - if (clientCertificateConfig_ != null) { - clientCertificateConfig_ = - com.google.container.v1.ClientCertificateConfig.newBuilder(clientCertificateConfig_).mergeFrom(value).buildPartial(); - } else { - clientCertificateConfig_ = value; - } - onChanged(); - } else { - clientCertificateConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for client certificate authentication on the cluster. For
-     * clusters before v1.12, if no configuration is specified, a client
-     * certificate is issued.
-     * 
- * - * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; - */ - public Builder clearClientCertificateConfig() { - if (clientCertificateConfigBuilder_ == null) { - clientCertificateConfig_ = null; - onChanged(); - } else { - clientCertificateConfig_ = null; - clientCertificateConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for client certificate authentication on the cluster. For
-     * clusters before v1.12, if no configuration is specified, a client
-     * certificate is issued.
-     * 
- * - * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; - */ - public com.google.container.v1.ClientCertificateConfig.Builder getClientCertificateConfigBuilder() { - - onChanged(); - return getClientCertificateConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for client certificate authentication on the cluster. For
-     * clusters before v1.12, if no configuration is specified, a client
-     * certificate is issued.
-     * 
- * - * .google.container.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; - 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(); - 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; - onChanged(); - return this; - } - - private java.lang.Object clientCertificate_ = ""; - /** - *
-     * [Output only] Base64-encoded public certificate used by clients to
-     * authenticate to the cluster endpoint.
-     * 
- * - * string client_certificate = 101; - * @return The clientCertificate. - */ - public java.lang.String getClientCertificate() { - java.lang.Object ref = clientCertificate_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientCertificate_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * [Output only] Base64-encoded public certificate used by clients to
-     * authenticate to the cluster endpoint.
-     * 
- * - * string client_certificate = 101; - * @return The bytes for clientCertificate. - */ - public com.google.protobuf.ByteString - getClientCertificateBytes() { - java.lang.Object ref = clientCertificate_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientCertificate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * [Output only] Base64-encoded public certificate used by clients to
-     * authenticate to the cluster endpoint.
-     * 
- * - * string client_certificate = 101; - * @param value The clientCertificate to set. - * @return This builder for chaining. - */ - public Builder setClientCertificate( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientCertificate_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] Base64-encoded public certificate used by clients to
-     * authenticate to the cluster endpoint.
-     * 
- * - * string client_certificate = 101; - * @return This builder for chaining. - */ - public Builder clearClientCertificate() { - - clientCertificate_ = getDefaultInstance().getClientCertificate(); - onChanged(); - return this; - } - /** - *
-     * [Output only] Base64-encoded public certificate used by clients to
-     * authenticate to the cluster endpoint.
-     * 
- * - * string client_certificate = 101; - * @param value The bytes for clientCertificate to set. - * @return This builder for chaining. - */ - public Builder setClientCertificateBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientCertificate_ = value; - onChanged(); - return this; - } - - private java.lang.Object clientKey_ = ""; - /** - *
-     * [Output only] Base64-encoded private key used by clients to authenticate
-     * to the cluster endpoint.
-     * 
- * - * string client_key = 102; - * @return The clientKey. - */ - public java.lang.String getClientKey() { - java.lang.Object ref = clientKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientKey_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * [Output only] Base64-encoded private key used by clients to authenticate
-     * to the cluster endpoint.
-     * 
- * - * string client_key = 102; - * @return The bytes for clientKey. - */ - public com.google.protobuf.ByteString - getClientKeyBytes() { - java.lang.Object ref = clientKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * [Output only] Base64-encoded private key used by clients to authenticate
-     * to the cluster endpoint.
-     * 
- * - * string client_key = 102; - * @param value The clientKey to set. - * @return This builder for chaining. - */ - public Builder setClientKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientKey_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] Base64-encoded private key used by clients to authenticate
-     * to the cluster endpoint.
-     * 
- * - * string client_key = 102; - * @return This builder for chaining. - */ - public Builder clearClientKey() { - - clientKey_ = getDefaultInstance().getClientKey(); - onChanged(); - return this; - } - /** - *
-     * [Output only] Base64-encoded private key used by clients to authenticate
-     * to the cluster endpoint.
-     * 
- * - * string client_key = 102; - * @param value The bytes for clientKey to set. - * @return This builder for chaining. - */ - public Builder setClientKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientKey_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index 5896348cf7b3..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java +++ /dev/null @@ -1,182 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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=989 - * @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=989 - * @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=1000 - * @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=1000 - * @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 deleted file mode 100644 index 560d509c0384..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfig.java +++ /dev/null @@ -1,1856 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * Configuration options for the 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - private volatile java.lang.Object displayName_; - /** - *
-     * display_name is an optional field for users to identify CIDR blocks.
-     * 
- * - * string display_name = 1; - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - *
-     * display_name is an optional field for users to identify CIDR blocks.
-     * 
- * - * string display_name = 1; - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CIDR_BLOCK_FIELD_NUMBER = 2; - private volatile java.lang.Object cidrBlock_; - /** - *
-     * cidr_block must be specified in CIDR notation.
-     * 
- * - * string cidr_block = 2; - * @return The cidrBlock. - */ - @java.lang.Override - public java.lang.String getCidrBlock() { - java.lang.Object ref = cidrBlock_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cidrBlock_ = s; - return s; - } - } - /** - *
-     * cidr_block must be specified in CIDR notation.
-     * 
- * - * string cidr_block = 2; - * @return The bytes for cidrBlock. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCidrBlockBytes() { - java.lang.Object ref = cidrBlock_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - 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); - result.displayName_ = displayName_; - result.cidrBlock_ = cidrBlock_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getCidrBlock().isEmpty()) { - cidrBlock_ = other.cidrBlock_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - cidrBlock_ = input.readStringRequireUtf8(); - - 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 java.lang.Object displayName_ = ""; - /** - *
-       * display_name is an optional field for users to identify CIDR blocks.
-       * 
- * - * string display_name = 1; - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * display_name is an optional field for users to identify CIDR blocks.
-       * 
- * - * string display_name = 1; - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * display_name is an optional field for users to identify CIDR blocks.
-       * 
- * - * string display_name = 1; - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - displayName_ = value; - onChanged(); - return this; - } - /** - *
-       * display_name is an optional field for users to identify CIDR blocks.
-       * 
- * - * string display_name = 1; - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - - displayName_ = getDefaultInstance().getDisplayName(); - onChanged(); - return this; - } - /** - *
-       * display_name is an optional field for users to identify CIDR blocks.
-       * 
- * - * string display_name = 1; - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - displayName_ = value; - onChanged(); - return this; - } - - private java.lang.Object cidrBlock_ = ""; - /** - *
-       * cidr_block must be specified in CIDR notation.
-       * 
- * - * string cidr_block = 2; - * @return The cidrBlock. - */ - public java.lang.String getCidrBlock() { - java.lang.Object ref = cidrBlock_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cidrBlock_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * cidr_block must be specified in CIDR notation.
-       * 
- * - * string cidr_block = 2; - * @return The bytes for cidrBlock. - */ - public com.google.protobuf.ByteString - getCidrBlockBytes() { - java.lang.Object ref = cidrBlock_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * cidr_block must be specified in CIDR notation.
-       * 
- * - * string cidr_block = 2; - * @param value The cidrBlock to set. - * @return This builder for chaining. - */ - public Builder setCidrBlock( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cidrBlock_ = value; - onChanged(); - return this; - } - /** - *
-       * cidr_block must be specified in CIDR notation.
-       * 
- * - * string cidr_block = 2; - * @return This builder for chaining. - */ - public Builder clearCidrBlock() { - - cidrBlock_ = getDefaultInstance().getCidrBlock(); - onChanged(); - return this; - } - /** - *
-       * cidr_block must be specified in CIDR notation.
-       * 
- * - * string cidr_block = 2; - * @param value The bytes for cidrBlock to set. - * @return This builder for chaining. - */ - public Builder setCidrBlockBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cidrBlock_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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_; - /** - *
-   * Whether or not master authorized networks is enabled.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - public static final int CIDR_BLOCKS_FIELD_NUMBER = 2; - private java.util.List cidrBlocks_; - /** - *
-   * cidr_blocks define up to 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_; - /** - *
-   * 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(); - enabled_ = false; - - if (cidrBlocksBuilder_ == null) { - cidrBlocks_ = java.util.Collections.emptyList(); - } else { - cidrBlocks_ = null; - cidrBlocksBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - gcpPublicCidrsAccessEnabled_ = false; - 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_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); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.enabled_ = enabled_; - if (cidrBlocksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - cidrBlocks_ = java.util.Collections.unmodifiableList(cidrBlocks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.cidrBlocks_ = cidrBlocks_; - } else { - result.cidrBlocks_ = cidrBlocksBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.gcpPublicCidrsAccessEnabled_ = gcpPublicCidrsAccessEnabled_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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_ & ~0x00000001); - } else { - ensureCidrBlocksIsMutable(); - cidrBlocks_.addAll(other.cidrBlocks_); - } - onChanged(); - } - } else { - if (!other.cidrBlocks_.isEmpty()) { - if (cidrBlocksBuilder_.isEmpty()) { - cidrBlocksBuilder_.dispose(); - cidrBlocksBuilder_ = null; - cidrBlocks_ = other.cidrBlocks_; - bitField0_ = (bitField0_ & ~0x00000001); - cidrBlocksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCidrBlocksFieldBuilder() : null; - } else { - cidrBlocksBuilder_.addAllMessages(other.cidrBlocks_); - } - } - } - 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(); - - 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_ |= 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 enabled_ ; - /** - *
-     * Whether or not master authorized networks is enabled.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Whether or not master authorized networks is enabled.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether or not master authorized networks is enabled.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - - private java.util.List cidrBlocks_ = - java.util.Collections.emptyList(); - private void ensureCidrBlocksIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - cidrBlocks_ = new java.util.ArrayList(cidrBlocks_); - bitField0_ |= 0x00000001; - } - } - - 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_ & ~0x00000001); - 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_ & 0x00000001) != 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_ & 0x00000002) != 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) { - bitField0_ |= 0x00000002; - gcpPublicCidrsAccessEnabled_ = value; - 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_ & ~0x00000002); - 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 deleted file mode 100644 index aea4f7c7ba78..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfigOrBuilder.java +++ /dev/null @@ -1,87 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index 2dac334a980b..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaxPodsConstraint.java +++ /dev/null @@ -1,490 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * 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(); - 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); - result.maxPodsPerNode_ = maxPodsPerNode_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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(); - - 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 long maxPodsPerNode_ ; - /** - *
-     * Constraint enforced on the max num of pods per node.
-     * 
- * - * int64 max_pods_per_node = 1; - * @return The maxPodsPerNode. - */ - @java.lang.Override - public long getMaxPodsPerNode() { - return maxPodsPerNode_; - } - /** - *
-     * Constraint enforced on the max num of pods per node.
-     * 
- * - * int64 max_pods_per_node = 1; - * @param value The maxPodsPerNode to set. - * @return This builder for chaining. - */ - public Builder setMaxPodsPerNode(long value) { - - maxPodsPerNode_ = value; - onChanged(); - return this; - } - /** - *
-     * Constraint enforced on the max num of pods per node.
-     * 
- * - * int64 max_pods_per_node = 1; - * @return This builder for chaining. - */ - public Builder clearMaxPodsPerNode() { - - maxPodsPerNode_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index e464d2c19d29..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaxPodsConstraintOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index 25212914b057..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MeshCertificates.java +++ /dev/null @@ -1,711 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * Configuration for issuance of mTLS keys and certificates to Kubernetes pods.
- * 
- * - * Protobuf type {@code google.container.v1.MeshCertificates} - */ -public final class MeshCertificates extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.MeshCertificates) - MeshCertificatesOrBuilder { -private static final long serialVersionUID = 0L; - // Use MeshCertificates.newBuilder() to construct. - private MeshCertificates(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MeshCertificates() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MeshCertificates(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MeshCertificates_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MeshCertificates_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.MeshCertificates.class, com.google.container.v1.MeshCertificates.Builder.class); - } - - public static final int ENABLE_CERTIFICATES_FIELD_NUMBER = 1; - private com.google.protobuf.BoolValue enableCertificates_; - /** - *
-   * enable_certificates controls issuance of workload mTLS certificates.
-   * If set, the GKE Workload Identity Certificates controller and node agent
-   * will be deployed in the cluster, which can then be configured by creating a
-   * WorkloadCertificateConfig Custom Resource.
-   * Requires Workload Identity
-   * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
-   * must be non-empty).
-   * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - * @return Whether the enableCertificates field is set. - */ - @java.lang.Override - public boolean hasEnableCertificates() { - return enableCertificates_ != null; - } - /** - *
-   * enable_certificates controls issuance of workload mTLS certificates.
-   * If set, the GKE Workload Identity Certificates controller and node agent
-   * will be deployed in the cluster, which can then be configured by creating a
-   * WorkloadCertificateConfig Custom Resource.
-   * Requires Workload Identity
-   * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
-   * must be non-empty).
-   * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - * @return The enableCertificates. - */ - @java.lang.Override - public com.google.protobuf.BoolValue getEnableCertificates() { - return enableCertificates_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableCertificates_; - } - /** - *
-   * enable_certificates controls issuance of workload mTLS certificates.
-   * If set, the GKE Workload Identity Certificates controller and node agent
-   * will be deployed in the cluster, which can then be configured by creating a
-   * WorkloadCertificateConfig Custom Resource.
-   * Requires Workload Identity
-   * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
-   * must be non-empty).
-   * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - @java.lang.Override - public com.google.protobuf.BoolValueOrBuilder getEnableCertificatesOrBuilder() { - return getEnableCertificates(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enableCertificates_ != null) { - output.writeMessage(1, getEnableCertificates()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (enableCertificates_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getEnableCertificates()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (enableCertificatesBuilder_ == null) { - enableCertificates_ = null; - } else { - enableCertificates_ = null; - enableCertificatesBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MeshCertificates_descriptor; - } - - @java.lang.Override - public com.google.container.v1.MeshCertificates getDefaultInstanceForType() { - return com.google.container.v1.MeshCertificates.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.MeshCertificates build() { - com.google.container.v1.MeshCertificates result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.MeshCertificates buildPartial() { - com.google.container.v1.MeshCertificates result = new com.google.container.v1.MeshCertificates(this); - if (enableCertificatesBuilder_ == null) { - result.enableCertificates_ = enableCertificates_; - } else { - result.enableCertificates_ = enableCertificatesBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.MeshCertificates) { - return mergeFrom((com.google.container.v1.MeshCertificates)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.MeshCertificates other) { - if (other == com.google.container.v1.MeshCertificates.getDefaultInstance()) return this; - if (other.hasEnableCertificates()) { - mergeEnableCertificates(other.getEnableCertificates()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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); - - 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 com.google.protobuf.BoolValue enableCertificates_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> enableCertificatesBuilder_; - /** - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - * @return Whether the enableCertificates field is set. - */ - public boolean hasEnableCertificates() { - return enableCertificatesBuilder_ != null || enableCertificates_ != null; - } - /** - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - * @return The enableCertificates. - */ - public com.google.protobuf.BoolValue getEnableCertificates() { - if (enableCertificatesBuilder_ == null) { - return enableCertificates_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableCertificates_; - } else { - return enableCertificatesBuilder_.getMessage(); - } - } - /** - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - public Builder setEnableCertificates(com.google.protobuf.BoolValue value) { - if (enableCertificatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - enableCertificates_ = value; - onChanged(); - } else { - enableCertificatesBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - public Builder setEnableCertificates( - com.google.protobuf.BoolValue.Builder builderForValue) { - if (enableCertificatesBuilder_ == null) { - enableCertificates_ = builderForValue.build(); - onChanged(); - } else { - enableCertificatesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - public Builder mergeEnableCertificates(com.google.protobuf.BoolValue value) { - if (enableCertificatesBuilder_ == null) { - if (enableCertificates_ != null) { - enableCertificates_ = - com.google.protobuf.BoolValue.newBuilder(enableCertificates_).mergeFrom(value).buildPartial(); - } else { - enableCertificates_ = value; - } - onChanged(); - } else { - enableCertificatesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - public Builder clearEnableCertificates() { - if (enableCertificatesBuilder_ == null) { - enableCertificates_ = null; - onChanged(); - } else { - enableCertificates_ = null; - enableCertificatesBuilder_ = null; - } - - return this; - } - /** - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - public com.google.protobuf.BoolValue.Builder getEnableCertificatesBuilder() { - - onChanged(); - return getEnableCertificatesFieldBuilder().getBuilder(); - } - /** - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - public com.google.protobuf.BoolValueOrBuilder getEnableCertificatesOrBuilder() { - if (enableCertificatesBuilder_ != null) { - return enableCertificatesBuilder_.getMessageOrBuilder(); - } else { - return enableCertificates_ == null ? - com.google.protobuf.BoolValue.getDefaultInstance() : enableCertificates_; - } - } - /** - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> - getEnableCertificatesFieldBuilder() { - if (enableCertificatesBuilder_ == null) { - enableCertificatesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( - getEnableCertificates(), - getParentForChildren(), - isClean()); - enableCertificates_ = null; - } - return enableCertificatesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1.MeshCertificates) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.MeshCertificates) - private static final com.google.container.v1.MeshCertificates DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1.MeshCertificates(); - } - - public static com.google.container.v1.MeshCertificates getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MeshCertificates parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 68e3a75867da..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MeshCertificatesOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface MeshCertificatesOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.MeshCertificates) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * enable_certificates controls issuance of workload mTLS certificates.
-   * If set, the GKE Workload Identity Certificates controller and node agent
-   * will be deployed in the cluster, which can then be configured by creating a
-   * WorkloadCertificateConfig Custom Resource.
-   * Requires Workload Identity
-   * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
-   * must be non-empty).
-   * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - * @return Whether the enableCertificates field is set. - */ - boolean hasEnableCertificates(); - /** - *
-   * enable_certificates controls issuance of workload mTLS certificates.
-   * If set, the GKE Workload Identity Certificates controller and node agent
-   * will be deployed in the cluster, which can then be configured by creating a
-   * WorkloadCertificateConfig Custom Resource.
-   * Requires Workload Identity
-   * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
-   * must be non-empty).
-   * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - * @return The enableCertificates. - */ - com.google.protobuf.BoolValue getEnableCertificates(); - /** - *
-   * enable_certificates controls issuance of workload mTLS certificates.
-   * If set, the GKE Workload Identity Certificates controller and node agent
-   * will be deployed in the cluster, which can then be configured by creating a
-   * WorkloadCertificateConfig Custom Resource.
-   * Requires Workload Identity
-   * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
-   * must be non-empty).
-   * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - com.google.protobuf.BoolValueOrBuilder getEnableCertificatesOrBuilder(); -} diff --git a/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 deleted file mode 100644 index 4546e3888efa..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringComponentConfig.java +++ /dev/null @@ -1,933 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * MonitoringComponentConfig is cluster monitoring component configuration.
- * 
- * - * Protobuf type {@code google.container.v1.MonitoringComponentConfig} - */ -public final class MonitoringComponentConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.MonitoringComponentConfig) - MonitoringComponentConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use MonitoringComponentConfig.newBuilder() to construct. - private MonitoringComponentConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MonitoringComponentConfig() { - enableComponents_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MonitoringComponentConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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), - 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; - - - 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; - 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; - private java.util.List enableComponents_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.container.v1.MonitoringComponentConfig.Component> enableComponents_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.container.v1.MonitoringComponentConfig.Component>() { - public com.google.container.v1.MonitoringComponentConfig.Component convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.container.v1.MonitoringComponentConfig.Component result = com.google.container.v1.MonitoringComponentConfig.Component.valueOf(from); - return result == null ? com.google.container.v1.MonitoringComponentConfig.Component.UNRECOGNIZED : result; - } - }; - /** - *
-   * Select components to collect metrics. An empty set would disable all
-   * monitoring.
-   * 
- * - * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * @return A list containing the enableComponents. - */ - @java.lang.Override - public java.util.List getEnableComponentsList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.container.v1.MonitoringComponentConfig.Component>(enableComponents_, enableComponents_converter_); - } - /** - *
-   * Select components to collect metrics. An empty set would disable all
-   * monitoring.
-   * 
- * - * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * @return The count of enableComponents. - */ - @java.lang.Override - public int getEnableComponentsCount() { - return enableComponents_.size(); - } - /** - *
-   * Select components to collect metrics. An empty set would disable all
-   * monitoring.
-   * 
- * - * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * @param index The index of the element to return. - * @return The enableComponents at the given index. - */ - @java.lang.Override - public com.google.container.v1.MonitoringComponentConfig.Component getEnableComponents(int index) { - return enableComponents_converter_.convert(enableComponents_.get(index)); - } - /** - *
-   * Select components to collect metrics. An empty set would disable all
-   * monitoring.
-   * 
- * - * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * @return A list containing the enum numeric values on the wire for enableComponents. - */ - @java.lang.Override - public java.util.List - getEnableComponentsValueList() { - return enableComponents_; - } - /** - *
-   * Select components to collect metrics. An empty set would disable all
-   * monitoring.
-   * 
- * - * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of enableComponents at the given index. - */ - @java.lang.Override - public int getEnableComponentsValue(int index) { - return enableComponents_.get(index); - } - private int enableComponentsMemoizedSerializedSize; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (getEnableComponentsList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(enableComponentsMemoizedSerializedSize); - } - for (int i = 0; i < enableComponents_.size(); i++) { - output.writeEnumNoTag(enableComponents_.get(i)); - } - 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(); - enableComponents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MonitoringComponentConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.MonitoringComponentConfig getDefaultInstanceForType() { - return com.google.container.v1.MonitoringComponentConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.MonitoringComponentConfig build() { - com.google.container.v1.MonitoringComponentConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.MonitoringComponentConfig buildPartial() { - com.google.container.v1.MonitoringComponentConfig result = new com.google.container.v1.MonitoringComponentConfig(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - enableComponents_ = java.util.Collections.unmodifiableList(enableComponents_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.enableComponents_ = enableComponents_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.MonitoringComponentConfig) { - return mergeFrom((com.google.container.v1.MonitoringComponentConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.MonitoringComponentConfig other) { - if (other == com.google.container.v1.MonitoringComponentConfig.getDefaultInstance()) return this; - if (!other.enableComponents_.isEmpty()) { - if (enableComponents_.isEmpty()) { - enableComponents_ = other.enableComponents_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEnableComponentsIsMutable(); - enableComponents_.addAll(other.enableComponents_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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 deleted file mode 100644 index 0237d74edd21..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringComponentConfigOrBuilder.java +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface MonitoringComponentConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.MonitoringComponentConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Select components to collect metrics. An empty set would disable all
-   * monitoring.
-   * 
- * - * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * @return A list containing the enableComponents. - */ - java.util.List getEnableComponentsList(); - /** - *
-   * Select components to collect metrics. An empty set would disable all
-   * monitoring.
-   * 
- * - * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * @return The count of enableComponents. - */ - int getEnableComponentsCount(); - /** - *
-   * Select components to collect metrics. An empty set would disable all
-   * monitoring.
-   * 
- * - * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * @param index The index of the element to return. - * @return The enableComponents at the given index. - */ - com.google.container.v1.MonitoringComponentConfig.Component getEnableComponents(int index); - /** - *
-   * Select components to collect metrics. An empty set would disable all
-   * monitoring.
-   * 
- * - * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * @return A list containing the enum numeric values on the wire for enableComponents. - */ - java.util.List - getEnableComponentsValueList(); - /** - *
-   * Select components to collect metrics. An empty set would disable all
-   * monitoring.
-   * 
- * - * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of enableComponents at the given index. - */ - int getEnableComponentsValue(int index); -} diff --git a/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 deleted file mode 100644 index 00be870ea12b..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringConfig.java +++ /dev/null @@ -1,881 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * MonitoringConfig is cluster monitoring configuration.
- * 
- * - * Protobuf type {@code google.container.v1.MonitoringConfig} - */ -public final class MonitoringConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.MonitoringConfig) - MonitoringConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use MonitoringConfig.newBuilder() to construct. - private MonitoringConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MonitoringConfig() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MonitoringConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MonitoringConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MonitoringConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.MonitoringConfig.class, com.google.container.v1.MonitoringConfig.Builder.class); - } - - public static final int COMPONENT_CONFIG_FIELD_NUMBER = 1; - private com.google.container.v1.MonitoringComponentConfig componentConfig_; - /** - *
-   * Monitoring components configuration
-   * 
- * - * .google.container.v1.MonitoringComponentConfig component_config = 1; - * @return Whether the componentConfig field is set. - */ - @java.lang.Override - public boolean hasComponentConfig() { - return componentConfig_ != null; - } - /** - *
-   * Monitoring components configuration
-   * 
- * - * .google.container.v1.MonitoringComponentConfig component_config = 1; - * @return The componentConfig. - */ - @java.lang.Override - public com.google.container.v1.MonitoringComponentConfig getComponentConfig() { - return componentConfig_ == null ? com.google.container.v1.MonitoringComponentConfig.getDefaultInstance() : componentConfig_; - } - /** - *
-   * Monitoring components configuration
-   * 
- * - * .google.container.v1.MonitoringComponentConfig component_config = 1; - */ - @java.lang.Override - public com.google.container.v1.MonitoringComponentConfigOrBuilder getComponentConfigOrBuilder() { - return getComponentConfig(); - } - - 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 managedPrometheusConfig_ != null; - } - /** - *
-   * 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 getManagedPrometheusConfig(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (componentConfig_ != null) { - output.writeMessage(1, getComponentConfig()); - } - if (managedPrometheusConfig_ != null) { - output.writeMessage(2, getManagedPrometheusConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (componentConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getComponentConfig()); - } - if (managedPrometheusConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getManagedPrometheusConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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 (!getUnknownFields().equals(other.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(); - } - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (componentConfigBuilder_ == null) { - componentConfig_ = null; - } else { - componentConfig_ = null; - componentConfigBuilder_ = null; - } - if (managedPrometheusConfigBuilder_ == null) { - managedPrometheusConfig_ = null; - } else { - managedPrometheusConfig_ = null; - managedPrometheusConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MonitoringConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.MonitoringConfig getDefaultInstanceForType() { - return com.google.container.v1.MonitoringConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.MonitoringConfig build() { - com.google.container.v1.MonitoringConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.MonitoringConfig buildPartial() { - com.google.container.v1.MonitoringConfig result = new com.google.container.v1.MonitoringConfig(this); - if (componentConfigBuilder_ == null) { - result.componentConfig_ = componentConfig_; - } else { - result.componentConfig_ = componentConfigBuilder_.build(); - } - if (managedPrometheusConfigBuilder_ == null) { - result.managedPrometheusConfig_ = managedPrometheusConfig_; - } else { - result.managedPrometheusConfig_ = managedPrometheusConfigBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.MonitoringConfig) { - return mergeFrom((com.google.container.v1.MonitoringConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.MonitoringConfig other) { - if (other == com.google.container.v1.MonitoringConfig.getDefaultInstance()) return this; - if (other.hasComponentConfig()) { - mergeComponentConfig(other.getComponentConfig()); - } - if (other.hasManagedPrometheusConfig()) { - mergeManagedPrometheusConfig(other.getManagedPrometheusConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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); - - break; - } // case 10 - case 18: { - input.readMessage( - getManagedPrometheusConfigFieldBuilder().getBuilder(), - extensionRegistry); - - 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 com.google.container.v1.MonitoringComponentConfig componentConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MonitoringComponentConfig, com.google.container.v1.MonitoringComponentConfig.Builder, com.google.container.v1.MonitoringComponentConfigOrBuilder> componentConfigBuilder_; - /** - *
-     * Monitoring components configuration
-     * 
- * - * .google.container.v1.MonitoringComponentConfig component_config = 1; - * @return Whether the componentConfig field is set. - */ - public boolean hasComponentConfig() { - return componentConfigBuilder_ != null || componentConfig_ != null; - } - /** - *
-     * Monitoring components configuration
-     * 
- * - * .google.container.v1.MonitoringComponentConfig component_config = 1; - * @return The componentConfig. - */ - public com.google.container.v1.MonitoringComponentConfig getComponentConfig() { - if (componentConfigBuilder_ == null) { - return componentConfig_ == null ? com.google.container.v1.MonitoringComponentConfig.getDefaultInstance() : componentConfig_; - } else { - return componentConfigBuilder_.getMessage(); - } - } - /** - *
-     * Monitoring components configuration
-     * 
- * - * .google.container.v1.MonitoringComponentConfig component_config = 1; - */ - public Builder setComponentConfig(com.google.container.v1.MonitoringComponentConfig value) { - if (componentConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - componentConfig_ = value; - onChanged(); - } else { - componentConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Monitoring components configuration
-     * 
- * - * .google.container.v1.MonitoringComponentConfig component_config = 1; - */ - public Builder setComponentConfig( - com.google.container.v1.MonitoringComponentConfig.Builder builderForValue) { - if (componentConfigBuilder_ == null) { - componentConfig_ = builderForValue.build(); - onChanged(); - } else { - componentConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Monitoring components configuration
-     * 
- * - * .google.container.v1.MonitoringComponentConfig component_config = 1; - */ - public Builder mergeComponentConfig(com.google.container.v1.MonitoringComponentConfig value) { - if (componentConfigBuilder_ == null) { - if (componentConfig_ != null) { - componentConfig_ = - com.google.container.v1.MonitoringComponentConfig.newBuilder(componentConfig_).mergeFrom(value).buildPartial(); - } else { - componentConfig_ = value; - } - onChanged(); - } else { - componentConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Monitoring components configuration
-     * 
- * - * .google.container.v1.MonitoringComponentConfig component_config = 1; - */ - public Builder clearComponentConfig() { - if (componentConfigBuilder_ == null) { - componentConfig_ = null; - onChanged(); - } else { - componentConfig_ = null; - componentConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Monitoring components configuration
-     * 
- * - * .google.container.v1.MonitoringComponentConfig component_config = 1; - */ - public com.google.container.v1.MonitoringComponentConfig.Builder getComponentConfigBuilder() { - - onChanged(); - return getComponentConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Monitoring components configuration
-     * 
- * - * .google.container.v1.MonitoringComponentConfig component_config = 1; - */ - public com.google.container.v1.MonitoringComponentConfigOrBuilder getComponentConfigOrBuilder() { - if (componentConfigBuilder_ != null) { - return componentConfigBuilder_.getMessageOrBuilder(); - } else { - return componentConfig_ == null ? - com.google.container.v1.MonitoringComponentConfig.getDefaultInstance() : componentConfig_; - } - } - /** - *
-     * Monitoring components configuration
-     * 
- * - * .google.container.v1.MonitoringComponentConfig component_config = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MonitoringComponentConfig, com.google.container.v1.MonitoringComponentConfig.Builder, com.google.container.v1.MonitoringComponentConfigOrBuilder> - getComponentConfigFieldBuilder() { - if (componentConfigBuilder_ == null) { - componentConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MonitoringComponentConfig, com.google.container.v1.MonitoringComponentConfig.Builder, com.google.container.v1.MonitoringComponentConfigOrBuilder>( - getComponentConfig(), - getParentForChildren(), - isClean()); - componentConfig_ = null; - } - return componentConfigBuilder_; - } - - 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 managedPrometheusConfigBuilder_ != null || managedPrometheusConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - managedPrometheusConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - managedPrometheusConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (managedPrometheusConfig_ != null) { - managedPrometheusConfig_ = - com.google.container.v1.ManagedPrometheusConfig.newBuilder(managedPrometheusConfig_).mergeFrom(value).buildPartial(); - } else { - managedPrometheusConfig_ = value; - } - onChanged(); - } else { - managedPrometheusConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Enable Google Cloud Managed Service for Prometheus
-     * in the cluster.
-     * 
- * - * .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; - */ - public Builder clearManagedPrometheusConfig() { - if (managedPrometheusConfigBuilder_ == null) { - managedPrometheusConfig_ = null; - onChanged(); - } else { - managedPrometheusConfig_ = null; - managedPrometheusConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Enable Google Cloud Managed Service for Prometheus
-     * in the cluster.
-     * 
- * - * .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; - */ - public com.google.container.v1.ManagedPrometheusConfig.Builder getManagedPrometheusConfigBuilder() { - - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 75ec3888f408..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringConfigOrBuilder.java +++ /dev/null @@ -1,66 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface MonitoringConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.MonitoringConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Monitoring components configuration
-   * 
- * - * .google.container.v1.MonitoringComponentConfig component_config = 1; - * @return Whether the componentConfig field is set. - */ - boolean hasComponentConfig(); - /** - *
-   * Monitoring components configuration
-   * 
- * - * .google.container.v1.MonitoringComponentConfig component_config = 1; - * @return The componentConfig. - */ - com.google.container.v1.MonitoringComponentConfig getComponentConfig(); - /** - *
-   * Monitoring components configuration
-   * 
- * - * .google.container.v1.MonitoringComponentConfig component_config = 1; - */ - com.google.container.v1.MonitoringComponentConfigOrBuilder getComponentConfigOrBuilder(); - - /** - *
-   * 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(); -} 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 deleted file mode 100644 index b790ba55013c..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java +++ /dev/null @@ -1,2194 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * NetworkConfig reports the relative names of network & subnetwork.
- * 
- * - * Protobuf type {@code google.container.v1.NetworkConfig} - */ -public final class NetworkConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.NetworkConfig) - NetworkConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use NetworkConfig.newBuilder() to construct. - private NetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NetworkConfig() { - network_ = ""; - subnetwork_ = ""; - datapathProvider_ = 0; - privateIpv6GoogleAccess_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NetworkConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NetworkConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NetworkConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NetworkConfig.class, com.google.container.v1.NetworkConfig.Builder.class); - } - - public static final int NETWORK_FIELD_NUMBER = 1; - private volatile java.lang.Object network_; - /** - *
-   * Output only. The relative name of the Google Compute Engine
-   * [network][google.container.v1.NetworkConfig.network](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; - private volatile java.lang.Object subnetwork_; - /** - *
-   * Output only. The relative name of the Google Compute Engine
-   * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
-   * cluster is connected. Example:
-   * projects/my-project/regions/us-central1/subnetworks/my-subnet
-   * 
- * - * string subnetwork = 2; - * @return The subnetwork. - */ - @java.lang.Override - public java.lang.String getSubnetwork() { - java.lang.Object ref = subnetwork_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subnetwork_ = s; - return s; - } - } - /** - *
-   * Output only. The relative name of the Google Compute Engine
-   * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
-   * cluster is connected. Example:
-   * projects/my-project/regions/us-central1/subnetworks/my-subnet
-   * 
- * - * string subnetwork = 2; - * @return The bytes for subnetwork. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSubnetworkBytes() { - java.lang.Object ref = subnetwork_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - subnetwork_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ENABLE_INTRA_NODE_VISIBILITY_FIELD_NUMBER = 5; - private boolean enableIntraNodeVisibility_; - /** - *
-   * Whether Intra-node visibility is enabled for this cluster.
-   * This makes same node pod to pod traffic visible for VPC network.
-   * 
- * - * bool enable_intra_node_visibility = 5; - * @return The enableIntraNodeVisibility. - */ - @java.lang.Override - public boolean getEnableIntraNodeVisibility() { - return enableIntraNodeVisibility_; - } - - public static final int DEFAULT_SNAT_STATUS_FIELD_NUMBER = 7; - private com.google.container.v1.DefaultSnatStatus defaultSnatStatus_; - /** - *
-   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-   * will be disabled when default_snat_status is disabled. When disabled is set
-   * to false, default IP masquerade rules will be applied to the nodes to
-   * prevent sNAT on cluster internal traffic.
-   * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - * @return Whether the defaultSnatStatus field is set. - */ - @java.lang.Override - public boolean hasDefaultSnatStatus() { - return defaultSnatStatus_ != null; - } - /** - *
-   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-   * will be disabled when default_snat_status is disabled. When disabled is set
-   * to false, default IP masquerade rules will be applied to the nodes to
-   * prevent sNAT on cluster internal traffic.
-   * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - * @return The defaultSnatStatus. - */ - @java.lang.Override - public com.google.container.v1.DefaultSnatStatus getDefaultSnatStatus() { - return defaultSnatStatus_ == null ? com.google.container.v1.DefaultSnatStatus.getDefaultInstance() : defaultSnatStatus_; - } - /** - *
-   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-   * will be disabled when default_snat_status is disabled. When disabled is set
-   * to false, default IP masquerade rules will be applied to the nodes to
-   * prevent sNAT on cluster internal traffic.
-   * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - */ - @java.lang.Override - public com.google.container.v1.DefaultSnatStatusOrBuilder getDefaultSnatStatusOrBuilder() { - return getDefaultSnatStatus(); - } - - public static final int ENABLE_L4ILB_SUBSETTING_FIELD_NUMBER = 10; - private boolean enableL4IlbSubsetting_; - /** - *
-   * Whether L4ILB Subsetting is enabled for this cluster.
-   * 
- * - * bool enable_l4ilb_subsetting = 10; - * @return The enableL4ilbSubsetting. - */ - @java.lang.Override - public boolean getEnableL4IlbSubsetting() { - return enableL4IlbSubsetting_; - } - - public static final int DATAPATH_PROVIDER_FIELD_NUMBER = 11; - private int datapathProvider_; - /** - *
-   * The desired datapath provider for this cluster. By default, uses the
-   * IPTables-based kube-proxy implementation.
-   * 
- * - * .google.container.v1.DatapathProvider datapath_provider = 11; - * @return The enum numeric value on the wire for datapathProvider. - */ - @java.lang.Override public int getDatapathProviderValue() { - return datapathProvider_; - } - /** - *
-   * The desired datapath provider for this cluster. By default, uses the
-   * IPTables-based kube-proxy implementation.
-   * 
- * - * .google.container.v1.DatapathProvider datapath_provider = 11; - * @return The datapathProvider. - */ - @java.lang.Override public com.google.container.v1.DatapathProvider getDatapathProvider() { - @SuppressWarnings("deprecation") - com.google.container.v1.DatapathProvider result = com.google.container.v1.DatapathProvider.valueOf(datapathProvider_); - return result == null ? com.google.container.v1.DatapathProvider.UNRECOGNIZED : result; - } - - public static final int PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER = 12; - private int privateIpv6GoogleAccess_; - /** - *
-   * The desired state of IPv6 connectivity to Google Services.
-   * By default, no private IPv6 access to or from Google Services (all access
-   * will be via IPv4)
-   * 
- * - * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; - * @return The enum numeric value on the wire for privateIpv6GoogleAccess. - */ - @java.lang.Override public int getPrivateIpv6GoogleAccessValue() { - return privateIpv6GoogleAccess_; - } - /** - *
-   * The desired state of IPv6 connectivity to Google Services.
-   * By default, no private IPv6 access to or from Google Services (all access
-   * will be via IPv4)
-   * 
- * - * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; - * @return The privateIpv6GoogleAccess. - */ - @java.lang.Override public com.google.container.v1.PrivateIPv6GoogleAccess getPrivateIpv6GoogleAccess() { - @SuppressWarnings("deprecation") - com.google.container.v1.PrivateIPv6GoogleAccess result = com.google.container.v1.PrivateIPv6GoogleAccess.valueOf(privateIpv6GoogleAccess_); - return result == null ? com.google.container.v1.PrivateIPv6GoogleAccess.UNRECOGNIZED : result; - } - - public static final int DNS_CONFIG_FIELD_NUMBER = 13; - private com.google.container.v1.DNSConfig dnsConfig_; - /** - *
-   * DNSConfig contains clusterDNS config for this cluster.
-   * 
- * - * .google.container.v1.DNSConfig dns_config = 13; - * @return Whether the dnsConfig field is set. - */ - @java.lang.Override - public boolean hasDnsConfig() { - return dnsConfig_ != null; - } - /** - *
-   * DNSConfig contains clusterDNS config for this cluster.
-   * 
- * - * .google.container.v1.DNSConfig dns_config = 13; - * @return The dnsConfig. - */ - @java.lang.Override - public com.google.container.v1.DNSConfig getDnsConfig() { - return dnsConfig_ == null ? com.google.container.v1.DNSConfig.getDefaultInstance() : dnsConfig_; - } - /** - *
-   * DNSConfig contains clusterDNS config for this cluster.
-   * 
- * - * .google.container.v1.DNSConfig dns_config = 13; - */ - @java.lang.Override - public com.google.container.v1.DNSConfigOrBuilder getDnsConfigOrBuilder() { - return getDnsConfig(); - } - - public static final int SERVICE_EXTERNAL_IPS_CONFIG_FIELD_NUMBER = 15; - private com.google.container.v1.ServiceExternalIPsConfig serviceExternalIpsConfig_; - /** - *
-   * ServiceExternalIPsConfig specifies if services with externalIPs field are
-   * blocked or not.
-   * 
- * - * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; - * @return Whether the serviceExternalIpsConfig field is set. - */ - @java.lang.Override - public boolean hasServiceExternalIpsConfig() { - return serviceExternalIpsConfig_ != null; - } - /** - *
-   * ServiceExternalIPsConfig specifies if services with externalIPs field are
-   * blocked or not.
-   * 
- * - * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; - * @return The serviceExternalIpsConfig. - */ - @java.lang.Override - public com.google.container.v1.ServiceExternalIPsConfig getServiceExternalIpsConfig() { - return serviceExternalIpsConfig_ == null ? com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance() : serviceExternalIpsConfig_; - } - /** - *
-   * ServiceExternalIPsConfig specifies if services with externalIPs field are
-   * blocked or not.
-   * 
- * - * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; - */ - @java.lang.Override - public com.google.container.v1.ServiceExternalIPsConfigOrBuilder getServiceExternalIpsConfigOrBuilder() { - return getServiceExternalIpsConfig(); - } - - 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 gatewayApiConfig_ != null; - } - /** - *
-   * 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 getGatewayApiConfig(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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 (defaultSnatStatus_ != null) { - output.writeMessage(7, getDefaultSnatStatus()); - } - if (enableL4IlbSubsetting_ != false) { - output.writeBool(10, enableL4IlbSubsetting_); - } - if (datapathProvider_ != com.google.container.v1.DatapathProvider.DATAPATH_PROVIDER_UNSPECIFIED.getNumber()) { - output.writeEnum(11, datapathProvider_); - } - if (privateIpv6GoogleAccess_ != com.google.container.v1.PrivateIPv6GoogleAccess.PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED.getNumber()) { - output.writeEnum(12, privateIpv6GoogleAccess_); - } - if (dnsConfig_ != null) { - output.writeMessage(13, getDnsConfig()); - } - if (serviceExternalIpsConfig_ != null) { - output.writeMessage(15, getServiceExternalIpsConfig()); - } - if (gatewayApiConfig_ != null) { - output.writeMessage(16, getGatewayApiConfig()); - } - getUnknownFields().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 (defaultSnatStatus_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getDefaultSnatStatus()); - } - if (enableL4IlbSubsetting_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(10, enableL4IlbSubsetting_); - } - if (datapathProvider_ != com.google.container.v1.DatapathProvider.DATAPATH_PROVIDER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(11, datapathProvider_); - } - if (privateIpv6GoogleAccess_ != com.google.container.v1.PrivateIPv6GoogleAccess.PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(12, privateIpv6GoogleAccess_); - } - if (dnsConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getDnsConfig()); - } - if (serviceExternalIpsConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, getServiceExternalIpsConfig()); - } - if (gatewayApiConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getGatewayApiConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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 = (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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - network_ = ""; - - subnetwork_ = ""; - - enableIntraNodeVisibility_ = false; - - if (defaultSnatStatusBuilder_ == null) { - defaultSnatStatus_ = null; - } else { - defaultSnatStatus_ = null; - defaultSnatStatusBuilder_ = null; - } - enableL4IlbSubsetting_ = false; - - datapathProvider_ = 0; - - privateIpv6GoogleAccess_ = 0; - - if (dnsConfigBuilder_ == null) { - dnsConfig_ = null; - } else { - dnsConfig_ = null; - dnsConfigBuilder_ = null; - } - if (serviceExternalIpsConfigBuilder_ == null) { - serviceExternalIpsConfig_ = null; - } else { - serviceExternalIpsConfig_ = null; - serviceExternalIpsConfigBuilder_ = null; - } - if (gatewayApiConfigBuilder_ == null) { - gatewayApiConfig_ = null; - } else { - gatewayApiConfig_ = null; - gatewayApiConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NetworkConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NetworkConfig getDefaultInstanceForType() { - return com.google.container.v1.NetworkConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NetworkConfig build() { - com.google.container.v1.NetworkConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NetworkConfig buildPartial() { - com.google.container.v1.NetworkConfig result = new com.google.container.v1.NetworkConfig(this); - result.network_ = network_; - result.subnetwork_ = subnetwork_; - result.enableIntraNodeVisibility_ = enableIntraNodeVisibility_; - if (defaultSnatStatusBuilder_ == null) { - result.defaultSnatStatus_ = defaultSnatStatus_; - } else { - result.defaultSnatStatus_ = defaultSnatStatusBuilder_.build(); - } - result.enableL4IlbSubsetting_ = enableL4IlbSubsetting_; - result.datapathProvider_ = datapathProvider_; - result.privateIpv6GoogleAccess_ = privateIpv6GoogleAccess_; - if (dnsConfigBuilder_ == null) { - result.dnsConfig_ = dnsConfig_; - } else { - result.dnsConfig_ = dnsConfigBuilder_.build(); - } - if (serviceExternalIpsConfigBuilder_ == null) { - result.serviceExternalIpsConfig_ = serviceExternalIpsConfig_; - } else { - result.serviceExternalIpsConfig_ = serviceExternalIpsConfigBuilder_.build(); - } - if (gatewayApiConfigBuilder_ == null) { - result.gatewayApiConfig_ = gatewayApiConfig_; - } else { - result.gatewayApiConfig_ = gatewayApiConfigBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NetworkConfig) { - return mergeFrom((com.google.container.v1.NetworkConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NetworkConfig other) { - if (other == com.google.container.v1.NetworkConfig.getDefaultInstance()) return this; - if (!other.getNetwork().isEmpty()) { - network_ = other.network_; - onChanged(); - } - if (!other.getSubnetwork().isEmpty()) { - subnetwork_ = other.subnetwork_; - onChanged(); - } - 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()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - subnetwork_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 40: { - enableIntraNodeVisibility_ = input.readBool(); - - break; - } // case 40 - case 58: { - input.readMessage( - getDefaultSnatStatusFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 58 - case 80: { - enableL4IlbSubsetting_ = input.readBool(); - - break; - } // case 80 - case 88: { - datapathProvider_ = input.readEnum(); - - break; - } // case 88 - case 96: { - privateIpv6GoogleAccess_ = input.readEnum(); - - break; - } // case 96 - case 106: { - input.readMessage( - getDnsConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 106 - case 122: { - input.readMessage( - getServiceExternalIpsConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 122 - case 130: { - input.readMessage( - getGatewayApiConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 130 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - 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; - 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(); - 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; - onChanged(); - return this; - } - - private java.lang.Object subnetwork_ = ""; - /** - *
-     * Output only. The relative name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
-     * cluster is connected. Example:
-     * projects/my-project/regions/us-central1/subnetworks/my-subnet
-     * 
- * - * string subnetwork = 2; - * @return The subnetwork. - */ - public java.lang.String getSubnetwork() { - java.lang.Object ref = subnetwork_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subnetwork_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. The relative name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
-     * cluster is connected. Example:
-     * projects/my-project/regions/us-central1/subnetworks/my-subnet
-     * 
- * - * string subnetwork = 2; - * @return The bytes for subnetwork. - */ - public com.google.protobuf.ByteString - getSubnetworkBytes() { - java.lang.Object ref = subnetwork_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - subnetwork_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. The relative name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
-     * cluster is connected. Example:
-     * projects/my-project/regions/us-central1/subnetworks/my-subnet
-     * 
- * - * string subnetwork = 2; - * @param value The subnetwork to set. - * @return This builder for chaining. - */ - public Builder setSubnetwork( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - subnetwork_ = value; - onChanged(); - return this; - } - /** - *
-     * Output only. The relative name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
-     * cluster is connected. Example:
-     * projects/my-project/regions/us-central1/subnetworks/my-subnet
-     * 
- * - * string subnetwork = 2; - * @return This builder for chaining. - */ - public Builder clearSubnetwork() { - - subnetwork_ = getDefaultInstance().getSubnetwork(); - onChanged(); - return this; - } - /** - *
-     * Output only. The relative name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
-     * cluster is connected. Example:
-     * projects/my-project/regions/us-central1/subnetworks/my-subnet
-     * 
- * - * string subnetwork = 2; - * @param value The bytes for subnetwork to set. - * @return This builder for chaining. - */ - public Builder setSubnetworkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - subnetwork_ = value; - onChanged(); - return this; - } - - private boolean enableIntraNodeVisibility_ ; - /** - *
-     * Whether Intra-node visibility is enabled for this cluster.
-     * This makes same node pod to pod traffic visible for VPC network.
-     * 
- * - * bool enable_intra_node_visibility = 5; - * @return The enableIntraNodeVisibility. - */ - @java.lang.Override - public boolean getEnableIntraNodeVisibility() { - return enableIntraNodeVisibility_; - } - /** - *
-     * Whether Intra-node visibility is enabled for this cluster.
-     * This makes same node pod to pod traffic visible for VPC network.
-     * 
- * - * bool enable_intra_node_visibility = 5; - * @param value The enableIntraNodeVisibility to set. - * @return This builder for chaining. - */ - public Builder setEnableIntraNodeVisibility(boolean value) { - - enableIntraNodeVisibility_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether Intra-node visibility is enabled for this cluster.
-     * This makes same node pod to pod traffic visible for VPC network.
-     * 
- * - * bool enable_intra_node_visibility = 5; - * @return This builder for chaining. - */ - public Builder clearEnableIntraNodeVisibility() { - - enableIntraNodeVisibility_ = false; - onChanged(); - return this; - } - - private com.google.container.v1.DefaultSnatStatus defaultSnatStatus_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DefaultSnatStatus, com.google.container.v1.DefaultSnatStatus.Builder, com.google.container.v1.DefaultSnatStatusOrBuilder> defaultSnatStatusBuilder_; - /** - *
-     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-     * will be disabled when default_snat_status is disabled. When disabled is set
-     * to false, default IP masquerade rules will be applied to the nodes to
-     * prevent sNAT on cluster internal traffic.
-     * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - * @return Whether the defaultSnatStatus field is set. - */ - public boolean hasDefaultSnatStatus() { - return defaultSnatStatusBuilder_ != null || defaultSnatStatus_ != null; - } - /** - *
-     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-     * will be disabled when default_snat_status is disabled. When disabled is set
-     * to false, default IP masquerade rules will be applied to the nodes to
-     * prevent sNAT on cluster internal traffic.
-     * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - * @return The defaultSnatStatus. - */ - public com.google.container.v1.DefaultSnatStatus getDefaultSnatStatus() { - if (defaultSnatStatusBuilder_ == null) { - return defaultSnatStatus_ == null ? com.google.container.v1.DefaultSnatStatus.getDefaultInstance() : defaultSnatStatus_; - } else { - return defaultSnatStatusBuilder_.getMessage(); - } - } - /** - *
-     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-     * will be disabled when default_snat_status is disabled. When disabled is set
-     * to false, default IP masquerade rules will be applied to the nodes to
-     * prevent sNAT on cluster internal traffic.
-     * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - */ - public Builder setDefaultSnatStatus(com.google.container.v1.DefaultSnatStatus value) { - if (defaultSnatStatusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - defaultSnatStatus_ = value; - onChanged(); - } else { - defaultSnatStatusBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-     * will be disabled when default_snat_status is disabled. When disabled is set
-     * to false, default IP masquerade rules will be applied to the nodes to
-     * prevent sNAT on cluster internal traffic.
-     * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - */ - public Builder setDefaultSnatStatus( - com.google.container.v1.DefaultSnatStatus.Builder builderForValue) { - if (defaultSnatStatusBuilder_ == null) { - defaultSnatStatus_ = builderForValue.build(); - onChanged(); - } else { - defaultSnatStatusBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-     * will be disabled when default_snat_status is disabled. When disabled is set
-     * to false, default IP masquerade rules will be applied to the nodes to
-     * prevent sNAT on cluster internal traffic.
-     * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - */ - public Builder mergeDefaultSnatStatus(com.google.container.v1.DefaultSnatStatus value) { - if (defaultSnatStatusBuilder_ == null) { - if (defaultSnatStatus_ != null) { - defaultSnatStatus_ = - com.google.container.v1.DefaultSnatStatus.newBuilder(defaultSnatStatus_).mergeFrom(value).buildPartial(); - } else { - defaultSnatStatus_ = value; - } - onChanged(); - } else { - defaultSnatStatusBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-     * will be disabled when default_snat_status is disabled. When disabled is set
-     * to false, default IP masquerade rules will be applied to the nodes to
-     * prevent sNAT on cluster internal traffic.
-     * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - */ - public Builder clearDefaultSnatStatus() { - if (defaultSnatStatusBuilder_ == null) { - defaultSnatStatus_ = null; - onChanged(); - } else { - defaultSnatStatus_ = null; - defaultSnatStatusBuilder_ = null; - } - - return this; - } - /** - *
-     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-     * will be disabled when default_snat_status is disabled. When disabled is set
-     * to false, default IP masquerade rules will be applied to the nodes to
-     * prevent sNAT on cluster internal traffic.
-     * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - */ - public com.google.container.v1.DefaultSnatStatus.Builder getDefaultSnatStatusBuilder() { - - onChanged(); - return getDefaultSnatStatusFieldBuilder().getBuilder(); - } - /** - *
-     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-     * will be disabled when default_snat_status is disabled. When disabled is set
-     * to false, default IP masquerade rules will be applied to the nodes to
-     * prevent sNAT on cluster internal traffic.
-     * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - */ - public com.google.container.v1.DefaultSnatStatusOrBuilder getDefaultSnatStatusOrBuilder() { - if (defaultSnatStatusBuilder_ != null) { - return defaultSnatStatusBuilder_.getMessageOrBuilder(); - } else { - return defaultSnatStatus_ == null ? - com.google.container.v1.DefaultSnatStatus.getDefaultInstance() : defaultSnatStatus_; - } - } - /** - *
-     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-     * will be disabled when default_snat_status is disabled. When disabled is set
-     * to false, default IP masquerade rules will be applied to the nodes to
-     * prevent sNAT on cluster internal traffic.
-     * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DefaultSnatStatus, com.google.container.v1.DefaultSnatStatus.Builder, com.google.container.v1.DefaultSnatStatusOrBuilder> - getDefaultSnatStatusFieldBuilder() { - if (defaultSnatStatusBuilder_ == null) { - defaultSnatStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DefaultSnatStatus, com.google.container.v1.DefaultSnatStatus.Builder, com.google.container.v1.DefaultSnatStatusOrBuilder>( - getDefaultSnatStatus(), - getParentForChildren(), - isClean()); - defaultSnatStatus_ = null; - } - return defaultSnatStatusBuilder_; - } - - private boolean enableL4IlbSubsetting_ ; - /** - *
-     * Whether L4ILB Subsetting is enabled for this cluster.
-     * 
- * - * bool enable_l4ilb_subsetting = 10; - * @return The enableL4ilbSubsetting. - */ - @java.lang.Override - public boolean getEnableL4IlbSubsetting() { - return enableL4IlbSubsetting_; - } - /** - *
-     * Whether L4ILB Subsetting is enabled for this cluster.
-     * 
- * - * bool enable_l4ilb_subsetting = 10; - * @param value The enableL4ilbSubsetting to set. - * @return This builder for chaining. - */ - public Builder setEnableL4IlbSubsetting(boolean value) { - - enableL4IlbSubsetting_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether L4ILB Subsetting is enabled for this cluster.
-     * 
- * - * bool enable_l4ilb_subsetting = 10; - * @return This builder for chaining. - */ - public Builder clearEnableL4IlbSubsetting() { - - enableL4IlbSubsetting_ = false; - onChanged(); - return this; - } - - private int datapathProvider_ = 0; - /** - *
-     * The desired datapath provider for this cluster. By default, uses the
-     * IPTables-based kube-proxy implementation.
-     * 
- * - * .google.container.v1.DatapathProvider datapath_provider = 11; - * @return The enum numeric value on the wire for datapathProvider. - */ - @java.lang.Override public int getDatapathProviderValue() { - return datapathProvider_; - } - /** - *
-     * The desired datapath provider for this cluster. By default, uses the
-     * IPTables-based kube-proxy implementation.
-     * 
- * - * .google.container.v1.DatapathProvider datapath_provider = 11; - * @param value The enum numeric value on the wire for datapathProvider to set. - * @return This builder for chaining. - */ - public Builder setDatapathProviderValue(int value) { - - datapathProvider_ = value; - onChanged(); - return this; - } - /** - *
-     * The desired datapath provider for this cluster. By default, uses the
-     * IPTables-based kube-proxy implementation.
-     * 
- * - * .google.container.v1.DatapathProvider datapath_provider = 11; - * @return The datapathProvider. - */ - @java.lang.Override - public com.google.container.v1.DatapathProvider getDatapathProvider() { - @SuppressWarnings("deprecation") - com.google.container.v1.DatapathProvider result = com.google.container.v1.DatapathProvider.valueOf(datapathProvider_); - return result == null ? com.google.container.v1.DatapathProvider.UNRECOGNIZED : result; - } - /** - *
-     * The desired datapath provider for this cluster. By default, uses the
-     * IPTables-based kube-proxy implementation.
-     * 
- * - * .google.container.v1.DatapathProvider datapath_provider = 11; - * @param value The datapathProvider to set. - * @return This builder for chaining. - */ - public Builder setDatapathProvider(com.google.container.v1.DatapathProvider value) { - if (value == null) { - throw new NullPointerException(); - } - - datapathProvider_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * The desired datapath provider for this cluster. By default, uses the
-     * IPTables-based kube-proxy implementation.
-     * 
- * - * .google.container.v1.DatapathProvider datapath_provider = 11; - * @return This builder for chaining. - */ - public Builder clearDatapathProvider() { - - datapathProvider_ = 0; - onChanged(); - return this; - } - - private int privateIpv6GoogleAccess_ = 0; - /** - *
-     * The desired state of IPv6 connectivity to Google Services.
-     * By default, no private IPv6 access to or from Google Services (all access
-     * will be via IPv4)
-     * 
- * - * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; - * @return The enum numeric value on the wire for privateIpv6GoogleAccess. - */ - @java.lang.Override public int getPrivateIpv6GoogleAccessValue() { - return privateIpv6GoogleAccess_; - } - /** - *
-     * The desired state of IPv6 connectivity to Google Services.
-     * By default, no private IPv6 access to or from Google Services (all access
-     * will be via IPv4)
-     * 
- * - * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; - * @param value The enum numeric value on the wire for privateIpv6GoogleAccess to set. - * @return This builder for chaining. - */ - public Builder setPrivateIpv6GoogleAccessValue(int value) { - - privateIpv6GoogleAccess_ = value; - onChanged(); - return this; - } - /** - *
-     * The desired state of IPv6 connectivity to Google Services.
-     * By default, no private IPv6 access to or from Google Services (all access
-     * will be via IPv4)
-     * 
- * - * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; - * @return The privateIpv6GoogleAccess. - */ - @java.lang.Override - public com.google.container.v1.PrivateIPv6GoogleAccess getPrivateIpv6GoogleAccess() { - @SuppressWarnings("deprecation") - com.google.container.v1.PrivateIPv6GoogleAccess result = com.google.container.v1.PrivateIPv6GoogleAccess.valueOf(privateIpv6GoogleAccess_); - return result == null ? com.google.container.v1.PrivateIPv6GoogleAccess.UNRECOGNIZED : result; - } - /** - *
-     * The desired state of IPv6 connectivity to Google Services.
-     * By default, no private IPv6 access to or from Google Services (all access
-     * will be via IPv4)
-     * 
- * - * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; - * @param value The privateIpv6GoogleAccess to set. - * @return This builder for chaining. - */ - public Builder setPrivateIpv6GoogleAccess(com.google.container.v1.PrivateIPv6GoogleAccess value) { - if (value == null) { - throw new NullPointerException(); - } - - privateIpv6GoogleAccess_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * The desired state of IPv6 connectivity to Google Services.
-     * By default, no private IPv6 access to or from Google Services (all access
-     * will be via IPv4)
-     * 
- * - * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; - * @return This builder for chaining. - */ - public Builder clearPrivateIpv6GoogleAccess() { - - privateIpv6GoogleAccess_ = 0; - onChanged(); - return this; - } - - private com.google.container.v1.DNSConfig dnsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DNSConfig, com.google.container.v1.DNSConfig.Builder, com.google.container.v1.DNSConfigOrBuilder> dnsConfigBuilder_; - /** - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1.DNSConfig dns_config = 13; - * @return Whether the dnsConfig field is set. - */ - public boolean hasDnsConfig() { - return dnsConfigBuilder_ != null || dnsConfig_ != null; - } - /** - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1.DNSConfig dns_config = 13; - * @return The dnsConfig. - */ - public com.google.container.v1.DNSConfig getDnsConfig() { - if (dnsConfigBuilder_ == null) { - return dnsConfig_ == null ? com.google.container.v1.DNSConfig.getDefaultInstance() : dnsConfig_; - } else { - return dnsConfigBuilder_.getMessage(); - } - } - /** - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1.DNSConfig dns_config = 13; - */ - public Builder setDnsConfig(com.google.container.v1.DNSConfig value) { - if (dnsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dnsConfig_ = value; - onChanged(); - } else { - dnsConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1.DNSConfig dns_config = 13; - */ - public Builder setDnsConfig( - com.google.container.v1.DNSConfig.Builder builderForValue) { - if (dnsConfigBuilder_ == null) { - dnsConfig_ = builderForValue.build(); - onChanged(); - } else { - dnsConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1.DNSConfig dns_config = 13; - */ - public Builder mergeDnsConfig(com.google.container.v1.DNSConfig value) { - if (dnsConfigBuilder_ == null) { - if (dnsConfig_ != null) { - dnsConfig_ = - com.google.container.v1.DNSConfig.newBuilder(dnsConfig_).mergeFrom(value).buildPartial(); - } else { - dnsConfig_ = value; - } - onChanged(); - } else { - dnsConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1.DNSConfig dns_config = 13; - */ - public Builder clearDnsConfig() { - if (dnsConfigBuilder_ == null) { - dnsConfig_ = null; - onChanged(); - } else { - dnsConfig_ = null; - dnsConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1.DNSConfig dns_config = 13; - */ - public com.google.container.v1.DNSConfig.Builder getDnsConfigBuilder() { - - onChanged(); - return getDnsConfigFieldBuilder().getBuilder(); - } - /** - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1.DNSConfig dns_config = 13; - */ - public com.google.container.v1.DNSConfigOrBuilder getDnsConfigOrBuilder() { - if (dnsConfigBuilder_ != null) { - return dnsConfigBuilder_.getMessageOrBuilder(); - } else { - return dnsConfig_ == null ? - com.google.container.v1.DNSConfig.getDefaultInstance() : dnsConfig_; - } - } - /** - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1.DNSConfig dns_config = 13; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DNSConfig, com.google.container.v1.DNSConfig.Builder, com.google.container.v1.DNSConfigOrBuilder> - getDnsConfigFieldBuilder() { - if (dnsConfigBuilder_ == null) { - dnsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DNSConfig, com.google.container.v1.DNSConfig.Builder, com.google.container.v1.DNSConfigOrBuilder>( - getDnsConfig(), - getParentForChildren(), - isClean()); - dnsConfig_ = null; - } - return dnsConfigBuilder_; - } - - private com.google.container.v1.ServiceExternalIPsConfig serviceExternalIpsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ServiceExternalIPsConfig, com.google.container.v1.ServiceExternalIPsConfig.Builder, com.google.container.v1.ServiceExternalIPsConfigOrBuilder> serviceExternalIpsConfigBuilder_; - /** - *
-     * ServiceExternalIPsConfig specifies if services with externalIPs field are
-     * blocked or not.
-     * 
- * - * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; - * @return Whether the serviceExternalIpsConfig field is set. - */ - public boolean hasServiceExternalIpsConfig() { - return serviceExternalIpsConfigBuilder_ != null || serviceExternalIpsConfig_ != null; - } - /** - *
-     * ServiceExternalIPsConfig specifies if services with externalIPs field are
-     * blocked or not.
-     * 
- * - * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; - * @return The serviceExternalIpsConfig. - */ - public com.google.container.v1.ServiceExternalIPsConfig getServiceExternalIpsConfig() { - if (serviceExternalIpsConfigBuilder_ == null) { - return serviceExternalIpsConfig_ == null ? com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance() : serviceExternalIpsConfig_; - } else { - return serviceExternalIpsConfigBuilder_.getMessage(); - } - } - /** - *
-     * ServiceExternalIPsConfig specifies if services with externalIPs field are
-     * blocked or not.
-     * 
- * - * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; - */ - public Builder setServiceExternalIpsConfig(com.google.container.v1.ServiceExternalIPsConfig value) { - if (serviceExternalIpsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - serviceExternalIpsConfig_ = value; - onChanged(); - } else { - serviceExternalIpsConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * ServiceExternalIPsConfig specifies if services with externalIPs field are
-     * blocked or not.
-     * 
- * - * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; - */ - public Builder setServiceExternalIpsConfig( - com.google.container.v1.ServiceExternalIPsConfig.Builder builderForValue) { - if (serviceExternalIpsConfigBuilder_ == null) { - serviceExternalIpsConfig_ = builderForValue.build(); - onChanged(); - } else { - serviceExternalIpsConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * ServiceExternalIPsConfig specifies if services with externalIPs field are
-     * blocked or not.
-     * 
- * - * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; - */ - public Builder mergeServiceExternalIpsConfig(com.google.container.v1.ServiceExternalIPsConfig value) { - if (serviceExternalIpsConfigBuilder_ == null) { - if (serviceExternalIpsConfig_ != null) { - serviceExternalIpsConfig_ = - com.google.container.v1.ServiceExternalIPsConfig.newBuilder(serviceExternalIpsConfig_).mergeFrom(value).buildPartial(); - } else { - serviceExternalIpsConfig_ = value; - } - onChanged(); - } else { - serviceExternalIpsConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * ServiceExternalIPsConfig specifies if services with externalIPs field are
-     * blocked or not.
-     * 
- * - * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; - */ - public Builder clearServiceExternalIpsConfig() { - if (serviceExternalIpsConfigBuilder_ == null) { - serviceExternalIpsConfig_ = null; - onChanged(); - } else { - serviceExternalIpsConfig_ = null; - serviceExternalIpsConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * ServiceExternalIPsConfig specifies if services with externalIPs field are
-     * blocked or not.
-     * 
- * - * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; - */ - public com.google.container.v1.ServiceExternalIPsConfig.Builder getServiceExternalIpsConfigBuilder() { - - onChanged(); - return getServiceExternalIpsConfigFieldBuilder().getBuilder(); - } - /** - *
-     * ServiceExternalIPsConfig specifies if services with externalIPs field are
-     * blocked or not.
-     * 
- * - * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; - */ - public com.google.container.v1.ServiceExternalIPsConfigOrBuilder getServiceExternalIpsConfigOrBuilder() { - if (serviceExternalIpsConfigBuilder_ != null) { - return serviceExternalIpsConfigBuilder_.getMessageOrBuilder(); - } else { - return serviceExternalIpsConfig_ == null ? - com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance() : serviceExternalIpsConfig_; - } - } - /** - *
-     * ServiceExternalIPsConfig specifies if services with externalIPs field are
-     * blocked or not.
-     * 
- * - * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ServiceExternalIPsConfig, com.google.container.v1.ServiceExternalIPsConfig.Builder, com.google.container.v1.ServiceExternalIPsConfigOrBuilder> - getServiceExternalIpsConfigFieldBuilder() { - if (serviceExternalIpsConfigBuilder_ == null) { - serviceExternalIpsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ServiceExternalIPsConfig, com.google.container.v1.ServiceExternalIPsConfig.Builder, com.google.container.v1.ServiceExternalIPsConfigOrBuilder>( - getServiceExternalIpsConfig(), - getParentForChildren(), - isClean()); - serviceExternalIpsConfig_ = null; - } - return serviceExternalIpsConfigBuilder_; - } - - 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 gatewayApiConfigBuilder_ != null || gatewayApiConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - gatewayApiConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - gatewayApiConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (gatewayApiConfig_ != null) { - gatewayApiConfig_ = - com.google.container.v1.GatewayAPIConfig.newBuilder(gatewayApiConfig_).mergeFrom(value).buildPartial(); - } else { - gatewayApiConfig_ = value; - } - onChanged(); - } else { - gatewayApiConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * GatewayAPIConfig contains the desired config of Gateway API on this
-     * cluster.
-     * 
- * - * .google.container.v1.GatewayAPIConfig gateway_api_config = 16; - */ - public Builder clearGatewayApiConfig() { - if (gatewayApiConfigBuilder_ == null) { - gatewayApiConfig_ = null; - onChanged(); - } else { - gatewayApiConfig_ = null; - gatewayApiConfigBuilder_ = null; - } - - 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() { - - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 794bd06153b8..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java +++ /dev/null @@ -1,249 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface NetworkConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NetworkConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. The relative name of the Google Compute Engine
-   * [network][google.container.v1.NetworkConfig.network](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(); -} 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 deleted file mode 100644 index 31275362f880..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicy.java +++ /dev/null @@ -1,743 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * Configuration options for the 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.container.v1.NetworkPolicy.Provider result = com.google.container.v1.NetworkPolicy.Provider.valueOf(provider_); - return result == null ? com.google.container.v1.NetworkPolicy.Provider.UNRECOGNIZED : result; - } - - public static final int ENABLED_FIELD_NUMBER = 2; - private boolean enabled_; - /** - *
-   * Whether network policy is enabled on the cluster.
-   * 
- * - * bool enabled = 2; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (provider_ != com.google.container.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(); - 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); - result.provider_ = provider_; - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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(); - - break; - } // case 8 - case 16: { - enabled_ = input.readBool(); - - 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 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; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1.NetworkPolicy.Provider result = com.google.container.v1.NetworkPolicy.Provider.valueOf(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(); - } - - 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() { - - provider_ = 0; - onChanged(); - return this; - } - - private boolean enabled_ ; - /** - *
-     * Whether network policy is enabled on the cluster.
-     * 
- * - * bool enabled = 2; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Whether network policy is enabled on the cluster.
-     * 
- * - * bool enabled = 2; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether network policy is enabled on the cluster.
-     * 
- * - * bool enabled = 2; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index 63b8d2187d6b..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyConfig.java +++ /dev/null @@ -1,494 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * 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(); - 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); - result.disabled_ = disabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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(); - - 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 boolean disabled_ ; - /** - *
-     * Whether NetworkPolicy is enabled for this cluster.
-     * 
- * - * bool disabled = 1; - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - /** - *
-     * Whether NetworkPolicy is enabled for this cluster.
-     * 
- * - * bool disabled = 1; - * @param value The disabled to set. - * @return This builder for chaining. - */ - public Builder setDisabled(boolean value) { - - disabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether NetworkPolicy is enabled for this cluster.
-     * 
- * - * bool disabled = 1; - * @return This builder for chaining. - */ - public Builder clearDisabled() { - - disabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index 1a0d64619d28..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyConfigOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index cf813ba09e96..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index a5e44f50ea7f..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkTags.java +++ /dev/null @@ -1,651 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NetworkTags(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - private com.google.protobuf.LazyStringList tags_; - /** - *
-   * 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(); - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_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); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - tags_ = tags_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.tags_ = tags_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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_ = (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.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTagsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - 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() { - return tags_.getUnmodifiableView(); - } - /** - *
-     * 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); - 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); - 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_); - onChanged(); - return this; - } - /** - *
-     * List of network tags.
-     * 
- * - * repeated string tags = 1; - * @return This builder for chaining. - */ - public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - 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); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 72af3639ab15..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkTagsOrBuilder.java +++ /dev/null @@ -1,50 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index 193375a8e9ec..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java +++ /dev/null @@ -1,7593 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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.EMPTY; - serviceAccount_ = ""; - imageType_ = ""; - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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.MapField internalGetMapField( - 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); - } - - public static final int MACHINE_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object machineType_; - /** - *
-   * The name of a Google Compute Engine [machine
-   * type](https://cloud.google.com/compute/docs/machine-types)
-   * If unspecified, the default machine type is `e2-medium`.
-   * 
- * - * string machine_type = 1; - * @return The machineType. - */ - @java.lang.Override - public java.lang.String getMachineType() { - java.lang.Object ref = machineType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - machineType_ = s; - return s; - } - } - /** - *
-   * The name of a Google Compute Engine [machine
-   * type](https://cloud.google.com/compute/docs/machine-types)
-   * If unspecified, the default machine type is `e2-medium`.
-   * 
- * - * string machine_type = 1; - * @return The bytes for machineType. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMachineTypeBytes() { - java.lang.Object ref = machineType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - machineType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISK_SIZE_GB_FIELD_NUMBER = 2; - private int diskSizeGb_; - /** - *
-   * Size of the disk attached to each node, specified in GB.
-   * The smallest allowed disk size is 10GB.
-   * If unspecified, the default disk size is 100GB.
-   * 
- * - * int32 disk_size_gb = 2; - * @return The diskSizeGb. - */ - @java.lang.Override - public int getDiskSizeGb() { - return diskSizeGb_; - } - - public static final int OAUTH_SCOPES_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList oauthScopes_; - /** - *
-   * The set of Google API scopes to be made available on all of the
-   * node VMs under the "default" service account.
-   * The following scopes are recommended, but not required, and by default are
-   * not included:
-   * * `https://www.googleapis.com/auth/compute` is required for mounting
-   * persistent storage on your nodes.
-   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-   * communicating with **gcr.io**
-   * (the [Google Container
-   * Registry](https://cloud.google.com/container-registry/)).
-   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-   * Monitoring are enabled, in which case their required scopes will be added.
-   * 
- * - * repeated string oauth_scopes = 3; - * @return A list containing the oauthScopes. - */ - public com.google.protobuf.ProtocolStringList - getOauthScopesList() { - return oauthScopes_; - } - /** - *
-   * The set of Google API scopes to be made available on all of the
-   * node VMs under the "default" service account.
-   * The following scopes are recommended, but not required, and by default are
-   * not included:
-   * * `https://www.googleapis.com/auth/compute` is required for mounting
-   * persistent storage on your nodes.
-   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-   * communicating with **gcr.io**
-   * (the [Google Container
-   * Registry](https://cloud.google.com/container-registry/)).
-   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-   * Monitoring are enabled, in which case their required scopes will be added.
-   * 
- * - * repeated string oauth_scopes = 3; - * @return The count of oauthScopes. - */ - public int getOauthScopesCount() { - return oauthScopes_.size(); - } - /** - *
-   * The set of Google API scopes to be made available on all of the
-   * node VMs under the "default" service account.
-   * The following scopes are recommended, but not required, and by default are
-   * not included:
-   * * `https://www.googleapis.com/auth/compute` is required for mounting
-   * persistent storage on your nodes.
-   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-   * communicating with **gcr.io**
-   * (the [Google Container
-   * Registry](https://cloud.google.com/container-registry/)).
-   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-   * Monitoring are enabled, in which case their required scopes will be added.
-   * 
- * - * repeated string oauth_scopes = 3; - * @param index The index of the element to return. - * @return The oauthScopes at the given index. - */ - public java.lang.String getOauthScopes(int index) { - return oauthScopes_.get(index); - } - /** - *
-   * The set of Google API scopes to be made available on all of the
-   * node VMs under the "default" service account.
-   * The following scopes are recommended, but not required, and by default are
-   * not included:
-   * * `https://www.googleapis.com/auth/compute` is required for mounting
-   * persistent storage on your nodes.
-   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-   * communicating with **gcr.io**
-   * (the [Google Container
-   * Registry](https://cloud.google.com/container-registry/)).
-   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-   * Monitoring are enabled, in which case their required scopes will be added.
-   * 
- * - * repeated string oauth_scopes = 3; - * @param index The index of the value to return. - * @return The bytes of the oauthScopes at the given index. - */ - public com.google.protobuf.ByteString - getOauthScopesBytes(int index) { - return oauthScopes_.getByteString(index); - } - - public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 9; - private volatile java.lang.Object serviceAccount_; - /** - *
-   * The Google Cloud Platform Service Account to be used by the node VMs.
-   * Specify the email address of the Service Account; otherwise, if no Service
-   * Account is specified, the "default" service account is used.
-   * 
- * - * string service_account = 9; - * @return The serviceAccount. - */ - @java.lang.Override - public java.lang.String getServiceAccount() { - java.lang.Object ref = serviceAccount_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceAccount_ = s; - return s; - } - } - /** - *
-   * The Google Cloud Platform Service Account to be used by the node VMs.
-   * Specify the email address of the Service Account; otherwise, if no Service
-   * Account is specified, the "default" service account is used.
-   * 
- * - * string service_account = 9; - * @return The bytes for serviceAccount. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountBytes() { - java.lang.Object ref = serviceAccount_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serviceAccount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int METADATA_FIELD_NUMBER = 4; - private static final class MetadataDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - 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, - ""); - } - 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 java.lang.String getMetadataOrDefault( - java.lang.String key, - 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; - private volatile java.lang.Object imageType_; - /** - *
-   * The image type to use for this node. Note that for a given image type,
-   * the latest version of it will be used.
-   * 
- * - * string image_type = 5; - * @return The imageType. - */ - @java.lang.Override - public java.lang.String getImageType() { - java.lang.Object ref = imageType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - imageType_ = s; - return s; - } - } - /** - *
-   * The image type to use for this node. Note that for a given image type,
-   * the latest version of it will be used.
-   * 
- * - * string image_type = 5; - * @return The bytes for imageType. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getImageTypeBytes() { - java.lang.Object ref = imageType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - imageType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LABELS_FIELD_NUMBER = 6; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - 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, - ""); - } - 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 java.lang.String getLabelsOrDefault( - java.lang.String key, - 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_; - /** - *
-   * The number of local SSD disks to be attached to the node.
-   * The limit for this value is dependent upon the maximum number of
-   * disks available on a machine per zone. See:
-   * https://cloud.google.com/compute/docs/disks/local-ssd
-   * for more information.
-   * 
- * - * int32 local_ssd_count = 7; - * @return The localSsdCount. - */ - @java.lang.Override - public int getLocalSsdCount() { - return localSsdCount_; - } - - public static final int TAGS_FIELD_NUMBER = 8; - private com.google.protobuf.LazyStringList tags_; - /** - *
-   * The list of instance tags applied to all nodes. Tags are used to identify
-   * valid sources or targets for network firewalls and are specified by
-   * the client during cluster or node pool creation. Each tag within the list
-   * must comply with RFC1035.
-   * 
- * - * repeated string tags = 8; - * @return A list containing the tags. - */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_; - } - /** - *
-   * The list of instance tags applied to all nodes. Tags are used to identify
-   * valid sources or targets for network firewalls and are specified by
-   * the client during cluster or node pool creation. Each tag within the list
-   * must comply with RFC1035.
-   * 
- * - * repeated string tags = 8; - * @return The count of tags. - */ - public int getTagsCount() { - return tags_.size(); - } - /** - *
-   * The list of instance tags applied to all nodes. Tags are used to identify
-   * valid sources or targets for network firewalls and are specified by
-   * the client during cluster or node pool creation. Each tag within the list
-   * must comply with RFC1035.
-   * 
- * - * repeated string tags = 8; - * @param index The index of the element to return. - * @return The tags at the given index. - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - *
-   * The list of instance tags applied to all nodes. Tags are used to identify
-   * valid sources or targets for network firewalls and are specified by
-   * the client during cluster or node pool creation. Each tag within the list
-   * must comply with RFC1035.
-   * 
- * - * repeated string tags = 8; - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(index); - } - - public static final int PREEMPTIBLE_FIELD_NUMBER = 10; - private boolean preemptible_; - /** - *
-   * Whether the nodes are created as preemptible VM instances. See:
-   * https://cloud.google.com/compute/docs/instances/preemptible for more
-   * 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; - 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; - private volatile java.lang.Object diskType_; - /** - *
-   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-   * 'pd-balanced')
-   * If unspecified, the default disk type is 'pd-standard'
-   * 
- * - * string disk_type = 12; - * @return The diskType. - */ - @java.lang.Override - public java.lang.String getDiskType() { - java.lang.Object ref = diskType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - diskType_ = s; - return s; - } - } - /** - *
-   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-   * 'pd-balanced')
-   * If unspecified, the default disk type is 'pd-standard'
-   * 
- * - * string disk_type = 12; - * @return The bytes for diskType. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDiskTypeBytes() { - java.lang.Object ref = diskType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - diskType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MIN_CPU_PLATFORM_FIELD_NUMBER = 13; - private volatile java.lang.Object minCpuPlatform_; - /** - *
-   * Minimum CPU platform to be used by this instance. The instance may be
-   * scheduled on the specified or newer CPU platform. Applicable values are the
-   * friendly names of CPU platforms, such as
-   * `minCpuPlatform: "Intel Haswell"` or
-   * `minCpuPlatform: "Intel Sandy Bridge"`. For more
-   * information, read [how to specify min CPU
-   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
-   * 
- * - * string min_cpu_platform = 13; - * @return The minCpuPlatform. - */ - @java.lang.Override - public java.lang.String getMinCpuPlatform() { - java.lang.Object ref = minCpuPlatform_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - minCpuPlatform_ = s; - return s; - } - } - /** - *
-   * Minimum CPU platform to be used by this instance. The instance may be
-   * scheduled on the specified or newer CPU platform. Applicable values are the
-   * friendly names of CPU platforms, such as
-   * `minCpuPlatform: "Intel Haswell"` or
-   * `minCpuPlatform: "Intel Sandy Bridge"`. For more
-   * information, read [how to specify min CPU
-   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
-   * 
- * - * string min_cpu_platform = 13; - * @return The bytes for minCpuPlatform. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMinCpuPlatformBytes() { - java.lang.Object ref = minCpuPlatform_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - minCpuPlatform_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int WORKLOAD_METADATA_CONFIG_FIELD_NUMBER = 14; - private com.google.container.v1.WorkloadMetadataConfig workloadMetadataConfig_; - /** - *
-   * The workload metadata configuration for this node.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * @return Whether the workloadMetadataConfig field is set. - */ - @java.lang.Override - public boolean hasWorkloadMetadataConfig() { - return workloadMetadataConfig_ != null; - } - /** - *
-   * The workload metadata configuration for this node.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * @return The workloadMetadataConfig. - */ - @java.lang.Override - public com.google.container.v1.WorkloadMetadataConfig getWorkloadMetadataConfig() { - return workloadMetadataConfig_ == null ? com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() : workloadMetadataConfig_; - } - /** - *
-   * The workload metadata configuration for this node.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - @java.lang.Override - public com.google.container.v1.WorkloadMetadataConfigOrBuilder getWorkloadMetadataConfigOrBuilder() { - return getWorkloadMetadataConfig(); - } - - public static final int TAINTS_FIELD_NUMBER = 15; - private java.util.List taints_; - /** - *
-   * 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 sandboxConfig_ != null; - } - /** - *
-   * Sandbox configuration for this node.
-   * 
- * - * .google.container.v1.SandboxConfig sandbox_config = 17; - * @return The sandboxConfig. - */ - @java.lang.Override - public com.google.container.v1.SandboxConfig getSandboxConfig() { - return sandboxConfig_ == null ? com.google.container.v1.SandboxConfig.getDefaultInstance() : sandboxConfig_; - } - /** - *
-   * Sandbox configuration for this node.
-   * 
- * - * .google.container.v1.SandboxConfig sandbox_config = 17; - */ - @java.lang.Override - public com.google.container.v1.SandboxConfigOrBuilder getSandboxConfigOrBuilder() { - return getSandboxConfig(); - } - - public static final int NODE_GROUP_FIELD_NUMBER = 18; - private volatile java.lang.Object nodeGroup_; - /** - *
-   * Setting this field will assign instances of this
-   * pool to run on the specified node group. This is useful for running
-   * workloads on [sole tenant
-   * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
-   * 
- * - * string node_group = 18; - * @return The nodeGroup. - */ - @java.lang.Override - public java.lang.String getNodeGroup() { - java.lang.Object ref = nodeGroup_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeGroup_ = s; - return s; - } - } - /** - *
-   * Setting this field will assign instances of this
-   * pool to run on the specified node group. This is useful for running
-   * workloads on [sole tenant
-   * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
-   * 
- * - * string node_group = 18; - * @return The bytes for nodeGroup. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNodeGroupBytes() { - java.lang.Object ref = nodeGroup_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodeGroup_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESERVATION_AFFINITY_FIELD_NUMBER = 19; - private com.google.container.v1.ReservationAffinity reservationAffinity_; - /** - *
-   * The optional reservation affinity. Setting this field will apply
-   * the specified [Zonal Compute
-   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-   * to this node pool.
-   * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - * @return Whether the reservationAffinity field is set. - */ - @java.lang.Override - public boolean hasReservationAffinity() { - return reservationAffinity_ != null; - } - /** - *
-   * The optional reservation affinity. Setting this field will apply
-   * the specified [Zonal Compute
-   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-   * to this node pool.
-   * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - * @return The reservationAffinity. - */ - @java.lang.Override - public com.google.container.v1.ReservationAffinity getReservationAffinity() { - return reservationAffinity_ == null ? com.google.container.v1.ReservationAffinity.getDefaultInstance() : reservationAffinity_; - } - /** - *
-   * The optional reservation affinity. Setting this field will apply
-   * the specified [Zonal Compute
-   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-   * to this node pool.
-   * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - */ - @java.lang.Override - public com.google.container.v1.ReservationAffinityOrBuilder getReservationAffinityOrBuilder() { - return getReservationAffinity(); - } - - public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 20; - private com.google.container.v1.ShieldedInstanceConfig shieldedInstanceConfig_; - /** - *
-   * 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 shieldedInstanceConfig_ != null; - } - /** - *
-   * 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 getShieldedInstanceConfig(); - } - - public static final int LINUX_NODE_CONFIG_FIELD_NUMBER = 21; - private com.google.container.v1.LinuxNodeConfig linuxNodeConfig_; - /** - *
-   * Parameters that can be configured on Linux nodes.
-   * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 21; - * @return Whether the linuxNodeConfig field is set. - */ - @java.lang.Override - public boolean hasLinuxNodeConfig() { - return linuxNodeConfig_ != null; - } - /** - *
-   * Parameters that can be configured on Linux nodes.
-   * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 21; - * @return The linuxNodeConfig. - */ - @java.lang.Override - public com.google.container.v1.LinuxNodeConfig getLinuxNodeConfig() { - return linuxNodeConfig_ == null ? com.google.container.v1.LinuxNodeConfig.getDefaultInstance() : linuxNodeConfig_; - } - /** - *
-   * Parameters that can be configured on Linux nodes.
-   * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 21; - */ - @java.lang.Override - public com.google.container.v1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder() { - return getLinuxNodeConfig(); - } - - public static final int KUBELET_CONFIG_FIELD_NUMBER = 22; - private com.google.container.v1.NodeKubeletConfig kubeletConfig_; - /** - *
-   * Node kubelet configs.
-   * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 22; - * @return Whether the kubeletConfig field is set. - */ - @java.lang.Override - public boolean hasKubeletConfig() { - return kubeletConfig_ != null; - } - /** - *
-   * Node kubelet configs.
-   * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 22; - * @return The kubeletConfig. - */ - @java.lang.Override - public com.google.container.v1.NodeKubeletConfig getKubeletConfig() { - return kubeletConfig_ == null ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() : kubeletConfig_; - } - /** - *
-   * Node kubelet configs.
-   * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 22; - */ - @java.lang.Override - public com.google.container.v1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder() { - return getKubeletConfig(); - } - - public static final int BOOT_DISK_KMS_KEY_FIELD_NUMBER = 23; - private volatile java.lang.Object bootDiskKmsKey_; - /** - *
-   * 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 gcfsConfig_ != null; - } - /** - *
-   * Google Container File System (image streaming) configs.
-   * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 25; - * @return The gcfsConfig. - */ - @java.lang.Override - public com.google.container.v1.GcfsConfig getGcfsConfig() { - return gcfsConfig_ == null ? com.google.container.v1.GcfsConfig.getDefaultInstance() : gcfsConfig_; - } - /** - *
-   * Google Container File System (image streaming) configs.
-   * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 25; - */ - @java.lang.Override - public com.google.container.v1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { - return getGcfsConfig(); - } - - public static final int ADVANCED_MACHINE_FEATURES_FIELD_NUMBER = 26; - private com.google.container.v1.AdvancedMachineFeatures advancedMachineFeatures_; - /** - *
-   * Advanced features for the Compute Engine VM.
-   * 
- * - * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; - * @return Whether the advancedMachineFeatures field is set. - */ - @java.lang.Override - public boolean hasAdvancedMachineFeatures() { - return advancedMachineFeatures_ != null; - } - /** - *
-   * Advanced features for the Compute Engine VM.
-   * 
- * - * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; - * @return The advancedMachineFeatures. - */ - @java.lang.Override - public com.google.container.v1.AdvancedMachineFeatures getAdvancedMachineFeatures() { - return advancedMachineFeatures_ == null ? com.google.container.v1.AdvancedMachineFeatures.getDefaultInstance() : advancedMachineFeatures_; - } - /** - *
-   * Advanced features for the Compute Engine VM.
-   * 
- * - * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; - */ - @java.lang.Override - public com.google.container.v1.AdvancedMachineFeaturesOrBuilder getAdvancedMachineFeaturesOrBuilder() { - return getAdvancedMachineFeatures(); - } - - public static final int GVNIC_FIELD_NUMBER = 29; - private com.google.container.v1.VirtualNIC gvnic_; - /** - *
-   * Enable or disable gvnic in the node pool.
-   * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - * @return Whether the gvnic field is set. - */ - @java.lang.Override - public boolean hasGvnic() { - return gvnic_ != null; - } - /** - *
-   * Enable or disable gvnic in the node pool.
-   * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - * @return The gvnic. - */ - @java.lang.Override - public com.google.container.v1.VirtualNIC getGvnic() { - return gvnic_ == null ? com.google.container.v1.VirtualNIC.getDefaultInstance() : gvnic_; - } - /** - *
-   * Enable or disable gvnic in the node pool.
-   * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - */ - @java.lang.Override - public com.google.container.v1.VirtualNICOrBuilder getGvnicOrBuilder() { - return getGvnic(); - } - - public static final int SPOT_FIELD_NUMBER = 32; - private boolean spot_; - /** - *
-   * Spot flag for enabling Spot VM, which is a rebrand of
-   * the existing preemptible flag.
-   * 
- * - * bool spot = 32; - * @return The spot. - */ - @java.lang.Override - public boolean getSpot() { - return spot_; - } - - 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 confidentialNodes_ != null; - } - /** - *
-   * 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 getConfidentialNodes(); - } - - 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, - ""); - } - 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 java.lang.String getResourceLabelsOrDefault( - java.lang.String key, - 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 loggingConfig_ != null; - } - /** - *
-   * 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 getLoggingConfig(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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 (workloadMetadataConfig_ != null) { - output.writeMessage(14, getWorkloadMetadataConfig()); - } - for (int i = 0; i < taints_.size(); i++) { - output.writeMessage(15, taints_.get(i)); - } - if (sandboxConfig_ != null) { - output.writeMessage(17, getSandboxConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeGroup_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 18, nodeGroup_); - } - if (reservationAffinity_ != null) { - output.writeMessage(19, getReservationAffinity()); - } - if (shieldedInstanceConfig_ != null) { - output.writeMessage(20, getShieldedInstanceConfig()); - } - if (linuxNodeConfig_ != null) { - output.writeMessage(21, getLinuxNodeConfig()); - } - if (kubeletConfig_ != null) { - output.writeMessage(22, getKubeletConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootDiskKmsKey_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 23, bootDiskKmsKey_); - } - if (gcfsConfig_ != null) { - output.writeMessage(25, getGcfsConfig()); - } - if (advancedMachineFeatures_ != null) { - output.writeMessage(26, getAdvancedMachineFeatures()); - } - if (gvnic_ != null) { - output.writeMessage(29, getGvnic()); - } - if (spot_ != false) { - output.writeBool(32, spot_); - } - if (confidentialNodes_ != null) { - output.writeMessage(35, getConfidentialNodes()); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetResourceLabels(), - ResourceLabelsDefaultEntryHolder.defaultEntry, - 37); - if (loggingConfig_ != null) { - output.writeMessage(38, getLoggingConfig()); - } - getUnknownFields().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 (workloadMetadataConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getWorkloadMetadataConfig()); - } - for (int i = 0; i < taints_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, taints_.get(i)); - } - if (sandboxConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getSandboxConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeGroup_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, nodeGroup_); - } - if (reservationAffinity_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, getReservationAffinity()); - } - if (shieldedInstanceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, getShieldedInstanceConfig()); - } - if (linuxNodeConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, getLinuxNodeConfig()); - } - if (kubeletConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, getKubeletConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootDiskKmsKey_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, bootDiskKmsKey_); - } - if (gcfsConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(25, getGcfsConfig()); - } - if (advancedMachineFeatures_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(26, getAdvancedMachineFeatures()); - } - if (gvnic_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(29, getGvnic()); - } - if (spot_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(32, spot_); - } - if (confidentialNodes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(35, getConfidentialNodes()); - } - 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 (loggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(38, 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.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 (!internalGetResourceLabels().equals( - other.internalGetResourceLabels())) 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(); - 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 (!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(); - } - 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.MapField internalGetMapField( - 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.MapField internalGetMutableMapField( - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - machineType_ = ""; - - diskSizeGb_ = 0; - - oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - serviceAccount_ = ""; - - internalGetMutableMetadata().clear(); - imageType_ = ""; - - internalGetMutableLabels().clear(); - localSsdCount_ = 0; - - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - preemptible_ = false; - - if (acceleratorsBuilder_ == null) { - accelerators_ = java.util.Collections.emptyList(); - } else { - accelerators_ = null; - acceleratorsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - diskType_ = ""; - - minCpuPlatform_ = ""; - - if (workloadMetadataConfigBuilder_ == null) { - workloadMetadataConfig_ = null; - } else { - workloadMetadataConfig_ = null; - workloadMetadataConfigBuilder_ = null; - } - if (taintsBuilder_ == null) { - taints_ = java.util.Collections.emptyList(); - } else { - taints_ = null; - taintsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - if (sandboxConfigBuilder_ == null) { - sandboxConfig_ = null; - } else { - sandboxConfig_ = null; - sandboxConfigBuilder_ = null; - } - nodeGroup_ = ""; - - if (reservationAffinityBuilder_ == null) { - reservationAffinity_ = null; - } else { - reservationAffinity_ = null; - reservationAffinityBuilder_ = null; - } - if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfig_ = null; - } else { - shieldedInstanceConfig_ = null; - shieldedInstanceConfigBuilder_ = null; - } - if (linuxNodeConfigBuilder_ == null) { - linuxNodeConfig_ = null; - } else { - linuxNodeConfig_ = null; - linuxNodeConfigBuilder_ = null; - } - if (kubeletConfigBuilder_ == null) { - kubeletConfig_ = null; - } else { - kubeletConfig_ = null; - kubeletConfigBuilder_ = null; - } - bootDiskKmsKey_ = ""; - - if (gcfsConfigBuilder_ == null) { - gcfsConfig_ = null; - } else { - gcfsConfig_ = null; - gcfsConfigBuilder_ = null; - } - if (advancedMachineFeaturesBuilder_ == null) { - advancedMachineFeatures_ = null; - } else { - advancedMachineFeatures_ = null; - advancedMachineFeaturesBuilder_ = null; - } - if (gvnicBuilder_ == null) { - gvnic_ = null; - } else { - gvnic_ = null; - gvnicBuilder_ = null; - } - spot_ = false; - - if (confidentialNodesBuilder_ == null) { - confidentialNodes_ = null; - } else { - confidentialNodes_ = null; - confidentialNodesBuilder_ = null; - } - internalGetMutableResourceLabels().clear(); - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - } else { - loggingConfig_ = null; - 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_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); - int from_bitField0_ = bitField0_; - result.machineType_ = machineType_; - result.diskSizeGb_ = diskSizeGb_; - if (((bitField0_ & 0x00000001) != 0)) { - oauthScopes_ = oauthScopes_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.oauthScopes_ = oauthScopes_; - result.serviceAccount_ = serviceAccount_; - result.metadata_ = internalGetMetadata(); - result.metadata_.makeImmutable(); - result.imageType_ = imageType_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - result.localSsdCount_ = localSsdCount_; - if (((bitField0_ & 0x00000008) != 0)) { - tags_ = tags_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.tags_ = tags_; - result.preemptible_ = preemptible_; - if (acceleratorsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - accelerators_ = java.util.Collections.unmodifiableList(accelerators_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.accelerators_ = accelerators_; - } else { - result.accelerators_ = acceleratorsBuilder_.build(); - } - result.diskType_ = diskType_; - result.minCpuPlatform_ = minCpuPlatform_; - if (workloadMetadataConfigBuilder_ == null) { - result.workloadMetadataConfig_ = workloadMetadataConfig_; - } else { - result.workloadMetadataConfig_ = workloadMetadataConfigBuilder_.build(); - } - if (taintsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - taints_ = java.util.Collections.unmodifiableList(taints_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.taints_ = taints_; - } else { - result.taints_ = taintsBuilder_.build(); - } - if (sandboxConfigBuilder_ == null) { - result.sandboxConfig_ = sandboxConfig_; - } else { - result.sandboxConfig_ = sandboxConfigBuilder_.build(); - } - result.nodeGroup_ = nodeGroup_; - if (reservationAffinityBuilder_ == null) { - result.reservationAffinity_ = reservationAffinity_; - } else { - result.reservationAffinity_ = reservationAffinityBuilder_.build(); - } - if (shieldedInstanceConfigBuilder_ == null) { - result.shieldedInstanceConfig_ = shieldedInstanceConfig_; - } else { - result.shieldedInstanceConfig_ = shieldedInstanceConfigBuilder_.build(); - } - if (linuxNodeConfigBuilder_ == null) { - result.linuxNodeConfig_ = linuxNodeConfig_; - } else { - result.linuxNodeConfig_ = linuxNodeConfigBuilder_.build(); - } - if (kubeletConfigBuilder_ == null) { - result.kubeletConfig_ = kubeletConfig_; - } else { - result.kubeletConfig_ = kubeletConfigBuilder_.build(); - } - result.bootDiskKmsKey_ = bootDiskKmsKey_; - if (gcfsConfigBuilder_ == null) { - result.gcfsConfig_ = gcfsConfig_; - } else { - result.gcfsConfig_ = gcfsConfigBuilder_.build(); - } - if (advancedMachineFeaturesBuilder_ == null) { - result.advancedMachineFeatures_ = advancedMachineFeatures_; - } else { - result.advancedMachineFeatures_ = advancedMachineFeaturesBuilder_.build(); - } - if (gvnicBuilder_ == null) { - result.gvnic_ = gvnic_; - } else { - result.gvnic_ = gvnicBuilder_.build(); - } - result.spot_ = spot_; - if (confidentialNodesBuilder_ == null) { - result.confidentialNodes_ = confidentialNodes_; - } else { - result.confidentialNodes_ = confidentialNodesBuilder_.build(); - } - result.resourceLabels_ = internalGetResourceLabels(); - result.resourceLabels_.makeImmutable(); - if (loggingConfigBuilder_ == null) { - result.loggingConfig_ = loggingConfig_; - } else { - result.loggingConfig_ = loggingConfigBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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_; - onChanged(); - } - if (other.getDiskSizeGb() != 0) { - setDiskSizeGb(other.getDiskSizeGb()); - } - if (!other.oauthScopes_.isEmpty()) { - if (oauthScopes_.isEmpty()) { - oauthScopes_ = other.oauthScopes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureOauthScopesIsMutable(); - oauthScopes_.addAll(other.oauthScopes_); - } - onChanged(); - } - if (!other.getServiceAccount().isEmpty()) { - serviceAccount_ = other.serviceAccount_; - onChanged(); - } - internalGetMutableMetadata().mergeFrom( - other.internalGetMetadata()); - if (!other.getImageType().isEmpty()) { - imageType_ = other.imageType_; - onChanged(); - } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); - if (other.getLocalSsdCount() != 0) { - setLocalSsdCount(other.getLocalSsdCount()); - } - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); - } - onChanged(); - } - if (other.getPreemptible() != false) { - setPreemptible(other.getPreemptible()); - } - if (acceleratorsBuilder_ == null) { - if (!other.accelerators_.isEmpty()) { - if (accelerators_.isEmpty()) { - accelerators_ = other.accelerators_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureAcceleratorsIsMutable(); - accelerators_.addAll(other.accelerators_); - } - onChanged(); - } - } else { - if (!other.accelerators_.isEmpty()) { - if (acceleratorsBuilder_.isEmpty()) { - acceleratorsBuilder_.dispose(); - acceleratorsBuilder_ = null; - accelerators_ = other.accelerators_; - bitField0_ = (bitField0_ & ~0x00000010); - acceleratorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAcceleratorsFieldBuilder() : null; - } else { - acceleratorsBuilder_.addAllMessages(other.accelerators_); - } - } - } - if (!other.getDiskType().isEmpty()) { - diskType_ = other.diskType_; - onChanged(); - } - if (!other.getMinCpuPlatform().isEmpty()) { - minCpuPlatform_ = other.minCpuPlatform_; - onChanged(); - } - if (other.hasWorkloadMetadataConfig()) { - mergeWorkloadMetadataConfig(other.getWorkloadMetadataConfig()); - } - if (taintsBuilder_ == null) { - if (!other.taints_.isEmpty()) { - if (taints_.isEmpty()) { - taints_ = other.taints_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureTaintsIsMutable(); - taints_.addAll(other.taints_); - } - onChanged(); - } - } else { - if (!other.taints_.isEmpty()) { - if (taintsBuilder_.isEmpty()) { - taintsBuilder_.dispose(); - taintsBuilder_ = null; - taints_ = other.taints_; - bitField0_ = (bitField0_ & ~0x00000020); - taintsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTaintsFieldBuilder() : null; - } else { - taintsBuilder_.addAllMessages(other.taints_); - } - } - } - if (other.hasSandboxConfig()) { - mergeSandboxConfig(other.getSandboxConfig()); - } - if (!other.getNodeGroup().isEmpty()) { - nodeGroup_ = other.nodeGroup_; - onChanged(); - } - if (other.hasReservationAffinity()) { - mergeReservationAffinity(other.getReservationAffinity()); - } - if (other.hasShieldedInstanceConfig()) { - mergeShieldedInstanceConfig(other.getShieldedInstanceConfig()); - } - if (other.hasLinuxNodeConfig()) { - mergeLinuxNodeConfig(other.getLinuxNodeConfig()); - } - if (other.hasKubeletConfig()) { - mergeKubeletConfig(other.getKubeletConfig()); - } - if (!other.getBootDiskKmsKey().isEmpty()) { - bootDiskKmsKey_ = other.bootDiskKmsKey_; - onChanged(); - } - if (other.hasGcfsConfig()) { - mergeGcfsConfig(other.getGcfsConfig()); - } - if (other.hasAdvancedMachineFeatures()) { - mergeAdvancedMachineFeatures(other.getAdvancedMachineFeatures()); - } - if (other.hasGvnic()) { - mergeGvnic(other.getGvnic()); - } - if (other.getSpot() != false) { - setSpot(other.getSpot()); - } - if (other.hasConfidentialNodes()) { - mergeConfidentialNodes(other.getConfidentialNodes()); - } - internalGetMutableResourceLabels().mergeFrom( - other.internalGetResourceLabels()); - 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: { - machineType_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - diskSizeGb_ = input.readInt32(); - - 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()); - break; - } // case 34 - case 42: { - imageType_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } // case 50 - case 56: { - localSsdCount_ = input.readInt32(); - - break; - } // case 56 - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - ensureTagsIsMutable(); - tags_.add(s); - break; - } // case 66 - case 74: { - serviceAccount_ = input.readStringRequireUtf8(); - - break; - } // case 74 - case 80: { - preemptible_ = input.readBool(); - - 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(); - - break; - } // case 98 - case 106: { - minCpuPlatform_ = input.readStringRequireUtf8(); - - break; - } // case 106 - case 114: { - input.readMessage( - getWorkloadMetadataConfigFieldBuilder().getBuilder(), - extensionRegistry); - - 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); - - break; - } // case 138 - case 146: { - nodeGroup_ = input.readStringRequireUtf8(); - - break; - } // case 146 - case 154: { - input.readMessage( - getReservationAffinityFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 154 - case 162: { - input.readMessage( - getShieldedInstanceConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 162 - case 170: { - input.readMessage( - getLinuxNodeConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 170 - case 178: { - input.readMessage( - getKubeletConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 178 - case 186: { - bootDiskKmsKey_ = input.readStringRequireUtf8(); - - break; - } // case 186 - case 202: { - input.readMessage( - getGcfsConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 202 - case 210: { - input.readMessage( - getAdvancedMachineFeaturesFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 210 - case 234: { - input.readMessage( - getGvnicFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 234 - case 256: { - spot_ = input.readBool(); - - break; - } // case 256 - case 282: { - input.readMessage( - getConfidentialNodesFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 282 - case 298: { - com.google.protobuf.MapEntry - resourceLabels__ = input.readMessage( - ResourceLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableResourceLabels().getMutableMap().put( - resourceLabels__.getKey(), resourceLabels__.getValue()); - break; - } // case 298 - case 306: { - input.readMessage( - getLoggingConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 306 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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 machineType_ = ""; - /** - *
-     * The name of a Google Compute Engine [machine
-     * type](https://cloud.google.com/compute/docs/machine-types)
-     * If unspecified, the default machine type is `e2-medium`.
-     * 
- * - * string machine_type = 1; - * @return The machineType. - */ - public java.lang.String getMachineType() { - java.lang.Object ref = machineType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - machineType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name of a Google Compute Engine [machine
-     * type](https://cloud.google.com/compute/docs/machine-types)
-     * If unspecified, the default machine type is `e2-medium`.
-     * 
- * - * string machine_type = 1; - * @return The bytes for machineType. - */ - public com.google.protobuf.ByteString - getMachineTypeBytes() { - java.lang.Object ref = machineType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - machineType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name of a Google Compute Engine [machine
-     * type](https://cloud.google.com/compute/docs/machine-types)
-     * If unspecified, the default machine type is `e2-medium`.
-     * 
- * - * string machine_type = 1; - * @param value The machineType to set. - * @return This builder for chaining. - */ - public Builder setMachineType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - machineType_ = value; - onChanged(); - return this; - } - /** - *
-     * The name of a Google Compute Engine [machine
-     * type](https://cloud.google.com/compute/docs/machine-types)
-     * If unspecified, the default machine type is `e2-medium`.
-     * 
- * - * string machine_type = 1; - * @return This builder for chaining. - */ - public Builder clearMachineType() { - - machineType_ = getDefaultInstance().getMachineType(); - onChanged(); - return this; - } - /** - *
-     * The name of a Google Compute Engine [machine
-     * type](https://cloud.google.com/compute/docs/machine-types)
-     * If unspecified, the default machine type is `e2-medium`.
-     * 
- * - * string machine_type = 1; - * @param value The bytes for machineType to set. - * @return This builder for chaining. - */ - public Builder setMachineTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - machineType_ = value; - onChanged(); - return this; - } - - private int diskSizeGb_ ; - /** - *
-     * Size of the disk attached to each node, specified in GB.
-     * The smallest allowed disk size is 10GB.
-     * If unspecified, the default disk size is 100GB.
-     * 
- * - * int32 disk_size_gb = 2; - * @return The diskSizeGb. - */ - @java.lang.Override - public int getDiskSizeGb() { - return diskSizeGb_; - } - /** - *
-     * Size of the disk attached to each node, specified in GB.
-     * The smallest allowed disk size is 10GB.
-     * If unspecified, the default disk size is 100GB.
-     * 
- * - * int32 disk_size_gb = 2; - * @param value The diskSizeGb to set. - * @return This builder for chaining. - */ - public Builder setDiskSizeGb(int value) { - - diskSizeGb_ = value; - onChanged(); - return this; - } - /** - *
-     * Size of the disk attached to each node, specified in GB.
-     * The smallest allowed disk size is 10GB.
-     * If unspecified, the default disk size is 100GB.
-     * 
- * - * int32 disk_size_gb = 2; - * @return This builder for chaining. - */ - public Builder clearDiskSizeGb() { - - diskSizeGb_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureOauthScopesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - oauthScopes_ = new com.google.protobuf.LazyStringArrayList(oauthScopes_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](https://cloud.google.com/container-registry/)).
-     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-     * Monitoring are enabled, in which case their required scopes will be added.
-     * 
- * - * repeated string oauth_scopes = 3; - * @return A list containing the oauthScopes. - */ - public com.google.protobuf.ProtocolStringList - getOauthScopesList() { - return oauthScopes_.getUnmodifiableView(); - } - /** - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](https://cloud.google.com/container-registry/)).
-     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-     * Monitoring are enabled, in which case their required scopes will be added.
-     * 
- * - * repeated string oauth_scopes = 3; - * @return The count of oauthScopes. - */ - public int getOauthScopesCount() { - return oauthScopes_.size(); - } - /** - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](https://cloud.google.com/container-registry/)).
-     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-     * Monitoring are enabled, in which case their required scopes will be added.
-     * 
- * - * repeated string oauth_scopes = 3; - * @param index The index of the element to return. - * @return The oauthScopes at the given index. - */ - public java.lang.String getOauthScopes(int index) { - return oauthScopes_.get(index); - } - /** - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](https://cloud.google.com/container-registry/)).
-     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-     * Monitoring are enabled, in which case their required scopes will be added.
-     * 
- * - * repeated string oauth_scopes = 3; - * @param index The index of the value to return. - * @return The bytes of the oauthScopes at the given index. - */ - public com.google.protobuf.ByteString - getOauthScopesBytes(int index) { - return oauthScopes_.getByteString(index); - } - /** - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](https://cloud.google.com/container-registry/)).
-     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-     * Monitoring are enabled, in which case their required scopes will be added.
-     * 
- * - * repeated string oauth_scopes = 3; - * @param index The index to set the value at. - * @param value The oauthScopes to set. - * @return This builder for chaining. - */ - public Builder setOauthScopes( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureOauthScopesIsMutable(); - oauthScopes_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](https://cloud.google.com/container-registry/)).
-     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-     * Monitoring are enabled, in which case their required scopes will be added.
-     * 
- * - * repeated string oauth_scopes = 3; - * @param value The oauthScopes to add. - * @return This builder for chaining. - */ - public Builder addOauthScopes( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureOauthScopesIsMutable(); - oauthScopes_.add(value); - onChanged(); - return this; - } - /** - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](https://cloud.google.com/container-registry/)).
-     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-     * Monitoring are enabled, in which case their required scopes will be added.
-     * 
- * - * repeated string oauth_scopes = 3; - * @param values The oauthScopes to add. - * @return This builder for chaining. - */ - public Builder addAllOauthScopes( - java.lang.Iterable values) { - ensureOauthScopesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, oauthScopes_); - onChanged(); - return this; - } - /** - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](https://cloud.google.com/container-registry/)).
-     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-     * Monitoring are enabled, in which case their required scopes will be added.
-     * 
- * - * repeated string oauth_scopes = 3; - * @return This builder for chaining. - */ - public Builder clearOauthScopes() { - oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](https://cloud.google.com/container-registry/)).
-     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-     * Monitoring are enabled, in which case their required scopes will be added.
-     * 
- * - * repeated string oauth_scopes = 3; - * @param value The bytes of the oauthScopes to add. - * @return This builder for chaining. - */ - public Builder addOauthScopesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureOauthScopesIsMutable(); - oauthScopes_.add(value); - onChanged(); - return this; - } - - private java.lang.Object serviceAccount_ = ""; - /** - *
-     * The Google Cloud Platform Service Account to be used by the node VMs.
-     * Specify the email address of the Service Account; otherwise, if no Service
-     * Account is specified, the "default" service account is used.
-     * 
- * - * string service_account = 9; - * @return The serviceAccount. - */ - public java.lang.String getServiceAccount() { - java.lang.Object ref = serviceAccount_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceAccount_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The Google Cloud Platform Service Account to be used by the node VMs.
-     * Specify the email address of the Service Account; otherwise, if no Service
-     * Account is specified, the "default" service account is used.
-     * 
- * - * string service_account = 9; - * @return The bytes for serviceAccount. - */ - public com.google.protobuf.ByteString - getServiceAccountBytes() { - java.lang.Object ref = serviceAccount_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serviceAccount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The Google Cloud Platform Service Account to be used by the node VMs.
-     * Specify the email address of the Service Account; otherwise, if no Service
-     * Account is specified, the "default" service account is used.
-     * 
- * - * string service_account = 9; - * @param value The serviceAccount to set. - * @return This builder for chaining. - */ - public Builder setServiceAccount( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - serviceAccount_ = value; - onChanged(); - return this; - } - /** - *
-     * The Google Cloud Platform Service Account to be used by the node VMs.
-     * Specify the email address of the Service Account; otherwise, if no Service
-     * Account is specified, the "default" service account is used.
-     * 
- * - * string service_account = 9; - * @return This builder for chaining. - */ - public Builder clearServiceAccount() { - - serviceAccount_ = getDefaultInstance().getServiceAccount(); - onChanged(); - return this; - } - /** - *
-     * The Google Cloud Platform Service Account to be used by the node VMs.
-     * Specify the email address of the Service Account; otherwise, if no Service
-     * Account is specified, the "default" service account is used.
-     * 
- * - * string service_account = 9; - * @param value The bytes for serviceAccount to set. - * @return This builder for chaining. - */ - public Builder setServiceAccountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - serviceAccount_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> metadata_; - private com.google.protobuf.MapField - internalGetMetadata() { - if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MetadataDefaultEntryHolder.defaultEntry); - } - return metadata_; - } - private com.google.protobuf.MapField - internalGetMutableMetadata() { - onChanged();; - if (metadata_ == null) { - metadata_ = com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); - } - if (!metadata_.isMutable()) { - metadata_ = metadata_.copy(); - } - return metadata_; - } - - public int getMetadataCount() { - return internalGetMetadata().getMap().size(); - } - /** - *
-     * The metadata key/value pairs assigned to instances in the cluster.
-     * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
-     * in length. These are reflected as part of a URL in the metadata server.
-     * Additionally, to avoid ambiguity, keys must not conflict with any other
-     * metadata keys for the project or be one of the reserved keys:
-     *  - "cluster-location"
-     *  - "cluster-name"
-     *  - "cluster-uid"
-     *  - "configure-sh"
-     *  - "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 java.lang.String getMetadataOrDefault( - java.lang.String key, - 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() { - 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() { - 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); - 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); - return this; - } - - private java.lang.Object imageType_ = ""; - /** - *
-     * The image type to use for this node. Note that for a given image type,
-     * the latest version of it will be used.
-     * 
- * - * string image_type = 5; - * @return The imageType. - */ - public java.lang.String getImageType() { - java.lang.Object ref = imageType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - imageType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The image type to use for this node. Note that for a given image type,
-     * the latest version of it will be used.
-     * 
- * - * string image_type = 5; - * @return The bytes for imageType. - */ - public com.google.protobuf.ByteString - getImageTypeBytes() { - java.lang.Object ref = imageType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - imageType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The image type to use for this node. Note that for a given image type,
-     * the latest version of it will be used.
-     * 
- * - * string image_type = 5; - * @param value The imageType to set. - * @return This builder for chaining. - */ - public Builder setImageType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - imageType_ = value; - onChanged(); - return this; - } - /** - *
-     * The image type to use for this node. Note that for a given image type,
-     * the latest version of it will be used.
-     * 
- * - * string image_type = 5; - * @return This builder for chaining. - */ - public Builder clearImageType() { - - imageType_ = getDefaultInstance().getImageType(); - onChanged(); - return this; - } - /** - *
-     * The image type to use for this node. Note that for a given image type,
-     * the latest version of it will be used.
-     * 
- * - * string image_type = 5; - * @param value The bytes for imageType to set. - * @return This builder for chaining. - */ - public Builder setImageTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - imageType_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - *
-     * The map of Kubernetes labels (key/value pairs) to be applied to each node.
-     * These will added in addition to any default label(s) that
-     * Kubernetes may apply to the node.
-     * In case of conflict in label keys, the applied set may differ depending on
-     * the Kubernetes version -- it's best to assume the behavior is undefined
-     * and conflicts should be avoided.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-     * 
- * - * map<string, string> labels = 6; - */ - - @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 java.lang.String getLabelsOrDefault( - java.lang.String key, - 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() { - 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() { - 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); - return this; - } - /** - *
-     * The map of Kubernetes labels (key/value pairs) to be applied to each node.
-     * These will added in addition to any default label(s) that
-     * Kubernetes may apply to the node.
-     * In case of conflict in label keys, the applied set may differ depending on
-     * the Kubernetes version -- it's best to assume the behavior is undefined
-     * and conflicts should be avoided.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-     * 
- * - * map<string, string> labels = 6; - */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); - return this; - } - - private int localSsdCount_ ; - /** - *
-     * The number of local SSD disks to be attached to the node.
-     * The limit for this value is dependent upon the maximum number of
-     * disks available on a machine per zone. See:
-     * https://cloud.google.com/compute/docs/disks/local-ssd
-     * for more information.
-     * 
- * - * int32 local_ssd_count = 7; - * @return The localSsdCount. - */ - @java.lang.Override - public int getLocalSsdCount() { - return localSsdCount_; - } - /** - *
-     * The number of local SSD disks to be attached to the node.
-     * The limit for this value is dependent upon the maximum number of
-     * disks available on a machine per zone. See:
-     * https://cloud.google.com/compute/docs/disks/local-ssd
-     * for more information.
-     * 
- * - * int32 local_ssd_count = 7; - * @param value The localSsdCount to set. - * @return This builder for chaining. - */ - public Builder setLocalSsdCount(int value) { - - localSsdCount_ = value; - onChanged(); - return this; - } - /** - *
-     * The number of local SSD disks to be attached to the node.
-     * The limit for this value is dependent upon the maximum number of
-     * disks available on a machine per zone. See:
-     * https://cloud.google.com/compute/docs/disks/local-ssd
-     * for more information.
-     * 
- * - * int32 local_ssd_count = 7; - * @return This builder for chaining. - */ - public Builder clearLocalSsdCount() { - - localSsdCount_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTagsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - tags_ = new com.google.protobuf.LazyStringArrayList(tags_); - bitField0_ |= 0x00000008; - } - } - /** - *
-     * The list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * @return A list containing the tags. - */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_.getUnmodifiableView(); - } - /** - *
-     * The list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * @return The count of tags. - */ - public int getTagsCount() { - return tags_.size(); - } - /** - *
-     * The list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * @param index The index of the element to return. - * @return The tags at the given index. - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - *
-     * The list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(index); - } - /** - *
-     * The list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * @param index The index to set the value at. - * @param value The tags to set. - * @return This builder for chaining. - */ - public Builder setTags( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * The list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * @param value The tags to add. - * @return This builder for chaining. - */ - public Builder addTags( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; - } - /** - *
-     * The list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * @param values The tags to add. - * @return This builder for chaining. - */ - public Builder addAllTags( - java.lang.Iterable values) { - ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tags_); - onChanged(); - return this; - } - /** - *
-     * The list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * @return This builder for chaining. - */ - public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - *
-     * The list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * @param value The bytes of the tags to add. - * @return This builder for chaining. - */ - public Builder addTagsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; - } - - private boolean preemptible_ ; - /** - *
-     * Whether the nodes are created as preemptible VM instances. See:
-     * https://cloud.google.com/compute/docs/instances/preemptible for more
-     * 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; - 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() { - - preemptible_ = false; - onChanged(); - return this; - } - - private java.util.List accelerators_ = - java.util.Collections.emptyList(); - private void ensureAcceleratorsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - accelerators_ = new java.util.ArrayList(accelerators_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.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_ & ~0x00000010); - onChanged(); - } else { - acceleratorsBuilder_.clear(); - } - return this; - } - /** - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.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_ & 0x00000010) != 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; - onChanged(); - return this; - } - /** - *
-     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-     * 'pd-balanced')
-     * If unspecified, the default disk type is 'pd-standard'
-     * 
- * - * string disk_type = 12; - * @return This builder for chaining. - */ - public Builder clearDiskType() { - - diskType_ = getDefaultInstance().getDiskType(); - onChanged(); - return this; - } - /** - *
-     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-     * 'pd-balanced')
-     * If unspecified, the default disk type is 'pd-standard'
-     * 
- * - * string disk_type = 12; - * @param value The bytes for diskType to set. - * @return This builder for chaining. - */ - public Builder setDiskTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - diskType_ = value; - onChanged(); - return this; - } - - private java.lang.Object minCpuPlatform_ = ""; - /** - *
-     * Minimum CPU platform to be used by this instance. The instance may be
-     * scheduled on the specified or newer CPU platform. Applicable values are the
-     * friendly names of CPU platforms, such as
-     * `minCpuPlatform: "Intel Haswell"` or
-     * `minCpuPlatform: "Intel Sandy Bridge"`. For more
-     * information, read [how to specify min CPU
-     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
-     * 
- * - * string min_cpu_platform = 13; - * @return The minCpuPlatform. - */ - public java.lang.String getMinCpuPlatform() { - java.lang.Object ref = minCpuPlatform_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - minCpuPlatform_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Minimum CPU platform to be used by this instance. The instance may be
-     * scheduled on the specified or newer CPU platform. Applicable values are the
-     * friendly names of CPU platforms, such as
-     * `minCpuPlatform: "Intel Haswell"` or
-     * `minCpuPlatform: "Intel Sandy Bridge"`. For more
-     * information, read [how to specify min CPU
-     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
-     * 
- * - * string min_cpu_platform = 13; - * @return The bytes for minCpuPlatform. - */ - public com.google.protobuf.ByteString - getMinCpuPlatformBytes() { - java.lang.Object ref = minCpuPlatform_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - minCpuPlatform_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Minimum CPU platform to be used by this instance. The instance may be
-     * scheduled on the specified or newer CPU platform. Applicable values are the
-     * friendly names of CPU platforms, such as
-     * `minCpuPlatform: "Intel Haswell"` or
-     * `minCpuPlatform: "Intel Sandy Bridge"`. For more
-     * information, read [how to specify min CPU
-     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
-     * 
- * - * string min_cpu_platform = 13; - * @param value The minCpuPlatform to set. - * @return This builder for chaining. - */ - public Builder setMinCpuPlatform( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - minCpuPlatform_ = value; - onChanged(); - return this; - } - /** - *
-     * Minimum CPU platform to be used by this instance. The instance may be
-     * scheduled on the specified or newer CPU platform. Applicable values are the
-     * friendly names of CPU platforms, such as
-     * `minCpuPlatform: "Intel Haswell"` or
-     * `minCpuPlatform: "Intel Sandy Bridge"`. For more
-     * information, read [how to specify min CPU
-     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
-     * 
- * - * string min_cpu_platform = 13; - * @return This builder for chaining. - */ - public Builder clearMinCpuPlatform() { - - minCpuPlatform_ = getDefaultInstance().getMinCpuPlatform(); - onChanged(); - return this; - } - /** - *
-     * Minimum CPU platform to be used by this instance. The instance may be
-     * scheduled on the specified or newer CPU platform. Applicable values are the
-     * friendly names of CPU platforms, such as
-     * `minCpuPlatform: "Intel Haswell"` or
-     * `minCpuPlatform: "Intel Sandy Bridge"`. For more
-     * information, read [how to specify min CPU
-     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
-     * 
- * - * string min_cpu_platform = 13; - * @param value The bytes for minCpuPlatform to set. - * @return This builder for chaining. - */ - public Builder setMinCpuPlatformBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - minCpuPlatform_ = value; - onChanged(); - return this; - } - - private com.google.container.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 workloadMetadataConfigBuilder_ != null || workloadMetadataConfig_ != null; - } - /** - *
-     * The workload metadata configuration for this node.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * @return The workloadMetadataConfig. - */ - public com.google.container.v1.WorkloadMetadataConfig getWorkloadMetadataConfig() { - if (workloadMetadataConfigBuilder_ == null) { - return workloadMetadataConfig_ == null ? com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() : workloadMetadataConfig_; - } else { - return workloadMetadataConfigBuilder_.getMessage(); - } - } - /** - *
-     * The workload metadata configuration for this node.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public Builder setWorkloadMetadataConfig(com.google.container.v1.WorkloadMetadataConfig value) { - if (workloadMetadataConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workloadMetadataConfig_ = value; - onChanged(); - } else { - workloadMetadataConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The workload metadata configuration for this node.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public Builder setWorkloadMetadataConfig( - com.google.container.v1.WorkloadMetadataConfig.Builder builderForValue) { - if (workloadMetadataConfigBuilder_ == null) { - workloadMetadataConfig_ = builderForValue.build(); - onChanged(); - } else { - workloadMetadataConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The workload metadata configuration for this node.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public Builder mergeWorkloadMetadataConfig(com.google.container.v1.WorkloadMetadataConfig value) { - if (workloadMetadataConfigBuilder_ == null) { - if (workloadMetadataConfig_ != null) { - workloadMetadataConfig_ = - com.google.container.v1.WorkloadMetadataConfig.newBuilder(workloadMetadataConfig_).mergeFrom(value).buildPartial(); - } else { - workloadMetadataConfig_ = value; - } - onChanged(); - } else { - workloadMetadataConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The workload metadata configuration for this node.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public Builder clearWorkloadMetadataConfig() { - if (workloadMetadataConfigBuilder_ == null) { - workloadMetadataConfig_ = null; - onChanged(); - } else { - workloadMetadataConfig_ = null; - workloadMetadataConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * The workload metadata configuration for this node.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public com.google.container.v1.WorkloadMetadataConfig.Builder getWorkloadMetadataConfigBuilder() { - - onChanged(); - return getWorkloadMetadataConfigFieldBuilder().getBuilder(); - } - /** - *
-     * The workload metadata configuration for this node.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public com.google.container.v1.WorkloadMetadataConfigOrBuilder getWorkloadMetadataConfigOrBuilder() { - if (workloadMetadataConfigBuilder_ != null) { - return workloadMetadataConfigBuilder_.getMessageOrBuilder(); - } else { - return workloadMetadataConfig_ == null ? - com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() : workloadMetadataConfig_; - } - } - /** - *
-     * The workload metadata configuration for this node.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadMetadataConfig, com.google.container.v1.WorkloadMetadataConfig.Builder, com.google.container.v1.WorkloadMetadataConfigOrBuilder> - getWorkloadMetadataConfigFieldBuilder() { - if (workloadMetadataConfigBuilder_ == null) { - workloadMetadataConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadMetadataConfig, com.google.container.v1.WorkloadMetadataConfig.Builder, com.google.container.v1.WorkloadMetadataConfigOrBuilder>( - getWorkloadMetadataConfig(), - getParentForChildren(), - isClean()); - workloadMetadataConfig_ = null; - } - return workloadMetadataConfigBuilder_; - } - - private java.util.List taints_ = - java.util.Collections.emptyList(); - private void ensureTaintsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - taints_ = new java.util.ArrayList(taints_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.NodeTaint, com.google.container.v1.NodeTaint.Builder, com.google.container.v1.NodeTaintOrBuilder> taintsBuilder_; - - /** - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 15; - */ - public java.util.List getTaintsList() { - if (taintsBuilder_ == null) { - return java.util.Collections.unmodifiableList(taints_); - } else { - 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_ & ~0x00000020); - onChanged(); - } else { - taintsBuilder_.clear(); - } - return this; - } - /** - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.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_ & 0x00000020) != 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 sandboxConfigBuilder_ != null || sandboxConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - sandboxConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - sandboxConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (sandboxConfig_ != null) { - sandboxConfig_ = - com.google.container.v1.SandboxConfig.newBuilder(sandboxConfig_).mergeFrom(value).buildPartial(); - } else { - sandboxConfig_ = value; - } - onChanged(); - } else { - sandboxConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Sandbox configuration for this node.
-     * 
- * - * .google.container.v1.SandboxConfig sandbox_config = 17; - */ - public Builder clearSandboxConfig() { - if (sandboxConfigBuilder_ == null) { - sandboxConfig_ = null; - onChanged(); - } else { - sandboxConfig_ = null; - sandboxConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Sandbox configuration for this node.
-     * 
- * - * .google.container.v1.SandboxConfig sandbox_config = 17; - */ - public com.google.container.v1.SandboxConfig.Builder getSandboxConfigBuilder() { - - 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; - onChanged(); - return this; - } - /** - *
-     * Setting this field will assign instances of this
-     * pool to run on the specified node group. This is useful for running
-     * workloads on [sole tenant
-     * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
-     * 
- * - * string node_group = 18; - * @return This builder for chaining. - */ - public Builder clearNodeGroup() { - - nodeGroup_ = getDefaultInstance().getNodeGroup(); - onChanged(); - return this; - } - /** - *
-     * Setting this field will assign instances of this
-     * pool to run on the specified node group. This is useful for running
-     * workloads on [sole tenant
-     * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
-     * 
- * - * string node_group = 18; - * @param value The bytes for nodeGroup to set. - * @return This builder for chaining. - */ - public Builder setNodeGroupBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodeGroup_ = value; - onChanged(); - return this; - } - - private com.google.container.v1.ReservationAffinity reservationAffinity_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ReservationAffinity, com.google.container.v1.ReservationAffinity.Builder, com.google.container.v1.ReservationAffinityOrBuilder> reservationAffinityBuilder_; - /** - *
-     * The optional reservation affinity. Setting this field will apply
-     * the specified [Zonal Compute
-     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-     * to this node pool.
-     * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - * @return Whether the reservationAffinity field is set. - */ - public boolean hasReservationAffinity() { - return reservationAffinityBuilder_ != null || reservationAffinity_ != null; - } - /** - *
-     * The optional reservation affinity. Setting this field will apply
-     * the specified [Zonal Compute
-     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-     * to this node pool.
-     * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - * @return The reservationAffinity. - */ - public com.google.container.v1.ReservationAffinity getReservationAffinity() { - if (reservationAffinityBuilder_ == null) { - return reservationAffinity_ == null ? com.google.container.v1.ReservationAffinity.getDefaultInstance() : reservationAffinity_; - } else { - return reservationAffinityBuilder_.getMessage(); - } - } - /** - *
-     * The optional reservation affinity. Setting this field will apply
-     * the specified [Zonal Compute
-     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-     * to this node pool.
-     * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - */ - public Builder setReservationAffinity(com.google.container.v1.ReservationAffinity value) { - if (reservationAffinityBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - reservationAffinity_ = value; - onChanged(); - } else { - reservationAffinityBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The optional reservation affinity. Setting this field will apply
-     * the specified [Zonal Compute
-     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-     * to this node pool.
-     * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - */ - public Builder setReservationAffinity( - com.google.container.v1.ReservationAffinity.Builder builderForValue) { - if (reservationAffinityBuilder_ == null) { - reservationAffinity_ = builderForValue.build(); - onChanged(); - } else { - reservationAffinityBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The optional reservation affinity. Setting this field will apply
-     * the specified [Zonal Compute
-     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-     * to this node pool.
-     * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - */ - public Builder mergeReservationAffinity(com.google.container.v1.ReservationAffinity value) { - if (reservationAffinityBuilder_ == null) { - if (reservationAffinity_ != null) { - reservationAffinity_ = - com.google.container.v1.ReservationAffinity.newBuilder(reservationAffinity_).mergeFrom(value).buildPartial(); - } else { - reservationAffinity_ = value; - } - onChanged(); - } else { - reservationAffinityBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The optional reservation affinity. Setting this field will apply
-     * the specified [Zonal Compute
-     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-     * to this node pool.
-     * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - */ - public Builder clearReservationAffinity() { - if (reservationAffinityBuilder_ == null) { - reservationAffinity_ = null; - onChanged(); - } else { - reservationAffinity_ = null; - reservationAffinityBuilder_ = null; - } - - return this; - } - /** - *
-     * The optional reservation affinity. Setting this field will apply
-     * the specified [Zonal Compute
-     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-     * to this node pool.
-     * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - */ - public com.google.container.v1.ReservationAffinity.Builder getReservationAffinityBuilder() { - - onChanged(); - return getReservationAffinityFieldBuilder().getBuilder(); - } - /** - *
-     * The optional reservation affinity. Setting this field will apply
-     * the specified [Zonal Compute
-     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-     * to this node pool.
-     * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - */ - public com.google.container.v1.ReservationAffinityOrBuilder getReservationAffinityOrBuilder() { - if (reservationAffinityBuilder_ != null) { - return reservationAffinityBuilder_.getMessageOrBuilder(); - } else { - return reservationAffinity_ == null ? - com.google.container.v1.ReservationAffinity.getDefaultInstance() : reservationAffinity_; - } - } - /** - *
-     * The optional reservation affinity. Setting this field will apply
-     * the specified [Zonal Compute
-     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-     * to this node pool.
-     * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ReservationAffinity, com.google.container.v1.ReservationAffinity.Builder, com.google.container.v1.ReservationAffinityOrBuilder> - getReservationAffinityFieldBuilder() { - if (reservationAffinityBuilder_ == null) { - reservationAffinityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ReservationAffinity, com.google.container.v1.ReservationAffinity.Builder, com.google.container.v1.ReservationAffinityOrBuilder>( - getReservationAffinity(), - getParentForChildren(), - isClean()); - reservationAffinity_ = null; - } - return reservationAffinityBuilder_; - } - - private com.google.container.v1.ShieldedInstanceConfig shieldedInstanceConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedInstanceConfig, com.google.container.v1.ShieldedInstanceConfig.Builder, com.google.container.v1.ShieldedInstanceConfigOrBuilder> shieldedInstanceConfigBuilder_; - /** - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - * @return Whether the shieldedInstanceConfig field is set. - */ - public boolean hasShieldedInstanceConfig() { - return shieldedInstanceConfigBuilder_ != null || shieldedInstanceConfig_ != null; - } - /** - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - * @return The shieldedInstanceConfig. - */ - public com.google.container.v1.ShieldedInstanceConfig getShieldedInstanceConfig() { - if (shieldedInstanceConfigBuilder_ == null) { - return shieldedInstanceConfig_ == null ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; - } else { - return shieldedInstanceConfigBuilder_.getMessage(); - } - } - /** - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - public Builder setShieldedInstanceConfig(com.google.container.v1.ShieldedInstanceConfig value) { - if (shieldedInstanceConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - shieldedInstanceConfig_ = value; - onChanged(); - } else { - shieldedInstanceConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - public Builder setShieldedInstanceConfig( - com.google.container.v1.ShieldedInstanceConfig.Builder builderForValue) { - if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfig_ = builderForValue.build(); - onChanged(); - } else { - shieldedInstanceConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - public Builder mergeShieldedInstanceConfig(com.google.container.v1.ShieldedInstanceConfig value) { - if (shieldedInstanceConfigBuilder_ == null) { - if (shieldedInstanceConfig_ != null) { - shieldedInstanceConfig_ = - com.google.container.v1.ShieldedInstanceConfig.newBuilder(shieldedInstanceConfig_).mergeFrom(value).buildPartial(); - } else { - shieldedInstanceConfig_ = value; - } - onChanged(); - } else { - shieldedInstanceConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - public Builder clearShieldedInstanceConfig() { - if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfig_ = null; - onChanged(); - } else { - shieldedInstanceConfig_ = null; - shieldedInstanceConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - public com.google.container.v1.ShieldedInstanceConfig.Builder getShieldedInstanceConfigBuilder() { - - onChanged(); - return getShieldedInstanceConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - public com.google.container.v1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { - if (shieldedInstanceConfigBuilder_ != null) { - return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); - } else { - return shieldedInstanceConfig_ == null ? - com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; - } - } - /** - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedInstanceConfig, com.google.container.v1.ShieldedInstanceConfig.Builder, com.google.container.v1.ShieldedInstanceConfigOrBuilder> - getShieldedInstanceConfigFieldBuilder() { - if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedInstanceConfig, com.google.container.v1.ShieldedInstanceConfig.Builder, com.google.container.v1.ShieldedInstanceConfigOrBuilder>( - getShieldedInstanceConfig(), - getParentForChildren(), - isClean()); - shieldedInstanceConfig_ = null; - } - return shieldedInstanceConfigBuilder_; - } - - private 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 linuxNodeConfigBuilder_ != null || linuxNodeConfig_ != null; - } - /** - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 21; - * @return The linuxNodeConfig. - */ - public com.google.container.v1.LinuxNodeConfig getLinuxNodeConfig() { - if (linuxNodeConfigBuilder_ == null) { - return linuxNodeConfig_ == null ? com.google.container.v1.LinuxNodeConfig.getDefaultInstance() : linuxNodeConfig_; - } else { - return linuxNodeConfigBuilder_.getMessage(); - } - } - /** - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 21; - */ - public Builder setLinuxNodeConfig(com.google.container.v1.LinuxNodeConfig value) { - if (linuxNodeConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - linuxNodeConfig_ = value; - onChanged(); - } else { - linuxNodeConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 21; - */ - public Builder setLinuxNodeConfig( - com.google.container.v1.LinuxNodeConfig.Builder builderForValue) { - if (linuxNodeConfigBuilder_ == null) { - linuxNodeConfig_ = builderForValue.build(); - onChanged(); - } else { - linuxNodeConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 21; - */ - public Builder mergeLinuxNodeConfig(com.google.container.v1.LinuxNodeConfig value) { - if (linuxNodeConfigBuilder_ == null) { - if (linuxNodeConfig_ != null) { - linuxNodeConfig_ = - com.google.container.v1.LinuxNodeConfig.newBuilder(linuxNodeConfig_).mergeFrom(value).buildPartial(); - } else { - linuxNodeConfig_ = value; - } - onChanged(); - } else { - linuxNodeConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 21; - */ - public Builder clearLinuxNodeConfig() { - if (linuxNodeConfigBuilder_ == null) { - linuxNodeConfig_ = null; - onChanged(); - } else { - linuxNodeConfig_ = null; - linuxNodeConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 21; - */ - public com.google.container.v1.LinuxNodeConfig.Builder getLinuxNodeConfigBuilder() { - - onChanged(); - return getLinuxNodeConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 21; - */ - public com.google.container.v1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder() { - if (linuxNodeConfigBuilder_ != null) { - return linuxNodeConfigBuilder_.getMessageOrBuilder(); - } else { - return linuxNodeConfig_ == null ? - com.google.container.v1.LinuxNodeConfig.getDefaultInstance() : linuxNodeConfig_; - } - } - /** - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 21; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LinuxNodeConfig, com.google.container.v1.LinuxNodeConfig.Builder, com.google.container.v1.LinuxNodeConfigOrBuilder> - getLinuxNodeConfigFieldBuilder() { - if (linuxNodeConfigBuilder_ == null) { - linuxNodeConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LinuxNodeConfig, com.google.container.v1.LinuxNodeConfig.Builder, com.google.container.v1.LinuxNodeConfigOrBuilder>( - getLinuxNodeConfig(), - getParentForChildren(), - isClean()); - linuxNodeConfig_ = null; - } - return linuxNodeConfigBuilder_; - } - - private com.google.container.v1.NodeKubeletConfig kubeletConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeKubeletConfig, com.google.container.v1.NodeKubeletConfig.Builder, com.google.container.v1.NodeKubeletConfigOrBuilder> kubeletConfigBuilder_; - /** - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 22; - * @return Whether the kubeletConfig field is set. - */ - public boolean hasKubeletConfig() { - return kubeletConfigBuilder_ != null || kubeletConfig_ != null; - } - /** - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 22; - * @return The kubeletConfig. - */ - public com.google.container.v1.NodeKubeletConfig getKubeletConfig() { - if (kubeletConfigBuilder_ == null) { - return kubeletConfig_ == null ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() : kubeletConfig_; - } else { - return kubeletConfigBuilder_.getMessage(); - } - } - /** - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 22; - */ - public Builder setKubeletConfig(com.google.container.v1.NodeKubeletConfig value) { - if (kubeletConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kubeletConfig_ = value; - onChanged(); - } else { - kubeletConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 22; - */ - public Builder setKubeletConfig( - com.google.container.v1.NodeKubeletConfig.Builder builderForValue) { - if (kubeletConfigBuilder_ == null) { - kubeletConfig_ = builderForValue.build(); - onChanged(); - } else { - kubeletConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 22; - */ - public Builder mergeKubeletConfig(com.google.container.v1.NodeKubeletConfig value) { - if (kubeletConfigBuilder_ == null) { - if (kubeletConfig_ != null) { - kubeletConfig_ = - com.google.container.v1.NodeKubeletConfig.newBuilder(kubeletConfig_).mergeFrom(value).buildPartial(); - } else { - kubeletConfig_ = value; - } - onChanged(); - } else { - kubeletConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 22; - */ - public Builder clearKubeletConfig() { - if (kubeletConfigBuilder_ == null) { - kubeletConfig_ = null; - onChanged(); - } else { - kubeletConfig_ = null; - kubeletConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 22; - */ - public com.google.container.v1.NodeKubeletConfig.Builder getKubeletConfigBuilder() { - - onChanged(); - return getKubeletConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 22; - */ - public com.google.container.v1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder() { - if (kubeletConfigBuilder_ != null) { - return kubeletConfigBuilder_.getMessageOrBuilder(); - } else { - return kubeletConfig_ == null ? - com.google.container.v1.NodeKubeletConfig.getDefaultInstance() : kubeletConfig_; - } - } - /** - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 22; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeKubeletConfig, com.google.container.v1.NodeKubeletConfig.Builder, com.google.container.v1.NodeKubeletConfigOrBuilder> - getKubeletConfigFieldBuilder() { - if (kubeletConfigBuilder_ == null) { - kubeletConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeKubeletConfig, com.google.container.v1.NodeKubeletConfig.Builder, com.google.container.v1.NodeKubeletConfigOrBuilder>( - getKubeletConfig(), - getParentForChildren(), - isClean()); - kubeletConfig_ = null; - } - return kubeletConfigBuilder_; - } - - private java.lang.Object bootDiskKmsKey_ = ""; - /** - *
-     * The Customer Managed Encryption Key used to encrypt the boot disk attached
-     * to each node in the node pool. This should be of the form
-     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-     * For more information about protecting resources with Cloud KMS Keys please
-     * see:
-     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-     * 
- * - * string boot_disk_kms_key = 23; - * @return The bootDiskKmsKey. - */ - public java.lang.String getBootDiskKmsKey() { - java.lang.Object ref = bootDiskKmsKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bootDiskKmsKey_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The Customer Managed Encryption Key used to encrypt the boot disk attached
-     * to each node in the node pool. This should be of the form
-     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-     * For more information about protecting resources with Cloud KMS Keys please
-     * see:
-     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-     * 
- * - * string boot_disk_kms_key = 23; - * @return The bytes for bootDiskKmsKey. - */ - public com.google.protobuf.ByteString - getBootDiskKmsKeyBytes() { - java.lang.Object ref = bootDiskKmsKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bootDiskKmsKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The Customer Managed Encryption Key used to encrypt the boot disk attached
-     * to each node in the node pool. This should be of the form
-     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-     * For more information about protecting resources with Cloud KMS Keys please
-     * see:
-     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-     * 
- * - * string boot_disk_kms_key = 23; - * @param value The bootDiskKmsKey to set. - * @return This builder for chaining. - */ - public Builder setBootDiskKmsKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - bootDiskKmsKey_ = value; - onChanged(); - return this; - } - /** - *
-     * The Customer Managed Encryption Key used to encrypt the boot disk attached
-     * to each node in the node pool. This should be of the form
-     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-     * For more information about protecting resources with Cloud KMS Keys please
-     * see:
-     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-     * 
- * - * string boot_disk_kms_key = 23; - * @return This builder for chaining. - */ - public Builder clearBootDiskKmsKey() { - - bootDiskKmsKey_ = getDefaultInstance().getBootDiskKmsKey(); - onChanged(); - return this; - } - /** - *
-     * The Customer Managed Encryption Key used to encrypt the boot disk attached
-     * to each node in the node pool. This should be of the form
-     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-     * For more information about protecting resources with Cloud KMS Keys please
-     * see:
-     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-     * 
- * - * string boot_disk_kms_key = 23; - * @param value The bytes for bootDiskKmsKey to set. - * @return This builder for chaining. - */ - public Builder setBootDiskKmsKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - bootDiskKmsKey_ = value; - onChanged(); - return this; - } - - private com.google.container.v1.GcfsConfig gcfsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GcfsConfig, com.google.container.v1.GcfsConfig.Builder, com.google.container.v1.GcfsConfigOrBuilder> gcfsConfigBuilder_; - /** - *
-     * Google Container File System (image streaming) configs.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 25; - * @return Whether the gcfsConfig field is set. - */ - public boolean hasGcfsConfig() { - return gcfsConfigBuilder_ != null || gcfsConfig_ != null; - } - /** - *
-     * Google Container File System (image streaming) configs.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 25; - * @return The gcfsConfig. - */ - public com.google.container.v1.GcfsConfig getGcfsConfig() { - if (gcfsConfigBuilder_ == null) { - return gcfsConfig_ == null ? com.google.container.v1.GcfsConfig.getDefaultInstance() : gcfsConfig_; - } else { - return gcfsConfigBuilder_.getMessage(); - } - } - /** - *
-     * Google Container File System (image streaming) configs.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 25; - */ - public Builder setGcfsConfig(com.google.container.v1.GcfsConfig value) { - if (gcfsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gcfsConfig_ = value; - onChanged(); - } else { - gcfsConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Google Container File System (image streaming) configs.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 25; - */ - public Builder setGcfsConfig( - com.google.container.v1.GcfsConfig.Builder builderForValue) { - if (gcfsConfigBuilder_ == null) { - gcfsConfig_ = builderForValue.build(); - onChanged(); - } else { - gcfsConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Google Container File System (image streaming) configs.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 25; - */ - public Builder mergeGcfsConfig(com.google.container.v1.GcfsConfig value) { - if (gcfsConfigBuilder_ == null) { - if (gcfsConfig_ != null) { - gcfsConfig_ = - com.google.container.v1.GcfsConfig.newBuilder(gcfsConfig_).mergeFrom(value).buildPartial(); - } else { - gcfsConfig_ = value; - } - onChanged(); - } else { - gcfsConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Google Container File System (image streaming) configs.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 25; - */ - public Builder clearGcfsConfig() { - if (gcfsConfigBuilder_ == null) { - gcfsConfig_ = null; - onChanged(); - } else { - gcfsConfig_ = null; - gcfsConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Google Container File System (image streaming) configs.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 25; - */ - public com.google.container.v1.GcfsConfig.Builder getGcfsConfigBuilder() { - - onChanged(); - return getGcfsConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Google Container File System (image streaming) configs.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 25; - */ - public com.google.container.v1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { - if (gcfsConfigBuilder_ != null) { - return gcfsConfigBuilder_.getMessageOrBuilder(); - } else { - return gcfsConfig_ == null ? - com.google.container.v1.GcfsConfig.getDefaultInstance() : gcfsConfig_; - } - } - /** - *
-     * Google Container File System (image streaming) configs.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 25; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GcfsConfig, com.google.container.v1.GcfsConfig.Builder, com.google.container.v1.GcfsConfigOrBuilder> - getGcfsConfigFieldBuilder() { - if (gcfsConfigBuilder_ == null) { - gcfsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GcfsConfig, com.google.container.v1.GcfsConfig.Builder, com.google.container.v1.GcfsConfigOrBuilder>( - getGcfsConfig(), - getParentForChildren(), - isClean()); - gcfsConfig_ = null; - } - return gcfsConfigBuilder_; - } - - private com.google.container.v1.AdvancedMachineFeatures advancedMachineFeatures_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AdvancedMachineFeatures, com.google.container.v1.AdvancedMachineFeatures.Builder, com.google.container.v1.AdvancedMachineFeaturesOrBuilder> advancedMachineFeaturesBuilder_; - /** - *
-     * Advanced features for the Compute Engine VM.
-     * 
- * - * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; - * @return Whether the advancedMachineFeatures field is set. - */ - public boolean hasAdvancedMachineFeatures() { - return advancedMachineFeaturesBuilder_ != null || advancedMachineFeatures_ != null; - } - /** - *
-     * Advanced features for the Compute Engine VM.
-     * 
- * - * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; - * @return The advancedMachineFeatures. - */ - public com.google.container.v1.AdvancedMachineFeatures getAdvancedMachineFeatures() { - if (advancedMachineFeaturesBuilder_ == null) { - return advancedMachineFeatures_ == null ? com.google.container.v1.AdvancedMachineFeatures.getDefaultInstance() : advancedMachineFeatures_; - } else { - return advancedMachineFeaturesBuilder_.getMessage(); - } - } - /** - *
-     * Advanced features for the Compute Engine VM.
-     * 
- * - * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; - */ - public Builder setAdvancedMachineFeatures(com.google.container.v1.AdvancedMachineFeatures value) { - if (advancedMachineFeaturesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - advancedMachineFeatures_ = value; - onChanged(); - } else { - advancedMachineFeaturesBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Advanced features for the Compute Engine VM.
-     * 
- * - * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; - */ - public Builder setAdvancedMachineFeatures( - com.google.container.v1.AdvancedMachineFeatures.Builder builderForValue) { - if (advancedMachineFeaturesBuilder_ == null) { - advancedMachineFeatures_ = builderForValue.build(); - onChanged(); - } else { - advancedMachineFeaturesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Advanced features for the Compute Engine VM.
-     * 
- * - * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; - */ - public Builder mergeAdvancedMachineFeatures(com.google.container.v1.AdvancedMachineFeatures value) { - if (advancedMachineFeaturesBuilder_ == null) { - if (advancedMachineFeatures_ != null) { - advancedMachineFeatures_ = - com.google.container.v1.AdvancedMachineFeatures.newBuilder(advancedMachineFeatures_).mergeFrom(value).buildPartial(); - } else { - advancedMachineFeatures_ = value; - } - onChanged(); - } else { - advancedMachineFeaturesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Advanced features for the Compute Engine VM.
-     * 
- * - * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; - */ - public Builder clearAdvancedMachineFeatures() { - if (advancedMachineFeaturesBuilder_ == null) { - advancedMachineFeatures_ = null; - onChanged(); - } else { - advancedMachineFeatures_ = null; - advancedMachineFeaturesBuilder_ = null; - } - - return this; - } - /** - *
-     * Advanced features for the Compute Engine VM.
-     * 
- * - * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; - */ - public com.google.container.v1.AdvancedMachineFeatures.Builder getAdvancedMachineFeaturesBuilder() { - - onChanged(); - return getAdvancedMachineFeaturesFieldBuilder().getBuilder(); - } - /** - *
-     * Advanced features for the Compute Engine VM.
-     * 
- * - * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; - */ - public com.google.container.v1.AdvancedMachineFeaturesOrBuilder getAdvancedMachineFeaturesOrBuilder() { - if (advancedMachineFeaturesBuilder_ != null) { - return advancedMachineFeaturesBuilder_.getMessageOrBuilder(); - } else { - return advancedMachineFeatures_ == null ? - com.google.container.v1.AdvancedMachineFeatures.getDefaultInstance() : advancedMachineFeatures_; - } - } - /** - *
-     * Advanced features for the Compute Engine VM.
-     * 
- * - * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AdvancedMachineFeatures, com.google.container.v1.AdvancedMachineFeatures.Builder, com.google.container.v1.AdvancedMachineFeaturesOrBuilder> - getAdvancedMachineFeaturesFieldBuilder() { - if (advancedMachineFeaturesBuilder_ == null) { - advancedMachineFeaturesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AdvancedMachineFeatures, com.google.container.v1.AdvancedMachineFeatures.Builder, com.google.container.v1.AdvancedMachineFeaturesOrBuilder>( - getAdvancedMachineFeatures(), - getParentForChildren(), - isClean()); - advancedMachineFeatures_ = null; - } - return advancedMachineFeaturesBuilder_; - } - - private com.google.container.v1.VirtualNIC gvnic_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.VirtualNIC, com.google.container.v1.VirtualNIC.Builder, com.google.container.v1.VirtualNICOrBuilder> gvnicBuilder_; - /** - *
-     * Enable or disable gvnic in the node pool.
-     * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - * @return Whether the gvnic field is set. - */ - public boolean hasGvnic() { - return gvnicBuilder_ != null || gvnic_ != null; - } - /** - *
-     * Enable or disable gvnic in the node pool.
-     * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - * @return The gvnic. - */ - public com.google.container.v1.VirtualNIC getGvnic() { - if (gvnicBuilder_ == null) { - return gvnic_ == null ? com.google.container.v1.VirtualNIC.getDefaultInstance() : gvnic_; - } else { - return gvnicBuilder_.getMessage(); - } - } - /** - *
-     * Enable or disable gvnic in the node pool.
-     * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - */ - public Builder setGvnic(com.google.container.v1.VirtualNIC value) { - if (gvnicBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gvnic_ = value; - onChanged(); - } else { - gvnicBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Enable or disable gvnic in the node pool.
-     * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - */ - public Builder setGvnic( - com.google.container.v1.VirtualNIC.Builder builderForValue) { - if (gvnicBuilder_ == null) { - gvnic_ = builderForValue.build(); - onChanged(); - } else { - gvnicBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Enable or disable gvnic in the node pool.
-     * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - */ - public Builder mergeGvnic(com.google.container.v1.VirtualNIC value) { - if (gvnicBuilder_ == null) { - if (gvnic_ != null) { - gvnic_ = - com.google.container.v1.VirtualNIC.newBuilder(gvnic_).mergeFrom(value).buildPartial(); - } else { - gvnic_ = value; - } - onChanged(); - } else { - gvnicBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Enable or disable gvnic in the node pool.
-     * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - */ - public Builder clearGvnic() { - if (gvnicBuilder_ == null) { - gvnic_ = null; - onChanged(); - } else { - gvnic_ = null; - gvnicBuilder_ = null; - } - - return this; - } - /** - *
-     * Enable or disable gvnic in the node pool.
-     * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - */ - public com.google.container.v1.VirtualNIC.Builder getGvnicBuilder() { - - onChanged(); - return getGvnicFieldBuilder().getBuilder(); - } - /** - *
-     * Enable or disable gvnic in the node pool.
-     * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - */ - public com.google.container.v1.VirtualNICOrBuilder getGvnicOrBuilder() { - if (gvnicBuilder_ != null) { - return gvnicBuilder_.getMessageOrBuilder(); - } else { - return gvnic_ == null ? - com.google.container.v1.VirtualNIC.getDefaultInstance() : gvnic_; - } - } - /** - *
-     * Enable or disable gvnic in the node pool.
-     * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.VirtualNIC, com.google.container.v1.VirtualNIC.Builder, com.google.container.v1.VirtualNICOrBuilder> - getGvnicFieldBuilder() { - if (gvnicBuilder_ == null) { - gvnicBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.VirtualNIC, com.google.container.v1.VirtualNIC.Builder, com.google.container.v1.VirtualNICOrBuilder>( - getGvnic(), - getParentForChildren(), - isClean()); - gvnic_ = null; - } - return gvnicBuilder_; - } - - private boolean spot_ ; - /** - *
-     * Spot flag for enabling Spot VM, which is a rebrand of
-     * the existing preemptible flag.
-     * 
- * - * bool spot = 32; - * @return The spot. - */ - @java.lang.Override - public boolean getSpot() { - return spot_; - } - /** - *
-     * Spot flag for enabling Spot VM, which is a rebrand of
-     * the existing preemptible flag.
-     * 
- * - * bool spot = 32; - * @param value The spot to set. - * @return This builder for chaining. - */ - public Builder setSpot(boolean value) { - - spot_ = value; - onChanged(); - return this; - } - /** - *
-     * Spot flag for enabling Spot VM, which is a rebrand of
-     * the existing preemptible flag.
-     * 
- * - * bool spot = 32; - * @return This builder for chaining. - */ - public Builder clearSpot() { - - spot_ = false; - onChanged(); - return this; - } - - 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 confidentialNodesBuilder_ != null || confidentialNodes_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - confidentialNodesBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - confidentialNodesBuilder_.setMessage(builderForValue.build()); - } - - 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 (confidentialNodes_ != null) { - confidentialNodes_ = - com.google.container.v1.ConfidentialNodes.newBuilder(confidentialNodes_).mergeFrom(value).buildPartial(); - } else { - confidentialNodes_ = value; - } - onChanged(); - } else { - confidentialNodesBuilder_.mergeFrom(value); - } - - 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() { - if (confidentialNodesBuilder_ == null) { - confidentialNodes_ = null; - onChanged(); - } else { - confidentialNodes_ = null; - confidentialNodesBuilder_ = null; - } - - 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() { - - 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.protobuf.MapField< - java.lang.String, java.lang.String> resourceLabels_; - private com.google.protobuf.MapField - internalGetResourceLabels() { - if (resourceLabels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ResourceLabelsDefaultEntryHolder.defaultEntry); - } - return resourceLabels_; - } - private com.google.protobuf.MapField - internalGetMutableResourceLabels() { - onChanged();; - if (resourceLabels_ == null) { - resourceLabels_ = com.google.protobuf.MapField.newMapField( - ResourceLabelsDefaultEntryHolder.defaultEntry); - } - if (!resourceLabels_.isMutable()) { - resourceLabels_ = resourceLabels_.copy(); - } - return resourceLabels_; - } - - public int getResourceLabelsCount() { - return internalGetResourceLabels().getMap().size(); - } - /** - *
-     * The resource labels for the 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 java.lang.String getResourceLabelsOrDefault( - java.lang.String key, - 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() { - 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() { - 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); - 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); - 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 loggingConfigBuilder_ != null || loggingConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - loggingConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - loggingConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 38; - */ - public Builder mergeLoggingConfig(com.google.container.v1.NodePoolLoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (loggingConfig_ != null) { - loggingConfig_ = - com.google.container.v1.NodePoolLoggingConfig.newBuilder(loggingConfig_).mergeFrom(value).buildPartial(); - } else { - loggingConfig_ = value; - } - onChanged(); - } else { - loggingConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 38; - */ - public Builder clearLoggingConfig() { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - onChanged(); - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 38; - */ - public com.google.container.v1.NodePoolLoggingConfig.Builder getLoggingConfigBuilder() { - - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index a0bc24b50f49..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigDefaults.java +++ /dev/null @@ -1,869 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * Subset of NodeConfig message that has defaults.
- * 
- * - * Protobuf type {@code google.container.v1.NodeConfigDefaults} - */ -public final class NodeConfigDefaults extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.NodeConfigDefaults) - NodeConfigDefaultsOrBuilder { -private static final long serialVersionUID = 0L; - // Use NodeConfigDefaults.newBuilder() to construct. - private NodeConfigDefaults(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeConfigDefaults() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NodeConfigDefaults(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeConfigDefaults_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeConfigDefaults_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodeConfigDefaults.class, com.google.container.v1.NodeConfigDefaults.Builder.class); - } - - public static final int GCFS_CONFIG_FIELD_NUMBER = 1; - private com.google.container.v1.GcfsConfig gcfsConfig_; - /** - *
-   * GCFS (Google Container File System, 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 gcfsConfig_ != null; - } - /** - *
-   * 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 getGcfsConfig(); - } - - 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 loggingConfig_ != null; - } - /** - *
-   * 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 getLoggingConfig(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (gcfsConfig_ != null) { - output.writeMessage(1, getGcfsConfig()); - } - if (loggingConfig_ != null) { - output.writeMessage(3, getLoggingConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (gcfsConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getGcfsConfig()); - } - if (loggingConfig_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (gcfsConfigBuilder_ == null) { - gcfsConfig_ = null; - } else { - gcfsConfig_ = null; - gcfsConfigBuilder_ = null; - } - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - } else { - loggingConfig_ = null; - 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 (gcfsConfigBuilder_ == null) { - result.gcfsConfig_ = gcfsConfig_; - } else { - result.gcfsConfig_ = gcfsConfigBuilder_.build(); - } - if (loggingConfigBuilder_ == null) { - result.loggingConfig_ = loggingConfig_; - } else { - result.loggingConfig_ = loggingConfigBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NodeConfigDefaults) { - return mergeFrom((com.google.container.v1.NodeConfigDefaults)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NodeConfigDefaults other) { - if (other == com.google.container.v1.NodeConfigDefaults.getDefaultInstance()) return this; - if (other.hasGcfsConfig()) { - mergeGcfsConfig(other.getGcfsConfig()); - } - 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); - - break; - } // case 10 - case 26: { - input.readMessage( - getLoggingConfigFieldBuilder().getBuilder(), - extensionRegistry); - - 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 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 gcfsConfigBuilder_ != null || gcfsConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - gcfsConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - gcfsConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (gcfsConfig_ != null) { - gcfsConfig_ = - com.google.container.v1.GcfsConfig.newBuilder(gcfsConfig_).mergeFrom(value).buildPartial(); - } else { - gcfsConfig_ = value; - } - onChanged(); - } else { - gcfsConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * GCFS (Google Container File System, also known as Riptide) options.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 1; - */ - public Builder clearGcfsConfig() { - if (gcfsConfigBuilder_ == null) { - gcfsConfig_ = null; - onChanged(); - } else { - gcfsConfig_ = null; - gcfsConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * GCFS (Google Container File System, also known as Riptide) options.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 1; - */ - public com.google.container.v1.GcfsConfig.Builder getGcfsConfigBuilder() { - - onChanged(); - return getGcfsConfigFieldBuilder().getBuilder(); - } - /** - *
-     * GCFS (Google Container File System, 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 loggingConfigBuilder_ != null || loggingConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - loggingConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - loggingConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (loggingConfig_ != null) { - loggingConfig_ = - com.google.container.v1.NodePoolLoggingConfig.newBuilder(loggingConfig_).mergeFrom(value).buildPartial(); - } else { - loggingConfig_ = value; - } - onChanged(); - } else { - loggingConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Logging configuration for node pools.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 3; - */ - public Builder clearLoggingConfig() { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - onChanged(); - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Logging configuration for node pools.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 3; - */ - public com.google.container.v1.NodePoolLoggingConfig.Builder getLoggingConfigBuilder() { - - 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 deleted file mode 100644 index 24c1596bb7f0..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigDefaultsOrBuilder.java +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface NodeConfigDefaultsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NodeConfigDefaults) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * GCFS (Google Container File System, 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 deleted file mode 100644 index 947fd7abb62f..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java +++ /dev/null @@ -1,1138 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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.
-   * 
- * - * string image_type = 5; - * @return The imageType. - */ - java.lang.String getImageType(); - /** - *
-   * The image type to use for this node. Note that for a given image type,
-   * the latest version of it will be used.
-   * 
- * - * string image_type = 5; - * @return The bytes for imageType. - */ - com.google.protobuf.ByteString - getImageTypeBytes(); - - /** - *
-   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
-   * These will added in addition to any default label(s) that
-   * Kubernetes may apply to the node.
-   * In case of conflict in label keys, the applied set may differ depending on
-   * the Kubernetes version -- it's best to assume the behavior is undefined
-   * and conflicts should be avoided.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-   * 
- * - * map<string, string> labels = 6; - */ - int getLabelsCount(); - /** - *
-   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
-   * These will added in addition to any default label(s) that
-   * Kubernetes may apply to the node.
-   * In case of conflict in label keys, the applied set may differ depending on
-   * the Kubernetes version -- it's best to assume the behavior is undefined
-   * and conflicts should be avoided.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-   * 
- * - * map<string, string> labels = 6; - */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getLabels(); - /** - *
-   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
-   * These will added in addition to any default label(s) that
-   * Kubernetes may apply to the node.
-   * In case of conflict in label keys, the applied set may differ depending on
-   * the Kubernetes version -- it's best to assume the behavior is undefined
-   * and conflicts should be avoided.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-   * 
- * - * map<string, string> labels = 6; - */ - java.util.Map - getLabelsMap(); - /** - *
-   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
-   * These will added in addition to any default label(s) that
-   * Kubernetes may apply to the node.
-   * In case of conflict in label keys, the applied set may differ depending on
-   * the Kubernetes version -- it's best to assume the behavior is undefined
-   * and conflicts should be avoided.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-   * 
- * - * map<string, string> labels = 6; - */ - - /* 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(); - - /** - *
-   * 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(); -} 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 deleted file mode 100644 index 490c8b060cb7..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeKubeletConfig.java +++ /dev/null @@ -1,1223 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * Node kubelet configs.
- * 
- * - * Protobuf type {@code google.container.v1.NodeKubeletConfig} - */ -public final class NodeKubeletConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.NodeKubeletConfig) - NodeKubeletConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use NodeKubeletConfig.newBuilder() to construct. - private NodeKubeletConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeKubeletConfig() { - cpuManagerPolicy_ = ""; - cpuCfsQuotaPeriod_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NodeKubeletConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeKubeletConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeKubeletConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodeKubeletConfig.class, com.google.container.v1.NodeKubeletConfig.Builder.class); - } - - public static final int CPU_MANAGER_POLICY_FIELD_NUMBER = 1; - private volatile java.lang.Object cpuManagerPolicy_; - /** - *
-   * Control the CPU management policy on the node.
-   * See
-   * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
-   * The following values are allowed.
-   * * "none": the default, which represents the existing scheduling behavior.
-   * * "static": allows pods with certain resource characteristics to be granted
-   * increased CPU affinity and exclusivity on the node.
-   * The default value is 'none' if unspecified.
-   * 
- * - * string cpu_manager_policy = 1; - * @return The cpuManagerPolicy. - */ - @java.lang.Override - public java.lang.String getCpuManagerPolicy() { - java.lang.Object ref = cpuManagerPolicy_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cpuManagerPolicy_ = s; - return s; - } - } - /** - *
-   * Control the CPU management policy on the node.
-   * See
-   * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
-   * The following values are allowed.
-   * * "none": the default, which represents the existing scheduling behavior.
-   * * "static": allows pods with certain resource characteristics to be granted
-   * increased CPU affinity and exclusivity on the node.
-   * The default value is 'none' if unspecified.
-   * 
- * - * string cpu_manager_policy = 1; - * @return The bytes for cpuManagerPolicy. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCpuManagerPolicyBytes() { - java.lang.Object ref = cpuManagerPolicy_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cpuManagerPolicy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CPU_CFS_QUOTA_FIELD_NUMBER = 2; - private com.google.protobuf.BoolValue cpuCfsQuota_; - /** - *
-   * Enable CPU CFS quota enforcement for containers that specify CPU limits.
-   * This option is enabled by default which makes kubelet use CFS quota
-   * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
-   * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
-   * all.
-   * Disable this option to mitigate CPU throttling problems while still having
-   * your pods to be in Guaranteed QoS class by specifying the CPU limits.
-   * The default value is 'true' if unspecified.
-   * 
- * - * .google.protobuf.BoolValue cpu_cfs_quota = 2; - * @return Whether the cpuCfsQuota field is set. - */ - @java.lang.Override - public boolean hasCpuCfsQuota() { - return cpuCfsQuota_ != null; - } - /** - *
-   * Enable CPU CFS quota enforcement for containers that specify CPU limits.
-   * This option is enabled by default which makes kubelet use CFS quota
-   * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
-   * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
-   * all.
-   * Disable this option to mitigate CPU throttling problems while still having
-   * your pods to be in Guaranteed QoS class by specifying the CPU limits.
-   * The default value is 'true' if unspecified.
-   * 
- * - * .google.protobuf.BoolValue cpu_cfs_quota = 2; - * @return The cpuCfsQuota. - */ - @java.lang.Override - public com.google.protobuf.BoolValue getCpuCfsQuota() { - return cpuCfsQuota_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : cpuCfsQuota_; - } - /** - *
-   * Enable CPU CFS quota enforcement for containers that specify CPU limits.
-   * This option is enabled by default which makes kubelet use CFS quota
-   * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
-   * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
-   * all.
-   * Disable this option to mitigate CPU throttling problems while still having
-   * your pods to be in Guaranteed QoS class by specifying the CPU limits.
-   * The default value is 'true' if unspecified.
-   * 
- * - * .google.protobuf.BoolValue cpu_cfs_quota = 2; - */ - @java.lang.Override - public com.google.protobuf.BoolValueOrBuilder getCpuCfsQuotaOrBuilder() { - return getCpuCfsQuota(); - } - - public static final int CPU_CFS_QUOTA_PERIOD_FIELD_NUMBER = 3; - private volatile java.lang.Object cpuCfsQuotaPeriod_; - /** - *
-   * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
-   * The string must be a sequence of decimal numbers, each with optional
-   * fraction and a unit suffix, such as "300ms".
-   * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
-   * The value must be a positive duration.
-   * 
- * - * string cpu_cfs_quota_period = 3; - * @return The cpuCfsQuotaPeriod. - */ - @java.lang.Override - public java.lang.String getCpuCfsQuotaPeriod() { - java.lang.Object ref = cpuCfsQuotaPeriod_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cpuCfsQuotaPeriod_ = s; - return s; - } - } - /** - *
-   * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
-   * The string must be a sequence of decimal numbers, each with optional
-   * fraction and a unit suffix, such as "300ms".
-   * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
-   * The value must be a positive duration.
-   * 
- * - * string cpu_cfs_quota_period = 3; - * @return The bytes for cpuCfsQuotaPeriod. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCpuCfsQuotaPeriodBytes() { - java.lang.Object ref = cpuCfsQuotaPeriod_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cpuCfsQuotaPeriod_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int POD_PIDS_LIMIT_FIELD_NUMBER = 4; - 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_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuManagerPolicy_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cpuManagerPolicy_); - } - if (cpuCfsQuota_ != null) { - output.writeMessage(2, getCpuCfsQuota()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuCfsQuotaPeriod_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cpuCfsQuotaPeriod_); - } - if (podPidsLimit_ != 0L) { - output.writeInt64(4, podPidsLimit_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuManagerPolicy_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cpuManagerPolicy_); - } - if (cpuCfsQuota_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCpuCfsQuota()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuCfsQuotaPeriod_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, cpuCfsQuotaPeriod_); - } - if (podPidsLimit_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, podPidsLimit_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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()); - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - cpuManagerPolicy_ = ""; - - if (cpuCfsQuotaBuilder_ == null) { - cpuCfsQuota_ = null; - } else { - cpuCfsQuota_ = null; - cpuCfsQuotaBuilder_ = null; - } - cpuCfsQuotaPeriod_ = ""; - - podPidsLimit_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeKubeletConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NodeKubeletConfig getDefaultInstanceForType() { - return com.google.container.v1.NodeKubeletConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NodeKubeletConfig build() { - com.google.container.v1.NodeKubeletConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NodeKubeletConfig buildPartial() { - com.google.container.v1.NodeKubeletConfig result = new com.google.container.v1.NodeKubeletConfig(this); - result.cpuManagerPolicy_ = cpuManagerPolicy_; - if (cpuCfsQuotaBuilder_ == null) { - result.cpuCfsQuota_ = cpuCfsQuota_; - } else { - result.cpuCfsQuota_ = cpuCfsQuotaBuilder_.build(); - } - result.cpuCfsQuotaPeriod_ = cpuCfsQuotaPeriod_; - result.podPidsLimit_ = podPidsLimit_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NodeKubeletConfig) { - return mergeFrom((com.google.container.v1.NodeKubeletConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NodeKubeletConfig other) { - if (other == com.google.container.v1.NodeKubeletConfig.getDefaultInstance()) return this; - if (!other.getCpuManagerPolicy().isEmpty()) { - cpuManagerPolicy_ = other.cpuManagerPolicy_; - onChanged(); - } - if (other.hasCpuCfsQuota()) { - mergeCpuCfsQuota(other.getCpuCfsQuota()); - } - if (!other.getCpuCfsQuotaPeriod().isEmpty()) { - cpuCfsQuotaPeriod_ = other.cpuCfsQuotaPeriod_; - onChanged(); - } - if (other.getPodPidsLimit() != 0L) { - setPodPidsLimit(other.getPodPidsLimit()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - input.readMessage( - getCpuCfsQuotaFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - case 26: { - cpuCfsQuotaPeriod_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 32: { - podPidsLimit_ = input.readInt64(); - - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object cpuManagerPolicy_ = ""; - /** - *
-     * Control the CPU management policy on the node.
-     * See
-     * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
-     * The following values are allowed.
-     * * "none": the default, which represents the existing scheduling behavior.
-     * * "static": allows pods with certain resource characteristics to be granted
-     * increased CPU affinity and exclusivity on the node.
-     * The default value is 'none' if unspecified.
-     * 
- * - * string cpu_manager_policy = 1; - * @return The cpuManagerPolicy. - */ - public java.lang.String getCpuManagerPolicy() { - java.lang.Object ref = cpuManagerPolicy_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cpuManagerPolicy_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Control the CPU management policy on the node.
-     * See
-     * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
-     * The following values are allowed.
-     * * "none": the default, which represents the existing scheduling behavior.
-     * * "static": allows pods with certain resource characteristics to be granted
-     * increased CPU affinity and exclusivity on the node.
-     * The default value is 'none' if unspecified.
-     * 
- * - * string cpu_manager_policy = 1; - * @return The bytes for cpuManagerPolicy. - */ - public com.google.protobuf.ByteString - getCpuManagerPolicyBytes() { - java.lang.Object ref = cpuManagerPolicy_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cpuManagerPolicy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Control the CPU management policy on the node.
-     * See
-     * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
-     * The following values are allowed.
-     * * "none": the default, which represents the existing scheduling behavior.
-     * * "static": allows pods with certain resource characteristics to be granted
-     * increased CPU affinity and exclusivity on the node.
-     * The default value is 'none' if unspecified.
-     * 
- * - * string cpu_manager_policy = 1; - * @param value The cpuManagerPolicy to set. - * @return This builder for chaining. - */ - public Builder setCpuManagerPolicy( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cpuManagerPolicy_ = value; - onChanged(); - return this; - } - /** - *
-     * Control the CPU management policy on the node.
-     * See
-     * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
-     * The following values are allowed.
-     * * "none": the default, which represents the existing scheduling behavior.
-     * * "static": allows pods with certain resource characteristics to be granted
-     * increased CPU affinity and exclusivity on the node.
-     * The default value is 'none' if unspecified.
-     * 
- * - * string cpu_manager_policy = 1; - * @return This builder for chaining. - */ - public Builder clearCpuManagerPolicy() { - - cpuManagerPolicy_ = getDefaultInstance().getCpuManagerPolicy(); - onChanged(); - return this; - } - /** - *
-     * Control the CPU management policy on the node.
-     * See
-     * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
-     * The following values are allowed.
-     * * "none": the default, which represents the existing scheduling behavior.
-     * * "static": allows pods with certain resource characteristics to be granted
-     * increased CPU affinity and exclusivity on the node.
-     * The default value is 'none' if unspecified.
-     * 
- * - * string cpu_manager_policy = 1; - * @param value The bytes for cpuManagerPolicy to set. - * @return This builder for chaining. - */ - public Builder setCpuManagerPolicyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cpuManagerPolicy_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.BoolValue cpuCfsQuota_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> cpuCfsQuotaBuilder_; - /** - *
-     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
-     * This option is enabled by default which makes kubelet use CFS quota
-     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
-     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
-     * all.
-     * Disable this option to mitigate CPU throttling problems while still having
-     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
-     * The default value is 'true' if unspecified.
-     * 
- * - * .google.protobuf.BoolValue cpu_cfs_quota = 2; - * @return Whether the cpuCfsQuota field is set. - */ - public boolean hasCpuCfsQuota() { - return cpuCfsQuotaBuilder_ != null || cpuCfsQuota_ != null; - } - /** - *
-     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
-     * This option is enabled by default which makes kubelet use CFS quota
-     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
-     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
-     * all.
-     * Disable this option to mitigate CPU throttling problems while still having
-     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
-     * The default value is 'true' if unspecified.
-     * 
- * - * .google.protobuf.BoolValue cpu_cfs_quota = 2; - * @return The cpuCfsQuota. - */ - public com.google.protobuf.BoolValue getCpuCfsQuota() { - if (cpuCfsQuotaBuilder_ == null) { - return cpuCfsQuota_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : cpuCfsQuota_; - } else { - return cpuCfsQuotaBuilder_.getMessage(); - } - } - /** - *
-     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
-     * This option is enabled by default which makes kubelet use CFS quota
-     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
-     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
-     * all.
-     * Disable this option to mitigate CPU throttling problems while still having
-     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
-     * The default value is 'true' if unspecified.
-     * 
- * - * .google.protobuf.BoolValue cpu_cfs_quota = 2; - */ - public Builder setCpuCfsQuota(com.google.protobuf.BoolValue value) { - if (cpuCfsQuotaBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - cpuCfsQuota_ = value; - onChanged(); - } else { - cpuCfsQuotaBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
-     * This option is enabled by default which makes kubelet use CFS quota
-     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
-     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
-     * all.
-     * Disable this option to mitigate CPU throttling problems while still having
-     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
-     * The default value is 'true' if unspecified.
-     * 
- * - * .google.protobuf.BoolValue cpu_cfs_quota = 2; - */ - public Builder setCpuCfsQuota( - com.google.protobuf.BoolValue.Builder builderForValue) { - if (cpuCfsQuotaBuilder_ == null) { - cpuCfsQuota_ = builderForValue.build(); - onChanged(); - } else { - cpuCfsQuotaBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
-     * This option is enabled by default which makes kubelet use CFS quota
-     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
-     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
-     * all.
-     * Disable this option to mitigate CPU throttling problems while still having
-     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
-     * The default value is 'true' if unspecified.
-     * 
- * - * .google.protobuf.BoolValue cpu_cfs_quota = 2; - */ - public Builder mergeCpuCfsQuota(com.google.protobuf.BoolValue value) { - if (cpuCfsQuotaBuilder_ == null) { - if (cpuCfsQuota_ != null) { - cpuCfsQuota_ = - com.google.protobuf.BoolValue.newBuilder(cpuCfsQuota_).mergeFrom(value).buildPartial(); - } else { - cpuCfsQuota_ = value; - } - onChanged(); - } else { - cpuCfsQuotaBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
-     * This option is enabled by default which makes kubelet use CFS quota
-     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
-     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
-     * all.
-     * Disable this option to mitigate CPU throttling problems while still having
-     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
-     * The default value is 'true' if unspecified.
-     * 
- * - * .google.protobuf.BoolValue cpu_cfs_quota = 2; - */ - public Builder clearCpuCfsQuota() { - if (cpuCfsQuotaBuilder_ == null) { - cpuCfsQuota_ = null; - onChanged(); - } else { - cpuCfsQuota_ = null; - cpuCfsQuotaBuilder_ = null; - } - - return this; - } - /** - *
-     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
-     * This option is enabled by default which makes kubelet use CFS quota
-     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
-     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
-     * all.
-     * Disable this option to mitigate CPU throttling problems while still having
-     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
-     * The default value is 'true' if unspecified.
-     * 
- * - * .google.protobuf.BoolValue cpu_cfs_quota = 2; - */ - public com.google.protobuf.BoolValue.Builder getCpuCfsQuotaBuilder() { - - onChanged(); - return getCpuCfsQuotaFieldBuilder().getBuilder(); - } - /** - *
-     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
-     * This option is enabled by default which makes kubelet use CFS quota
-     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
-     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
-     * all.
-     * Disable this option to mitigate CPU throttling problems while still having
-     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
-     * The default value is 'true' if unspecified.
-     * 
- * - * .google.protobuf.BoolValue cpu_cfs_quota = 2; - */ - public com.google.protobuf.BoolValueOrBuilder getCpuCfsQuotaOrBuilder() { - if (cpuCfsQuotaBuilder_ != null) { - return cpuCfsQuotaBuilder_.getMessageOrBuilder(); - } else { - return cpuCfsQuota_ == null ? - com.google.protobuf.BoolValue.getDefaultInstance() : cpuCfsQuota_; - } - } - /** - *
-     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
-     * This option is enabled by default which makes kubelet use CFS quota
-     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
-     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
-     * all.
-     * Disable this option to mitigate CPU throttling problems while still having
-     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
-     * The default value is 'true' if unspecified.
-     * 
- * - * .google.protobuf.BoolValue cpu_cfs_quota = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> - getCpuCfsQuotaFieldBuilder() { - if (cpuCfsQuotaBuilder_ == null) { - cpuCfsQuotaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( - getCpuCfsQuota(), - getParentForChildren(), - isClean()); - cpuCfsQuota_ = null; - } - return cpuCfsQuotaBuilder_; - } - - private java.lang.Object cpuCfsQuotaPeriod_ = ""; - /** - *
-     * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
-     * The string must be a sequence of decimal numbers, each with optional
-     * fraction and a unit suffix, such as "300ms".
-     * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
-     * The value must be a positive duration.
-     * 
- * - * string cpu_cfs_quota_period = 3; - * @return The cpuCfsQuotaPeriod. - */ - public java.lang.String getCpuCfsQuotaPeriod() { - java.lang.Object ref = cpuCfsQuotaPeriod_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cpuCfsQuotaPeriod_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
-     * The string must be a sequence of decimal numbers, each with optional
-     * fraction and a unit suffix, such as "300ms".
-     * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
-     * The value must be a positive duration.
-     * 
- * - * string cpu_cfs_quota_period = 3; - * @return The bytes for cpuCfsQuotaPeriod. - */ - public com.google.protobuf.ByteString - getCpuCfsQuotaPeriodBytes() { - java.lang.Object ref = cpuCfsQuotaPeriod_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cpuCfsQuotaPeriod_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
-     * The string must be a sequence of decimal numbers, each with optional
-     * fraction and a unit suffix, such as "300ms".
-     * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
-     * The value must be a positive duration.
-     * 
- * - * string cpu_cfs_quota_period = 3; - * @param value The cpuCfsQuotaPeriod to set. - * @return This builder for chaining. - */ - public Builder setCpuCfsQuotaPeriod( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cpuCfsQuotaPeriod_ = value; - onChanged(); - return this; - } - /** - *
-     * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
-     * The string must be a sequence of decimal numbers, each with optional
-     * fraction and a unit suffix, such as "300ms".
-     * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
-     * The value must be a positive duration.
-     * 
- * - * string cpu_cfs_quota_period = 3; - * @return This builder for chaining. - */ - public Builder clearCpuCfsQuotaPeriod() { - - cpuCfsQuotaPeriod_ = getDefaultInstance().getCpuCfsQuotaPeriod(); - onChanged(); - return this; - } - /** - *
-     * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
-     * The string must be a sequence of decimal numbers, each with optional
-     * fraction and a unit suffix, such as "300ms".
-     * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
-     * The value must be a positive duration.
-     * 
- * - * string cpu_cfs_quota_period = 3; - * @param value The bytes for cpuCfsQuotaPeriod to set. - * @return This builder for chaining. - */ - public Builder setCpuCfsQuotaPeriodBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cpuCfsQuotaPeriod_ = value; - onChanged(); - return this; - } - - 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; - 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() { - - podPidsLimit_ = 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.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 deleted file mode 100644 index 54a2d51dec0d..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeKubeletConfigOrBuilder.java +++ /dev/null @@ -1,132 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface NodeKubeletConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NodeKubeletConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Control the CPU management policy on the node.
-   * See
-   * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
-   * The following values are allowed.
-   * * "none": the default, which represents the existing scheduling behavior.
-   * * "static": allows pods with certain resource characteristics to be granted
-   * increased CPU affinity and exclusivity on the node.
-   * The default value is 'none' if unspecified.
-   * 
- * - * string cpu_manager_policy = 1; - * @return The cpuManagerPolicy. - */ - java.lang.String getCpuManagerPolicy(); - /** - *
-   * Control the CPU management policy on the node.
-   * See
-   * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
-   * The following values are allowed.
-   * * "none": the default, which represents the existing scheduling behavior.
-   * * "static": allows pods with certain resource characteristics to be granted
-   * increased CPU affinity and exclusivity on the node.
-   * The default value is 'none' if unspecified.
-   * 
- * - * string cpu_manager_policy = 1; - * @return The bytes for cpuManagerPolicy. - */ - com.google.protobuf.ByteString - getCpuManagerPolicyBytes(); - - /** - *
-   * Enable CPU CFS quota enforcement for containers that specify CPU limits.
-   * This option is enabled by default which makes kubelet use CFS quota
-   * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
-   * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
-   * all.
-   * Disable this option to mitigate CPU throttling problems while still having
-   * your pods to be in Guaranteed QoS class by specifying the CPU limits.
-   * The default value is 'true' if unspecified.
-   * 
- * - * .google.protobuf.BoolValue cpu_cfs_quota = 2; - * @return Whether the cpuCfsQuota field is set. - */ - boolean hasCpuCfsQuota(); - /** - *
-   * Enable CPU CFS quota enforcement for containers that specify CPU limits.
-   * This option is enabled by default which makes kubelet use CFS quota
-   * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
-   * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
-   * all.
-   * Disable this option to mitigate CPU throttling problems while still having
-   * your pods to be in Guaranteed QoS class by specifying the CPU limits.
-   * The default value is 'true' if unspecified.
-   * 
- * - * .google.protobuf.BoolValue cpu_cfs_quota = 2; - * @return The cpuCfsQuota. - */ - com.google.protobuf.BoolValue getCpuCfsQuota(); - /** - *
-   * Enable CPU CFS quota enforcement for containers that specify CPU limits.
-   * This option is enabled by default which makes kubelet use CFS quota
-   * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
-   * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
-   * all.
-   * Disable this option to mitigate CPU throttling problems while still having
-   * your pods to be in Guaranteed QoS class by specifying the CPU limits.
-   * The default value is 'true' if unspecified.
-   * 
- * - * .google.protobuf.BoolValue cpu_cfs_quota = 2; - */ - com.google.protobuf.BoolValueOrBuilder getCpuCfsQuotaOrBuilder(); - - /** - *
-   * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
-   * The string must be a sequence of decimal numbers, each with optional
-   * fraction and a unit suffix, such as "300ms".
-   * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
-   * The value must be a positive duration.
-   * 
- * - * string cpu_cfs_quota_period = 3; - * @return The cpuCfsQuotaPeriod. - */ - java.lang.String getCpuCfsQuotaPeriod(); - /** - *
-   * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
-   * The string must be a sequence of decimal numbers, each with optional
-   * fraction and a unit suffix, such as "300ms".
-   * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
-   * The value must be a positive duration.
-   * 
- * - * string cpu_cfs_quota_period = 3; - * @return The bytes for cpuCfsQuotaPeriod. - */ - com.google.protobuf.ByteString - getCpuCfsQuotaPeriodBytes(); - - /** - *
-   * 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(); -} 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 deleted file mode 100644 index 25fa3a560ed5..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeLabels.java +++ /dev/null @@ -1,738 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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.MapField internalGetMapField( - 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, - ""); - } - 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 java.lang.String getLabelsOrDefault( - java.lang.String key, - 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.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetLabels(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - 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(); - 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); - int from_bitField0_ = bitField0_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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()); - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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()); - 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() { - onChanged();; - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - *
-     * 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 java.lang.String getLabelsOrDefault( - java.lang.String key, - 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() { - 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() { - 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); - 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); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 9ce8b7223585..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeLabelsOrBuilder.java +++ /dev/null @@ -1,65 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index 33452b5029f6..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeManagement.java +++ /dev/null @@ -1,823 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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); - } - - public static final int AUTO_UPGRADE_FIELD_NUMBER = 1; - 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_; - } - - public static final int AUTO_REPAIR_FIELD_NUMBER = 2; - 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_; - } - - 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 upgradeOptions_ != null; - } - /** - *
-   * 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 getUpgradeOptions(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (autoUpgrade_ != false) { - output.writeBool(1, autoUpgrade_); - } - if (autoRepair_ != false) { - output.writeBool(2, autoRepair_); - } - if (upgradeOptions_ != null) { - output.writeMessage(10, getUpgradeOptions()); - } - 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 (upgradeOptions_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - autoUpgrade_ = false; - - autoRepair_ = false; - - if (upgradeOptionsBuilder_ == null) { - upgradeOptions_ = null; - } else { - upgradeOptions_ = null; - upgradeOptionsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.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); - result.autoUpgrade_ = autoUpgrade_; - result.autoRepair_ = autoRepair_; - if (upgradeOptionsBuilder_ == null) { - result.upgradeOptions_ = upgradeOptions_; - } else { - result.upgradeOptions_ = upgradeOptionsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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(); - - break; - } // case 8 - case 16: { - autoRepair_ = input.readBool(); - - break; - } // case 16 - case 82: { - input.readMessage( - getUpgradeOptionsFieldBuilder().getBuilder(), - extensionRegistry); - - 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 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; - 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() { - - 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; - 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() { - - 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 upgradeOptionsBuilder_ != null || upgradeOptions_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - upgradeOptionsBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - upgradeOptionsBuilder_.setMessage(builderForValue.build()); - } - - 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 (upgradeOptions_ != null) { - upgradeOptions_ = - com.google.container.v1.AutoUpgradeOptions.newBuilder(upgradeOptions_).mergeFrom(value).buildPartial(); - } else { - upgradeOptions_ = value; - } - onChanged(); - } else { - upgradeOptionsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Specifies the Auto Upgrade knobs for the node pool.
-     * 
- * - * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - */ - public Builder clearUpgradeOptions() { - if (upgradeOptionsBuilder_ == null) { - upgradeOptions_ = null; - onChanged(); - } else { - upgradeOptions_ = null; - upgradeOptionsBuilder_ = null; - } - - return this; - } - /** - *
-     * Specifies the Auto Upgrade knobs for the node pool.
-     * 
- * - * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - */ - public com.google.container.v1.AutoUpgradeOptions.Builder getUpgradeOptionsBuilder() { - - 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 deleted file mode 100644 index 04cd94ad14f8..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeManagementOrBuilder.java +++ /dev/null @@ -1,61 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index ee5c30909f28..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfig.java +++ /dev/null @@ -1,2038 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * Parameters for node pool-level network config.
- * 
- * - * Protobuf type {@code google.container.v1.NodeNetworkConfig} - */ -public final class NodeNetworkConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.NodeNetworkConfig) - NodeNetworkConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use NodeNetworkConfig.newBuilder() to construct. - private NodeNetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeNetworkConfig() { - podRange_ = ""; - podIpv4CidrBlock_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NodeNetworkConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-     * 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() { - @SuppressWarnings("deprecation") - com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier result = com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier.valueOf(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(); - totalEgressBandwidthTier_ = 0; - 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_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); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - to_bitField0_ |= 0x00000001; - } - result.totalEgressBandwidthTier_ = totalEgressBandwidthTier_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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) { - bitField0_ |= 0x00000001; - totalEgressBandwidthTier_ = value; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier result = com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier.valueOf(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_; - /** - *
-   * Input only. Whether to create a new range for pod IPs in this node pool.
-   * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
-   * are not specified.
-   * If neither `create_pod_range` or `pod_range` are specified, the
-   * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
-   * used.
-   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-   * This field cannot be changed after the node pool has been created.
-   * 
- * - * bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return The createPodRange. - */ - @java.lang.Override - public boolean getCreatePodRange() { - return createPodRange_; - } - - public static final int POD_RANGE_FIELD_NUMBER = 5; - private volatile java.lang.Object podRange_; - /** - *
-   * The ID of the secondary range for pod IPs.
-   * If `create_pod_range` is true, this ID is used for the new range.
-   * If `create_pod_range` is false, uses an existing secondary range with this
-   * ID.
-   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-   * This field cannot be changed after the node pool has been created.
-   * 
- * - * string pod_range = 5; - * @return The podRange. - */ - @java.lang.Override - public java.lang.String getPodRange() { - java.lang.Object ref = podRange_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - podRange_ = s; - return s; - } - } - /** - *
-   * The ID of the secondary range for pod IPs.
-   * If `create_pod_range` is true, this ID is used for the new range.
-   * If `create_pod_range` is false, uses an existing secondary range with this
-   * ID.
-   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-   * This field cannot be changed after the node pool has been created.
-   * 
- * - * string pod_range = 5; - * @return The bytes for podRange. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPodRangeBytes() { - java.lang.Object ref = podRange_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - podRange_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int POD_IPV4_CIDR_BLOCK_FIELD_NUMBER = 6; - private volatile java.lang.Object podIpv4CidrBlock_; - /** - *
-   * The IP address range for pod IPs in this node pool.
-   * Only applicable if `create_pod_range` is true.
-   * Set to blank to have a range chosen with the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
-   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-   * This field cannot be changed after the node pool has been created.
-   * 
- * - * string pod_ipv4_cidr_block = 6; - * @return The podIpv4CidrBlock. - */ - @java.lang.Override - public java.lang.String getPodIpv4CidrBlock() { - java.lang.Object ref = podIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - podIpv4CidrBlock_ = s; - return s; - } - } - /** - *
-   * The IP address range for pod IPs in this node pool.
-   * Only applicable if `create_pod_range` is true.
-   * Set to blank to have a range chosen with the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
-   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-   * This field cannot be changed after the node pool has been created.
-   * 
- * - * string pod_ipv4_cidr_block = 6; - * @return The bytes for podIpv4CidrBlock. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPodIpv4CidrBlockBytes() { - java.lang.Object ref = podIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - podIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ENABLE_PRIVATE_NODES_FIELD_NUMBER = 9; - 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_ & 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_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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()); - } - 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()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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(); - } - 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(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - createPodRange_ = false; - - podRange_ = ""; - - podIpv4CidrBlock_ = ""; - - enablePrivateNodes_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - if (networkPerformanceConfigBuilder_ == null) { - networkPerformanceConfig_ = null; - } else { - networkPerformanceConfigBuilder_.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_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); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.createPodRange_ = createPodRange_; - result.podRange_ = podRange_; - result.podIpv4CidrBlock_ = podIpv4CidrBlock_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enablePrivateNodes_ = enablePrivateNodes_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - if (networkPerformanceConfigBuilder_ == null) { - result.networkPerformanceConfig_ = networkPerformanceConfig_; - } else { - result.networkPerformanceConfig_ = networkPerformanceConfigBuilder_.build(); - } - to_bitField0_ |= 0x00000002; - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NodeNetworkConfig) { - return mergeFrom((com.google.container.v1.NodeNetworkConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NodeNetworkConfig other) { - if (other == com.google.container.v1.NodeNetworkConfig.getDefaultInstance()) return this; - if (other.getCreatePodRange() != false) { - setCreatePodRange(other.getCreatePodRange()); - } - if (!other.getPodRange().isEmpty()) { - podRange_ = other.podRange_; - onChanged(); - } - if (!other.getPodIpv4CidrBlock().isEmpty()) { - podIpv4CidrBlock_ = other.podIpv4CidrBlock_; - onChanged(); - } - if (other.hasEnablePrivateNodes()) { - setEnablePrivateNodes(other.getEnablePrivateNodes()); - } - if (other.hasNetworkPerformanceConfig()) { - mergeNetworkPerformanceConfig(other.getNetworkPerformanceConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == 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(); - - break; - } // case 32 - case 42: { - podRange_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: { - podIpv4CidrBlock_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 72: { - enablePrivateNodes_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 72 - case 90: { - input.readMessage( - getNetworkPerformanceConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 90 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - 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; - onChanged(); - return this; - } - /** - *
-     * Input only. Whether to create a new range for pod IPs in this node pool.
-     * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
-     * are not specified.
-     * If neither `create_pod_range` or `pod_range` are specified, the
-     * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
-     * used.
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearCreatePodRange() { - - createPodRange_ = false; - onChanged(); - return this; - } - - private java.lang.Object podRange_ = ""; - /** - *
-     * The ID of the secondary range for pod IPs.
-     * If `create_pod_range` is true, this ID is used for the new range.
-     * If `create_pod_range` is false, uses an existing secondary range with this
-     * ID.
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_range = 5; - * @return The podRange. - */ - public java.lang.String getPodRange() { - java.lang.Object ref = podRange_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - podRange_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The ID of the secondary range for pod IPs.
-     * If `create_pod_range` is true, this ID is used for the new range.
-     * If `create_pod_range` is false, uses an existing secondary range with this
-     * ID.
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_range = 5; - * @return The bytes for podRange. - */ - public com.google.protobuf.ByteString - getPodRangeBytes() { - java.lang.Object ref = podRange_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - podRange_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The ID of the secondary range for pod IPs.
-     * If `create_pod_range` is true, this ID is used for the new range.
-     * If `create_pod_range` is false, uses an existing secondary range with this
-     * ID.
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_range = 5; - * @param value The podRange to set. - * @return This builder for chaining. - */ - public Builder setPodRange( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - podRange_ = value; - onChanged(); - return this; - } - /** - *
-     * The ID of the secondary range for pod IPs.
-     * If `create_pod_range` is true, this ID is used for the new range.
-     * If `create_pod_range` is false, uses an existing secondary range with this
-     * ID.
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_range = 5; - * @return This builder for chaining. - */ - public Builder clearPodRange() { - - podRange_ = getDefaultInstance().getPodRange(); - onChanged(); - return this; - } - /** - *
-     * The ID of the secondary range for pod IPs.
-     * If `create_pod_range` is true, this ID is used for the new range.
-     * If `create_pod_range` is false, uses an existing secondary range with this
-     * ID.
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_range = 5; - * @param value The bytes for podRange to set. - * @return This builder for chaining. - */ - public Builder setPodRangeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - podRange_ = value; - onChanged(); - return this; - } - - private java.lang.Object podIpv4CidrBlock_ = ""; - /** - *
-     * The IP address range for pod IPs in this node pool.
-     * Only applicable if `create_pod_range` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_ipv4_cidr_block = 6; - * @return The podIpv4CidrBlock. - */ - public java.lang.String getPodIpv4CidrBlock() { - java.lang.Object ref = podIpv4CidrBlock_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - podIpv4CidrBlock_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The IP address range for pod IPs in this node pool.
-     * Only applicable if `create_pod_range` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_ipv4_cidr_block = 6; - * @return The bytes for podIpv4CidrBlock. - */ - public com.google.protobuf.ByteString - getPodIpv4CidrBlockBytes() { - java.lang.Object ref = podIpv4CidrBlock_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - podIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The IP address range for pod IPs in this node pool.
-     * Only applicable if `create_pod_range` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_ipv4_cidr_block = 6; - * @param value The podIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setPodIpv4CidrBlock( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - podIpv4CidrBlock_ = value; - onChanged(); - return this; - } - /** - *
-     * The IP address range for pod IPs in this node pool.
-     * Only applicable if `create_pod_range` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_ipv4_cidr_block = 6; - * @return This builder for chaining. - */ - public Builder clearPodIpv4CidrBlock() { - - podIpv4CidrBlock_ = getDefaultInstance().getPodIpv4CidrBlock(); - onChanged(); - return this; - } - /** - *
-     * The IP address range for pod IPs in this node pool.
-     * Only applicable if `create_pod_range` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_ipv4_cidr_block = 6; - * @param value The bytes for podIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setPodIpv4CidrBlockBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - podIpv4CidrBlock_ = value; - onChanged(); - return this; - } - - 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_ & 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_; - } - /** - *
-     * 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) { - bitField0_ |= 0x00000001; - enablePrivateNodes_ = value; - 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_ & ~0x00000001); - 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_ & 0x00000002) != 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; - onChanged(); - } else { - networkPerformanceConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - 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(); - onChanged(); - } else { - networkPerformanceConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - 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_ & 0x00000002) != 0) && - networkPerformanceConfig_ != null && - networkPerformanceConfig_ != com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.getDefaultInstance()) { - networkPerformanceConfig_ = - com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.newBuilder(networkPerformanceConfig_).mergeFrom(value).buildPartial(); - } else { - networkPerformanceConfig_ = value; - } - onChanged(); - } else { - networkPerformanceConfigBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - *
-     * Network bandwidth tier configuration.
-     * 
- * - * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - */ - public Builder clearNetworkPerformanceConfig() { - if (networkPerformanceConfigBuilder_ == null) { - networkPerformanceConfig_ = null; - onChanged(); - } else { - networkPerformanceConfigBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - 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_ |= 0x00000002; - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index d5b386e12354..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfigOrBuilder.java +++ /dev/null @@ -1,144 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface NodeNetworkConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NodeNetworkConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Input only. Whether to create a new range for pod IPs in this node pool.
-   * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
-   * are not specified.
-   * If neither `create_pod_range` or `pod_range` are specified, the
-   * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
-   * used.
-   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-   * This field cannot be changed after the node pool has been created.
-   * 
- * - * bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return The createPodRange. - */ - boolean getCreatePodRange(); - - /** - *
-   * The ID of the secondary range for pod IPs.
-   * If `create_pod_range` is true, this ID is used for the new range.
-   * If `create_pod_range` is false, uses an existing secondary range with this
-   * ID.
-   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-   * This field cannot be changed after the node pool has been created.
-   * 
- * - * string pod_range = 5; - * @return The podRange. - */ - java.lang.String getPodRange(); - /** - *
-   * The ID of the secondary range for pod IPs.
-   * If `create_pod_range` is true, this ID is used for the new range.
-   * If `create_pod_range` is false, uses an existing secondary range with this
-   * ID.
-   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-   * This field cannot be changed after the node pool has been created.
-   * 
- * - * string pod_range = 5; - * @return The bytes for podRange. - */ - com.google.protobuf.ByteString - getPodRangeBytes(); - - /** - *
-   * The IP address range for pod IPs in this node pool.
-   * Only applicable if `create_pod_range` is true.
-   * Set to blank to have a range chosen with the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
-   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-   * This field cannot be changed after the node pool has been created.
-   * 
- * - * string pod_ipv4_cidr_block = 6; - * @return The podIpv4CidrBlock. - */ - java.lang.String getPodIpv4CidrBlock(); - /** - *
-   * The IP address range for pod IPs in this node pool.
-   * Only applicable if `create_pod_range` is true.
-   * Set to blank to have a range chosen with the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
-   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-   * This field cannot be changed after the node pool has been created.
-   * 
- * - * string pod_ipv4_cidr_block = 6; - * @return The bytes for podIpv4CidrBlock. - */ - com.google.protobuf.ByteString - getPodIpv4CidrBlockBytes(); - - /** - *
-   * 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(); -} 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 deleted file mode 100644 index ffe4e68ce791..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java +++ /dev/null @@ -1,7933 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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.EMPTY; - selfLink_ = ""; - version_ = ""; - instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - status_ = 0; - statusMessage_ = ""; - conditions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NodePool(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-     * The maximum number of nodes that can be created beyond the current size
-     * of the node pool during the upgrade process.
-     * 
- * - * int32 max_surge = 1; - * @return The maxSurge. - */ - @java.lang.Override - public int getMaxSurge() { - return maxSurge_; - } - - public static final int MAX_UNAVAILABLE_FIELD_NUMBER = 2; - private int maxUnavailable_; - /** - *
-     * The maximum number of nodes that can be simultaneously unavailable during
-     * the upgrade process. A node is considered available if its status is
-     * Ready.
-     * 
- * - * int32 max_unavailable = 2; - * @return The maxUnavailable. - */ - @java.lang.Override - public int getMaxUnavailable() { - return maxUnavailable_; - } - - public static final int STRATEGY_FIELD_NUMBER = 3; - private int strategy_; - /** - *
-     * 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() { - @SuppressWarnings("deprecation") - com.google.container.v1.NodePoolUpdateStrategy result = com.google.container.v1.NodePoolUpdateStrategy.valueOf(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(); - maxSurge_ = 0; - - maxUnavailable_ = 0; - - strategy_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - if (blueGreenSettingsBuilder_ == null) { - blueGreenSettings_ = null; - } else { - blueGreenSettingsBuilder_.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_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); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.maxSurge_ = maxSurge_; - result.maxUnavailable_ = maxUnavailable_; - if (((from_bitField0_ & 0x00000001) != 0)) { - to_bitField0_ |= 0x00000001; - } - result.strategy_ = strategy_; - if (((from_bitField0_ & 0x00000002) != 0)) { - if (blueGreenSettingsBuilder_ == null) { - result.blueGreenSettings_ = blueGreenSettings_; - } else { - result.blueGreenSettings_ = blueGreenSettingsBuilder_.build(); - } - to_bitField0_ |= 0x00000002; - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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(); - - break; - } // case 8 - case 16: { - maxUnavailable_ = input.readInt32(); - - break; - } // case 16 - case 24: { - strategy_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 24 - case 34: { - input.readMessage( - getBlueGreenSettingsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - 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; - onChanged(); - return this; - } - /** - *
-       * The maximum number of nodes that can be created beyond the current size
-       * of the node pool during the upgrade process.
-       * 
- * - * int32 max_surge = 1; - * @return This builder for chaining. - */ - public Builder clearMaxSurge() { - - maxSurge_ = 0; - onChanged(); - return this; - } - - private int maxUnavailable_ ; - /** - *
-       * The maximum number of nodes that can be simultaneously unavailable during
-       * the upgrade process. A node is considered available if its status is
-       * Ready.
-       * 
- * - * int32 max_unavailable = 2; - * @return The maxUnavailable. - */ - @java.lang.Override - public int getMaxUnavailable() { - return maxUnavailable_; - } - /** - *
-       * The maximum number of nodes that can be simultaneously unavailable during
-       * the upgrade process. A node is considered available if its status is
-       * Ready.
-       * 
- * - * int32 max_unavailable = 2; - * @param value The maxUnavailable to set. - * @return This builder for chaining. - */ - public Builder setMaxUnavailable(int value) { - - maxUnavailable_ = value; - onChanged(); - return this; - } - /** - *
-       * The maximum number of nodes that can be simultaneously unavailable during
-       * the upgrade process. A node is considered available if its status is
-       * Ready.
-       * 
- * - * int32 max_unavailable = 2; - * @return This builder for chaining. - */ - public Builder clearMaxUnavailable() { - - maxUnavailable_ = 0; - onChanged(); - return this; - } - - 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; - * @param value The enum numeric value on the wire for strategy to set. - * @return This builder for chaining. - */ - public Builder setStrategyValue(int value) { - bitField0_ |= 0x00000001; - strategy_ = value; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1.NodePoolUpdateStrategy result = com.google.container.v1.NodePoolUpdateStrategy.valueOf(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_ |= 0x00000001; - 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_ & ~0x00000001); - 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_ & 0x00000002) != 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; - onChanged(); - } else { - blueGreenSettingsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - 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(); - onChanged(); - } else { - blueGreenSettingsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - 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_ & 0x00000002) != 0) && - blueGreenSettings_ != null && - blueGreenSettings_ != com.google.container.v1.BlueGreenSettings.getDefaultInstance()) { - blueGreenSettings_ = - com.google.container.v1.BlueGreenSettings.newBuilder(blueGreenSettings_).mergeFrom(value).buildPartial(); - } else { - blueGreenSettings_ = value; - } - onChanged(); - } else { - blueGreenSettingsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - *
-       * Settings for blue-green upgrade strategy.
-       * 
- * - * optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; - */ - public Builder clearBlueGreenSettings() { - if (blueGreenSettingsBuilder_ == null) { - blueGreenSettings_ = null; - onChanged(); - } else { - blueGreenSettingsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - 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_ |= 0x00000002; - 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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.EMPTY; - greenInstanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bluePoolDeletionStartTime_ = ""; - greenPoolVersion_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BlueGreenInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-       * 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() { - @SuppressWarnings("deprecation") - com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase result = com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase.valueOf(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; - private com.google.protobuf.LazyStringList 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 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; - private com.google.protobuf.LazyStringList 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 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; - 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; - 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(); - phase_ = 0; - - blueInstanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - greenInstanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - 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); - int from_bitField0_ = bitField0_; - result.phase_ = phase_; - if (((bitField0_ & 0x00000001) != 0)) { - blueInstanceGroupUrls_ = blueInstanceGroupUrls_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.blueInstanceGroupUrls_ = blueInstanceGroupUrls_; - if (((bitField0_ & 0x00000002) != 0)) { - greenInstanceGroupUrls_ = greenInstanceGroupUrls_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.greenInstanceGroupUrls_ = greenInstanceGroupUrls_; - result.bluePoolDeletionStartTime_ = bluePoolDeletionStartTime_; - result.greenPoolVersion_ = greenPoolVersion_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NodePool.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_ = (bitField0_ & ~0x00000001); - } else { - ensureBlueInstanceGroupUrlsIsMutable(); - blueInstanceGroupUrls_.addAll(other.blueInstanceGroupUrls_); - } - onChanged(); - } - if (!other.greenInstanceGroupUrls_.isEmpty()) { - if (greenInstanceGroupUrls_.isEmpty()) { - greenInstanceGroupUrls_ = other.greenInstanceGroupUrls_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureGreenInstanceGroupUrlsIsMutable(); - greenInstanceGroupUrls_.addAll(other.greenInstanceGroupUrls_); - } - onChanged(); - } - if (!other.getBluePoolDeletionStartTime().isEmpty()) { - bluePoolDeletionStartTime_ = other.bluePoolDeletionStartTime_; - onChanged(); - } - if (!other.getGreenPoolVersion().isEmpty()) { - greenPoolVersion_ = other.greenPoolVersion_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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(); - - break; - } // case 34 - case 42: { - greenPoolVersion_ = input.readStringRequireUtf8(); - - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase result = com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase.valueOf(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(); - } - - 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() { - - phase_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList blueInstanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureBlueInstanceGroupUrlsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - blueInstanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(blueInstanceGroupUrls_); - bitField0_ |= 0x00000001; - } - } - /** - *
-         * 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_.getUnmodifiableView(); - } - /** - *
-         * 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); - 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); - 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_); - 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.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - 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); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList greenInstanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureGreenInstanceGroupUrlsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - greenInstanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(greenInstanceGroupUrls_); - bitField0_ |= 0x00000002; - } - } - /** - *
-         * 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_.getUnmodifiableView(); - } - /** - *
-         * 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); - 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); - 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_); - 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.EMPTY; - 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 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); - 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; - 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(); - 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; - 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; - onChanged(); - return this; - } - /** - *
-         * Version of green pool.
-         * 
- * - * string green_pool_version = 5; - * @return This builder for chaining. - */ - public Builder clearGreenPoolVersion() { - - greenPoolVersion_ = getDefaultInstance().getGreenPoolVersion(); - 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; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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; - } - - } - - 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 blueGreenInfo_ != null; - } - /** - *
-     * 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 getBlueGreenInfo(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blueGreenInfo_ != null) { - output.writeMessage(1, getBlueGreenInfo()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (blueGreenInfo_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (blueGreenInfoBuilder_ == null) { - blueGreenInfo_ = null; - } else { - blueGreenInfo_ = null; - 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 (blueGreenInfoBuilder_ == null) { - result.blueGreenInfo_ = blueGreenInfo_; - } else { - result.blueGreenInfo_ = blueGreenInfoBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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); - - 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 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 blueGreenInfoBuilder_ != null || blueGreenInfo_ != null; - } - /** - *
-       * 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; - onChanged(); - } else { - blueGreenInfoBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - blueGreenInfoBuilder_.setMessage(builderForValue.build()); - } - - 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 (blueGreenInfo_ != null) { - blueGreenInfo_ = - com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.newBuilder(blueGreenInfo_).mergeFrom(value).buildPartial(); - } else { - blueGreenInfo_ = value; - } - onChanged(); - } else { - blueGreenInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Information of a blue-green upgrade.
-       * 
- * - * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - */ - public Builder clearBlueGreenInfo() { - if (blueGreenInfoBuilder_ == null) { - blueGreenInfo_ = null; - onChanged(); - } else { - blueGreenInfo_ = null; - blueGreenInfoBuilder_ = null; - } - - 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() { - - 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 static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-   * The name of the node pool.
-   * 
- * - * string name = 1; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name of the node pool.
-   * 
- * - * string name = 1; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONFIG_FIELD_NUMBER = 2; - private com.google.container.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 config_ != null; - } - /** - *
-   * 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 getConfig(); - } - - public static final int INITIAL_NODE_COUNT_FIELD_NUMBER = 3; - private int initialNodeCount_; - /** - *
-   * The initial node count for the pool. You must ensure that your
-   * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
-   * is sufficient for this number of instances. You must also have available
-   * firewall and routes quota.
-   * 
- * - * int32 initial_node_count = 3; - * @return The initialNodeCount. - */ - @java.lang.Override - public int getInitialNodeCount() { - return initialNodeCount_; - } - - public static final int LOCATIONS_FIELD_NUMBER = 13; - private com.google.protobuf.LazyStringList locations_; - /** - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes should be located.
-   * If this value is unspecified during node pool creation, the
-   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-   * value will be used, instead.
-   * Warning: changing node pool locations will result in nodes being added
-   * and/or removed.
-   * 
- * - * repeated string locations = 13; - * @return A list containing the locations. - */ - public com.google.protobuf.ProtocolStringList - getLocationsList() { - return locations_; - } - /** - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes should be located.
-   * If this value is unspecified during node pool creation, the
-   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-   * value will be used, instead.
-   * Warning: changing node pool locations will result in nodes being added
-   * and/or removed.
-   * 
- * - * repeated string locations = 13; - * @return The count of locations. - */ - public int getLocationsCount() { - return locations_.size(); - } - /** - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes should be located.
-   * If this value is unspecified during node pool creation, the
-   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-   * value will be used, instead.
-   * Warning: changing node pool locations will result in nodes being added
-   * and/or removed.
-   * 
- * - * repeated string locations = 13; - * @param index The index of the element to return. - * @return The locations at the given index. - */ - public java.lang.String getLocations(int index) { - return locations_.get(index); - } - /** - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes should be located.
-   * If this value is unspecified during node pool creation, the
-   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-   * value will be used, instead.
-   * Warning: changing node pool locations will result in nodes being added
-   * and/or removed.
-   * 
- * - * repeated string locations = 13; - * @param index The index of the value to return. - * @return The bytes of the locations at the given index. - */ - public com.google.protobuf.ByteString - getLocationsBytes(int index) { - return locations_.getByteString(index); - } - - public static final int NETWORK_CONFIG_FIELD_NUMBER = 14; - private com.google.container.v1.NodeNetworkConfig networkConfig_; - /** - *
-   * Networking configuration for this NodePool. If specified, it overrides the
-   * cluster-level defaults.
-   * 
- * - * .google.container.v1.NodeNetworkConfig network_config = 14; - * @return Whether the networkConfig field is set. - */ - @java.lang.Override - public boolean hasNetworkConfig() { - return networkConfig_ != null; - } - /** - *
-   * Networking configuration for this NodePool. If specified, it overrides the
-   * cluster-level defaults.
-   * 
- * - * .google.container.v1.NodeNetworkConfig network_config = 14; - * @return The networkConfig. - */ - @java.lang.Override - public com.google.container.v1.NodeNetworkConfig getNetworkConfig() { - return networkConfig_ == null ? com.google.container.v1.NodeNetworkConfig.getDefaultInstance() : networkConfig_; - } - /** - *
-   * Networking configuration for this NodePool. If specified, it overrides the
-   * cluster-level defaults.
-   * 
- * - * .google.container.v1.NodeNetworkConfig network_config = 14; - */ - @java.lang.Override - public com.google.container.v1.NodeNetworkConfigOrBuilder getNetworkConfigOrBuilder() { - return getNetworkConfig(); - } - - public static final int SELF_LINK_FIELD_NUMBER = 100; - private volatile java.lang.Object selfLink_; - /** - *
-   * [Output only] Server-defined URL for the resource.
-   * 
- * - * string self_link = 100; - * @return The selfLink. - */ - @java.lang.Override - public java.lang.String getSelfLink() { - java.lang.Object ref = selfLink_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - selfLink_ = s; - return s; - } - } - /** - *
-   * [Output only] Server-defined URL for the resource.
-   * 
- * - * string self_link = 100; - * @return The bytes for selfLink. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSelfLinkBytes() { - java.lang.Object ref = selfLink_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - selfLink_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERSION_FIELD_NUMBER = 101; - private volatile java.lang.Object version_; - /** - *
-   * The version of the Kubernetes of this node.
-   * 
- * - * string version = 101; - * @return The version. - */ - @java.lang.Override - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } - } - /** - *
-   * The version of the Kubernetes of this node.
-   * 
- * - * string version = 101; - * @return The bytes for version. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INSTANCE_GROUP_URLS_FIELD_NUMBER = 102; - private com.google.protobuf.LazyStringList instanceGroupUrls_; - /** - *
-   * [Output only] The resource URLs of the [managed instance
-   * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
-   * associated with this node pool.
-   * 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_; - /** - *
-   * [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() { - @SuppressWarnings("deprecation") - com.google.container.v1.NodePool.Status result = com.google.container.v1.NodePool.Status.valueOf(status_); - return result == null ? com.google.container.v1.NodePool.Status.UNRECOGNIZED : result; - } - - public static final int STATUS_MESSAGE_FIELD_NUMBER = 104; - private volatile java.lang.Object statusMessage_; - /** - *
-   * [Output only] Deprecated. Use conditions instead.
-   * Additional information about the current status of this
-   * node pool instance, if available.
-   * 
- * - * string status_message = 104 [deprecated = true]; - * @deprecated google.container.v1.NodePool.status_message is deprecated. - * See google/container/v1/cluster_service.proto;l=3043 - * @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=3043 - * @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 autoscaling_ != null; - } - /** - *
-   * 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 getAutoscaling(); - } - - 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 management_ != null; - } - /** - *
-   * 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 getManagement(); - } - - 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 maxPodsConstraint_ != null; - } - /** - *
-   * 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 getMaxPodsConstraint(); - } - - public static final int CONDITIONS_FIELD_NUMBER = 105; - private java.util.List conditions_; - /** - *
-   * Which conditions caused the current node pool state.
-   * 
- * - * repeated .google.container.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_; - /** - *
-   * [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 upgradeSettings_ != null; - } - /** - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - * @return The upgradeSettings. - */ - @java.lang.Override - public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { - return upgradeSettings_ == null ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() : upgradeSettings_; - } - /** - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - @java.lang.Override - public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { - return getUpgradeSettings(); - } - - 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 updateInfo_ != null; - } - /** - *
-   * 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 getUpdateInfo(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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 (config_ != null) { - output.writeMessage(2, getConfig()); - } - if (initialNodeCount_ != 0) { - output.writeInt32(3, initialNodeCount_); - } - if (autoscaling_ != null) { - output.writeMessage(4, getAutoscaling()); - } - if (management_ != null) { - output.writeMessage(5, getManagement()); - } - if (maxPodsConstraint_ != null) { - output.writeMessage(6, getMaxPodsConstraint()); - } - if (podIpv4CidrSize_ != 0) { - output.writeInt32(7, podIpv4CidrSize_); - } - for (int i = 0; i < locations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, locations_.getRaw(i)); - } - if (networkConfig_ != null) { - 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 (upgradeSettings_ != null) { - output.writeMessage(107, getUpgradeSettings()); - } - if (updateInfo_ != null) { - output.writeMessage(109, getUpdateInfo()); - } - getUnknownFields().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 (config_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConfig()); - } - if (initialNodeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, initialNodeCount_); - } - if (autoscaling_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getAutoscaling()); - } - if (management_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getManagement()); - } - if (maxPodsConstraint_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getMaxPodsConstraint()); - } - if (podIpv4CidrSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, podIpv4CidrSize_); - } - { - int dataSize = 0; - for (int i = 0; i < locations_.size(); i++) { - dataSize += computeStringSizeNoTag(locations_.getRaw(i)); - } - size += dataSize; - size += 1 * getLocationsList().size(); - } - if (networkConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getNetworkConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, selfLink_); - } - 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 (upgradeSettings_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(107, getUpgradeSettings()); - } - if (updateInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(109, getUpdateInfo()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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 (hasUpdateInfo() != other.hasUpdateInfo()) return false; - if (hasUpdateInfo()) { - if (!getUpdateInfo() - .equals(other.getUpdateInfo())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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 (hasUpdateInfo()) { - hash = (37 * hash) + UPDATE_INFO_FIELD_NUMBER; - hash = (53 * hash) + getUpdateInfo().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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (configBuilder_ == null) { - config_ = null; - } else { - config_ = null; - configBuilder_ = null; - } - initialNodeCount_ = 0; - - locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (networkConfigBuilder_ == null) { - networkConfig_ = null; - } else { - networkConfig_ = null; - networkConfigBuilder_ = null; - } - selfLink_ = ""; - - version_ = ""; - - instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - status_ = 0; - - statusMessage_ = ""; - - if (autoscalingBuilder_ == null) { - autoscaling_ = null; - } else { - autoscaling_ = null; - autoscalingBuilder_ = null; - } - if (managementBuilder_ == null) { - management_ = null; - } else { - management_ = null; - managementBuilder_ = null; - } - if (maxPodsConstraintBuilder_ == null) { - maxPodsConstraint_ = null; - } else { - maxPodsConstraint_ = null; - maxPodsConstraintBuilder_ = null; - } - if (conditionsBuilder_ == null) { - conditions_ = java.util.Collections.emptyList(); - } else { - conditions_ = null; - conditionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - podIpv4CidrSize_ = 0; - - if (upgradeSettingsBuilder_ == null) { - upgradeSettings_ = null; - } else { - upgradeSettings_ = null; - upgradeSettingsBuilder_ = null; - } - if (updateInfoBuilder_ == null) { - updateInfo_ = null; - } else { - updateInfo_ = null; - updateInfoBuilder_ = 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); - int from_bitField0_ = bitField0_; - result.name_ = name_; - if (configBuilder_ == null) { - result.config_ = config_; - } else { - result.config_ = configBuilder_.build(); - } - result.initialNodeCount_ = initialNodeCount_; - if (((bitField0_ & 0x00000001) != 0)) { - locations_ = locations_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.locations_ = locations_; - if (networkConfigBuilder_ == null) { - result.networkConfig_ = networkConfig_; - } else { - result.networkConfig_ = networkConfigBuilder_.build(); - } - result.selfLink_ = selfLink_; - result.version_ = version_; - if (((bitField0_ & 0x00000002) != 0)) { - instanceGroupUrls_ = instanceGroupUrls_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.instanceGroupUrls_ = instanceGroupUrls_; - result.status_ = status_; - result.statusMessage_ = statusMessage_; - if (autoscalingBuilder_ == null) { - result.autoscaling_ = autoscaling_; - } else { - result.autoscaling_ = autoscalingBuilder_.build(); - } - if (managementBuilder_ == null) { - result.management_ = management_; - } else { - result.management_ = managementBuilder_.build(); - } - if (maxPodsConstraintBuilder_ == null) { - result.maxPodsConstraint_ = maxPodsConstraint_; - } else { - result.maxPodsConstraint_ = maxPodsConstraintBuilder_.build(); - } - if (conditionsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - conditions_ = java.util.Collections.unmodifiableList(conditions_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.conditions_ = conditions_; - } else { - result.conditions_ = conditionsBuilder_.build(); - } - result.podIpv4CidrSize_ = podIpv4CidrSize_; - if (upgradeSettingsBuilder_ == null) { - result.upgradeSettings_ = upgradeSettings_; - } else { - result.upgradeSettings_ = upgradeSettingsBuilder_.build(); - } - if (updateInfoBuilder_ == null) { - result.updateInfo_ = updateInfo_; - } else { - result.updateInfo_ = updateInfoBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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_; - onChanged(); - } - if (other.hasConfig()) { - mergeConfig(other.getConfig()); - } - if (other.getInitialNodeCount() != 0) { - setInitialNodeCount(other.getInitialNodeCount()); - } - if (!other.locations_.isEmpty()) { - if (locations_.isEmpty()) { - locations_ = other.locations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLocationsIsMutable(); - locations_.addAll(other.locations_); - } - onChanged(); - } - if (other.hasNetworkConfig()) { - mergeNetworkConfig(other.getNetworkConfig()); - } - if (!other.getSelfLink().isEmpty()) { - selfLink_ = other.selfLink_; - onChanged(); - } - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - onChanged(); - } - if (!other.instanceGroupUrls_.isEmpty()) { - if (instanceGroupUrls_.isEmpty()) { - instanceGroupUrls_ = other.instanceGroupUrls_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureInstanceGroupUrlsIsMutable(); - instanceGroupUrls_.addAll(other.instanceGroupUrls_); - } - onChanged(); - } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); - } - if (!other.getStatusMessage().isEmpty()) { - statusMessage_ = other.statusMessage_; - onChanged(); - } - if (other.hasAutoscaling()) { - mergeAutoscaling(other.getAutoscaling()); - } - if (other.hasManagement()) { - mergeManagement(other.getManagement()); - } - if (other.hasMaxPodsConstraint()) { - mergeMaxPodsConstraint(other.getMaxPodsConstraint()); - } - if (conditionsBuilder_ == null) { - if (!other.conditions_.isEmpty()) { - if (conditions_.isEmpty()) { - conditions_ = other.conditions_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureConditionsIsMutable(); - conditions_.addAll(other.conditions_); - } - onChanged(); - } - } else { - if (!other.conditions_.isEmpty()) { - if (conditionsBuilder_.isEmpty()) { - conditionsBuilder_.dispose(); - conditionsBuilder_ = null; - conditions_ = other.conditions_; - bitField0_ = (bitField0_ & ~0x00000004); - conditionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getConditionsFieldBuilder() : null; - } else { - conditionsBuilder_.addAllMessages(other.conditions_); - } - } - } - if (other.getPodIpv4CidrSize() != 0) { - setPodIpv4CidrSize(other.getPodIpv4CidrSize()); - } - if (other.hasUpgradeSettings()) { - mergeUpgradeSettings(other.getUpgradeSettings()); - } - if (other.hasUpdateInfo()) { - mergeUpdateInfo(other.getUpdateInfo()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - input.readMessage( - getConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - case 24: { - initialNodeCount_ = input.readInt32(); - - break; - } // case 24 - case 34: { - input.readMessage( - getAutoscalingFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 34 - case 42: { - input.readMessage( - getManagementFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 42 - case 50: { - input.readMessage( - getMaxPodsConstraintFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 50 - case 56: { - podIpv4CidrSize_ = input.readInt32(); - - 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); - - break; - } // case 114 - case 802: { - selfLink_ = input.readStringRequireUtf8(); - - break; - } // case 802 - case 810: { - version_ = input.readStringRequireUtf8(); - - break; - } // case 810 - case 818: { - java.lang.String s = input.readStringRequireUtf8(); - ensureInstanceGroupUrlsIsMutable(); - instanceGroupUrls_.add(s); - break; - } // case 818 - case 824: { - status_ = input.readEnum(); - - break; - } // case 824 - case 834: { - statusMessage_ = input.readStringRequireUtf8(); - - 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); - - break; - } // case 858 - case 874: { - input.readMessage( - getUpdateInfoFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 874 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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; - onChanged(); - return this; - } - /** - *
-     * The name of the node pool.
-     * 
- * - * string name = 1; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name of the node pool.
-     * 
- * - * string name = 1; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.container.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 configBuilder_ != null || config_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - configBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - configBuilder_.setMessage(builderForValue.build()); - } - - 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 (config_ != null) { - config_ = - com.google.container.v1.NodeConfig.newBuilder(config_).mergeFrom(value).buildPartial(); - } else { - config_ = value; - } - onChanged(); - } else { - configBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The node configuration of the pool.
-     * 
- * - * .google.container.v1.NodeConfig config = 2; - */ - public Builder clearConfig() { - if (configBuilder_ == null) { - config_ = null; - onChanged(); - } else { - config_ = null; - configBuilder_ = null; - } - - return this; - } - /** - *
-     * The node configuration of the pool.
-     * 
- * - * .google.container.v1.NodeConfig config = 2; - */ - public com.google.container.v1.NodeConfig.Builder getConfigBuilder() { - - 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; - onChanged(); - return this; - } - /** - *
-     * The initial node count for the pool. You must ensure that your
-     * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
-     * is sufficient for this number of instances. You must also have available
-     * firewall and routes quota.
-     * 
- * - * int32 initial_node_count = 3; - * @return This builder for chaining. - */ - public Builder clearInitialNodeCount() { - - initialNodeCount_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureLocationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - locations_ = new com.google.protobuf.LazyStringArrayList(locations_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes should be located.
-     * If this value is unspecified during node pool creation, the
-     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-     * value will be used, instead.
-     * Warning: changing node pool locations will result in nodes being added
-     * and/or removed.
-     * 
- * - * repeated string locations = 13; - * @return A list containing the locations. - */ - public com.google.protobuf.ProtocolStringList - getLocationsList() { - return locations_.getUnmodifiableView(); - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes should be located.
-     * If this value is unspecified during node pool creation, the
-     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-     * value will be used, instead.
-     * Warning: changing node pool locations will result in nodes being added
-     * and/or removed.
-     * 
- * - * repeated string locations = 13; - * @return The count of locations. - */ - public int getLocationsCount() { - return locations_.size(); - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes should be located.
-     * If this value is unspecified during node pool creation, the
-     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-     * value will be used, instead.
-     * Warning: changing node pool locations will result in nodes being added
-     * and/or removed.
-     * 
- * - * repeated string locations = 13; - * @param index The index of the element to return. - * @return The locations at the given index. - */ - public java.lang.String getLocations(int index) { - return locations_.get(index); - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes should be located.
-     * If this value is unspecified during node pool creation, the
-     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-     * value will be used, instead.
-     * Warning: changing node pool locations will result in nodes being added
-     * and/or removed.
-     * 
- * - * repeated string locations = 13; - * @param index The index of the value to return. - * @return The bytes of the locations at the given index. - */ - public com.google.protobuf.ByteString - getLocationsBytes(int index) { - return locations_.getByteString(index); - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes should be located.
-     * If this value is unspecified during node pool creation, the
-     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-     * value will be used, instead.
-     * Warning: changing node pool locations will result in nodes being added
-     * and/or removed.
-     * 
- * - * repeated string locations = 13; - * @param index The index to set the value at. - * @param value The locations to set. - * @return This builder for chaining. - */ - public Builder setLocations( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); - locations_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes should be located.
-     * If this value is unspecified during node pool creation, the
-     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-     * value will be used, instead.
-     * Warning: changing node pool locations will result in nodes being added
-     * and/or removed.
-     * 
- * - * repeated string locations = 13; - * @param value The locations to add. - * @return This builder for chaining. - */ - public Builder addLocations( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); - locations_.add(value); - onChanged(); - return this; - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes should be located.
-     * If this value is unspecified during node pool creation, the
-     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-     * value will be used, instead.
-     * Warning: changing node pool locations will result in nodes being added
-     * and/or removed.
-     * 
- * - * repeated string locations = 13; - * @param values The locations to add. - * @return This builder for chaining. - */ - public Builder addAllLocations( - java.lang.Iterable values) { - ensureLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, locations_); - onChanged(); - return this; - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes should be located.
-     * If this value is unspecified during node pool creation, the
-     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-     * value will be used, instead.
-     * Warning: changing node pool locations will result in nodes being added
-     * and/or removed.
-     * 
- * - * repeated string locations = 13; - * @return This builder for chaining. - */ - public Builder clearLocations() { - locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes should be located.
-     * If this value is unspecified during node pool creation, the
-     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-     * value will be used, instead.
-     * Warning: changing node pool locations will result in nodes being added
-     * and/or removed.
-     * 
- * - * repeated string locations = 13; - * @param value The bytes of the locations to add. - * @return This builder for chaining. - */ - public Builder addLocationsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureLocationsIsMutable(); - locations_.add(value); - onChanged(); - return this; - } - - private com.google.container.v1.NodeNetworkConfig networkConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeNetworkConfig, com.google.container.v1.NodeNetworkConfig.Builder, com.google.container.v1.NodeNetworkConfigOrBuilder> networkConfigBuilder_; - /** - *
-     * Networking configuration for this NodePool. If specified, it overrides the
-     * cluster-level defaults.
-     * 
- * - * .google.container.v1.NodeNetworkConfig network_config = 14; - * @return Whether the networkConfig field is set. - */ - public boolean hasNetworkConfig() { - return networkConfigBuilder_ != null || networkConfig_ != null; - } - /** - *
-     * Networking configuration for this NodePool. If specified, it overrides the
-     * cluster-level defaults.
-     * 
- * - * .google.container.v1.NodeNetworkConfig network_config = 14; - * @return The networkConfig. - */ - public com.google.container.v1.NodeNetworkConfig getNetworkConfig() { - if (networkConfigBuilder_ == null) { - return networkConfig_ == null ? com.google.container.v1.NodeNetworkConfig.getDefaultInstance() : networkConfig_; - } else { - return networkConfigBuilder_.getMessage(); - } - } - /** - *
-     * Networking configuration for this NodePool. If specified, it overrides the
-     * cluster-level defaults.
-     * 
- * - * .google.container.v1.NodeNetworkConfig network_config = 14; - */ - public Builder setNetworkConfig(com.google.container.v1.NodeNetworkConfig value) { - if (networkConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - networkConfig_ = value; - onChanged(); - } else { - networkConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Networking configuration for this NodePool. If specified, it overrides the
-     * cluster-level defaults.
-     * 
- * - * .google.container.v1.NodeNetworkConfig network_config = 14; - */ - public Builder setNetworkConfig( - com.google.container.v1.NodeNetworkConfig.Builder builderForValue) { - if (networkConfigBuilder_ == null) { - networkConfig_ = builderForValue.build(); - onChanged(); - } else { - networkConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Networking configuration for this NodePool. If specified, it overrides the
-     * cluster-level defaults.
-     * 
- * - * .google.container.v1.NodeNetworkConfig network_config = 14; - */ - public Builder mergeNetworkConfig(com.google.container.v1.NodeNetworkConfig value) { - if (networkConfigBuilder_ == null) { - if (networkConfig_ != null) { - networkConfig_ = - com.google.container.v1.NodeNetworkConfig.newBuilder(networkConfig_).mergeFrom(value).buildPartial(); - } else { - networkConfig_ = value; - } - onChanged(); - } else { - networkConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Networking configuration for this NodePool. If specified, it overrides the
-     * cluster-level defaults.
-     * 
- * - * .google.container.v1.NodeNetworkConfig network_config = 14; - */ - public Builder clearNetworkConfig() { - if (networkConfigBuilder_ == null) { - networkConfig_ = null; - onChanged(); - } else { - networkConfig_ = null; - networkConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Networking configuration for this NodePool. If specified, it overrides the
-     * cluster-level defaults.
-     * 
- * - * .google.container.v1.NodeNetworkConfig network_config = 14; - */ - public com.google.container.v1.NodeNetworkConfig.Builder getNetworkConfigBuilder() { - - onChanged(); - return getNetworkConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Networking configuration for this NodePool. If specified, it overrides the
-     * cluster-level defaults.
-     * 
- * - * .google.container.v1.NodeNetworkConfig network_config = 14; - */ - public com.google.container.v1.NodeNetworkConfigOrBuilder getNetworkConfigOrBuilder() { - if (networkConfigBuilder_ != null) { - return networkConfigBuilder_.getMessageOrBuilder(); - } else { - return networkConfig_ == null ? - com.google.container.v1.NodeNetworkConfig.getDefaultInstance() : networkConfig_; - } - } - /** - *
-     * Networking configuration for this NodePool. If specified, it overrides the
-     * cluster-level defaults.
-     * 
- * - * .google.container.v1.NodeNetworkConfig network_config = 14; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeNetworkConfig, com.google.container.v1.NodeNetworkConfig.Builder, com.google.container.v1.NodeNetworkConfigOrBuilder> - getNetworkConfigFieldBuilder() { - if (networkConfigBuilder_ == null) { - networkConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeNetworkConfig, com.google.container.v1.NodeNetworkConfig.Builder, com.google.container.v1.NodeNetworkConfigOrBuilder>( - getNetworkConfig(), - getParentForChildren(), - isClean()); - networkConfig_ = null; - } - return networkConfigBuilder_; - } - - private java.lang.Object selfLink_ = ""; - /** - *
-     * [Output only] Server-defined URL for the resource.
-     * 
- * - * string self_link = 100; - * @return The selfLink. - */ - public java.lang.String getSelfLink() { - java.lang.Object ref = selfLink_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - selfLink_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * [Output only] Server-defined URL for the resource.
-     * 
- * - * string self_link = 100; - * @return The bytes for selfLink. - */ - public com.google.protobuf.ByteString - getSelfLinkBytes() { - java.lang.Object ref = selfLink_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - selfLink_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * [Output only] Server-defined URL for the resource.
-     * 
- * - * string self_link = 100; - * @param value The selfLink to set. - * @return This builder for chaining. - */ - public Builder setSelfLink( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - selfLink_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] Server-defined URL for the resource.
-     * 
- * - * string self_link = 100; - * @return This builder for chaining. - */ - public Builder clearSelfLink() { - - selfLink_ = getDefaultInstance().getSelfLink(); - onChanged(); - return this; - } - /** - *
-     * [Output only] Server-defined URL for the resource.
-     * 
- * - * string self_link = 100; - * @param value The bytes for selfLink to set. - * @return This builder for chaining. - */ - public Builder setSelfLinkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - selfLink_ = value; - onChanged(); - return this; - } - - private java.lang.Object version_ = ""; - /** - *
-     * The version of the Kubernetes of this node.
-     * 
- * - * string version = 101; - * @return The version. - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The version of the Kubernetes of this node.
-     * 
- * - * string version = 101; - * @return The bytes for version. - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The version of the Kubernetes of this node.
-     * 
- * - * string version = 101; - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - version_ = value; - onChanged(); - return this; - } - /** - *
-     * The version of the Kubernetes of this node.
-     * 
- * - * string version = 101; - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - *
-     * The version of the Kubernetes of this node.
-     * 
- * - * string version = 101; - * @param value The bytes for version to set. - * @return This builder for chaining. - */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - version_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureInstanceGroupUrlsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(instanceGroupUrls_); - bitField0_ |= 0x00000002; - } - } - /** - *
-     * [Output only] The resource URLs of the [managed instance
-     * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
-     * associated with this node pool.
-     * 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_.getUnmodifiableView(); - } - /** - *
-     * [Output only] The resource URLs of the [managed instance
-     * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
-     * associated with this node pool.
-     * 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); - 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); - 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_); - 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.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * [Output only] The resource URLs of the [managed instance
-     * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
-     * associated with this node pool.
-     * 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); - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1.NodePool.Status result = com.google.container.v1.NodePool.Status.valueOf(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(); - } - - 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() { - - 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=3043 - * @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=3043 - * @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=3043 - * @param value The statusMessage to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setStatusMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - statusMessage_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] Deprecated. Use conditions instead.
-     * Additional information about the current status of this
-     * node pool instance, if available.
-     * 
- * - * string status_message = 104 [deprecated = true]; - * @deprecated google.container.v1.NodePool.status_message is deprecated. - * See google/container/v1/cluster_service.proto;l=3043 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearStatusMessage() { - - statusMessage_ = getDefaultInstance().getStatusMessage(); - onChanged(); - return this; - } - /** - *
-     * [Output only] Deprecated. Use conditions instead.
-     * Additional information about the current status of this
-     * node pool instance, if available.
-     * 
- * - * string status_message = 104 [deprecated = true]; - * @deprecated google.container.v1.NodePool.status_message is deprecated. - * See google/container/v1/cluster_service.proto;l=3043 - * @param value The bytes for statusMessage to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setStatusMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - statusMessage_ = value; - onChanged(); - return this; - } - - private com.google.container.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 autoscalingBuilder_ != null || autoscaling_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - autoscalingBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - autoscalingBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Autoscaler configuration for this NodePool. Autoscaler is enabled
-     * only if a valid configuration is present.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling autoscaling = 4; - */ - public Builder mergeAutoscaling(com.google.container.v1.NodePoolAutoscaling value) { - if (autoscalingBuilder_ == null) { - if (autoscaling_ != null) { - autoscaling_ = - com.google.container.v1.NodePoolAutoscaling.newBuilder(autoscaling_).mergeFrom(value).buildPartial(); - } else { - autoscaling_ = value; - } - onChanged(); - } else { - autoscalingBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Autoscaler configuration for this NodePool. Autoscaler is enabled
-     * only if a valid configuration is present.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling autoscaling = 4; - */ - public Builder clearAutoscaling() { - if (autoscalingBuilder_ == null) { - autoscaling_ = null; - onChanged(); - } else { - autoscaling_ = null; - autoscalingBuilder_ = null; - } - - return this; - } - /** - *
-     * Autoscaler configuration for this NodePool. Autoscaler is enabled
-     * only if a valid configuration is present.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling autoscaling = 4; - */ - public com.google.container.v1.NodePoolAutoscaling.Builder getAutoscalingBuilder() { - - 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 managementBuilder_ != null || management_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - managementBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - managementBuilder_.setMessage(builderForValue.build()); - } - - 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 (management_ != null) { - management_ = - com.google.container.v1.NodeManagement.newBuilder(management_).mergeFrom(value).buildPartial(); - } else { - management_ = value; - } - onChanged(); - } else { - managementBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1.NodeManagement management = 5; - */ - public Builder clearManagement() { - if (managementBuilder_ == null) { - management_ = null; - onChanged(); - } else { - management_ = null; - managementBuilder_ = null; - } - - return this; - } - /** - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1.NodeManagement management = 5; - */ - public com.google.container.v1.NodeManagement.Builder getManagementBuilder() { - - 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 maxPodsConstraintBuilder_ != null || maxPodsConstraint_ != null; - } - /** - *
-     * The constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool.
-     * 
- * - * .google.container.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; - onChanged(); - } else { - maxPodsConstraintBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool.
-     * 
- * - * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - */ - public Builder setMaxPodsConstraint( - com.google.container.v1.MaxPodsConstraint.Builder builderForValue) { - if (maxPodsConstraintBuilder_ == null) { - maxPodsConstraint_ = builderForValue.build(); - onChanged(); - } else { - maxPodsConstraintBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool.
-     * 
- * - * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - */ - public Builder mergeMaxPodsConstraint(com.google.container.v1.MaxPodsConstraint value) { - if (maxPodsConstraintBuilder_ == null) { - if (maxPodsConstraint_ != null) { - maxPodsConstraint_ = - com.google.container.v1.MaxPodsConstraint.newBuilder(maxPodsConstraint_).mergeFrom(value).buildPartial(); - } else { - maxPodsConstraint_ = value; - } - onChanged(); - } else { - maxPodsConstraintBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool.
-     * 
- * - * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - */ - public Builder clearMaxPodsConstraint() { - if (maxPodsConstraintBuilder_ == null) { - maxPodsConstraint_ = null; - onChanged(); - } else { - maxPodsConstraint_ = null; - maxPodsConstraintBuilder_ = null; - } - - return this; - } - /** - *
-     * The constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool.
-     * 
- * - * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - */ - public com.google.container.v1.MaxPodsConstraint.Builder getMaxPodsConstraintBuilder() { - - onChanged(); - return getMaxPodsConstraintFieldBuilder().getBuilder(); - } - /** - *
-     * The constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool.
-     * 
- * - * .google.container.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_ & 0x00000004) != 0)) { - conditions_ = new java.util.ArrayList(conditions_); - bitField0_ |= 0x00000004; - } - } - - 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_ & ~0x00000004); - 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_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - conditions_ = null; - } - return conditionsBuilder_; - } - - private int podIpv4CidrSize_ ; - /** - *
-     * [Output only] The pod CIDR block size per node in this node pool.
-     * 
- * - * int32 pod_ipv4_cidr_size = 7; - * @return The podIpv4CidrSize. - */ - @java.lang.Override - public int getPodIpv4CidrSize() { - return podIpv4CidrSize_; - } - /** - *
-     * [Output only] The pod CIDR block size per node in this node pool.
-     * 
- * - * int32 pod_ipv4_cidr_size = 7; - * @param value The podIpv4CidrSize to set. - * @return This builder for chaining. - */ - public Builder setPodIpv4CidrSize(int value) { - - podIpv4CidrSize_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] The pod CIDR block size per node in this node pool.
-     * 
- * - * int32 pod_ipv4_cidr_size = 7; - * @return This builder for chaining. - */ - public Builder clearPodIpv4CidrSize() { - - podIpv4CidrSize_ = 0; - onChanged(); - return this; - } - - private com.google.container.v1.NodePool.UpgradeSettings upgradeSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.UpgradeSettings, com.google.container.v1.NodePool.UpgradeSettings.Builder, com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> upgradeSettingsBuilder_; - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - * @return Whether the upgradeSettings field is set. - */ - public boolean hasUpgradeSettings() { - return upgradeSettingsBuilder_ != null || upgradeSettings_ != null; - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - * @return The upgradeSettings. - */ - public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { - if (upgradeSettingsBuilder_ == null) { - return upgradeSettings_ == null ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() : upgradeSettings_; - } else { - return upgradeSettingsBuilder_.getMessage(); - } - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - public Builder setUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { - if (upgradeSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - upgradeSettings_ = value; - onChanged(); - } else { - upgradeSettingsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - public Builder setUpgradeSettings( - com.google.container.v1.NodePool.UpgradeSettings.Builder builderForValue) { - if (upgradeSettingsBuilder_ == null) { - upgradeSettings_ = builderForValue.build(); - onChanged(); - } else { - upgradeSettingsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - public Builder mergeUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { - if (upgradeSettingsBuilder_ == null) { - if (upgradeSettings_ != null) { - upgradeSettings_ = - com.google.container.v1.NodePool.UpgradeSettings.newBuilder(upgradeSettings_).mergeFrom(value).buildPartial(); - } else { - upgradeSettings_ = value; - } - onChanged(); - } else { - upgradeSettingsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - public Builder clearUpgradeSettings() { - if (upgradeSettingsBuilder_ == null) { - upgradeSettings_ = null; - onChanged(); - } else { - upgradeSettings_ = null; - upgradeSettingsBuilder_ = null; - } - - return this; - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - public com.google.container.v1.NodePool.UpgradeSettings.Builder getUpgradeSettingsBuilder() { - - onChanged(); - return getUpgradeSettingsFieldBuilder().getBuilder(); - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { - if (upgradeSettingsBuilder_ != null) { - return upgradeSettingsBuilder_.getMessageOrBuilder(); - } else { - return upgradeSettings_ == null ? - com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() : upgradeSettings_; - } - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.UpgradeSettings, com.google.container.v1.NodePool.UpgradeSettings.Builder, com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> - getUpgradeSettingsFieldBuilder() { - if (upgradeSettingsBuilder_ == null) { - upgradeSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.UpgradeSettings, com.google.container.v1.NodePool.UpgradeSettings.Builder, com.google.container.v1.NodePool.UpgradeSettingsOrBuilder>( - getUpgradeSettings(), - getParentForChildren(), - isClean()); - upgradeSettings_ = null; - } - return upgradeSettingsBuilder_; - } - - 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 updateInfoBuilder_ != null || updateInfo_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - updateInfoBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - updateInfoBuilder_.setMessage(builderForValue.build()); - } - - 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 (updateInfo_ != null) { - updateInfo_ = - com.google.container.v1.NodePool.UpdateInfo.newBuilder(updateInfo_).mergeFrom(value).buildPartial(); - } else { - updateInfo_ = value; - } - onChanged(); - } else { - updateInfoBuilder_.mergeFrom(value); - } - - 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() { - if (updateInfoBuilder_ == null) { - updateInfo_ = null; - onChanged(); - } else { - updateInfo_ = null; - updateInfoBuilder_ = null; - } - - 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() { - - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 94810cb39cb2..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoConfig.java +++ /dev/null @@ -1,677 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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); - } - - 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 networkTags_ != null; - } - /** - *
-   * 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 getNetworkTags(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (networkTags_ != null) { - output.writeMessage(1, getNetworkTags()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (networkTags_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getNetworkTags()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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 (!getUnknownFields().equals(other.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(); - } - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (networkTagsBuilder_ == null) { - networkTags_ = null; - } else { - networkTags_ = null; - networkTagsBuilder_ = 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 (networkTagsBuilder_ == null) { - result.networkTags_ = networkTags_; - } else { - result.networkTags_ = networkTagsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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); - - 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 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 networkTagsBuilder_ != null || networkTags_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - networkTagsBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - networkTagsBuilder_.setMessage(builderForValue.build()); - } - - 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 (networkTags_ != null) { - networkTags_ = - com.google.container.v1.NetworkTags.newBuilder(networkTags_).mergeFrom(value).buildPartial(); - } else { - networkTags_ = value; - } - onChanged(); - } else { - networkTagsBuilder_.mergeFrom(value); - } - - 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() { - if (networkTagsBuilder_ == null) { - networkTags_ = null; - onChanged(); - } else { - networkTags_ = null; - networkTagsBuilder_ = null; - } - - 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() { - - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 10745fbd8c78..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoConfigOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); -} 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 deleted file mode 100644 index fc6be505e6a4..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscaling.java +++ /dev/null @@ -1,1196 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * Is autoscaling enabled for this node pool.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - public static final int MIN_NODE_COUNT_FIELD_NUMBER = 2; - private int minNodeCount_; - /** - *
-   * Minimum number of nodes 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_; - /** - *
-   * 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_; - /** - *
-   * 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_; - /** - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.container.v1.NodePoolAutoscaling.LocationPolicy result = com.google.container.v1.NodePoolAutoscaling.LocationPolicy.valueOf(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_; - /** - *
-   * 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_; - /** - *
-   * 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(); - 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); - result.enabled_ = enabled_; - result.minNodeCount_ = minNodeCount_; - result.maxNodeCount_ = maxNodeCount_; - result.autoprovisioned_ = autoprovisioned_; - result.locationPolicy_ = locationPolicy_; - result.totalMinNodeCount_ = totalMinNodeCount_; - result.totalMaxNodeCount_ = totalMaxNodeCount_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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(); - - break; - } // case 8 - case 16: { - minNodeCount_ = input.readInt32(); - - break; - } // case 16 - case 24: { - maxNodeCount_ = input.readInt32(); - - break; - } // case 24 - case 32: { - autoprovisioned_ = input.readBool(); - - break; - } // case 32 - case 40: { - locationPolicy_ = input.readEnum(); - - break; - } // case 40 - case 48: { - totalMinNodeCount_ = input.readInt32(); - - break; - } // case 48 - case 56: { - totalMaxNodeCount_ = input.readInt32(); - - 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 boolean enabled_ ; - /** - *
-     * Is autoscaling enabled for this node pool.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Is autoscaling enabled for this node pool.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Is autoscaling enabled for this node pool.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - - private int minNodeCount_ ; - /** - *
-     * Minimum number of nodes 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; - 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() { - - 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; - 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() { - - maxNodeCount_ = 0; - onChanged(); - return this; - } - - private boolean autoprovisioned_ ; - /** - *
-     * Can this node pool be deleted automatically.
-     * 
- * - * bool autoprovisioned = 4; - * @return The autoprovisioned. - */ - @java.lang.Override - public boolean getAutoprovisioned() { - return autoprovisioned_; - } - /** - *
-     * Can this node pool be deleted automatically.
-     * 
- * - * bool autoprovisioned = 4; - * @param value The autoprovisioned to set. - * @return This builder for chaining. - */ - public Builder setAutoprovisioned(boolean value) { - - autoprovisioned_ = value; - onChanged(); - return this; - } - /** - *
-     * Can this node pool be deleted automatically.
-     * 
- * - * bool autoprovisioned = 4; - * @return This builder for chaining. - */ - public Builder clearAutoprovisioned() { - - autoprovisioned_ = false; - onChanged(); - return this; - } - - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1.NodePoolAutoscaling.LocationPolicy result = com.google.container.v1.NodePoolAutoscaling.LocationPolicy.valueOf(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(); - } - - 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() { - - 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; - 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() { - - 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; - 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() { - - 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 deleted file mode 100644 index 9ac0a071cbc3..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscalingOrBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index 2bb2b0aa1a8a..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolDefaults.java +++ /dev/null @@ -1,639 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * Subset of Nodepool message that has defaults.
- * 
- * - * Protobuf type {@code google.container.v1.NodePoolDefaults} - */ -public final class NodePoolDefaults extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.NodePoolDefaults) - NodePoolDefaultsOrBuilder { -private static final long serialVersionUID = 0L; - // Use NodePoolDefaults.newBuilder() to construct. - private NodePoolDefaults(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodePoolDefaults() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NodePoolDefaults(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePoolDefaults_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePoolDefaults_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodePoolDefaults.class, com.google.container.v1.NodePoolDefaults.Builder.class); - } - - public static final int NODE_CONFIG_DEFAULTS_FIELD_NUMBER = 1; - private com.google.container.v1.NodeConfigDefaults nodeConfigDefaults_; - /** - *
-   * Subset of NodeConfig message that has defaults.
-   * 
- * - * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - * @return Whether the nodeConfigDefaults field is set. - */ - @java.lang.Override - public boolean hasNodeConfigDefaults() { - return nodeConfigDefaults_ != null; - } - /** - *
-   * Subset of NodeConfig message that has defaults.
-   * 
- * - * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - * @return The nodeConfigDefaults. - */ - @java.lang.Override - public com.google.container.v1.NodeConfigDefaults getNodeConfigDefaults() { - return nodeConfigDefaults_ == null ? com.google.container.v1.NodeConfigDefaults.getDefaultInstance() : nodeConfigDefaults_; - } - /** - *
-   * Subset of NodeConfig message that has defaults.
-   * 
- * - * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - */ - @java.lang.Override - public com.google.container.v1.NodeConfigDefaultsOrBuilder getNodeConfigDefaultsOrBuilder() { - return getNodeConfigDefaults(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (nodeConfigDefaults_ != null) { - output.writeMessage(1, getNodeConfigDefaults()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (nodeConfigDefaults_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getNodeConfigDefaults()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (nodeConfigDefaultsBuilder_ == null) { - nodeConfigDefaults_ = null; - } else { - nodeConfigDefaults_ = null; - nodeConfigDefaultsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePoolDefaults_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NodePoolDefaults getDefaultInstanceForType() { - return com.google.container.v1.NodePoolDefaults.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NodePoolDefaults build() { - com.google.container.v1.NodePoolDefaults result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NodePoolDefaults buildPartial() { - com.google.container.v1.NodePoolDefaults result = new com.google.container.v1.NodePoolDefaults(this); - if (nodeConfigDefaultsBuilder_ == null) { - result.nodeConfigDefaults_ = nodeConfigDefaults_; - } else { - result.nodeConfigDefaults_ = nodeConfigDefaultsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NodePoolDefaults) { - return mergeFrom((com.google.container.v1.NodePoolDefaults)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NodePoolDefaults other) { - if (other == com.google.container.v1.NodePoolDefaults.getDefaultInstance()) return this; - if (other.hasNodeConfigDefaults()) { - mergeNodeConfigDefaults(other.getNodeConfigDefaults()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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); - - 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 com.google.container.v1.NodeConfigDefaults nodeConfigDefaults_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeConfigDefaults, com.google.container.v1.NodeConfigDefaults.Builder, com.google.container.v1.NodeConfigDefaultsOrBuilder> nodeConfigDefaultsBuilder_; - /** - *
-     * Subset of NodeConfig message that has defaults.
-     * 
- * - * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - * @return Whether the nodeConfigDefaults field is set. - */ - public boolean hasNodeConfigDefaults() { - return nodeConfigDefaultsBuilder_ != null || nodeConfigDefaults_ != null; - } - /** - *
-     * Subset of NodeConfig message that has defaults.
-     * 
- * - * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - * @return The nodeConfigDefaults. - */ - public com.google.container.v1.NodeConfigDefaults getNodeConfigDefaults() { - if (nodeConfigDefaultsBuilder_ == null) { - return nodeConfigDefaults_ == null ? com.google.container.v1.NodeConfigDefaults.getDefaultInstance() : nodeConfigDefaults_; - } else { - return nodeConfigDefaultsBuilder_.getMessage(); - } - } - /** - *
-     * Subset of NodeConfig message that has defaults.
-     * 
- * - * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - */ - public Builder setNodeConfigDefaults(com.google.container.v1.NodeConfigDefaults value) { - if (nodeConfigDefaultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nodeConfigDefaults_ = value; - onChanged(); - } else { - nodeConfigDefaultsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Subset of NodeConfig message that has defaults.
-     * 
- * - * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - */ - public Builder setNodeConfigDefaults( - com.google.container.v1.NodeConfigDefaults.Builder builderForValue) { - if (nodeConfigDefaultsBuilder_ == null) { - nodeConfigDefaults_ = builderForValue.build(); - onChanged(); - } else { - nodeConfigDefaultsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Subset of NodeConfig message that has defaults.
-     * 
- * - * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - */ - public Builder mergeNodeConfigDefaults(com.google.container.v1.NodeConfigDefaults value) { - if (nodeConfigDefaultsBuilder_ == null) { - if (nodeConfigDefaults_ != null) { - nodeConfigDefaults_ = - com.google.container.v1.NodeConfigDefaults.newBuilder(nodeConfigDefaults_).mergeFrom(value).buildPartial(); - } else { - nodeConfigDefaults_ = value; - } - onChanged(); - } else { - nodeConfigDefaultsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Subset of NodeConfig message that has defaults.
-     * 
- * - * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - */ - public Builder clearNodeConfigDefaults() { - if (nodeConfigDefaultsBuilder_ == null) { - nodeConfigDefaults_ = null; - onChanged(); - } else { - nodeConfigDefaults_ = null; - nodeConfigDefaultsBuilder_ = null; - } - - return this; - } - /** - *
-     * Subset of NodeConfig message that has defaults.
-     * 
- * - * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - */ - public com.google.container.v1.NodeConfigDefaults.Builder getNodeConfigDefaultsBuilder() { - - onChanged(); - return getNodeConfigDefaultsFieldBuilder().getBuilder(); - } - /** - *
-     * Subset of NodeConfig message that has defaults.
-     * 
- * - * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - */ - public com.google.container.v1.NodeConfigDefaultsOrBuilder getNodeConfigDefaultsOrBuilder() { - if (nodeConfigDefaultsBuilder_ != null) { - return nodeConfigDefaultsBuilder_.getMessageOrBuilder(); - } else { - return nodeConfigDefaults_ == null ? - com.google.container.v1.NodeConfigDefaults.getDefaultInstance() : nodeConfigDefaults_; - } - } - /** - *
-     * Subset of NodeConfig message that has defaults.
-     * 
- * - * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeConfigDefaults, com.google.container.v1.NodeConfigDefaults.Builder, com.google.container.v1.NodeConfigDefaultsOrBuilder> - getNodeConfigDefaultsFieldBuilder() { - if (nodeConfigDefaultsBuilder_ == null) { - nodeConfigDefaultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeConfigDefaults, com.google.container.v1.NodeConfigDefaults.Builder, com.google.container.v1.NodeConfigDefaultsOrBuilder>( - getNodeConfigDefaults(), - getParentForChildren(), - isClean()); - nodeConfigDefaults_ = null; - } - return nodeConfigDefaultsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1.NodePoolDefaults) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NodePoolDefaults) - private static final com.google.container.v1.NodePoolDefaults DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1.NodePoolDefaults(); - } - - public static com.google.container.v1.NodePoolDefaults getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodePoolDefaults parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index bdee1c8f0482..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolDefaultsOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface NodePoolDefaultsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NodePoolDefaults) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Subset of NodeConfig message that has defaults.
-   * 
- * - * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - * @return Whether the nodeConfigDefaults field is set. - */ - boolean hasNodeConfigDefaults(); - /** - *
-   * Subset of NodeConfig message that has defaults.
-   * 
- * - * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - * @return The nodeConfigDefaults. - */ - com.google.container.v1.NodeConfigDefaults getNodeConfigDefaults(); - /** - *
-   * Subset of NodeConfig message that has defaults.
-   * 
- * - * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - */ - com.google.container.v1.NodeConfigDefaultsOrBuilder getNodeConfigDefaultsOrBuilder(); -} diff --git a/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 deleted file mode 100644 index ea72c5521fa6..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolLoggingConfig.java +++ /dev/null @@ -1,639 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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); - } - - 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 variantConfig_ != null; - } - /** - *
-   * 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 getVariantConfig(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (variantConfig_ != null) { - output.writeMessage(1, getVariantConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (variantConfig_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (variantConfigBuilder_ == null) { - variantConfig_ = null; - } else { - variantConfig_ = null; - 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 (variantConfigBuilder_ == null) { - result.variantConfig_ = variantConfig_; - } else { - result.variantConfig_ = variantConfigBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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); - - 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 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 variantConfigBuilder_ != null || variantConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - variantConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - variantConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (variantConfig_ != null) { - variantConfig_ = - com.google.container.v1.LoggingVariantConfig.newBuilder(variantConfig_).mergeFrom(value).buildPartial(); - } else { - variantConfig_ = value; - } - onChanged(); - } else { - variantConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Logging variant configuration.
-     * 
- * - * .google.container.v1.LoggingVariantConfig variant_config = 1; - */ - public Builder clearVariantConfig() { - if (variantConfigBuilder_ == null) { - variantConfig_ = null; - onChanged(); - } else { - variantConfig_ = null; - variantConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Logging variant configuration.
-     * 
- * - * .google.container.v1.LoggingVariantConfig variant_config = 1; - */ - public com.google.container.v1.LoggingVariantConfig.Builder getVariantConfigBuilder() { - - 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 deleted file mode 100644 index 47d649a6d40c..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolLoggingConfigOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index 74eafb8a16a8..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java +++ /dev/null @@ -1,510 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 the Kubernetes of this node.
-   * 
- * - * string version = 101; - * @return The version. - */ - java.lang.String getVersion(); - /** - *
-   * The version of the Kubernetes of this node.
-   * 
- * - * string version = 101; - * @return The bytes for version. - */ - com.google.protobuf.ByteString - getVersionBytes(); - - /** - *
-   * [Output only] The resource URLs of the [managed instance
-   * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
-   * associated with this node pool.
-   * 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=3043 - * @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=3043 - * @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(); - - /** - *
-   * 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(); -} 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 deleted file mode 100644 index 85f1307f2c07..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolUpdateStrategy.java +++ /dev/null @@ -1,152 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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.
-   * 
- * - * 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.
-   * 
- * - * 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 deleted file mode 100644 index 8b073915054d..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaint.java +++ /dev/null @@ -1,1032 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * Kubernetes taint is comprised of three fields: key, value, and effect. Effect
- * can only be one of three types:  NoSchedule, PreferNoSchedule or NoExecute.
- * See
- * [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
- * for more information, including usage and the valid values.
- * 
- * - * Protobuf type {@code google.container.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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - private volatile java.lang.Object key_; - /** - *
-   * Key for taint.
-   * 
- * - * string key = 1; - * @return The key. - */ - @java.lang.Override - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - *
-   * Key for taint.
-   * 
- * - * string key = 1; - * @return The bytes for key. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALUE_FIELD_NUMBER = 2; - private volatile java.lang.Object value_; - /** - *
-   * Value for taint.
-   * 
- * - * string value = 2; - * @return The value. - */ - @java.lang.Override - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - *
-   * Value for taint.
-   * 
- * - * string value = 2; - * @return The bytes for value. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EFFECT_FIELD_NUMBER = 3; - private int effect_; - /** - *
-   * Effect for taint.
-   * 
- * - * .google.container.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() { - @SuppressWarnings("deprecation") - com.google.container.v1.NodeTaint.Effect result = com.google.container.v1.NodeTaint.Effect.valueOf(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 comprised of three fields: key, value, and effect. Effect
-   * can only be one of three types:  NoSchedule, PreferNoSchedule or NoExecute.
-   * See
-   * [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
-   * for more information, including usage and the valid values.
-   * 
- * - * Protobuf type {@code google.container.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(); - 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); - result.key_ = key_; - result.value_ = value_; - result.effect_ = effect_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getValue().isEmpty()) { - value_ = other.value_; - 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(); - - break; - } // case 10 - case 18: { - value_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: { - effect_ = input.readEnum(); - - 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 java.lang.Object key_ = ""; - /** - *
-     * Key for taint.
-     * 
- * - * string key = 1; - * @return The key. - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Key for taint.
-     * 
- * - * string key = 1; - * @return The bytes for key. - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Key for taint.
-     * 
- * - * string key = 1; - * @param value The key to set. - * @return This builder for chaining. - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - *
-     * Key for taint.
-     * 
- * - * string key = 1; - * @return This builder for chaining. - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - *
-     * Key for taint.
-     * 
- * - * string key = 1; - * @param value The bytes for key to set. - * @return This builder for chaining. - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object value_ = ""; - /** - *
-     * Value for taint.
-     * 
- * - * string value = 2; - * @return The value. - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Value for taint.
-     * 
- * - * string value = 2; - * @return The bytes for value. - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Value for taint.
-     * 
- * - * string value = 2; - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - *
-     * Value for taint.
-     * 
- * - * string value = 2; - * @return This builder for chaining. - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - *
-     * Value for taint.
-     * 
- * - * string value = 2; - * @param value The bytes for value to set. - * @return This builder for chaining. - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - value_ = value; - onChanged(); - return this; - } - - private int effect_ = 0; - /** - *
-     * Effect for taint.
-     * 
- * - * .google.container.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; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1.NodeTaint.Effect result = com.google.container.v1.NodeTaint.Effect.valueOf(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(); - } - - effect_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Effect for taint.
-     * 
- * - * .google.container.v1.NodeTaint.Effect effect = 3; - * @return This builder for chaining. - */ - public Builder clearEffect() { - - effect_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index 0481a7d8c770..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaintOrBuilder.java +++ /dev/null @@ -1,68 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index 6b177fc3f548..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaints.java +++ /dev/null @@ -1,854 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - 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(); - 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); - int from_bitField0_ = bitField0_; - if (taintsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - taints_ = java.util.Collections.unmodifiableList(taints_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.taints_ = taints_; - } else { - result.taints_ = taintsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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 deleted file mode 100644 index 748f3bc46295..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaintsOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index 4c9fd4143607..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NotificationConfig.java +++ /dev/null @@ -1,2573 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * NotificationConfig is the configuration of notifications.
- * 
- * - * Protobuf type {@code google.container.v1.NotificationConfig} - */ -public final class NotificationConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.NotificationConfig) - NotificationConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use NotificationConfig.newBuilder() to construct. - private NotificationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NotificationConfig() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NotificationConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NotificationConfig_PubSub_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NotificationConfig_PubSub_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NotificationConfig.PubSub.class, com.google.container.v1.NotificationConfig.PubSub.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-     * Enable notifications for Pub/Sub.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - public static final int TOPIC_FIELD_NUMBER = 2; - private volatile java.lang.Object topic_; - /** - *
-     * The desired Pub/Sub topic to which notifications will be
-     * sent by GKE. Format is `projects/{project}/topics/{topic}`.
-     * 
- * - * string topic = 2 [(.google.api.resource_reference) = { ... } - * @return The topic. - */ - @java.lang.Override - public java.lang.String getTopic() { - java.lang.Object ref = topic_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - topic_ = s; - return s; - } - } - /** - *
-     * The desired Pub/Sub topic to which notifications will be
-     * sent by GKE. Format is `projects/{project}/topics/{topic}`.
-     * 
- * - * string topic = 2 [(.google.api.resource_reference) = { ... } - * @return The bytes for topic. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTopicBytes() { - java.lang.Object ref = topic_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topic_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTER_FIELD_NUMBER = 3; - private com.google.container.v1.NotificationConfig.Filter filter_; - /** - *
-     * Allows filtering to one or more specific event types. If no filter is
-     * specified, or if a filter is specified with no event types, all event
-     * types will be sent
-     * 
- * - * .google.container.v1.NotificationConfig.Filter filter = 3; - * @return Whether the filter field is set. - */ - @java.lang.Override - public boolean hasFilter() { - return filter_ != null; - } - /** - *
-     * Allows filtering to one or more specific event types. If no filter is
-     * specified, or if a filter is specified with no event types, all event
-     * types will be sent
-     * 
- * - * .google.container.v1.NotificationConfig.Filter filter = 3; - * @return The filter. - */ - @java.lang.Override - public com.google.container.v1.NotificationConfig.Filter getFilter() { - return filter_ == null ? com.google.container.v1.NotificationConfig.Filter.getDefaultInstance() : filter_; - } - /** - *
-     * Allows filtering to one or more specific event types. If no filter is
-     * specified, or if a filter is specified with no event types, all event
-     * types will be sent
-     * 
- * - * .google.container.v1.NotificationConfig.Filter filter = 3; - */ - @java.lang.Override - public com.google.container.v1.NotificationConfig.FilterOrBuilder getFilterOrBuilder() { - return getFilter(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, topic_); - } - if (filter_ != null) { - output.writeMessage(3, getFilter()); - } - 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 (filter_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - enabled_ = false; - - topic_ = ""; - - if (filterBuilder_ == null) { - filter_ = null; - } else { - filter_ = null; - filterBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NotificationConfig_PubSub_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NotificationConfig.PubSub getDefaultInstanceForType() { - return com.google.container.v1.NotificationConfig.PubSub.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NotificationConfig.PubSub build() { - com.google.container.v1.NotificationConfig.PubSub result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NotificationConfig.PubSub buildPartial() { - com.google.container.v1.NotificationConfig.PubSub result = new com.google.container.v1.NotificationConfig.PubSub(this); - result.enabled_ = enabled_; - result.topic_ = topic_; - if (filterBuilder_ == null) { - result.filter_ = filter_; - } else { - result.filter_ = filterBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NotificationConfig.PubSub) { - return mergeFrom((com.google.container.v1.NotificationConfig.PubSub)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NotificationConfig.PubSub other) { - if (other == com.google.container.v1.NotificationConfig.PubSub.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - if (!other.getTopic().isEmpty()) { - topic_ = other.topic_; - onChanged(); - } - if (other.hasFilter()) { - mergeFilter(other.getFilter()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 8 - case 18: { - topic_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - input.readMessage( - getFilterFieldBuilder().getBuilder(), - extensionRegistry); - - 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 boolean enabled_ ; - /** - *
-       * Enable notifications for Pub/Sub.
-       * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-       * Enable notifications for Pub/Sub.
-       * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-       * Enable notifications for Pub/Sub.
-       * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - - private java.lang.Object topic_ = ""; - /** - *
-       * The desired Pub/Sub topic to which notifications will be
-       * sent by GKE. Format is `projects/{project}/topics/{topic}`.
-       * 
- * - * string topic = 2 [(.google.api.resource_reference) = { ... } - * @return The topic. - */ - public java.lang.String getTopic() { - java.lang.Object ref = topic_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - topic_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The desired Pub/Sub topic to which notifications will be
-       * sent by GKE. Format is `projects/{project}/topics/{topic}`.
-       * 
- * - * string topic = 2 [(.google.api.resource_reference) = { ... } - * @return The bytes for topic. - */ - public com.google.protobuf.ByteString - getTopicBytes() { - java.lang.Object ref = topic_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topic_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The desired Pub/Sub topic to which notifications will be
-       * sent by GKE. Format is `projects/{project}/topics/{topic}`.
-       * 
- * - * string topic = 2 [(.google.api.resource_reference) = { ... } - * @param value The topic to set. - * @return This builder for chaining. - */ - public Builder setTopic( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - topic_ = value; - onChanged(); - return this; - } - /** - *
-       * The desired Pub/Sub topic to which notifications will be
-       * sent by GKE. Format is `projects/{project}/topics/{topic}`.
-       * 
- * - * string topic = 2 [(.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearTopic() { - - topic_ = getDefaultInstance().getTopic(); - onChanged(); - return this; - } - /** - *
-       * The desired Pub/Sub topic to which notifications will be
-       * sent by GKE. Format is `projects/{project}/topics/{topic}`.
-       * 
- * - * string topic = 2 [(.google.api.resource_reference) = { ... } - * @param value The bytes for topic to set. - * @return This builder for chaining. - */ - public Builder setTopicBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - topic_ = value; - onChanged(); - return this; - } - - private com.google.container.v1.NotificationConfig.Filter filter_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NotificationConfig.Filter, com.google.container.v1.NotificationConfig.Filter.Builder, com.google.container.v1.NotificationConfig.FilterOrBuilder> filterBuilder_; - /** - *
-       * Allows filtering to one or more specific event types. If no filter is
-       * specified, or if a filter is specified with no event types, all event
-       * types will be sent
-       * 
- * - * .google.container.v1.NotificationConfig.Filter filter = 3; - * @return Whether the filter field is set. - */ - public boolean hasFilter() { - return filterBuilder_ != null || filter_ != null; - } - /** - *
-       * Allows filtering to one or more specific event types. If no filter is
-       * specified, or if a filter is specified with no event types, all event
-       * types will be sent
-       * 
- * - * .google.container.v1.NotificationConfig.Filter filter = 3; - * @return The filter. - */ - public com.google.container.v1.NotificationConfig.Filter getFilter() { - if (filterBuilder_ == null) { - return filter_ == null ? com.google.container.v1.NotificationConfig.Filter.getDefaultInstance() : filter_; - } else { - return filterBuilder_.getMessage(); - } - } - /** - *
-       * Allows filtering to one or more specific event types. If no filter is
-       * specified, or if a filter is specified with no event types, all event
-       * types will be sent
-       * 
- * - * .google.container.v1.NotificationConfig.Filter filter = 3; - */ - public Builder setFilter(com.google.container.v1.NotificationConfig.Filter value) { - if (filterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - filter_ = value; - onChanged(); - } else { - filterBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Allows filtering to one or more specific event types. If no filter is
-       * specified, or if a filter is specified with no event types, all event
-       * types will be sent
-       * 
- * - * .google.container.v1.NotificationConfig.Filter filter = 3; - */ - public Builder setFilter( - com.google.container.v1.NotificationConfig.Filter.Builder builderForValue) { - if (filterBuilder_ == null) { - filter_ = builderForValue.build(); - onChanged(); - } else { - filterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Allows filtering to one or more specific event types. If no filter is
-       * specified, or if a filter is specified with no event types, all event
-       * types will be sent
-       * 
- * - * .google.container.v1.NotificationConfig.Filter filter = 3; - */ - public Builder mergeFilter(com.google.container.v1.NotificationConfig.Filter value) { - if (filterBuilder_ == null) { - if (filter_ != null) { - filter_ = - com.google.container.v1.NotificationConfig.Filter.newBuilder(filter_).mergeFrom(value).buildPartial(); - } else { - filter_ = value; - } - onChanged(); - } else { - filterBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Allows filtering to one or more specific event types. If no filter is
-       * specified, or if a filter is specified with no event types, all event
-       * types will be sent
-       * 
- * - * .google.container.v1.NotificationConfig.Filter filter = 3; - */ - public Builder clearFilter() { - if (filterBuilder_ == null) { - filter_ = null; - onChanged(); - } else { - filter_ = null; - filterBuilder_ = null; - } - - return this; - } - /** - *
-       * Allows filtering to one or more specific event types. If no filter is
-       * specified, or if a filter is specified with no event types, all event
-       * types will be sent
-       * 
- * - * .google.container.v1.NotificationConfig.Filter filter = 3; - */ - public com.google.container.v1.NotificationConfig.Filter.Builder getFilterBuilder() { - - onChanged(); - return getFilterFieldBuilder().getBuilder(); - } - /** - *
-       * Allows filtering to one or more specific event types. If no filter is
-       * specified, or if a filter is specified with no event types, all event
-       * types will be sent
-       * 
- * - * .google.container.v1.NotificationConfig.Filter filter = 3; - */ - public com.google.container.v1.NotificationConfig.FilterOrBuilder getFilterOrBuilder() { - if (filterBuilder_ != null) { - return filterBuilder_.getMessageOrBuilder(); - } else { - return filter_ == null ? - com.google.container.v1.NotificationConfig.Filter.getDefaultInstance() : filter_; - } - } - /** - *
-       * Allows filtering to one or more specific event types. If no filter is
-       * specified, or if a filter is specified with no event types, all event
-       * types will be sent
-       * 
- * - * .google.container.v1.NotificationConfig.Filter filter = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NotificationConfig.Filter, com.google.container.v1.NotificationConfig.Filter.Builder, com.google.container.v1.NotificationConfig.FilterOrBuilder> - getFilterFieldBuilder() { - if (filterBuilder_ == null) { - filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NotificationConfig.Filter, com.google.container.v1.NotificationConfig.Filter.Builder, com.google.container.v1.NotificationConfig.FilterOrBuilder>( - getFilter(), - getParentForChildren(), - isClean()); - filter_ = null; - } - return filterBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1.NotificationConfig.PubSub) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NotificationConfig.PubSub) - private static final com.google.container.v1.NotificationConfig.PubSub DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1.NotificationConfig.PubSub(); - } - - public static com.google.container.v1.NotificationConfig.PubSub getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PubSub parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.NotificationConfig.PubSub getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface FilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NotificationConfig.Filter) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Event types to allowlist.
-     * 
- * - * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * @return A list containing the eventType. - */ - java.util.List getEventTypeList(); - /** - *
-     * Event types to allowlist.
-     * 
- * - * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * @return The count of eventType. - */ - int getEventTypeCount(); - /** - *
-     * Event types to allowlist.
-     * 
- * - * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * @param index The index of the element to return. - * @return The eventType at the given index. - */ - com.google.container.v1.NotificationConfig.EventType getEventType(int index); - /** - *
-     * Event types to allowlist.
-     * 
- * - * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * @return A list containing the enum numeric values on the wire for eventType. - */ - java.util.List - getEventTypeValueList(); - /** - *
-     * Event types to allowlist.
-     * 
- * - * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of eventType at the given index. - */ - int getEventTypeValue(int index); - } - /** - *
-   * Allows filtering to one or more specific event types. If event types are
-   * present, those and only those event types will be transmitted to the
-   * cluster. Other types will be skipped. If no filter is specified, or no
-   * event types are present, all event types will be sent
-   * 
- * - * Protobuf type {@code google.container.v1.NotificationConfig.Filter} - */ - public static final class Filter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.NotificationConfig.Filter) - FilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use Filter.newBuilder() to construct. - private Filter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Filter() { - eventType_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Filter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NotificationConfig_Filter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NotificationConfig_Filter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NotificationConfig.Filter.class, com.google.container.v1.NotificationConfig.Filter.Builder.class); - } - - public static final int EVENT_TYPE_FIELD_NUMBER = 1; - private java.util.List eventType_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.container.v1.NotificationConfig.EventType> eventType_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.container.v1.NotificationConfig.EventType>() { - public com.google.container.v1.NotificationConfig.EventType convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.container.v1.NotificationConfig.EventType result = com.google.container.v1.NotificationConfig.EventType.valueOf(from); - return result == null ? com.google.container.v1.NotificationConfig.EventType.UNRECOGNIZED : result; - } - }; - /** - *
-     * Event types to allowlist.
-     * 
- * - * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * @return A list containing the eventType. - */ - @java.lang.Override - public java.util.List getEventTypeList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.container.v1.NotificationConfig.EventType>(eventType_, eventType_converter_); - } - /** - *
-     * Event types to allowlist.
-     * 
- * - * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * @return The count of eventType. - */ - @java.lang.Override - public int getEventTypeCount() { - return eventType_.size(); - } - /** - *
-     * Event types to allowlist.
-     * 
- * - * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * @param index The index of the element to return. - * @return The eventType at the given index. - */ - @java.lang.Override - public com.google.container.v1.NotificationConfig.EventType getEventType(int index) { - return eventType_converter_.convert(eventType_.get(index)); - } - /** - *
-     * Event types to allowlist.
-     * 
- * - * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * @return A list containing the enum numeric values on the wire for eventType. - */ - @java.lang.Override - public java.util.List - getEventTypeValueList() { - return eventType_; - } - /** - *
-     * Event types to allowlist.
-     * 
- * - * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of eventType at the given index. - */ - @java.lang.Override - public int getEventTypeValue(int index) { - return eventType_.get(index); - } - private int eventTypeMemoizedSerializedSize; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (getEventTypeList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(eventTypeMemoizedSerializedSize); - } - for (int i = 0; i < eventType_.size(); i++) { - output.writeEnumNoTag(eventType_.get(i)); - } - 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(); - eventType_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NotificationConfig_Filter_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NotificationConfig.Filter getDefaultInstanceForType() { - return com.google.container.v1.NotificationConfig.Filter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NotificationConfig.Filter build() { - com.google.container.v1.NotificationConfig.Filter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NotificationConfig.Filter buildPartial() { - com.google.container.v1.NotificationConfig.Filter result = new com.google.container.v1.NotificationConfig.Filter(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - eventType_ = java.util.Collections.unmodifiableList(eventType_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.eventType_ = eventType_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NotificationConfig.Filter) { - return mergeFrom((com.google.container.v1.NotificationConfig.Filter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NotificationConfig.Filter other) { - if (other == com.google.container.v1.NotificationConfig.Filter.getDefaultInstance()) return this; - if (!other.eventType_.isEmpty()) { - if (eventType_.isEmpty()) { - eventType_ = other.eventType_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEventTypeIsMutable(); - eventType_.addAll(other.eventType_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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; - } - - } - - public static final int PUBSUB_FIELD_NUMBER = 1; - private com.google.container.v1.NotificationConfig.PubSub pubsub_; - /** - *
-   * Notification config for Pub/Sub.
-   * 
- * - * .google.container.v1.NotificationConfig.PubSub pubsub = 1; - * @return Whether the pubsub field is set. - */ - @java.lang.Override - public boolean hasPubsub() { - return pubsub_ != null; - } - /** - *
-   * Notification config for Pub/Sub.
-   * 
- * - * .google.container.v1.NotificationConfig.PubSub pubsub = 1; - * @return The pubsub. - */ - @java.lang.Override - public com.google.container.v1.NotificationConfig.PubSub getPubsub() { - return pubsub_ == null ? com.google.container.v1.NotificationConfig.PubSub.getDefaultInstance() : pubsub_; - } - /** - *
-   * Notification config for Pub/Sub.
-   * 
- * - * .google.container.v1.NotificationConfig.PubSub pubsub = 1; - */ - @java.lang.Override - public com.google.container.v1.NotificationConfig.PubSubOrBuilder getPubsubOrBuilder() { - return getPubsub(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (pubsub_ != null) { - output.writeMessage(1, getPubsub()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (pubsub_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPubsub()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (pubsubBuilder_ == null) { - pubsub_ = null; - } else { - pubsub_ = null; - pubsubBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NotificationConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NotificationConfig getDefaultInstanceForType() { - return com.google.container.v1.NotificationConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NotificationConfig build() { - com.google.container.v1.NotificationConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NotificationConfig buildPartial() { - com.google.container.v1.NotificationConfig result = new com.google.container.v1.NotificationConfig(this); - if (pubsubBuilder_ == null) { - result.pubsub_ = pubsub_; - } else { - result.pubsub_ = pubsubBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NotificationConfig) { - return mergeFrom((com.google.container.v1.NotificationConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NotificationConfig other) { - if (other == com.google.container.v1.NotificationConfig.getDefaultInstance()) return this; - if (other.hasPubsub()) { - mergePubsub(other.getPubsub()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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); - - 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 com.google.container.v1.NotificationConfig.PubSub pubsub_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NotificationConfig.PubSub, com.google.container.v1.NotificationConfig.PubSub.Builder, com.google.container.v1.NotificationConfig.PubSubOrBuilder> pubsubBuilder_; - /** - *
-     * Notification config for Pub/Sub.
-     * 
- * - * .google.container.v1.NotificationConfig.PubSub pubsub = 1; - * @return Whether the pubsub field is set. - */ - public boolean hasPubsub() { - return pubsubBuilder_ != null || pubsub_ != null; - } - /** - *
-     * Notification config for Pub/Sub.
-     * 
- * - * .google.container.v1.NotificationConfig.PubSub pubsub = 1; - * @return The pubsub. - */ - public com.google.container.v1.NotificationConfig.PubSub getPubsub() { - if (pubsubBuilder_ == null) { - return pubsub_ == null ? com.google.container.v1.NotificationConfig.PubSub.getDefaultInstance() : pubsub_; - } else { - return pubsubBuilder_.getMessage(); - } - } - /** - *
-     * Notification config for Pub/Sub.
-     * 
- * - * .google.container.v1.NotificationConfig.PubSub pubsub = 1; - */ - public Builder setPubsub(com.google.container.v1.NotificationConfig.PubSub value) { - if (pubsubBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pubsub_ = value; - onChanged(); - } else { - pubsubBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Notification config for Pub/Sub.
-     * 
- * - * .google.container.v1.NotificationConfig.PubSub pubsub = 1; - */ - public Builder setPubsub( - com.google.container.v1.NotificationConfig.PubSub.Builder builderForValue) { - if (pubsubBuilder_ == null) { - pubsub_ = builderForValue.build(); - onChanged(); - } else { - pubsubBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Notification config for Pub/Sub.
-     * 
- * - * .google.container.v1.NotificationConfig.PubSub pubsub = 1; - */ - public Builder mergePubsub(com.google.container.v1.NotificationConfig.PubSub value) { - if (pubsubBuilder_ == null) { - if (pubsub_ != null) { - pubsub_ = - com.google.container.v1.NotificationConfig.PubSub.newBuilder(pubsub_).mergeFrom(value).buildPartial(); - } else { - pubsub_ = value; - } - onChanged(); - } else { - pubsubBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Notification config for Pub/Sub.
-     * 
- * - * .google.container.v1.NotificationConfig.PubSub pubsub = 1; - */ - public Builder clearPubsub() { - if (pubsubBuilder_ == null) { - pubsub_ = null; - onChanged(); - } else { - pubsub_ = null; - pubsubBuilder_ = null; - } - - return this; - } - /** - *
-     * Notification config for Pub/Sub.
-     * 
- * - * .google.container.v1.NotificationConfig.PubSub pubsub = 1; - */ - public com.google.container.v1.NotificationConfig.PubSub.Builder getPubsubBuilder() { - - onChanged(); - return getPubsubFieldBuilder().getBuilder(); - } - /** - *
-     * Notification config for Pub/Sub.
-     * 
- * - * .google.container.v1.NotificationConfig.PubSub pubsub = 1; - */ - public com.google.container.v1.NotificationConfig.PubSubOrBuilder getPubsubOrBuilder() { - if (pubsubBuilder_ != null) { - return pubsubBuilder_.getMessageOrBuilder(); - } else { - return pubsub_ == null ? - com.google.container.v1.NotificationConfig.PubSub.getDefaultInstance() : pubsub_; - } - } - /** - *
-     * Notification config for Pub/Sub.
-     * 
- * - * .google.container.v1.NotificationConfig.PubSub pubsub = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NotificationConfig.PubSub, com.google.container.v1.NotificationConfig.PubSub.Builder, com.google.container.v1.NotificationConfig.PubSubOrBuilder> - getPubsubFieldBuilder() { - if (pubsubBuilder_ == null) { - pubsubBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NotificationConfig.PubSub, com.google.container.v1.NotificationConfig.PubSub.Builder, com.google.container.v1.NotificationConfig.PubSubOrBuilder>( - getPubsub(), - getParentForChildren(), - isClean()); - pubsub_ = null; - } - return pubsubBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1.NotificationConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NotificationConfig) - private static final com.google.container.v1.NotificationConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1.NotificationConfig(); - } - - public static com.google.container.v1.NotificationConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NotificationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index f80755c0442e..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NotificationConfigOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface NotificationConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NotificationConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Notification config for Pub/Sub.
-   * 
- * - * .google.container.v1.NotificationConfig.PubSub pubsub = 1; - * @return Whether the pubsub field is set. - */ - boolean hasPubsub(); - /** - *
-   * Notification config for Pub/Sub.
-   * 
- * - * .google.container.v1.NotificationConfig.PubSub pubsub = 1; - * @return The pubsub. - */ - com.google.container.v1.NotificationConfig.PubSub getPubsub(); - /** - *
-   * Notification config for Pub/Sub.
-   * 
- * - * .google.container.v1.NotificationConfig.PubSub pubsub = 1; - */ - com.google.container.v1.NotificationConfig.PubSubOrBuilder getPubsubOrBuilder(); -} diff --git a/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 deleted file mode 100644 index f5a2c66ef6d0..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java +++ /dev/null @@ -1,4185 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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.
-   * 
- * - * Protobuf enum {@code google.container.v1.Operation.Type} - */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Not set.
-     * 
- * - * TYPE_UNSPECIFIED = 0; - */ - TYPE_UNSPECIFIED(0), - /** - *
-     * Cluster create.
-     * 
- * - * CREATE_CLUSTER = 1; - */ - CREATE_CLUSTER(1), - /** - *
-     * Cluster delete.
-     * 
- * - * DELETE_CLUSTER = 2; - */ - DELETE_CLUSTER(2), - /** - *
-     * A master upgrade.
-     * 
- * - * UPGRADE_MASTER = 3; - */ - UPGRADE_MASTER(3), - /** - *
-     * A node upgrade.
-     * 
- * - * UPGRADE_NODES = 4; - */ - UPGRADE_NODES(4), - /** - *
-     * Cluster repair.
-     * 
- * - * REPAIR_CLUSTER = 5; - */ - REPAIR_CLUSTER(5), - /** - *
-     * Cluster update.
-     * 
- * - * UPDATE_CLUSTER = 6; - */ - UPDATE_CLUSTER(6), - /** - *
-     * Node pool create.
-     * 
- * - * CREATE_NODE_POOL = 7; - */ - CREATE_NODE_POOL(7), - /** - *
-     * Node pool delete.
-     * 
- * - * DELETE_NODE_POOL = 8; - */ - DELETE_NODE_POOL(8), - /** - *
-     * Set node pool management.
-     * 
- * - * SET_NODE_POOL_MANAGEMENT = 9; - */ - SET_NODE_POOL_MANAGEMENT(9), - /** - *
-     * Automatic node pool repair.
-     * 
- * - * AUTO_REPAIR_NODES = 10; - */ - AUTO_REPAIR_NODES(10), - /** - *
-     * Automatic node upgrade.
-     * 
- * - * AUTO_UPGRADE_NODES = 11; - */ - AUTO_UPGRADE_NODES(11), - /** - *
-     * Set labels.
-     * 
- * - * SET_LABELS = 12; - */ - SET_LABELS(12), - /** - *
-     * Set/generate master auth materials
-     * 
- * - * SET_MASTER_AUTH = 13; - */ - SET_MASTER_AUTH(13), - /** - *
-     * Set node pool size.
-     * 
- * - * SET_NODE_POOL_SIZE = 14; - */ - SET_NODE_POOL_SIZE(14), - /** - *
-     * Updates network policy for a cluster.
-     * 
- * - * SET_NETWORK_POLICY = 15; - */ - SET_NETWORK_POLICY(15), - /** - *
-     * Set the maintenance policy.
-     * 
- * - * SET_MAINTENANCE_POLICY = 16; - */ - SET_MAINTENANCE_POLICY(16), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Not set.
-     * 
- * - * TYPE_UNSPECIFIED = 0; - */ - public static final int TYPE_UNSPECIFIED_VALUE = 0; - /** - *
-     * Cluster create.
-     * 
- * - * CREATE_CLUSTER = 1; - */ - public static final int CREATE_CLUSTER_VALUE = 1; - /** - *
-     * Cluster delete.
-     * 
- * - * DELETE_CLUSTER = 2; - */ - public static final int DELETE_CLUSTER_VALUE = 2; - /** - *
-     * A master upgrade.
-     * 
- * - * UPGRADE_MASTER = 3; - */ - public static final int UPGRADE_MASTER_VALUE = 3; - /** - *
-     * A node upgrade.
-     * 
- * - * UPGRADE_NODES = 4; - */ - public static final int UPGRADE_NODES_VALUE = 4; - /** - *
-     * Cluster repair.
-     * 
- * - * REPAIR_CLUSTER = 5; - */ - public static final int REPAIR_CLUSTER_VALUE = 5; - /** - *
-     * Cluster update.
-     * 
- * - * UPDATE_CLUSTER = 6; - */ - public static final int UPDATE_CLUSTER_VALUE = 6; - /** - *
-     * Node pool create.
-     * 
- * - * CREATE_NODE_POOL = 7; - */ - public static final int CREATE_NODE_POOL_VALUE = 7; - /** - *
-     * Node pool delete.
-     * 
- * - * DELETE_NODE_POOL = 8; - */ - public static final int DELETE_NODE_POOL_VALUE = 8; - /** - *
-     * Set node pool management.
-     * 
- * - * SET_NODE_POOL_MANAGEMENT = 9; - */ - public static final int SET_NODE_POOL_MANAGEMENT_VALUE = 9; - /** - *
-     * Automatic node pool repair.
-     * 
- * - * AUTO_REPAIR_NODES = 10; - */ - public static final int AUTO_REPAIR_NODES_VALUE = 10; - /** - *
-     * Automatic node upgrade.
-     * 
- * - * AUTO_UPGRADE_NODES = 11; - */ - public static final int AUTO_UPGRADE_NODES_VALUE = 11; - /** - *
-     * Set labels.
-     * 
- * - * SET_LABELS = 12; - */ - public static final int SET_LABELS_VALUE = 12; - /** - *
-     * Set/generate master auth materials
-     * 
- * - * SET_MASTER_AUTH = 13; - */ - public static final int SET_MASTER_AUTH_VALUE = 13; - /** - *
-     * Set node pool size.
-     * 
- * - * SET_NODE_POOL_SIZE = 14; - */ - public static final int SET_NODE_POOL_SIZE_VALUE = 14; - /** - *
-     * Updates network policy for a cluster.
-     * 
- * - * SET_NETWORK_POLICY = 15; - */ - public static final int SET_NETWORK_POLICY_VALUE = 15; - /** - *
-     * Set the maintenance policy.
-     * 
- * - * SET_MAINTENANCE_POLICY = 16; - */ - public static final int SET_MAINTENANCE_POLICY_VALUE = 16; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Type valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Type forNumber(int value) { - switch (value) { - case 0: return TYPE_UNSPECIFIED; - case 1: return CREATE_CLUSTER; - case 2: return DELETE_CLUSTER; - case 3: return UPGRADE_MASTER; - case 4: return UPGRADE_NODES; - case 5: return REPAIR_CLUSTER; - case 6: return UPDATE_CLUSTER; - case 7: return CREATE_NODE_POOL; - case 8: return DELETE_NODE_POOL; - case 9: return SET_NODE_POOL_MANAGEMENT; - case 10: return AUTO_REPAIR_NODES; - case 11: return AUTO_UPGRADE_NODES; - case 12: return SET_LABELS; - case 13: return SET_MASTER_AUTH; - case 14: return SET_NODE_POOL_SIZE; - case 15: return SET_NETWORK_POLICY; - case 16: return SET_MAINTENANCE_POLICY; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - 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) - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-   * The server-assigned ID for the operation.
-   * 
- * - * string name = 1; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The server-assigned ID for the operation.
-   * 
- * - * string name = 1; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * operation is taking place. This field is deprecated, use location instead.
-   * 
- * - * string zone = 2 [deprecated = true]; - * @deprecated google.container.v1.Operation.zone is deprecated. - * See google/container/v1/cluster_service.proto;l=2034 - * @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=2034 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OPERATION_TYPE_FIELD_NUMBER = 3; - private int operationType_; - /** - *
-   * The operation type.
-   * 
- * - * .google.container.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() { - @SuppressWarnings("deprecation") - com.google.container.v1.Operation.Type result = com.google.container.v1.Operation.Type.valueOf(operationType_); - return result == null ? com.google.container.v1.Operation.Type.UNRECOGNIZED : result; - } - - public static final int STATUS_FIELD_NUMBER = 4; - private int status_; - /** - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.container.v1.Operation.Status result = com.google.container.v1.Operation.Status.valueOf(status_); - return result == null ? com.google.container.v1.Operation.Status.UNRECOGNIZED : result; - } - - public static final int DETAIL_FIELD_NUMBER = 8; - private volatile java.lang.Object detail_; - /** - *
-   * Detailed operation progress, if available.
-   * 
- * - * string detail = 8; - * @return The detail. - */ - @java.lang.Override - public java.lang.String getDetail() { - java.lang.Object ref = detail_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - detail_ = s; - return s; - } - } - /** - *
-   * Detailed operation progress, if available.
-   * 
- * - * string detail = 8; - * @return The bytes for detail. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDetailBytes() { - java.lang.Object ref = detail_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - detail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; - private volatile java.lang.Object statusMessage_; - /** - *
-   * Output only. If an error has occurred, a textual description of the error.
-   * Deprecated. Use 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=2047 - * @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=2047 - * @return The bytes for statusMessage. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getStatusMessageBytes() { - java.lang.Object ref = statusMessage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - statusMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SELF_LINK_FIELD_NUMBER = 6; - private volatile java.lang.Object selfLink_; - /** - *
-   * Server-defined URL for the resource.
-   * 
- * - * string self_link = 6; - * @return The selfLink. - */ - @java.lang.Override - public java.lang.String getSelfLink() { - java.lang.Object ref = selfLink_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - selfLink_ = s; - return s; - } - } - /** - *
-   * Server-defined URL for the resource.
-   * 
- * - * string self_link = 6; - * @return The bytes for selfLink. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSelfLinkBytes() { - java.lang.Object ref = selfLink_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - selfLink_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TARGET_LINK_FIELD_NUMBER = 7; - private volatile java.lang.Object targetLink_; - /** - *
-   * Server-defined URL for the target of the operation.
-   * 
- * - * string target_link = 7; - * @return The targetLink. - */ - @java.lang.Override - public java.lang.String getTargetLink() { - java.lang.Object ref = targetLink_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetLink_ = s; - return s; - } - } - /** - *
-   * Server-defined URL for the target of the operation.
-   * 
- * - * string target_link = 7; - * @return The bytes for targetLink. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTargetLinkBytes() { - java.lang.Object ref = targetLink_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - targetLink_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOCATION_FIELD_NUMBER = 9; - private volatile java.lang.Object location_; - /** - *
-   * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * or
-   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * in which the cluster resides.
-   * 
- * - * string location = 9; - * @return The location. - */ - @java.lang.Override - public java.lang.String getLocation() { - java.lang.Object ref = location_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - location_ = s; - return s; - } - } - /** - *
-   * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * or
-   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * in which the cluster resides.
-   * 
- * - * string location = 9; - * @return The bytes for location. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getLocationBytes() { - java.lang.Object ref = location_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - location_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int START_TIME_FIELD_NUMBER = 10; - private volatile java.lang.Object startTime_; - /** - *
-   * [Output only] The time the operation started, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string start_time = 10; - * @return The startTime. - */ - @java.lang.Override - public java.lang.String getStartTime() { - java.lang.Object ref = startTime_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - startTime_ = s; - return s; - } - } - /** - *
-   * [Output only] The time the operation started, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string start_time = 10; - * @return The bytes for startTime. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getStartTimeBytes() { - java.lang.Object ref = startTime_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - startTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int END_TIME_FIELD_NUMBER = 11; - private volatile java.lang.Object endTime_; - /** - *
-   * [Output only] The time the operation completed, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string end_time = 11; - * @return The endTime. - */ - @java.lang.Override - public java.lang.String getEndTime() { - java.lang.Object ref = endTime_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - endTime_ = s; - return s; - } - } - /** - *
-   * [Output only] The time the operation completed, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string end_time = 11; - * @return The bytes for endTime. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getEndTimeBytes() { - java.lang.Object ref = endTime_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - endTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROGRESS_FIELD_NUMBER = 12; - private com.google.container.v1.OperationProgress progress_; - /** - *
-   * Output only. [Output only] Progress information for an operation.
-   * 
- * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the progress field is set. - */ - @java.lang.Override - public boolean hasProgress() { - return progress_ != null; - } - /** - *
-   * Output only. [Output only] Progress information for an operation.
-   * 
- * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The progress. - */ - @java.lang.Override - public com.google.container.v1.OperationProgress getProgress() { - return progress_ == null ? com.google.container.v1.OperationProgress.getDefaultInstance() : progress_; - } - /** - *
-   * Output only. [Output only] Progress information for an operation.
-   * 
- * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.container.v1.OperationProgressOrBuilder getProgressOrBuilder() { - return getProgress(); - } - - public static final int CLUSTER_CONDITIONS_FIELD_NUMBER = 13; - private java.util.List clusterConditions_; - /** - *
-   * 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; - 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 error_ != null; - } - /** - *
-   * The error result of the operation in case of failure.
-   * 
- * - * .google.rpc.Status error = 15; - * @return The error. - */ - @java.lang.Override - public com.google.rpc.Status getError() { - return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; - } - /** - *
-   * The error result of the operation in case of failure.
-   * 
- * - * .google.rpc.Status error = 15; - */ - @java.lang.Override - public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { - return getError(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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 (progress_ != null) { - output.writeMessage(12, getProgress()); - } - for (int i = 0; i < clusterConditions_.size(); i++) { - output.writeMessage(13, clusterConditions_.get(i)); - } - for (int i = 0; i < nodepoolConditions_.size(); i++) { - output.writeMessage(14, nodepoolConditions_.get(i)); - } - if (error_ != null) { - output.writeMessage(15, getError()); - } - getUnknownFields().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 (progress_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getProgress()); - } - for (int i = 0; i < clusterConditions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, clusterConditions_.get(i)); - } - for (int i = 0; i < nodepoolConditions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, nodepoolConditions_.get(i)); - } - if (error_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, getError()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - zone_ = ""; - - operationType_ = 0; - - status_ = 0; - - detail_ = ""; - - statusMessage_ = ""; - - selfLink_ = ""; - - targetLink_ = ""; - - location_ = ""; - - startTime_ = ""; - - endTime_ = ""; - - if (progressBuilder_ == null) { - progress_ = null; - } else { - progress_ = null; - progressBuilder_ = null; - } - if (clusterConditionsBuilder_ == null) { - clusterConditions_ = java.util.Collections.emptyList(); - } else { - clusterConditions_ = null; - clusterConditionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (nodepoolConditionsBuilder_ == null) { - nodepoolConditions_ = java.util.Collections.emptyList(); - } else { - nodepoolConditions_ = null; - nodepoolConditionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - if (errorBuilder_ == null) { - error_ = null; - } else { - error_ = null; - errorBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.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); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.zone_ = zone_; - result.operationType_ = operationType_; - result.status_ = status_; - result.detail_ = detail_; - result.statusMessage_ = statusMessage_; - result.selfLink_ = selfLink_; - result.targetLink_ = targetLink_; - result.location_ = location_; - result.startTime_ = startTime_; - result.endTime_ = endTime_; - if (progressBuilder_ == null) { - result.progress_ = progress_; - } else { - result.progress_ = progressBuilder_.build(); - } - if (clusterConditionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - clusterConditions_ = java.util.Collections.unmodifiableList(clusterConditions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.clusterConditions_ = clusterConditions_; - } else { - result.clusterConditions_ = clusterConditionsBuilder_.build(); - } - if (nodepoolConditionsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - nodepoolConditions_ = java.util.Collections.unmodifiableList(nodepoolConditions_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.nodepoolConditions_ = nodepoolConditions_; - } else { - result.nodepoolConditions_ = nodepoolConditionsBuilder_.build(); - } - if (errorBuilder_ == null) { - result.error_ = error_; - } else { - result.error_ = errorBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (other.operationType_ != 0) { - setOperationTypeValue(other.getOperationTypeValue()); - } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); - } - if (!other.getDetail().isEmpty()) { - detail_ = other.detail_; - onChanged(); - } - if (!other.getStatusMessage().isEmpty()) { - statusMessage_ = other.statusMessage_; - onChanged(); - } - if (!other.getSelfLink().isEmpty()) { - selfLink_ = other.selfLink_; - onChanged(); - } - if (!other.getTargetLink().isEmpty()) { - targetLink_ = other.targetLink_; - onChanged(); - } - if (!other.getLocation().isEmpty()) { - location_ = other.location_; - onChanged(); - } - if (!other.getStartTime().isEmpty()) { - startTime_ = other.startTime_; - onChanged(); - } - if (!other.getEndTime().isEmpty()) { - endTime_ = other.endTime_; - onChanged(); - } - if (other.hasProgress()) { - mergeProgress(other.getProgress()); - } - if (clusterConditionsBuilder_ == null) { - if (!other.clusterConditions_.isEmpty()) { - if (clusterConditions_.isEmpty()) { - clusterConditions_ = other.clusterConditions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureClusterConditionsIsMutable(); - clusterConditions_.addAll(other.clusterConditions_); - } - onChanged(); - } - } else { - if (!other.clusterConditions_.isEmpty()) { - if (clusterConditionsBuilder_.isEmpty()) { - clusterConditionsBuilder_.dispose(); - clusterConditionsBuilder_ = null; - clusterConditions_ = other.clusterConditions_; - bitField0_ = (bitField0_ & ~0x00000001); - clusterConditionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getClusterConditionsFieldBuilder() : null; - } else { - clusterConditionsBuilder_.addAllMessages(other.clusterConditions_); - } - } - } - if (nodepoolConditionsBuilder_ == null) { - if (!other.nodepoolConditions_.isEmpty()) { - if (nodepoolConditions_.isEmpty()) { - nodepoolConditions_ = other.nodepoolConditions_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureNodepoolConditionsIsMutable(); - nodepoolConditions_.addAll(other.nodepoolConditions_); - } - onChanged(); - } - } else { - if (!other.nodepoolConditions_.isEmpty()) { - if (nodepoolConditionsBuilder_.isEmpty()) { - nodepoolConditionsBuilder_.dispose(); - nodepoolConditionsBuilder_ = null; - nodepoolConditions_ = other.nodepoolConditions_; - bitField0_ = (bitField0_ & ~0x00000002); - nodepoolConditionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNodepoolConditionsFieldBuilder() : null; - } else { - nodepoolConditionsBuilder_.addAllMessages(other.nodepoolConditions_); - } - } - } - if (other.hasError()) { - mergeError(other.getError()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: { - operationType_ = input.readEnum(); - - break; - } // case 24 - case 32: { - status_ = input.readEnum(); - - break; - } // case 32 - case 42: { - statusMessage_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: { - selfLink_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 58: { - targetLink_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 66: { - detail_ = input.readStringRequireUtf8(); - - break; - } // case 66 - case 74: { - location_ = input.readStringRequireUtf8(); - - break; - } // case 74 - case 82: { - startTime_ = input.readStringRequireUtf8(); - - break; - } // case 82 - case 90: { - endTime_ = input.readStringRequireUtf8(); - - break; - } // case 90 - case 98: { - input.readMessage( - getProgressFieldBuilder().getBuilder(), - extensionRegistry); - - 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); - - 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; - onChanged(); - return this; - } - /** - *
-     * The server-assigned ID for the operation.
-     * 
- * - * string name = 1; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The server-assigned ID for the operation.
-     * 
- * - * string name = 1; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * operation is taking place. This field is deprecated, use location instead.
-     * 
- * - * string zone = 2 [deprecated = true]; - * @deprecated google.container.v1.Operation.zone is deprecated. - * See google/container/v1/cluster_service.proto;l=2034 - * @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=2034 - * @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=2034 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * operation is taking place. This field is deprecated, use location instead.
-     * 
- * - * string zone = 2 [deprecated = true]; - * @deprecated google.container.v1.Operation.zone is deprecated. - * See google/container/v1/cluster_service.proto;l=2034 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - *
-     * The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * operation is taking place. This field is deprecated, use location instead.
-     * 
- * - * string zone = 2 [deprecated = true]; - * @deprecated google.container.v1.Operation.zone is deprecated. - * See google/container/v1/cluster_service.proto;l=2034 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private int operationType_ = 0; - /** - *
-     * The operation type.
-     * 
- * - * .google.container.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; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1.Operation.Type result = com.google.container.v1.Operation.Type.valueOf(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(); - } - - 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() { - - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1.Operation.Status result = com.google.container.v1.Operation.Status.valueOf(status_); - return result == null ? com.google.container.v1.Operation.Status.UNRECOGNIZED : result; - } - /** - *
-     * 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(); - } - - 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() { - - status_ = 0; - onChanged(); - return this; - } - - private java.lang.Object detail_ = ""; - /** - *
-     * Detailed operation progress, if available.
-     * 
- * - * string detail = 8; - * @return The detail. - */ - public java.lang.String getDetail() { - java.lang.Object ref = detail_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - detail_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Detailed operation progress, if available.
-     * 
- * - * string detail = 8; - * @return The bytes for detail. - */ - public com.google.protobuf.ByteString - getDetailBytes() { - java.lang.Object ref = detail_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - detail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Detailed operation progress, if available.
-     * 
- * - * string detail = 8; - * @param value The detail to set. - * @return This builder for chaining. - */ - public Builder setDetail( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - detail_ = value; - onChanged(); - return this; - } - /** - *
-     * Detailed operation progress, if available.
-     * 
- * - * string detail = 8; - * @return This builder for chaining. - */ - public Builder clearDetail() { - - detail_ = getDefaultInstance().getDetail(); - onChanged(); - return this; - } - /** - *
-     * Detailed operation progress, if available.
-     * 
- * - * string detail = 8; - * @param value The bytes for detail to set. - * @return This builder for chaining. - */ - public Builder setDetailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - detail_ = value; - onChanged(); - return this; - } - - private java.lang.Object statusMessage_ = ""; - /** - *
-     * Output only. If an error has occurred, a textual description of the error.
-     * Deprecated. Use 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=2047 - * @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=2047 - * @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=2047 - * @param value The statusMessage to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setStatusMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - statusMessage_ = value; - onChanged(); - return this; - } - /** - *
-     * Output only. If an error has occurred, a textual description of the error.
-     * Deprecated. Use 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=2047 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearStatusMessage() { - - statusMessage_ = getDefaultInstance().getStatusMessage(); - onChanged(); - return this; - } - /** - *
-     * Output only. If an error has occurred, a textual description of the error.
-     * Deprecated. Use 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=2047 - * @param value The bytes for statusMessage to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setStatusMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - statusMessage_ = value; - onChanged(); - return this; - } - - private java.lang.Object selfLink_ = ""; - /** - *
-     * Server-defined URL for the resource.
-     * 
- * - * string self_link = 6; - * @return The selfLink. - */ - public java.lang.String getSelfLink() { - java.lang.Object ref = selfLink_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - selfLink_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Server-defined URL for the resource.
-     * 
- * - * string self_link = 6; - * @return The bytes for selfLink. - */ - public com.google.protobuf.ByteString - getSelfLinkBytes() { - java.lang.Object ref = selfLink_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - selfLink_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Server-defined URL for the resource.
-     * 
- * - * string self_link = 6; - * @param value The selfLink to set. - * @return This builder for chaining. - */ - public Builder setSelfLink( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - selfLink_ = value; - onChanged(); - return this; - } - /** - *
-     * Server-defined URL for the resource.
-     * 
- * - * string self_link = 6; - * @return This builder for chaining. - */ - public Builder clearSelfLink() { - - selfLink_ = getDefaultInstance().getSelfLink(); - onChanged(); - return this; - } - /** - *
-     * Server-defined URL for the resource.
-     * 
- * - * string self_link = 6; - * @param value The bytes for selfLink to set. - * @return This builder for chaining. - */ - public Builder setSelfLinkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - selfLink_ = value; - onChanged(); - return this; - } - - private java.lang.Object targetLink_ = ""; - /** - *
-     * Server-defined URL for the target of the operation.
-     * 
- * - * string target_link = 7; - * @return The targetLink. - */ - public java.lang.String getTargetLink() { - java.lang.Object ref = targetLink_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetLink_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Server-defined URL for the target of the operation.
-     * 
- * - * string target_link = 7; - * @return The bytes for targetLink. - */ - public com.google.protobuf.ByteString - getTargetLinkBytes() { - java.lang.Object ref = targetLink_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - targetLink_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Server-defined URL for the target of the operation.
-     * 
- * - * string target_link = 7; - * @param value The targetLink to set. - * @return This builder for chaining. - */ - public Builder setTargetLink( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - targetLink_ = value; - onChanged(); - return this; - } - /** - *
-     * Server-defined URL for the target of the operation.
-     * 
- * - * string target_link = 7; - * @return This builder for chaining. - */ - public Builder clearTargetLink() { - - targetLink_ = getDefaultInstance().getTargetLink(); - onChanged(); - return this; - } - /** - *
-     * Server-defined URL for the target of the operation.
-     * 
- * - * string target_link = 7; - * @param value The bytes for targetLink to set. - * @return This builder for chaining. - */ - public Builder setTargetLinkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - targetLink_ = value; - onChanged(); - return this; - } - - private java.lang.Object location_ = ""; - /** - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * in which the cluster resides.
-     * 
- * - * string location = 9; - * @return The location. - */ - public java.lang.String getLocation() { - java.lang.Object ref = location_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - location_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * in which the cluster resides.
-     * 
- * - * string location = 9; - * @return The bytes for location. - */ - public com.google.protobuf.ByteString - getLocationBytes() { - java.lang.Object ref = location_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - location_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * in which the cluster resides.
-     * 
- * - * string location = 9; - * @param value The location to set. - * @return This builder for chaining. - */ - public Builder setLocation( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - location_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * in which the cluster resides.
-     * 
- * - * string location = 9; - * @return This builder for chaining. - */ - public Builder clearLocation() { - - location_ = getDefaultInstance().getLocation(); - onChanged(); - return this; - } - /** - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * in which the cluster resides.
-     * 
- * - * string location = 9; - * @param value The bytes for location to set. - * @return This builder for chaining. - */ - public Builder setLocationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - location_ = value; - onChanged(); - return this; - } - - private java.lang.Object startTime_ = ""; - /** - *
-     * [Output only] The time the operation started, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string start_time = 10; - * @return The startTime. - */ - public java.lang.String getStartTime() { - java.lang.Object ref = startTime_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - startTime_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * [Output only] The time the operation started, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string start_time = 10; - * @return The bytes for startTime. - */ - public com.google.protobuf.ByteString - getStartTimeBytes() { - java.lang.Object ref = startTime_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - startTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * [Output only] The time the operation started, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string start_time = 10; - * @param value The startTime to set. - * @return This builder for chaining. - */ - public Builder setStartTime( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - startTime_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] The time the operation started, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string start_time = 10; - * @return This builder for chaining. - */ - public Builder clearStartTime() { - - startTime_ = getDefaultInstance().getStartTime(); - onChanged(); - return this; - } - /** - *
-     * [Output only] The time the operation started, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string start_time = 10; - * @param value The bytes for startTime to set. - * @return This builder for chaining. - */ - public Builder setStartTimeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - startTime_ = value; - onChanged(); - return this; - } - - private java.lang.Object endTime_ = ""; - /** - *
-     * [Output only] The time the operation completed, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string end_time = 11; - * @return The endTime. - */ - public java.lang.String getEndTime() { - java.lang.Object ref = endTime_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - endTime_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * [Output only] The time the operation completed, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string end_time = 11; - * @return The bytes for endTime. - */ - public com.google.protobuf.ByteString - getEndTimeBytes() { - java.lang.Object ref = endTime_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - endTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * [Output only] The time the operation completed, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string end_time = 11; - * @param value The endTime to set. - * @return This builder for chaining. - */ - public Builder setEndTime( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - endTime_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] The time the operation completed, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string end_time = 11; - * @return This builder for chaining. - */ - public Builder clearEndTime() { - - endTime_ = getDefaultInstance().getEndTime(); - onChanged(); - return this; - } - /** - *
-     * [Output only] The time the operation completed, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string end_time = 11; - * @param value The bytes for endTime to set. - * @return This builder for chaining. - */ - public Builder setEndTimeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - endTime_ = value; - onChanged(); - return this; - } - - private com.google.container.v1.OperationProgress progress_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.OperationProgress, com.google.container.v1.OperationProgress.Builder, com.google.container.v1.OperationProgressOrBuilder> progressBuilder_; - /** - *
-     * Output only. [Output only] Progress information for an operation.
-     * 
- * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the progress field is set. - */ - public boolean hasProgress() { - return progressBuilder_ != null || progress_ != null; - } - /** - *
-     * Output only. [Output only] Progress information for an operation.
-     * 
- * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The progress. - */ - public com.google.container.v1.OperationProgress getProgress() { - if (progressBuilder_ == null) { - return progress_ == null ? com.google.container.v1.OperationProgress.getDefaultInstance() : progress_; - } else { - return progressBuilder_.getMessage(); - } - } - /** - *
-     * Output only. [Output only] Progress information for an operation.
-     * 
- * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setProgress(com.google.container.v1.OperationProgress value) { - if (progressBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - progress_ = value; - onChanged(); - } else { - progressBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Output only. [Output only] Progress information for an operation.
-     * 
- * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setProgress( - com.google.container.v1.OperationProgress.Builder builderForValue) { - if (progressBuilder_ == null) { - progress_ = builderForValue.build(); - onChanged(); - } else { - progressBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Output only. [Output only] Progress information for an operation.
-     * 
- * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeProgress(com.google.container.v1.OperationProgress value) { - if (progressBuilder_ == null) { - if (progress_ != null) { - progress_ = - com.google.container.v1.OperationProgress.newBuilder(progress_).mergeFrom(value).buildPartial(); - } else { - progress_ = value; - } - onChanged(); - } else { - progressBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Output only. [Output only] Progress information for an operation.
-     * 
- * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearProgress() { - if (progressBuilder_ == null) { - progress_ = null; - onChanged(); - } else { - progress_ = null; - progressBuilder_ = null; - } - - return this; - } - /** - *
-     * Output only. [Output only] Progress information for an operation.
-     * 
- * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.container.v1.OperationProgress.Builder getProgressBuilder() { - - onChanged(); - return getProgressFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. [Output only] Progress information for an operation.
-     * 
- * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.container.v1.OperationProgressOrBuilder getProgressOrBuilder() { - if (progressBuilder_ != null) { - return progressBuilder_.getMessageOrBuilder(); - } else { - return progress_ == null ? - com.google.container.v1.OperationProgress.getDefaultInstance() : progress_; - } - } - /** - *
-     * Output only. [Output only] Progress information for an operation.
-     * 
- * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.OperationProgress, com.google.container.v1.OperationProgress.Builder, com.google.container.v1.OperationProgressOrBuilder> - getProgressFieldBuilder() { - if (progressBuilder_ == null) { - progressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.OperationProgress, com.google.container.v1.OperationProgress.Builder, com.google.container.v1.OperationProgressOrBuilder>( - getProgress(), - getParentForChildren(), - isClean()); - progress_ = null; - } - return progressBuilder_; - } - - private java.util.List clusterConditions_ = - java.util.Collections.emptyList(); - private void ensureClusterConditionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - clusterConditions_ = new java.util.ArrayList(clusterConditions_); - bitField0_ |= 0x00000001; - } - } - - 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_ & ~0x00000001); - 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_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - clusterConditions_ = null; - } - return clusterConditionsBuilder_; - } - - private java.util.List nodepoolConditions_ = - java.util.Collections.emptyList(); - private void ensureNodepoolConditionsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - nodepoolConditions_ = new java.util.ArrayList(nodepoolConditions_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.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_ & ~0x00000002); - 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_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - nodepoolConditions_ = null; - } - return nodepoolConditionsBuilder_; - } - - private com.google.rpc.Status error_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; - /** - *
-     * The error result of the operation in case of failure.
-     * 
- * - * .google.rpc.Status error = 15; - * @return Whether the error field is set. - */ - public boolean hasError() { - return errorBuilder_ != null || error_ != null; - } - /** - *
-     * The error result of the operation in case of failure.
-     * 
- * - * .google.rpc.Status error = 15; - * @return The error. - */ - public com.google.rpc.Status getError() { - if (errorBuilder_ == null) { - return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; - } else { - return errorBuilder_.getMessage(); - } - } - /** - *
-     * The error result of the operation in case of failure.
-     * 
- * - * .google.rpc.Status error = 15; - */ - public Builder setError(com.google.rpc.Status value) { - if (errorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - error_ = value; - onChanged(); - } else { - errorBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The error result of the operation in case of failure.
-     * 
- * - * .google.rpc.Status error = 15; - */ - public Builder setError( - com.google.rpc.Status.Builder builderForValue) { - if (errorBuilder_ == null) { - error_ = builderForValue.build(); - onChanged(); - } else { - errorBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The error result of the operation in case of failure.
-     * 
- * - * .google.rpc.Status error = 15; - */ - public Builder mergeError(com.google.rpc.Status value) { - if (errorBuilder_ == null) { - if (error_ != null) { - error_ = - com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); - } else { - error_ = value; - } - onChanged(); - } else { - errorBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The error result of the operation in case of failure.
-     * 
- * - * .google.rpc.Status error = 15; - */ - public Builder clearError() { - if (errorBuilder_ == null) { - error_ = null; - onChanged(); - } else { - error_ = null; - errorBuilder_ = null; - } - - return this; - } - /** - *
-     * The error result of the operation in case of failure.
-     * 
- * - * .google.rpc.Status error = 15; - */ - public com.google.rpc.Status.Builder getErrorBuilder() { - - onChanged(); - return getErrorFieldBuilder().getBuilder(); - } - /** - *
-     * The error result of the operation in case of failure.
-     * 
- * - * .google.rpc.Status error = 15; - */ - public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { - if (errorBuilder_ != null) { - return errorBuilder_.getMessageOrBuilder(); - } else { - return error_ == null ? - com.google.rpc.Status.getDefaultInstance() : error_; - } - } - /** - *
-     * The error result of the operation in case of failure.
-     * 
- * - * .google.rpc.Status error = 15; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - getErrorFieldBuilder() { - if (errorBuilder_ == null) { - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - getError(), - getParentForChildren(), - isClean()); - error_ = null; - } - return errorBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index 6abaa51b17ba..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java +++ /dev/null @@ -1,405 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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=2034 - * @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=2034 - * @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=2047 - * @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=2047 - * @return The bytes for statusMessage. - */ - @java.lang.Deprecated com.google.protobuf.ByteString - getStatusMessageBytes(); - - /** - *
-   * Server-defined URL for the resource.
-   * 
- * - * string self_link = 6; - * @return The selfLink. - */ - java.lang.String getSelfLink(); - /** - *
-   * Server-defined URL for the resource.
-   * 
- * - * string self_link = 6; - * @return The bytes for selfLink. - */ - com.google.protobuf.ByteString - getSelfLinkBytes(); - - /** - *
-   * Server-defined URL for the target of the operation.
-   * 
- * - * string target_link = 7; - * @return The targetLink. - */ - java.lang.String getTargetLink(); - /** - *
-   * Server-defined URL for the target of the operation.
-   * 
- * - * string target_link = 7; - * @return The bytes for targetLink. - */ - com.google.protobuf.ByteString - getTargetLinkBytes(); - - /** - *
-   * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * or
-   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * in which the cluster resides.
-   * 
- * - * string location = 9; - * @return The location. - */ - java.lang.String getLocation(); - /** - *
-   * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * or
-   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * in which the cluster resides.
-   * 
- * - * string location = 9; - * @return The bytes for location. - */ - com.google.protobuf.ByteString - getLocationBytes(); - - /** - *
-   * [Output only] The time the operation started, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string start_time = 10; - * @return The startTime. - */ - java.lang.String getStartTime(); - /** - *
-   * [Output only] The time the operation started, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string start_time = 10; - * @return The bytes for startTime. - */ - com.google.protobuf.ByteString - getStartTimeBytes(); - - /** - *
-   * [Output only] The time the operation completed, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string end_time = 11; - * @return The endTime. - */ - java.lang.String getEndTime(); - /** - *
-   * [Output only] The time the operation completed, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string end_time = 11; - * @return The bytes for endTime. - */ - com.google.protobuf.ByteString - getEndTimeBytes(); - - /** - *
-   * Output only. [Output only] Progress information for an operation.
-   * 
- * - * .google.container.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 deleted file mode 100644 index 35a84866e89a..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationProgress.java +++ /dev/null @@ -1,2894 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * Information about operation (or operation stage) progress.
- * 
- * - * Protobuf type {@code google.container.v1.OperationProgress} - */ -public final class OperationProgress extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.OperationProgress) - OperationProgressOrBuilder { -private static final long serialVersionUID = 0L; - // Use OperationProgress.newBuilder() to construct. - private OperationProgress(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OperationProgress() { - name_ = ""; - status_ = 0; - metrics_ = java.util.Collections.emptyList(); - stages_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OperationProgress(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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(); - - public com.google.container.v1.OperationProgress.Metric.ValueCase getValueCase(); - } - /** - *
-   * Progress metric is (string, int|float|string) pair.
-   * 
- * - * Protobuf type {@code google.container.v1.OperationProgress.Metric} - */ - public static final class Metric extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.OperationProgress.Metric) - MetricOrBuilder { - private static final long serialVersionUID = 0L; - // Use Metric.newBuilder() to construct. - private Metric(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Metric() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Metric(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_OperationProgress_Metric_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_OperationProgress_Metric_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.OperationProgress.Metric.class, com.google.container.v1.OperationProgress.Metric.Builder.class); - } - - private int valueCase_ = 0; - private java.lang.Object value_; - public enum ValueCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - INT_VALUE(2), - DOUBLE_VALUE(3), - STRING_VALUE(4), - VALUE_NOT_SET(0); - private final int value; - private ValueCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValueCase valueOf(int value) { - return forNumber(value); - } - - public static ValueCase forNumber(int value) { - switch (value) { - case 2: return INT_VALUE; - case 3: return DOUBLE_VALUE; - case 4: return STRING_VALUE; - case 0: return VALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-     * Required. Metric name, e.g., "nodes total", "percent done".
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-     * Required. Metric name, e.g., "nodes total", "percent done".
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INT_VALUE_FIELD_NUMBER = 2; - /** - *
-     * For metrics with integer value.
-     * 
- * - * int64 int_value = 2; - * @return 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(); - name_ = ""; - - valueCase_ = 0; - value_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_OperationProgress_Metric_descriptor; - } - - @java.lang.Override - public com.google.container.v1.OperationProgress.Metric getDefaultInstanceForType() { - return com.google.container.v1.OperationProgress.Metric.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.OperationProgress.Metric build() { - com.google.container.v1.OperationProgress.Metric result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.OperationProgress.Metric buildPartial() { - com.google.container.v1.OperationProgress.Metric result = new com.google.container.v1.OperationProgress.Metric(this); - result.name_ = name_; - if (valueCase_ == 2) { - result.value_ = value_; - } - if (valueCase_ == 3) { - result.value_ = value_; - } - if (valueCase_ == 4) { - result.value_ = value_; - } - result.valueCase_ = valueCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.OperationProgress.Metric) { - return mergeFrom((com.google.container.v1.OperationProgress.Metric)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.OperationProgress.Metric other) { - if (other == com.google.container.v1.OperationProgress.Metric.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - switch (other.getValueCase()) { - case INT_VALUE: { - setIntValue(other.getIntValue()); - break; - } - case DOUBLE_VALUE: { - setDoubleValue(other.getDoubleValue()); - break; - } - case STRING_VALUE: { - valueCase_ = 4; - value_ = other.value_; - onChanged(); - break; - } - case VALUE_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 java.lang.Object name_ = ""; - /** - *
-       * Required. Metric name, e.g., "nodes total", "percent done".
-       * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Required. Metric name, e.g., "nodes total", "percent done".
-       * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Required. Metric name, e.g., "nodes total", "percent done".
-       * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * Required. Metric name, e.g., "nodes total", "percent done".
-       * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * Required. Metric name, e.g., "nodes total", "percent done".
-       * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - /** - *
-       * For metrics with integer value.
-       * 
- * - * int64 int_value = 2; - * @return Whether the intValue field is set. - */ - public boolean hasIntValue() { - return valueCase_ == 2; - } - /** - *
-       * For metrics with integer value.
-       * 
- * - * int64 int_value = 2; - * @return The intValue. - */ - public long getIntValue() { - if (valueCase_ == 2) { - return (java.lang.Long) value_; - } - return 0L; - } - /** - *
-       * For metrics with integer value.
-       * 
- * - * int64 int_value = 2; - * @param value The intValue to set. - * @return This builder for chaining. - */ - public Builder setIntValue(long value) { - valueCase_ = 2; - value_ = value; - onChanged(); - return this; - } - /** - *
-       * For metrics with integer value.
-       * 
- * - * int64 int_value = 2; - * @return This builder for chaining. - */ - public Builder clearIntValue() { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - - /** - *
-       * For metrics with floating point value.
-       * 
- * - * double double_value = 3; - * @return Whether the doubleValue field is set. - */ - public boolean hasDoubleValue() { - return valueCase_ == 3; - } - /** - *
-       * For metrics with floating point value.
-       * 
- * - * double double_value = 3; - * @return The doubleValue. - */ - public double getDoubleValue() { - if (valueCase_ == 3) { - return (java.lang.Double) value_; - } - return 0D; - } - /** - *
-       * For metrics with floating point value.
-       * 
- * - * double double_value = 3; - * @param value The doubleValue to set. - * @return This builder for chaining. - */ - public Builder setDoubleValue(double value) { - valueCase_ = 3; - value_ = value; - onChanged(); - return this; - } - /** - *
-       * For metrics with floating point value.
-       * 
- * - * double double_value = 3; - * @return This builder for chaining. - */ - public Builder clearDoubleValue() { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - - /** - *
-       * For metrics with custom values (ratios, visual progress, etc.).
-       * 
- * - * string string_value = 4; - * @return Whether the stringValue field is set. - */ - @java.lang.Override - public boolean hasStringValue() { - return valueCase_ == 4; - } - /** - *
-       * For metrics with custom values (ratios, visual progress, etc.).
-       * 
- * - * string string_value = 4; - * @return The stringValue. - */ - @java.lang.Override - public java.lang.String getStringValue() { - java.lang.Object ref = ""; - if (valueCase_ == 4) { - ref = value_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valueCase_ == 4) { - value_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * For metrics with custom values (ratios, visual progress, etc.).
-       * 
- * - * string string_value = 4; - * @return The bytes for stringValue. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getStringValueBytes() { - java.lang.Object ref = ""; - if (valueCase_ == 4) { - ref = value_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valueCase_ == 4) { - value_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * For metrics with custom values (ratios, visual progress, etc.).
-       * 
- * - * string string_value = 4; - * @param value The stringValue to set. - * @return This builder for chaining. - */ - public Builder setStringValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - valueCase_ = 4; - value_ = value; - onChanged(); - return this; - } - /** - *
-       * For metrics with custom values (ratios, visual progress, etc.).
-       * 
- * - * string string_value = 4; - * @return This builder for chaining. - */ - public Builder clearStringValue() { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - /** - *
-       * For metrics with custom values (ratios, visual progress, etc.).
-       * 
- * - * string string_value = 4; - * @param value The bytes for stringValue to set. - * @return This builder for chaining. - */ - public Builder setStringValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - valueCase_ = 4; - value_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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; - private volatile java.lang.Object name_; - /** - *
-   * A non-parameterized string describing an operation stage.
-   * Unset for single-stage operations.
-   * 
- * - * string name = 1; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * A non-parameterized string describing an operation stage.
-   * Unset for single-stage operations.
-   * 
- * - * string name = 1; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_FIELD_NUMBER = 2; - private int status_; - /** - *
-   * Status of an operation stage.
-   * Unset for single-stage operations.
-   * 
- * - * .google.container.v1.Operation.Status status = 2; - * @return The enum numeric value on the wire for status. - */ - @java.lang.Override public int getStatusValue() { - return status_; - } - /** - *
-   * Status of an operation stage.
-   * Unset for single-stage operations.
-   * 
- * - * .google.container.v1.Operation.Status status = 2; - * @return The status. - */ - @java.lang.Override public com.google.container.v1.Operation.Status getStatus() { - @SuppressWarnings("deprecation") - com.google.container.v1.Operation.Status result = com.google.container.v1.Operation.Status.valueOf(status_); - return result == null ? com.google.container.v1.Operation.Status.UNRECOGNIZED : result; - } - - public static final int METRICS_FIELD_NUMBER = 3; - private java.util.List metrics_; - /** - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - @java.lang.Override - public java.util.List getMetricsList() { - return metrics_; - } - /** - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - @java.lang.Override - public java.util.List - getMetricsOrBuilderList() { - return metrics_; - } - /** - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - @java.lang.Override - public int getMetricsCount() { - return metrics_.size(); - } - /** - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - @java.lang.Override - public com.google.container.v1.OperationProgress.Metric getMetrics(int index) { - return metrics_.get(index); - } - /** - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - @java.lang.Override - public com.google.container.v1.OperationProgress.MetricOrBuilder getMetricsOrBuilder( - int index) { - return metrics_.get(index); - } - - public static final int STAGES_FIELD_NUMBER = 4; - private java.util.List stages_; - /** - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - @java.lang.Override - public java.util.List getStagesList() { - return stages_; - } - /** - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - @java.lang.Override - public java.util.List - getStagesOrBuilderList() { - return stages_; - } - /** - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - @java.lang.Override - public int getStagesCount() { - return stages_.size(); - } - /** - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - @java.lang.Override - public com.google.container.v1.OperationProgress getStages(int index) { - return stages_.get(index); - } - /** - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - @java.lang.Override - public com.google.container.v1.OperationProgressOrBuilder getStagesOrBuilder( - int index) { - return stages_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - name_ = ""; - - status_ = 0; - - if (metricsBuilder_ == null) { - metrics_ = java.util.Collections.emptyList(); - } else { - metrics_ = null; - metricsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (stagesBuilder_ == null) { - stages_ = java.util.Collections.emptyList(); - } else { - stages_ = null; - stagesBuilder_.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_OperationProgress_descriptor; - } - - @java.lang.Override - public com.google.container.v1.OperationProgress getDefaultInstanceForType() { - return com.google.container.v1.OperationProgress.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.OperationProgress build() { - com.google.container.v1.OperationProgress result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.OperationProgress buildPartial() { - com.google.container.v1.OperationProgress result = new com.google.container.v1.OperationProgress(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.status_ = status_; - if (metricsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - metrics_ = java.util.Collections.unmodifiableList(metrics_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.metrics_ = metrics_; - } else { - result.metrics_ = metricsBuilder_.build(); - } - if (stagesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - stages_ = java.util.Collections.unmodifiableList(stages_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.stages_ = stages_; - } else { - result.stages_ = stagesBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.OperationProgress) { - return mergeFrom((com.google.container.v1.OperationProgress)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.OperationProgress other) { - if (other == com.google.container.v1.OperationProgress.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); - } - if (metricsBuilder_ == null) { - if (!other.metrics_.isEmpty()) { - if (metrics_.isEmpty()) { - metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureMetricsIsMutable(); - metrics_.addAll(other.metrics_); - } - onChanged(); - } - } else { - if (!other.metrics_.isEmpty()) { - if (metricsBuilder_.isEmpty()) { - metricsBuilder_.dispose(); - metricsBuilder_ = null; - metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000001); - metricsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMetricsFieldBuilder() : null; - } else { - metricsBuilder_.addAllMessages(other.metrics_); - } - } - } - if (stagesBuilder_ == null) { - if (!other.stages_.isEmpty()) { - if (stages_.isEmpty()) { - stages_ = other.stages_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureStagesIsMutable(); - stages_.addAll(other.stages_); - } - onChanged(); - } - } else { - if (!other.stages_.isEmpty()) { - if (stagesBuilder_.isEmpty()) { - stagesBuilder_.dispose(); - stagesBuilder_ = null; - stages_ = other.stages_; - bitField0_ = (bitField0_ & ~0x00000002); - stagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getStagesFieldBuilder() : null; - } else { - stagesBuilder_.addAllMessages(other.stages_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 16: { - status_ = input.readEnum(); - - 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; - onChanged(); - return this; - } - /** - *
-     * A non-parameterized string describing an operation stage.
-     * Unset for single-stage operations.
-     * 
- * - * string name = 1; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * A non-parameterized string describing an operation stage.
-     * Unset for single-stage operations.
-     * 
- * - * string name = 1; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private int status_ = 0; - /** - *
-     * Status of an operation stage.
-     * Unset for single-stage operations.
-     * 
- * - * .google.container.v1.Operation.Status status = 2; - * @return The enum numeric value on the wire for status. - */ - @java.lang.Override public int getStatusValue() { - return status_; - } - /** - *
-     * Status of an operation stage.
-     * Unset for single-stage operations.
-     * 
- * - * .google.container.v1.Operation.Status status = 2; - * @param value The enum numeric value on the wire for status to set. - * @return This builder for chaining. - */ - public Builder setStatusValue(int value) { - - status_ = value; - onChanged(); - return this; - } - /** - *
-     * Status of an operation stage.
-     * Unset for single-stage operations.
-     * 
- * - * .google.container.v1.Operation.Status status = 2; - * @return The status. - */ - @java.lang.Override - public com.google.container.v1.Operation.Status getStatus() { - @SuppressWarnings("deprecation") - com.google.container.v1.Operation.Status result = com.google.container.v1.Operation.Status.valueOf(status_); - return result == null ? com.google.container.v1.Operation.Status.UNRECOGNIZED : result; - } - /** - *
-     * Status of an operation stage.
-     * Unset for single-stage operations.
-     * 
- * - * .google.container.v1.Operation.Status status = 2; - * @param value The status to set. - * @return This builder for chaining. - */ - public Builder setStatus(com.google.container.v1.Operation.Status value) { - if (value == null) { - throw new NullPointerException(); - } - - status_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Status of an operation stage.
-     * Unset for single-stage operations.
-     * 
- * - * .google.container.v1.Operation.Status status = 2; - * @return This builder for chaining. - */ - public Builder clearStatus() { - - status_ = 0; - onChanged(); - return this; - } - - private java.util.List metrics_ = - java.util.Collections.emptyList(); - private void ensureMetricsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - metrics_ = new java.util.ArrayList(metrics_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.OperationProgress.Metric, com.google.container.v1.OperationProgress.Metric.Builder, com.google.container.v1.OperationProgress.MetricOrBuilder> metricsBuilder_; - - /** - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public java.util.List getMetricsList() { - if (metricsBuilder_ == null) { - return java.util.Collections.unmodifiableList(metrics_); - } else { - return metricsBuilder_.getMessageList(); - } - } - /** - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public int getMetricsCount() { - if (metricsBuilder_ == null) { - return metrics_.size(); - } else { - return metricsBuilder_.getCount(); - } - } - /** - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public com.google.container.v1.OperationProgress.Metric getMetrics(int index) { - if (metricsBuilder_ == null) { - return metrics_.get(index); - } else { - return metricsBuilder_.getMessage(index); - } - } - /** - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public Builder setMetrics( - int index, com.google.container.v1.OperationProgress.Metric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.set(index, value); - onChanged(); - } else { - metricsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public Builder setMetrics( - int index, com.google.container.v1.OperationProgress.Metric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.set(index, builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public Builder addMetrics(com.google.container.v1.OperationProgress.Metric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.add(value); - onChanged(); - } else { - metricsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public Builder addMetrics( - int index, com.google.container.v1.OperationProgress.Metric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.add(index, value); - onChanged(); - } else { - metricsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public Builder addMetrics( - com.google.container.v1.OperationProgress.Metric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public Builder addMetrics( - int index, com.google.container.v1.OperationProgress.Metric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(index, builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public Builder addAllMetrics( - java.lang.Iterable values) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, metrics_); - onChanged(); - } else { - metricsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public Builder clearMetrics() { - if (metricsBuilder_ == null) { - metrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - metricsBuilder_.clear(); - } - return this; - } - /** - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public Builder removeMetrics(int index) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.remove(index); - onChanged(); - } else { - metricsBuilder_.remove(index); - } - return this; - } - /** - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public com.google.container.v1.OperationProgress.Metric.Builder getMetricsBuilder( - int index) { - return getMetricsFieldBuilder().getBuilder(index); - } - /** - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public com.google.container.v1.OperationProgress.MetricOrBuilder getMetricsOrBuilder( - int index) { - if (metricsBuilder_ == null) { - return metrics_.get(index); } else { - return metricsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public java.util.List - getMetricsOrBuilderList() { - if (metricsBuilder_ != null) { - return metricsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(metrics_); - } - } - /** - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public com.google.container.v1.OperationProgress.Metric.Builder addMetricsBuilder() { - return getMetricsFieldBuilder().addBuilder( - com.google.container.v1.OperationProgress.Metric.getDefaultInstance()); - } - /** - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public com.google.container.v1.OperationProgress.Metric.Builder addMetricsBuilder( - int index) { - return getMetricsFieldBuilder().addBuilder( - index, com.google.container.v1.OperationProgress.Metric.getDefaultInstance()); - } - /** - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public java.util.List - getMetricsBuilderList() { - return getMetricsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.OperationProgress.Metric, com.google.container.v1.OperationProgress.Metric.Builder, com.google.container.v1.OperationProgress.MetricOrBuilder> - getMetricsFieldBuilder() { - if (metricsBuilder_ == null) { - metricsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.OperationProgress.Metric, com.google.container.v1.OperationProgress.Metric.Builder, com.google.container.v1.OperationProgress.MetricOrBuilder>( - metrics_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - metrics_ = null; - } - return metricsBuilder_; - } - - private java.util.List stages_ = - java.util.Collections.emptyList(); - private void ensureStagesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - stages_ = new java.util.ArrayList(stages_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.OperationProgress, com.google.container.v1.OperationProgress.Builder, com.google.container.v1.OperationProgressOrBuilder> stagesBuilder_; - - /** - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public java.util.List getStagesList() { - if (stagesBuilder_ == null) { - return java.util.Collections.unmodifiableList(stages_); - } else { - return stagesBuilder_.getMessageList(); - } - } - /** - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public int getStagesCount() { - if (stagesBuilder_ == null) { - return stages_.size(); - } else { - return stagesBuilder_.getCount(); - } - } - /** - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public com.google.container.v1.OperationProgress getStages(int index) { - if (stagesBuilder_ == null) { - return stages_.get(index); - } else { - return stagesBuilder_.getMessage(index); - } - } - /** - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public Builder setStages( - int index, com.google.container.v1.OperationProgress value) { - if (stagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStagesIsMutable(); - stages_.set(index, value); - onChanged(); - } else { - stagesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public Builder setStages( - int index, com.google.container.v1.OperationProgress.Builder builderForValue) { - if (stagesBuilder_ == null) { - ensureStagesIsMutable(); - stages_.set(index, builderForValue.build()); - onChanged(); - } else { - stagesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public Builder addStages(com.google.container.v1.OperationProgress value) { - if (stagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStagesIsMutable(); - stages_.add(value); - onChanged(); - } else { - stagesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public Builder addStages( - int index, com.google.container.v1.OperationProgress value) { - if (stagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStagesIsMutable(); - stages_.add(index, value); - onChanged(); - } else { - stagesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public Builder addStages( - com.google.container.v1.OperationProgress.Builder builderForValue) { - if (stagesBuilder_ == null) { - ensureStagesIsMutable(); - stages_.add(builderForValue.build()); - onChanged(); - } else { - stagesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public Builder addStages( - int index, com.google.container.v1.OperationProgress.Builder builderForValue) { - if (stagesBuilder_ == null) { - ensureStagesIsMutable(); - stages_.add(index, builderForValue.build()); - onChanged(); - } else { - stagesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public Builder addAllStages( - java.lang.Iterable values) { - if (stagesBuilder_ == null) { - ensureStagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, stages_); - onChanged(); - } else { - stagesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public Builder clearStages() { - if (stagesBuilder_ == null) { - stages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - stagesBuilder_.clear(); - } - return this; - } - /** - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public Builder removeStages(int index) { - if (stagesBuilder_ == null) { - ensureStagesIsMutable(); - stages_.remove(index); - onChanged(); - } else { - stagesBuilder_.remove(index); - } - return this; - } - /** - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public com.google.container.v1.OperationProgress.Builder getStagesBuilder( - int index) { - return getStagesFieldBuilder().getBuilder(index); - } - /** - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public com.google.container.v1.OperationProgressOrBuilder getStagesOrBuilder( - int index) { - if (stagesBuilder_ == null) { - return stages_.get(index); } else { - return stagesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public java.util.List - getStagesOrBuilderList() { - if (stagesBuilder_ != null) { - return stagesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(stages_); - } - } - /** - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public com.google.container.v1.OperationProgress.Builder addStagesBuilder() { - return getStagesFieldBuilder().addBuilder( - com.google.container.v1.OperationProgress.getDefaultInstance()); - } - /** - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public com.google.container.v1.OperationProgress.Builder addStagesBuilder( - int index) { - return getStagesFieldBuilder().addBuilder( - index, com.google.container.v1.OperationProgress.getDefaultInstance()); - } - /** - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public java.util.List - getStagesBuilderList() { - return getStagesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.OperationProgress, com.google.container.v1.OperationProgress.Builder, com.google.container.v1.OperationProgressOrBuilder> - getStagesFieldBuilder() { - if (stagesBuilder_ == null) { - stagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.OperationProgress, com.google.container.v1.OperationProgress.Builder, com.google.container.v1.OperationProgressOrBuilder>( - stages_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - stages_ = null; - } - return stagesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1.OperationProgress) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.OperationProgress) - private static final com.google.container.v1.OperationProgress DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1.OperationProgress(); - } - - public static com.google.container.v1.OperationProgress getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationProgress parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index a2e915aaa202..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationProgressOrBuilder.java +++ /dev/null @@ -1,165 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface OperationProgressOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.OperationProgress) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * A non-parameterized string describing an operation stage.
-   * Unset for single-stage operations.
-   * 
- * - * string name = 1; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * A non-parameterized string describing an operation stage.
-   * Unset for single-stage operations.
-   * 
- * - * string name = 1; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Status of an operation stage.
-   * Unset for single-stage operations.
-   * 
- * - * .google.container.v1.Operation.Status status = 2; - * @return The enum numeric value on the wire for status. - */ - int getStatusValue(); - /** - *
-   * Status of an operation stage.
-   * Unset for single-stage operations.
-   * 
- * - * .google.container.v1.Operation.Status status = 2; - * @return The status. - */ - com.google.container.v1.Operation.Status getStatus(); - - /** - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - java.util.List - getMetricsList(); - /** - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - com.google.container.v1.OperationProgress.Metric getMetrics(int index); - /** - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - int getMetricsCount(); - /** - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - java.util.List - getMetricsOrBuilderList(); - /** - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - com.google.container.v1.OperationProgress.MetricOrBuilder getMetricsOrBuilder( - int index); - - /** - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - java.util.List - getStagesList(); - /** - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - com.google.container.v1.OperationProgress getStages(int index); - /** - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - int getStagesCount(); - /** - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - java.util.List - getStagesOrBuilderList(); - /** - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - com.google.container.v1.OperationProgressOrBuilder getStagesOrBuilder( - int index); -} diff --git a/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 deleted file mode 100644 index 14fd55c7171d..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfig.java +++ /dev/null @@ -1,1662 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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); - } - - public static final int ENABLE_PRIVATE_NODES_FIELD_NUMBER = 1; - private boolean enablePrivateNodes_; - /** - *
-   * Whether nodes have internal IP addresses only. If enabled, all nodes are
-   * given only RFC 1918 private addresses and communicate with the master via
-   * private networking.
-   * 
- * - * bool enable_private_nodes = 1; - * @return The enablePrivateNodes. - */ - @java.lang.Override - public boolean getEnablePrivateNodes() { - return enablePrivateNodes_; - } - - public static final int ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER = 2; - private boolean enablePrivateEndpoint_; - /** - *
-   * Whether the master's internal IP address is used as the cluster endpoint.
-   * 
- * - * bool enable_private_endpoint = 2; - * @return The enablePrivateEndpoint. - */ - @java.lang.Override - public boolean getEnablePrivateEndpoint() { - return enablePrivateEndpoint_; - } - - public static final int MASTER_IPV4_CIDR_BLOCK_FIELD_NUMBER = 3; - private volatile java.lang.Object masterIpv4CidrBlock_; - /** - *
-   * The IP range in CIDR notation to use for the hosted master network. This
-   * range will be used for assigning internal IP addresses to the master or
-   * set of masters, as well as the ILB VIP. This range must not overlap with
-   * any other ranges in use within the cluster's network.
-   * 
- * - * string master_ipv4_cidr_block = 3; - * @return The masterIpv4CidrBlock. - */ - @java.lang.Override - public java.lang.String getMasterIpv4CidrBlock() { - java.lang.Object ref = masterIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - masterIpv4CidrBlock_ = s; - return s; - } - } - /** - *
-   * The IP range in CIDR notation to use for the hosted master network. This
-   * range will be used for assigning internal IP addresses to the master or
-   * set of masters, as well as the ILB VIP. This range must not overlap with
-   * any other ranges in use within the cluster's network.
-   * 
- * - * string master_ipv4_cidr_block = 3; - * @return The bytes for masterIpv4CidrBlock. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMasterIpv4CidrBlockBytes() { - java.lang.Object ref = masterIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - masterIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PRIVATE_ENDPOINT_FIELD_NUMBER = 4; - private volatile java.lang.Object privateEndpoint_; - /** - *
-   * Output only. The internal IP address of this cluster's master endpoint.
-   * 
- * - * string private_endpoint = 4; - * @return The privateEndpoint. - */ - @java.lang.Override - public java.lang.String getPrivateEndpoint() { - java.lang.Object ref = privateEndpoint_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - privateEndpoint_ = s; - return s; - } - } - /** - *
-   * Output only. The internal IP address of this cluster's master endpoint.
-   * 
- * - * string private_endpoint = 4; - * @return The bytes for privateEndpoint. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPrivateEndpointBytes() { - java.lang.Object ref = privateEndpoint_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - privateEndpoint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PUBLIC_ENDPOINT_FIELD_NUMBER = 5; - private volatile java.lang.Object publicEndpoint_; - /** - *
-   * Output only. The external IP address of this cluster's master endpoint.
-   * 
- * - * string public_endpoint = 5; - * @return The publicEndpoint. - */ - @java.lang.Override - public java.lang.String getPublicEndpoint() { - java.lang.Object ref = publicEndpoint_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - publicEndpoint_ = s; - return s; - } - } - /** - *
-   * Output only. The external IP address of this cluster's master endpoint.
-   * 
- * - * string public_endpoint = 5; - * @return The bytes for publicEndpoint. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPublicEndpointBytes() { - java.lang.Object ref = publicEndpoint_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - publicEndpoint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PEERING_NAME_FIELD_NUMBER = 7; - private volatile java.lang.Object peeringName_; - /** - *
-   * Output only. The peering name in the customer VPC used by this cluster.
-   * 
- * - * string peering_name = 7; - * @return The peeringName. - */ - @java.lang.Override - public java.lang.String getPeeringName() { - java.lang.Object ref = peeringName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - peeringName_ = s; - return s; - } - } - /** - *
-   * Output only. The peering name in the customer VPC used by this cluster.
-   * 
- * - * string peering_name = 7; - * @return The bytes for peeringName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPeeringNameBytes() { - java.lang.Object ref = peeringName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - peeringName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MASTER_GLOBAL_ACCESS_CONFIG_FIELD_NUMBER = 8; - private com.google.container.v1.PrivateClusterMasterGlobalAccessConfig masterGlobalAccessConfig_; - /** - *
-   * Controls master global access settings.
-   * 
- * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * @return Whether the masterGlobalAccessConfig field is set. - */ - @java.lang.Override - public boolean hasMasterGlobalAccessConfig() { - return masterGlobalAccessConfig_ != null; - } - /** - *
-   * Controls master global access settings.
-   * 
- * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * @return The masterGlobalAccessConfig. - */ - @java.lang.Override - public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig getMasterGlobalAccessConfig() { - return masterGlobalAccessConfig_ == null ? com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance() : masterGlobalAccessConfig_; - } - /** - *
-   * Controls master global access settings.
-   * 
- * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - */ - @java.lang.Override - public com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder getMasterGlobalAccessConfigOrBuilder() { - return getMasterGlobalAccessConfig(); - } - - public static final int PRIVATE_ENDPOINT_SUBNETWORK_FIELD_NUMBER = 10; - 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 (masterGlobalAccessConfig_ != null) { - 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 (masterGlobalAccessConfig_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - enablePrivateNodes_ = false; - - enablePrivateEndpoint_ = false; - - masterIpv4CidrBlock_ = ""; - - privateEndpoint_ = ""; - - publicEndpoint_ = ""; - - peeringName_ = ""; - - if (masterGlobalAccessConfigBuilder_ == null) { - masterGlobalAccessConfig_ = null; - } else { - masterGlobalAccessConfig_ = null; - masterGlobalAccessConfigBuilder_ = null; - } - 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); - result.enablePrivateNodes_ = enablePrivateNodes_; - result.enablePrivateEndpoint_ = enablePrivateEndpoint_; - result.masterIpv4CidrBlock_ = masterIpv4CidrBlock_; - result.privateEndpoint_ = privateEndpoint_; - result.publicEndpoint_ = publicEndpoint_; - result.peeringName_ = peeringName_; - if (masterGlobalAccessConfigBuilder_ == null) { - result.masterGlobalAccessConfig_ = masterGlobalAccessConfig_; - } else { - result.masterGlobalAccessConfig_ = masterGlobalAccessConfigBuilder_.build(); - } - result.privateEndpointSubnetwork_ = privateEndpointSubnetwork_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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_; - onChanged(); - } - if (!other.getPrivateEndpoint().isEmpty()) { - privateEndpoint_ = other.privateEndpoint_; - onChanged(); - } - if (!other.getPublicEndpoint().isEmpty()) { - publicEndpoint_ = other.publicEndpoint_; - onChanged(); - } - if (!other.getPeeringName().isEmpty()) { - peeringName_ = other.peeringName_; - onChanged(); - } - if (other.hasMasterGlobalAccessConfig()) { - mergeMasterGlobalAccessConfig(other.getMasterGlobalAccessConfig()); - } - if (!other.getPrivateEndpointSubnetwork().isEmpty()) { - privateEndpointSubnetwork_ = other.privateEndpointSubnetwork_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 8 - case 16: { - enablePrivateEndpoint_ = input.readBool(); - - break; - } // case 16 - case 26: { - masterIpv4CidrBlock_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - privateEndpoint_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - publicEndpoint_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 58: { - peeringName_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 66: { - input.readMessage( - getMasterGlobalAccessConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 66 - case 82: { - privateEndpointSubnetwork_ = input.readStringRequireUtf8(); - - 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 boolean enablePrivateNodes_ ; - /** - *
-     * Whether nodes have internal IP addresses only. If enabled, all nodes are
-     * given only RFC 1918 private addresses and communicate with the master via
-     * private networking.
-     * 
- * - * bool enable_private_nodes = 1; - * @return The enablePrivateNodes. - */ - @java.lang.Override - public boolean getEnablePrivateNodes() { - return enablePrivateNodes_; - } - /** - *
-     * Whether nodes have internal IP addresses only. If enabled, all nodes are
-     * given only RFC 1918 private addresses and communicate with the master via
-     * private networking.
-     * 
- * - * bool enable_private_nodes = 1; - * @param value The enablePrivateNodes to set. - * @return This builder for chaining. - */ - public Builder setEnablePrivateNodes(boolean value) { - - enablePrivateNodes_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether nodes have internal IP addresses only. If enabled, all nodes are
-     * given only RFC 1918 private addresses and communicate with the master via
-     * private networking.
-     * 
- * - * bool enable_private_nodes = 1; - * @return This builder for chaining. - */ - public Builder clearEnablePrivateNodes() { - - enablePrivateNodes_ = false; - onChanged(); - return this; - } - - private boolean enablePrivateEndpoint_ ; - /** - *
-     * Whether the master's internal IP address is used as the cluster endpoint.
-     * 
- * - * bool enable_private_endpoint = 2; - * @return The enablePrivateEndpoint. - */ - @java.lang.Override - public boolean getEnablePrivateEndpoint() { - return enablePrivateEndpoint_; - } - /** - *
-     * Whether the master's internal IP address is used as the cluster endpoint.
-     * 
- * - * bool enable_private_endpoint = 2; - * @param value The enablePrivateEndpoint to set. - * @return This builder for chaining. - */ - public Builder setEnablePrivateEndpoint(boolean value) { - - enablePrivateEndpoint_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether the master's internal IP address is used as the cluster endpoint.
-     * 
- * - * bool enable_private_endpoint = 2; - * @return This builder for chaining. - */ - public Builder clearEnablePrivateEndpoint() { - - enablePrivateEndpoint_ = false; - onChanged(); - return this; - } - - private java.lang.Object masterIpv4CidrBlock_ = ""; - /** - *
-     * The IP range in CIDR notation to use for the hosted master network. This
-     * range will be used for assigning internal IP addresses to the master or
-     * set of masters, as well as the ILB VIP. This range must not overlap with
-     * any other ranges in use within the cluster's network.
-     * 
- * - * string master_ipv4_cidr_block = 3; - * @return The masterIpv4CidrBlock. - */ - public java.lang.String getMasterIpv4CidrBlock() { - java.lang.Object ref = masterIpv4CidrBlock_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - masterIpv4CidrBlock_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The IP range in CIDR notation to use for the hosted master network. This
-     * range will be used for assigning internal IP addresses to the master or
-     * set of masters, as well as the ILB VIP. This range must not overlap with
-     * any other ranges in use within the cluster's network.
-     * 
- * - * string master_ipv4_cidr_block = 3; - * @return The bytes for masterIpv4CidrBlock. - */ - public com.google.protobuf.ByteString - getMasterIpv4CidrBlockBytes() { - java.lang.Object ref = masterIpv4CidrBlock_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - masterIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The IP range in CIDR notation to use for the hosted master network. This
-     * range will be used for assigning internal IP addresses to the master or
-     * set of masters, as well as the ILB VIP. This range must not overlap with
-     * any other ranges in use within the cluster's network.
-     * 
- * - * string master_ipv4_cidr_block = 3; - * @param value The masterIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setMasterIpv4CidrBlock( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - masterIpv4CidrBlock_ = value; - onChanged(); - return this; - } - /** - *
-     * The IP range in CIDR notation to use for the hosted master network. This
-     * range will be used for assigning internal IP addresses to the master or
-     * set of masters, as well as the ILB VIP. This range must not overlap with
-     * any other ranges in use within the cluster's network.
-     * 
- * - * string master_ipv4_cidr_block = 3; - * @return This builder for chaining. - */ - public Builder clearMasterIpv4CidrBlock() { - - masterIpv4CidrBlock_ = getDefaultInstance().getMasterIpv4CidrBlock(); - onChanged(); - return this; - } - /** - *
-     * The IP range in CIDR notation to use for the hosted master network. This
-     * range will be used for assigning internal IP addresses to the master or
-     * set of masters, as well as the ILB VIP. This range must not overlap with
-     * any other ranges in use within the cluster's network.
-     * 
- * - * string master_ipv4_cidr_block = 3; - * @param value The bytes for masterIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setMasterIpv4CidrBlockBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - masterIpv4CidrBlock_ = value; - onChanged(); - return this; - } - - private java.lang.Object privateEndpoint_ = ""; - /** - *
-     * Output only. The internal IP address of this cluster's master endpoint.
-     * 
- * - * string private_endpoint = 4; - * @return The privateEndpoint. - */ - public java.lang.String getPrivateEndpoint() { - java.lang.Object ref = privateEndpoint_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - privateEndpoint_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. The internal IP address of this cluster's master endpoint.
-     * 
- * - * string private_endpoint = 4; - * @return The bytes for privateEndpoint. - */ - public com.google.protobuf.ByteString - getPrivateEndpointBytes() { - java.lang.Object ref = privateEndpoint_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - privateEndpoint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. The internal IP address of this cluster's master endpoint.
-     * 
- * - * string private_endpoint = 4; - * @param value The privateEndpoint to set. - * @return This builder for chaining. - */ - public Builder setPrivateEndpoint( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - privateEndpoint_ = value; - onChanged(); - return this; - } - /** - *
-     * Output only. The internal IP address of this cluster's master endpoint.
-     * 
- * - * string private_endpoint = 4; - * @return This builder for chaining. - */ - public Builder clearPrivateEndpoint() { - - privateEndpoint_ = getDefaultInstance().getPrivateEndpoint(); - onChanged(); - return this; - } - /** - *
-     * Output only. The internal IP address of this cluster's master endpoint.
-     * 
- * - * string private_endpoint = 4; - * @param value The bytes for privateEndpoint to set. - * @return This builder for chaining. - */ - public Builder setPrivateEndpointBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - privateEndpoint_ = value; - onChanged(); - return this; - } - - private java.lang.Object publicEndpoint_ = ""; - /** - *
-     * Output only. The external IP address of this cluster's master endpoint.
-     * 
- * - * string public_endpoint = 5; - * @return The publicEndpoint. - */ - public java.lang.String getPublicEndpoint() { - java.lang.Object ref = publicEndpoint_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - publicEndpoint_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. The external IP address of this cluster's master endpoint.
-     * 
- * - * string public_endpoint = 5; - * @return The bytes for publicEndpoint. - */ - public com.google.protobuf.ByteString - getPublicEndpointBytes() { - java.lang.Object ref = publicEndpoint_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - publicEndpoint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. The external IP address of this cluster's master endpoint.
-     * 
- * - * string public_endpoint = 5; - * @param value The publicEndpoint to set. - * @return This builder for chaining. - */ - public Builder setPublicEndpoint( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - publicEndpoint_ = value; - onChanged(); - return this; - } - /** - *
-     * Output only. The external IP address of this cluster's master endpoint.
-     * 
- * - * string public_endpoint = 5; - * @return This builder for chaining. - */ - public Builder clearPublicEndpoint() { - - publicEndpoint_ = getDefaultInstance().getPublicEndpoint(); - onChanged(); - return this; - } - /** - *
-     * Output only. The external IP address of this cluster's master endpoint.
-     * 
- * - * string public_endpoint = 5; - * @param value The bytes for publicEndpoint to set. - * @return This builder for chaining. - */ - public Builder setPublicEndpointBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - publicEndpoint_ = value; - onChanged(); - return this; - } - - private java.lang.Object peeringName_ = ""; - /** - *
-     * Output only. The peering name in the customer VPC used by this cluster.
-     * 
- * - * string peering_name = 7; - * @return The peeringName. - */ - public java.lang.String getPeeringName() { - java.lang.Object ref = peeringName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - peeringName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. The peering name in the customer VPC used by this cluster.
-     * 
- * - * string peering_name = 7; - * @return The bytes for peeringName. - */ - public com.google.protobuf.ByteString - getPeeringNameBytes() { - java.lang.Object ref = peeringName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - peeringName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. The peering name in the customer VPC used by this cluster.
-     * 
- * - * string peering_name = 7; - * @param value The peeringName to set. - * @return This builder for chaining. - */ - public Builder setPeeringName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - peeringName_ = value; - onChanged(); - return this; - } - /** - *
-     * Output only. The peering name in the customer VPC used by this cluster.
-     * 
- * - * string peering_name = 7; - * @return This builder for chaining. - */ - public Builder clearPeeringName() { - - peeringName_ = getDefaultInstance().getPeeringName(); - onChanged(); - return this; - } - /** - *
-     * Output only. The peering name in the customer VPC used by this cluster.
-     * 
- * - * string peering_name = 7; - * @param value The bytes for peeringName to set. - * @return This builder for chaining. - */ - public Builder setPeeringNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - peeringName_ = value; - onChanged(); - return this; - } - - private com.google.container.v1.PrivateClusterMasterGlobalAccessConfig masterGlobalAccessConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig, com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder, com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder> masterGlobalAccessConfigBuilder_; - /** - *
-     * Controls master global access settings.
-     * 
- * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * @return Whether the masterGlobalAccessConfig field is set. - */ - public boolean hasMasterGlobalAccessConfig() { - return masterGlobalAccessConfigBuilder_ != null || masterGlobalAccessConfig_ != null; - } - /** - *
-     * Controls master global access settings.
-     * 
- * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * @return The masterGlobalAccessConfig. - */ - public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig getMasterGlobalAccessConfig() { - if (masterGlobalAccessConfigBuilder_ == null) { - return masterGlobalAccessConfig_ == null ? com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance() : masterGlobalAccessConfig_; - } else { - return masterGlobalAccessConfigBuilder_.getMessage(); - } - } - /** - *
-     * Controls master global access settings.
-     * 
- * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - */ - public Builder setMasterGlobalAccessConfig(com.google.container.v1.PrivateClusterMasterGlobalAccessConfig value) { - if (masterGlobalAccessConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - masterGlobalAccessConfig_ = value; - onChanged(); - } else { - masterGlobalAccessConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Controls master global access settings.
-     * 
- * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - */ - public Builder setMasterGlobalAccessConfig( - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder builderForValue) { - if (masterGlobalAccessConfigBuilder_ == null) { - masterGlobalAccessConfig_ = builderForValue.build(); - onChanged(); - } else { - masterGlobalAccessConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Controls master global access settings.
-     * 
- * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - */ - public Builder mergeMasterGlobalAccessConfig(com.google.container.v1.PrivateClusterMasterGlobalAccessConfig value) { - if (masterGlobalAccessConfigBuilder_ == null) { - if (masterGlobalAccessConfig_ != null) { - masterGlobalAccessConfig_ = - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.newBuilder(masterGlobalAccessConfig_).mergeFrom(value).buildPartial(); - } else { - masterGlobalAccessConfig_ = value; - } - onChanged(); - } else { - masterGlobalAccessConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Controls master global access settings.
-     * 
- * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - */ - public Builder clearMasterGlobalAccessConfig() { - if (masterGlobalAccessConfigBuilder_ == null) { - masterGlobalAccessConfig_ = null; - onChanged(); - } else { - masterGlobalAccessConfig_ = null; - masterGlobalAccessConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Controls master global access settings.
-     * 
- * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - */ - public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder getMasterGlobalAccessConfigBuilder() { - - onChanged(); - return getMasterGlobalAccessConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Controls master global access settings.
-     * 
- * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - */ - public com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder getMasterGlobalAccessConfigOrBuilder() { - if (masterGlobalAccessConfigBuilder_ != null) { - return masterGlobalAccessConfigBuilder_.getMessageOrBuilder(); - } else { - return masterGlobalAccessConfig_ == null ? - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance() : masterGlobalAccessConfig_; - } - } - /** - *
-     * Controls master global access settings.
-     * 
- * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig, com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder, com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder> - getMasterGlobalAccessConfigFieldBuilder() { - if (masterGlobalAccessConfigBuilder_ == null) { - masterGlobalAccessConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig, com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder, com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder>( - getMasterGlobalAccessConfig(), - getParentForChildren(), - isClean()); - masterGlobalAccessConfig_ = null; - } - return masterGlobalAccessConfigBuilder_; - } - - 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; - 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(); - 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; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 8d04d286674e..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfigOrBuilder.java +++ /dev/null @@ -1,166 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index 5af3acce8d7a..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterMasterGlobalAccessConfig.java +++ /dev/null @@ -1,490 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * Configuration for controlling master global access settings.
- * 
- * - * Protobuf type {@code google.container.v1.PrivateClusterMasterGlobalAccessConfig} - */ -public final class PrivateClusterMasterGlobalAccessConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.PrivateClusterMasterGlobalAccessConfig) - PrivateClusterMasterGlobalAccessConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use PrivateClusterMasterGlobalAccessConfig.newBuilder() to construct. - private PrivateClusterMasterGlobalAccessConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PrivateClusterMasterGlobalAccessConfig() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PrivateClusterMasterGlobalAccessConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_PrivateClusterMasterGlobalAccessConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_PrivateClusterMasterGlobalAccessConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.class, com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-   * Whenever master is accessible globally or not.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - 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(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_PrivateClusterMasterGlobalAccessConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig getDefaultInstanceForType() { - return com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig build() { - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig buildPartial() { - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig result = new com.google.container.v1.PrivateClusterMasterGlobalAccessConfig(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.PrivateClusterMasterGlobalAccessConfig) { - return mergeFrom((com.google.container.v1.PrivateClusterMasterGlobalAccessConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.PrivateClusterMasterGlobalAccessConfig other) { - if (other == com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 boolean enabled_ ; - /** - *
-     * Whenever master is accessible globally or not.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Whenever master is accessible globally or not.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whenever master is accessible globally or not.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1.PrivateClusterMasterGlobalAccessConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.PrivateClusterMasterGlobalAccessConfig) - private static final com.google.container.v1.PrivateClusterMasterGlobalAccessConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1.PrivateClusterMasterGlobalAccessConfig(); - } - - public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrivateClusterMasterGlobalAccessConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 61074efec595..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterMasterGlobalAccessConfigOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface PrivateClusterMasterGlobalAccessConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.PrivateClusterMasterGlobalAccessConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whenever master is accessible globally or not.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/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 deleted file mode 100644 index 8329b170cf3a..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateIPv6GoogleAccess.java +++ /dev/null @@ -1,168 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * PrivateIPv6GoogleAccess controls whether and how the pods can communicate
- * with Google Services through gRPC over IPv6.
- * 
- * - * Protobuf enum {@code google.container.v1.PrivateIPv6GoogleAccess} - */ -public enum PrivateIPv6GoogleAccess - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * Default value. Same as DISABLED
-   * 
- * - * PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0; - */ - PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED(0), - /** - *
-   * No private access to or from Google Services
-   * 
- * - * PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED = 1; - */ - PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED(1), - /** - *
-   * Enables private IPv6 access to Google Services from GKE
-   * 
- * - * PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE = 2; - */ - PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE(2), - /** - *
-   * Enables priate IPv6 access to and from Google Services
-   * 
- * - * PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL = 3; - */ - PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL(3), - UNRECOGNIZED(-1), - ; - - /** - *
-   * Default value. Same as DISABLED
-   * 
- * - * PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0; - */ - public static final int PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED_VALUE = 0; - /** - *
-   * No private access to or from Google Services
-   * 
- * - * PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED = 1; - */ - public static final int PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED_VALUE = 1; - /** - *
-   * Enables private IPv6 access to Google Services from GKE
-   * 
- * - * PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE = 2; - */ - public static final int PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE_VALUE = 2; - /** - *
-   * Enables priate IPv6 access to and from Google Services
-   * 
- * - * PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL = 3; - */ - public static final int PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL_VALUE = 3; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PrivateIPv6GoogleAccess valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static PrivateIPv6GoogleAccess forNumber(int value) { - switch (value) { - case 0: return PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED; - case 1: return PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED; - case 2: return PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE; - case 3: return PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - 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/RecurringTimeWindow.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindow.java deleted file mode 100644 index 8919346714f3..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindow.java +++ /dev/null @@ -1,979 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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); - } - - 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 window_ != null; - } - /** - *
-   * 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 getWindow(); - } - - public static final int RECURRENCE_FIELD_NUMBER = 2; - private volatile java.lang.Object recurrence_; - /** - *
-   * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
-   * this window reccurs. They go on for the span of time between the start and
-   * end time.
-   * For example, to have something repeat every weekday, you'd use:
-   * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
-   * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
-   * `FREQ=DAILY`
-   * For the first weekend of every month:
-   * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
-   * This specifies how frequently the window starts. Eg, if you wanted to have
-   * a 9-5 UTC-4 window every weekday, you'd use something like:
-   * ```
-   * start time = 2019-01-01T09:00:00-0400
-   * end time = 2019-01-01T17:00:00-0400
-   * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
-   * ```
-   * Windows can span multiple days. Eg, to make the window encompass every
-   * weekend from midnight Saturday till the last minute of Sunday UTC:
-   * ```
-   * start time = 2019-01-05T00:00:00Z
-   * end time = 2019-01-07T23:59:00Z
-   * recurrence = FREQ=WEEKLY;BYDAY=SA
-   * ```
-   * Note the start and end time's specific dates are largely arbitrary except
-   * to specify duration of the window and when it first starts.
-   * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
-   * 
- * - * string recurrence = 2; - * @return The recurrence. - */ - @java.lang.Override - public java.lang.String getRecurrence() { - java.lang.Object ref = recurrence_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - recurrence_ = s; - return s; - } - } - /** - *
-   * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
-   * this window reccurs. They go on for the span of time between the start and
-   * end time.
-   * For example, to have something repeat every weekday, you'd use:
-   * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
-   * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
-   * `FREQ=DAILY`
-   * For the first weekend of every month:
-   * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
-   * This specifies how frequently the window starts. Eg, if you wanted to have
-   * a 9-5 UTC-4 window every weekday, you'd use something like:
-   * ```
-   * start time = 2019-01-01T09:00:00-0400
-   * end time = 2019-01-01T17:00:00-0400
-   * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
-   * ```
-   * Windows can span multiple days. Eg, to make the window encompass every
-   * weekend from midnight Saturday till the last minute of Sunday UTC:
-   * ```
-   * start time = 2019-01-05T00:00:00Z
-   * end time = 2019-01-07T23:59:00Z
-   * recurrence = FREQ=WEEKLY;BYDAY=SA
-   * ```
-   * Note the start and end time's specific dates are largely arbitrary except
-   * to specify duration of the window and when it first starts.
-   * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
-   * 
- * - * string recurrence = 2; - * @return The bytes for recurrence. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRecurrenceBytes() { - java.lang.Object ref = recurrence_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - recurrence_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (window_ != null) { - output.writeMessage(1, getWindow()); - } - if (!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 (window_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (windowBuilder_ == null) { - window_ = null; - } else { - window_ = null; - windowBuilder_ = null; - } - recurrence_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.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 (windowBuilder_ == null) { - result.window_ = window_; - } else { - result.window_ = windowBuilder_.build(); - } - result.recurrence_ = recurrence_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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); - - break; - } // case 10 - case 18: { - recurrence_ = input.readStringRequireUtf8(); - - 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 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 windowBuilder_ != null || window_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - windowBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - windowBuilder_.setMessage(builderForValue.build()); - } - - 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 (window_ != null) { - window_ = - com.google.container.v1.TimeWindow.newBuilder(window_).mergeFrom(value).buildPartial(); - } else { - window_ = value; - } - onChanged(); - } else { - windowBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The window of the first recurrence.
-     * 
- * - * .google.container.v1.TimeWindow window = 1; - */ - public Builder clearWindow() { - if (windowBuilder_ == null) { - window_ = null; - onChanged(); - } else { - window_ = null; - windowBuilder_ = null; - } - - return this; - } - /** - *
-     * The window of the first recurrence.
-     * 
- * - * .google.container.v1.TimeWindow window = 1; - */ - public com.google.container.v1.TimeWindow.Builder getWindowBuilder() { - - 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; - onChanged(); - return this; - } - /** - *
-     * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
-     * this window reccurs. They go on for the span of time between the start and
-     * end time.
-     * For example, to have something repeat every weekday, you'd use:
-     * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
-     * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
-     * `FREQ=DAILY`
-     * For the first weekend of every month:
-     * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
-     * This specifies how frequently the window starts. Eg, if you wanted to have
-     * a 9-5 UTC-4 window every weekday, you'd use something like:
-     * ```
-     * start time = 2019-01-01T09:00:00-0400
-     * end time = 2019-01-01T17:00:00-0400
-     * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
-     * ```
-     * Windows can span multiple days. Eg, to make the window encompass every
-     * weekend from midnight Saturday till the last minute of Sunday UTC:
-     * ```
-     * start time = 2019-01-05T00:00:00Z
-     * end time = 2019-01-07T23:59:00Z
-     * recurrence = FREQ=WEEKLY;BYDAY=SA
-     * ```
-     * Note the start and end time's specific dates are largely arbitrary except
-     * to specify duration of the window and when it first starts.
-     * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
-     * 
- * - * string recurrence = 2; - * @return This builder for chaining. - */ - public Builder clearRecurrence() { - - recurrence_ = getDefaultInstance().getRecurrence(); - onChanged(); - return this; - } - /** - *
-     * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
-     * this window reccurs. They go on for the span of time between the start and
-     * end time.
-     * For example, to have something repeat every weekday, you'd use:
-     * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
-     * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
-     * `FREQ=DAILY`
-     * For the first weekend of every month:
-     * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
-     * This specifies how frequently the window starts. Eg, if you wanted to have
-     * a 9-5 UTC-4 window every weekday, you'd use something like:
-     * ```
-     * start time = 2019-01-01T09:00:00-0400
-     * end time = 2019-01-01T17:00:00-0400
-     * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
-     * ```
-     * Windows can span multiple days. Eg, to make the window encompass every
-     * weekend from midnight Saturday till the last minute of Sunday UTC:
-     * ```
-     * start time = 2019-01-05T00:00:00Z
-     * end time = 2019-01-07T23:59:00Z
-     * recurrence = FREQ=WEEKLY;BYDAY=SA
-     * ```
-     * Note the start and end time's specific dates are largely arbitrary except
-     * to specify duration of the window and when it first starts.
-     * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
-     * 
- * - * string recurrence = 2; - * @param value The bytes for recurrence to set. - * @return This builder for chaining. - */ - public Builder setRecurrenceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - recurrence_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index e934f5f1a5f4..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindowOrBuilder.java +++ /dev/null @@ -1,106 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index b5f1dbc6bd80..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReleaseChannel.java +++ /dev/null @@ -1,716 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * ReleaseChannel indicates which release channel a cluster is
- * subscribed to. Release channels are arranged in order of risk.
- * When a cluster is subscribed to a release channel, Google maintains
- * both the master version and the node version. Node auto-upgrade
- * defaults to true and cannot be disabled.
- * 
- * - * Protobuf type {@code google.container.v1.ReleaseChannel} - */ -public final class ReleaseChannel extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.ReleaseChannel) - ReleaseChannelOrBuilder { -private static final long serialVersionUID = 0L; - // Use ReleaseChannel.newBuilder() to construct. - private ReleaseChannel(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReleaseChannel() { - channel_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReleaseChannel(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * channel specifies which release channel the cluster is subscribed to.
-   * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * @return The enum numeric value on the wire for channel. - */ - @java.lang.Override public int getChannelValue() { - return channel_; - } - /** - *
-   * channel specifies which release channel the cluster is subscribed to.
-   * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * @return The channel. - */ - @java.lang.Override public com.google.container.v1.ReleaseChannel.Channel getChannel() { - @SuppressWarnings("deprecation") - com.google.container.v1.ReleaseChannel.Channel result = com.google.container.v1.ReleaseChannel.Channel.valueOf(channel_); - return result == null ? com.google.container.v1.ReleaseChannel.Channel.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (channel_ != com.google.container.v1.ReleaseChannel.Channel.UNSPECIFIED.getNumber()) { - output.writeEnum(1, channel_); - } - 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(); - channel_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ReleaseChannel_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ReleaseChannel getDefaultInstanceForType() { - return com.google.container.v1.ReleaseChannel.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ReleaseChannel build() { - com.google.container.v1.ReleaseChannel result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ReleaseChannel buildPartial() { - com.google.container.v1.ReleaseChannel result = new com.google.container.v1.ReleaseChannel(this); - result.channel_ = channel_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ReleaseChannel) { - return mergeFrom((com.google.container.v1.ReleaseChannel)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ReleaseChannel other) { - if (other == com.google.container.v1.ReleaseChannel.getDefaultInstance()) return this; - if (other.channel_ != 0) { - setChannelValue(other.getChannelValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 channel_ = 0; - /** - *
-     * channel specifies which release channel the cluster is subscribed to.
-     * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * @return The enum numeric value on the wire for channel. - */ - @java.lang.Override public int getChannelValue() { - return channel_; - } - /** - *
-     * channel specifies which release channel the cluster is subscribed to.
-     * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * @param value The enum numeric value on the wire for channel to set. - * @return This builder for chaining. - */ - public Builder setChannelValue(int value) { - - channel_ = value; - onChanged(); - return this; - } - /** - *
-     * channel specifies which release channel the cluster is subscribed to.
-     * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * @return The channel. - */ - @java.lang.Override - public com.google.container.v1.ReleaseChannel.Channel getChannel() { - @SuppressWarnings("deprecation") - com.google.container.v1.ReleaseChannel.Channel result = com.google.container.v1.ReleaseChannel.Channel.valueOf(channel_); - return result == null ? com.google.container.v1.ReleaseChannel.Channel.UNRECOGNIZED : result; - } - /** - *
-     * channel specifies which release channel the cluster is subscribed to.
-     * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * @param value The channel to set. - * @return This builder for chaining. - */ - public Builder setChannel(com.google.container.v1.ReleaseChannel.Channel value) { - if (value == null) { - throw new NullPointerException(); - } - - channel_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * channel specifies which release channel the cluster is subscribed to.
-     * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * @return This builder for chaining. - */ - public Builder clearChannel() { - - channel_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1.ReleaseChannel) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ReleaseChannel) - private static final com.google.container.v1.ReleaseChannel DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1.ReleaseChannel(); - } - - public static com.google.container.v1.ReleaseChannel getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReleaseChannel parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 4bff212b2e30..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReleaseChannelOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface ReleaseChannelOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ReleaseChannel) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * channel specifies which release channel the cluster is subscribed to.
-   * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * @return The enum numeric value on the wire for channel. - */ - int getChannelValue(); - /** - *
-   * channel specifies which release channel the cluster is subscribed to.
-   * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * @return The channel. - */ - com.google.container.v1.ReleaseChannel.Channel getChannel(); -} diff --git a/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 deleted file mode 100644 index 04247413a993..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReservationAffinity.java +++ /dev/null @@ -1,1126 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
- * is the configuration of desired reservation which instances could take
- * capacity from.
- * 
- * - * Protobuf type {@code google.container.v1.ReservationAffinity} - */ -public final class ReservationAffinity extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.ReservationAffinity) - ReservationAffinityOrBuilder { -private static final long serialVersionUID = 0L; - // Use ReservationAffinity.newBuilder() to construct. - private ReservationAffinity(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReservationAffinity() { - consumeReservationType_ = 0; - key_ = ""; - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReservationAffinity(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * Corresponds to the type of reservation consumption.
-   * 
- * - * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; - * @return The enum numeric value on the wire for consumeReservationType. - */ - @java.lang.Override public int getConsumeReservationTypeValue() { - return consumeReservationType_; - } - /** - *
-   * Corresponds to the type of reservation consumption.
-   * 
- * - * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; - * @return The consumeReservationType. - */ - @java.lang.Override public com.google.container.v1.ReservationAffinity.Type getConsumeReservationType() { - @SuppressWarnings("deprecation") - com.google.container.v1.ReservationAffinity.Type result = com.google.container.v1.ReservationAffinity.Type.valueOf(consumeReservationType_); - return result == null ? com.google.container.v1.ReservationAffinity.Type.UNRECOGNIZED : result; - } - - public static final int KEY_FIELD_NUMBER = 2; - private volatile java.lang.Object key_; - /** - *
-   * Corresponds to the label key of a reservation resource. To target a
-   * SPECIFIC_RESERVATION by name, specify
-   * "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; - private com.google.protobuf.LazyStringList values_; - /** - *
-   * Corresponds to the label value(s) of reservation resource(s).
-   * 
- * - * repeated string values = 3; - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList - getValuesList() { - return values_; - } - /** - *
-   * Corresponds to the label value(s) of reservation resource(s).
-   * 
- * - * repeated string values = 3; - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - *
-   * Corresponds to the label value(s) of reservation resource(s).
-   * 
- * - * repeated string values = 3; - * @param index The index of the element to return. - * @return The values at the given index. - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - *
-   * Corresponds to the label value(s) of reservation resource(s).
-   * 
- * - * repeated string values = 3; - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { - return values_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (consumeReservationType_ != com.google.container.v1.ReservationAffinity.Type.UNSPECIFIED.getNumber()) { - output.writeEnum(1, consumeReservationType_); - } - if (!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(); - consumeReservationType_ = 0; - - key_ = ""; - - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ReservationAffinity_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ReservationAffinity getDefaultInstanceForType() { - return com.google.container.v1.ReservationAffinity.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ReservationAffinity build() { - com.google.container.v1.ReservationAffinity result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ReservationAffinity buildPartial() { - com.google.container.v1.ReservationAffinity result = new com.google.container.v1.ReservationAffinity(this); - int from_bitField0_ = bitField0_; - result.consumeReservationType_ = consumeReservationType_; - result.key_ = key_; - if (((bitField0_ & 0x00000001) != 0)) { - values_ = values_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.values_ = values_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ReservationAffinity) { - return mergeFrom((com.google.container.v1.ReservationAffinity)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ReservationAffinity other) { - if (other == com.google.container.v1.ReservationAffinity.getDefaultInstance()) return this; - if (other.consumeReservationType_ != 0) { - setConsumeReservationTypeValue(other.getConsumeReservationTypeValue()); - } - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (!other.values_.isEmpty()) { - if (values_.isEmpty()) { - values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValuesIsMutable(); - values_.addAll(other.values_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 8 - case 18: { - key_ = input.readStringRequireUtf8(); - - 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; - onChanged(); - return this; - } - /** - *
-     * Corresponds to the type of reservation consumption.
-     * 
- * - * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; - * @return The consumeReservationType. - */ - @java.lang.Override - public com.google.container.v1.ReservationAffinity.Type getConsumeReservationType() { - @SuppressWarnings("deprecation") - com.google.container.v1.ReservationAffinity.Type result = com.google.container.v1.ReservationAffinity.Type.valueOf(consumeReservationType_); - return result == null ? com.google.container.v1.ReservationAffinity.Type.UNRECOGNIZED : result; - } - /** - *
-     * Corresponds to the type of reservation consumption.
-     * 
- * - * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; - * @param value The consumeReservationType to set. - * @return This builder for chaining. - */ - public Builder setConsumeReservationType(com.google.container.v1.ReservationAffinity.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - consumeReservationType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Corresponds to the type of reservation consumption.
-     * 
- * - * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; - * @return This builder for chaining. - */ - public Builder clearConsumeReservationType() { - - consumeReservationType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object key_ = ""; - /** - *
-     * Corresponds to the label key of a reservation resource. To target a
-     * SPECIFIC_RESERVATION by name, specify
-     * "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; - 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(); - 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; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureValuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - values_ = new com.google.protobuf.LazyStringArrayList(values_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * Corresponds to the label value(s) of reservation resource(s).
-     * 
- * - * repeated string values = 3; - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList - getValuesList() { - return values_.getUnmodifiableView(); - } - /** - *
-     * Corresponds to the label value(s) of reservation resource(s).
-     * 
- * - * repeated string values = 3; - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - *
-     * Corresponds to the label value(s) of reservation resource(s).
-     * 
- * - * repeated string values = 3; - * @param index The index of the element to return. - * @return The values at the given index. - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - *
-     * Corresponds to the label value(s) of reservation resource(s).
-     * 
- * - * repeated string values = 3; - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { - return values_.getByteString(index); - } - /** - *
-     * Corresponds to the label value(s) of reservation resource(s).
-     * 
- * - * repeated string values = 3; - * @param index The index to set the value at. - * @param value The values to set. - * @return This builder for chaining. - */ - public Builder setValues( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * Corresponds to the label value(s) of reservation resource(s).
-     * 
- * - * repeated string values = 3; - * @param value The values to add. - * @return This builder for chaining. - */ - public Builder addValues( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.add(value); - onChanged(); - return this; - } - /** - *
-     * Corresponds to the label value(s) of reservation resource(s).
-     * 
- * - * repeated string values = 3; - * @param values The values to add. - * @return This builder for chaining. - */ - public Builder addAllValues( - java.lang.Iterable values) { - ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, values_); - onChanged(); - return this; - } - /** - *
-     * Corresponds to the label value(s) of reservation resource(s).
-     * 
- * - * repeated string values = 3; - * @return This builder for chaining. - */ - public Builder clearValues() { - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Corresponds to the label value(s) of reservation resource(s).
-     * 
- * - * repeated string values = 3; - * @param value The bytes of the values to add. - * @return This builder for chaining. - */ - public Builder addValuesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureValuesIsMutable(); - values_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1.ReservationAffinity) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ReservationAffinity) - private static final com.google.container.v1.ReservationAffinity DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1.ReservationAffinity(); - } - - public static com.google.container.v1.ReservationAffinity getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReservationAffinity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 405f7673896d..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReservationAffinityOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface ReservationAffinityOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ReservationAffinity) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Corresponds to the type of reservation consumption.
-   * 
- * - * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; - * @return The enum numeric value on the wire for consumeReservationType. - */ - int getConsumeReservationTypeValue(); - /** - *
-   * Corresponds to the type of reservation consumption.
-   * 
- * - * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; - * @return The consumeReservationType. - */ - com.google.container.v1.ReservationAffinity.Type getConsumeReservationType(); - - /** - *
-   * Corresponds to the label key of a reservation resource. To target a
-   * SPECIFIC_RESERVATION by name, specify
-   * "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 deleted file mode 100644 index b86774e6ef48..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLabels.java +++ /dev/null @@ -1,738 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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.MapField internalGetMapField( - 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, - ""); - } - 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 java.lang.String getLabelsOrDefault( - java.lang.String key, - 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.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetLabels(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - 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(); - 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); - int from_bitField0_ = bitField0_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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()); - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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()); - 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() { - onChanged();; - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - *
-     * 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 java.lang.String getLabelsOrDefault( - java.lang.String key, - 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() { - 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() { - 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); - 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); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 91e658b1fce7..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLabelsOrBuilder.java +++ /dev/null @@ -1,65 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index 4485bc3aa598..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLimit.java +++ /dev/null @@ -1,738 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - private volatile java.lang.Object resourceType_; - /** - *
-   * Resource name "cpu", "memory" or gpu-specific string.
-   * 
- * - * string resource_type = 1; - * @return The resourceType. - */ - @java.lang.Override - public java.lang.String getResourceType() { - java.lang.Object ref = resourceType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resourceType_ = s; - return s; - } - } - /** - *
-   * Resource name "cpu", "memory" or gpu-specific string.
-   * 
- * - * string resource_type = 1; - * @return The bytes for resourceType. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getResourceTypeBytes() { - java.lang.Object ref = resourceType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resourceType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MINIMUM_FIELD_NUMBER = 2; - private long minimum_; - /** - *
-   * Minimum amount of the resource in the cluster.
-   * 
- * - * int64 minimum = 2; - * @return The minimum. - */ - @java.lang.Override - public long getMinimum() { - return minimum_; - } - - public static final int MAXIMUM_FIELD_NUMBER = 3; - private long maximum_; - /** - *
-   * Maximum amount of the resource in the cluster.
-   * 
- * - * int64 maximum = 3; - * @return The maximum. - */ - @java.lang.Override - public long getMaximum() { - return maximum_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - 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); - result.resourceType_ = resourceType_; - result.minimum_ = minimum_; - result.maximum_ = maximum_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - 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(); - - break; - } // case 10 - case 16: { - minimum_ = input.readInt64(); - - break; - } // case 16 - case 24: { - maximum_ = input.readInt64(); - - 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 java.lang.Object resourceType_ = ""; - /** - *
-     * Resource name "cpu", "memory" or gpu-specific string.
-     * 
- * - * string resource_type = 1; - * @return The resourceType. - */ - public java.lang.String getResourceType() { - java.lang.Object ref = resourceType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resourceType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Resource name "cpu", "memory" or gpu-specific string.
-     * 
- * - * string resource_type = 1; - * @return The bytes for resourceType. - */ - public com.google.protobuf.ByteString - getResourceTypeBytes() { - java.lang.Object ref = resourceType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resourceType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Resource name "cpu", "memory" or gpu-specific string.
-     * 
- * - * string resource_type = 1; - * @param value The resourceType to set. - * @return This builder for chaining. - */ - public Builder setResourceType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value; - onChanged(); - return this; - } - /** - *
-     * Resource name "cpu", "memory" or gpu-specific string.
-     * 
- * - * string resource_type = 1; - * @return This builder for chaining. - */ - public Builder clearResourceType() { - - resourceType_ = getDefaultInstance().getResourceType(); - onChanged(); - return this; - } - /** - *
-     * Resource name "cpu", "memory" or gpu-specific string.
-     * 
- * - * string resource_type = 1; - * @param value The bytes for resourceType to set. - * @return This builder for chaining. - */ - public Builder setResourceTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - resourceType_ = value; - onChanged(); - return this; - } - - private long minimum_ ; - /** - *
-     * Minimum amount of the resource in the cluster.
-     * 
- * - * int64 minimum = 2; - * @return The minimum. - */ - @java.lang.Override - public long getMinimum() { - return minimum_; - } - /** - *
-     * Minimum amount of the resource in the cluster.
-     * 
- * - * int64 minimum = 2; - * @param value The minimum to set. - * @return This builder for chaining. - */ - public Builder setMinimum(long value) { - - minimum_ = value; - onChanged(); - return this; - } - /** - *
-     * Minimum amount of the resource in the cluster.
-     * 
- * - * int64 minimum = 2; - * @return This builder for chaining. - */ - public Builder clearMinimum() { - - minimum_ = 0L; - onChanged(); - return this; - } - - private long maximum_ ; - /** - *
-     * Maximum amount of the resource in the cluster.
-     * 
- * - * int64 maximum = 3; - * @return The maximum. - */ - @java.lang.Override - public long getMaximum() { - return maximum_; - } - /** - *
-     * Maximum amount of the resource in the cluster.
-     * 
- * - * int64 maximum = 3; - * @param value The maximum to set. - * @return This builder for chaining. - */ - public Builder setMaximum(long value) { - - maximum_ = value; - onChanged(); - return this; - } - /** - *
-     * Maximum amount of the resource in the cluster.
-     * 
- * - * int64 maximum = 3; - * @return This builder for chaining. - */ - public Builder clearMaximum() { - - maximum_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index b619c07f9c0f..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLimitOrBuilder.java +++ /dev/null @@ -1,49 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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/ResourceUsageExportConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceUsageExportConfig.java deleted file mode 100644 index 0d817e13d6ec..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceUsageExportConfig.java +++ /dev/null @@ -1,2056 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - 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(); - 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); - result.datasetId_ = datasetId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 java.lang.Object datasetId_ = ""; - /** - *
-       * The ID of a BigQuery Dataset.
-       * 
- * - * string dataset_id = 1; - * @return The datasetId. - */ - public java.lang.String getDatasetId() { - java.lang.Object ref = datasetId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - datasetId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The ID of a BigQuery Dataset.
-       * 
- * - * string dataset_id = 1; - * @return The bytes for datasetId. - */ - public com.google.protobuf.ByteString - getDatasetIdBytes() { - java.lang.Object ref = datasetId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - datasetId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The ID of a BigQuery Dataset.
-       * 
- * - * string dataset_id = 1; - * @param value The datasetId to set. - * @return This builder for chaining. - */ - public Builder setDatasetId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - datasetId_ = value; - onChanged(); - return this; - } - /** - *
-       * The ID of a BigQuery Dataset.
-       * 
- * - * string dataset_id = 1; - * @return This builder for chaining. - */ - public Builder clearDatasetId() { - - datasetId_ = getDefaultInstance().getDatasetId(); - onChanged(); - return this; - } - /** - *
-       * The ID of a BigQuery Dataset.
-       * 
- * - * string dataset_id = 1; - * @param value The bytes for datasetId to set. - * @return This builder for chaining. - */ - public Builder setDatasetIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - datasetId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-     * 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(); - 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); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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(); - - 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 boolean enabled_ ; - /** - *
-       * Whether to enable consumption metering for this cluster. If enabled, a
-       * second BigQuery table will be created to hold resource consumption
-       * records.
-       * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-       * Whether to enable consumption metering for this cluster. If enabled, a
-       * second BigQuery table will be created to hold resource consumption
-       * records.
-       * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-       * Whether to enable consumption metering for this cluster. If enabled, a
-       * second BigQuery table will be created to hold resource consumption
-       * records.
-       * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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; - } - - } - - 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 bigqueryDestination_ != null; - } - /** - *
-   * 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 getBigqueryDestination(); - } - - public static final int ENABLE_NETWORK_EGRESS_METERING_FIELD_NUMBER = 2; - private boolean enableNetworkEgressMetering_; - /** - *
-   * Whether to enable network egress metering for this cluster. If enabled, a
-   * daemonset will be created in the cluster to meter network egress traffic.
-   * 
- * - * bool enable_network_egress_metering = 2; - * @return The enableNetworkEgressMetering. - */ - @java.lang.Override - public boolean getEnableNetworkEgressMetering() { - return enableNetworkEgressMetering_; - } - - public static final int CONSUMPTION_METERING_CONFIG_FIELD_NUMBER = 3; - private com.google.container.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 consumptionMeteringConfig_ != null; - } - /** - *
-   * 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 getConsumptionMeteringConfig(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (bigqueryDestination_ != null) { - output.writeMessage(1, getBigqueryDestination()); - } - if (enableNetworkEgressMetering_ != false) { - output.writeBool(2, enableNetworkEgressMetering_); - } - if (consumptionMeteringConfig_ != null) { - output.writeMessage(3, getConsumptionMeteringConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (bigqueryDestination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBigqueryDestination()); - } - if (enableNetworkEgressMetering_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, enableNetworkEgressMetering_); - } - if (consumptionMeteringConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getConsumptionMeteringConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (bigqueryDestinationBuilder_ == null) { - bigqueryDestination_ = null; - } else { - bigqueryDestination_ = null; - bigqueryDestinationBuilder_ = null; - } - enableNetworkEgressMetering_ = false; - - if (consumptionMeteringConfigBuilder_ == null) { - consumptionMeteringConfig_ = null; - } else { - consumptionMeteringConfig_ = null; - consumptionMeteringConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.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 (bigqueryDestinationBuilder_ == null) { - result.bigqueryDestination_ = bigqueryDestination_; - } else { - result.bigqueryDestination_ = bigqueryDestinationBuilder_.build(); - } - result.enableNetworkEgressMetering_ = enableNetworkEgressMetering_; - if (consumptionMeteringConfigBuilder_ == null) { - result.consumptionMeteringConfig_ = consumptionMeteringConfig_; - } else { - result.consumptionMeteringConfig_ = consumptionMeteringConfigBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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); - - break; - } // case 10 - case 16: { - enableNetworkEgressMetering_ = input.readBool(); - - break; - } // case 16 - case 26: { - input.readMessage( - getConsumptionMeteringConfigFieldBuilder().getBuilder(), - extensionRegistry); - - 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 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 bigqueryDestinationBuilder_ != null || bigqueryDestination_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - bigqueryDestinationBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - bigqueryDestinationBuilder_.setMessage(builderForValue.build()); - } - - 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 (bigqueryDestination_ != null) { - bigqueryDestination_ = - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.newBuilder(bigqueryDestination_).mergeFrom(value).buildPartial(); - } else { - bigqueryDestination_ = value; - } - onChanged(); - } else { - bigqueryDestinationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration to use BigQuery as usage export destination.
-     * 
- * - * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - */ - public Builder clearBigqueryDestination() { - if (bigqueryDestinationBuilder_ == null) { - bigqueryDestination_ = null; - onChanged(); - } else { - bigqueryDestination_ = null; - bigqueryDestinationBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration to use BigQuery as usage export destination.
-     * 
- * - * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - */ - public com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.Builder getBigqueryDestinationBuilder() { - - 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; - onChanged(); - return this; - } - /** - *
-     * Whether to enable network egress metering for this cluster. If enabled, a
-     * daemonset will be created in the cluster to meter network egress traffic.
-     * 
- * - * bool enable_network_egress_metering = 2; - * @return This builder for chaining. - */ - public Builder clearEnableNetworkEgressMetering() { - - enableNetworkEgressMetering_ = false; - onChanged(); - return this; - } - - private com.google.container.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 consumptionMeteringConfigBuilder_ != null || consumptionMeteringConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - consumptionMeteringConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - consumptionMeteringConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (consumptionMeteringConfig_ != null) { - consumptionMeteringConfig_ = - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.newBuilder(consumptionMeteringConfig_).mergeFrom(value).buildPartial(); - } else { - consumptionMeteringConfig_ = value; - } - onChanged(); - } else { - consumptionMeteringConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration to enable resource consumption metering.
-     * 
- * - * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - */ - public Builder clearConsumptionMeteringConfig() { - if (consumptionMeteringConfigBuilder_ == null) { - consumptionMeteringConfig_ = null; - onChanged(); - } else { - consumptionMeteringConfig_ = null; - consumptionMeteringConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration to enable resource consumption metering.
-     * 
- * - * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - */ - public com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder getConsumptionMeteringConfigBuilder() { - - 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 deleted file mode 100644 index efb1b6d735c5..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceUsageExportConfigOrBuilder.java +++ /dev/null @@ -1,74 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index 356bcd4538a3..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java +++ /dev/null @@ -1,1442 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - 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=3302 - * @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=3302 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3308 - * @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=3308 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * 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=3312 - * @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=3312 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_POOL_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object nodePoolId_; - /** - *
-   * 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=3316 - * @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=3316 - * @return The bytes for nodePoolId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getNodePoolIdBytes() { - java.lang.Object ref = nodePoolId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodePoolId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster, node pool id) of the node poll to
-   * rollback upgrade.
-   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 6; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project, location, cluster, node pool id) of the node poll to
-   * rollback upgrade.
-   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 6; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESPECT_PDB_FIELD_NUMBER = 7; - 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_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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(); - 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); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.nodePoolId_ = nodePoolId_; - result.name_ = name_; - result.respectPdb_ = respectPdb_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getNodePoolId().isEmpty()) { - nodePoolId_ = other.nodePoolId_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - nodePoolId_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 50: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 56: { - respectPdb_ = input.readBool(); - - 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 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=3302 - * @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=3302 - * @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=3302 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/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=3302 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - 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=3302 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3308 - * @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=3308 - * @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=3308 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3308 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - 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=3308 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * 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=3312 - * @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=3312 - * @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=3312 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * 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=3312 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the cluster to rollback.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1/cluster_service.proto;l=3312 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object nodePoolId_ = ""; - /** - *
-     * 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=3316 - * @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=3316 - * @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=3316 - * @param value The nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setNodePoolId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodePoolId_ = value; - onChanged(); - return this; - } - /** - *
-     * 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=3316 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearNodePoolId() { - - nodePoolId_ = getDefaultInstance().getNodePoolId(); - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the node pool to rollback.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=3316 - * @param value The bytes for nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setNodePoolIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodePoolId_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster, node pool id) of the node poll to
-     * rollback upgrade.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node poll to
-     * rollback upgrade.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node poll to
-     * rollback upgrade.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node poll to
-     * rollback upgrade.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node poll to
-     * rollback upgrade.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - 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; - 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() { - - 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 deleted file mode 100644 index 5ff09cefe7ad..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java +++ /dev/null @@ -1,154 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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=3302 - * @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=3302 - * @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=3308 - * @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=3308 - * @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=3312 - * @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=3312 - * @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=3316 - * @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=3316 - * @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 deleted file mode 100644 index 771d4ad925db..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SandboxConfig.java +++ /dev/null @@ -1,660 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * SandboxConfig contains configurations of the sandbox to use for the node.
- * 
- * - * Protobuf type {@code google.container.v1.SandboxConfig} - */ -public final class SandboxConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.SandboxConfig) - SandboxConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use SandboxConfig.newBuilder() to construct. - private SandboxConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SandboxConfig() { - type_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SandboxConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * Type of the sandbox to use for the node.
-   * 
- * - * .google.container.v1.SandboxConfig.Type type = 2; - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } - /** - *
-   * Type of the sandbox to use for the node.
-   * 
- * - * .google.container.v1.SandboxConfig.Type type = 2; - * @return The type. - */ - @java.lang.Override public com.google.container.v1.SandboxConfig.Type getType() { - @SuppressWarnings("deprecation") - com.google.container.v1.SandboxConfig.Type result = com.google.container.v1.SandboxConfig.Type.valueOf(type_); - return result == null ? com.google.container.v1.SandboxConfig.Type.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != com.google.container.v1.SandboxConfig.Type.UNSPECIFIED.getNumber()) { - output.writeEnum(2, type_); - } - 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(); - type_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SandboxConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.SandboxConfig getDefaultInstanceForType() { - return com.google.container.v1.SandboxConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.SandboxConfig build() { - com.google.container.v1.SandboxConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.SandboxConfig buildPartial() { - com.google.container.v1.SandboxConfig result = new com.google.container.v1.SandboxConfig(this); - result.type_ = type_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.SandboxConfig) { - return mergeFrom((com.google.container.v1.SandboxConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.SandboxConfig other) { - if (other == com.google.container.v1.SandboxConfig.getDefaultInstance()) return this; - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == 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(); - - 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 type_ = 0; - /** - *
-     * Type of the sandbox to use for the node.
-     * 
- * - * .google.container.v1.SandboxConfig.Type type = 2; - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } - /** - *
-     * Type of the sandbox to use for the node.
-     * 
- * - * .google.container.v1.SandboxConfig.Type type = 2; - * @param value The enum numeric value on the wire for type to set. - * @return This builder for chaining. - */ - public Builder setTypeValue(int value) { - - type_ = value; - onChanged(); - return this; - } - /** - *
-     * Type of the sandbox to use for the node.
-     * 
- * - * .google.container.v1.SandboxConfig.Type type = 2; - * @return The type. - */ - @java.lang.Override - public com.google.container.v1.SandboxConfig.Type getType() { - @SuppressWarnings("deprecation") - com.google.container.v1.SandboxConfig.Type result = com.google.container.v1.SandboxConfig.Type.valueOf(type_); - return result == null ? com.google.container.v1.SandboxConfig.Type.UNRECOGNIZED : result; - } - /** - *
-     * Type of the sandbox to use for the node.
-     * 
- * - * .google.container.v1.SandboxConfig.Type type = 2; - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(com.google.container.v1.SandboxConfig.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Type of the sandbox to use for the node.
-     * 
- * - * .google.container.v1.SandboxConfig.Type type = 2; - * @return This builder for chaining. - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1.SandboxConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.SandboxConfig) - private static final com.google.container.v1.SandboxConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1.SandboxConfig(); - } - - public static com.google.container.v1.SandboxConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SandboxConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index f70984795018..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SandboxConfigOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface SandboxConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.SandboxConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Type of the sandbox to use for the node.
-   * 
- * - * .google.container.v1.SandboxConfig.Type type = 2; - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - /** - *
-   * Type of the sandbox to use for the node.
-   * 
- * - * .google.container.v1.SandboxConfig.Type type = 2; - * @return The type. - */ - com.google.container.v1.SandboxConfig.Type getType(); -} diff --git a/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 deleted file mode 100644 index 2360f587c62c..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityBulletinEvent.java +++ /dev/null @@ -1,2251 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * SecurityBulletinEvent is a notification sent to customers when a security
- * bulletin has been posted that they are vulnerable to.
- * 
- * - * Protobuf type {@code google.container.v1.SecurityBulletinEvent} - */ -public final class SecurityBulletinEvent extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.SecurityBulletinEvent) - SecurityBulletinEventOrBuilder { -private static final long serialVersionUID = 0L; - // Use SecurityBulletinEvent.newBuilder() to construct. - private SecurityBulletinEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SecurityBulletinEvent() { - resourceTypeAffected_ = ""; - bulletinId_ = ""; - cveIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - severity_ = ""; - bulletinUri_ = ""; - briefDescription_ = ""; - affectedSupportedMinors_ = com.google.protobuf.LazyStringArrayList.EMPTY; - patchedVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - suggestedUpgradeTarget_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SecurityBulletinEvent(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SecurityBulletinEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SecurityBulletinEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SecurityBulletinEvent.class, com.google.container.v1.SecurityBulletinEvent.Builder.class); - } - - public static final int RESOURCE_TYPE_AFFECTED_FIELD_NUMBER = 1; - private volatile java.lang.Object resourceTypeAffected_; - /** - *
-   * The resource type (node/control plane) that has the vulnerability. Multiple
-   * notifications (1 notification per resource type) will be sent for a
-   * vulnerability that affects > 1 resource type.
-   * 
- * - * string resource_type_affected = 1; - * @return The resourceTypeAffected. - */ - @java.lang.Override - public java.lang.String getResourceTypeAffected() { - java.lang.Object ref = resourceTypeAffected_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resourceTypeAffected_ = s; - return s; - } - } - /** - *
-   * The resource type (node/control plane) that has the vulnerability. Multiple
-   * notifications (1 notification per resource type) will be sent for a
-   * vulnerability that affects > 1 resource type.
-   * 
- * - * string resource_type_affected = 1; - * @return The bytes for resourceTypeAffected. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getResourceTypeAffectedBytes() { - java.lang.Object ref = resourceTypeAffected_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resourceTypeAffected_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BULLETIN_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object bulletinId_; - /** - *
-   * The ID of the bulletin corresponding to the vulnerability.
-   * 
- * - * string bulletin_id = 2; - * @return The bulletinId. - */ - @java.lang.Override - public java.lang.String getBulletinId() { - java.lang.Object ref = bulletinId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bulletinId_ = s; - return s; - } - } - /** - *
-   * The ID of the bulletin corresponding to the vulnerability.
-   * 
- * - * string bulletin_id = 2; - * @return The bytes for bulletinId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBulletinIdBytes() { - java.lang.Object ref = bulletinId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bulletinId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CVE_IDS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList cveIds_; - /** - *
-   * The CVEs associated with this bulletin.
-   * 
- * - * repeated string cve_ids = 3; - * @return A list containing the cveIds. - */ - public com.google.protobuf.ProtocolStringList - getCveIdsList() { - return cveIds_; - } - /** - *
-   * The CVEs associated with this bulletin.
-   * 
- * - * repeated string cve_ids = 3; - * @return The count of cveIds. - */ - public int getCveIdsCount() { - return cveIds_.size(); - } - /** - *
-   * The CVEs associated with this bulletin.
-   * 
- * - * repeated string cve_ids = 3; - * @param index The index of the element to return. - * @return The cveIds at the given index. - */ - public java.lang.String getCveIds(int index) { - return cveIds_.get(index); - } - /** - *
-   * The CVEs associated with this bulletin.
-   * 
- * - * repeated string cve_ids = 3; - * @param index The index of the value to return. - * @return The bytes of the cveIds at the given index. - */ - public com.google.protobuf.ByteString - getCveIdsBytes(int index) { - return cveIds_.getByteString(index); - } - - public static final int SEVERITY_FIELD_NUMBER = 4; - private volatile java.lang.Object severity_; - /** - *
-   * The severity of this bulletin as it relates to GKE.
-   * 
- * - * string severity = 4; - * @return The severity. - */ - @java.lang.Override - public java.lang.String getSeverity() { - java.lang.Object ref = severity_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - severity_ = s; - return s; - } - } - /** - *
-   * The severity of this bulletin as it relates to GKE.
-   * 
- * - * string severity = 4; - * @return The bytes for severity. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSeverityBytes() { - java.lang.Object ref = severity_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - severity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BULLETIN_URI_FIELD_NUMBER = 5; - private volatile java.lang.Object bulletinUri_; - /** - *
-   * The URI link to the bulletin on the website for more information.
-   * 
- * - * string bulletin_uri = 5; - * @return The bulletinUri. - */ - @java.lang.Override - public java.lang.String getBulletinUri() { - java.lang.Object ref = bulletinUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bulletinUri_ = s; - return s; - } - } - /** - *
-   * The URI link to the bulletin on the website for more information.
-   * 
- * - * string bulletin_uri = 5; - * @return The bytes for bulletinUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBulletinUriBytes() { - java.lang.Object ref = bulletinUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bulletinUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BRIEF_DESCRIPTION_FIELD_NUMBER = 6; - private volatile java.lang.Object briefDescription_; - /** - *
-   * A brief description of the bulletin. See the bulletin pointed to by the
-   * bulletin_uri field for an expanded description.
-   * 
- * - * string brief_description = 6; - * @return The briefDescription. - */ - @java.lang.Override - public java.lang.String getBriefDescription() { - java.lang.Object ref = briefDescription_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - briefDescription_ = s; - return s; - } - } - /** - *
-   * A brief description of the bulletin. See the bulletin pointed to by the
-   * bulletin_uri field for an expanded description.
-   * 
- * - * string brief_description = 6; - * @return The bytes for briefDescription. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBriefDescriptionBytes() { - java.lang.Object ref = briefDescription_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - briefDescription_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AFFECTED_SUPPORTED_MINORS_FIELD_NUMBER = 7; - private com.google.protobuf.LazyStringList affectedSupportedMinors_; - /** - *
-   * The GKE minor versions affected by this vulnerability.
-   * 
- * - * repeated string affected_supported_minors = 7; - * @return A list containing the affectedSupportedMinors. - */ - public com.google.protobuf.ProtocolStringList - getAffectedSupportedMinorsList() { - return affectedSupportedMinors_; - } - /** - *
-   * The GKE minor versions affected by this vulnerability.
-   * 
- * - * repeated string affected_supported_minors = 7; - * @return The count of affectedSupportedMinors. - */ - public int getAffectedSupportedMinorsCount() { - return affectedSupportedMinors_.size(); - } - /** - *
-   * The GKE minor versions affected by this vulnerability.
-   * 
- * - * repeated string affected_supported_minors = 7; - * @param index The index of the element to return. - * @return The affectedSupportedMinors at the given index. - */ - public java.lang.String getAffectedSupportedMinors(int index) { - return affectedSupportedMinors_.get(index); - } - /** - *
-   * The GKE minor versions affected by this vulnerability.
-   * 
- * - * repeated string affected_supported_minors = 7; - * @param index The index of the value to return. - * @return The bytes of the affectedSupportedMinors at the given index. - */ - public com.google.protobuf.ByteString - getAffectedSupportedMinorsBytes(int index) { - return affectedSupportedMinors_.getByteString(index); - } - - public static final int PATCHED_VERSIONS_FIELD_NUMBER = 8; - private com.google.protobuf.LazyStringList patchedVersions_; - /** - *
-   * The GKE versions where this vulnerability is patched.
-   * 
- * - * repeated string patched_versions = 8; - * @return A list containing the patchedVersions. - */ - public com.google.protobuf.ProtocolStringList - getPatchedVersionsList() { - return patchedVersions_; - } - /** - *
-   * The GKE versions where this vulnerability is patched.
-   * 
- * - * repeated string patched_versions = 8; - * @return The count of patchedVersions. - */ - public int getPatchedVersionsCount() { - return patchedVersions_.size(); - } - /** - *
-   * The GKE versions where this vulnerability is patched.
-   * 
- * - * repeated string patched_versions = 8; - * @param index The index of the element to return. - * @return The patchedVersions at the given index. - */ - public java.lang.String getPatchedVersions(int index) { - return patchedVersions_.get(index); - } - /** - *
-   * The GKE versions where this vulnerability is patched.
-   * 
- * - * repeated string patched_versions = 8; - * @param index The index of the value to return. - * @return The bytes of the patchedVersions at the given index. - */ - public com.google.protobuf.ByteString - getPatchedVersionsBytes(int index) { - return patchedVersions_.getByteString(index); - } - - public static final int SUGGESTED_UPGRADE_TARGET_FIELD_NUMBER = 9; - private volatile java.lang.Object suggestedUpgradeTarget_; - /** - *
-   * This represents a version selected from the patched_versions field that
-   * the cluster receiving this notification should most likely want to upgrade
-   * to based on its current version. Note that if this notification is being
-   * received by a given cluster, it means that this version is currently
-   * available as an upgrade target in that cluster's location.
-   * 
- * - * string suggested_upgrade_target = 9; - * @return The suggestedUpgradeTarget. - */ - @java.lang.Override - public java.lang.String getSuggestedUpgradeTarget() { - java.lang.Object ref = suggestedUpgradeTarget_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - suggestedUpgradeTarget_ = s; - return s; - } - } - /** - *
-   * This represents a version selected from the patched_versions field that
-   * the cluster receiving this notification should most likely want to upgrade
-   * to based on its current version. Note that if this notification is being
-   * received by a given cluster, it means that this version is currently
-   * available as an upgrade target in that cluster's location.
-   * 
- * - * string suggested_upgrade_target = 9; - * @return The bytes for suggestedUpgradeTarget. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSuggestedUpgradeTargetBytes() { - java.lang.Object ref = suggestedUpgradeTarget_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - suggestedUpgradeTarget_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MANUAL_STEPS_REQUIRED_FIELD_NUMBER = 10; - private boolean manualStepsRequired_; - /** - *
-   * If this field is specified, it means there are manual steps that the user
-   * must take to make their clusters safe.
-   * 
- * - * bool manual_steps_required = 10; - * @return The manualStepsRequired. - */ - @java.lang.Override - public boolean getManualStepsRequired() { - return manualStepsRequired_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceTypeAffected_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceTypeAffected_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bulletinId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bulletinId_); - } - for (int i = 0; i < cveIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cveIds_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(severity_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, severity_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bulletinUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, bulletinUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(briefDescription_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, briefDescription_); - } - for (int i = 0; i < affectedSupportedMinors_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, affectedSupportedMinors_.getRaw(i)); - } - for (int i = 0; i < patchedVersions_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, patchedVersions_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(suggestedUpgradeTarget_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, suggestedUpgradeTarget_); - } - if (manualStepsRequired_ != false) { - output.writeBool(10, manualStepsRequired_); - } - getUnknownFields().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(); - resourceTypeAffected_ = ""; - - bulletinId_ = ""; - - cveIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - severity_ = ""; - - bulletinUri_ = ""; - - briefDescription_ = ""; - - affectedSupportedMinors_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - patchedVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - suggestedUpgradeTarget_ = ""; - - manualStepsRequired_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SecurityBulletinEvent_descriptor; - } - - @java.lang.Override - public com.google.container.v1.SecurityBulletinEvent getDefaultInstanceForType() { - return com.google.container.v1.SecurityBulletinEvent.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.SecurityBulletinEvent build() { - com.google.container.v1.SecurityBulletinEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.SecurityBulletinEvent buildPartial() { - com.google.container.v1.SecurityBulletinEvent result = new com.google.container.v1.SecurityBulletinEvent(this); - int from_bitField0_ = bitField0_; - result.resourceTypeAffected_ = resourceTypeAffected_; - result.bulletinId_ = bulletinId_; - if (((bitField0_ & 0x00000001) != 0)) { - cveIds_ = cveIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.cveIds_ = cveIds_; - result.severity_ = severity_; - result.bulletinUri_ = bulletinUri_; - result.briefDescription_ = briefDescription_; - if (((bitField0_ & 0x00000002) != 0)) { - affectedSupportedMinors_ = affectedSupportedMinors_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.affectedSupportedMinors_ = affectedSupportedMinors_; - if (((bitField0_ & 0x00000004) != 0)) { - patchedVersions_ = patchedVersions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.patchedVersions_ = patchedVersions_; - result.suggestedUpgradeTarget_ = suggestedUpgradeTarget_; - result.manualStepsRequired_ = manualStepsRequired_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.SecurityBulletinEvent) { - return mergeFrom((com.google.container.v1.SecurityBulletinEvent)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.SecurityBulletinEvent other) { - if (other == com.google.container.v1.SecurityBulletinEvent.getDefaultInstance()) return this; - if (!other.getResourceTypeAffected().isEmpty()) { - resourceTypeAffected_ = other.resourceTypeAffected_; - onChanged(); - } - if (!other.getBulletinId().isEmpty()) { - bulletinId_ = other.bulletinId_; - onChanged(); - } - if (!other.cveIds_.isEmpty()) { - if (cveIds_.isEmpty()) { - cveIds_ = other.cveIds_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureCveIdsIsMutable(); - cveIds_.addAll(other.cveIds_); - } - onChanged(); - } - if (!other.getSeverity().isEmpty()) { - severity_ = other.severity_; - onChanged(); - } - if (!other.getBulletinUri().isEmpty()) { - bulletinUri_ = other.bulletinUri_; - onChanged(); - } - if (!other.getBriefDescription().isEmpty()) { - briefDescription_ = other.briefDescription_; - onChanged(); - } - if (!other.affectedSupportedMinors_.isEmpty()) { - if (affectedSupportedMinors_.isEmpty()) { - affectedSupportedMinors_ = other.affectedSupportedMinors_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureAffectedSupportedMinorsIsMutable(); - affectedSupportedMinors_.addAll(other.affectedSupportedMinors_); - } - onChanged(); - } - if (!other.patchedVersions_.isEmpty()) { - if (patchedVersions_.isEmpty()) { - patchedVersions_ = other.patchedVersions_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensurePatchedVersionsIsMutable(); - patchedVersions_.addAll(other.patchedVersions_); - } - onChanged(); - } - if (!other.getSuggestedUpgradeTarget().isEmpty()) { - suggestedUpgradeTarget_ = other.suggestedUpgradeTarget_; - onChanged(); - } - if (other.getManualStepsRequired() != false) { - setManualStepsRequired(other.getManualStepsRequired()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - bulletinId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureCveIdsIsMutable(); - cveIds_.add(s); - break; - } // case 26 - case 34: { - severity_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - bulletinUri_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: { - briefDescription_ = input.readStringRequireUtf8(); - - 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(); - - break; - } // case 74 - case 80: { - manualStepsRequired_ = input.readBool(); - - 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; - onChanged(); - return this; - } - /** - *
-     * The resource type (node/control plane) that has the vulnerability. Multiple
-     * notifications (1 notification per resource type) will be sent for a
-     * vulnerability that affects > 1 resource type.
-     * 
- * - * string resource_type_affected = 1; - * @return This builder for chaining. - */ - public Builder clearResourceTypeAffected() { - - resourceTypeAffected_ = getDefaultInstance().getResourceTypeAffected(); - onChanged(); - return this; - } - /** - *
-     * The resource type (node/control plane) that has the vulnerability. Multiple
-     * notifications (1 notification per resource type) will be sent for a
-     * vulnerability that affects > 1 resource type.
-     * 
- * - * string resource_type_affected = 1; - * @param value The bytes for resourceTypeAffected to set. - * @return This builder for chaining. - */ - public Builder setResourceTypeAffectedBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - resourceTypeAffected_ = value; - onChanged(); - return this; - } - - private java.lang.Object bulletinId_ = ""; - /** - *
-     * The ID of the bulletin corresponding to the vulnerability.
-     * 
- * - * string bulletin_id = 2; - * @return The bulletinId. - */ - public java.lang.String getBulletinId() { - java.lang.Object ref = bulletinId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bulletinId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The ID of the bulletin corresponding to the vulnerability.
-     * 
- * - * string bulletin_id = 2; - * @return The bytes for bulletinId. - */ - public com.google.protobuf.ByteString - getBulletinIdBytes() { - java.lang.Object ref = bulletinId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bulletinId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The ID of the bulletin corresponding to the vulnerability.
-     * 
- * - * string bulletin_id = 2; - * @param value The bulletinId to set. - * @return This builder for chaining. - */ - public Builder setBulletinId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - bulletinId_ = value; - onChanged(); - return this; - } - /** - *
-     * The ID of the bulletin corresponding to the vulnerability.
-     * 
- * - * string bulletin_id = 2; - * @return This builder for chaining. - */ - public Builder clearBulletinId() { - - bulletinId_ = getDefaultInstance().getBulletinId(); - onChanged(); - return this; - } - /** - *
-     * The ID of the bulletin corresponding to the vulnerability.
-     * 
- * - * string bulletin_id = 2; - * @param value The bytes for bulletinId to set. - * @return This builder for chaining. - */ - public Builder setBulletinIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - bulletinId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList cveIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureCveIdsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - cveIds_ = new com.google.protobuf.LazyStringArrayList(cveIds_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * The CVEs associated with this bulletin.
-     * 
- * - * repeated string cve_ids = 3; - * @return A list containing the cveIds. - */ - public com.google.protobuf.ProtocolStringList - getCveIdsList() { - return cveIds_.getUnmodifiableView(); - } - /** - *
-     * The CVEs associated with this bulletin.
-     * 
- * - * repeated string cve_ids = 3; - * @return The count of cveIds. - */ - public int getCveIdsCount() { - return cveIds_.size(); - } - /** - *
-     * The CVEs associated with this bulletin.
-     * 
- * - * repeated string cve_ids = 3; - * @param index The index of the element to return. - * @return The cveIds at the given index. - */ - public java.lang.String getCveIds(int index) { - return cveIds_.get(index); - } - /** - *
-     * The CVEs associated with this bulletin.
-     * 
- * - * repeated string cve_ids = 3; - * @param index The index of the value to return. - * @return The bytes of the cveIds at the given index. - */ - public com.google.protobuf.ByteString - getCveIdsBytes(int index) { - return cveIds_.getByteString(index); - } - /** - *
-     * The CVEs associated with this bulletin.
-     * 
- * - * repeated string cve_ids = 3; - * @param index The index to set the value at. - * @param value The cveIds to set. - * @return This builder for chaining. - */ - public Builder setCveIds( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureCveIdsIsMutable(); - cveIds_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * The CVEs associated with this bulletin.
-     * 
- * - * repeated string cve_ids = 3; - * @param value The cveIds to add. - * @return This builder for chaining. - */ - public Builder addCveIds( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureCveIdsIsMutable(); - cveIds_.add(value); - onChanged(); - return this; - } - /** - *
-     * The CVEs associated with this bulletin.
-     * 
- * - * repeated string cve_ids = 3; - * @param values The cveIds to add. - * @return This builder for chaining. - */ - public Builder addAllCveIds( - java.lang.Iterable values) { - ensureCveIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, cveIds_); - onChanged(); - return this; - } - /** - *
-     * The CVEs associated with this bulletin.
-     * 
- * - * repeated string cve_ids = 3; - * @return This builder for chaining. - */ - public Builder clearCveIds() { - cveIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The CVEs associated with this bulletin.
-     * 
- * - * repeated string cve_ids = 3; - * @param value The bytes of the cveIds to add. - * @return This builder for chaining. - */ - public Builder addCveIdsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureCveIdsIsMutable(); - cveIds_.add(value); - onChanged(); - return this; - } - - private java.lang.Object severity_ = ""; - /** - *
-     * The severity of this bulletin as it relates to GKE.
-     * 
- * - * string severity = 4; - * @return The severity. - */ - public java.lang.String getSeverity() { - java.lang.Object ref = severity_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - severity_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The severity of this bulletin as it relates to GKE.
-     * 
- * - * string severity = 4; - * @return The bytes for severity. - */ - public com.google.protobuf.ByteString - getSeverityBytes() { - java.lang.Object ref = severity_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - severity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The severity of this bulletin as it relates to GKE.
-     * 
- * - * string severity = 4; - * @param value The severity to set. - * @return This builder for chaining. - */ - public Builder setSeverity( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - severity_ = value; - onChanged(); - return this; - } - /** - *
-     * The severity of this bulletin as it relates to GKE.
-     * 
- * - * string severity = 4; - * @return This builder for chaining. - */ - public Builder clearSeverity() { - - severity_ = getDefaultInstance().getSeverity(); - onChanged(); - return this; - } - /** - *
-     * The severity of this bulletin as it relates to GKE.
-     * 
- * - * string severity = 4; - * @param value The bytes for severity to set. - * @return This builder for chaining. - */ - public Builder setSeverityBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - severity_ = value; - onChanged(); - return this; - } - - private java.lang.Object bulletinUri_ = ""; - /** - *
-     * The URI link to the bulletin on the website for more information.
-     * 
- * - * string bulletin_uri = 5; - * @return The bulletinUri. - */ - public java.lang.String getBulletinUri() { - java.lang.Object ref = bulletinUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bulletinUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The URI link to the bulletin on the website for more information.
-     * 
- * - * string bulletin_uri = 5; - * @return The bytes for bulletinUri. - */ - public com.google.protobuf.ByteString - getBulletinUriBytes() { - java.lang.Object ref = bulletinUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bulletinUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The URI link to the bulletin on the website for more information.
-     * 
- * - * string bulletin_uri = 5; - * @param value The bulletinUri to set. - * @return This builder for chaining. - */ - public Builder setBulletinUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - bulletinUri_ = value; - onChanged(); - return this; - } - /** - *
-     * The URI link to the bulletin on the website for more information.
-     * 
- * - * string bulletin_uri = 5; - * @return This builder for chaining. - */ - public Builder clearBulletinUri() { - - bulletinUri_ = getDefaultInstance().getBulletinUri(); - onChanged(); - return this; - } - /** - *
-     * The URI link to the bulletin on the website for more information.
-     * 
- * - * string bulletin_uri = 5; - * @param value The bytes for bulletinUri to set. - * @return This builder for chaining. - */ - public Builder setBulletinUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - bulletinUri_ = value; - onChanged(); - return this; - } - - private java.lang.Object briefDescription_ = ""; - /** - *
-     * A brief description of the bulletin. See the bulletin pointed to by the
-     * bulletin_uri field for an expanded description.
-     * 
- * - * string brief_description = 6; - * @return The briefDescription. - */ - public java.lang.String getBriefDescription() { - java.lang.Object ref = briefDescription_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - briefDescription_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A brief description of the bulletin. See the bulletin pointed to by the
-     * bulletin_uri field for an expanded description.
-     * 
- * - * string brief_description = 6; - * @return The bytes for briefDescription. - */ - public com.google.protobuf.ByteString - getBriefDescriptionBytes() { - java.lang.Object ref = briefDescription_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - briefDescription_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A brief description of the bulletin. See the bulletin pointed to by the
-     * bulletin_uri field for an expanded description.
-     * 
- * - * string brief_description = 6; - * @param value The briefDescription to set. - * @return This builder for chaining. - */ - public Builder setBriefDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - briefDescription_ = value; - onChanged(); - return this; - } - /** - *
-     * A brief description of the bulletin. See the bulletin pointed to by the
-     * bulletin_uri field for an expanded description.
-     * 
- * - * string brief_description = 6; - * @return This builder for chaining. - */ - public Builder clearBriefDescription() { - - briefDescription_ = getDefaultInstance().getBriefDescription(); - onChanged(); - return this; - } - /** - *
-     * A brief description of the bulletin. See the bulletin pointed to by the
-     * bulletin_uri field for an expanded description.
-     * 
- * - * string brief_description = 6; - * @param value The bytes for briefDescription to set. - * @return This builder for chaining. - */ - public Builder setBriefDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - briefDescription_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList affectedSupportedMinors_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureAffectedSupportedMinorsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - affectedSupportedMinors_ = new com.google.protobuf.LazyStringArrayList(affectedSupportedMinors_); - bitField0_ |= 0x00000002; - } - } - /** - *
-     * The GKE minor versions affected by this vulnerability.
-     * 
- * - * repeated string affected_supported_minors = 7; - * @return A list containing the affectedSupportedMinors. - */ - public com.google.protobuf.ProtocolStringList - getAffectedSupportedMinorsList() { - return affectedSupportedMinors_.getUnmodifiableView(); - } - /** - *
-     * The GKE minor versions affected by this vulnerability.
-     * 
- * - * repeated string affected_supported_minors = 7; - * @return The count of affectedSupportedMinors. - */ - public int getAffectedSupportedMinorsCount() { - return affectedSupportedMinors_.size(); - } - /** - *
-     * The GKE minor versions affected by this vulnerability.
-     * 
- * - * repeated string affected_supported_minors = 7; - * @param index The index of the element to return. - * @return The affectedSupportedMinors at the given index. - */ - public java.lang.String getAffectedSupportedMinors(int index) { - return affectedSupportedMinors_.get(index); - } - /** - *
-     * The GKE minor versions affected by this vulnerability.
-     * 
- * - * repeated string affected_supported_minors = 7; - * @param index The index of the value to return. - * @return The bytes of the affectedSupportedMinors at the given index. - */ - public com.google.protobuf.ByteString - getAffectedSupportedMinorsBytes(int index) { - return affectedSupportedMinors_.getByteString(index); - } - /** - *
-     * The GKE minor versions affected by this vulnerability.
-     * 
- * - * repeated string affected_supported_minors = 7; - * @param index The index to set the value at. - * @param value The affectedSupportedMinors to set. - * @return This builder for chaining. - */ - public Builder setAffectedSupportedMinors( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAffectedSupportedMinorsIsMutable(); - affectedSupportedMinors_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * The GKE minor versions affected by this vulnerability.
-     * 
- * - * repeated string affected_supported_minors = 7; - * @param value The affectedSupportedMinors to add. - * @return This builder for chaining. - */ - public Builder addAffectedSupportedMinors( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAffectedSupportedMinorsIsMutable(); - affectedSupportedMinors_.add(value); - onChanged(); - return this; - } - /** - *
-     * The GKE minor versions affected by this vulnerability.
-     * 
- * - * repeated string affected_supported_minors = 7; - * @param values The affectedSupportedMinors to add. - * @return This builder for chaining. - */ - public Builder addAllAffectedSupportedMinors( - java.lang.Iterable values) { - ensureAffectedSupportedMinorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, affectedSupportedMinors_); - onChanged(); - return this; - } - /** - *
-     * The GKE minor versions affected by this vulnerability.
-     * 
- * - * repeated string affected_supported_minors = 7; - * @return This builder for chaining. - */ - public Builder clearAffectedSupportedMinors() { - affectedSupportedMinors_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * The GKE minor versions affected by this vulnerability.
-     * 
- * - * repeated string affected_supported_minors = 7; - * @param value The bytes of the affectedSupportedMinors to add. - * @return This builder for chaining. - */ - public Builder addAffectedSupportedMinorsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureAffectedSupportedMinorsIsMutable(); - affectedSupportedMinors_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList patchedVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensurePatchedVersionsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - patchedVersions_ = new com.google.protobuf.LazyStringArrayList(patchedVersions_); - bitField0_ |= 0x00000004; - } - } - /** - *
-     * The GKE versions where this vulnerability is patched.
-     * 
- * - * repeated string patched_versions = 8; - * @return A list containing the patchedVersions. - */ - public com.google.protobuf.ProtocolStringList - getPatchedVersionsList() { - return patchedVersions_.getUnmodifiableView(); - } - /** - *
-     * The GKE versions where this vulnerability is patched.
-     * 
- * - * repeated string patched_versions = 8; - * @return The count of patchedVersions. - */ - public int getPatchedVersionsCount() { - return patchedVersions_.size(); - } - /** - *
-     * The GKE versions where this vulnerability is patched.
-     * 
- * - * repeated string patched_versions = 8; - * @param index The index of the element to return. - * @return The patchedVersions at the given index. - */ - public java.lang.String getPatchedVersions(int index) { - return patchedVersions_.get(index); - } - /** - *
-     * The GKE versions where this vulnerability is patched.
-     * 
- * - * repeated string patched_versions = 8; - * @param index The index of the value to return. - * @return The bytes of the patchedVersions at the given index. - */ - public com.google.protobuf.ByteString - getPatchedVersionsBytes(int index) { - return patchedVersions_.getByteString(index); - } - /** - *
-     * The GKE versions where this vulnerability is patched.
-     * 
- * - * repeated string patched_versions = 8; - * @param index The index to set the value at. - * @param value The patchedVersions to set. - * @return This builder for chaining. - */ - public Builder setPatchedVersions( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePatchedVersionsIsMutable(); - patchedVersions_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * The GKE versions where this vulnerability is patched.
-     * 
- * - * repeated string patched_versions = 8; - * @param value The patchedVersions to add. - * @return This builder for chaining. - */ - public Builder addPatchedVersions( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePatchedVersionsIsMutable(); - patchedVersions_.add(value); - onChanged(); - return this; - } - /** - *
-     * The GKE versions where this vulnerability is patched.
-     * 
- * - * repeated string patched_versions = 8; - * @param values The patchedVersions to add. - * @return This builder for chaining. - */ - public Builder addAllPatchedVersions( - java.lang.Iterable values) { - ensurePatchedVersionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, patchedVersions_); - onChanged(); - return this; - } - /** - *
-     * The GKE versions where this vulnerability is patched.
-     * 
- * - * repeated string patched_versions = 8; - * @return This builder for chaining. - */ - public Builder clearPatchedVersions() { - patchedVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * The GKE versions where this vulnerability is patched.
-     * 
- * - * repeated string patched_versions = 8; - * @param value The bytes of the patchedVersions to add. - * @return This builder for chaining. - */ - public Builder addPatchedVersionsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensurePatchedVersionsIsMutable(); - patchedVersions_.add(value); - onChanged(); - return this; - } - - private java.lang.Object suggestedUpgradeTarget_ = ""; - /** - *
-     * This represents a version selected from the patched_versions field that
-     * the cluster receiving this notification should most likely want to upgrade
-     * to based on its current version. Note that if this notification is being
-     * received by a given cluster, it means that this version is currently
-     * available as an upgrade target in that cluster's location.
-     * 
- * - * string suggested_upgrade_target = 9; - * @return The suggestedUpgradeTarget. - */ - public java.lang.String getSuggestedUpgradeTarget() { - java.lang.Object ref = suggestedUpgradeTarget_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - suggestedUpgradeTarget_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * This represents a version selected from the patched_versions field that
-     * the cluster receiving this notification should most likely want to upgrade
-     * to based on its current version. Note that if this notification is being
-     * received by a given cluster, it means that this version is currently
-     * available as an upgrade target in that cluster's location.
-     * 
- * - * string suggested_upgrade_target = 9; - * @return The bytes for suggestedUpgradeTarget. - */ - public com.google.protobuf.ByteString - getSuggestedUpgradeTargetBytes() { - java.lang.Object ref = suggestedUpgradeTarget_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - suggestedUpgradeTarget_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * This represents a version selected from the patched_versions field that
-     * the cluster receiving this notification should most likely want to upgrade
-     * to based on its current version. Note that if this notification is being
-     * received by a given cluster, it means that this version is currently
-     * available as an upgrade target in that cluster's location.
-     * 
- * - * string suggested_upgrade_target = 9; - * @param value The suggestedUpgradeTarget to set. - * @return This builder for chaining. - */ - public Builder setSuggestedUpgradeTarget( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - suggestedUpgradeTarget_ = value; - onChanged(); - return this; - } - /** - *
-     * This represents a version selected from the patched_versions field that
-     * the cluster receiving this notification should most likely want to upgrade
-     * to based on its current version. Note that if this notification is being
-     * received by a given cluster, it means that this version is currently
-     * available as an upgrade target in that cluster's location.
-     * 
- * - * string suggested_upgrade_target = 9; - * @return This builder for chaining. - */ - public Builder clearSuggestedUpgradeTarget() { - - suggestedUpgradeTarget_ = getDefaultInstance().getSuggestedUpgradeTarget(); - onChanged(); - return this; - } - /** - *
-     * This represents a version selected from the patched_versions field that
-     * the cluster receiving this notification should most likely want to upgrade
-     * to based on its current version. Note that if this notification is being
-     * received by a given cluster, it means that this version is currently
-     * available as an upgrade target in that cluster's location.
-     * 
- * - * string suggested_upgrade_target = 9; - * @param value The bytes for suggestedUpgradeTarget to set. - * @return This builder for chaining. - */ - public Builder setSuggestedUpgradeTargetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - suggestedUpgradeTarget_ = value; - onChanged(); - return this; - } - - private boolean manualStepsRequired_ ; - /** - *
-     * If this field is specified, it means there are manual steps that the user
-     * must take to make their clusters safe.
-     * 
- * - * bool manual_steps_required = 10; - * @return The manualStepsRequired. - */ - @java.lang.Override - public boolean getManualStepsRequired() { - return manualStepsRequired_; - } - /** - *
-     * If this field is specified, it means there are manual steps that the user
-     * must take to make their clusters safe.
-     * 
- * - * bool manual_steps_required = 10; - * @param value The manualStepsRequired to set. - * @return This builder for chaining. - */ - public Builder setManualStepsRequired(boolean value) { - - manualStepsRequired_ = value; - onChanged(); - return this; - } - /** - *
-     * If this field is specified, it means there are manual steps that the user
-     * must take to make their clusters safe.
-     * 
- * - * bool manual_steps_required = 10; - * @return This builder for chaining. - */ - public Builder clearManualStepsRequired() { - - manualStepsRequired_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1.SecurityBulletinEvent) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.SecurityBulletinEvent) - private static final com.google.container.v1.SecurityBulletinEvent DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1.SecurityBulletinEvent(); - } - - public static com.google.container.v1.SecurityBulletinEvent getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecurityBulletinEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 0490cf959a1e..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityBulletinEventOrBuilder.java +++ /dev/null @@ -1,277 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface SecurityBulletinEventOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.SecurityBulletinEvent) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The resource type (node/control plane) that has the vulnerability. Multiple
-   * notifications (1 notification per resource type) will be sent for a
-   * vulnerability that affects > 1 resource type.
-   * 
- * - * string resource_type_affected = 1; - * @return The resourceTypeAffected. - */ - java.lang.String getResourceTypeAffected(); - /** - *
-   * The resource type (node/control plane) that has the vulnerability. Multiple
-   * notifications (1 notification per resource type) will be sent for a
-   * vulnerability that affects > 1 resource type.
-   * 
- * - * string resource_type_affected = 1; - * @return The bytes for resourceTypeAffected. - */ - com.google.protobuf.ByteString - getResourceTypeAffectedBytes(); - - /** - *
-   * The ID of the bulletin corresponding to the vulnerability.
-   * 
- * - * string bulletin_id = 2; - * @return The bulletinId. - */ - java.lang.String getBulletinId(); - /** - *
-   * The ID of the bulletin corresponding to the vulnerability.
-   * 
- * - * string bulletin_id = 2; - * @return The bytes for bulletinId. - */ - com.google.protobuf.ByteString - getBulletinIdBytes(); - - /** - *
-   * The CVEs associated with this bulletin.
-   * 
- * - * repeated string cve_ids = 3; - * @return A list containing the cveIds. - */ - java.util.List - getCveIdsList(); - /** - *
-   * The CVEs associated with this bulletin.
-   * 
- * - * repeated string cve_ids = 3; - * @return The count of cveIds. - */ - int getCveIdsCount(); - /** - *
-   * The CVEs associated with this bulletin.
-   * 
- * - * repeated string cve_ids = 3; - * @param index The index of the element to return. - * @return The cveIds at the given index. - */ - java.lang.String getCveIds(int index); - /** - *
-   * The CVEs associated with this bulletin.
-   * 
- * - * repeated string cve_ids = 3; - * @param index The index of the value to return. - * @return The bytes of the cveIds at the given index. - */ - com.google.protobuf.ByteString - getCveIdsBytes(int index); - - /** - *
-   * The severity of this bulletin as it relates to GKE.
-   * 
- * - * string severity = 4; - * @return The severity. - */ - java.lang.String getSeverity(); - /** - *
-   * The severity of this bulletin as it relates to GKE.
-   * 
- * - * string severity = 4; - * @return The bytes for severity. - */ - com.google.protobuf.ByteString - getSeverityBytes(); - - /** - *
-   * The URI link to the bulletin on the website for more information.
-   * 
- * - * string bulletin_uri = 5; - * @return The bulletinUri. - */ - java.lang.String getBulletinUri(); - /** - *
-   * The URI link to the bulletin on the website for more information.
-   * 
- * - * string bulletin_uri = 5; - * @return The bytes for bulletinUri. - */ - com.google.protobuf.ByteString - getBulletinUriBytes(); - - /** - *
-   * A brief description of the bulletin. See the bulletin pointed to by the
-   * bulletin_uri field for an expanded description.
-   * 
- * - * string brief_description = 6; - * @return The briefDescription. - */ - java.lang.String getBriefDescription(); - /** - *
-   * A brief description of the bulletin. See the bulletin pointed to by the
-   * bulletin_uri field for an expanded description.
-   * 
- * - * string brief_description = 6; - * @return The bytes for briefDescription. - */ - com.google.protobuf.ByteString - getBriefDescriptionBytes(); - - /** - *
-   * The GKE minor versions affected by this vulnerability.
-   * 
- * - * repeated string affected_supported_minors = 7; - * @return A list containing the affectedSupportedMinors. - */ - java.util.List - getAffectedSupportedMinorsList(); - /** - *
-   * The GKE minor versions affected by this vulnerability.
-   * 
- * - * repeated string affected_supported_minors = 7; - * @return The count of affectedSupportedMinors. - */ - int getAffectedSupportedMinorsCount(); - /** - *
-   * The GKE minor versions affected by this vulnerability.
-   * 
- * - * repeated string affected_supported_minors = 7; - * @param index The index of the element to return. - * @return The affectedSupportedMinors at the given index. - */ - java.lang.String getAffectedSupportedMinors(int index); - /** - *
-   * The GKE minor versions affected by this vulnerability.
-   * 
- * - * repeated string affected_supported_minors = 7; - * @param index The index of the value to return. - * @return The bytes of the affectedSupportedMinors at the given index. - */ - com.google.protobuf.ByteString - getAffectedSupportedMinorsBytes(int index); - - /** - *
-   * The GKE versions where this vulnerability is patched.
-   * 
- * - * repeated string patched_versions = 8; - * @return A list containing the patchedVersions. - */ - java.util.List - getPatchedVersionsList(); - /** - *
-   * The GKE versions where this vulnerability is patched.
-   * 
- * - * repeated string patched_versions = 8; - * @return The count of patchedVersions. - */ - int getPatchedVersionsCount(); - /** - *
-   * The GKE versions where this vulnerability is patched.
-   * 
- * - * repeated string patched_versions = 8; - * @param index The index of the element to return. - * @return The patchedVersions at the given index. - */ - java.lang.String getPatchedVersions(int index); - /** - *
-   * The GKE versions where this vulnerability is patched.
-   * 
- * - * repeated string patched_versions = 8; - * @param index The index of the value to return. - * @return The bytes of the patchedVersions at the given index. - */ - com.google.protobuf.ByteString - getPatchedVersionsBytes(int index); - - /** - *
-   * This represents a version selected from the patched_versions field that
-   * the cluster receiving this notification should most likely want to upgrade
-   * to based on its current version. Note that if this notification is being
-   * received by a given cluster, it means that this version is currently
-   * available as an upgrade target in that cluster's location.
-   * 
- * - * string suggested_upgrade_target = 9; - * @return The suggestedUpgradeTarget. - */ - java.lang.String getSuggestedUpgradeTarget(); - /** - *
-   * This represents a version selected from the patched_versions field that
-   * the cluster receiving this notification should most likely want to upgrade
-   * to based on its current version. Note that if this notification is being
-   * received by a given cluster, it means that this version is currently
-   * available as an upgrade target in that cluster's location.
-   * 
- * - * string suggested_upgrade_target = 9; - * @return The bytes for suggestedUpgradeTarget. - */ - com.google.protobuf.ByteString - getSuggestedUpgradeTargetBytes(); - - /** - *
-   * If this field is specified, it means there are manual steps that the user
-   * must take to make their clusters safe.
-   * 
- * - * bool manual_steps_required = 10; - * @return The manualStepsRequired. - */ - boolean getManualStepsRequired(); -} diff --git a/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 deleted file mode 100644 index bc331bfa0958..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfig.java +++ /dev/null @@ -1,2912 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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.EMPTY; - defaultImageType_ = ""; - validImageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - channels_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ServerConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReleaseChannelConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ServerConfig_ReleaseChannelConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ServerConfig_ReleaseChannelConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ServerConfig.ReleaseChannelConfig.class, com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder.class); - } - - public static final int CHANNEL_FIELD_NUMBER = 1; - private int channel_; - /** - *
-     * The release channel this configuration applies to.
-     * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * @return The enum numeric value on the wire for channel. - */ - @java.lang.Override public int getChannelValue() { - return channel_; - } - /** - *
-     * The release channel this configuration applies to.
-     * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * @return The channel. - */ - @java.lang.Override public com.google.container.v1.ReleaseChannel.Channel getChannel() { - @SuppressWarnings("deprecation") - com.google.container.v1.ReleaseChannel.Channel result = com.google.container.v1.ReleaseChannel.Channel.valueOf(channel_); - return result == null ? com.google.container.v1.ReleaseChannel.Channel.UNRECOGNIZED : result; - } - - public static final int DEFAULT_VERSION_FIELD_NUMBER = 2; - private volatile java.lang.Object defaultVersion_; - /** - *
-     * The default version for newly created clusters on the channel.
-     * 
- * - * string default_version = 2; - * @return The defaultVersion. - */ - @java.lang.Override - public java.lang.String getDefaultVersion() { - java.lang.Object ref = defaultVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultVersion_ = s; - return s; - } - } - /** - *
-     * The default version for newly created clusters on the channel.
-     * 
- * - * string default_version = 2; - * @return The bytes for defaultVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDefaultVersionBytes() { - java.lang.Object ref = defaultVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALID_VERSIONS_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList validVersions_; - /** - *
-     * List of valid versions for the channel.
-     * 
- * - * repeated string valid_versions = 4; - * @return A list containing the validVersions. - */ - public com.google.protobuf.ProtocolStringList - getValidVersionsList() { - return validVersions_; - } - /** - *
-     * List of valid versions for the channel.
-     * 
- * - * repeated string valid_versions = 4; - * @return The count of validVersions. - */ - public int getValidVersionsCount() { - return validVersions_.size(); - } - /** - *
-     * List of valid versions for the channel.
-     * 
- * - * repeated string valid_versions = 4; - * @param index The index of the element to return. - * @return The validVersions at the given index. - */ - public java.lang.String getValidVersions(int index) { - return validVersions_.get(index); - } - /** - *
-     * List of valid versions for the channel.
-     * 
- * - * repeated string valid_versions = 4; - * @param index The index of the value to return. - * @return The bytes of the validVersions at the given index. - */ - public com.google.protobuf.ByteString - getValidVersionsBytes(int index) { - return validVersions_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (channel_ != com.google.container.v1.ReleaseChannel.Channel.UNSPECIFIED.getNumber()) { - output.writeEnum(1, channel_); - } - if (!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(); - channel_ = 0; - - defaultVersion_ = ""; - - validVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ServerConfig_ReleaseChannelConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ServerConfig.ReleaseChannelConfig getDefaultInstanceForType() { - return com.google.container.v1.ServerConfig.ReleaseChannelConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ServerConfig.ReleaseChannelConfig build() { - com.google.container.v1.ServerConfig.ReleaseChannelConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ServerConfig.ReleaseChannelConfig buildPartial() { - com.google.container.v1.ServerConfig.ReleaseChannelConfig result = new com.google.container.v1.ServerConfig.ReleaseChannelConfig(this); - int from_bitField0_ = bitField0_; - result.channel_ = channel_; - result.defaultVersion_ = defaultVersion_; - if (((bitField0_ & 0x00000001) != 0)) { - validVersions_ = validVersions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.validVersions_ = validVersions_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ServerConfig.ReleaseChannelConfig) { - return mergeFrom((com.google.container.v1.ServerConfig.ReleaseChannelConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ServerConfig.ReleaseChannelConfig other) { - if (other == com.google.container.v1.ServerConfig.ReleaseChannelConfig.getDefaultInstance()) return this; - if (other.channel_ != 0) { - setChannelValue(other.getChannelValue()); - } - if (!other.getDefaultVersion().isEmpty()) { - defaultVersion_ = other.defaultVersion_; - onChanged(); - } - if (!other.validVersions_.isEmpty()) { - if (validVersions_.isEmpty()) { - validVersions_ = other.validVersions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValidVersionsIsMutable(); - validVersions_.addAll(other.validVersions_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 8 - case 18: { - defaultVersion_ = input.readStringRequireUtf8(); - - 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; - onChanged(); - return this; - } - /** - *
-       * The release channel this configuration applies to.
-       * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * @return The channel. - */ - @java.lang.Override - public com.google.container.v1.ReleaseChannel.Channel getChannel() { - @SuppressWarnings("deprecation") - com.google.container.v1.ReleaseChannel.Channel result = com.google.container.v1.ReleaseChannel.Channel.valueOf(channel_); - return result == null ? com.google.container.v1.ReleaseChannel.Channel.UNRECOGNIZED : result; - } - /** - *
-       * The release channel this configuration applies to.
-       * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * @param value The channel to set. - * @return This builder for chaining. - */ - public Builder setChannel(com.google.container.v1.ReleaseChannel.Channel value) { - if (value == null) { - throw new NullPointerException(); - } - - channel_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * The release channel this configuration applies to.
-       * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * @return This builder for chaining. - */ - public Builder clearChannel() { - - channel_ = 0; - onChanged(); - return this; - } - - private java.lang.Object defaultVersion_ = ""; - /** - *
-       * The default version for newly created clusters on the channel.
-       * 
- * - * string default_version = 2; - * @return The defaultVersion. - */ - public java.lang.String getDefaultVersion() { - java.lang.Object ref = defaultVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The default version for newly created clusters on the channel.
-       * 
- * - * string default_version = 2; - * @return The bytes for defaultVersion. - */ - public com.google.protobuf.ByteString - getDefaultVersionBytes() { - java.lang.Object ref = defaultVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The default version for newly created clusters on the channel.
-       * 
- * - * string default_version = 2; - * @param value The defaultVersion to set. - * @return This builder for chaining. - */ - public Builder setDefaultVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - defaultVersion_ = value; - onChanged(); - return this; - } - /** - *
-       * The default version for newly created clusters on the channel.
-       * 
- * - * string default_version = 2; - * @return This builder for chaining. - */ - public Builder clearDefaultVersion() { - - defaultVersion_ = getDefaultInstance().getDefaultVersion(); - onChanged(); - return this; - } - /** - *
-       * The default version for newly created clusters on the channel.
-       * 
- * - * string default_version = 2; - * @param value The bytes for defaultVersion to set. - * @return This builder for chaining. - */ - public Builder setDefaultVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - defaultVersion_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList validVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureValidVersionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - validVersions_ = new com.google.protobuf.LazyStringArrayList(validVersions_); - bitField0_ |= 0x00000001; - } - } - /** - *
-       * List of valid versions for the channel.
-       * 
- * - * repeated string valid_versions = 4; - * @return A list containing the validVersions. - */ - public com.google.protobuf.ProtocolStringList - getValidVersionsList() { - return validVersions_.getUnmodifiableView(); - } - /** - *
-       * List of valid versions for the channel.
-       * 
- * - * repeated string valid_versions = 4; - * @return The count of validVersions. - */ - public int getValidVersionsCount() { - return validVersions_.size(); - } - /** - *
-       * List of valid versions for the channel.
-       * 
- * - * repeated string valid_versions = 4; - * @param index The index of the element to return. - * @return The validVersions at the given index. - */ - public java.lang.String getValidVersions(int index) { - return validVersions_.get(index); - } - /** - *
-       * List of valid versions for the channel.
-       * 
- * - * repeated string valid_versions = 4; - * @param index The index of the value to return. - * @return The bytes of the validVersions at the given index. - */ - public com.google.protobuf.ByteString - getValidVersionsBytes(int index) { - return validVersions_.getByteString(index); - } - /** - *
-       * List of valid versions for the channel.
-       * 
- * - * repeated string valid_versions = 4; - * @param index The index to set the value at. - * @param value The validVersions to set. - * @return This builder for chaining. - */ - public Builder setValidVersions( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidVersionsIsMutable(); - validVersions_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * List of valid versions for the channel.
-       * 
- * - * repeated string valid_versions = 4; - * @param value The validVersions to add. - * @return This builder for chaining. - */ - public Builder addValidVersions( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidVersionsIsMutable(); - validVersions_.add(value); - onChanged(); - return this; - } - /** - *
-       * List of valid versions for the channel.
-       * 
- * - * repeated string valid_versions = 4; - * @param values The validVersions to add. - * @return This builder for chaining. - */ - public Builder addAllValidVersions( - java.lang.Iterable values) { - ensureValidVersionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, validVersions_); - onChanged(); - return this; - } - /** - *
-       * List of valid versions for the channel.
-       * 
- * - * repeated string valid_versions = 4; - * @return This builder for chaining. - */ - public Builder clearValidVersions() { - validVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * List of valid versions for the channel.
-       * 
- * - * repeated string valid_versions = 4; - * @param value The bytes of the validVersions to add. - * @return This builder for chaining. - */ - public Builder addValidVersionsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureValidVersionsIsMutable(); - validVersions_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1.ServerConfig.ReleaseChannelConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ServerConfig.ReleaseChannelConfig) - private static final com.google.container.v1.ServerConfig.ReleaseChannelConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1.ServerConfig.ReleaseChannelConfig(); - } - - public static com.google.container.v1.ServerConfig.ReleaseChannelConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReleaseChannelConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.ServerConfig.ReleaseChannelConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int DEFAULT_CLUSTER_VERSION_FIELD_NUMBER = 1; - private volatile java.lang.Object defaultClusterVersion_; - /** - *
-   * Version of Kubernetes the service deploys by default.
-   * 
- * - * string default_cluster_version = 1; - * @return The defaultClusterVersion. - */ - @java.lang.Override - public java.lang.String getDefaultClusterVersion() { - java.lang.Object ref = defaultClusterVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultClusterVersion_ = s; - return s; - } - } - /** - *
-   * Version of Kubernetes the service deploys by default.
-   * 
- * - * string default_cluster_version = 1; - * @return The bytes for defaultClusterVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDefaultClusterVersionBytes() { - java.lang.Object ref = defaultClusterVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultClusterVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALID_NODE_VERSIONS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList validNodeVersions_; - /** - *
-   * List of valid node upgrade target versions, in descending order.
-   * 
- * - * repeated string valid_node_versions = 3; - * @return A list containing the validNodeVersions. - */ - public com.google.protobuf.ProtocolStringList - getValidNodeVersionsList() { - return validNodeVersions_; - } - /** - *
-   * List of valid node upgrade target versions, in descending order.
-   * 
- * - * repeated string valid_node_versions = 3; - * @return The count of validNodeVersions. - */ - public int getValidNodeVersionsCount() { - return validNodeVersions_.size(); - } - /** - *
-   * List of valid node upgrade target versions, in descending order.
-   * 
- * - * repeated string valid_node_versions = 3; - * @param index The index of the element to return. - * @return The validNodeVersions at the given index. - */ - public java.lang.String getValidNodeVersions(int index) { - return validNodeVersions_.get(index); - } - /** - *
-   * List of valid node upgrade target versions, in descending order.
-   * 
- * - * repeated string valid_node_versions = 3; - * @param index The index of the value to return. - * @return The bytes of the validNodeVersions at the given index. - */ - public com.google.protobuf.ByteString - getValidNodeVersionsBytes(int index) { - return validNodeVersions_.getByteString(index); - } - - public static final int DEFAULT_IMAGE_TYPE_FIELD_NUMBER = 4; - private volatile java.lang.Object defaultImageType_; - /** - *
-   * Default image type.
-   * 
- * - * string default_image_type = 4; - * @return The defaultImageType. - */ - @java.lang.Override - public java.lang.String getDefaultImageType() { - java.lang.Object ref = defaultImageType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultImageType_ = s; - return s; - } - } - /** - *
-   * Default image type.
-   * 
- * - * string default_image_type = 4; - * @return The bytes for defaultImageType. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDefaultImageTypeBytes() { - java.lang.Object ref = defaultImageType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultImageType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALID_IMAGE_TYPES_FIELD_NUMBER = 5; - private com.google.protobuf.LazyStringList validImageTypes_; - /** - *
-   * List of valid image types.
-   * 
- * - * repeated string valid_image_types = 5; - * @return A list containing the validImageTypes. - */ - public com.google.protobuf.ProtocolStringList - getValidImageTypesList() { - return validImageTypes_; - } - /** - *
-   * List of valid image types.
-   * 
- * - * repeated string valid_image_types = 5; - * @return The count of validImageTypes. - */ - public int getValidImageTypesCount() { - return validImageTypes_.size(); - } - /** - *
-   * List of valid image types.
-   * 
- * - * repeated string valid_image_types = 5; - * @param index The index of the element to return. - * @return The validImageTypes at the given index. - */ - public java.lang.String getValidImageTypes(int index) { - return validImageTypes_.get(index); - } - /** - *
-   * List of valid image types.
-   * 
- * - * repeated string valid_image_types = 5; - * @param index The index of the value to return. - * @return The bytes of the validImageTypes at the given index. - */ - public com.google.protobuf.ByteString - getValidImageTypesBytes(int index) { - return validImageTypes_.getByteString(index); - } - - public static final int VALID_MASTER_VERSIONS_FIELD_NUMBER = 6; - private com.google.protobuf.LazyStringList validMasterVersions_; - /** - *
-   * List of valid master versions, in descending order.
-   * 
- * - * repeated string valid_master_versions = 6; - * @return A list containing the validMasterVersions. - */ - public com.google.protobuf.ProtocolStringList - getValidMasterVersionsList() { - return validMasterVersions_; - } - /** - *
-   * List of valid master versions, in descending order.
-   * 
- * - * repeated string valid_master_versions = 6; - * @return The count of validMasterVersions. - */ - public int getValidMasterVersionsCount() { - return validMasterVersions_.size(); - } - /** - *
-   * List of valid master versions, in descending order.
-   * 
- * - * repeated string valid_master_versions = 6; - * @param index The index of the element to return. - * @return The validMasterVersions at the given index. - */ - public java.lang.String getValidMasterVersions(int index) { - return validMasterVersions_.get(index); - } - /** - *
-   * List of valid master versions, in descending order.
-   * 
- * - * repeated string valid_master_versions = 6; - * @param index The index of the value to return. - * @return The bytes of the validMasterVersions at the given index. - */ - public com.google.protobuf.ByteString - getValidMasterVersionsBytes(int index) { - return validMasterVersions_.getByteString(index); - } - - public static final int CHANNELS_FIELD_NUMBER = 9; - private java.util.List channels_; - /** - *
-   * List of release channel configurations.
-   * 
- * - * repeated .google.container.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(); - defaultClusterVersion_ = ""; - - validNodeVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - defaultImageType_ = ""; - - validImageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - if (channelsBuilder_ == null) { - channels_ = java.util.Collections.emptyList(); - } else { - channels_ = null; - channelsBuilder_.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_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); - int from_bitField0_ = bitField0_; - result.defaultClusterVersion_ = defaultClusterVersion_; - if (((bitField0_ & 0x00000001) != 0)) { - validNodeVersions_ = validNodeVersions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.validNodeVersions_ = validNodeVersions_; - result.defaultImageType_ = defaultImageType_; - if (((bitField0_ & 0x00000002) != 0)) { - validImageTypes_ = validImageTypes_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.validImageTypes_ = validImageTypes_; - if (((bitField0_ & 0x00000004) != 0)) { - validMasterVersions_ = validMasterVersions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.validMasterVersions_ = validMasterVersions_; - if (channelsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - channels_ = java.util.Collections.unmodifiableList(channels_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.channels_ = channels_; - } else { - result.channels_ = channelsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.validNodeVersions_.isEmpty()) { - if (validNodeVersions_.isEmpty()) { - validNodeVersions_ = other.validNodeVersions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValidNodeVersionsIsMutable(); - validNodeVersions_.addAll(other.validNodeVersions_); - } - onChanged(); - } - if (!other.getDefaultImageType().isEmpty()) { - defaultImageType_ = other.defaultImageType_; - onChanged(); - } - if (!other.validImageTypes_.isEmpty()) { - if (validImageTypes_.isEmpty()) { - validImageTypes_ = other.validImageTypes_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureValidImageTypesIsMutable(); - validImageTypes_.addAll(other.validImageTypes_); - } - onChanged(); - } - if (!other.validMasterVersions_.isEmpty()) { - if (validMasterVersions_.isEmpty()) { - validMasterVersions_ = other.validMasterVersions_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureValidMasterVersionsIsMutable(); - validMasterVersions_.addAll(other.validMasterVersions_); - } - onChanged(); - } - if (channelsBuilder_ == null) { - if (!other.channels_.isEmpty()) { - if (channels_.isEmpty()) { - channels_ = other.channels_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureChannelsIsMutable(); - channels_.addAll(other.channels_); - } - onChanged(); - } - } else { - if (!other.channels_.isEmpty()) { - if (channelsBuilder_.isEmpty()) { - channelsBuilder_.dispose(); - channelsBuilder_ = null; - channels_ = other.channels_; - bitField0_ = (bitField0_ & ~0x00000008); - channelsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getChannelsFieldBuilder() : null; - } else { - channelsBuilder_.addAllMessages(other.channels_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureValidNodeVersionsIsMutable(); - validNodeVersions_.add(s); - break; - } // case 26 - case 34: { - defaultImageType_ = input.readStringRequireUtf8(); - - 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; - onChanged(); - return this; - } - /** - *
-     * Version of Kubernetes the service deploys by default.
-     * 
- * - * string default_cluster_version = 1; - * @return This builder for chaining. - */ - public Builder clearDefaultClusterVersion() { - - defaultClusterVersion_ = getDefaultInstance().getDefaultClusterVersion(); - onChanged(); - return this; - } - /** - *
-     * Version of Kubernetes the service deploys by default.
-     * 
- * - * string default_cluster_version = 1; - * @param value The bytes for defaultClusterVersion to set. - * @return This builder for chaining. - */ - public Builder setDefaultClusterVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - defaultClusterVersion_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList validNodeVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureValidNodeVersionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - validNodeVersions_ = new com.google.protobuf.LazyStringArrayList(validNodeVersions_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * List of valid node upgrade target versions, in descending order.
-     * 
- * - * repeated string valid_node_versions = 3; - * @return A list containing the validNodeVersions. - */ - public com.google.protobuf.ProtocolStringList - getValidNodeVersionsList() { - return validNodeVersions_.getUnmodifiableView(); - } - /** - *
-     * List of valid node upgrade target versions, in descending order.
-     * 
- * - * repeated string valid_node_versions = 3; - * @return The count of validNodeVersions. - */ - public int getValidNodeVersionsCount() { - return validNodeVersions_.size(); - } - /** - *
-     * List of valid node upgrade target versions, in descending order.
-     * 
- * - * repeated string valid_node_versions = 3; - * @param index The index of the element to return. - * @return The validNodeVersions at the given index. - */ - public java.lang.String getValidNodeVersions(int index) { - return validNodeVersions_.get(index); - } - /** - *
-     * List of valid node upgrade target versions, in descending order.
-     * 
- * - * repeated string valid_node_versions = 3; - * @param index The index of the value to return. - * @return The bytes of the validNodeVersions at the given index. - */ - public com.google.protobuf.ByteString - getValidNodeVersionsBytes(int index) { - return validNodeVersions_.getByteString(index); - } - /** - *
-     * List of valid node upgrade target versions, in descending order.
-     * 
- * - * repeated string valid_node_versions = 3; - * @param index The index to set the value at. - * @param value The validNodeVersions to set. - * @return This builder for chaining. - */ - public Builder setValidNodeVersions( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidNodeVersionsIsMutable(); - validNodeVersions_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * List of valid node upgrade target versions, in descending order.
-     * 
- * - * repeated string valid_node_versions = 3; - * @param value The validNodeVersions to add. - * @return This builder for chaining. - */ - public Builder addValidNodeVersions( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidNodeVersionsIsMutable(); - validNodeVersions_.add(value); - onChanged(); - return this; - } - /** - *
-     * List of valid node upgrade target versions, in descending order.
-     * 
- * - * repeated string valid_node_versions = 3; - * @param values The validNodeVersions to add. - * @return This builder for chaining. - */ - public Builder addAllValidNodeVersions( - java.lang.Iterable values) { - ensureValidNodeVersionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, validNodeVersions_); - onChanged(); - return this; - } - /** - *
-     * List of valid node upgrade target versions, in descending order.
-     * 
- * - * repeated string valid_node_versions = 3; - * @return This builder for chaining. - */ - public Builder clearValidNodeVersions() { - validNodeVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * List of valid node upgrade target versions, in descending order.
-     * 
- * - * repeated string valid_node_versions = 3; - * @param value The bytes of the validNodeVersions to add. - * @return This builder for chaining. - */ - public Builder addValidNodeVersionsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureValidNodeVersionsIsMutable(); - validNodeVersions_.add(value); - onChanged(); - return this; - } - - private java.lang.Object defaultImageType_ = ""; - /** - *
-     * Default image type.
-     * 
- * - * string default_image_type = 4; - * @return The defaultImageType. - */ - public java.lang.String getDefaultImageType() { - java.lang.Object ref = defaultImageType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultImageType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Default image type.
-     * 
- * - * string default_image_type = 4; - * @return The bytes for defaultImageType. - */ - public com.google.protobuf.ByteString - getDefaultImageTypeBytes() { - java.lang.Object ref = defaultImageType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultImageType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Default image type.
-     * 
- * - * string default_image_type = 4; - * @param value The defaultImageType to set. - * @return This builder for chaining. - */ - public Builder setDefaultImageType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - defaultImageType_ = value; - onChanged(); - return this; - } - /** - *
-     * Default image type.
-     * 
- * - * string default_image_type = 4; - * @return This builder for chaining. - */ - public Builder clearDefaultImageType() { - - defaultImageType_ = getDefaultInstance().getDefaultImageType(); - onChanged(); - return this; - } - /** - *
-     * Default image type.
-     * 
- * - * string default_image_type = 4; - * @param value The bytes for defaultImageType to set. - * @return This builder for chaining. - */ - public Builder setDefaultImageTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - defaultImageType_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList validImageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureValidImageTypesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - validImageTypes_ = new com.google.protobuf.LazyStringArrayList(validImageTypes_); - bitField0_ |= 0x00000002; - } - } - /** - *
-     * List of valid image types.
-     * 
- * - * repeated string valid_image_types = 5; - * @return A list containing the validImageTypes. - */ - public com.google.protobuf.ProtocolStringList - getValidImageTypesList() { - return validImageTypes_.getUnmodifiableView(); - } - /** - *
-     * List of valid image types.
-     * 
- * - * repeated string valid_image_types = 5; - * @return The count of validImageTypes. - */ - public int getValidImageTypesCount() { - return validImageTypes_.size(); - } - /** - *
-     * List of valid image types.
-     * 
- * - * repeated string valid_image_types = 5; - * @param index The index of the element to return. - * @return The validImageTypes at the given index. - */ - public java.lang.String getValidImageTypes(int index) { - return validImageTypes_.get(index); - } - /** - *
-     * List of valid image types.
-     * 
- * - * repeated string valid_image_types = 5; - * @param index The index of the value to return. - * @return The bytes of the validImageTypes at the given index. - */ - public com.google.protobuf.ByteString - getValidImageTypesBytes(int index) { - return validImageTypes_.getByteString(index); - } - /** - *
-     * List of valid image types.
-     * 
- * - * repeated string valid_image_types = 5; - * @param index The index to set the value at. - * @param value The validImageTypes to set. - * @return This builder for chaining. - */ - public Builder setValidImageTypes( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidImageTypesIsMutable(); - validImageTypes_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * List of valid image types.
-     * 
- * - * repeated string valid_image_types = 5; - * @param value The validImageTypes to add. - * @return This builder for chaining. - */ - public Builder addValidImageTypes( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidImageTypesIsMutable(); - validImageTypes_.add(value); - onChanged(); - return this; - } - /** - *
-     * List of valid image types.
-     * 
- * - * repeated string valid_image_types = 5; - * @param values The validImageTypes to add. - * @return This builder for chaining. - */ - public Builder addAllValidImageTypes( - java.lang.Iterable values) { - ensureValidImageTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, validImageTypes_); - onChanged(); - return this; - } - /** - *
-     * List of valid image types.
-     * 
- * - * repeated string valid_image_types = 5; - * @return This builder for chaining. - */ - public Builder clearValidImageTypes() { - validImageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * List of valid image types.
-     * 
- * - * repeated string valid_image_types = 5; - * @param value The bytes of the validImageTypes to add. - * @return This builder for chaining. - */ - public Builder addValidImageTypesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureValidImageTypesIsMutable(); - validImageTypes_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureValidMasterVersionsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - validMasterVersions_ = new com.google.protobuf.LazyStringArrayList(validMasterVersions_); - bitField0_ |= 0x00000004; - } - } - /** - *
-     * List of valid master versions, in descending order.
-     * 
- * - * repeated string valid_master_versions = 6; - * @return A list containing the validMasterVersions. - */ - public com.google.protobuf.ProtocolStringList - getValidMasterVersionsList() { - return validMasterVersions_.getUnmodifiableView(); - } - /** - *
-     * List of valid master versions, in descending order.
-     * 
- * - * repeated string valid_master_versions = 6; - * @return The count of validMasterVersions. - */ - public int getValidMasterVersionsCount() { - return validMasterVersions_.size(); - } - /** - *
-     * List of valid master versions, in descending order.
-     * 
- * - * repeated string valid_master_versions = 6; - * @param index The index of the element to return. - * @return The validMasterVersions at the given index. - */ - public java.lang.String getValidMasterVersions(int index) { - return validMasterVersions_.get(index); - } - /** - *
-     * List of valid master versions, in descending order.
-     * 
- * - * repeated string valid_master_versions = 6; - * @param index The index of the value to return. - * @return The bytes of the validMasterVersions at the given index. - */ - public com.google.protobuf.ByteString - getValidMasterVersionsBytes(int index) { - return validMasterVersions_.getByteString(index); - } - /** - *
-     * List of valid master versions, in descending order.
-     * 
- * - * repeated string valid_master_versions = 6; - * @param index The index to set the value at. - * @param value The validMasterVersions to set. - * @return This builder for chaining. - */ - public Builder setValidMasterVersions( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidMasterVersionsIsMutable(); - validMasterVersions_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * List of valid master versions, in descending order.
-     * 
- * - * repeated string valid_master_versions = 6; - * @param value The validMasterVersions to add. - * @return This builder for chaining. - */ - public Builder addValidMasterVersions( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidMasterVersionsIsMutable(); - validMasterVersions_.add(value); - onChanged(); - return this; - } - /** - *
-     * List of valid master versions, in descending order.
-     * 
- * - * repeated string valid_master_versions = 6; - * @param values The validMasterVersions to add. - * @return This builder for chaining. - */ - public Builder addAllValidMasterVersions( - java.lang.Iterable values) { - ensureValidMasterVersionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, validMasterVersions_); - onChanged(); - return this; - } - /** - *
-     * List of valid master versions, in descending order.
-     * 
- * - * repeated string valid_master_versions = 6; - * @return This builder for chaining. - */ - public Builder clearValidMasterVersions() { - validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * List of valid master versions, in descending order.
-     * 
- * - * repeated string valid_master_versions = 6; - * @param value The bytes of the validMasterVersions to add. - * @return This builder for chaining. - */ - public Builder addValidMasterVersionsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureValidMasterVersionsIsMutable(); - validMasterVersions_.add(value); - onChanged(); - return this; - } - - private java.util.List channels_ = - java.util.Collections.emptyList(); - private void ensureChannelsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - channels_ = new java.util.ArrayList(channels_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.ServerConfig.ReleaseChannelConfig, com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder, com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder> channelsBuilder_; - - /** - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public java.util.List getChannelsList() { - if (channelsBuilder_ == null) { - return java.util.Collections.unmodifiableList(channels_); - } else { - return channelsBuilder_.getMessageList(); - } - } - /** - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public int getChannelsCount() { - if (channelsBuilder_ == null) { - return channels_.size(); - } else { - return channelsBuilder_.getCount(); - } - } - /** - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public com.google.container.v1.ServerConfig.ReleaseChannelConfig getChannels(int index) { - if (channelsBuilder_ == null) { - return channels_.get(index); - } else { - return channelsBuilder_.getMessage(index); - } - } - /** - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public Builder setChannels( - int index, com.google.container.v1.ServerConfig.ReleaseChannelConfig value) { - if (channelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChannelsIsMutable(); - channels_.set(index, value); - onChanged(); - } else { - channelsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public Builder setChannels( - int index, com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder builderForValue) { - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - channels_.set(index, builderForValue.build()); - onChanged(); - } else { - channelsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public Builder addChannels(com.google.container.v1.ServerConfig.ReleaseChannelConfig value) { - if (channelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChannelsIsMutable(); - channels_.add(value); - onChanged(); - } else { - channelsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public Builder addChannels( - int index, com.google.container.v1.ServerConfig.ReleaseChannelConfig value) { - if (channelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChannelsIsMutable(); - channels_.add(index, value); - onChanged(); - } else { - channelsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public Builder addChannels( - com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder builderForValue) { - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - channels_.add(builderForValue.build()); - onChanged(); - } else { - channelsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public Builder addChannels( - int index, com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder builderForValue) { - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - channels_.add(index, builderForValue.build()); - onChanged(); - } else { - channelsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public Builder addAllChannels( - java.lang.Iterable values) { - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, channels_); - onChanged(); - } else { - channelsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public Builder clearChannels() { - if (channelsBuilder_ == null) { - channels_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - channelsBuilder_.clear(); - } - return this; - } - /** - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public Builder removeChannels(int index) { - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - channels_.remove(index); - onChanged(); - } else { - channelsBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder getChannelsBuilder( - int index) { - return getChannelsFieldBuilder().getBuilder(index); - } - /** - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder getChannelsOrBuilder( - int index) { - if (channelsBuilder_ == null) { - return channels_.get(index); } else { - return channelsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public java.util.List - getChannelsOrBuilderList() { - if (channelsBuilder_ != null) { - return channelsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(channels_); - } - } - /** - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder addChannelsBuilder() { - return getChannelsFieldBuilder().addBuilder( - com.google.container.v1.ServerConfig.ReleaseChannelConfig.getDefaultInstance()); - } - /** - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder addChannelsBuilder( - int index) { - return getChannelsFieldBuilder().addBuilder( - index, com.google.container.v1.ServerConfig.ReleaseChannelConfig.getDefaultInstance()); - } - /** - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public java.util.List - getChannelsBuilderList() { - return getChannelsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.ServerConfig.ReleaseChannelConfig, com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder, com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder> - getChannelsFieldBuilder() { - if (channelsBuilder_ == null) { - channelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.ServerConfig.ReleaseChannelConfig, com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder, com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder>( - channels_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - channels_ = null; - } - return channelsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 3a2d9976882d..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfigOrBuilder.java +++ /dev/null @@ -1,216 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index 7a18bdb3d17c..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServiceExternalIPsConfig.java +++ /dev/null @@ -1,490 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * Config to block services with externalIPs field.
- * 
- * - * Protobuf type {@code google.container.v1.ServiceExternalIPsConfig} - */ -public final class ServiceExternalIPsConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.ServiceExternalIPsConfig) - ServiceExternalIPsConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use ServiceExternalIPsConfig.newBuilder() to construct. - private ServiceExternalIPsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ServiceExternalIPsConfig() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ServiceExternalIPsConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ServiceExternalIPsConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ServiceExternalIPsConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ServiceExternalIPsConfig.class, com.google.container.v1.ServiceExternalIPsConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-   * Whether Services with ExternalIPs field are allowed or not.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - 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(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ServiceExternalIPsConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ServiceExternalIPsConfig getDefaultInstanceForType() { - return com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ServiceExternalIPsConfig build() { - com.google.container.v1.ServiceExternalIPsConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ServiceExternalIPsConfig buildPartial() { - com.google.container.v1.ServiceExternalIPsConfig result = new com.google.container.v1.ServiceExternalIPsConfig(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ServiceExternalIPsConfig) { - return mergeFrom((com.google.container.v1.ServiceExternalIPsConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ServiceExternalIPsConfig other) { - if (other == com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 boolean enabled_ ; - /** - *
-     * Whether Services with ExternalIPs field are allowed or not.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Whether Services with ExternalIPs field are allowed or not.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether Services with ExternalIPs field are allowed or not.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1.ServiceExternalIPsConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ServiceExternalIPsConfig) - private static final com.google.container.v1.ServiceExternalIPsConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1.ServiceExternalIPsConfig(); - } - - public static com.google.container.v1.ServiceExternalIPsConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ServiceExternalIPsConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 9448d4b20b7e..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServiceExternalIPsConfigOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface ServiceExternalIPsConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ServiceExternalIPsConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether Services with ExternalIPs field are allowed or not.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/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 deleted file mode 100644 index 4d30c0c243e0..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java +++ /dev/null @@ -1,1402 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/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=2399 - * @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=2399 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2405 - * @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=2405 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * Deprecated. 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=2409 - * @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=2409 - * @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 addonsConfig_ != null; - } - /** - *
-   * 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 getAddonsConfig(); - } - - public static final int NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster) of the cluster to set addons.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project, location, cluster) of the cluster to set addons.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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 (addonsConfig_ != null) { - 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 (addonsConfig_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - if (addonsConfigBuilder_ == null) { - addonsConfig_ = null; - } else { - addonsConfig_ = null; - addonsConfigBuilder_ = null; - } - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.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); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - if (addonsConfigBuilder_ == null) { - result.addonsConfig_ = addonsConfig_; - } else { - result.addonsConfig_ = addonsConfigBuilder_.build(); - } - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (other.hasAddonsConfig()) { - mergeAddonsConfig(other.getAddonsConfig()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - input.readMessage( - getAddonsConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 34 - case 50: { - name_ = input.readStringRequireUtf8(); - - 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 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=2399 - * @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=2399 - * @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=2399 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/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=2399 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - 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=2399 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2405 - * @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=2405 - * @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=2405 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2405 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - 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=2405 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * Deprecated. 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=2409 - * @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=2409 - * @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=2409 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. 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=2409 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. - * See google/container/v1/cluster_service.proto;l=2409 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private com.google.container.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 addonsConfigBuilder_ != null || addonsConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - addonsConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - addonsConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (addonsConfig_ != null) { - addonsConfig_ = - com.google.container.v1.AddonsConfig.newBuilder(addonsConfig_).mergeFrom(value).buildPartial(); - } else { - addonsConfig_ = value; - } - onChanged(); - } else { - addonsConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Required. The desired configurations for the various addons available to run in the
-     * cluster.
-     * 
- * - * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearAddonsConfig() { - if (addonsConfigBuilder_ == null) { - addonsConfig_ = null; - onChanged(); - } else { - addonsConfig_ = null; - addonsConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Required. The desired configurations for the various addons available to run in the
-     * cluster.
-     * 
- * - * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.container.v1.AddonsConfig.Builder getAddonsConfigBuilder() { - - 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; - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster) of the cluster to set addons.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster) of the cluster to set addons.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index 20dd86b6fa7f..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java +++ /dev/null @@ -1,145 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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=2399 - * @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=2399 - * @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=2405 - * @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=2405 - * @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=2409 - * @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=2409 - * @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 deleted file mode 100644 index 0599c10836f4..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java +++ /dev/null @@ -1,1691 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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.MapField internalGetMapField( - int number) { - switch (number) { - case 4: - return internalGetResourceLabels(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.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; - 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=3494 - * @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=3494 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3500 - * @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=3500 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * 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=3504 - * @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=3504 - * @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, - ""); - } - 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 java.lang.String getResourceLabelsOrDefault( - java.lang.String key, - 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; - private volatile java.lang.Object labelFingerprint_; - /** - *
-   * Required. The fingerprint of the previous set of labels for this resource,
-   * used to detect conflicts. The fingerprint is initially generated by
-   * Kubernetes Engine and changes after every request to modify or update
-   * labels. You must always provide an up-to-date fingerprint hash when
-   * updating or changing labels. Make a `get()` request to the
-   * resource to get the latest fingerprint.
-   * 
- * - * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The labelFingerprint. - */ - @java.lang.Override - public java.lang.String getLabelFingerprint() { - java.lang.Object ref = labelFingerprint_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - labelFingerprint_ = s; - return s; - } - } - /** - *
-   * Required. The fingerprint of the previous set of labels for this resource,
-   * used to detect conflicts. The fingerprint is initially generated by
-   * Kubernetes Engine and changes after every request to modify or update
-   * labels. You must always provide an up-to-date fingerprint hash when
-   * updating or changing labels. Make a `get()` request to the
-   * resource to get the latest fingerprint.
-   * 
- * - * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for labelFingerprint. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getLabelFingerprintBytes() { - java.lang.Object ref = labelFingerprint_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - labelFingerprint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 7; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster 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.MapField internalGetMapField( - int number) { - switch (number) { - case 4: - return internalGetResourceLabels(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 4: - return internalGetMutableResourceLabels(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.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(); - 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); - int from_bitField0_ = bitField0_; - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.resourceLabels_ = internalGetResourceLabels(); - result.resourceLabels_.makeImmutable(); - result.labelFingerprint_ = labelFingerprint_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - internalGetMutableResourceLabels().mergeFrom( - other.internalGetResourceLabels()); - if (!other.getLabelFingerprint().isEmpty()) { - labelFingerprint_ = other.labelFingerprint_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - com.google.protobuf.MapEntry - resourceLabels__ = input.readMessage( - ResourceLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableResourceLabels().getMutableMap().put( - resourceLabels__.getKey(), resourceLabels__.getValue()); - break; - } // case 34 - case 42: { - labelFingerprint_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 58: { - name_ = input.readStringRequireUtf8(); - - 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=3494 - * @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=3494 - * @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=3494 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/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=3494 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - 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=3494 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3500 - * @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=3500 - * @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=3500 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3500 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - 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=3500 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * 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=3504 - * @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=3504 - * @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=3504 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * 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=3504 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. - * See google/container/v1/cluster_service.proto;l=3504 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> resourceLabels_; - private com.google.protobuf.MapField - internalGetResourceLabels() { - if (resourceLabels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ResourceLabelsDefaultEntryHolder.defaultEntry); - } - return resourceLabels_; - } - private com.google.protobuf.MapField - internalGetMutableResourceLabels() { - onChanged();; - if (resourceLabels_ == null) { - resourceLabels_ = com.google.protobuf.MapField.newMapField( - ResourceLabelsDefaultEntryHolder.defaultEntry); - } - if (!resourceLabels_.isMutable()) { - resourceLabels_ = resourceLabels_.copy(); - } - return resourceLabels_; - } - - public int getResourceLabelsCount() { - return internalGetResourceLabels().getMap().size(); - } - /** - *
-     * 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 java.lang.String getResourceLabelsOrDefault( - java.lang.String key, - 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() { - 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() { - 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); - return this; - } - /** - *
-     * Required. The labels to set for that cluster.
-     * 
- * - * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - - public Builder putAllResourceLabels( - java.util.Map values) { - internalGetMutableResourceLabels().getMutableMap() - .putAll(values); - return this; - } - - private java.lang.Object labelFingerprint_ = ""; - /** - *
-     * Required. The fingerprint of the previous set of labels for this resource,
-     * used to detect conflicts. The fingerprint is initially generated by
-     * Kubernetes Engine and changes after every request to modify or update
-     * labels. You must always provide an up-to-date fingerprint hash when
-     * updating or changing labels. Make a `get()` request to the
-     * resource to get the latest fingerprint.
-     * 
- * - * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The labelFingerprint. - */ - public java.lang.String getLabelFingerprint() { - java.lang.Object ref = labelFingerprint_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - labelFingerprint_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The fingerprint of the previous set of labels for this resource,
-     * used to detect conflicts. The fingerprint is initially generated by
-     * Kubernetes Engine and changes after every request to modify or update
-     * labels. You must always provide an up-to-date fingerprint hash when
-     * updating or changing labels. Make a `get()` request to the
-     * resource to get the latest fingerprint.
-     * 
- * - * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for labelFingerprint. - */ - public com.google.protobuf.ByteString - getLabelFingerprintBytes() { - java.lang.Object ref = labelFingerprint_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - labelFingerprint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The fingerprint of the previous set of labels for this resource,
-     * used to detect conflicts. The fingerprint is initially generated by
-     * Kubernetes Engine and changes after every request to modify or update
-     * labels. You must always provide an up-to-date fingerprint hash when
-     * updating or changing labels. Make a `get()` request to the
-     * resource to get the latest fingerprint.
-     * 
- * - * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param value The labelFingerprint to set. - * @return This builder for chaining. - */ - public Builder setLabelFingerprint( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - labelFingerprint_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. The fingerprint of the previous set of labels for this resource,
-     * used to detect conflicts. The fingerprint is initially generated by
-     * Kubernetes Engine and changes after every request to modify or update
-     * labels. You must always provide an up-to-date fingerprint hash when
-     * updating or changing labels. Make a `get()` request to the
-     * resource to get the latest fingerprint.
-     * 
- * - * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearLabelFingerprint() { - - labelFingerprint_ = getDefaultInstance().getLabelFingerprint(); - onChanged(); - return this; - } - /** - *
-     * Required. The fingerprint of the previous set of labels for this resource,
-     * used to detect conflicts. The fingerprint is initially generated by
-     * Kubernetes Engine and changes after every request to modify or update
-     * labels. You must always provide an up-to-date fingerprint hash when
-     * updating or changing labels. Make a `get()` request to the
-     * resource to get the latest fingerprint.
-     * 
- * - * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for labelFingerprint to set. - * @return This builder for chaining. - */ - public Builder setLabelFingerprintBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - labelFingerprint_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster 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; - 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(); - 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; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 6702d6d741cb..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java +++ /dev/null @@ -1,201 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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=3494 - * @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=3494 - * @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=3500 - * @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=3500 - * @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=3504 - * @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=3504 - * @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 deleted file mode 100644 index c5989784fe1d..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java +++ /dev/null @@ -1,1243 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - 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=3528 - * @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=3528 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3534 - * @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=3534 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * 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=3538 - * @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=3538 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ENABLED_FIELD_NUMBER = 4; - private boolean enabled_; - /** - *
-   * Required. Whether ABAC authorization will be enabled in the cluster.
-   * 
- * - * bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - public static final int NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster 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(); - 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); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.enabled_ = enabled_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 32: { - enabled_ = input.readBool(); - - break; - } // case 32 - case 50: { - name_ = input.readStringRequireUtf8(); - - 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 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=3528 - * @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=3528 - * @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=3528 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/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=3528 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - 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=3528 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3534 - * @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=3534 - * @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=3534 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3534 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - 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=3534 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * 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=3538 - * @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=3538 - * @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=3538 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * 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=3538 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. - * See google/container/v1/cluster_service.proto;l=3538 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private boolean enabled_ ; - /** - *
-     * Required. Whether ABAC authorization will be enabled in the cluster.
-     * 
- * - * bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Required. Whether ABAC authorization will be enabled in the cluster.
-     * 
- * - * bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Whether ABAC authorization will be enabled in the cluster.
-     * 
- * - * bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster 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; - 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(); - 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; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 489a19e76b73..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java +++ /dev/null @@ -1,125 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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=3528 - * @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=3528 - * @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=3534 - * @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=3534 - * @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=3538 - * @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=3538 - * @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 deleted file mode 100644 index fb8272e537e7..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java +++ /dev/null @@ -1,1465 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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.EMPTY; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SetLocationsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - 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=2425 - * @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=2425 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2431 - * @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=2431 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * Deprecated. 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=2435 - * @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=2435 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOCATIONS_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList locations_; - /** - *
-   * Required. The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located. Changing the locations a cluster is in
-   * will result in nodes being either created or removed from the cluster,
-   * depending on whether locations are being added or removed.
-   * This list must always include the cluster's primary zone.
-   * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return A list containing the locations. - */ - public com.google.protobuf.ProtocolStringList - getLocationsList() { - return locations_; - } - /** - *
-   * Required. The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located. Changing the locations a cluster is in
-   * will result in nodes being either created or removed from the cluster,
-   * depending on whether locations are being added or removed.
-   * This list must always include the cluster's primary zone.
-   * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The count of locations. - */ - public int getLocationsCount() { - return locations_.size(); - } - /** - *
-   * Required. The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located. Changing the locations a cluster is in
-   * will result in nodes being either created or removed from the cluster,
-   * depending on whether locations are being added or removed.
-   * This list must always include the cluster's primary zone.
-   * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index of the element to return. - * @return The locations at the given index. - */ - public java.lang.String getLocations(int index) { - return locations_.get(index); - } - /** - *
-   * Required. The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located. Changing the locations a cluster is in
-   * will result in nodes being either created or removed from the cluster,
-   * depending on whether locations are being added or removed.
-   * This list must always include the cluster's primary zone.
-   * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index of the value to return. - * @return The bytes of the locations at the given index. - */ - public com.google.protobuf.ByteString - getLocationsBytes(int index) { - return locations_.getByteString(index); - } - - public static final int NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster) of the cluster to set locations.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project, location, cluster) of the cluster to set locations.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - projectId_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.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); - int from_bitField0_ = bitField0_; - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - if (((bitField0_ & 0x00000001) != 0)) { - locations_ = locations_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.locations_ = locations_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.locations_.isEmpty()) { - if (locations_.isEmpty()) { - locations_ = other.locations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLocationsIsMutable(); - locations_.addAll(other.locations_); - } - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - ensureLocationsIsMutable(); - locations_.add(s); - break; - } // case 34 - case 50: { - name_ = input.readStringRequireUtf8(); - - 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=2425 - * @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=2425 - * @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=2425 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/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=2425 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - 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=2425 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2431 - * @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=2431 - * @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=2431 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2431 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - 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=2431 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * Deprecated. 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=2435 - * @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=2435 - * @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=2435 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. 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=2435 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. - * See google/container/v1/cluster_service.proto;l=2435 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureLocationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - locations_ = new com.google.protobuf.LazyStringArrayList(locations_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * Required. The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located. Changing the locations a cluster is in
-     * will result in nodes being either created or removed from the cluster,
-     * depending on whether locations are being added or removed.
-     * This list must always include the cluster's primary zone.
-     * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return A list containing the locations. - */ - public com.google.protobuf.ProtocolStringList - getLocationsList() { - return locations_.getUnmodifiableView(); - } - /** - *
-     * Required. The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located. Changing the locations a cluster is in
-     * will result in nodes being either created or removed from the cluster,
-     * depending on whether locations are being added or removed.
-     * This list must always include the cluster's primary zone.
-     * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The count of locations. - */ - public int getLocationsCount() { - return locations_.size(); - } - /** - *
-     * Required. The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located. Changing the locations a cluster is in
-     * will result in nodes being either created or removed from the cluster,
-     * depending on whether locations are being added or removed.
-     * This list must always include the cluster's primary zone.
-     * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index of the element to return. - * @return The locations at the given index. - */ - public java.lang.String getLocations(int index) { - return locations_.get(index); - } - /** - *
-     * Required. The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located. Changing the locations a cluster is in
-     * will result in nodes being either created or removed from the cluster,
-     * depending on whether locations are being added or removed.
-     * This list must always include the cluster's primary zone.
-     * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index of the value to return. - * @return The bytes of the locations at the given index. - */ - public com.google.protobuf.ByteString - getLocationsBytes(int index) { - return locations_.getByteString(index); - } - /** - *
-     * Required. The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located. Changing the locations a cluster is in
-     * will result in nodes being either created or removed from the cluster,
-     * depending on whether locations are being added or removed.
-     * This list must always include the cluster's primary zone.
-     * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index to set the value at. - * @param value The locations to set. - * @return This builder for chaining. - */ - public Builder setLocations( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); - locations_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * Required. The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located. Changing the locations a cluster is in
-     * will result in nodes being either created or removed from the cluster,
-     * depending on whether locations are being added or removed.
-     * This list must always include the cluster's primary zone.
-     * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param value The locations to add. - * @return This builder for chaining. - */ - public Builder addLocations( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); - locations_.add(value); - onChanged(); - return this; - } - /** - *
-     * Required. The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located. Changing the locations a cluster is in
-     * will result in nodes being either created or removed from the cluster,
-     * depending on whether locations are being added or removed.
-     * This list must always include the cluster's primary zone.
-     * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param values The locations to add. - * @return This builder for chaining. - */ - public Builder addAllLocations( - java.lang.Iterable values) { - ensureLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, locations_); - onChanged(); - return this; - } - /** - *
-     * Required. The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located. Changing the locations a cluster is in
-     * will result in nodes being either created or removed from the cluster,
-     * depending on whether locations are being added or removed.
-     * This list must always include the cluster's primary zone.
-     * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearLocations() { - locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located. Changing the locations a cluster is in
-     * will result in nodes being either created or removed from the cluster,
-     * depending on whether locations are being added or removed.
-     * This list must always include the cluster's primary zone.
-     * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes of the locations to add. - * @return This builder for chaining. - */ - public Builder addLocationsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureLocationsIsMutable(); - locations_.add(value); - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster) of the cluster to set locations.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name (project, location, cluster) of the cluster to set locations.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name (project, location, cluster) of the cluster to set locations.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster) of the cluster to set locations.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster) of the cluster to set locations.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index f186427f6cd1..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java +++ /dev/null @@ -1,176 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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=2425 - * @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=2425 - * @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=2431 - * @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=2431 - * @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=2435 - * @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=2435 - * @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 deleted file mode 100644 index 94bde1a3183b..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java +++ /dev/null @@ -1,1381 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - 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=2329 - * @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=2329 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2335 - * @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=2335 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * Deprecated. 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=2339 - * @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=2339 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOGGING_SERVICE_FIELD_NUMBER = 4; - private volatile java.lang.Object loggingService_; - /** - *
-   * Required. The logging service the cluster should use to write logs.
-   * Currently available options:
-   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-   * service with a Kubernetes-native resource model
-   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-   *   available as of GKE 1.15).
-   * * `none` - no logs will be exported from the cluster.
-   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-   * 
- * - * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The loggingService. - */ - @java.lang.Override - public java.lang.String getLoggingService() { - java.lang.Object ref = loggingService_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - loggingService_ = s; - return s; - } - } - /** - *
-   * Required. The logging service the cluster should use to write logs.
-   * Currently available options:
-   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-   * service with a Kubernetes-native resource model
-   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-   *   available as of GKE 1.15).
-   * * `none` - no logs will be exported from the cluster.
-   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-   * 
- * - * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for loggingService. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getLoggingServiceBytes() { - java.lang.Object ref = loggingService_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - loggingService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 5; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster) of the cluster to set logging.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 5; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project, location, cluster) of the cluster to set logging.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 5; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - 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); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.loggingService_ = loggingService_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getLoggingService().isEmpty()) { - loggingService_ = other.loggingService_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - loggingService_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - name_ = input.readStringRequireUtf8(); - - 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 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=2329 - * @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=2329 - * @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=2329 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/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=2329 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - 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=2329 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2335 - * @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=2335 - * @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=2335 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2335 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - 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=2335 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * Deprecated. 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=2339 - * @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=2339 - * @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=2339 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. 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=2339 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. - * See google/container/v1/cluster_service.proto;l=2339 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object loggingService_ = ""; - /** - *
-     * Required. The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The loggingService. - */ - public java.lang.String getLoggingService() { - java.lang.Object ref = loggingService_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - loggingService_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for loggingService. - */ - public com.google.protobuf.ByteString - getLoggingServiceBytes() { - java.lang.Object ref = loggingService_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - loggingService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param value The loggingService to set. - * @return This builder for chaining. - */ - public Builder setLoggingService( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - loggingService_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearLoggingService() { - - loggingService_ = getDefaultInstance().getLoggingService(); - onChanged(); - return this; - } - /** - *
-     * Required. The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for loggingService to set. - * @return This builder for chaining. - */ - public Builder setLoggingServiceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - loggingService_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster) of the cluster to set logging.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name (project, location, cluster) of the cluster to set logging.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name (project, location, cluster) of the cluster to set logging.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster) of the cluster to set logging.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster) of the cluster to set logging.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index 83a22a58b948..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java +++ /dev/null @@ -1,151 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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=2329 - * @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=2329 - * @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=2335 - * @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=2335 - * @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=2339 - * @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=2339 - * @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 deleted file mode 100644 index 6b63bdd5f149..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequest.java +++ /dev/null @@ -1,1346 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Required. The Google Developers Console [project ID or project
-   * number](https://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; - private volatile java.lang.Object zone_; - /** - *
-   * Required. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides.
-   * 
- * - * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The zone. - */ - @java.lang.Override - public java.lang.String getZone() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - zone_ = s; - return s; - } - } - /** - *
-   * Required. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides.
-   * 
- * - * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for zone. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * Required. The name of the cluster to update.
-   * 
- * - * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The clusterId. - */ - @java.lang.Override - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } - } - /** - *
-   * Required. The name of the cluster to update.
-   * 
- * - * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for clusterId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MAINTENANCE_POLICY_FIELD_NUMBER = 4; - private com.google.container.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 maintenancePolicy_ != null; - } - /** - *
-   * 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 getMaintenancePolicy(); - } - - public static final int NAME_FIELD_NUMBER = 5; - 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 (maintenancePolicy_ != null) { - 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 (maintenancePolicy_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - if (maintenancePolicyBuilder_ == null) { - maintenancePolicy_ = null; - } else { - maintenancePolicy_ = null; - maintenancePolicyBuilder_ = null; - } - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.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); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - if (maintenancePolicyBuilder_ == null) { - result.maintenancePolicy_ = maintenancePolicy_; - } else { - result.maintenancePolicy_ = maintenancePolicyBuilder_.build(); - } - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (other.hasMaintenancePolicy()) { - mergeMaintenancePolicy(other.getMaintenancePolicy()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - input.readMessage( - getMaintenancePolicyFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 34 - case 42: { - name_ = input.readStringRequireUtf8(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Required. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides.
-     * 
- * - * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The zone. - */ - public java.lang.String getZone() { - java.lang.Object ref = zone_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - zone_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides.
-     * 
- * - * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for zone. - */ - public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides.
-     * 
- * - * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The zone to set. - * @return This builder for chaining. - */ - public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides.
-     * 
- * - * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides.
-     * 
- * - * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * Required. The name of the cluster to update.
-     * 
- * - * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The clusterId. - */ - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the cluster to update.
-     * 
- * - * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for clusterId. - */ - public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the cluster to update.
-     * 
- * - * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param value The clusterId to set. - * @return This builder for chaining. - */ - public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the cluster to update.
-     * 
- * - * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the cluster to update.
-     * 
- * - * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private com.google.container.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 maintenancePolicyBuilder_ != null || maintenancePolicy_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - maintenancePolicyBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Required. The maintenance policy to be set for the cluster. An empty field
-     * clears the existing maintenance policy.
-     * 
- * - * .google.container.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(); - onChanged(); - } else { - maintenancePolicyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Required. The maintenance policy to be set for the cluster. An empty field
-     * clears the existing maintenance policy.
-     * 
- * - * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeMaintenancePolicy(com.google.container.v1.MaintenancePolicy value) { - if (maintenancePolicyBuilder_ == null) { - if (maintenancePolicy_ != null) { - maintenancePolicy_ = - com.google.container.v1.MaintenancePolicy.newBuilder(maintenancePolicy_).mergeFrom(value).buildPartial(); - } else { - maintenancePolicy_ = value; - } - onChanged(); - } else { - maintenancePolicyBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Required. The maintenance policy to be set for the cluster. An empty field
-     * clears the existing maintenance policy.
-     * 
- * - * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearMaintenancePolicy() { - if (maintenancePolicyBuilder_ == null) { - maintenancePolicy_ = null; - onChanged(); - } else { - maintenancePolicy_ = null; - maintenancePolicyBuilder_ = null; - } - - return this; - } - /** - *
-     * Required. The maintenance policy to be set for the cluster. An empty field
-     * clears the existing maintenance policy.
-     * 
- * - * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.container.v1.MaintenancePolicy.Builder getMaintenancePolicyBuilder() { - - onChanged(); - return getMaintenancePolicyFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The maintenance policy to be set for the cluster. An empty field
-     * clears the existing maintenance policy.
-     * 
- * - * .google.container.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; - 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(); - 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; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 5c93cec78a60..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequestOrBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index 1f807fa4eb90..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java +++ /dev/null @@ -1,1681 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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) - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/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=2508 - * @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=2508 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2514 - * @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=2514 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * Deprecated. 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=2518 - * @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=2518 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ACTION_FIELD_NUMBER = 4; - private int action_; - /** - *
-   * Required. The exact form of action to be taken on the master auth.
-   * 
- * - * .google.container.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() { - @SuppressWarnings("deprecation") - com.google.container.v1.SetMasterAuthRequest.Action result = com.google.container.v1.SetMasterAuthRequest.Action.valueOf(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 update_ != null; - } - /** - *
-   * 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 getUpdate(); - } - - public static final int NAME_FIELD_NUMBER = 7; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster) of the cluster to set auth.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 7; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project, location, cluster) of the cluster to set auth.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 7; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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 (update_ != null) { - 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 (update_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - action_ = 0; - - if (updateBuilder_ == null) { - update_ = null; - } else { - update_ = null; - updateBuilder_ = null; - } - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.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); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.action_ = action_; - if (updateBuilder_ == null) { - result.update_ = update_; - } else { - result.update_ = updateBuilder_.build(); - } - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (other.action_ != 0) { - setActionValue(other.getActionValue()); - } - if (other.hasUpdate()) { - mergeUpdate(other.getUpdate()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 32: { - action_ = input.readEnum(); - - break; - } // case 32 - case 42: { - input.readMessage( - getUpdateFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 42 - case 58: { - name_ = input.readStringRequireUtf8(); - - 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 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=2508 - * @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=2508 - * @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=2508 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/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=2508 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - 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=2508 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2514 - * @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=2514 - * @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=2514 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2514 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - 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=2514 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * Deprecated. 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=2518 - * @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=2518 - * @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=2518 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. 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=2518 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. - * See google/container/v1/cluster_service.proto;l=2518 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private int action_ = 0; - /** - *
-     * Required. The exact form of action to be taken on the master auth.
-     * 
- * - * .google.container.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; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1.SetMasterAuthRequest.Action result = com.google.container.v1.SetMasterAuthRequest.Action.valueOf(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(); - } - - 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() { - - 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 updateBuilder_ != null || update_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - updateBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - updateBuilder_.setMessage(builderForValue.build()); - } - - 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 (update_ != null) { - update_ = - com.google.container.v1.MasterAuth.newBuilder(update_).mergeFrom(value).buildPartial(); - } else { - update_ = value; - } - onChanged(); - } else { - updateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearUpdate() { - if (updateBuilder_ == null) { - update_ = null; - onChanged(); - } else { - update_ = null; - updateBuilder_ = null; - } - - return this; - } - /** - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.container.v1.MasterAuth.Builder getUpdateBuilder() { - - 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; - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster) of the cluster to set auth.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster) of the cluster to set auth.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index 2634017d1523..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java +++ /dev/null @@ -1,161 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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=2508 - * @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=2508 - * @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=2514 - * @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=2514 - * @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=2518 - * @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=2518 - * @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 deleted file mode 100644 index 3246a2a28023..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java +++ /dev/null @@ -1,1381 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - 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=2364 - * @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=2364 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2370 - * @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=2370 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * Deprecated. 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=2374 - * @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=2374 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MONITORING_SERVICE_FIELD_NUMBER = 4; - private volatile java.lang.Object monitoringService_; - /** - *
-   * Required. The monitoring service the cluster should use to write metrics.
-   * Currently available options:
-   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-   * service with a Kubernetes-native resource model
-   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-   *   longer available as of GKE 1.15).
-   * * `none` - No metrics will be exported from the cluster.
-   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-   * 
- * - * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The monitoringService. - */ - @java.lang.Override - public java.lang.String getMonitoringService() { - java.lang.Object ref = monitoringService_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - monitoringService_ = s; - return s; - } - } - /** - *
-   * Required. The monitoring service the cluster should use to write metrics.
-   * Currently available options:
-   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-   * service with a Kubernetes-native resource model
-   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-   *   longer available as of GKE 1.15).
-   * * `none` - No metrics will be exported from the cluster.
-   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-   * 
- * - * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for monitoringService. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMonitoringServiceBytes() { - java.lang.Object ref = monitoringService_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - monitoringService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster) of the cluster to set monitoring.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project, location, cluster) of the cluster to set monitoring.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - 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); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.monitoringService_ = monitoringService_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getMonitoringService().isEmpty()) { - monitoringService_ = other.monitoringService_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - monitoringService_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 50: { - name_ = input.readStringRequireUtf8(); - - 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 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=2364 - * @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=2364 - * @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=2364 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/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=2364 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - 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=2364 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2370 - * @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=2370 - * @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=2370 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2370 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - 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=2370 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * Deprecated. 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=2374 - * @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=2374 - * @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=2374 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. 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=2374 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. - * See google/container/v1/cluster_service.proto;l=2374 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object monitoringService_ = ""; - /** - *
-     * Required. The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The monitoringService. - */ - public java.lang.String getMonitoringService() { - java.lang.Object ref = monitoringService_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - monitoringService_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for monitoringService. - */ - public com.google.protobuf.ByteString - getMonitoringServiceBytes() { - java.lang.Object ref = monitoringService_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - monitoringService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param value The monitoringService to set. - * @return This builder for chaining. - */ - public Builder setMonitoringService( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - monitoringService_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearMonitoringService() { - - monitoringService_ = getDefaultInstance().getMonitoringService(); - onChanged(); - return this; - } - /** - *
-     * Required. The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for monitoringService to set. - * @return This builder for chaining. - */ - public Builder setMonitoringServiceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - monitoringService_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster) of the cluster to set monitoring.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name (project, location, cluster) of the cluster to set monitoring.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name (project, location, cluster) of the cluster to set monitoring.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster) of the cluster to set monitoring.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster) of the cluster to set monitoring.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index b662e010a68f..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java +++ /dev/null @@ -1,151 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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=2364 - * @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=2364 - * @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=2370 - * @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=2370 - * @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=2374 - * @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=2374 - * @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 deleted file mode 100644 index 723d0d17a038..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java +++ /dev/null @@ -1,1390 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/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=3663 - * @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=3663 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3669 - * @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=3669 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * 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=3673 - * @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=3673 - * @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 networkPolicy_ != null; - } - /** - *
-   * 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 getNetworkPolicy(); - } - - public static final int NAME_FIELD_NUMBER = 6; - 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 (networkPolicy_ != null) { - 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 (networkPolicy_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - if (networkPolicyBuilder_ == null) { - networkPolicy_ = null; - } else { - networkPolicy_ = null; - networkPolicyBuilder_ = null; - } - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.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); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - if (networkPolicyBuilder_ == null) { - result.networkPolicy_ = networkPolicy_; - } else { - result.networkPolicy_ = networkPolicyBuilder_.build(); - } - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (other.hasNetworkPolicy()) { - mergeNetworkPolicy(other.getNetworkPolicy()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - input.readMessage( - getNetworkPolicyFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 34 - case 50: { - name_ = input.readStringRequireUtf8(); - - 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 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=3663 - * @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=3663 - * @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=3663 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/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=3663 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - 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=3663 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3669 - * @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=3669 - * @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=3669 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3669 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - 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=3669 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * 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=3673 - * @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=3673 - * @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=3673 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * 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=3673 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. - * See google/container/v1/cluster_service.proto;l=3673 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private com.google.container.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 networkPolicyBuilder_ != null || networkPolicy_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - networkPolicyBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - networkPolicyBuilder_.setMessage(builderForValue.build()); - } - - 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 (networkPolicy_ != null) { - networkPolicy_ = - com.google.container.v1.NetworkPolicy.newBuilder(networkPolicy_).mergeFrom(value).buildPartial(); - } else { - networkPolicy_ = value; - } - onChanged(); - } else { - networkPolicyBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Required. Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearNetworkPolicy() { - if (networkPolicyBuilder_ == null) { - networkPolicy_ = null; - onChanged(); - } else { - networkPolicy_ = null; - networkPolicyBuilder_ = null; - } - - return this; - } - /** - *
-     * Required. Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.container.v1.NetworkPolicy.Builder getNetworkPolicyBuilder() { - - 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; - 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(); - 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; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index eeb21b0e0db3..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java +++ /dev/null @@ -1,142 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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=3663 - * @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=3663 - * @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=3669 - * @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=3669 - * @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=3673 - * @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=3673 - * @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 deleted file mode 100644 index d1c3469e638f..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java +++ /dev/null @@ -1,1583 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/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=2299 - * @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=2299 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2305 - * @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=2305 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * Deprecated. 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=2309 - * @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=2309 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_POOL_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object nodePoolId_; - /** - *
-   * 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=2313 - * @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=2313 - * @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 autoscaling_ != null; - } - /** - *
-   * 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 getAutoscaling(); - } - - public static final int NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster, node pool) of the node pool to set
-   * autoscaler settings. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 6; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project, location, cluster, node pool) of the node pool to set
-   * autoscaler settings. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 6; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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 (autoscaling_ != null) { - 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 (autoscaling_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - nodePoolId_ = ""; - - if (autoscalingBuilder_ == null) { - autoscaling_ = null; - } else { - autoscaling_ = null; - autoscalingBuilder_ = null; - } - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.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); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.nodePoolId_ = nodePoolId_; - if (autoscalingBuilder_ == null) { - result.autoscaling_ = autoscaling_; - } else { - result.autoscaling_ = autoscalingBuilder_.build(); - } - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getNodePoolId().isEmpty()) { - nodePoolId_ = other.nodePoolId_; - onChanged(); - } - if (other.hasAutoscaling()) { - mergeAutoscaling(other.getAutoscaling()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - nodePoolId_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - input.readMessage( - getAutoscalingFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 42 - case 50: { - name_ = input.readStringRequireUtf8(); - - 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 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=2299 - * @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=2299 - * @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=2299 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/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=2299 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - 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=2299 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2305 - * @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=2305 - * @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=2305 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2305 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - 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=2305 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * Deprecated. 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=2309 - * @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=2309 - * @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=2309 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. 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=2309 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1/cluster_service.proto;l=2309 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object nodePoolId_ = ""; - /** - *
-     * 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=2313 - * @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=2313 - * @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=2313 - * @param value The nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setNodePoolId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodePoolId_ = value; - onChanged(); - return this; - } - /** - *
-     * 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=2313 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearNodePoolId() { - - nodePoolId_ = getDefaultInstance().getNodePoolId(); - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the node pool to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=2313 - * @param value The bytes for nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setNodePoolIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodePoolId_ = value; - onChanged(); - return this; - } - - private com.google.container.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 autoscalingBuilder_ != null || autoscaling_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - autoscalingBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - autoscalingBuilder_.setMessage(builderForValue.build()); - } - - 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 (autoscaling_ != null) { - autoscaling_ = - com.google.container.v1.NodePoolAutoscaling.newBuilder(autoscaling_).mergeFrom(value).buildPartial(); - } else { - autoscaling_ = value; - } - onChanged(); - } else { - autoscalingBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Required. Autoscaling configuration for the node pool.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearAutoscaling() { - if (autoscalingBuilder_ == null) { - autoscaling_ = null; - onChanged(); - } else { - autoscaling_ = null; - autoscalingBuilder_ = null; - } - - return this; - } - /** - *
-     * Required. Autoscaling configuration for the node pool.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.container.v1.NodePoolAutoscaling.Builder getAutoscalingBuilder() { - - 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; - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster, node pool) of the node pool to set
-     * autoscaler settings. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster, node pool) of the node pool to set
-     * autoscaler settings. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index f5520c11a2de..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java +++ /dev/null @@ -1,170 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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=2299 - * @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=2299 - * @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=2305 - * @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=2305 - * @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=2309 - * @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=2309 - * @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=2313 - * @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=2313 - * @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 deleted file mode 100644 index 45410a56bd4b..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java +++ /dev/null @@ -1,1585 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/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=3231 - * @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=3231 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3237 - * @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=3237 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * 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=3241 - * @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=3241 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_POOL_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object nodePoolId_; - /** - *
-   * 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=3245 - * @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=3245 - * @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 management_ != null; - } - /** - *
-   * 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 getManagement(); - } - - public static final int NAME_FIELD_NUMBER = 7; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster, node pool id) of the node pool to set
-   * management properties. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 7; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project, location, cluster, node pool id) of the node pool to set
-   * management properties. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 7; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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 (management_ != null) { - 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 (management_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - nodePoolId_ = ""; - - if (managementBuilder_ == null) { - management_ = null; - } else { - management_ = null; - managementBuilder_ = null; - } - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.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); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.nodePoolId_ = nodePoolId_; - if (managementBuilder_ == null) { - result.management_ = management_; - } else { - result.management_ = managementBuilder_.build(); - } - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getNodePoolId().isEmpty()) { - nodePoolId_ = other.nodePoolId_; - onChanged(); - } - if (other.hasManagement()) { - mergeManagement(other.getManagement()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - nodePoolId_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - input.readMessage( - getManagementFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 42 - case 58: { - name_ = input.readStringRequireUtf8(); - - 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 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=3231 - * @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=3231 - * @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=3231 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/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=3231 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - 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=3231 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3237 - * @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=3237 - * @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=3237 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3237 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - 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=3237 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * 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=3241 - * @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=3241 - * @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=3241 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * 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=3241 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. - * See google/container/v1/cluster_service.proto;l=3241 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object nodePoolId_ = ""; - /** - *
-     * 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=3245 - * @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=3245 - * @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=3245 - * @param value The nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setNodePoolId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodePoolId_ = value; - onChanged(); - return this; - } - /** - *
-     * 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=3245 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearNodePoolId() { - - nodePoolId_ = getDefaultInstance().getNodePoolId(); - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the node pool to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=3245 - * @param value The bytes for nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setNodePoolIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodePoolId_ = value; - onChanged(); - return this; - } - - private com.google.container.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 managementBuilder_ != null || management_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - managementBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - managementBuilder_.setMessage(builderForValue.build()); - } - - 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 (management_ != null) { - management_ = - com.google.container.v1.NodeManagement.newBuilder(management_).mergeFrom(value).buildPartial(); - } else { - management_ = value; - } - onChanged(); - } else { - managementBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Required. NodeManagement configuration for the node pool.
-     * 
- * - * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearManagement() { - if (managementBuilder_ == null) { - management_ = null; - onChanged(); - } else { - management_ = null; - managementBuilder_ = null; - } - - return this; - } - /** - *
-     * Required. NodeManagement configuration for the node pool.
-     * 
- * - * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.container.v1.NodeManagement.Builder getManagementBuilder() { - - 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; - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to set
-     * management properties. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 7; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to set
-     * management properties. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 7; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index 84895c72d0a7..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java +++ /dev/null @@ -1,170 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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=3231 - * @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=3231 - * @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=3237 - * @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=3237 - * @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=3241 - * @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=3241 - * @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=3245 - * @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=3245 - * @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 deleted file mode 100644 index 886398dfe98b..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java +++ /dev/null @@ -1,1433 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - 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=3261 - * @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=3261 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3267 - * @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=3267 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * 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=3271 - * @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=3271 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_POOL_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object nodePoolId_; - /** - *
-   * 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=3275 - * @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=3275 - * @return The bytes for nodePoolId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getNodePoolIdBytes() { - java.lang.Object ref = nodePoolId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodePoolId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_COUNT_FIELD_NUMBER = 5; - private int nodeCount_; - /** - *
-   * Required. The desired node count for the pool.
-   * 
- * - * int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The nodeCount. - */ - @java.lang.Override - public int getNodeCount() { - return nodeCount_; - } - - public static final int NAME_FIELD_NUMBER = 7; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster, node pool id) of the node pool to set
-   * size.
-   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 7; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project, location, cluster, node pool id) of the node pool to set
-   * size.
-   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 7; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - 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); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.nodePoolId_ = nodePoolId_; - result.nodeCount_ = nodeCount_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getNodePoolId().isEmpty()) { - nodePoolId_ = other.nodePoolId_; - onChanged(); - } - if (other.getNodeCount() != 0) { - setNodeCount(other.getNodeCount()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - nodePoolId_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 40: { - nodeCount_ = input.readInt32(); - - break; - } // case 40 - case 58: { - name_ = input.readStringRequireUtf8(); - - 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 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=3261 - * @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=3261 - * @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=3261 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/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=3261 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - 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=3261 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3267 - * @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=3267 - * @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=3267 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3267 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - 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=3267 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * 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=3271 - * @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=3271 - * @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=3271 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * 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=3271 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. - * See google/container/v1/cluster_service.proto;l=3271 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object nodePoolId_ = ""; - /** - *
-     * 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=3275 - * @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=3275 - * @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=3275 - * @param value The nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setNodePoolId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodePoolId_ = value; - onChanged(); - return this; - } - /** - *
-     * 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=3275 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearNodePoolId() { - - nodePoolId_ = getDefaultInstance().getNodePoolId(); - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the node pool to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=3275 - * @param value The bytes for nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setNodePoolIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodePoolId_ = value; - onChanged(); - return this; - } - - private int nodeCount_ ; - /** - *
-     * Required. The desired node count for the pool.
-     * 
- * - * int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The nodeCount. - */ - @java.lang.Override - public int getNodeCount() { - return nodeCount_; - } - /** - *
-     * Required. The desired node count for the pool.
-     * 
- * - * int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param value The nodeCount to set. - * @return This builder for chaining. - */ - public Builder setNodeCount(int value) { - - nodeCount_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. The desired node count for the pool.
-     * 
- * - * int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearNodeCount() { - - nodeCount_ = 0; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to set
-     * size.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 7; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to set
-     * size.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 7; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to set
-     * size.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 7; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to set
-     * size.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 7; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to set
-     * size.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 7; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index 989a43d54013..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java +++ /dev/null @@ -1,153 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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=3261 - * @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=3261 - * @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=3267 - * @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=3267 - * @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=3271 - * @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=3271 - * @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=3275 - * @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=3275 - * @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 deleted file mode 100644 index 3f93bd0ae4a4..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedInstanceConfig.java +++ /dev/null @@ -1,599 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * Defines whether the instance has Secure Boot enabled.
-   * Secure Boot helps ensure that the system only runs authentic software by
-   * verifying the digital signature of all boot components, and halting the
-   * boot process if signature verification fails.
-   * 
- * - * bool enable_secure_boot = 1; - * @return The enableSecureBoot. - */ - @java.lang.Override - public boolean getEnableSecureBoot() { - return enableSecureBoot_; - } - - public static final int ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER = 2; - private boolean enableIntegrityMonitoring_; - /** - *
-   * Defines whether the instance has integrity monitoring enabled.
-   * Enables monitoring and attestation of the boot integrity of the instance.
-   * The attestation is performed against the integrity policy baseline. This
-   * baseline is initially derived from the implicitly trusted boot image when
-   * the instance is created.
-   * 
- * - * bool enable_integrity_monitoring = 2; - * @return The enableIntegrityMonitoring. - */ - @java.lang.Override - public boolean getEnableIntegrityMonitoring() { - return enableIntegrityMonitoring_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enableSecureBoot_ != false) { - output.writeBool(1, enableSecureBoot_); - } - if (enableIntegrityMonitoring_ != false) { - output.writeBool(2, enableIntegrityMonitoring_); - } - 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(); - 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); - result.enableSecureBoot_ = enableSecureBoot_; - result.enableIntegrityMonitoring_ = enableIntegrityMonitoring_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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(); - - break; - } // case 8 - case 16: { - enableIntegrityMonitoring_ = input.readBool(); - - 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 boolean enableSecureBoot_ ; - /** - *
-     * Defines whether the instance has Secure Boot enabled.
-     * Secure Boot helps ensure that the system only runs authentic software by
-     * verifying the digital signature of all boot components, and halting the
-     * boot process if signature verification fails.
-     * 
- * - * bool enable_secure_boot = 1; - * @return The enableSecureBoot. - */ - @java.lang.Override - public boolean getEnableSecureBoot() { - return enableSecureBoot_; - } - /** - *
-     * Defines whether the instance has Secure Boot enabled.
-     * Secure Boot helps ensure that the system only runs authentic software by
-     * verifying the digital signature of all boot components, and halting the
-     * boot process if signature verification fails.
-     * 
- * - * bool enable_secure_boot = 1; - * @param value The enableSecureBoot to set. - * @return This builder for chaining. - */ - public Builder setEnableSecureBoot(boolean value) { - - enableSecureBoot_ = value; - onChanged(); - return this; - } - /** - *
-     * Defines whether the instance has Secure Boot enabled.
-     * Secure Boot helps ensure that the system only runs authentic software by
-     * verifying the digital signature of all boot components, and halting the
-     * boot process if signature verification fails.
-     * 
- * - * bool enable_secure_boot = 1; - * @return This builder for chaining. - */ - public Builder clearEnableSecureBoot() { - - enableSecureBoot_ = false; - onChanged(); - return this; - } - - private boolean enableIntegrityMonitoring_ ; - /** - *
-     * Defines whether the instance has integrity monitoring enabled.
-     * Enables monitoring and attestation of the boot integrity of the instance.
-     * The attestation is performed against the integrity policy baseline. This
-     * baseline is initially derived from the implicitly trusted boot image when
-     * the instance is created.
-     * 
- * - * bool enable_integrity_monitoring = 2; - * @return The enableIntegrityMonitoring. - */ - @java.lang.Override - public boolean getEnableIntegrityMonitoring() { - return enableIntegrityMonitoring_; - } - /** - *
-     * Defines whether the instance has integrity monitoring enabled.
-     * Enables monitoring and attestation of the boot integrity of the instance.
-     * The attestation is performed against the integrity policy baseline. This
-     * baseline is initially derived from the implicitly trusted boot image when
-     * the instance is created.
-     * 
- * - * bool enable_integrity_monitoring = 2; - * @param value The enableIntegrityMonitoring to set. - * @return This builder for chaining. - */ - public Builder setEnableIntegrityMonitoring(boolean value) { - - enableIntegrityMonitoring_ = value; - onChanged(); - return this; - } - /** - *
-     * Defines whether the instance has integrity monitoring enabled.
-     * Enables monitoring and attestation of the boot integrity of the instance.
-     * The attestation is performed against the integrity policy baseline. This
-     * baseline is initially derived from the implicitly trusted boot image when
-     * the instance is created.
-     * 
- * - * bool enable_integrity_monitoring = 2; - * @return This builder for chaining. - */ - public Builder clearEnableIntegrityMonitoring() { - - enableIntegrityMonitoring_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index f98b574be7dd..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedInstanceConfigOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index cd0cf19f7bd1..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedNodes.java +++ /dev/null @@ -1,490 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * Configuration of Shielded Nodes feature.
- * 
- * - * Protobuf type {@code google.container.v1.ShieldedNodes} - */ -public final class ShieldedNodes extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.ShieldedNodes) - ShieldedNodesOrBuilder { -private static final long serialVersionUID = 0L; - // Use ShieldedNodes.newBuilder() to construct. - private ShieldedNodes(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ShieldedNodes() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ShieldedNodes(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ShieldedNodes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ShieldedNodes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ShieldedNodes.class, com.google.container.v1.ShieldedNodes.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-   * Whether Shielded Nodes features are enabled on all nodes in this cluster.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - 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(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ShieldedNodes_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ShieldedNodes getDefaultInstanceForType() { - return com.google.container.v1.ShieldedNodes.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ShieldedNodes build() { - com.google.container.v1.ShieldedNodes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ShieldedNodes buildPartial() { - com.google.container.v1.ShieldedNodes result = new com.google.container.v1.ShieldedNodes(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ShieldedNodes) { - return mergeFrom((com.google.container.v1.ShieldedNodes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ShieldedNodes other) { - if (other == com.google.container.v1.ShieldedNodes.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 boolean enabled_ ; - /** - *
-     * Whether Shielded Nodes features are enabled on all nodes in this cluster.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Whether Shielded Nodes features are enabled on all nodes in this cluster.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether Shielded Nodes features are enabled on all nodes in this cluster.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1.ShieldedNodes) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ShieldedNodes) - private static final com.google.container.v1.ShieldedNodes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1.ShieldedNodes(); - } - - public static com.google.container.v1.ShieldedNodes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ShieldedNodes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index efa2231db7fa..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedNodesOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface ShieldedNodesOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ShieldedNodes) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether Shielded Nodes features are enabled on all nodes in this cluster.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/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 deleted file mode 100644 index 1e71e3a71678..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StackType.java +++ /dev/null @@ -1,150 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index de62270a3a5a..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java +++ /dev/null @@ -1,1243 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - 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=3554 - * @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=3554 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3560 - * @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=3560 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * 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=3564 - * @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=3564 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster 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_; - /** - *
-   * 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(); - 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); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.name_ = name_; - result.rotateCredentials_ = rotateCredentials_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.getRotateCredentials() != false) { - setRotateCredentials(other.getRotateCredentials()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 50: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 56: { - rotateCredentials_ = input.readBool(); - - 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 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=3554 - * @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=3554 - * @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=3554 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/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=3554 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - 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=3554 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3560 - * @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=3560 - * @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=3560 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=3560 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - 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=3560 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * 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=3564 - * @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=3564 - * @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=3564 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * 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=3564 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. - * See google/container/v1/cluster_service.proto;l=3564 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster 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; - 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(); - 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; - onChanged(); - return this; - } - - private boolean rotateCredentials_ ; - /** - *
-     * Whether to rotate credentials during IP rotation.
-     * 
- * - * bool rotate_credentials = 7; - * @return The rotateCredentials. - */ - @java.lang.Override - public boolean getRotateCredentials() { - return rotateCredentials_; - } - /** - *
-     * Whether to rotate credentials during IP rotation.
-     * 
- * - * bool rotate_credentials = 7; - * @param value The rotateCredentials to set. - * @return This builder for chaining. - */ - public Builder setRotateCredentials(boolean value) { - - rotateCredentials_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether to rotate credentials during IP rotation.
-     * 
- * - * bool rotate_credentials = 7; - * @return This builder for chaining. - */ - public Builder clearRotateCredentials() { - - rotateCredentials_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index 5e2beb048cd2..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java +++ /dev/null @@ -1,125 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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=3554 - * @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=3554 - * @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=3560 - * @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=3560 - * @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=3564 - * @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=3564 - * @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/StatusCondition.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java deleted file mode 100644 index f5ac89b5ff42..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java +++ /dev/null @@ -1,1062 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * 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=3739 - * @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=3739 - * @return The code. - */ - @java.lang.Override @java.lang.Deprecated public com.google.container.v1.StatusCondition.Code getCode() { - @SuppressWarnings("deprecation") - com.google.container.v1.StatusCondition.Code result = com.google.container.v1.StatusCondition.Code.valueOf(code_); - return result == null ? com.google.container.v1.StatusCondition.Code.UNRECOGNIZED : result; - } - - public static final int MESSAGE_FIELD_NUMBER = 2; - private volatile java.lang.Object message_; - /** - *
-   * Human-friendly representation of the condition
-   * 
- * - * string message = 2; - * @return The message. - */ - @java.lang.Override - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } - } - /** - *
-   * Human-friendly representation of the condition
-   * 
- * - * string message = 2; - * @return The bytes for message. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CANONICAL_CODE_FIELD_NUMBER = 3; - private int canonicalCode_; - /** - *
-   * Canonical code of the condition.
-   * 
- * - * .google.rpc.Code canonical_code = 3; - * @return The enum numeric value on the wire for canonicalCode. - */ - @java.lang.Override public int getCanonicalCodeValue() { - return canonicalCode_; - } - /** - *
-   * Canonical code of the condition.
-   * 
- * - * .google.rpc.Code canonical_code = 3; - * @return The canonicalCode. - */ - @java.lang.Override public com.google.rpc.Code getCanonicalCode() { - @SuppressWarnings("deprecation") - com.google.rpc.Code result = com.google.rpc.Code.valueOf(canonicalCode_); - return result == null ? com.google.rpc.Code.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (code_ != com.google.container.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(); - 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); - result.code_ = code_; - result.message_ = message_; - result.canonicalCode_ = canonicalCode_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - 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(); - - break; - } // case 8 - case 18: { - message_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: { - canonicalCode_ = input.readEnum(); - - 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 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=3739 - * @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=3739 - * @param value The enum numeric value on the wire for code to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setCodeValue(int value) { - - code_ = value; - onChanged(); - return this; - } - /** - *
-     * Machine-friendly representation of the condition
-     * Deprecated. Use canonical_code instead.
-     * 
- * - * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; - * @deprecated google.container.v1.StatusCondition.code is deprecated. - * See google/container/v1/cluster_service.proto;l=3739 - * @return The code. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.container.v1.StatusCondition.Code getCode() { - @SuppressWarnings("deprecation") - com.google.container.v1.StatusCondition.Code result = com.google.container.v1.StatusCondition.Code.valueOf(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=3739 - * @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(); - } - - 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=3739 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearCode() { - - code_ = 0; - onChanged(); - return this; - } - - private java.lang.Object message_ = ""; - /** - *
-     * Human-friendly representation of the condition
-     * 
- * - * string message = 2; - * @return The message. - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Human-friendly representation of the condition
-     * 
- * - * string message = 2; - * @return The bytes for message. - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Human-friendly representation of the condition
-     * 
- * - * string message = 2; - * @param value The message to set. - * @return This builder for chaining. - */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - onChanged(); - return this; - } - /** - *
-     * Human-friendly representation of the condition
-     * 
- * - * string message = 2; - * @return This builder for chaining. - */ - public Builder clearMessage() { - - message_ = getDefaultInstance().getMessage(); - onChanged(); - return this; - } - /** - *
-     * Human-friendly representation of the condition
-     * 
- * - * string message = 2; - * @param value The bytes for message to set. - * @return This builder for chaining. - */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value; - onChanged(); - return this; - } - - private int canonicalCode_ = 0; - /** - *
-     * Canonical code of the condition.
-     * 
- * - * .google.rpc.Code canonical_code = 3; - * @return The enum numeric value on the wire for canonicalCode. - */ - @java.lang.Override public int getCanonicalCodeValue() { - return canonicalCode_; - } - /** - *
-     * Canonical code of the condition.
-     * 
- * - * .google.rpc.Code canonical_code = 3; - * @param value The enum numeric value on the wire for canonicalCode to set. - * @return This builder for chaining. - */ - public Builder setCanonicalCodeValue(int value) { - - canonicalCode_ = value; - onChanged(); - return this; - } - /** - *
-     * Canonical code of the condition.
-     * 
- * - * .google.rpc.Code canonical_code = 3; - * @return The canonicalCode. - */ - @java.lang.Override - public com.google.rpc.Code getCanonicalCode() { - @SuppressWarnings("deprecation") - com.google.rpc.Code result = com.google.rpc.Code.valueOf(canonicalCode_); - return result == null ? com.google.rpc.Code.UNRECOGNIZED : result; - } - /** - *
-     * Canonical code of the condition.
-     * 
- * - * .google.rpc.Code canonical_code = 3; - * @param value The canonicalCode to set. - * @return This builder for chaining. - */ - public Builder setCanonicalCode(com.google.rpc.Code value) { - if (value == null) { - throw new NullPointerException(); - } - - canonicalCode_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Canonical code of the condition.
-     * 
- * - * .google.rpc.Code canonical_code = 3; - * @return This builder for chaining. - */ - public Builder clearCanonicalCode() { - - canonicalCode_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index 741a2ef802f9..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java +++ /dev/null @@ -1,73 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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=3739 - * @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=3739 - * @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 deleted file mode 100644 index 1c65269b996c..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindow.java +++ /dev/null @@ -1,1221 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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 optionsCase_ = 0; - private java.lang.Object options_; - public enum OptionsCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - MAINTENANCE_EXCLUSION_OPTIONS(3), - OPTIONS_NOT_SET(0); - private final int value; - private OptionsCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OptionsCase valueOf(int value) { - return forNumber(value); - } - - public static OptionsCase forNumber(int value) { - switch (value) { - case 3: return MAINTENANCE_EXCLUSION_OPTIONS; - case 0: return OPTIONS_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OptionsCase - getOptionsCase() { - return OptionsCase.forNumber( - optionsCase_); - } - - public static final int MAINTENANCE_EXCLUSION_OPTIONS_FIELD_NUMBER = 3; - /** - *
-   * MaintenanceExclusionOptions provides maintenance exclusion related
-   * options.
-   * 
- * - * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * @return Whether the maintenanceExclusionOptions field is set. - */ - @java.lang.Override - public boolean hasMaintenanceExclusionOptions() { - return optionsCase_ == 3; - } - /** - *
-   * MaintenanceExclusionOptions provides maintenance exclusion related
-   * options.
-   * 
- * - * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * @return The maintenanceExclusionOptions. - */ - @java.lang.Override - public com.google.container.v1.MaintenanceExclusionOptions getMaintenanceExclusionOptions() { - if (optionsCase_ == 3) { - return (com.google.container.v1.MaintenanceExclusionOptions) options_; - } - return com.google.container.v1.MaintenanceExclusionOptions.getDefaultInstance(); - } - /** - *
-   * MaintenanceExclusionOptions provides maintenance exclusion related
-   * options.
-   * 
- * - * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - */ - @java.lang.Override - public com.google.container.v1.MaintenanceExclusionOptionsOrBuilder getMaintenanceExclusionOptionsOrBuilder() { - if (optionsCase_ == 3) { - return (com.google.container.v1.MaintenanceExclusionOptions) options_; - } - return com.google.container.v1.MaintenanceExclusionOptions.getDefaultInstance(); - } - - public static final int START_TIME_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp startTime_; - /** - *
-   * The time that the window first starts.
-   * 
- * - * .google.protobuf.Timestamp start_time = 1; - * @return Whether the startTime field is set. - */ - @java.lang.Override - public boolean hasStartTime() { - return startTime_ != null; - } - /** - *
-   * The time that the window first starts.
-   * 
- * - * .google.protobuf.Timestamp start_time = 1; - * @return The startTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getStartTime() { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; - } - /** - *
-   * The time that the window first starts.
-   * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); - } - - public static final int END_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp endTime_; - /** - *
-   * The time that the window ends. The end time should take place after the
-   * start time.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - * @return Whether the endTime field is set. - */ - @java.lang.Override - public boolean hasEndTime() { - return endTime_ != null; - } - /** - *
-   * The time that the window ends. The end time should take place after the
-   * start time.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - * @return The endTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getEndTime() { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; - } - /** - *
-   * The time that the window ends. The end time should take place after the
-   * start time.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (startTime_ != null) { - output.writeMessage(1, getStartTime()); - } - if (endTime_ != null) { - output.writeMessage(2, getEndTime()); - } - 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 (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getStartTime()); - } - if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); - } - if (optionsCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.container.v1.MaintenanceExclusionOptions) options_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (maintenanceExclusionOptionsBuilder_ != null) { - maintenanceExclusionOptionsBuilder_.clear(); - } - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; - startTimeBuilder_ = null; - } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; - 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 (optionsCase_ == 3) { - if (maintenanceExclusionOptionsBuilder_ == null) { - result.options_ = options_; - } else { - result.options_ = maintenanceExclusionOptionsBuilder_.build(); - } - } - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); - } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); - } - result.optionsCase_ = optionsCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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); - - break; - } // case 10 - case 18: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - - 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 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 startTimeBuilder_ != null || startTime_ != null; - } - /** - *
-     * The time that the window first starts.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - * @return The startTime. - */ - public com.google.protobuf.Timestamp getStartTime() { - if (startTimeBuilder_ == null) { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; - } else { - return startTimeBuilder_.getMessage(); - } - } - /** - *
-     * The time that the window first starts.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public Builder setStartTime(com.google.protobuf.Timestamp value) { - if (startTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - startTime_ = value; - onChanged(); - } else { - startTimeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The time that the window first starts.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (startTimeBuilder_ == null) { - startTime_ = builderForValue.build(); - onChanged(); - } else { - startTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The time that the window first starts.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public Builder mergeStartTime(com.google.protobuf.Timestamp value) { - if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); - } else { - startTime_ = value; - } - onChanged(); - } else { - startTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The time that the window first starts.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; - startTimeBuilder_ = null; - } - - return this; - } - /** - *
-     * The time that the window first starts.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - - onChanged(); - return getStartTimeFieldBuilder().getBuilder(); - } - /** - *
-     * The time that the window first starts.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - if (startTimeBuilder_ != null) { - return startTimeBuilder_.getMessageOrBuilder(); - } else { - return startTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; - } - } - /** - *
-     * The time that the window first starts.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getStartTimeFieldBuilder() { - if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); - startTime_ = null; - } - return startTimeBuilder_; - } - - private com.google.protobuf.Timestamp endTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; - /** - *
-     * The time that the window ends. The end time should take place after the
-     * start time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - * @return Whether the endTime field is set. - */ - public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; - } - /** - *
-     * The time that the window ends. The end time should take place after the
-     * start time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - * @return The endTime. - */ - public com.google.protobuf.Timestamp getEndTime() { - if (endTimeBuilder_ == null) { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; - } else { - return endTimeBuilder_.getMessage(); - } - } - /** - *
-     * The time that the window ends. The end time should take place after the
-     * start time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public Builder setEndTime(com.google.protobuf.Timestamp value) { - if (endTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - endTime_ = value; - onChanged(); - } else { - endTimeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The time that the window ends. The end time should take place after the
-     * start time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (endTimeBuilder_ == null) { - endTime_ = builderForValue.build(); - onChanged(); - } else { - endTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The time that the window ends. The end time should take place after the
-     * start time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public Builder mergeEndTime(com.google.protobuf.Timestamp value) { - if (endTimeBuilder_ == null) { - if (endTime_ != null) { - endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); - } else { - endTime_ = value; - } - onChanged(); - } else { - endTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The time that the window ends. The end time should take place after the
-     * start time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; - endTimeBuilder_ = null; - } - - return this; - } - /** - *
-     * The time that the window ends. The end time should take place after the
-     * start time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - - onChanged(); - return getEndTimeFieldBuilder().getBuilder(); - } - /** - *
-     * The time that the window ends. The end time should take place after the
-     * start time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - if (endTimeBuilder_ != null) { - return endTimeBuilder_.getMessageOrBuilder(); - } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; - } - } - /** - *
-     * The time that the window ends. The end time should take place after the
-     * start time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getEndTimeFieldBuilder() { - if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); - endTime_ = null; - } - return endTimeBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index ad8e8591b31e..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindowOrBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - - public 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 deleted file mode 100644 index 458b8def0ba3..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java +++ /dev/null @@ -1,1390 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/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=2177 - * @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=2177 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2183 - * @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=2183 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * Deprecated. 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=2187 - * @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=2187 - * @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 update_ != null; - } - /** - *
-   * 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 getUpdate(); - } - - public static final int NAME_FIELD_NUMBER = 5; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster) of the cluster to update.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 5; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project, location, cluster) of the cluster to update.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 5; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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 (update_ != null) { - 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 (update_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - if (updateBuilder_ == null) { - update_ = null; - } else { - update_ = null; - updateBuilder_ = null; - } - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.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); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - if (updateBuilder_ == null) { - result.update_ = update_; - } else { - result.update_ = updateBuilder_.build(); - } - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (other.hasUpdate()) { - mergeUpdate(other.getUpdate()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - input.readMessage( - getUpdateFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 34 - case 42: { - name_ = input.readStringRequireUtf8(); - - 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 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=2177 - * @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=2177 - * @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=2177 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/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=2177 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - 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=2177 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2183 - * @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=2183 - * @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=2183 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2183 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - 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=2183 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * Deprecated. 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=2187 - * @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=2187 - * @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=2187 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. 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=2187 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. - * See google/container/v1/cluster_service.proto;l=2187 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private com.google.container.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 updateBuilder_ != null || update_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - updateBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - updateBuilder_.setMessage(builderForValue.build()); - } - - 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 (update_ != null) { - update_ = - com.google.container.v1.ClusterUpdate.newBuilder(update_).mergeFrom(value).buildPartial(); - } else { - update_ = value; - } - onChanged(); - } else { - updateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearUpdate() { - if (updateBuilder_ == null) { - update_ = null; - onChanged(); - } else { - update_ = null; - updateBuilder_ = null; - } - - return this; - } - /** - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.container.v1.ClusterUpdate.Builder getUpdateBuilder() { - - 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; - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster) of the cluster to update.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster) of the cluster to update.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index dc51398ced3d..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java +++ /dev/null @@ -1,142 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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=2177 - * @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=2177 - * @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=2183 - * @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=2183 - * @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=2187 - * @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=2187 - * @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 deleted file mode 100644 index ebddb6b9737b..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java +++ /dev/null @@ -1,1374 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - 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=2456 - * @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=2456 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2462 - * @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=2462 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * Deprecated. 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=2466 - * @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=2466 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MASTER_VERSION_FIELD_NUMBER = 4; - private volatile java.lang.Object masterVersion_; - /** - *
-   * Required. The Kubernetes version to change the master to.
-   * Users may specify either explicit versions offered by Kubernetes Engine or
-   * version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the default Kubernetes version
-   * 
- * - * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The masterVersion. - */ - @java.lang.Override - public java.lang.String getMasterVersion() { - java.lang.Object ref = masterVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - masterVersion_ = s; - return s; - } - } - /** - *
-   * Required. The Kubernetes version to change the master to.
-   * Users may specify either explicit versions offered by Kubernetes Engine or
-   * version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the default Kubernetes version
-   * 
- * - * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for masterVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMasterVersionBytes() { - java.lang.Object ref = masterVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - masterVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 7; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster) of the cluster to update.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 7; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project, location, cluster) of the cluster to update.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 7; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - 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); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.masterVersion_ = masterVersion_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getMasterVersion().isEmpty()) { - masterVersion_ = other.masterVersion_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - masterVersion_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 58: { - name_ = input.readStringRequireUtf8(); - - 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 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=2456 - * @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=2456 - * @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=2456 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/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=2456 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - 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=2456 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2462 - * @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=2462 - * @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=2462 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2462 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - 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=2462 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * Deprecated. 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=2466 - * @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=2466 - * @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=2466 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. 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=2466 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. - * See google/container/v1/cluster_service.proto;l=2466 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object masterVersion_ = ""; - /** - *
-     * Required. The Kubernetes version to change the master to.
-     * Users may specify either explicit versions offered by Kubernetes Engine or
-     * version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the default Kubernetes version
-     * 
- * - * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The masterVersion. - */ - public java.lang.String getMasterVersion() { - java.lang.Object ref = masterVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - masterVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The Kubernetes version to change the master to.
-     * Users may specify either explicit versions offered by Kubernetes Engine or
-     * version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the default Kubernetes version
-     * 
- * - * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for masterVersion. - */ - public com.google.protobuf.ByteString - getMasterVersionBytes() { - java.lang.Object ref = masterVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - masterVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The Kubernetes version to change the master to.
-     * Users may specify either explicit versions offered by Kubernetes Engine or
-     * version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the default Kubernetes version
-     * 
- * - * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param value The masterVersion to set. - * @return This builder for chaining. - */ - public Builder setMasterVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - masterVersion_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. The Kubernetes version to change the master to.
-     * Users may specify either explicit versions offered by Kubernetes Engine or
-     * version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the default Kubernetes version
-     * 
- * - * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearMasterVersion() { - - masterVersion_ = getDefaultInstance().getMasterVersion(); - onChanged(); - return this; - } - /** - *
-     * Required. The Kubernetes version to change the master to.
-     * Users may specify either explicit versions offered by Kubernetes Engine or
-     * version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the default Kubernetes version
-     * 
- * - * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for masterVersion to set. - * @return This builder for chaining. - */ - public Builder setMasterVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - masterVersion_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster) of the cluster to update.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name (project, location, cluster) of the cluster to update.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name (project, location, cluster) of the cluster to update.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster) of the cluster to update.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster) of the cluster to update.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index 992cdfdbd850..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java +++ /dev/null @@ -1,149 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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=2456 - * @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=2456 - * @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=2462 - * @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=2462 - * @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=2466 - * @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=2466 - * @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 deleted file mode 100644 index 78284c5be2c2..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java +++ /dev/null @@ -1,5117 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateNodePoolRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/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=2202 - * @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=2202 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2208 - * @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=2208 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * Deprecated. 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=2212 - * @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=2212 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_POOL_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object nodePoolId_; - /** - *
-   * 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=2216 - * @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=2216 - * @return The bytes for nodePoolId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getNodePoolIdBytes() { - java.lang.Object ref = nodePoolId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodePoolId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_VERSION_FIELD_NUMBER = 5; - private volatile java.lang.Object nodeVersion_; - /** - *
-   * Required. The Kubernetes version to change the nodes to (typically an
-   * upgrade).
-   * Users may specify either explicit versions offered by Kubernetes Engine or
-   * version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the Kubernetes master version
-   * 
- * - * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The nodeVersion. - */ - @java.lang.Override - public java.lang.String getNodeVersion() { - java.lang.Object ref = nodeVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeVersion_ = s; - return s; - } - } - /** - *
-   * Required. The Kubernetes version to change the nodes to (typically an
-   * upgrade).
-   * Users may specify either explicit versions offered by Kubernetes Engine or
-   * version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the Kubernetes master version
-   * 
- * - * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for nodeVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNodeVersionBytes() { - java.lang.Object ref = nodeVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodeVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IMAGE_TYPE_FIELD_NUMBER = 6; - private volatile java.lang.Object imageType_; - /** - *
-   * Required. The desired image type for the node pool.
-   * 
- * - * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return The imageType. - */ - @java.lang.Override - public java.lang.String getImageType() { - java.lang.Object ref = imageType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - imageType_ = s; - return s; - } - } - /** - *
-   * Required. The desired image type for the node pool.
-   * 
- * - * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for imageType. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getImageTypeBytes() { - java.lang.Object ref = imageType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - imageType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 8; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster, node pool) of the node pool to
-   * update. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 8; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project, location, cluster, node pool) of the node pool to
-   * update. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 8; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOCATIONS_FIELD_NUMBER = 13; - private com.google.protobuf.LazyStringList locations_; - /** - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * node pool's nodes should be located. Changing the locations for a node pool
-   * will result in nodes being either created or removed from the node pool,
-   * depending on whether locations are being added or removed.
-   * 
- * - * repeated string locations = 13; - * @return A list containing the locations. - */ - public com.google.protobuf.ProtocolStringList - getLocationsList() { - return locations_; - } - /** - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * node pool's nodes should be located. Changing the locations for a node pool
-   * will result in nodes being either created or removed from the node pool,
-   * depending on whether locations are being added or removed.
-   * 
- * - * repeated string locations = 13; - * @return The count of locations. - */ - public int getLocationsCount() { - return locations_.size(); - } - /** - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * node pool's nodes should be located. Changing the locations for a node pool
-   * will result in nodes being either created or removed from the node pool,
-   * depending on whether locations are being added or removed.
-   * 
- * - * repeated string locations = 13; - * @param index The index of the element to return. - * @return The locations at the given index. - */ - public java.lang.String getLocations(int index) { - return locations_.get(index); - } - /** - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * node pool's nodes should be located. Changing the locations for a node pool
-   * will result in nodes being either created or removed from the node pool,
-   * depending on whether locations are being added or removed.
-   * 
- * - * repeated string locations = 13; - * @param index The index of the value to return. - * @return The bytes of the locations at the given index. - */ - public com.google.protobuf.ByteString - getLocationsBytes(int index) { - return locations_.getByteString(index); - } - - public static final int WORKLOAD_METADATA_CONFIG_FIELD_NUMBER = 14; - private com.google.container.v1.WorkloadMetadataConfig workloadMetadataConfig_; - /** - *
-   * The desired workload metadata config for the node pool.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * @return Whether the workloadMetadataConfig field is set. - */ - @java.lang.Override - public boolean hasWorkloadMetadataConfig() { - return workloadMetadataConfig_ != null; - } - /** - *
-   * The desired workload metadata config for the node pool.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * @return The workloadMetadataConfig. - */ - @java.lang.Override - public com.google.container.v1.WorkloadMetadataConfig getWorkloadMetadataConfig() { - return workloadMetadataConfig_ == null ? com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() : workloadMetadataConfig_; - } - /** - *
-   * The desired workload metadata config for the node pool.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - @java.lang.Override - public com.google.container.v1.WorkloadMetadataConfigOrBuilder getWorkloadMetadataConfigOrBuilder() { - return getWorkloadMetadataConfig(); - } - - public static final int UPGRADE_SETTINGS_FIELD_NUMBER = 15; - private com.google.container.v1.NodePool.UpgradeSettings upgradeSettings_; - /** - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - * @return Whether the upgradeSettings field is set. - */ - @java.lang.Override - public boolean hasUpgradeSettings() { - return upgradeSettings_ != null; - } - /** - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - * @return The upgradeSettings. - */ - @java.lang.Override - public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { - return upgradeSettings_ == null ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() : upgradeSettings_; - } - /** - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - @java.lang.Override - public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { - return getUpgradeSettings(); - } - - 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 tags_ != null; - } - /** - *
-   * 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 getTags(); - } - - 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 taints_ != null; - } - /** - *
-   * 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 getTaints(); - } - - 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 labels_ != null; - } - /** - *
-   * 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 getLabels(); - } - - public static final int LINUX_NODE_CONFIG_FIELD_NUMBER = 19; - private com.google.container.v1.LinuxNodeConfig linuxNodeConfig_; - /** - *
-   * Parameters that can be configured on Linux nodes.
-   * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 19; - * @return Whether the linuxNodeConfig field is set. - */ - @java.lang.Override - public boolean hasLinuxNodeConfig() { - return linuxNodeConfig_ != null; - } - /** - *
-   * Parameters that can be configured on Linux nodes.
-   * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 19; - * @return The linuxNodeConfig. - */ - @java.lang.Override - public com.google.container.v1.LinuxNodeConfig getLinuxNodeConfig() { - return linuxNodeConfig_ == null ? com.google.container.v1.LinuxNodeConfig.getDefaultInstance() : linuxNodeConfig_; - } - /** - *
-   * Parameters that can be configured on Linux nodes.
-   * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 19; - */ - @java.lang.Override - public com.google.container.v1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder() { - return getLinuxNodeConfig(); - } - - public static final int KUBELET_CONFIG_FIELD_NUMBER = 20; - private com.google.container.v1.NodeKubeletConfig kubeletConfig_; - /** - *
-   * Node kubelet configs.
-   * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 20; - * @return Whether the kubeletConfig field is set. - */ - @java.lang.Override - public boolean hasKubeletConfig() { - return kubeletConfig_ != null; - } - /** - *
-   * Node kubelet configs.
-   * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 20; - * @return The kubeletConfig. - */ - @java.lang.Override - public com.google.container.v1.NodeKubeletConfig getKubeletConfig() { - return kubeletConfig_ == null ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() : kubeletConfig_; - } - /** - *
-   * Node kubelet configs.
-   * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 20; - */ - @java.lang.Override - public com.google.container.v1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder() { - return getKubeletConfig(); - } - - public static final int 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 nodeNetworkConfig_ != null; - } - /** - *
-   * 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 getNodeNetworkConfig(); - } - - public static final int GCFS_CONFIG_FIELD_NUMBER = 22; - private com.google.container.v1.GcfsConfig gcfsConfig_; - /** - *
-   * GCFS config.
-   * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 22; - * @return Whether the gcfsConfig field is set. - */ - @java.lang.Override - public boolean hasGcfsConfig() { - return gcfsConfig_ != null; - } - /** - *
-   * GCFS config.
-   * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 22; - * @return The gcfsConfig. - */ - @java.lang.Override - public com.google.container.v1.GcfsConfig getGcfsConfig() { - return gcfsConfig_ == null ? com.google.container.v1.GcfsConfig.getDefaultInstance() : gcfsConfig_; - } - /** - *
-   * GCFS config.
-   * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 22; - */ - @java.lang.Override - public com.google.container.v1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { - return getGcfsConfig(); - } - - public static final int 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 confidentialNodes_ != null; - } - /** - *
-   * 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 getConfidentialNodes(); - } - - public static final int GVNIC_FIELD_NUMBER = 29; - private com.google.container.v1.VirtualNIC gvnic_; - /** - *
-   * Enable or disable gvnic on the node pool.
-   * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - * @return Whether the gvnic field is set. - */ - @java.lang.Override - public boolean hasGvnic() { - return gvnic_ != null; - } - /** - *
-   * Enable or disable gvnic on the node pool.
-   * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - * @return The gvnic. - */ - @java.lang.Override - public com.google.container.v1.VirtualNIC getGvnic() { - return gvnic_ == null ? com.google.container.v1.VirtualNIC.getDefaultInstance() : gvnic_; - } - /** - *
-   * Enable or disable gvnic on the node pool.
-   * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - */ - @java.lang.Override - public com.google.container.v1.VirtualNICOrBuilder getGvnicOrBuilder() { - return getGvnic(); - } - - 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 loggingConfig_ != null; - } - /** - *
-   * 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 getLoggingConfig(); - } - - 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 resourceLabels_ != null; - } - /** - *
-   * 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 getResourceLabels(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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 (workloadMetadataConfig_ != null) { - output.writeMessage(14, getWorkloadMetadataConfig()); - } - if (upgradeSettings_ != null) { - output.writeMessage(15, getUpgradeSettings()); - } - if (tags_ != null) { - output.writeMessage(16, getTags()); - } - if (taints_ != null) { - output.writeMessage(17, getTaints()); - } - if (labels_ != null) { - output.writeMessage(18, getLabels()); - } - if (linuxNodeConfig_ != null) { - output.writeMessage(19, getLinuxNodeConfig()); - } - if (kubeletConfig_ != null) { - output.writeMessage(20, getKubeletConfig()); - } - if (nodeNetworkConfig_ != null) { - output.writeMessage(21, getNodeNetworkConfig()); - } - if (gcfsConfig_ != null) { - output.writeMessage(22, getGcfsConfig()); - } - if (confidentialNodes_ != null) { - output.writeMessage(23, getConfidentialNodes()); - } - if (gvnic_ != null) { - output.writeMessage(29, getGvnic()); - } - if (loggingConfig_ != null) { - output.writeMessage(32, getLoggingConfig()); - } - if (resourceLabels_ != null) { - output.writeMessage(33, getResourceLabels()); - } - getUnknownFields().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 (workloadMetadataConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getWorkloadMetadataConfig()); - } - if (upgradeSettings_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, getUpgradeSettings()); - } - if (tags_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getTags()); - } - if (taints_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getTaints()); - } - if (labels_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, getLabels()); - } - if (linuxNodeConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, getLinuxNodeConfig()); - } - if (kubeletConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, getKubeletConfig()); - } - if (nodeNetworkConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, getNodeNetworkConfig()); - } - if (gcfsConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, getGcfsConfig()); - } - if (confidentialNodes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(23, getConfidentialNodes()); - } - if (gvnic_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(29, getGvnic()); - } - if (loggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(32, getLoggingConfig()); - } - if (resourceLabels_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(33, getResourceLabels()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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 (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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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(); - } - 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(); - } - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - nodePoolId_ = ""; - - nodeVersion_ = ""; - - imageType_ = ""; - - name_ = ""; - - locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (workloadMetadataConfigBuilder_ == null) { - workloadMetadataConfig_ = null; - } else { - workloadMetadataConfig_ = null; - workloadMetadataConfigBuilder_ = null; - } - if (upgradeSettingsBuilder_ == null) { - upgradeSettings_ = null; - } else { - upgradeSettings_ = null; - upgradeSettingsBuilder_ = null; - } - if (tagsBuilder_ == null) { - tags_ = null; - } else { - tags_ = null; - tagsBuilder_ = null; - } - if (taintsBuilder_ == null) { - taints_ = null; - } else { - taints_ = null; - taintsBuilder_ = null; - } - if (labelsBuilder_ == null) { - labels_ = null; - } else { - labels_ = null; - labelsBuilder_ = null; - } - if (linuxNodeConfigBuilder_ == null) { - linuxNodeConfig_ = null; - } else { - linuxNodeConfig_ = null; - linuxNodeConfigBuilder_ = null; - } - if (kubeletConfigBuilder_ == null) { - kubeletConfig_ = null; - } else { - kubeletConfig_ = null; - kubeletConfigBuilder_ = null; - } - if (nodeNetworkConfigBuilder_ == null) { - nodeNetworkConfig_ = null; - } else { - nodeNetworkConfig_ = null; - nodeNetworkConfigBuilder_ = null; - } - if (gcfsConfigBuilder_ == null) { - gcfsConfig_ = null; - } else { - gcfsConfig_ = null; - gcfsConfigBuilder_ = null; - } - if (confidentialNodesBuilder_ == null) { - confidentialNodes_ = null; - } else { - confidentialNodes_ = null; - confidentialNodesBuilder_ = null; - } - if (gvnicBuilder_ == null) { - gvnic_ = null; - } else { - gvnic_ = null; - gvnicBuilder_ = null; - } - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - if (resourceLabelsBuilder_ == null) { - resourceLabels_ = null; - } else { - resourceLabels_ = null; - resourceLabelsBuilder_ = 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); - int from_bitField0_ = bitField0_; - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.nodePoolId_ = nodePoolId_; - result.nodeVersion_ = nodeVersion_; - result.imageType_ = imageType_; - result.name_ = name_; - if (((bitField0_ & 0x00000001) != 0)) { - locations_ = locations_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.locations_ = locations_; - if (workloadMetadataConfigBuilder_ == null) { - result.workloadMetadataConfig_ = workloadMetadataConfig_; - } else { - result.workloadMetadataConfig_ = workloadMetadataConfigBuilder_.build(); - } - if (upgradeSettingsBuilder_ == null) { - result.upgradeSettings_ = upgradeSettings_; - } else { - result.upgradeSettings_ = upgradeSettingsBuilder_.build(); - } - if (tagsBuilder_ == null) { - result.tags_ = tags_; - } else { - result.tags_ = tagsBuilder_.build(); - } - if (taintsBuilder_ == null) { - result.taints_ = taints_; - } else { - result.taints_ = taintsBuilder_.build(); - } - if (labelsBuilder_ == null) { - result.labels_ = labels_; - } else { - result.labels_ = labelsBuilder_.build(); - } - if (linuxNodeConfigBuilder_ == null) { - result.linuxNodeConfig_ = linuxNodeConfig_; - } else { - result.linuxNodeConfig_ = linuxNodeConfigBuilder_.build(); - } - if (kubeletConfigBuilder_ == null) { - result.kubeletConfig_ = kubeletConfig_; - } else { - result.kubeletConfig_ = kubeletConfigBuilder_.build(); - } - if (nodeNetworkConfigBuilder_ == null) { - result.nodeNetworkConfig_ = nodeNetworkConfig_; - } else { - result.nodeNetworkConfig_ = nodeNetworkConfigBuilder_.build(); - } - if (gcfsConfigBuilder_ == null) { - result.gcfsConfig_ = gcfsConfig_; - } else { - result.gcfsConfig_ = gcfsConfigBuilder_.build(); - } - if (confidentialNodesBuilder_ == null) { - result.confidentialNodes_ = confidentialNodes_; - } else { - result.confidentialNodes_ = confidentialNodesBuilder_.build(); - } - if (gvnicBuilder_ == null) { - result.gvnic_ = gvnic_; - } else { - result.gvnic_ = gvnicBuilder_.build(); - } - if (loggingConfigBuilder_ == null) { - result.loggingConfig_ = loggingConfig_; - } else { - result.loggingConfig_ = loggingConfigBuilder_.build(); - } - if (resourceLabelsBuilder_ == null) { - result.resourceLabels_ = resourceLabels_; - } else { - result.resourceLabels_ = resourceLabelsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getNodePoolId().isEmpty()) { - nodePoolId_ = other.nodePoolId_; - onChanged(); - } - if (!other.getNodeVersion().isEmpty()) { - nodeVersion_ = other.nodeVersion_; - onChanged(); - } - if (!other.getImageType().isEmpty()) { - imageType_ = other.imageType_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.locations_.isEmpty()) { - if (locations_.isEmpty()) { - locations_ = other.locations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLocationsIsMutable(); - locations_.addAll(other.locations_); - } - onChanged(); - } - if (other.hasWorkloadMetadataConfig()) { - mergeWorkloadMetadataConfig(other.getWorkloadMetadataConfig()); - } - if (other.hasUpgradeSettings()) { - mergeUpgradeSettings(other.getUpgradeSettings()); - } - 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.hasLoggingConfig()) { - mergeLoggingConfig(other.getLoggingConfig()); - } - if (other.hasResourceLabels()) { - mergeResourceLabels(other.getResourceLabels()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - nodePoolId_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - nodeVersion_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: { - imageType_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 66: { - name_ = input.readStringRequireUtf8(); - - 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); - - break; - } // case 114 - case 122: { - input.readMessage( - getUpgradeSettingsFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 122 - case 130: { - input.readMessage( - getTagsFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 130 - case 138: { - input.readMessage( - getTaintsFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 138 - case 146: { - input.readMessage( - getLabelsFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 146 - case 154: { - input.readMessage( - getLinuxNodeConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 154 - case 162: { - input.readMessage( - getKubeletConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 162 - case 170: { - input.readMessage( - getNodeNetworkConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 170 - case 178: { - input.readMessage( - getGcfsConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 178 - case 186: { - input.readMessage( - getConfidentialNodesFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 186 - case 234: { - input.readMessage( - getGvnicFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 234 - case 258: { - input.readMessage( - getLoggingConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 258 - case 266: { - input.readMessage( - getResourceLabelsFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 266 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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=2202 - * @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=2202 - * @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=2202 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/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=2202 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - 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=2202 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2208 - * @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=2208 - * @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=2208 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in 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=2208 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - 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=2208 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * Deprecated. 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=2212 - * @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=2212 - * @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=2212 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated. 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=2212 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. - * See google/container/v1/cluster_service.proto;l=2212 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object nodePoolId_ = ""; - /** - *
-     * 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=2216 - * @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=2216 - * @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=2216 - * @param value The nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setNodePoolId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodePoolId_ = value; - onChanged(); - return this; - } - /** - *
-     * 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=2216 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearNodePoolId() { - - nodePoolId_ = getDefaultInstance().getNodePoolId(); - onChanged(); - return this; - } - /** - *
-     * Deprecated. The name of the node pool to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=2216 - * @param value The bytes for nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setNodePoolIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodePoolId_ = value; - onChanged(); - return this; - } - - private java.lang.Object nodeVersion_ = ""; - /** - *
-     * Required. The Kubernetes version to change the nodes to (typically an
-     * upgrade).
-     * Users may specify either explicit versions offered by Kubernetes Engine or
-     * version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the Kubernetes master version
-     * 
- * - * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The nodeVersion. - */ - public java.lang.String getNodeVersion() { - java.lang.Object ref = nodeVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The Kubernetes version to change the nodes to (typically an
-     * upgrade).
-     * Users may specify either explicit versions offered by Kubernetes Engine or
-     * version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the Kubernetes master version
-     * 
- * - * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for nodeVersion. - */ - public com.google.protobuf.ByteString - getNodeVersionBytes() { - java.lang.Object ref = nodeVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodeVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The Kubernetes version to change the nodes to (typically an
-     * upgrade).
-     * Users may specify either explicit versions offered by Kubernetes Engine or
-     * version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the Kubernetes master version
-     * 
- * - * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param value The nodeVersion to set. - * @return This builder for chaining. - */ - public Builder setNodeVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodeVersion_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. The Kubernetes version to change the nodes to (typically an
-     * upgrade).
-     * Users may specify either explicit versions offered by Kubernetes Engine or
-     * version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the Kubernetes master version
-     * 
- * - * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearNodeVersion() { - - nodeVersion_ = getDefaultInstance().getNodeVersion(); - onChanged(); - return this; - } - /** - *
-     * Required. The Kubernetes version to change the nodes to (typically an
-     * upgrade).
-     * Users may specify either explicit versions offered by Kubernetes Engine or
-     * version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the Kubernetes master version
-     * 
- * - * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for nodeVersion to set. - * @return This builder for chaining. - */ - public Builder setNodeVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodeVersion_ = value; - onChanged(); - return this; - } - - private java.lang.Object imageType_ = ""; - /** - *
-     * Required. The desired image type for the node pool.
-     * 
- * - * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return The imageType. - */ - public java.lang.String getImageType() { - java.lang.Object ref = imageType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - imageType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The desired image type for the node pool.
-     * 
- * - * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for imageType. - */ - public com.google.protobuf.ByteString - getImageTypeBytes() { - java.lang.Object ref = imageType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - imageType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The desired image type for the node pool.
-     * 
- * - * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param value The imageType to set. - * @return This builder for chaining. - */ - public Builder setImageType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - imageType_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. The desired image type for the node pool.
-     * 
- * - * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearImageType() { - - imageType_ = getDefaultInstance().getImageType(); - onChanged(); - return this; - } - /** - *
-     * Required. The desired image type for the node pool.
-     * 
- * - * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for imageType to set. - * @return This builder for chaining. - */ - public Builder setImageTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - imageType_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster, node pool) of the node pool to
-     * update. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 8; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name (project, location, cluster, node pool) of the node pool to
-     * update. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 8; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name (project, location, cluster, node pool) of the node pool to
-     * update. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 8; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster, node pool) of the node pool to
-     * update. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 8; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster, node pool) of the node pool to
-     * update. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 8; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureLocationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - locations_ = new com.google.protobuf.LazyStringArrayList(locations_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * node pool's nodes should be located. Changing the locations for a node pool
-     * will result in nodes being either created or removed from the node pool,
-     * depending on whether locations are being added or removed.
-     * 
- * - * repeated string locations = 13; - * @return A list containing the locations. - */ - public com.google.protobuf.ProtocolStringList - getLocationsList() { - return locations_.getUnmodifiableView(); - } - /** - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * node pool's nodes should be located. Changing the locations for a node pool
-     * will result in nodes being either created or removed from the node pool,
-     * depending on whether locations are being added or removed.
-     * 
- * - * repeated string locations = 13; - * @return The count of locations. - */ - public int getLocationsCount() { - return locations_.size(); - } - /** - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * node pool's nodes should be located. Changing the locations for a node pool
-     * will result in nodes being either created or removed from the node pool,
-     * depending on whether locations are being added or removed.
-     * 
- * - * repeated string locations = 13; - * @param index The index of the element to return. - * @return The locations at the given index. - */ - public java.lang.String getLocations(int index) { - return locations_.get(index); - } - /** - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * node pool's nodes should be located. Changing the locations for a node pool
-     * will result in nodes being either created or removed from the node pool,
-     * depending on whether locations are being added or removed.
-     * 
- * - * repeated string locations = 13; - * @param index The index of the value to return. - * @return The bytes of the locations at the given index. - */ - public com.google.protobuf.ByteString - getLocationsBytes(int index) { - return locations_.getByteString(index); - } - /** - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * node pool's nodes should be located. Changing the locations for a node pool
-     * will result in nodes being either created or removed from the node pool,
-     * depending on whether locations are being added or removed.
-     * 
- * - * repeated string locations = 13; - * @param index The index to set the value at. - * @param value The locations to set. - * @return This builder for chaining. - */ - public Builder setLocations( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); - locations_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * node pool's nodes should be located. Changing the locations for a node pool
-     * will result in nodes being either created or removed from the node pool,
-     * depending on whether locations are being added or removed.
-     * 
- * - * repeated string locations = 13; - * @param value The locations to add. - * @return This builder for chaining. - */ - public Builder addLocations( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); - locations_.add(value); - onChanged(); - return this; - } - /** - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * node pool's nodes should be located. Changing the locations for a node pool
-     * will result in nodes being either created or removed from the node pool,
-     * depending on whether locations are being added or removed.
-     * 
- * - * repeated string locations = 13; - * @param values The locations to add. - * @return This builder for chaining. - */ - public Builder addAllLocations( - java.lang.Iterable values) { - ensureLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, locations_); - onChanged(); - return this; - } - /** - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * node pool's nodes should be located. Changing the locations for a node pool
-     * will result in nodes being either created or removed from the node pool,
-     * depending on whether locations are being added or removed.
-     * 
- * - * repeated string locations = 13; - * @return This builder for chaining. - */ - public Builder clearLocations() { - locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * node pool's nodes should be located. Changing the locations for a node pool
-     * will result in nodes being either created or removed from the node pool,
-     * depending on whether locations are being added or removed.
-     * 
- * - * repeated string locations = 13; - * @param value The bytes of the locations to add. - * @return This builder for chaining. - */ - public Builder addLocationsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureLocationsIsMutable(); - locations_.add(value); - onChanged(); - return this; - } - - private com.google.container.v1.WorkloadMetadataConfig workloadMetadataConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadMetadataConfig, com.google.container.v1.WorkloadMetadataConfig.Builder, com.google.container.v1.WorkloadMetadataConfigOrBuilder> workloadMetadataConfigBuilder_; - /** - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * @return Whether the workloadMetadataConfig field is set. - */ - public boolean hasWorkloadMetadataConfig() { - return workloadMetadataConfigBuilder_ != null || workloadMetadataConfig_ != null; - } - /** - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * @return The workloadMetadataConfig. - */ - public com.google.container.v1.WorkloadMetadataConfig getWorkloadMetadataConfig() { - if (workloadMetadataConfigBuilder_ == null) { - return workloadMetadataConfig_ == null ? com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() : workloadMetadataConfig_; - } else { - return workloadMetadataConfigBuilder_.getMessage(); - } - } - /** - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public Builder setWorkloadMetadataConfig(com.google.container.v1.WorkloadMetadataConfig value) { - if (workloadMetadataConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workloadMetadataConfig_ = value; - onChanged(); - } else { - workloadMetadataConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public Builder setWorkloadMetadataConfig( - com.google.container.v1.WorkloadMetadataConfig.Builder builderForValue) { - if (workloadMetadataConfigBuilder_ == null) { - workloadMetadataConfig_ = builderForValue.build(); - onChanged(); - } else { - workloadMetadataConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public Builder mergeWorkloadMetadataConfig(com.google.container.v1.WorkloadMetadataConfig value) { - if (workloadMetadataConfigBuilder_ == null) { - if (workloadMetadataConfig_ != null) { - workloadMetadataConfig_ = - com.google.container.v1.WorkloadMetadataConfig.newBuilder(workloadMetadataConfig_).mergeFrom(value).buildPartial(); - } else { - workloadMetadataConfig_ = value; - } - onChanged(); - } else { - workloadMetadataConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public Builder clearWorkloadMetadataConfig() { - if (workloadMetadataConfigBuilder_ == null) { - workloadMetadataConfig_ = null; - onChanged(); - } else { - workloadMetadataConfig_ = null; - workloadMetadataConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public com.google.container.v1.WorkloadMetadataConfig.Builder getWorkloadMetadataConfigBuilder() { - - onChanged(); - return getWorkloadMetadataConfigFieldBuilder().getBuilder(); - } - /** - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public com.google.container.v1.WorkloadMetadataConfigOrBuilder getWorkloadMetadataConfigOrBuilder() { - if (workloadMetadataConfigBuilder_ != null) { - return workloadMetadataConfigBuilder_.getMessageOrBuilder(); - } else { - return workloadMetadataConfig_ == null ? - com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() : workloadMetadataConfig_; - } - } - /** - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadMetadataConfig, com.google.container.v1.WorkloadMetadataConfig.Builder, com.google.container.v1.WorkloadMetadataConfigOrBuilder> - getWorkloadMetadataConfigFieldBuilder() { - if (workloadMetadataConfigBuilder_ == null) { - workloadMetadataConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadMetadataConfig, com.google.container.v1.WorkloadMetadataConfig.Builder, com.google.container.v1.WorkloadMetadataConfigOrBuilder>( - getWorkloadMetadataConfig(), - getParentForChildren(), - isClean()); - workloadMetadataConfig_ = null; - } - return workloadMetadataConfigBuilder_; - } - - private com.google.container.v1.NodePool.UpgradeSettings upgradeSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.UpgradeSettings, com.google.container.v1.NodePool.UpgradeSettings.Builder, com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> upgradeSettingsBuilder_; - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - * @return Whether the upgradeSettings field is set. - */ - public boolean hasUpgradeSettings() { - return upgradeSettingsBuilder_ != null || upgradeSettings_ != null; - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - * @return The upgradeSettings. - */ - public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { - if (upgradeSettingsBuilder_ == null) { - return upgradeSettings_ == null ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() : upgradeSettings_; - } else { - return upgradeSettingsBuilder_.getMessage(); - } - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - public Builder setUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { - if (upgradeSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - upgradeSettings_ = value; - onChanged(); - } else { - upgradeSettingsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - public Builder setUpgradeSettings( - com.google.container.v1.NodePool.UpgradeSettings.Builder builderForValue) { - if (upgradeSettingsBuilder_ == null) { - upgradeSettings_ = builderForValue.build(); - onChanged(); - } else { - upgradeSettingsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - public Builder mergeUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { - if (upgradeSettingsBuilder_ == null) { - if (upgradeSettings_ != null) { - upgradeSettings_ = - com.google.container.v1.NodePool.UpgradeSettings.newBuilder(upgradeSettings_).mergeFrom(value).buildPartial(); - } else { - upgradeSettings_ = value; - } - onChanged(); - } else { - upgradeSettingsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - public Builder clearUpgradeSettings() { - if (upgradeSettingsBuilder_ == null) { - upgradeSettings_ = null; - onChanged(); - } else { - upgradeSettings_ = null; - upgradeSettingsBuilder_ = null; - } - - return this; - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - public com.google.container.v1.NodePool.UpgradeSettings.Builder getUpgradeSettingsBuilder() { - - onChanged(); - return getUpgradeSettingsFieldBuilder().getBuilder(); - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { - if (upgradeSettingsBuilder_ != null) { - return upgradeSettingsBuilder_.getMessageOrBuilder(); - } else { - return upgradeSettings_ == null ? - com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() : upgradeSettings_; - } - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.UpgradeSettings, com.google.container.v1.NodePool.UpgradeSettings.Builder, com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> - getUpgradeSettingsFieldBuilder() { - if (upgradeSettingsBuilder_ == null) { - upgradeSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.UpgradeSettings, com.google.container.v1.NodePool.UpgradeSettings.Builder, com.google.container.v1.NodePool.UpgradeSettingsOrBuilder>( - getUpgradeSettings(), - getParentForChildren(), - isClean()); - upgradeSettings_ = null; - } - return upgradeSettingsBuilder_; - } - - 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 tagsBuilder_ != null || tags_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - tagsBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - tagsBuilder_.setMessage(builderForValue.build()); - } - - 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 (tags_ != null) { - tags_ = - com.google.container.v1.NetworkTags.newBuilder(tags_).mergeFrom(value).buildPartial(); - } else { - tags_ = value; - } - onChanged(); - } else { - tagsBuilder_.mergeFrom(value); - } - - 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() { - if (tagsBuilder_ == null) { - tags_ = null; - onChanged(); - } else { - tags_ = null; - tagsBuilder_ = null; - } - - 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() { - - 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 taintsBuilder_ != null || taints_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - taintsBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - taintsBuilder_.setMessage(builderForValue.build()); - } - - 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 (taints_ != null) { - taints_ = - com.google.container.v1.NodeTaints.newBuilder(taints_).mergeFrom(value).buildPartial(); - } else { - taints_ = value; - } - onChanged(); - } else { - taintsBuilder_.mergeFrom(value); - } - - 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() { - if (taintsBuilder_ == null) { - taints_ = null; - onChanged(); - } else { - taints_ = null; - taintsBuilder_ = null; - } - - 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() { - - 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 labelsBuilder_ != null || labels_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - labelsBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - labelsBuilder_.setMessage(builderForValue.build()); - } - - 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 (labels_ != null) { - labels_ = - com.google.container.v1.NodeLabels.newBuilder(labels_).mergeFrom(value).buildPartial(); - } else { - labels_ = value; - } - onChanged(); - } else { - labelsBuilder_.mergeFrom(value); - } - - 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() { - if (labelsBuilder_ == null) { - labels_ = null; - onChanged(); - } else { - labels_ = null; - labelsBuilder_ = null; - } - - 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() { - - 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 linuxNodeConfigBuilder_ != null || linuxNodeConfig_ != null; - } - /** - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 19; - * @return The linuxNodeConfig. - */ - public com.google.container.v1.LinuxNodeConfig getLinuxNodeConfig() { - if (linuxNodeConfigBuilder_ == null) { - return linuxNodeConfig_ == null ? com.google.container.v1.LinuxNodeConfig.getDefaultInstance() : linuxNodeConfig_; - } else { - return linuxNodeConfigBuilder_.getMessage(); - } - } - /** - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 19; - */ - public Builder setLinuxNodeConfig(com.google.container.v1.LinuxNodeConfig value) { - if (linuxNodeConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - linuxNodeConfig_ = value; - onChanged(); - } else { - linuxNodeConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 19; - */ - public Builder setLinuxNodeConfig( - com.google.container.v1.LinuxNodeConfig.Builder builderForValue) { - if (linuxNodeConfigBuilder_ == null) { - linuxNodeConfig_ = builderForValue.build(); - onChanged(); - } else { - linuxNodeConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 19; - */ - public Builder mergeLinuxNodeConfig(com.google.container.v1.LinuxNodeConfig value) { - if (linuxNodeConfigBuilder_ == null) { - if (linuxNodeConfig_ != null) { - linuxNodeConfig_ = - com.google.container.v1.LinuxNodeConfig.newBuilder(linuxNodeConfig_).mergeFrom(value).buildPartial(); - } else { - linuxNodeConfig_ = value; - } - onChanged(); - } else { - linuxNodeConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 19; - */ - public Builder clearLinuxNodeConfig() { - if (linuxNodeConfigBuilder_ == null) { - linuxNodeConfig_ = null; - onChanged(); - } else { - linuxNodeConfig_ = null; - linuxNodeConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 19; - */ - public com.google.container.v1.LinuxNodeConfig.Builder getLinuxNodeConfigBuilder() { - - onChanged(); - return getLinuxNodeConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 19; - */ - public com.google.container.v1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder() { - if (linuxNodeConfigBuilder_ != null) { - return linuxNodeConfigBuilder_.getMessageOrBuilder(); - } else { - return linuxNodeConfig_ == null ? - com.google.container.v1.LinuxNodeConfig.getDefaultInstance() : linuxNodeConfig_; - } - } - /** - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 19; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LinuxNodeConfig, com.google.container.v1.LinuxNodeConfig.Builder, com.google.container.v1.LinuxNodeConfigOrBuilder> - getLinuxNodeConfigFieldBuilder() { - if (linuxNodeConfigBuilder_ == null) { - linuxNodeConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LinuxNodeConfig, com.google.container.v1.LinuxNodeConfig.Builder, com.google.container.v1.LinuxNodeConfigOrBuilder>( - getLinuxNodeConfig(), - getParentForChildren(), - isClean()); - linuxNodeConfig_ = null; - } - return linuxNodeConfigBuilder_; - } - - private com.google.container.v1.NodeKubeletConfig kubeletConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeKubeletConfig, com.google.container.v1.NodeKubeletConfig.Builder, com.google.container.v1.NodeKubeletConfigOrBuilder> kubeletConfigBuilder_; - /** - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 20; - * @return Whether the kubeletConfig field is set. - */ - public boolean hasKubeletConfig() { - return kubeletConfigBuilder_ != null || kubeletConfig_ != null; - } - /** - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 20; - * @return The kubeletConfig. - */ - public com.google.container.v1.NodeKubeletConfig getKubeletConfig() { - if (kubeletConfigBuilder_ == null) { - return kubeletConfig_ == null ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() : kubeletConfig_; - } else { - return kubeletConfigBuilder_.getMessage(); - } - } - /** - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 20; - */ - public Builder setKubeletConfig(com.google.container.v1.NodeKubeletConfig value) { - if (kubeletConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kubeletConfig_ = value; - onChanged(); - } else { - kubeletConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 20; - */ - public Builder setKubeletConfig( - com.google.container.v1.NodeKubeletConfig.Builder builderForValue) { - if (kubeletConfigBuilder_ == null) { - kubeletConfig_ = builderForValue.build(); - onChanged(); - } else { - kubeletConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 20; - */ - public Builder mergeKubeletConfig(com.google.container.v1.NodeKubeletConfig value) { - if (kubeletConfigBuilder_ == null) { - if (kubeletConfig_ != null) { - kubeletConfig_ = - com.google.container.v1.NodeKubeletConfig.newBuilder(kubeletConfig_).mergeFrom(value).buildPartial(); - } else { - kubeletConfig_ = value; - } - onChanged(); - } else { - kubeletConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 20; - */ - public Builder clearKubeletConfig() { - if (kubeletConfigBuilder_ == null) { - kubeletConfig_ = null; - onChanged(); - } else { - kubeletConfig_ = null; - kubeletConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 20; - */ - public com.google.container.v1.NodeKubeletConfig.Builder getKubeletConfigBuilder() { - - onChanged(); - return getKubeletConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 20; - */ - public com.google.container.v1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder() { - if (kubeletConfigBuilder_ != null) { - return kubeletConfigBuilder_.getMessageOrBuilder(); - } else { - return kubeletConfig_ == null ? - com.google.container.v1.NodeKubeletConfig.getDefaultInstance() : kubeletConfig_; - } - } - /** - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 20; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeKubeletConfig, com.google.container.v1.NodeKubeletConfig.Builder, com.google.container.v1.NodeKubeletConfigOrBuilder> - getKubeletConfigFieldBuilder() { - if (kubeletConfigBuilder_ == null) { - kubeletConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeKubeletConfig, com.google.container.v1.NodeKubeletConfig.Builder, com.google.container.v1.NodeKubeletConfigOrBuilder>( - getKubeletConfig(), - getParentForChildren(), - isClean()); - kubeletConfig_ = null; - } - return kubeletConfigBuilder_; - } - - private com.google.container.v1.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 nodeNetworkConfigBuilder_ != null || nodeNetworkConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - nodeNetworkConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - nodeNetworkConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (nodeNetworkConfig_ != null) { - nodeNetworkConfig_ = - com.google.container.v1.NodeNetworkConfig.newBuilder(nodeNetworkConfig_).mergeFrom(value).buildPartial(); - } else { - nodeNetworkConfig_ = value; - } - onChanged(); - } else { - nodeNetworkConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Node network config.
-     * 
- * - * .google.container.v1.NodeNetworkConfig node_network_config = 21; - */ - public Builder clearNodeNetworkConfig() { - if (nodeNetworkConfigBuilder_ == null) { - nodeNetworkConfig_ = null; - onChanged(); - } else { - nodeNetworkConfig_ = null; - nodeNetworkConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Node network config.
-     * 
- * - * .google.container.v1.NodeNetworkConfig node_network_config = 21; - */ - public com.google.container.v1.NodeNetworkConfig.Builder getNodeNetworkConfigBuilder() { - - 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 gcfsConfigBuilder_ != null || gcfsConfig_ != null; - } - /** - *
-     * GCFS config.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 22; - * @return The gcfsConfig. - */ - public com.google.container.v1.GcfsConfig getGcfsConfig() { - if (gcfsConfigBuilder_ == null) { - return gcfsConfig_ == null ? com.google.container.v1.GcfsConfig.getDefaultInstance() : gcfsConfig_; - } else { - return gcfsConfigBuilder_.getMessage(); - } - } - /** - *
-     * GCFS config.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 22; - */ - public Builder setGcfsConfig(com.google.container.v1.GcfsConfig value) { - if (gcfsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gcfsConfig_ = value; - onChanged(); - } else { - gcfsConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * GCFS config.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 22; - */ - public Builder setGcfsConfig( - com.google.container.v1.GcfsConfig.Builder builderForValue) { - if (gcfsConfigBuilder_ == null) { - gcfsConfig_ = builderForValue.build(); - onChanged(); - } else { - gcfsConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * GCFS config.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 22; - */ - public Builder mergeGcfsConfig(com.google.container.v1.GcfsConfig value) { - if (gcfsConfigBuilder_ == null) { - if (gcfsConfig_ != null) { - gcfsConfig_ = - com.google.container.v1.GcfsConfig.newBuilder(gcfsConfig_).mergeFrom(value).buildPartial(); - } else { - gcfsConfig_ = value; - } - onChanged(); - } else { - gcfsConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * GCFS config.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 22; - */ - public Builder clearGcfsConfig() { - if (gcfsConfigBuilder_ == null) { - gcfsConfig_ = null; - onChanged(); - } else { - gcfsConfig_ = null; - gcfsConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * GCFS config.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 22; - */ - public com.google.container.v1.GcfsConfig.Builder getGcfsConfigBuilder() { - - onChanged(); - return getGcfsConfigFieldBuilder().getBuilder(); - } - /** - *
-     * GCFS config.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 22; - */ - public com.google.container.v1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { - if (gcfsConfigBuilder_ != null) { - return gcfsConfigBuilder_.getMessageOrBuilder(); - } else { - return gcfsConfig_ == null ? - com.google.container.v1.GcfsConfig.getDefaultInstance() : gcfsConfig_; - } - } - /** - *
-     * GCFS config.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 22; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GcfsConfig, com.google.container.v1.GcfsConfig.Builder, com.google.container.v1.GcfsConfigOrBuilder> - getGcfsConfigFieldBuilder() { - if (gcfsConfigBuilder_ == null) { - gcfsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GcfsConfig, com.google.container.v1.GcfsConfig.Builder, com.google.container.v1.GcfsConfigOrBuilder>( - getGcfsConfig(), - getParentForChildren(), - isClean()); - gcfsConfig_ = null; - } - return gcfsConfigBuilder_; - } - - private com.google.container.v1.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 confidentialNodesBuilder_ != null || confidentialNodes_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - confidentialNodesBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - confidentialNodesBuilder_.setMessage(builderForValue.build()); - } - - 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 (confidentialNodes_ != null) { - confidentialNodes_ = - com.google.container.v1.ConfidentialNodes.newBuilder(confidentialNodes_).mergeFrom(value).buildPartial(); - } else { - confidentialNodes_ = value; - } - onChanged(); - } else { - confidentialNodesBuilder_.mergeFrom(value); - } - - 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() { - if (confidentialNodesBuilder_ == null) { - confidentialNodes_ = null; - onChanged(); - } else { - confidentialNodes_ = null; - confidentialNodesBuilder_ = null; - } - - 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() { - - 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 gvnicBuilder_ != null || gvnic_ != null; - } - /** - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - * @return The gvnic. - */ - public com.google.container.v1.VirtualNIC getGvnic() { - if (gvnicBuilder_ == null) { - return gvnic_ == null ? com.google.container.v1.VirtualNIC.getDefaultInstance() : gvnic_; - } else { - return gvnicBuilder_.getMessage(); - } - } - /** - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - */ - public Builder setGvnic(com.google.container.v1.VirtualNIC value) { - if (gvnicBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gvnic_ = value; - onChanged(); - } else { - gvnicBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - */ - public Builder setGvnic( - com.google.container.v1.VirtualNIC.Builder builderForValue) { - if (gvnicBuilder_ == null) { - gvnic_ = builderForValue.build(); - onChanged(); - } else { - gvnicBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - */ - public Builder mergeGvnic(com.google.container.v1.VirtualNIC value) { - if (gvnicBuilder_ == null) { - if (gvnic_ != null) { - gvnic_ = - com.google.container.v1.VirtualNIC.newBuilder(gvnic_).mergeFrom(value).buildPartial(); - } else { - gvnic_ = value; - } - onChanged(); - } else { - gvnicBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - */ - public Builder clearGvnic() { - if (gvnicBuilder_ == null) { - gvnic_ = null; - onChanged(); - } else { - gvnic_ = null; - gvnicBuilder_ = null; - } - - return this; - } - /** - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - */ - public com.google.container.v1.VirtualNIC.Builder getGvnicBuilder() { - - onChanged(); - return getGvnicFieldBuilder().getBuilder(); - } - /** - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - */ - public com.google.container.v1.VirtualNICOrBuilder getGvnicOrBuilder() { - if (gvnicBuilder_ != null) { - return gvnicBuilder_.getMessageOrBuilder(); - } else { - return gvnic_ == null ? - com.google.container.v1.VirtualNIC.getDefaultInstance() : gvnic_; - } - } - /** - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.VirtualNIC, com.google.container.v1.VirtualNIC.Builder, com.google.container.v1.VirtualNICOrBuilder> - getGvnicFieldBuilder() { - if (gvnicBuilder_ == null) { - gvnicBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.VirtualNIC, com.google.container.v1.VirtualNIC.Builder, com.google.container.v1.VirtualNICOrBuilder>( - getGvnic(), - getParentForChildren(), - isClean()); - gvnic_ = null; - } - return gvnicBuilder_; - } - - 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 loggingConfigBuilder_ != null || loggingConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - loggingConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - loggingConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 32; - */ - public Builder mergeLoggingConfig(com.google.container.v1.NodePoolLoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (loggingConfig_ != null) { - loggingConfig_ = - com.google.container.v1.NodePoolLoggingConfig.newBuilder(loggingConfig_).mergeFrom(value).buildPartial(); - } else { - loggingConfig_ = value; - } - onChanged(); - } else { - loggingConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 32; - */ - public Builder clearLoggingConfig() { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - onChanged(); - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 32; - */ - public com.google.container.v1.NodePoolLoggingConfig.Builder getLoggingConfigBuilder() { - - 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 resourceLabelsBuilder_ != null || resourceLabels_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - resourceLabelsBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - resourceLabelsBuilder_.setMessage(builderForValue.build()); - } - - 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 (resourceLabels_ != null) { - resourceLabels_ = - com.google.container.v1.ResourceLabels.newBuilder(resourceLabels_).mergeFrom(value).buildPartial(); - } else { - resourceLabels_ = value; - } - onChanged(); - } else { - resourceLabelsBuilder_.mergeFrom(value); - } - - 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() { - if (resourceLabelsBuilder_ == null) { - resourceLabels_ = null; - onChanged(); - } else { - resourceLabels_ = null; - resourceLabelsBuilder_ = null; - } - - 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() { - - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 739b5230cf55..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java +++ /dev/null @@ -1,631 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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=2202 - * @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=2202 - * @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=2208 - * @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=2208 - * @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=2212 - * @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=2212 - * @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=2216 - * @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=2216 - * @return The bytes for nodePoolId. - */ - @java.lang.Deprecated com.google.protobuf.ByteString - getNodePoolIdBytes(); - - /** - *
-   * Required. The Kubernetes version to change the nodes to (typically an
-   * upgrade).
-   * Users may specify either explicit versions offered by Kubernetes Engine or
-   * version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the Kubernetes master version
-   * 
- * - * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The nodeVersion. - */ - java.lang.String getNodeVersion(); - /** - *
-   * Required. The Kubernetes version to change the nodes to (typically an
-   * upgrade).
-   * Users may specify either explicit versions offered by Kubernetes Engine or
-   * version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the Kubernetes master version
-   * 
- * - * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for nodeVersion. - */ - com.google.protobuf.ByteString - getNodeVersionBytes(); - - /** - *
-   * Required. The desired image type for the node pool.
-   * 
- * - * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return The imageType. - */ - java.lang.String getImageType(); - /** - *
-   * Required. The desired image type for the node pool.
-   * 
- * - * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for imageType. - */ - com.google.protobuf.ByteString - getImageTypeBytes(); - - /** - *
-   * The 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(); - - /** - *
-   * 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(); -} 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 deleted file mode 100644 index 8b8b23d6a4f2..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeAvailableEvent.java +++ /dev/null @@ -1,1113 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * UpgradeAvailableEvent is a notification sent to customers when a new
- * available version is released.
- * 
- * - * Protobuf type {@code google.container.v1.UpgradeAvailableEvent} - */ -public final class UpgradeAvailableEvent extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.UpgradeAvailableEvent) - UpgradeAvailableEventOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpgradeAvailableEvent.newBuilder() to construct. - private UpgradeAvailableEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpgradeAvailableEvent() { - version_ = ""; - resourceType_ = 0; - resource_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpgradeAvailableEvent(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UpgradeAvailableEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UpgradeAvailableEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.UpgradeAvailableEvent.class, com.google.container.v1.UpgradeAvailableEvent.Builder.class); - } - - public static final int VERSION_FIELD_NUMBER = 1; - private volatile java.lang.Object version_; - /** - *
-   * The release version available for upgrade.
-   * 
- * - * string version = 1; - * @return The version. - */ - @java.lang.Override - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } - } - /** - *
-   * The release version available for upgrade.
-   * 
- * - * string version = 1; - * @return The bytes for version. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 2; - private int resourceType_; - /** - *
-   * The resource type of the release version.
-   * 
- * - * .google.container.v1.UpgradeResourceType resource_type = 2; - * @return The enum numeric value on the wire for resourceType. - */ - @java.lang.Override public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-   * The resource type of the release version.
-   * 
- * - * .google.container.v1.UpgradeResourceType resource_type = 2; - * @return The resourceType. - */ - @java.lang.Override public com.google.container.v1.UpgradeResourceType getResourceType() { - @SuppressWarnings("deprecation") - com.google.container.v1.UpgradeResourceType result = com.google.container.v1.UpgradeResourceType.valueOf(resourceType_); - return result == null ? com.google.container.v1.UpgradeResourceType.UNRECOGNIZED : result; - } - - public static final int RELEASE_CHANNEL_FIELD_NUMBER = 3; - private com.google.container.v1.ReleaseChannel releaseChannel_; - /** - *
-   * The release channel of the version. If empty, it means a non-channel
-   * release.
-   * 
- * - * .google.container.v1.ReleaseChannel release_channel = 3; - * @return Whether the releaseChannel field is set. - */ - @java.lang.Override - public boolean hasReleaseChannel() { - return releaseChannel_ != null; - } - /** - *
-   * The release channel of the version. If empty, it means a non-channel
-   * release.
-   * 
- * - * .google.container.v1.ReleaseChannel release_channel = 3; - * @return The releaseChannel. - */ - @java.lang.Override - public com.google.container.v1.ReleaseChannel getReleaseChannel() { - return releaseChannel_ == null ? com.google.container.v1.ReleaseChannel.getDefaultInstance() : releaseChannel_; - } - /** - *
-   * The release channel of the version. If empty, it means a non-channel
-   * release.
-   * 
- * - * .google.container.v1.ReleaseChannel release_channel = 3; - */ - @java.lang.Override - public com.google.container.v1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder() { - return getReleaseChannel(); - } - - public static final int RESOURCE_FIELD_NUMBER = 4; - private volatile java.lang.Object resource_; - /** - *
-   * Optional relative path to the resource. For example, the relative path of
-   * the node pool.
-   * 
- * - * string resource = 4; - * @return The resource. - */ - @java.lang.Override - public java.lang.String getResource() { - java.lang.Object ref = resource_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resource_ = s; - return s; - } - } - /** - *
-   * Optional relative path to the resource. For example, the relative path of
-   * the node pool.
-   * 
- * - * string resource = 4; - * @return The bytes for resource. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getResourceBytes() { - java.lang.Object ref = resource_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); - } - if (resourceType_ != com.google.container.v1.UpgradeResourceType.UPGRADE_RESOURCE_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(2, resourceType_); - } - if (releaseChannel_ != null) { - output.writeMessage(3, getReleaseChannel()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, resource_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); - } - if (resourceType_ != com.google.container.v1.UpgradeResourceType.UPGRADE_RESOURCE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, resourceType_); - } - if (releaseChannel_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getReleaseChannel()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, resource_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - version_ = ""; - - resourceType_ = 0; - - if (releaseChannelBuilder_ == null) { - releaseChannel_ = null; - } else { - releaseChannel_ = null; - releaseChannelBuilder_ = null; - } - resource_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UpgradeAvailableEvent_descriptor; - } - - @java.lang.Override - public com.google.container.v1.UpgradeAvailableEvent getDefaultInstanceForType() { - return com.google.container.v1.UpgradeAvailableEvent.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.UpgradeAvailableEvent build() { - com.google.container.v1.UpgradeAvailableEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.UpgradeAvailableEvent buildPartial() { - com.google.container.v1.UpgradeAvailableEvent result = new com.google.container.v1.UpgradeAvailableEvent(this); - result.version_ = version_; - result.resourceType_ = resourceType_; - if (releaseChannelBuilder_ == null) { - result.releaseChannel_ = releaseChannel_; - } else { - result.releaseChannel_ = releaseChannelBuilder_.build(); - } - result.resource_ = resource_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.UpgradeAvailableEvent) { - return mergeFrom((com.google.container.v1.UpgradeAvailableEvent)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.UpgradeAvailableEvent other) { - if (other == com.google.container.v1.UpgradeAvailableEvent.getDefaultInstance()) return this; - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - onChanged(); - } - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - if (other.hasReleaseChannel()) { - mergeReleaseChannel(other.getReleaseChannel()); - } - if (!other.getResource().isEmpty()) { - resource_ = other.resource_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 16: { - resourceType_ = input.readEnum(); - - break; - } // case 16 - case 26: { - input.readMessage( - getReleaseChannelFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 26 - case 34: { - resource_ = input.readStringRequireUtf8(); - - 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 java.lang.Object version_ = ""; - /** - *
-     * The release version available for upgrade.
-     * 
- * - * string version = 1; - * @return The version. - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The release version available for upgrade.
-     * 
- * - * string version = 1; - * @return The bytes for version. - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The release version available for upgrade.
-     * 
- * - * string version = 1; - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - version_ = value; - onChanged(); - return this; - } - /** - *
-     * The release version available for upgrade.
-     * 
- * - * string version = 1; - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - *
-     * The release version available for upgrade.
-     * 
- * - * string version = 1; - * @param value The bytes for version to set. - * @return This builder for chaining. - */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - version_ = value; - onChanged(); - return this; - } - - private int resourceType_ = 0; - /** - *
-     * The resource type of the release version.
-     * 
- * - * .google.container.v1.UpgradeResourceType resource_type = 2; - * @return The enum numeric value on the wire for resourceType. - */ - @java.lang.Override public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-     * The resource type of the release version.
-     * 
- * - * .google.container.v1.UpgradeResourceType resource_type = 2; - * @param value The enum numeric value on the wire for resourceType to set. - * @return This builder for chaining. - */ - public Builder setResourceTypeValue(int value) { - - resourceType_ = value; - onChanged(); - return this; - } - /** - *
-     * The resource type of the release version.
-     * 
- * - * .google.container.v1.UpgradeResourceType resource_type = 2; - * @return The resourceType. - */ - @java.lang.Override - public com.google.container.v1.UpgradeResourceType getResourceType() { - @SuppressWarnings("deprecation") - com.google.container.v1.UpgradeResourceType result = com.google.container.v1.UpgradeResourceType.valueOf(resourceType_); - return result == null ? com.google.container.v1.UpgradeResourceType.UNRECOGNIZED : result; - } - /** - *
-     * The resource type of the release version.
-     * 
- * - * .google.container.v1.UpgradeResourceType resource_type = 2; - * @param value The resourceType to set. - * @return This builder for chaining. - */ - public Builder setResourceType(com.google.container.v1.UpgradeResourceType value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * The resource type of the release version.
-     * 
- * - * .google.container.v1.UpgradeResourceType resource_type = 2; - * @return This builder for chaining. - */ - public Builder clearResourceType() { - - resourceType_ = 0; - onChanged(); - return this; - } - - private com.google.container.v1.ReleaseChannel releaseChannel_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ReleaseChannel, com.google.container.v1.ReleaseChannel.Builder, com.google.container.v1.ReleaseChannelOrBuilder> releaseChannelBuilder_; - /** - *
-     * The release channel of the version. If empty, it means a non-channel
-     * release.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 3; - * @return Whether the releaseChannel field is set. - */ - public boolean hasReleaseChannel() { - return releaseChannelBuilder_ != null || releaseChannel_ != null; - } - /** - *
-     * The release channel of the version. If empty, it means a non-channel
-     * release.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 3; - * @return The releaseChannel. - */ - public com.google.container.v1.ReleaseChannel getReleaseChannel() { - if (releaseChannelBuilder_ == null) { - return releaseChannel_ == null ? com.google.container.v1.ReleaseChannel.getDefaultInstance() : releaseChannel_; - } else { - return releaseChannelBuilder_.getMessage(); - } - } - /** - *
-     * The release channel of the version. If empty, it means a non-channel
-     * release.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 3; - */ - public Builder setReleaseChannel(com.google.container.v1.ReleaseChannel value) { - if (releaseChannelBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - releaseChannel_ = value; - onChanged(); - } else { - releaseChannelBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The release channel of the version. If empty, it means a non-channel
-     * release.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 3; - */ - public Builder setReleaseChannel( - com.google.container.v1.ReleaseChannel.Builder builderForValue) { - if (releaseChannelBuilder_ == null) { - releaseChannel_ = builderForValue.build(); - onChanged(); - } else { - releaseChannelBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The release channel of the version. If empty, it means a non-channel
-     * release.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 3; - */ - public Builder mergeReleaseChannel(com.google.container.v1.ReleaseChannel value) { - if (releaseChannelBuilder_ == null) { - if (releaseChannel_ != null) { - releaseChannel_ = - com.google.container.v1.ReleaseChannel.newBuilder(releaseChannel_).mergeFrom(value).buildPartial(); - } else { - releaseChannel_ = value; - } - onChanged(); - } else { - releaseChannelBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The release channel of the version. If empty, it means a non-channel
-     * release.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 3; - */ - public Builder clearReleaseChannel() { - if (releaseChannelBuilder_ == null) { - releaseChannel_ = null; - onChanged(); - } else { - releaseChannel_ = null; - releaseChannelBuilder_ = null; - } - - return this; - } - /** - *
-     * The release channel of the version. If empty, it means a non-channel
-     * release.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 3; - */ - public com.google.container.v1.ReleaseChannel.Builder getReleaseChannelBuilder() { - - onChanged(); - return getReleaseChannelFieldBuilder().getBuilder(); - } - /** - *
-     * The release channel of the version. If empty, it means a non-channel
-     * release.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 3; - */ - public com.google.container.v1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder() { - if (releaseChannelBuilder_ != null) { - return releaseChannelBuilder_.getMessageOrBuilder(); - } else { - return releaseChannel_ == null ? - com.google.container.v1.ReleaseChannel.getDefaultInstance() : releaseChannel_; - } - } - /** - *
-     * The release channel of the version. If empty, it means a non-channel
-     * release.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ReleaseChannel, com.google.container.v1.ReleaseChannel.Builder, com.google.container.v1.ReleaseChannelOrBuilder> - getReleaseChannelFieldBuilder() { - if (releaseChannelBuilder_ == null) { - releaseChannelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ReleaseChannel, com.google.container.v1.ReleaseChannel.Builder, com.google.container.v1.ReleaseChannelOrBuilder>( - getReleaseChannel(), - getParentForChildren(), - isClean()); - releaseChannel_ = null; - } - return releaseChannelBuilder_; - } - - private java.lang.Object resource_ = ""; - /** - *
-     * Optional relative path to the resource. For example, the relative path of
-     * the node pool.
-     * 
- * - * string resource = 4; - * @return The resource. - */ - public java.lang.String getResource() { - java.lang.Object ref = resource_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resource_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional relative path to the resource. For example, the relative path of
-     * the node pool.
-     * 
- * - * string resource = 4; - * @return The bytes for resource. - */ - public com.google.protobuf.ByteString - getResourceBytes() { - java.lang.Object ref = resource_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional relative path to the resource. For example, the relative path of
-     * the node pool.
-     * 
- * - * string resource = 4; - * @param value The resource to set. - * @return This builder for chaining. - */ - public Builder setResource( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - resource_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional relative path to the resource. For example, the relative path of
-     * the node pool.
-     * 
- * - * string resource = 4; - * @return This builder for chaining. - */ - public Builder clearResource() { - - resource_ = getDefaultInstance().getResource(); - onChanged(); - return this; - } - /** - *
-     * Optional relative path to the resource. For example, the relative path of
-     * the node pool.
-     * 
- * - * string resource = 4; - * @param value The bytes for resource to set. - * @return This builder for chaining. - */ - public Builder setResourceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - resource_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1.UpgradeAvailableEvent) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.UpgradeAvailableEvent) - private static final com.google.container.v1.UpgradeAvailableEvent DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1.UpgradeAvailableEvent(); - } - - public static com.google.container.v1.UpgradeAvailableEvent getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpgradeAvailableEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index e34337847fe0..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeAvailableEventOrBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface UpgradeAvailableEventOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.UpgradeAvailableEvent) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The release version available for upgrade.
-   * 
- * - * string version = 1; - * @return The version. - */ - java.lang.String getVersion(); - /** - *
-   * The release version available for upgrade.
-   * 
- * - * string version = 1; - * @return The bytes for version. - */ - com.google.protobuf.ByteString - getVersionBytes(); - - /** - *
-   * The resource type of the release version.
-   * 
- * - * .google.container.v1.UpgradeResourceType resource_type = 2; - * @return The enum numeric value on the wire for resourceType. - */ - int getResourceTypeValue(); - /** - *
-   * The resource type of the release version.
-   * 
- * - * .google.container.v1.UpgradeResourceType resource_type = 2; - * @return The resourceType. - */ - com.google.container.v1.UpgradeResourceType getResourceType(); - - /** - *
-   * The release channel of the version. If empty, it means a non-channel
-   * release.
-   * 
- * - * .google.container.v1.ReleaseChannel release_channel = 3; - * @return Whether the releaseChannel field is set. - */ - boolean hasReleaseChannel(); - /** - *
-   * The release channel of the version. If empty, it means a non-channel
-   * release.
-   * 
- * - * .google.container.v1.ReleaseChannel release_channel = 3; - * @return The releaseChannel. - */ - com.google.container.v1.ReleaseChannel getReleaseChannel(); - /** - *
-   * The release channel of the version. If empty, it means a non-channel
-   * release.
-   * 
- * - * .google.container.v1.ReleaseChannel release_channel = 3; - */ - com.google.container.v1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder(); - - /** - *
-   * Optional relative path to the resource. For example, the relative path of
-   * the node pool.
-   * 
- * - * string resource = 4; - * @return The resource. - */ - java.lang.String getResource(); - /** - *
-   * Optional relative path to the resource. For example, the relative path of
-   * the node pool.
-   * 
- * - * string resource = 4; - * @return The bytes for resource. - */ - com.google.protobuf.ByteString - getResourceBytes(); -} diff --git a/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 deleted file mode 100644 index bf6b7993459e..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeEvent.java +++ /dev/null @@ -1,1431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * UpgradeEvent is a notification sent to customers by the cluster server when
- * a resource is upgrading.
- * 
- * - * Protobuf type {@code google.container.v1.UpgradeEvent} - */ -public final class UpgradeEvent extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.UpgradeEvent) - UpgradeEventOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpgradeEvent.newBuilder() to construct. - private UpgradeEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpgradeEvent() { - resourceType_ = 0; - operation_ = ""; - currentVersion_ = ""; - targetVersion_ = ""; - resource_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpgradeEvent(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UpgradeEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UpgradeEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.UpgradeEvent.class, com.google.container.v1.UpgradeEvent.Builder.class); - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; - private int resourceType_; - /** - *
-   * The resource type that is upgrading.
-   * 
- * - * .google.container.v1.UpgradeResourceType resource_type = 1; - * @return The enum numeric value on the wire for resourceType. - */ - @java.lang.Override public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-   * The resource type that is upgrading.
-   * 
- * - * .google.container.v1.UpgradeResourceType resource_type = 1; - * @return The resourceType. - */ - @java.lang.Override public com.google.container.v1.UpgradeResourceType getResourceType() { - @SuppressWarnings("deprecation") - com.google.container.v1.UpgradeResourceType result = com.google.container.v1.UpgradeResourceType.valueOf(resourceType_); - return result == null ? com.google.container.v1.UpgradeResourceType.UNRECOGNIZED : result; - } - - public static final int OPERATION_FIELD_NUMBER = 2; - private volatile java.lang.Object operation_; - /** - *
-   * The operation associated with this upgrade.
-   * 
- * - * string operation = 2; - * @return The operation. - */ - @java.lang.Override - public java.lang.String getOperation() { - java.lang.Object ref = operation_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - operation_ = s; - return s; - } - } - /** - *
-   * The operation associated with this upgrade.
-   * 
- * - * string operation = 2; - * @return The bytes for operation. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getOperationBytes() { - java.lang.Object ref = operation_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - operation_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OPERATION_START_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp operationStartTime_; - /** - *
-   * The time when the operation was started.
-   * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - * @return Whether the operationStartTime field is set. - */ - @java.lang.Override - public boolean hasOperationStartTime() { - return operationStartTime_ != null; - } - /** - *
-   * The time when the operation was started.
-   * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - * @return The operationStartTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getOperationStartTime() { - return operationStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : operationStartTime_; - } - /** - *
-   * The time when the operation was started.
-   * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getOperationStartTimeOrBuilder() { - return getOperationStartTime(); - } - - public static final int CURRENT_VERSION_FIELD_NUMBER = 4; - private volatile java.lang.Object currentVersion_; - /** - *
-   * The current version before the upgrade.
-   * 
- * - * string current_version = 4; - * @return The currentVersion. - */ - @java.lang.Override - public java.lang.String getCurrentVersion() { - java.lang.Object ref = currentVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currentVersion_ = s; - return s; - } - } - /** - *
-   * The current version before the upgrade.
-   * 
- * - * string current_version = 4; - * @return The bytes for currentVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCurrentVersionBytes() { - java.lang.Object ref = currentVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - currentVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TARGET_VERSION_FIELD_NUMBER = 5; - private volatile java.lang.Object targetVersion_; - /** - *
-   * The target version for the upgrade.
-   * 
- * - * string target_version = 5; - * @return The targetVersion. - */ - @java.lang.Override - public java.lang.String getTargetVersion() { - java.lang.Object ref = targetVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetVersion_ = s; - return s; - } - } - /** - *
-   * The target version for the upgrade.
-   * 
- * - * string target_version = 5; - * @return The bytes for targetVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTargetVersionBytes() { - java.lang.Object ref = targetVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - targetVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESOURCE_FIELD_NUMBER = 6; - private volatile java.lang.Object resource_; - /** - *
-   * Optional relative path to the resource. For example in node pool upgrades,
-   * the relative path of the node pool.
-   * 
- * - * string resource = 6; - * @return The resource. - */ - @java.lang.Override - public java.lang.String getResource() { - java.lang.Object ref = resource_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resource_ = s; - return s; - } - } - /** - *
-   * Optional relative path to the resource. For example in node pool upgrades,
-   * the relative path of the node pool.
-   * 
- * - * string resource = 6; - * @return The bytes for resource. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getResourceBytes() { - java.lang.Object ref = resource_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (resourceType_ != com.google.container.v1.UpgradeResourceType.UPGRADE_RESOURCE_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(1, resourceType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, operation_); - } - if (operationStartTime_ != null) { - output.writeMessage(3, getOperationStartTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, currentVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, targetVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, resource_); - } - 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 (operationStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getOperationStartTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, currentVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, targetVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, resource_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - resourceType_ = 0; - - operation_ = ""; - - if (operationStartTimeBuilder_ == null) { - operationStartTime_ = null; - } else { - operationStartTime_ = null; - operationStartTimeBuilder_ = null; - } - currentVersion_ = ""; - - targetVersion_ = ""; - - resource_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UpgradeEvent_descriptor; - } - - @java.lang.Override - public com.google.container.v1.UpgradeEvent getDefaultInstanceForType() { - return com.google.container.v1.UpgradeEvent.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.UpgradeEvent build() { - com.google.container.v1.UpgradeEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.UpgradeEvent buildPartial() { - com.google.container.v1.UpgradeEvent result = new com.google.container.v1.UpgradeEvent(this); - result.resourceType_ = resourceType_; - result.operation_ = operation_; - if (operationStartTimeBuilder_ == null) { - result.operationStartTime_ = operationStartTime_; - } else { - result.operationStartTime_ = operationStartTimeBuilder_.build(); - } - result.currentVersion_ = currentVersion_; - result.targetVersion_ = targetVersion_; - result.resource_ = resource_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.UpgradeEvent) { - return mergeFrom((com.google.container.v1.UpgradeEvent)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.UpgradeEvent other) { - if (other == com.google.container.v1.UpgradeEvent.getDefaultInstance()) return this; - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - if (!other.getOperation().isEmpty()) { - operation_ = other.operation_; - onChanged(); - } - if (other.hasOperationStartTime()) { - mergeOperationStartTime(other.getOperationStartTime()); - } - if (!other.getCurrentVersion().isEmpty()) { - currentVersion_ = other.currentVersion_; - onChanged(); - } - if (!other.getTargetVersion().isEmpty()) { - targetVersion_ = other.targetVersion_; - onChanged(); - } - if (!other.getResource().isEmpty()) { - resource_ = other.resource_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 8 - case 18: { - operation_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - input.readMessage( - getOperationStartTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 26 - case 34: { - currentVersion_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - targetVersion_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: { - resource_ = input.readStringRequireUtf8(); - - 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 resourceType_ = 0; - /** - *
-     * The resource type that is upgrading.
-     * 
- * - * .google.container.v1.UpgradeResourceType resource_type = 1; - * @return The enum numeric value on the wire for resourceType. - */ - @java.lang.Override public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-     * The resource type that is upgrading.
-     * 
- * - * .google.container.v1.UpgradeResourceType resource_type = 1; - * @param value The enum numeric value on the wire for resourceType to set. - * @return This builder for chaining. - */ - public Builder setResourceTypeValue(int value) { - - resourceType_ = value; - onChanged(); - return this; - } - /** - *
-     * The resource type that is upgrading.
-     * 
- * - * .google.container.v1.UpgradeResourceType resource_type = 1; - * @return The resourceType. - */ - @java.lang.Override - public com.google.container.v1.UpgradeResourceType getResourceType() { - @SuppressWarnings("deprecation") - com.google.container.v1.UpgradeResourceType result = com.google.container.v1.UpgradeResourceType.valueOf(resourceType_); - return result == null ? com.google.container.v1.UpgradeResourceType.UNRECOGNIZED : result; - } - /** - *
-     * The resource type that is upgrading.
-     * 
- * - * .google.container.v1.UpgradeResourceType resource_type = 1; - * @param value The resourceType to set. - * @return This builder for chaining. - */ - public Builder setResourceType(com.google.container.v1.UpgradeResourceType value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * The resource type that is upgrading.
-     * 
- * - * .google.container.v1.UpgradeResourceType resource_type = 1; - * @return This builder for chaining. - */ - public Builder clearResourceType() { - - resourceType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object operation_ = ""; - /** - *
-     * The operation associated with this upgrade.
-     * 
- * - * string operation = 2; - * @return The operation. - */ - public java.lang.String getOperation() { - java.lang.Object ref = operation_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - operation_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The operation associated with this upgrade.
-     * 
- * - * string operation = 2; - * @return The bytes for operation. - */ - public com.google.protobuf.ByteString - getOperationBytes() { - java.lang.Object ref = operation_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - operation_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The operation associated with this upgrade.
-     * 
- * - * string operation = 2; - * @param value The operation to set. - * @return This builder for chaining. - */ - public Builder setOperation( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - operation_ = value; - onChanged(); - return this; - } - /** - *
-     * The operation associated with this upgrade.
-     * 
- * - * string operation = 2; - * @return This builder for chaining. - */ - public Builder clearOperation() { - - operation_ = getDefaultInstance().getOperation(); - onChanged(); - return this; - } - /** - *
-     * The operation associated with this upgrade.
-     * 
- * - * string operation = 2; - * @param value The bytes for operation to set. - * @return This builder for chaining. - */ - public Builder setOperationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - operation_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp operationStartTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> operationStartTimeBuilder_; - /** - *
-     * The time when the operation was started.
-     * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - * @return Whether the operationStartTime field is set. - */ - public boolean hasOperationStartTime() { - return operationStartTimeBuilder_ != null || operationStartTime_ != null; - } - /** - *
-     * The time when the operation was started.
-     * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - * @return The operationStartTime. - */ - public com.google.protobuf.Timestamp getOperationStartTime() { - if (operationStartTimeBuilder_ == null) { - return operationStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : operationStartTime_; - } else { - return operationStartTimeBuilder_.getMessage(); - } - } - /** - *
-     * The time when the operation was started.
-     * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - */ - public Builder setOperationStartTime(com.google.protobuf.Timestamp value) { - if (operationStartTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - operationStartTime_ = value; - onChanged(); - } else { - operationStartTimeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The time when the operation was started.
-     * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - */ - public Builder setOperationStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (operationStartTimeBuilder_ == null) { - operationStartTime_ = builderForValue.build(); - onChanged(); - } else { - operationStartTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The time when the operation was started.
-     * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - */ - public Builder mergeOperationStartTime(com.google.protobuf.Timestamp value) { - if (operationStartTimeBuilder_ == null) { - if (operationStartTime_ != null) { - operationStartTime_ = - com.google.protobuf.Timestamp.newBuilder(operationStartTime_).mergeFrom(value).buildPartial(); - } else { - operationStartTime_ = value; - } - onChanged(); - } else { - operationStartTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The time when the operation was started.
-     * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - */ - public Builder clearOperationStartTime() { - if (operationStartTimeBuilder_ == null) { - operationStartTime_ = null; - onChanged(); - } else { - operationStartTime_ = null; - operationStartTimeBuilder_ = null; - } - - return this; - } - /** - *
-     * The time when the operation was started.
-     * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - */ - public com.google.protobuf.Timestamp.Builder getOperationStartTimeBuilder() { - - onChanged(); - return getOperationStartTimeFieldBuilder().getBuilder(); - } - /** - *
-     * The time when the operation was started.
-     * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - */ - public com.google.protobuf.TimestampOrBuilder getOperationStartTimeOrBuilder() { - if (operationStartTimeBuilder_ != null) { - return operationStartTimeBuilder_.getMessageOrBuilder(); - } else { - return operationStartTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : operationStartTime_; - } - } - /** - *
-     * The time when the operation was started.
-     * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getOperationStartTimeFieldBuilder() { - if (operationStartTimeBuilder_ == null) { - operationStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getOperationStartTime(), - getParentForChildren(), - isClean()); - operationStartTime_ = null; - } - return operationStartTimeBuilder_; - } - - private java.lang.Object currentVersion_ = ""; - /** - *
-     * The current version before the upgrade.
-     * 
- * - * string current_version = 4; - * @return The currentVersion. - */ - public java.lang.String getCurrentVersion() { - java.lang.Object ref = currentVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currentVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The current version before the upgrade.
-     * 
- * - * string current_version = 4; - * @return The bytes for currentVersion. - */ - public com.google.protobuf.ByteString - getCurrentVersionBytes() { - java.lang.Object ref = currentVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - currentVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The current version before the upgrade.
-     * 
- * - * string current_version = 4; - * @param value The currentVersion to set. - * @return This builder for chaining. - */ - public Builder setCurrentVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - currentVersion_ = value; - onChanged(); - return this; - } - /** - *
-     * The current version before the upgrade.
-     * 
- * - * string current_version = 4; - * @return This builder for chaining. - */ - public Builder clearCurrentVersion() { - - currentVersion_ = getDefaultInstance().getCurrentVersion(); - onChanged(); - return this; - } - /** - *
-     * The current version before the upgrade.
-     * 
- * - * string current_version = 4; - * @param value The bytes for currentVersion to set. - * @return This builder for chaining. - */ - public Builder setCurrentVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - currentVersion_ = value; - onChanged(); - return this; - } - - private java.lang.Object targetVersion_ = ""; - /** - *
-     * The target version for the upgrade.
-     * 
- * - * string target_version = 5; - * @return The targetVersion. - */ - public java.lang.String getTargetVersion() { - java.lang.Object ref = targetVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The target version for the upgrade.
-     * 
- * - * string target_version = 5; - * @return The bytes for targetVersion. - */ - public com.google.protobuf.ByteString - getTargetVersionBytes() { - java.lang.Object ref = targetVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - targetVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The target version for the upgrade.
-     * 
- * - * string target_version = 5; - * @param value The targetVersion to set. - * @return This builder for chaining. - */ - public Builder setTargetVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - targetVersion_ = value; - onChanged(); - return this; - } - /** - *
-     * The target version for the upgrade.
-     * 
- * - * string target_version = 5; - * @return This builder for chaining. - */ - public Builder clearTargetVersion() { - - targetVersion_ = getDefaultInstance().getTargetVersion(); - onChanged(); - return this; - } - /** - *
-     * The target version for the upgrade.
-     * 
- * - * string target_version = 5; - * @param value The bytes for targetVersion to set. - * @return This builder for chaining. - */ - public Builder setTargetVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - targetVersion_ = value; - onChanged(); - return this; - } - - private java.lang.Object resource_ = ""; - /** - *
-     * Optional relative path to the resource. For example in node pool upgrades,
-     * the relative path of the node pool.
-     * 
- * - * string resource = 6; - * @return The resource. - */ - public java.lang.String getResource() { - java.lang.Object ref = resource_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resource_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional relative path to the resource. For example in node pool upgrades,
-     * the relative path of the node pool.
-     * 
- * - * string resource = 6; - * @return The bytes for resource. - */ - public com.google.protobuf.ByteString - getResourceBytes() { - java.lang.Object ref = resource_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional relative path to the resource. For example in node pool upgrades,
-     * the relative path of the node pool.
-     * 
- * - * string resource = 6; - * @param value The resource to set. - * @return This builder for chaining. - */ - public Builder setResource( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - resource_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional relative path to the resource. For example in node pool upgrades,
-     * the relative path of the node pool.
-     * 
- * - * string resource = 6; - * @return This builder for chaining. - */ - public Builder clearResource() { - - resource_ = getDefaultInstance().getResource(); - onChanged(); - return this; - } - /** - *
-     * Optional relative path to the resource. For example in node pool upgrades,
-     * the relative path of the node pool.
-     * 
- * - * string resource = 6; - * @param value The bytes for resource to set. - * @return This builder for chaining. - */ - public Builder setResourceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - resource_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1.UpgradeEvent) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.UpgradeEvent) - private static final com.google.container.v1.UpgradeEvent DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1.UpgradeEvent(); - } - - public static com.google.container.v1.UpgradeEvent getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpgradeEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 270950ec4f17..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeEventOrBuilder.java +++ /dev/null @@ -1,137 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface UpgradeEventOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.UpgradeEvent) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The resource type that is upgrading.
-   * 
- * - * .google.container.v1.UpgradeResourceType resource_type = 1; - * @return The enum numeric value on the wire for resourceType. - */ - int getResourceTypeValue(); - /** - *
-   * The resource type that is upgrading.
-   * 
- * - * .google.container.v1.UpgradeResourceType resource_type = 1; - * @return The resourceType. - */ - com.google.container.v1.UpgradeResourceType getResourceType(); - - /** - *
-   * The operation associated with this upgrade.
-   * 
- * - * string operation = 2; - * @return The operation. - */ - java.lang.String getOperation(); - /** - *
-   * The operation associated with this upgrade.
-   * 
- * - * string operation = 2; - * @return The bytes for operation. - */ - com.google.protobuf.ByteString - getOperationBytes(); - - /** - *
-   * The time when the operation was started.
-   * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - * @return Whether the operationStartTime field is set. - */ - boolean hasOperationStartTime(); - /** - *
-   * The time when the operation was started.
-   * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - * @return The operationStartTime. - */ - com.google.protobuf.Timestamp getOperationStartTime(); - /** - *
-   * The time when the operation was started.
-   * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - */ - com.google.protobuf.TimestampOrBuilder getOperationStartTimeOrBuilder(); - - /** - *
-   * The current version before the upgrade.
-   * 
- * - * string current_version = 4; - * @return The currentVersion. - */ - java.lang.String getCurrentVersion(); - /** - *
-   * The current version before the upgrade.
-   * 
- * - * string current_version = 4; - * @return The bytes for currentVersion. - */ - com.google.protobuf.ByteString - getCurrentVersionBytes(); - - /** - *
-   * The target version for the upgrade.
-   * 
- * - * string target_version = 5; - * @return The targetVersion. - */ - java.lang.String getTargetVersion(); - /** - *
-   * The target version for the upgrade.
-   * 
- * - * string target_version = 5; - * @return The bytes for targetVersion. - */ - com.google.protobuf.ByteString - getTargetVersionBytes(); - - /** - *
-   * Optional relative path to the resource. For example in node pool upgrades,
-   * the relative path of the node pool.
-   * 
- * - * string resource = 6; - * @return The resource. - */ - java.lang.String getResource(); - /** - *
-   * Optional relative path to the resource. For example in node pool upgrades,
-   * the relative path of the node pool.
-   * 
- * - * string resource = 6; - * @return The bytes for resource. - */ - com.google.protobuf.ByteString - getResourceBytes(); -} diff --git a/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 deleted file mode 100644 index 70c269066f62..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeResourceType.java +++ /dev/null @@ -1,151 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * UpgradeResourceType is the resource type that is upgrading. It is used
- * in upgrade notifications.
- * 
- * - * Protobuf enum {@code google.container.v1.UpgradeResourceType} - */ -public enum UpgradeResourceType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * Default value. This shouldn't be used.
-   * 
- * - * UPGRADE_RESOURCE_TYPE_UNSPECIFIED = 0; - */ - UPGRADE_RESOURCE_TYPE_UNSPECIFIED(0), - /** - *
-   * Master / control plane
-   * 
- * - * MASTER = 1; - */ - MASTER(1), - /** - *
-   * Node pool
-   * 
- * - * NODE_POOL = 2; - */ - NODE_POOL(2), - UNRECOGNIZED(-1), - ; - - /** - *
-   * Default value. This shouldn't be used.
-   * 
- * - * UPGRADE_RESOURCE_TYPE_UNSPECIFIED = 0; - */ - public static final int UPGRADE_RESOURCE_TYPE_UNSPECIFIED_VALUE = 0; - /** - *
-   * Master / control plane
-   * 
- * - * MASTER = 1; - */ - public static final int MASTER_VALUE = 1; - /** - *
-   * Node pool
-   * 
- * - * NODE_POOL = 2; - */ - public static final int NODE_POOL_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static UpgradeResourceType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static UpgradeResourceType forNumber(int value) { - switch (value) { - case 0: return UPGRADE_RESOURCE_TYPE_UNSPECIFIED; - case 1: return MASTER; - case 2: return NODE_POOL; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - 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 deleted file mode 100644 index 27f9684ff407..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetwork.java +++ /dev/null @@ -1,1549 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - private volatile java.lang.Object subnetwork_; - /** - *
-   * Subnetwork Name.
-   * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
-   * 
- * - * string subnetwork = 1; - * @return The subnetwork. - */ - @java.lang.Override - public java.lang.String getSubnetwork() { - java.lang.Object ref = subnetwork_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subnetwork_ = s; - return s; - } - } - /** - *
-   * Subnetwork Name.
-   * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
-   * 
- * - * string subnetwork = 1; - * @return The bytes for subnetwork. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSubnetworkBytes() { - java.lang.Object ref = subnetwork_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - subnetwork_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NETWORK_FIELD_NUMBER = 2; - private volatile java.lang.Object network_; - /** - *
-   * Network Name.
-   * Example: projects/my-project/global/networks/my-network
-   * 
- * - * string network = 2; - * @return The network. - */ - @java.lang.Override - public java.lang.String getNetwork() { - java.lang.Object ref = network_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - network_ = s; - return s; - } - } - /** - *
-   * Network Name.
-   * Example: projects/my-project/global/networks/my-network
-   * 
- * - * string network = 2; - * @return The bytes for network. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNetworkBytes() { - java.lang.Object ref = network_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - network_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IP_CIDR_RANGE_FIELD_NUMBER = 3; - private volatile java.lang.Object ipCidrRange_; - /** - *
-   * The range of internal addresses that are owned by this subnetwork.
-   * 
- * - * string ip_cidr_range = 3; - * @return The ipCidrRange. - */ - @java.lang.Override - public java.lang.String getIpCidrRange() { - java.lang.Object ref = ipCidrRange_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ipCidrRange_ = s; - return s; - } - } - /** - *
-   * The range of internal addresses that are owned by this subnetwork.
-   * 
- * - * string ip_cidr_range = 3; - * @return The bytes for ipCidrRange. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIpCidrRangeBytes() { - java.lang.Object ref = ipCidrRange_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ipCidrRange_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SECONDARY_IP_RANGES_FIELD_NUMBER = 4; - private java.util.List secondaryIpRanges_; - /** - *
-   * Secondary IP ranges.
-   * 
- * - * repeated .google.container.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; - 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(); - subnetwork_ = ""; - - network_ = ""; - - ipCidrRange_ = ""; - - if (secondaryIpRangesBuilder_ == null) { - secondaryIpRanges_ = java.util.Collections.emptyList(); - } else { - secondaryIpRanges_ = null; - secondaryIpRangesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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); - int from_bitField0_ = bitField0_; - result.subnetwork_ = subnetwork_; - result.network_ = network_; - result.ipCidrRange_ = ipCidrRange_; - if (secondaryIpRangesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - secondaryIpRanges_ = java.util.Collections.unmodifiableList(secondaryIpRanges_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.secondaryIpRanges_ = secondaryIpRanges_; - } else { - result.secondaryIpRanges_ = secondaryIpRangesBuilder_.build(); - } - result.statusMessage_ = statusMessage_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getNetwork().isEmpty()) { - network_ = other.network_; - onChanged(); - } - if (!other.getIpCidrRange().isEmpty()) { - ipCidrRange_ = other.ipCidrRange_; - onChanged(); - } - if (secondaryIpRangesBuilder_ == null) { - if (!other.secondaryIpRanges_.isEmpty()) { - if (secondaryIpRanges_.isEmpty()) { - secondaryIpRanges_ = other.secondaryIpRanges_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSecondaryIpRangesIsMutable(); - secondaryIpRanges_.addAll(other.secondaryIpRanges_); - } - onChanged(); - } - } else { - if (!other.secondaryIpRanges_.isEmpty()) { - if (secondaryIpRangesBuilder_.isEmpty()) { - secondaryIpRangesBuilder_.dispose(); - secondaryIpRangesBuilder_ = null; - secondaryIpRanges_ = other.secondaryIpRanges_; - bitField0_ = (bitField0_ & ~0x00000001); - secondaryIpRangesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSecondaryIpRangesFieldBuilder() : null; - } else { - secondaryIpRangesBuilder_.addAllMessages(other.secondaryIpRanges_); - } - } - } - if (!other.getStatusMessage().isEmpty()) { - statusMessage_ = other.statusMessage_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - network_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - ipCidrRange_ = input.readStringRequireUtf8(); - - 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(); - - 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; - onChanged(); - return this; - } - /** - *
-     * Subnetwork Name.
-     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
-     * 
- * - * string subnetwork = 1; - * @return This builder for chaining. - */ - public Builder clearSubnetwork() { - - subnetwork_ = getDefaultInstance().getSubnetwork(); - onChanged(); - return this; - } - /** - *
-     * Subnetwork Name.
-     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
-     * 
- * - * string subnetwork = 1; - * @param value The bytes for subnetwork to set. - * @return This builder for chaining. - */ - public Builder setSubnetworkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - subnetwork_ = value; - onChanged(); - return this; - } - - private java.lang.Object network_ = ""; - /** - *
-     * Network Name.
-     * Example: projects/my-project/global/networks/my-network
-     * 
- * - * string network = 2; - * @return The network. - */ - public java.lang.String getNetwork() { - java.lang.Object ref = network_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - network_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Network Name.
-     * Example: projects/my-project/global/networks/my-network
-     * 
- * - * string network = 2; - * @return The bytes for network. - */ - public com.google.protobuf.ByteString - getNetworkBytes() { - java.lang.Object ref = network_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - network_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Network Name.
-     * Example: projects/my-project/global/networks/my-network
-     * 
- * - * string network = 2; - * @param value The network to set. - * @return This builder for chaining. - */ - public Builder setNetwork( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - network_ = value; - onChanged(); - return this; - } - /** - *
-     * Network Name.
-     * Example: projects/my-project/global/networks/my-network
-     * 
- * - * string network = 2; - * @return This builder for chaining. - */ - public Builder clearNetwork() { - - network_ = getDefaultInstance().getNetwork(); - onChanged(); - return this; - } - /** - *
-     * Network Name.
-     * Example: projects/my-project/global/networks/my-network
-     * 
- * - * string network = 2; - * @param value The bytes for network to set. - * @return This builder for chaining. - */ - public Builder setNetworkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - network_ = value; - onChanged(); - return this; - } - - private java.lang.Object ipCidrRange_ = ""; - /** - *
-     * The range of internal addresses that are owned by this subnetwork.
-     * 
- * - * string ip_cidr_range = 3; - * @return The ipCidrRange. - */ - public java.lang.String getIpCidrRange() { - java.lang.Object ref = ipCidrRange_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ipCidrRange_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The range of internal addresses that are owned by this subnetwork.
-     * 
- * - * string ip_cidr_range = 3; - * @return The bytes for ipCidrRange. - */ - public com.google.protobuf.ByteString - getIpCidrRangeBytes() { - java.lang.Object ref = ipCidrRange_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ipCidrRange_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The range of internal addresses that are owned by this subnetwork.
-     * 
- * - * string ip_cidr_range = 3; - * @param value The ipCidrRange to set. - * @return This builder for chaining. - */ - public Builder setIpCidrRange( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ipCidrRange_ = value; - onChanged(); - return this; - } - /** - *
-     * The range of internal addresses that are owned by this subnetwork.
-     * 
- * - * string ip_cidr_range = 3; - * @return This builder for chaining. - */ - public Builder clearIpCidrRange() { - - ipCidrRange_ = getDefaultInstance().getIpCidrRange(); - onChanged(); - return this; - } - /** - *
-     * The range of internal addresses that are owned by this subnetwork.
-     * 
- * - * string ip_cidr_range = 3; - * @param value The bytes for ipCidrRange to set. - * @return This builder for chaining. - */ - public Builder setIpCidrRangeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ipCidrRange_ = value; - onChanged(); - return this; - } - - private java.util.List secondaryIpRanges_ = - java.util.Collections.emptyList(); - private void ensureSecondaryIpRangesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - secondaryIpRanges_ = new java.util.ArrayList(secondaryIpRanges_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.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_ & ~0x00000001); - 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_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - secondaryIpRanges_ = null; - } - return secondaryIpRangesBuilder_; - } - - private java.lang.Object statusMessage_ = ""; - /** - *
-     * A human readable status message representing the reasons for cases where
-     * the caller cannot use the secondary ranges under the subnet. For example if
-     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
-     * permission message will be given by status_message.
-     * 
- * - * string status_message = 5; - * @return The statusMessage. - */ - public java.lang.String getStatusMessage() { - java.lang.Object ref = statusMessage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - statusMessage_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A human readable status message representing the reasons for cases where
-     * the caller cannot use the secondary ranges under the subnet. For example if
-     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
-     * permission message will be given by status_message.
-     * 
- * - * string status_message = 5; - * @return The bytes for statusMessage. - */ - public com.google.protobuf.ByteString - getStatusMessageBytes() { - java.lang.Object ref = statusMessage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - statusMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A human readable status message representing the reasons for cases where
-     * the caller cannot use the secondary ranges under the subnet. For example if
-     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
-     * permission message will be given by status_message.
-     * 
- * - * string status_message = 5; - * @param value The statusMessage to set. - * @return This builder for chaining. - */ - public Builder setStatusMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - statusMessage_ = value; - onChanged(); - return this; - } - /** - *
-     * A human readable status message representing the reasons for cases where
-     * the caller cannot use the secondary ranges under the subnet. For example if
-     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
-     * permission message will be given by status_message.
-     * 
- * - * string status_message = 5; - * @return This builder for chaining. - */ - public Builder clearStatusMessage() { - - statusMessage_ = getDefaultInstance().getStatusMessage(); - onChanged(); - return this; - } - /** - *
-     * A human readable status message representing the reasons for cases where
-     * the caller cannot use the secondary ranges under the subnet. For example if
-     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
-     * permission message will be given by status_message.
-     * 
- * - * string status_message = 5; - * @param value The bytes for statusMessage to set. - * @return This builder for chaining. - */ - public Builder setStatusMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - statusMessage_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index aff66f02a78b..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkOrBuilder.java +++ /dev/null @@ -1,143 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index 5fc19eb41747..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkSecondaryRange.java +++ /dev/null @@ -1,1056 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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 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.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; - private volatile java.lang.Object rangeName_; - /** - *
-   * The name associated with this subnetwork secondary range, used when adding
-   * an alias IP range to a VM instance.
-   * 
- * - * string range_name = 1; - * @return The rangeName. - */ - @java.lang.Override - public java.lang.String getRangeName() { - java.lang.Object ref = rangeName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rangeName_ = s; - return s; - } - } - /** - *
-   * The name associated with this subnetwork secondary range, used when adding
-   * an alias IP range to a VM instance.
-   * 
- * - * string range_name = 1; - * @return The bytes for rangeName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRangeNameBytes() { - java.lang.Object ref = rangeName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rangeName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IP_CIDR_RANGE_FIELD_NUMBER = 2; - private volatile java.lang.Object ipCidrRange_; - /** - *
-   * The range of IP addresses belonging to this subnetwork secondary range.
-   * 
- * - * string ip_cidr_range = 2; - * @return The ipCidrRange. - */ - @java.lang.Override - public java.lang.String getIpCidrRange() { - java.lang.Object ref = ipCidrRange_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ipCidrRange_ = s; - return s; - } - } - /** - *
-   * The range of IP addresses belonging to this subnetwork secondary range.
-   * 
- * - * string ip_cidr_range = 2; - * @return The bytes for ipCidrRange. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIpCidrRangeBytes() { - java.lang.Object ref = ipCidrRange_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ipCidrRange_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_FIELD_NUMBER = 3; - private int status_; - /** - *
-   * This field is to determine the status of the secondary range programmably.
-   * 
- * - * .google.container.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() { - @SuppressWarnings("deprecation") - com.google.container.v1.UsableSubnetworkSecondaryRange.Status result = com.google.container.v1.UsableSubnetworkSecondaryRange.Status.valueOf(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(); - 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); - result.rangeName_ = rangeName_; - result.ipCidrRange_ = ipCidrRange_; - result.status_ = status_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - if (!other.getIpCidrRange().isEmpty()) { - ipCidrRange_ = other.ipCidrRange_; - 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(); - - break; - } // case 10 - case 18: { - ipCidrRange_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: { - status_ = input.readEnum(); - - 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 java.lang.Object rangeName_ = ""; - /** - *
-     * The name associated with this subnetwork secondary range, used when adding
-     * an alias IP range to a VM instance.
-     * 
- * - * string range_name = 1; - * @return The rangeName. - */ - public java.lang.String getRangeName() { - java.lang.Object ref = rangeName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rangeName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name associated with this subnetwork secondary range, used when adding
-     * an alias IP range to a VM instance.
-     * 
- * - * string range_name = 1; - * @return The bytes for rangeName. - */ - public com.google.protobuf.ByteString - getRangeNameBytes() { - java.lang.Object ref = rangeName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rangeName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name associated with this subnetwork secondary range, used when adding
-     * an alias IP range to a VM instance.
-     * 
- * - * string range_name = 1; - * @param value The rangeName to set. - * @return This builder for chaining. - */ - public Builder setRangeName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - rangeName_ = value; - onChanged(); - return this; - } - /** - *
-     * The name associated with this subnetwork secondary range, used when adding
-     * an alias IP range to a VM instance.
-     * 
- * - * string range_name = 1; - * @return This builder for chaining. - */ - public Builder clearRangeName() { - - rangeName_ = getDefaultInstance().getRangeName(); - onChanged(); - return this; - } - /** - *
-     * The name associated with this subnetwork secondary range, used when adding
-     * an alias IP range to a VM instance.
-     * 
- * - * string range_name = 1; - * @param value The bytes for rangeName to set. - * @return This builder for chaining. - */ - public Builder setRangeNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - rangeName_ = value; - onChanged(); - return this; - } - - private java.lang.Object ipCidrRange_ = ""; - /** - *
-     * The range of IP addresses belonging to this subnetwork secondary range.
-     * 
- * - * string ip_cidr_range = 2; - * @return The ipCidrRange. - */ - public java.lang.String getIpCidrRange() { - java.lang.Object ref = ipCidrRange_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ipCidrRange_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The range of IP addresses belonging to this subnetwork secondary range.
-     * 
- * - * string ip_cidr_range = 2; - * @return The bytes for ipCidrRange. - */ - public com.google.protobuf.ByteString - getIpCidrRangeBytes() { - java.lang.Object ref = ipCidrRange_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ipCidrRange_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The range of IP addresses belonging to this subnetwork secondary range.
-     * 
- * - * string ip_cidr_range = 2; - * @param value The ipCidrRange to set. - * @return This builder for chaining. - */ - public Builder setIpCidrRange( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ipCidrRange_ = value; - onChanged(); - return this; - } - /** - *
-     * The range of IP addresses belonging to this subnetwork secondary range.
-     * 
- * - * string ip_cidr_range = 2; - * @return This builder for chaining. - */ - public Builder clearIpCidrRange() { - - ipCidrRange_ = getDefaultInstance().getIpCidrRange(); - onChanged(); - return this; - } - /** - *
-     * The range of IP addresses belonging to this subnetwork secondary range.
-     * 
- * - * string ip_cidr_range = 2; - * @param value The bytes for ipCidrRange to set. - * @return This builder for chaining. - */ - public Builder setIpCidrRangeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ipCidrRange_ = value; - onChanged(); - return this; - } - - private int status_ = 0; - /** - *
-     * This field is to determine the status of the secondary range programmably.
-     * 
- * - * .google.container.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; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1.UsableSubnetworkSecondaryRange.Status result = com.google.container.v1.UsableSubnetworkSecondaryRange.Status.valueOf(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(); - } - - 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() { - - 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 deleted file mode 100644 index 5f4ddb9cce63..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkSecondaryRangeOrBuilder.java +++ /dev/null @@ -1,70 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index 89610a6fa869..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VerticalPodAutoscaling.java +++ /dev/null @@ -1,494 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * 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(); - 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); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.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(); - - 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 boolean enabled_ ; - /** - *
-     * Enables vertical pod autoscaling.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Enables vertical pod autoscaling.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Enables vertical pod autoscaling.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index 5ff0bcd48680..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VerticalPodAutoscalingOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -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 deleted file mode 100644 index af385c5ee452..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VirtualNIC.java +++ /dev/null @@ -1,490 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * Configuration of gVNIC feature.
- * 
- * - * Protobuf type {@code google.container.v1.VirtualNIC} - */ -public final class VirtualNIC extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.VirtualNIC) - VirtualNICOrBuilder { -private static final long serialVersionUID = 0L; - // Use VirtualNIC.newBuilder() to construct. - private VirtualNIC(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private VirtualNIC() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new VirtualNIC(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_VirtualNIC_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_VirtualNIC_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.VirtualNIC.class, com.google.container.v1.VirtualNIC.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-   * Whether gVNIC features are enabled in the node pool.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - 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(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_VirtualNIC_descriptor; - } - - @java.lang.Override - public com.google.container.v1.VirtualNIC getDefaultInstanceForType() { - return com.google.container.v1.VirtualNIC.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.VirtualNIC build() { - com.google.container.v1.VirtualNIC result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.VirtualNIC buildPartial() { - com.google.container.v1.VirtualNIC result = new com.google.container.v1.VirtualNIC(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.VirtualNIC) { - return mergeFrom((com.google.container.v1.VirtualNIC)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.VirtualNIC other) { - if (other == com.google.container.v1.VirtualNIC.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 boolean enabled_ ; - /** - *
-     * Whether gVNIC features are enabled in the node pool.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Whether gVNIC features are enabled in the node pool.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether gVNIC features are enabled in the node pool.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1.VirtualNIC) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.VirtualNIC) - private static final com.google.container.v1.VirtualNIC DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1.VirtualNIC(); - } - - public static com.google.container.v1.VirtualNIC getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VirtualNIC parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index c662317b6743..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VirtualNICOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface VirtualNICOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.VirtualNIC) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether gVNIC features are enabled in the node pool.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/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 deleted file mode 100644 index 84a3091f014f..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadIdentityConfig.java +++ /dev/null @@ -1,576 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * Configuration for the use of Kubernetes Service Accounts in GCP IAM
- * policies.
- * 
- * - * Protobuf type {@code google.container.v1.WorkloadIdentityConfig} - */ -public final class WorkloadIdentityConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.WorkloadIdentityConfig) - WorkloadIdentityConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use WorkloadIdentityConfig.newBuilder() to construct. - private WorkloadIdentityConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkloadIdentityConfig() { - workloadPool_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WorkloadIdentityConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_WorkloadIdentityConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_WorkloadIdentityConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.WorkloadIdentityConfig.class, com.google.container.v1.WorkloadIdentityConfig.Builder.class); - } - - public static final int WORKLOAD_POOL_FIELD_NUMBER = 2; - private volatile java.lang.Object workloadPool_; - /** - *
-   * The workload pool to attach all Kubernetes service accounts to.
-   * 
- * - * string workload_pool = 2; - * @return The workloadPool. - */ - @java.lang.Override - public java.lang.String getWorkloadPool() { - java.lang.Object ref = workloadPool_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workloadPool_ = s; - return s; - } - } - /** - *
-   * The workload pool to attach all Kubernetes service accounts to.
-   * 
- * - * string workload_pool = 2; - * @return The bytes for workloadPool. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getWorkloadPoolBytes() { - java.lang.Object ref = workloadPool_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workloadPool_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - workloadPool_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_WorkloadIdentityConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.WorkloadIdentityConfig getDefaultInstanceForType() { - return com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.WorkloadIdentityConfig build() { - com.google.container.v1.WorkloadIdentityConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.WorkloadIdentityConfig buildPartial() { - com.google.container.v1.WorkloadIdentityConfig result = new com.google.container.v1.WorkloadIdentityConfig(this); - result.workloadPool_ = workloadPool_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.WorkloadIdentityConfig) { - return mergeFrom((com.google.container.v1.WorkloadIdentityConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.WorkloadIdentityConfig other) { - if (other == com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance()) return this; - if (!other.getWorkloadPool().isEmpty()) { - workloadPool_ = other.workloadPool_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == 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(); - - 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 java.lang.Object workloadPool_ = ""; - /** - *
-     * The workload pool to attach all Kubernetes service accounts to.
-     * 
- * - * string workload_pool = 2; - * @return The workloadPool. - */ - public java.lang.String getWorkloadPool() { - java.lang.Object ref = workloadPool_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workloadPool_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The workload pool to attach all Kubernetes service accounts to.
-     * 
- * - * string workload_pool = 2; - * @return The bytes for workloadPool. - */ - public com.google.protobuf.ByteString - getWorkloadPoolBytes() { - java.lang.Object ref = workloadPool_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workloadPool_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The workload pool to attach all Kubernetes service accounts to.
-     * 
- * - * string workload_pool = 2; - * @param value The workloadPool to set. - * @return This builder for chaining. - */ - public Builder setWorkloadPool( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - workloadPool_ = value; - onChanged(); - return this; - } - /** - *
-     * The workload pool to attach all Kubernetes service accounts to.
-     * 
- * - * string workload_pool = 2; - * @return This builder for chaining. - */ - public Builder clearWorkloadPool() { - - workloadPool_ = getDefaultInstance().getWorkloadPool(); - onChanged(); - return this; - } - /** - *
-     * The workload pool to attach all Kubernetes service accounts to.
-     * 
- * - * string workload_pool = 2; - * @param value The bytes for workloadPool to set. - * @return This builder for chaining. - */ - public Builder setWorkloadPoolBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - workloadPool_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1.WorkloadIdentityConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.WorkloadIdentityConfig) - private static final com.google.container.v1.WorkloadIdentityConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1.WorkloadIdentityConfig(); - } - - public static com.google.container.v1.WorkloadIdentityConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkloadIdentityConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 499e602573f7..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadIdentityConfigOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface WorkloadIdentityConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.WorkloadIdentityConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The workload pool to attach all Kubernetes service accounts to.
-   * 
- * - * string workload_pool = 2; - * @return The workloadPool. - */ - java.lang.String getWorkloadPool(); - /** - *
-   * The workload pool to attach all Kubernetes service accounts to.
-   * 
- * - * string workload_pool = 2; - * @return The bytes for workloadPool. - */ - com.google.protobuf.ByteString - getWorkloadPoolBytes(); -} diff --git a/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 deleted file mode 100644 index b82828e7f906..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadMetadataConfig.java +++ /dev/null @@ -1,695 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - *
- * WorkloadMetadataConfig defines the metadata configuration to expose to
- * workloads on the node pool.
- * 
- * - * Protobuf type {@code google.container.v1.WorkloadMetadataConfig} - */ -public final class WorkloadMetadataConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1.WorkloadMetadataConfig) - WorkloadMetadataConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use WorkloadMetadataConfig.newBuilder() to construct. - private WorkloadMetadataConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkloadMetadataConfig() { - mode_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WorkloadMetadataConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * Mode is the configuration for how to expose metadata to workloads running
-   * on the node pool.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; - * @return The enum numeric value on the wire for mode. - */ - @java.lang.Override public int getModeValue() { - return mode_; - } - /** - *
-   * Mode is the configuration for how to expose metadata to workloads running
-   * on the node pool.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; - * @return The mode. - */ - @java.lang.Override public com.google.container.v1.WorkloadMetadataConfig.Mode getMode() { - @SuppressWarnings("deprecation") - com.google.container.v1.WorkloadMetadataConfig.Mode result = com.google.container.v1.WorkloadMetadataConfig.Mode.valueOf(mode_); - return result == null ? com.google.container.v1.WorkloadMetadataConfig.Mode.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (mode_ != com.google.container.v1.WorkloadMetadataConfig.Mode.MODE_UNSPECIFIED.getNumber()) { - output.writeEnum(2, mode_); - } - 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(); - mode_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_WorkloadMetadataConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.WorkloadMetadataConfig getDefaultInstanceForType() { - return com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.WorkloadMetadataConfig build() { - com.google.container.v1.WorkloadMetadataConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.WorkloadMetadataConfig buildPartial() { - com.google.container.v1.WorkloadMetadataConfig result = new com.google.container.v1.WorkloadMetadataConfig(this); - result.mode_ = mode_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.WorkloadMetadataConfig) { - return mergeFrom((com.google.container.v1.WorkloadMetadataConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.WorkloadMetadataConfig other) { - if (other == com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance()) return this; - if (other.mode_ != 0) { - setModeValue(other.getModeValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == 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(); - - 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 mode_ = 0; - /** - *
-     * Mode is the configuration for how to expose metadata to workloads running
-     * on the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; - * @return The enum numeric value on the wire for mode. - */ - @java.lang.Override public int getModeValue() { - return mode_; - } - /** - *
-     * Mode is the configuration for how to expose metadata to workloads running
-     * on the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; - * @param value The enum numeric value on the wire for mode to set. - * @return This builder for chaining. - */ - public Builder setModeValue(int value) { - - mode_ = value; - onChanged(); - return this; - } - /** - *
-     * Mode is the configuration for how to expose metadata to workloads running
-     * on the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; - * @return The mode. - */ - @java.lang.Override - public com.google.container.v1.WorkloadMetadataConfig.Mode getMode() { - @SuppressWarnings("deprecation") - com.google.container.v1.WorkloadMetadataConfig.Mode result = com.google.container.v1.WorkloadMetadataConfig.Mode.valueOf(mode_); - return result == null ? com.google.container.v1.WorkloadMetadataConfig.Mode.UNRECOGNIZED : result; - } - /** - *
-     * Mode is the configuration for how to expose metadata to workloads running
-     * on the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; - * @param value The mode to set. - * @return This builder for chaining. - */ - public Builder setMode(com.google.container.v1.WorkloadMetadataConfig.Mode value) { - if (value == null) { - throw new NullPointerException(); - } - - mode_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Mode is the configuration for how to expose metadata to workloads running
-     * on the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; - * @return This builder for chaining. - */ - public Builder clearMode() { - - mode_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1.WorkloadMetadataConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.WorkloadMetadataConfig) - private static final com.google.container.v1.WorkloadMetadataConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1.WorkloadMetadataConfig(); - } - - public static com.google.container.v1.WorkloadMetadataConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkloadMetadataConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 00308faac843..000000000000 --- a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadMetadataConfigOrBuilder.java +++ /dev/null @@ -1,30 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface WorkloadMetadataConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1.WorkloadMetadataConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Mode is the configuration for how to expose metadata to workloads running
-   * on the node pool.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; - * @return The enum numeric value on the wire for mode. - */ - int getModeValue(); - /** - *
-   * Mode is the configuration for how to expose metadata to workloads running
-   * on the node pool.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; - * @return The mode. - */ - com.google.container.v1.WorkloadMetadataConfig.Mode getMode(); -} diff --git a/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 deleted file mode 100644 index 67bd5a8270e1..000000000000 --- a/owl-bot-staging/java-container/v1beta1/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerSettings.java +++ /dev/null @@ -1,600 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.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 listNodePools. */ - public UnaryCallSettings listNodePoolsSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).listNodePoolsSettings(); - } - - /** Returns the object with the settings used for calls to getJSONWebKeys. */ - public UnaryCallSettings getJSONWebKeysSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).getJSONWebKeysSettings(); - } - - /** Returns the object with the settings used for calls to getNodePool. */ - public UnaryCallSettings getNodePoolSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).getNodePoolSettings(); - } - - /** Returns the object with the settings used for calls to createNodePool. */ - public UnaryCallSettings createNodePoolSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).createNodePoolSettings(); - } - - /** Returns the object with the settings used for calls to deleteNodePool. */ - public UnaryCallSettings deleteNodePoolSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).deleteNodePoolSettings(); - } - - /** Returns the object with the settings used for calls to 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 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 listNodePools. */ - public UnaryCallSettings.Builder - listNodePoolsSettings() { - return getStubSettingsBuilder().listNodePoolsSettings(); - } - - /** Returns the builder for the settings used for calls to getJSONWebKeys. */ - public UnaryCallSettings.Builder - getJSONWebKeysSettings() { - return getStubSettingsBuilder().getJSONWebKeysSettings(); - } - - /** Returns the builder for the settings used for calls to getNodePool. */ - public UnaryCallSettings.Builder getNodePoolSettings() { - return getStubSettingsBuilder().getNodePoolSettings(); - } - - /** Returns the builder for the settings used for calls to createNodePool. */ - public UnaryCallSettings.Builder createNodePoolSettings() { - return getStubSettingsBuilder().createNodePoolSettings(); - } - - /** Returns the builder for the settings used for calls to deleteNodePool. */ - public UnaryCallSettings.Builder deleteNodePoolSettings() { - return getStubSettingsBuilder().deleteNodePoolSettings(); - } - - /** Returns the builder for the settings used for calls to 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 listLocations. */ - public UnaryCallSettings.Builder - listLocationsSettings() { - return getStubSettingsBuilder().listLocationsSettings(); - } - - @Override - public ClusterManagerSettings build() throws IOException { - return new ClusterManagerSettings(this); - } - } -} 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 deleted file mode 100644 index a342ed55a570..000000000000 --- a/owl-bot-staging/java-container/v1beta1/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/GrpcClusterManagerStub.java +++ /dev/null @@ -1,1302 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.UnaryCallable; -import com.google.common.collect.ImmutableMap; -import com.google.container.v1beta1.CancelOperationRequest; -import com.google.container.v1beta1.Cluster; -import com.google.container.v1beta1.CompleteIPRotationRequest; -import com.google.container.v1beta1.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 - listNodePoolsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1beta1.ClusterManager/ListNodePools") - .setRequestMarshaller( - ProtoUtils.marshaller(ListNodePoolsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListNodePoolsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getJSONWebKeysMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1beta1.ClusterManager/GetJSONWebKeys") - .setRequestMarshaller( - ProtoUtils.marshaller(GetJSONWebKeysRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(GetJSONWebKeysResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getNodePoolMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1beta1.ClusterManager/GetNodePool") - .setRequestMarshaller(ProtoUtils.marshaller(GetNodePoolRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(NodePool.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createNodePoolMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1beta1.ClusterManager/CreateNodePool") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateNodePoolRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteNodePoolMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1beta1.ClusterManager/DeleteNodePool") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteNodePoolRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - 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 - listLocationsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1beta1.ClusterManager/ListLocations") - .setRequestMarshaller( - ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) - .build(); - - private final UnaryCallable listClustersCallable; - private final UnaryCallable getClusterCallable; - private final UnaryCallable createClusterCallable; - private final UnaryCallable updateClusterCallable; - private final UnaryCallable updateNodePoolCallable; - private final UnaryCallable - setNodePoolAutoscalingCallable; - private final UnaryCallable setLoggingServiceCallable; - private final UnaryCallable setMonitoringServiceCallable; - private final UnaryCallable setAddonsConfigCallable; - private final UnaryCallable setLocationsCallable; - private final UnaryCallable updateMasterCallable; - private final UnaryCallable setMasterAuthCallable; - private final UnaryCallable deleteClusterCallable; - private final UnaryCallable listOperationsCallable; - private final UnaryCallable getOperationCallable; - private final UnaryCallable cancelOperationCallable; - private final UnaryCallable getServerConfigCallable; - private final UnaryCallable listNodePoolsCallable; - private final UnaryCallable getJSONWebKeysCallable; - private final UnaryCallable getNodePoolCallable; - private final UnaryCallable createNodePoolCallable; - private final UnaryCallable deleteNodePoolCallable; - private final UnaryCallable - 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 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 -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings getClusterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getClusterMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings createClusterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createClusterMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings updateClusterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateClusterMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings updateNodePoolTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateNodePoolMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("node_pool_id", String.valueOf(request.getNodePoolId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings - setNodePoolAutoscalingTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setNodePoolAutoscalingMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("node_pool_id", String.valueOf(request.getNodePoolId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings setLoggingServiceTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setLoggingServiceMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings setMonitoringServiceTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setMonitoringServiceMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings setAddonsConfigTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setAddonsConfigMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings setLocationsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setLocationsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings updateMasterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateMasterMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings setMasterAuthTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setMasterAuthMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteClusterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteClusterMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings - listOperationsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listOperationsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings getOperationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getOperationMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - params.put("operation_id", String.valueOf(request.getOperationId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings cancelOperationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(cancelOperationMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - params.put("operation_id", String.valueOf(request.getOperationId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings getServerConfigTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getServerConfigMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings listNodePoolsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listNodePoolsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("parent", String.valueOf(request.getParent())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings - getJSONWebKeysTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getJSONWebKeysMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings getNodePoolTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getNodePoolMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("node_pool_id", String.valueOf(request.getNodePoolId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings createNodePoolTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createNodePoolMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("parent", String.valueOf(request.getParent())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteNodePoolTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteNodePoolMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("node_pool_id", String.valueOf(request.getNodePoolId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings - completeNodePoolUpgradeTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(completeNodePoolUpgradeMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - rollbackNodePoolUpgradeTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(rollbackNodePoolUpgradeMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("node_pool_id", String.valueOf(request.getNodePoolId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings - setNodePoolManagementTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setNodePoolManagementMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("node_pool_id", String.valueOf(request.getNodePoolId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings setLabelsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setLabelsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings setLegacyAbacTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setLegacyAbacMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings startIPRotationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(startIPRotationMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings completeIPRotationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(completeIPRotationMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings setNodePoolSizeTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setNodePoolSizeMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("node_pool_id", String.valueOf(request.getNodePoolId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings setNetworkPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setNetworkPolicyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings setMaintenancePolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setMaintenancePolicyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - }) - .build(); - GrpcCallSettings - listUsableSubnetworksTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(listUsableSubnetworksMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings listLocationsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listLocationsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - - this.listClustersCallable = - callableFactory.createUnaryCallable( - listClustersTransportSettings, settings.listClustersSettings(), clientContext); - this.getClusterCallable = - callableFactory.createUnaryCallable( - getClusterTransportSettings, settings.getClusterSettings(), clientContext); - this.createClusterCallable = - callableFactory.createUnaryCallable( - createClusterTransportSettings, settings.createClusterSettings(), clientContext); - this.updateClusterCallable = - callableFactory.createUnaryCallable( - updateClusterTransportSettings, settings.updateClusterSettings(), clientContext); - this.updateNodePoolCallable = - callableFactory.createUnaryCallable( - updateNodePoolTransportSettings, settings.updateNodePoolSettings(), clientContext); - this.setNodePoolAutoscalingCallable = - callableFactory.createUnaryCallable( - setNodePoolAutoscalingTransportSettings, - settings.setNodePoolAutoscalingSettings(), - clientContext); - this.setLoggingServiceCallable = - callableFactory.createUnaryCallable( - setLoggingServiceTransportSettings, - settings.setLoggingServiceSettings(), - clientContext); - this.setMonitoringServiceCallable = - callableFactory.createUnaryCallable( - setMonitoringServiceTransportSettings, - settings.setMonitoringServiceSettings(), - clientContext); - this.setAddonsConfigCallable = - callableFactory.createUnaryCallable( - setAddonsConfigTransportSettings, settings.setAddonsConfigSettings(), clientContext); - this.setLocationsCallable = - callableFactory.createUnaryCallable( - setLocationsTransportSettings, settings.setLocationsSettings(), clientContext); - this.updateMasterCallable = - callableFactory.createUnaryCallable( - updateMasterTransportSettings, settings.updateMasterSettings(), clientContext); - this.setMasterAuthCallable = - callableFactory.createUnaryCallable( - setMasterAuthTransportSettings, settings.setMasterAuthSettings(), clientContext); - this.deleteClusterCallable = - callableFactory.createUnaryCallable( - deleteClusterTransportSettings, settings.deleteClusterSettings(), clientContext); - this.listOperationsCallable = - callableFactory.createUnaryCallable( - listOperationsTransportSettings, settings.listOperationsSettings(), clientContext); - this.getOperationCallable = - callableFactory.createUnaryCallable( - getOperationTransportSettings, settings.getOperationSettings(), clientContext); - this.cancelOperationCallable = - callableFactory.createUnaryCallable( - cancelOperationTransportSettings, settings.cancelOperationSettings(), clientContext); - this.getServerConfigCallable = - callableFactory.createUnaryCallable( - getServerConfigTransportSettings, settings.getServerConfigSettings(), clientContext); - this.listNodePoolsCallable = - callableFactory.createUnaryCallable( - listNodePoolsTransportSettings, settings.listNodePoolsSettings(), clientContext); - this.getJSONWebKeysCallable = - callableFactory.createUnaryCallable( - getJSONWebKeysTransportSettings, settings.getJSONWebKeysSettings(), clientContext); - this.getNodePoolCallable = - callableFactory.createUnaryCallable( - getNodePoolTransportSettings, settings.getNodePoolSettings(), clientContext); - this.createNodePoolCallable = - callableFactory.createUnaryCallable( - createNodePoolTransportSettings, settings.createNodePoolSettings(), clientContext); - this.deleteNodePoolCallable = - callableFactory.createUnaryCallable( - deleteNodePoolTransportSettings, settings.deleteNodePoolSettings(), clientContext); - this.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.listLocationsCallable = - callableFactory.createUnaryCallable( - listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable listClustersCallable() { - return listClustersCallable; - } - - @Override - public UnaryCallable getClusterCallable() { - return getClusterCallable; - } - - @Override - public UnaryCallable createClusterCallable() { - return createClusterCallable; - } - - @Override - public UnaryCallable updateClusterCallable() { - return updateClusterCallable; - } - - @Override - public UnaryCallable updateNodePoolCallable() { - return updateNodePoolCallable; - } - - @Override - public UnaryCallable setNodePoolAutoscalingCallable() { - return setNodePoolAutoscalingCallable; - } - - @Override - public UnaryCallable setLoggingServiceCallable() { - return setLoggingServiceCallable; - } - - @Override - public UnaryCallable setMonitoringServiceCallable() { - return setMonitoringServiceCallable; - } - - @Override - public UnaryCallable setAddonsConfigCallable() { - return setAddonsConfigCallable; - } - - @Override - public UnaryCallable setLocationsCallable() { - return setLocationsCallable; - } - - @Override - public UnaryCallable updateMasterCallable() { - return updateMasterCallable; - } - - @Override - public UnaryCallable setMasterAuthCallable() { - return setMasterAuthCallable; - } - - @Override - public UnaryCallable deleteClusterCallable() { - return deleteClusterCallable; - } - - @Override - public UnaryCallable listOperationsCallable() { - return listOperationsCallable; - } - - @Override - public UnaryCallable getOperationCallable() { - return getOperationCallable; - } - - @Override - public UnaryCallable cancelOperationCallable() { - return cancelOperationCallable; - } - - @Override - public UnaryCallable getServerConfigCallable() { - return getServerConfigCallable; - } - - @Override - public UnaryCallable listNodePoolsCallable() { - return listNodePoolsCallable; - } - - @Override - public UnaryCallable getJSONWebKeysCallable() { - return getJSONWebKeysCallable; - } - - @Override - public UnaryCallable getNodePoolCallable() { - return getNodePoolCallable; - } - - @Override - public UnaryCallable createNodePoolCallable() { - return createNodePoolCallable; - } - - @Override - public UnaryCallable deleteNodePoolCallable() { - return deleteNodePoolCallable; - } - - @Override - public UnaryCallable 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 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/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 deleted file mode 100644 index 0251a0b314c5..000000000000 --- a/owl-bot-staging/java-container/v1beta1/grpc-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterManagerGrpc.java +++ /dev/null @@ -1,3261 +0,0 @@ -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 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 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 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 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 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 static abstract class ClusterManagerImplBase implements io.grpc.BindableService { - - /** - *
-     * Lists all clusters owned by a project in either the specified zone or all
-     * zones.
-     * 
- */ - public void listClusters(com.google.container.v1beta1.ListClustersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListClustersMethod(), responseObserver); - } - - /** - *
-     * Gets the details for a specific cluster.
-     * 
- */ - public void getCluster(com.google.container.v1beta1.GetClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetClusterMethod(), responseObserver); - } - - /** - *
-     * Creates a cluster, consisting of the specified number and type of Google
-     * Compute Engine instances.
-     * By default, the cluster is created in the project's
-     * [default
-     * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks).
-     * One firewall is added for the cluster. After cluster creation,
-     * the Kubelet creates routes for each node to allow the containers
-     * on that node to communicate with all other instances in the
-     * cluster.
-     * Finally, an entry is added to the project's global metadata indicating
-     * which CIDR range the cluster is using.
-     * 
- */ - public void createCluster(com.google.container.v1beta1.CreateClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateClusterMethod(), responseObserver); - } - - /** - *
-     * Updates the settings for a specific cluster.
-     * 
- */ - public void updateCluster(com.google.container.v1beta1.UpdateClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateClusterMethod(), responseObserver); - } - - /** - *
-     * Updates the version and/or image type of a specific node pool.
-     * 
- */ - public void updateNodePool(com.google.container.v1beta1.UpdateNodePoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateNodePoolMethod(), responseObserver); - } - - /** - *
-     * Sets the autoscaling settings of a specific node pool.
-     * 
- */ - public void setNodePoolAutoscaling(com.google.container.v1beta1.SetNodePoolAutoscalingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetNodePoolAutoscalingMethod(), responseObserver); - } - - /** - *
-     * Sets the logging service for a specific cluster.
-     * 
- */ - public void setLoggingService(com.google.container.v1beta1.SetLoggingServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetLoggingServiceMethod(), responseObserver); - } - - /** - *
-     * Sets the monitoring service for a specific cluster.
-     * 
- */ - public void setMonitoringService(com.google.container.v1beta1.SetMonitoringServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetMonitoringServiceMethod(), responseObserver); - } - - /** - *
-     * Sets the addons for a specific cluster.
-     * 
- */ - public void setAddonsConfig(com.google.container.v1beta1.SetAddonsConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetAddonsConfigMethod(), responseObserver); - } - - /** - *
-     * Sets the locations for a specific cluster.
-     * Deprecated. Use
-     * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters/update)
-     * instead.
-     * 
- */ - @java.lang.Deprecated - public void setLocations(com.google.container.v1beta1.SetLocationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetLocationsMethod(), responseObserver); - } - - /** - *
-     * Updates the master for a specific cluster.
-     * 
- */ - public void updateMaster(com.google.container.v1beta1.UpdateMasterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateMasterMethod(), responseObserver); - } - - /** - *
-     * Sets master auth materials. Currently supports changing the admin password
-     * or a specific cluster, either via password generation or explicitly setting
-     * the password.
-     * 
- */ - public void setMasterAuth(com.google.container.v1beta1.SetMasterAuthRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetMasterAuthMethod(), responseObserver); - } - - /** - *
-     * Deletes the cluster, including the Kubernetes endpoint and all worker
-     * nodes.
-     * Firewalls and routes that were configured during cluster creation
-     * are also deleted.
-     * Other Google Compute Engine resources that might be in use by the cluster,
-     * such as load balancer resources, are not deleted if they weren't present
-     * when the cluster was initially created.
-     * 
- */ - public void deleteCluster(com.google.container.v1beta1.DeleteClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteClusterMethod(), responseObserver); - } - - /** - *
-     * Lists all operations in a project in the specified zone or all zones.
-     * 
- */ - public void listOperations(com.google.container.v1beta1.ListOperationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListOperationsMethod(), responseObserver); - } - - /** - *
-     * Gets the specified operation.
-     * 
- */ - public void getOperation(com.google.container.v1beta1.GetOperationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetOperationMethod(), responseObserver); - } - - /** - *
-     * Cancels the specified operation.
-     * 
- */ - public void cancelOperation(com.google.container.v1beta1.CancelOperationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCancelOperationMethod(), responseObserver); - } - - /** - *
-     * Returns configuration info about the Google Kubernetes Engine service.
-     * 
- */ - public void getServerConfig(com.google.container.v1beta1.GetServerConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetServerConfigMethod(), responseObserver); - } - - /** - *
-     * Lists the node pools for a cluster.
-     * 
- */ - public void listNodePools(com.google.container.v1beta1.ListNodePoolsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNodePoolsMethod(), responseObserver); - } - - /** - *
-     * Gets the public component of the cluster signing keys in
-     * JSON Web Key format.
-     * This API is not yet intended for general use, and is not available for all
-     * clusters.
-     * 
- */ - public void getJSONWebKeys(com.google.container.v1beta1.GetJSONWebKeysRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetJSONWebKeysMethod(), responseObserver); - } - - /** - *
-     * Retrieves the requested node pool.
-     * 
- */ - public void getNodePool(com.google.container.v1beta1.GetNodePoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNodePoolMethod(), responseObserver); - } - - /** - *
-     * Creates a node pool for a cluster.
-     * 
- */ - public void createNodePool(com.google.container.v1beta1.CreateNodePoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateNodePoolMethod(), responseObserver); - } - - /** - *
-     * Deletes a node pool from a cluster.
-     * 
- */ - public void deleteNodePool(com.google.container.v1beta1.DeleteNodePoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteNodePoolMethod(), responseObserver); - } - - /** - *
-     * 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.ServerCalls.asyncUnimplementedUnaryCall(getCompleteNodePoolUpgradeMethod(), responseObserver); - } - - /** - *
-     * Rolls back a previously Aborted or Failed NodePool upgrade.
-     * This makes no changes if the last upgrade successfully completed.
-     * 
- */ - public void rollbackNodePoolUpgrade(com.google.container.v1beta1.RollbackNodePoolUpgradeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRollbackNodePoolUpgradeMethod(), responseObserver); - } - - /** - *
-     * Sets the NodeManagement options for a node pool.
-     * 
- */ - public void setNodePoolManagement(com.google.container.v1beta1.SetNodePoolManagementRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetNodePoolManagementMethod(), responseObserver); - } - - /** - *
-     * Sets labels on a cluster.
-     * 
- */ - public void setLabels(com.google.container.v1beta1.SetLabelsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetLabelsMethod(), responseObserver); - } - - /** - *
-     * Enables or disables the ABAC authorization mechanism on a cluster.
-     * 
- */ - public void setLegacyAbac(com.google.container.v1beta1.SetLegacyAbacRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetLegacyAbacMethod(), responseObserver); - } - - /** - *
-     * Starts master IP rotation.
-     * 
- */ - public void startIPRotation(com.google.container.v1beta1.StartIPRotationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartIPRotationMethod(), responseObserver); - } - - /** - *
-     * Completes master IP rotation.
-     * 
- */ - public void completeIPRotation(com.google.container.v1beta1.CompleteIPRotationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCompleteIPRotationMethod(), responseObserver); - } - - /** - *
-     * 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.ServerCalls.asyncUnimplementedUnaryCall(getSetNodePoolSizeMethod(), responseObserver); - } - - /** - *
-     * Enables or disables Network Policy for a cluster.
-     * 
- */ - public void setNetworkPolicy(com.google.container.v1beta1.SetNetworkPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetNetworkPolicyMethod(), responseObserver); - } - - /** - *
-     * Sets the maintenance policy for a cluster.
-     * 
- */ - public void setMaintenancePolicy(com.google.container.v1beta1.SetMaintenancePolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetMaintenancePolicyMethod(), responseObserver); - } - - /** - *
-     * Lists subnetworks that can be used for creating clusters in a project.
-     * 
- */ - public void listUsableSubnetworks(com.google.container.v1beta1.ListUsableSubnetworksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListUsableSubnetworksMethod(), responseObserver); - } - - /** - *
-     * Fetches locations that offer Google Kubernetes Engine.
-     * 
- */ - public void listLocations(com.google.container.v1beta1.ListLocationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLocationsMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListClustersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.ListClustersRequest, - com.google.container.v1beta1.ListClustersResponse>( - this, METHODID_LIST_CLUSTERS))) - .addMethod( - getGetClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.GetClusterRequest, - com.google.container.v1beta1.Cluster>( - this, METHODID_GET_CLUSTER))) - .addMethod( - getCreateClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.CreateClusterRequest, - com.google.container.v1beta1.Operation>( - this, METHODID_CREATE_CLUSTER))) - .addMethod( - getUpdateClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.UpdateClusterRequest, - com.google.container.v1beta1.Operation>( - this, METHODID_UPDATE_CLUSTER))) - .addMethod( - getUpdateNodePoolMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.UpdateNodePoolRequest, - com.google.container.v1beta1.Operation>( - this, METHODID_UPDATE_NODE_POOL))) - .addMethod( - getSetNodePoolAutoscalingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.SetNodePoolAutoscalingRequest, - com.google.container.v1beta1.Operation>( - this, METHODID_SET_NODE_POOL_AUTOSCALING))) - .addMethod( - getSetLoggingServiceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.SetLoggingServiceRequest, - com.google.container.v1beta1.Operation>( - this, METHODID_SET_LOGGING_SERVICE))) - .addMethod( - getSetMonitoringServiceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.SetMonitoringServiceRequest, - com.google.container.v1beta1.Operation>( - this, METHODID_SET_MONITORING_SERVICE))) - .addMethod( - getSetAddonsConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.SetAddonsConfigRequest, - com.google.container.v1beta1.Operation>( - this, METHODID_SET_ADDONS_CONFIG))) - .addMethod( - getSetLocationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.SetLocationsRequest, - com.google.container.v1beta1.Operation>( - this, METHODID_SET_LOCATIONS))) - .addMethod( - getUpdateMasterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.UpdateMasterRequest, - com.google.container.v1beta1.Operation>( - this, METHODID_UPDATE_MASTER))) - .addMethod( - getSetMasterAuthMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.SetMasterAuthRequest, - com.google.container.v1beta1.Operation>( - this, METHODID_SET_MASTER_AUTH))) - .addMethod( - getDeleteClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.DeleteClusterRequest, - com.google.container.v1beta1.Operation>( - this, METHODID_DELETE_CLUSTER))) - .addMethod( - getListOperationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.ListOperationsRequest, - com.google.container.v1beta1.ListOperationsResponse>( - this, METHODID_LIST_OPERATIONS))) - .addMethod( - getGetOperationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.GetOperationRequest, - com.google.container.v1beta1.Operation>( - this, METHODID_GET_OPERATION))) - .addMethod( - getCancelOperationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.CancelOperationRequest, - com.google.protobuf.Empty>( - this, METHODID_CANCEL_OPERATION))) - .addMethod( - getGetServerConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.GetServerConfigRequest, - com.google.container.v1beta1.ServerConfig>( - this, METHODID_GET_SERVER_CONFIG))) - .addMethod( - getListNodePoolsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.ListNodePoolsRequest, - com.google.container.v1beta1.ListNodePoolsResponse>( - this, METHODID_LIST_NODE_POOLS))) - .addMethod( - getGetJSONWebKeysMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.GetJSONWebKeysRequest, - com.google.container.v1beta1.GetJSONWebKeysResponse>( - this, METHODID_GET_JSONWEB_KEYS))) - .addMethod( - getGetNodePoolMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.GetNodePoolRequest, - com.google.container.v1beta1.NodePool>( - this, METHODID_GET_NODE_POOL))) - .addMethod( - getCreateNodePoolMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.CreateNodePoolRequest, - com.google.container.v1beta1.Operation>( - this, METHODID_CREATE_NODE_POOL))) - .addMethod( - getDeleteNodePoolMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.DeleteNodePoolRequest, - com.google.container.v1beta1.Operation>( - this, METHODID_DELETE_NODE_POOL))) - .addMethod( - getCompleteNodePoolUpgradeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.CompleteNodePoolUpgradeRequest, - com.google.protobuf.Empty>( - this, METHODID_COMPLETE_NODE_POOL_UPGRADE))) - .addMethod( - getRollbackNodePoolUpgradeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.RollbackNodePoolUpgradeRequest, - com.google.container.v1beta1.Operation>( - this, METHODID_ROLLBACK_NODE_POOL_UPGRADE))) - .addMethod( - getSetNodePoolManagementMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.SetNodePoolManagementRequest, - com.google.container.v1beta1.Operation>( - this, METHODID_SET_NODE_POOL_MANAGEMENT))) - .addMethod( - getSetLabelsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.SetLabelsRequest, - com.google.container.v1beta1.Operation>( - this, METHODID_SET_LABELS))) - .addMethod( - getSetLegacyAbacMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.SetLegacyAbacRequest, - com.google.container.v1beta1.Operation>( - this, METHODID_SET_LEGACY_ABAC))) - .addMethod( - getStartIPRotationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.StartIPRotationRequest, - com.google.container.v1beta1.Operation>( - this, METHODID_START_IPROTATION))) - .addMethod( - getCompleteIPRotationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.CompleteIPRotationRequest, - com.google.container.v1beta1.Operation>( - this, METHODID_COMPLETE_IPROTATION))) - .addMethod( - getSetNodePoolSizeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.SetNodePoolSizeRequest, - com.google.container.v1beta1.Operation>( - this, METHODID_SET_NODE_POOL_SIZE))) - .addMethod( - getSetNetworkPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.SetNetworkPolicyRequest, - com.google.container.v1beta1.Operation>( - this, METHODID_SET_NETWORK_POLICY))) - .addMethod( - getSetMaintenancePolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.SetMaintenancePolicyRequest, - com.google.container.v1beta1.Operation>( - this, METHODID_SET_MAINTENANCE_POLICY))) - .addMethod( - getListUsableSubnetworksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.ListUsableSubnetworksRequest, - com.google.container.v1beta1.ListUsableSubnetworksResponse>( - this, METHODID_LIST_USABLE_SUBNETWORKS))) - .addMethod( - getListLocationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.ListLocationsRequest, - com.google.container.v1beta1.ListLocationsResponse>( - this, METHODID_LIST_LOCATIONS))) - .build(); - } - } - - /** - *
-   * Google Kubernetes Engine Cluster Manager v1beta1
-   * 
- */ - public static final class ClusterManagerStub extends io.grpc.stub.AbstractAsyncStub { - private ClusterManagerStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ClusterManagerStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ClusterManagerStub(channel, callOptions); - } - - /** - *
-     * Lists all clusters owned by a project in either the specified zone or all
-     * zones.
-     * 
- */ - public void listClusters(com.google.container.v1beta1.ListClustersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListClustersMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets the details for a specific cluster.
-     * 
- */ - public void getCluster(com.google.container.v1beta1.GetClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetClusterMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a cluster, consisting of the specified number and type of Google
-     * Compute Engine instances.
-     * By default, the cluster is created in the project's
-     * [default
-     * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks).
-     * One firewall is added for the cluster. After cluster creation,
-     * the Kubelet creates routes for each node to allow the containers
-     * on that node to communicate with all other instances in the
-     * cluster.
-     * Finally, an entry is added to the project's global metadata indicating
-     * which CIDR range the cluster is using.
-     * 
- */ - public void createCluster(com.google.container.v1beta1.CreateClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateClusterMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the settings for a specific cluster.
-     * 
- */ - public void updateCluster(com.google.container.v1beta1.UpdateClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the version and/or image type of a specific node pool.
-     * 
- */ - public void updateNodePool(com.google.container.v1beta1.UpdateNodePoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateNodePoolMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Sets the autoscaling settings of a specific node pool.
-     * 
- */ - public void setNodePoolAutoscaling(com.google.container.v1beta1.SetNodePoolAutoscalingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetNodePoolAutoscalingMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Sets the logging service for a specific cluster.
-     * 
- */ - public void setLoggingService(com.google.container.v1beta1.SetLoggingServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetLoggingServiceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Sets the monitoring service for a specific cluster.
-     * 
- */ - public void setMonitoringService(com.google.container.v1beta1.SetMonitoringServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetMonitoringServiceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Sets the addons for a specific cluster.
-     * 
- */ - public void setAddonsConfig(com.google.container.v1beta1.SetAddonsConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetAddonsConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Sets the locations for a specific cluster.
-     * Deprecated. Use
-     * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters/update)
-     * instead.
-     * 
- */ - @java.lang.Deprecated - public void setLocations(com.google.container.v1beta1.SetLocationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetLocationsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the master for a specific cluster.
-     * 
- */ - public void updateMaster(com.google.container.v1beta1.UpdateMasterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateMasterMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Sets master auth materials. Currently supports changing the admin password
-     * or a specific cluster, either via password generation or explicitly setting
-     * the password.
-     * 
- */ - public void setMasterAuth(com.google.container.v1beta1.SetMasterAuthRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetMasterAuthMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes the cluster, including the Kubernetes endpoint and all worker
-     * nodes.
-     * Firewalls and routes that were configured during cluster creation
-     * are also deleted.
-     * Other Google Compute Engine resources that might be in use by the cluster,
-     * such as load balancer resources, are not deleted if they weren't present
-     * when the cluster was initially created.
-     * 
- */ - public void deleteCluster(com.google.container.v1beta1.DeleteClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteClusterMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists all operations in a project in the specified zone or all zones.
-     * 
- */ - public void listOperations(com.google.container.v1beta1.ListOperationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListOperationsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets the specified operation.
-     * 
- */ - public void getOperation(com.google.container.v1beta1.GetOperationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetOperationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Cancels the specified operation.
-     * 
- */ - public void cancelOperation(com.google.container.v1beta1.CancelOperationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCancelOperationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns configuration info about the Google Kubernetes Engine service.
-     * 
- */ - public void getServerConfig(com.google.container.v1beta1.GetServerConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetServerConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists the node pools for a cluster.
-     * 
- */ - public void listNodePools(com.google.container.v1beta1.ListNodePoolsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNodePoolsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets the public component of the cluster signing keys in
-     * JSON Web Key format.
-     * This API is not yet intended for general use, and is not available for all
-     * clusters.
-     * 
- */ - public void getJSONWebKeys(com.google.container.v1beta1.GetJSONWebKeysRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetJSONWebKeysMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Retrieves the requested node pool.
-     * 
- */ - public void getNodePool(com.google.container.v1beta1.GetNodePoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNodePoolMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a node pool for a cluster.
-     * 
- */ - public void createNodePool(com.google.container.v1beta1.CreateNodePoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateNodePoolMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a node pool from a cluster.
-     * 
- */ - public void deleteNodePool(com.google.container.v1beta1.DeleteNodePoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteNodePoolMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * 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); - } - - /** - *
-     * Fetches locations that offer Google Kubernetes Engine.
-     * 
- */ - public void listLocations(com.google.container.v1beta1.ListLocationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListLocationsMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Google Kubernetes Engine Cluster Manager v1beta1
-   * 
- */ - public static final class ClusterManagerBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private ClusterManagerBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ClusterManagerBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ClusterManagerBlockingStub(channel, callOptions); - } - - /** - *
-     * Lists all clusters owned by a project in either the specified zone or all
-     * zones.
-     * 
- */ - public com.google.container.v1beta1.ListClustersResponse listClusters(com.google.container.v1beta1.ListClustersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListClustersMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets the details for a specific cluster.
-     * 
- */ - public com.google.container.v1beta1.Cluster getCluster(com.google.container.v1beta1.GetClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetClusterMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a cluster, consisting of the specified number and type of Google
-     * Compute Engine instances.
-     * By default, the cluster is created in the project's
-     * [default
-     * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks).
-     * One firewall is added for the cluster. After cluster creation,
-     * the Kubelet creates routes for each node to allow the containers
-     * on that node to communicate with all other instances in the
-     * cluster.
-     * Finally, an entry is added to the project's global metadata indicating
-     * which CIDR range the cluster is using.
-     * 
- */ - public com.google.container.v1beta1.Operation createCluster(com.google.container.v1beta1.CreateClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateClusterMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the settings for a specific cluster.
-     * 
- */ - public com.google.container.v1beta1.Operation updateCluster(com.google.container.v1beta1.UpdateClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateClusterMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the version and/or image type of a specific node pool.
-     * 
- */ - public com.google.container.v1beta1.Operation updateNodePool(com.google.container.v1beta1.UpdateNodePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateNodePoolMethod(), getCallOptions(), request); - } - - /** - *
-     * Sets the autoscaling settings of a specific node pool.
-     * 
- */ - public com.google.container.v1beta1.Operation setNodePoolAutoscaling(com.google.container.v1beta1.SetNodePoolAutoscalingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetNodePoolAutoscalingMethod(), getCallOptions(), request); - } - - /** - *
-     * Sets the logging service for a specific cluster.
-     * 
- */ - public com.google.container.v1beta1.Operation setLoggingService(com.google.container.v1beta1.SetLoggingServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetLoggingServiceMethod(), getCallOptions(), request); - } - - /** - *
-     * Sets the monitoring service for a specific cluster.
-     * 
- */ - public com.google.container.v1beta1.Operation setMonitoringService(com.google.container.v1beta1.SetMonitoringServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetMonitoringServiceMethod(), getCallOptions(), request); - } - - /** - *
-     * Sets the addons for a specific cluster.
-     * 
- */ - public com.google.container.v1beta1.Operation setAddonsConfig(com.google.container.v1beta1.SetAddonsConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetAddonsConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Sets the locations for a specific cluster.
-     * Deprecated. Use
-     * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters/update)
-     * instead.
-     * 
- */ - @java.lang.Deprecated - public com.google.container.v1beta1.Operation setLocations(com.google.container.v1beta1.SetLocationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetLocationsMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the master for a specific cluster.
-     * 
- */ - public com.google.container.v1beta1.Operation updateMaster(com.google.container.v1beta1.UpdateMasterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateMasterMethod(), getCallOptions(), request); - } - - /** - *
-     * Sets master auth materials. Currently supports changing the admin password
-     * or a specific cluster, either via password generation or explicitly setting
-     * the password.
-     * 
- */ - public com.google.container.v1beta1.Operation setMasterAuth(com.google.container.v1beta1.SetMasterAuthRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetMasterAuthMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes the cluster, including the Kubernetes endpoint and all worker
-     * nodes.
-     * Firewalls and routes that were configured during cluster creation
-     * are also deleted.
-     * Other Google Compute Engine resources that might be in use by the cluster,
-     * such as load balancer resources, are not deleted if they weren't present
-     * when the cluster was initially created.
-     * 
- */ - public com.google.container.v1beta1.Operation deleteCluster(com.google.container.v1beta1.DeleteClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteClusterMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists all operations in a project in the specified zone or all zones.
-     * 
- */ - public com.google.container.v1beta1.ListOperationsResponse listOperations(com.google.container.v1beta1.ListOperationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListOperationsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets the specified operation.
-     * 
- */ - public com.google.container.v1beta1.Operation getOperation(com.google.container.v1beta1.GetOperationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetOperationMethod(), getCallOptions(), request); - } - - /** - *
-     * Cancels the specified operation.
-     * 
- */ - public com.google.protobuf.Empty cancelOperation(com.google.container.v1beta1.CancelOperationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCancelOperationMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns configuration info about the Google Kubernetes Engine service.
-     * 
- */ - public com.google.container.v1beta1.ServerConfig getServerConfig(com.google.container.v1beta1.GetServerConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetServerConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists the node pools for a cluster.
-     * 
- */ - public com.google.container.v1beta1.ListNodePoolsResponse listNodePools(com.google.container.v1beta1.ListNodePoolsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListNodePoolsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets the public component of the cluster signing keys in
-     * JSON Web Key format.
-     * This API is not yet intended for general use, and is not available for all
-     * clusters.
-     * 
- */ - public com.google.container.v1beta1.GetJSONWebKeysResponse getJSONWebKeys(com.google.container.v1beta1.GetJSONWebKeysRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetJSONWebKeysMethod(), getCallOptions(), request); - } - - /** - *
-     * Retrieves the requested node pool.
-     * 
- */ - public com.google.container.v1beta1.NodePool getNodePool(com.google.container.v1beta1.GetNodePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNodePoolMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a node pool for a cluster.
-     * 
- */ - public com.google.container.v1beta1.Operation createNodePool(com.google.container.v1beta1.CreateNodePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateNodePoolMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a node pool from a cluster.
-     * 
- */ - public com.google.container.v1beta1.Operation deleteNodePool(com.google.container.v1beta1.DeleteNodePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteNodePoolMethod(), getCallOptions(), request); - } - - /** - *
-     * 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); - } - - /** - *
-     * Fetches locations that offer Google Kubernetes Engine.
-     * 
- */ - public com.google.container.v1beta1.ListLocationsResponse listLocations(com.google.container.v1beta1.ListLocationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListLocationsMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Google Kubernetes Engine Cluster Manager v1beta1
-   * 
- */ - public static final class ClusterManagerFutureStub extends io.grpc.stub.AbstractFutureStub { - private ClusterManagerFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ClusterManagerFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ClusterManagerFutureStub(channel, callOptions); - } - - /** - *
-     * Lists all clusters owned by a project in either the specified zone or all
-     * zones.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture 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); - } - - /** - *
-     * 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); - } - - /** - *
-     * Gets the public component of the cluster signing keys in
-     * JSON Web Key format.
-     * This API is not yet intended for general use, and is not available for all
-     * clusters.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getJSONWebKeys( - com.google.container.v1beta1.GetJSONWebKeysRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetJSONWebKeysMethod(), getCallOptions()), request); - } - - /** - *
-     * Retrieves the requested node pool.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getNodePool( - com.google.container.v1beta1.GetNodePoolRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNodePoolMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a node pool for a cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture 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); - } - - /** - *
-     * 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_LIST_NODE_POOLS = 17; - private static final int METHODID_GET_JSONWEB_KEYS = 18; - private static final int METHODID_GET_NODE_POOL = 19; - private static final int METHODID_CREATE_NODE_POOL = 20; - private static final int METHODID_DELETE_NODE_POOL = 21; - private static final int METHODID_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_LIST_LOCATIONS = 33; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final ClusterManagerImplBase serviceImpl; - private final int methodId; - - MethodHandlers(ClusterManagerImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_CLUSTERS: - serviceImpl.listClusters((com.google.container.v1beta1.ListClustersRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CLUSTER: - serviceImpl.getCluster((com.google.container.v1beta1.GetClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_CLUSTER: - serviceImpl.createCluster((com.google.container.v1beta1.CreateClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CLUSTER: - serviceImpl.updateCluster((com.google.container.v1beta1.UpdateClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_NODE_POOL: - serviceImpl.updateNodePool((com.google.container.v1beta1.UpdateNodePoolRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_NODE_POOL_AUTOSCALING: - serviceImpl.setNodePoolAutoscaling((com.google.container.v1beta1.SetNodePoolAutoscalingRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_LOGGING_SERVICE: - serviceImpl.setLoggingService((com.google.container.v1beta1.SetLoggingServiceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_MONITORING_SERVICE: - serviceImpl.setMonitoringService((com.google.container.v1beta1.SetMonitoringServiceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_ADDONS_CONFIG: - serviceImpl.setAddonsConfig((com.google.container.v1beta1.SetAddonsConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_LOCATIONS: - serviceImpl.setLocations((com.google.container.v1beta1.SetLocationsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_MASTER: - serviceImpl.updateMaster((com.google.container.v1beta1.UpdateMasterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_MASTER_AUTH: - serviceImpl.setMasterAuth((com.google.container.v1beta1.SetMasterAuthRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CLUSTER: - serviceImpl.deleteCluster((com.google.container.v1beta1.DeleteClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_OPERATIONS: - serviceImpl.listOperations((com.google.container.v1beta1.ListOperationsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_OPERATION: - serviceImpl.getOperation((com.google.container.v1beta1.GetOperationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CANCEL_OPERATION: - serviceImpl.cancelOperation((com.google.container.v1beta1.CancelOperationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SERVER_CONFIG: - serviceImpl.getServerConfig((com.google.container.v1beta1.GetServerConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_NODE_POOLS: - serviceImpl.listNodePools((com.google.container.v1beta1.ListNodePoolsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_JSONWEB_KEYS: - serviceImpl.getJSONWebKeys((com.google.container.v1beta1.GetJSONWebKeysRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_NODE_POOL: - serviceImpl.getNodePool((com.google.container.v1beta1.GetNodePoolRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_NODE_POOL: - serviceImpl.createNodePool((com.google.container.v1beta1.CreateNodePoolRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_NODE_POOL: - serviceImpl.deleteNodePool((com.google.container.v1beta1.DeleteNodePoolRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_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_LIST_LOCATIONS: - serviceImpl.listLocations((com.google.container.v1beta1.ListLocationsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class ClusterManagerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ClusterManagerBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("ClusterManager"); - } - } - - private static final class ClusterManagerFileDescriptorSupplier - extends ClusterManagerBaseDescriptorSupplier { - ClusterManagerFileDescriptorSupplier() {} - } - - private static final class ClusterManagerMethodDescriptorSupplier - extends ClusterManagerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ClusterManagerMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (ClusterManagerGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ClusterManagerFileDescriptorSupplier()) - .addMethod(getListClustersMethod()) - .addMethod(getGetClusterMethod()) - .addMethod(getCreateClusterMethod()) - .addMethod(getUpdateClusterMethod()) - .addMethod(getUpdateNodePoolMethod()) - .addMethod(getSetNodePoolAutoscalingMethod()) - .addMethod(getSetLoggingServiceMethod()) - .addMethod(getSetMonitoringServiceMethod()) - .addMethod(getSetAddonsConfigMethod()) - .addMethod(getSetLocationsMethod()) - .addMethod(getUpdateMasterMethod()) - .addMethod(getSetMasterAuthMethod()) - .addMethod(getDeleteClusterMethod()) - .addMethod(getListOperationsMethod()) - .addMethod(getGetOperationMethod()) - .addMethod(getCancelOperationMethod()) - .addMethod(getGetServerConfigMethod()) - .addMethod(getListNodePoolsMethod()) - .addMethod(getGetJSONWebKeysMethod()) - .addMethod(getGetNodePoolMethod()) - .addMethod(getCreateNodePoolMethod()) - .addMethod(getDeleteNodePoolMethod()) - .addMethod(getCompleteNodePoolUpgradeMethod()) - .addMethod(getRollbackNodePoolUpgradeMethod()) - .addMethod(getSetNodePoolManagementMethod()) - .addMethod(getSetLabelsMethod()) - .addMethod(getSetLegacyAbacMethod()) - .addMethod(getStartIPRotationMethod()) - .addMethod(getCompleteIPRotationMethod()) - .addMethod(getSetNodePoolSizeMethod()) - .addMethod(getSetNetworkPolicyMethod()) - .addMethod(getSetMaintenancePolicyMethod()) - .addMethod(getListUsableSubnetworksMethod()) - .addMethod(getListLocationsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/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 deleted file mode 100644 index 23eb0339222f..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfig.java +++ /dev/null @@ -1,1175 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * AcceleratorConfig represents a Hardware Accelerator request.
- * 
- * - * Protobuf type {@code google.container.v1beta1.AcceleratorConfig} - */ -public final class AcceleratorConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.AcceleratorConfig) - AcceleratorConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use AcceleratorConfig.newBuilder() to construct. - private AcceleratorConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AcceleratorConfig() { - acceleratorType_ = ""; - gpuPartitionSize_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AcceleratorConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * The number of the accelerator cards exposed to an instance.
-   * 
- * - * int64 accelerator_count = 1; - * @return The acceleratorCount. - */ - @java.lang.Override - public long getAcceleratorCount() { - return acceleratorCount_; - } - - public static final int ACCELERATOR_TYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object acceleratorType_; - /** - *
-   * The accelerator type resource name. List of supported accelerators
-   * [here](https://cloud.google.com/compute/docs/gpus)
-   * 
- * - * string accelerator_type = 2; - * @return The acceleratorType. - */ - @java.lang.Override - public java.lang.String getAcceleratorType() { - java.lang.Object ref = acceleratorType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - acceleratorType_ = s; - return s; - } - } - /** - *
-   * The accelerator type resource name. List of supported accelerators
-   * [here](https://cloud.google.com/compute/docs/gpus)
-   * 
- * - * string accelerator_type = 2; - * @return The bytes for acceleratorType. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAcceleratorTypeBytes() { - java.lang.Object ref = acceleratorType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - acceleratorType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GPU_PARTITION_SIZE_FIELD_NUMBER = 3; - private volatile java.lang.Object gpuPartitionSize_; - /** - *
-   * Size of partitions to create on the GPU. Valid values are described in the
-   * NVIDIA [mig user
-   * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
-   * 
- * - * string gpu_partition_size = 3; - * @return The gpuPartitionSize. - */ - @java.lang.Override - public java.lang.String getGpuPartitionSize() { - java.lang.Object ref = gpuPartitionSize_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gpuPartitionSize_ = s; - return s; - } - } - /** - *
-   * Size of partitions to create on the GPU. Valid values are described in the
-   * NVIDIA [mig user
-   * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
-   * 
- * - * string gpu_partition_size = 3; - * @return The bytes for gpuPartitionSize. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getGpuPartitionSizeBytes() { - java.lang.Object ref = gpuPartitionSize_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gpuPartitionSize_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MAX_TIME_SHARED_CLIENTS_PER_GPU_FIELD_NUMBER = 4; - 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=4167 - * @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_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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()); - } - 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()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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(); - } - 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(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - acceleratorCount_ = 0L; - - acceleratorType_ = ""; - - gpuPartitionSize_ = ""; - - maxTimeSharedClientsPerGpu_ = 0L; - - if (gpuSharingConfigBuilder_ == null) { - gpuSharingConfig_ = null; - } else { - gpuSharingConfigBuilder_.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_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); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.acceleratorCount_ = acceleratorCount_; - result.acceleratorType_ = acceleratorType_; - result.gpuPartitionSize_ = gpuPartitionSize_; - result.maxTimeSharedClientsPerGpu_ = maxTimeSharedClientsPerGpu_; - if (((from_bitField0_ & 0x00000001) != 0)) { - if (gpuSharingConfigBuilder_ == null) { - result.gpuSharingConfig_ = gpuSharingConfig_; - } else { - result.gpuSharingConfig_ = gpuSharingConfigBuilder_.build(); - } - to_bitField0_ |= 0x00000001; - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.AcceleratorConfig) { - return mergeFrom((com.google.container.v1beta1.AcceleratorConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.AcceleratorConfig other) { - if (other == com.google.container.v1beta1.AcceleratorConfig.getDefaultInstance()) return this; - if (other.getAcceleratorCount() != 0L) { - setAcceleratorCount(other.getAcceleratorCount()); - } - if (!other.getAcceleratorType().isEmpty()) { - acceleratorType_ = other.acceleratorType_; - onChanged(); - } - if (!other.getGpuPartitionSize().isEmpty()) { - gpuPartitionSize_ = other.gpuPartitionSize_; - onChanged(); - } - if (other.getMaxTimeSharedClientsPerGpu() != 0L) { - setMaxTimeSharedClientsPerGpu(other.getMaxTimeSharedClientsPerGpu()); - } - if (other.hasGpuSharingConfig()) { - mergeGpuSharingConfig(other.getGpuSharingConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 8 - case 18: { - acceleratorType_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - gpuPartitionSize_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 32: { - maxTimeSharedClientsPerGpu_ = input.readInt64(); - - break; - } // case 32 - case 42: { - input.readMessage( - getGpuSharingConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 long acceleratorCount_ ; - /** - *
-     * The number of the accelerator cards exposed to an instance.
-     * 
- * - * int64 accelerator_count = 1; - * @return The acceleratorCount. - */ - @java.lang.Override - public long getAcceleratorCount() { - return acceleratorCount_; - } - /** - *
-     * The number of the accelerator cards exposed to an instance.
-     * 
- * - * int64 accelerator_count = 1; - * @param value The acceleratorCount to set. - * @return This builder for chaining. - */ - public Builder setAcceleratorCount(long value) { - - acceleratorCount_ = value; - onChanged(); - return this; - } - /** - *
-     * The number of the accelerator cards exposed to an instance.
-     * 
- * - * int64 accelerator_count = 1; - * @return This builder for chaining. - */ - public Builder clearAcceleratorCount() { - - acceleratorCount_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object acceleratorType_ = ""; - /** - *
-     * The accelerator type resource name. List of supported accelerators
-     * [here](https://cloud.google.com/compute/docs/gpus)
-     * 
- * - * string accelerator_type = 2; - * @return The acceleratorType. - */ - public java.lang.String getAcceleratorType() { - java.lang.Object ref = acceleratorType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - acceleratorType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The accelerator type resource name. List of supported accelerators
-     * [here](https://cloud.google.com/compute/docs/gpus)
-     * 
- * - * string accelerator_type = 2; - * @return The bytes for acceleratorType. - */ - public com.google.protobuf.ByteString - getAcceleratorTypeBytes() { - java.lang.Object ref = acceleratorType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - acceleratorType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The accelerator type resource name. List of supported accelerators
-     * [here](https://cloud.google.com/compute/docs/gpus)
-     * 
- * - * string accelerator_type = 2; - * @param value The acceleratorType to set. - * @return This builder for chaining. - */ - public Builder setAcceleratorType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - acceleratorType_ = value; - onChanged(); - return this; - } - /** - *
-     * The accelerator type resource name. List of supported accelerators
-     * [here](https://cloud.google.com/compute/docs/gpus)
-     * 
- * - * string accelerator_type = 2; - * @return This builder for chaining. - */ - public Builder clearAcceleratorType() { - - acceleratorType_ = getDefaultInstance().getAcceleratorType(); - onChanged(); - return this; - } - /** - *
-     * The accelerator type resource name. List of supported accelerators
-     * [here](https://cloud.google.com/compute/docs/gpus)
-     * 
- * - * string accelerator_type = 2; - * @param value The bytes for acceleratorType to set. - * @return This builder for chaining. - */ - public Builder setAcceleratorTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - acceleratorType_ = value; - onChanged(); - return this; - } - - private java.lang.Object gpuPartitionSize_ = ""; - /** - *
-     * Size of partitions to create on the GPU. Valid values are described in the
-     * NVIDIA [mig user
-     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
-     * 
- * - * string gpu_partition_size = 3; - * @return The gpuPartitionSize. - */ - public java.lang.String getGpuPartitionSize() { - java.lang.Object ref = gpuPartitionSize_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gpuPartitionSize_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Size of partitions to create on the GPU. Valid values are described in the
-     * NVIDIA [mig user
-     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
-     * 
- * - * string gpu_partition_size = 3; - * @return The bytes for gpuPartitionSize. - */ - public com.google.protobuf.ByteString - getGpuPartitionSizeBytes() { - java.lang.Object ref = gpuPartitionSize_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gpuPartitionSize_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Size of partitions to create on the GPU. Valid values are described in the
-     * NVIDIA [mig user
-     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
-     * 
- * - * string gpu_partition_size = 3; - * @param value The gpuPartitionSize to set. - * @return This builder for chaining. - */ - public Builder setGpuPartitionSize( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - gpuPartitionSize_ = value; - onChanged(); - return this; - } - /** - *
-     * Size of partitions to create on the GPU. Valid values are described in the
-     * NVIDIA [mig user
-     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
-     * 
- * - * string gpu_partition_size = 3; - * @return This builder for chaining. - */ - public Builder clearGpuPartitionSize() { - - gpuPartitionSize_ = getDefaultInstance().getGpuPartitionSize(); - onChanged(); - return this; - } - /** - *
-     * Size of partitions to create on the GPU. Valid values are described in the
-     * NVIDIA [mig user
-     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
-     * 
- * - * string gpu_partition_size = 3; - * @param value The bytes for gpuPartitionSize to set. - * @return This builder for chaining. - */ - public Builder setGpuPartitionSizeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - gpuPartitionSize_ = value; - onChanged(); - return this; - } - - 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=4167 - * @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=4167 - * @param value The maxTimeSharedClientsPerGpu to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setMaxTimeSharedClientsPerGpu(long value) { - - maxTimeSharedClientsPerGpu_ = value; - 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=4167 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearMaxTimeSharedClientsPerGpu() { - - 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_ & 0x00000001) != 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; - onChanged(); - } else { - gpuSharingConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - 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(); - onChanged(); - } else { - gpuSharingConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - 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_ & 0x00000001) != 0) && - gpuSharingConfig_ != null && - gpuSharingConfig_ != com.google.container.v1beta1.GPUSharingConfig.getDefaultInstance()) { - gpuSharingConfig_ = - com.google.container.v1beta1.GPUSharingConfig.newBuilder(gpuSharingConfig_).mergeFrom(value).buildPartial(); - } else { - gpuSharingConfig_ = value; - } - onChanged(); - } else { - gpuSharingConfigBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - *
-     * The configuration for GPU sharing options.
-     * 
- * - * optional .google.container.v1beta1.GPUSharingConfig gpu_sharing_config = 5; - */ - public Builder clearGpuSharingConfig() { - if (gpuSharingConfigBuilder_ == null) { - gpuSharingConfig_ = null; - onChanged(); - } else { - gpuSharingConfigBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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_ |= 0x00000001; - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 32a53346f1d9..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfigOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface AcceleratorConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.AcceleratorConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The number of the accelerator cards exposed to an instance.
-   * 
- * - * int64 accelerator_count = 1; - * @return The acceleratorCount. - */ - long getAcceleratorCount(); - - /** - *
-   * The accelerator type resource name. List of supported accelerators
-   * [here](https://cloud.google.com/compute/docs/gpus)
-   * 
- * - * string accelerator_type = 2; - * @return The acceleratorType. - */ - java.lang.String getAcceleratorType(); - /** - *
-   * The accelerator type resource name. List of supported accelerators
-   * [here](https://cloud.google.com/compute/docs/gpus)
-   * 
- * - * string accelerator_type = 2; - * @return The bytes for acceleratorType. - */ - com.google.protobuf.ByteString - getAcceleratorTypeBytes(); - - /** - *
-   * 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=4167 - * @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(); -} 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 deleted file mode 100644 index 39289d2e317b..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfig.java +++ /dev/null @@ -1,3363 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Configuration for the addons that can be automatically spun up in the
- * cluster, enabling additional functionality.
- * 
- * - * Protobuf type {@code google.container.v1beta1.AddonsConfig} - */ -public final class AddonsConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.AddonsConfig) - AddonsConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use AddonsConfig.newBuilder() to construct. - private AddonsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AddonsConfig() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AddonsConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AddonsConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AddonsConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.AddonsConfig.class, com.google.container.v1beta1.AddonsConfig.Builder.class); - } - - public static final int HTTP_LOAD_BALANCING_FIELD_NUMBER = 1; - private com.google.container.v1beta1.HttpLoadBalancing httpLoadBalancing_; - /** - *
-   * Configuration for the HTTP (L7) load balancing controller addon, which
-   * makes it easy to set up HTTP load balancers for services in a cluster.
-   * 
- * - * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; - * @return Whether the httpLoadBalancing field is set. - */ - @java.lang.Override - public boolean hasHttpLoadBalancing() { - return httpLoadBalancing_ != null; - } - /** - *
-   * Configuration for the HTTP (L7) load balancing controller addon, which
-   * makes it easy to set up HTTP load balancers for services in a cluster.
-   * 
- * - * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; - * @return The httpLoadBalancing. - */ - @java.lang.Override - public com.google.container.v1beta1.HttpLoadBalancing getHttpLoadBalancing() { - return httpLoadBalancing_ == null ? com.google.container.v1beta1.HttpLoadBalancing.getDefaultInstance() : httpLoadBalancing_; - } - /** - *
-   * Configuration for the HTTP (L7) load balancing controller addon, which
-   * makes it easy to set up HTTP load balancers for services in a cluster.
-   * 
- * - * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; - */ - @java.lang.Override - public com.google.container.v1beta1.HttpLoadBalancingOrBuilder getHttpLoadBalancingOrBuilder() { - return getHttpLoadBalancing(); - } - - public static final int HORIZONTAL_POD_AUTOSCALING_FIELD_NUMBER = 2; - private com.google.container.v1beta1.HorizontalPodAutoscaling horizontalPodAutoscaling_; - /** - *
-   * Configuration for the horizontal pod autoscaling feature, which
-   * increases or decreases the number of replica pods a replication controller
-   * has based on the resource usage of the existing pods.
-   * 
- * - * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - * @return Whether the horizontalPodAutoscaling field is set. - */ - @java.lang.Override - public boolean hasHorizontalPodAutoscaling() { - return horizontalPodAutoscaling_ != null; - } - /** - *
-   * Configuration for the horizontal pod autoscaling feature, which
-   * increases or decreases the number of replica pods a replication controller
-   * has based on the resource usage of the existing pods.
-   * 
- * - * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - * @return The horizontalPodAutoscaling. - */ - @java.lang.Override - public com.google.container.v1beta1.HorizontalPodAutoscaling getHorizontalPodAutoscaling() { - return horizontalPodAutoscaling_ == null ? com.google.container.v1beta1.HorizontalPodAutoscaling.getDefaultInstance() : horizontalPodAutoscaling_; - } - /** - *
-   * Configuration for the horizontal pod autoscaling feature, which
-   * increases or decreases the number of replica pods a replication controller
-   * has based on the resource usage of the existing pods.
-   * 
- * - * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - */ - @java.lang.Override - public com.google.container.v1beta1.HorizontalPodAutoscalingOrBuilder getHorizontalPodAutoscalingOrBuilder() { - return getHorizontalPodAutoscaling(); - } - - public static final int KUBERNETES_DASHBOARD_FIELD_NUMBER = 3; - private com.google.container.v1beta1.KubernetesDashboard kubernetesDashboard_; - /** - *
-   * Configuration for the Kubernetes Dashboard.
-   * This addon is deprecated, and will be disabled in 1.15. It is recommended
-   * to use the Cloud Console to manage and monitor your Kubernetes clusters,
-   * workloads and applications. For more information, see:
-   * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
-   * 
- * - * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1051 - * @return Whether the kubernetesDashboard field is set. - */ - @java.lang.Override - @java.lang.Deprecated public boolean hasKubernetesDashboard() { - return kubernetesDashboard_ != null; - } - /** - *
-   * Configuration for the Kubernetes Dashboard.
-   * This addon is deprecated, and will be disabled in 1.15. It is recommended
-   * to use the Cloud Console to manage and monitor your Kubernetes clusters,
-   * workloads and applications. For more information, see:
-   * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
-   * 
- * - * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1051 - * @return The kubernetesDashboard. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.container.v1beta1.KubernetesDashboard getKubernetesDashboard() { - return kubernetesDashboard_ == null ? com.google.container.v1beta1.KubernetesDashboard.getDefaultInstance() : kubernetesDashboard_; - } - /** - *
-   * Configuration for the Kubernetes Dashboard.
-   * This addon is deprecated, and will be disabled in 1.15. It is recommended
-   * to use the Cloud Console to manage and monitor your Kubernetes clusters,
-   * workloads and applications. For more information, see:
-   * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
-   * 
- * - * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - */ - @java.lang.Override - @java.lang.Deprecated public com.google.container.v1beta1.KubernetesDashboardOrBuilder getKubernetesDashboardOrBuilder() { - return getKubernetesDashboard(); - } - - public static final int NETWORK_POLICY_CONFIG_FIELD_NUMBER = 4; - private com.google.container.v1beta1.NetworkPolicyConfig networkPolicyConfig_; - /** - *
-   * Configuration for NetworkPolicy. This only tracks whether the addon
-   * is enabled or not on the Master, it does not track whether network policy
-   * is enabled for the nodes.
-   * 
- * - * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; - * @return Whether the networkPolicyConfig field is set. - */ - @java.lang.Override - public boolean hasNetworkPolicyConfig() { - return networkPolicyConfig_ != null; - } - /** - *
-   * Configuration for NetworkPolicy. This only tracks whether the addon
-   * is enabled or not on the Master, it does not track whether network policy
-   * is enabled for the nodes.
-   * 
- * - * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; - * @return The networkPolicyConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.NetworkPolicyConfig getNetworkPolicyConfig() { - return networkPolicyConfig_ == null ? com.google.container.v1beta1.NetworkPolicyConfig.getDefaultInstance() : networkPolicyConfig_; - } - /** - *
-   * Configuration for NetworkPolicy. This only tracks whether the addon
-   * is enabled or not on the Master, it does not track whether network policy
-   * is enabled for the nodes.
-   * 
- * - * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; - */ - @java.lang.Override - public com.google.container.v1beta1.NetworkPolicyConfigOrBuilder getNetworkPolicyConfigOrBuilder() { - return getNetworkPolicyConfig(); - } - - public static final int ISTIO_CONFIG_FIELD_NUMBER = 5; - private com.google.container.v1beta1.IstioConfig istioConfig_; - /** - *
-   * Configuration for Istio, an open platform to connect, manage, and secure
-   * microservices.
-   * 
- * - * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; - * @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1060 - * @return Whether the istioConfig field is set. - */ - @java.lang.Override - @java.lang.Deprecated public boolean hasIstioConfig() { - return istioConfig_ != null; - } - /** - *
-   * Configuration for Istio, an open platform to connect, manage, and secure
-   * microservices.
-   * 
- * - * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; - * @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1060 - * @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 getIstioConfig(); - } - - public static final int CLOUD_RUN_CONFIG_FIELD_NUMBER = 7; - private com.google.container.v1beta1.CloudRunConfig cloudRunConfig_; - /** - *
-   * Configuration for the Cloud Run addon. The `IstioConfig` addon must be
-   * enabled in order to enable Cloud Run addon. This option can only be enabled
-   * at cluster creation time.
-   * 
- * - * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; - * @return Whether the cloudRunConfig field is set. - */ - @java.lang.Override - public boolean hasCloudRunConfig() { - return cloudRunConfig_ != null; - } - /** - *
-   * Configuration for the Cloud Run addon. The `IstioConfig` addon must be
-   * enabled in order to enable Cloud Run addon. This option can only be enabled
-   * at cluster creation time.
-   * 
- * - * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; - * @return The cloudRunConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.CloudRunConfig getCloudRunConfig() { - return cloudRunConfig_ == null ? com.google.container.v1beta1.CloudRunConfig.getDefaultInstance() : cloudRunConfig_; - } - /** - *
-   * Configuration for the Cloud Run addon. The `IstioConfig` addon must be
-   * enabled in order to enable Cloud Run addon. This option can only be enabled
-   * at cluster creation time.
-   * 
- * - * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; - */ - @java.lang.Override - public com.google.container.v1beta1.CloudRunConfigOrBuilder getCloudRunConfigOrBuilder() { - return getCloudRunConfig(); - } - - public static final int DNS_CACHE_CONFIG_FIELD_NUMBER = 8; - private com.google.container.v1beta1.DnsCacheConfig dnsCacheConfig_; - /** - *
-   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-   * 
- * - * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; - * @return Whether the dnsCacheConfig field is set. - */ - @java.lang.Override - public boolean hasDnsCacheConfig() { - return dnsCacheConfig_ != null; - } - /** - *
-   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-   * 
- * - * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; - * @return The dnsCacheConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.DnsCacheConfig getDnsCacheConfig() { - return dnsCacheConfig_ == null ? com.google.container.v1beta1.DnsCacheConfig.getDefaultInstance() : dnsCacheConfig_; - } - /** - *
-   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-   * 
- * - * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; - */ - @java.lang.Override - public com.google.container.v1beta1.DnsCacheConfigOrBuilder getDnsCacheConfigOrBuilder() { - return getDnsCacheConfig(); - } - - public static final int CONFIG_CONNECTOR_CONFIG_FIELD_NUMBER = 10; - private com.google.container.v1beta1.ConfigConnectorConfig configConnectorConfig_; - /** - *
-   * Configuration for the ConfigConnector add-on, a Kubernetes
-   * extension to manage hosted GCP services through the Kubernetes API
-   * 
- * - * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; - * @return Whether the configConnectorConfig field is set. - */ - @java.lang.Override - public boolean hasConfigConnectorConfig() { - return configConnectorConfig_ != null; - } - /** - *
-   * Configuration for the ConfigConnector add-on, a Kubernetes
-   * extension to manage hosted GCP services through the Kubernetes API
-   * 
- * - * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; - * @return The configConnectorConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.ConfigConnectorConfig getConfigConnectorConfig() { - return configConnectorConfig_ == null ? com.google.container.v1beta1.ConfigConnectorConfig.getDefaultInstance() : configConnectorConfig_; - } - /** - *
-   * Configuration for the ConfigConnector add-on, a Kubernetes
-   * extension to manage hosted GCP services through the Kubernetes API
-   * 
- * - * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; - */ - @java.lang.Override - public com.google.container.v1beta1.ConfigConnectorConfigOrBuilder getConfigConnectorConfigOrBuilder() { - return getConfigConnectorConfig(); - } - - public static final int GCE_PERSISTENT_DISK_CSI_DRIVER_CONFIG_FIELD_NUMBER = 11; - private com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig gcePersistentDiskCsiDriverConfig_; - /** - *
-   * Configuration for the Compute Engine Persistent Disk CSI driver.
-   * 
- * - * .google.container.v1beta1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - * @return Whether the gcePersistentDiskCsiDriverConfig field is set. - */ - @java.lang.Override - public boolean hasGcePersistentDiskCsiDriverConfig() { - return gcePersistentDiskCsiDriverConfig_ != null; - } - /** - *
-   * Configuration for the Compute Engine Persistent Disk CSI driver.
-   * 
- * - * .google.container.v1beta1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - * @return The gcePersistentDiskCsiDriverConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig getGcePersistentDiskCsiDriverConfig() { - return gcePersistentDiskCsiDriverConfig_ == null ? com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.getDefaultInstance() : gcePersistentDiskCsiDriverConfig_; - } - /** - *
-   * Configuration for the Compute Engine Persistent Disk CSI driver.
-   * 
- * - * .google.container.v1beta1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - */ - @java.lang.Override - public com.google.container.v1beta1.GcePersistentDiskCsiDriverConfigOrBuilder getGcePersistentDiskCsiDriverConfigOrBuilder() { - return getGcePersistentDiskCsiDriverConfig(); - } - - public static final int KALM_CONFIG_FIELD_NUMBER = 12; - private com.google.container.v1beta1.KalmConfig kalmConfig_; - /** - *
-   * Configuration for the KALM addon, which manages the lifecycle of k8s
-   * applications.
-   * 
- * - * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; - * @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1079 - * @return Whether the kalmConfig field is set. - */ - @java.lang.Override - @java.lang.Deprecated public boolean hasKalmConfig() { - return kalmConfig_ != null; - } - /** - *
-   * Configuration for the KALM addon, which manages the lifecycle of k8s
-   * applications.
-   * 
- * - * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; - * @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1079 - * @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 getKalmConfig(); - } - - public static final int GCP_FILESTORE_CSI_DRIVER_CONFIG_FIELD_NUMBER = 14; - private com.google.container.v1beta1.GcpFilestoreCsiDriverConfig gcpFilestoreCsiDriverConfig_; - /** - *
-   * Configuration for the GCP Filestore CSI driver.
-   * 
- * - * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * @return Whether the gcpFilestoreCsiDriverConfig field is set. - */ - @java.lang.Override - public boolean hasGcpFilestoreCsiDriverConfig() { - return gcpFilestoreCsiDriverConfig_ != null; - } - /** - *
-   * Configuration for the GCP Filestore CSI driver.
-   * 
- * - * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * @return The gcpFilestoreCsiDriverConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.GcpFilestoreCsiDriverConfig getGcpFilestoreCsiDriverConfig() { - return gcpFilestoreCsiDriverConfig_ == null ? com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.getDefaultInstance() : gcpFilestoreCsiDriverConfig_; - } - /** - *
-   * Configuration for the GCP Filestore CSI driver.
-   * 
- * - * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - */ - @java.lang.Override - public com.google.container.v1beta1.GcpFilestoreCsiDriverConfigOrBuilder getGcpFilestoreCsiDriverConfigOrBuilder() { - return getGcpFilestoreCsiDriverConfig(); - } - - public static final int GKE_BACKUP_AGENT_CONFIG_FIELD_NUMBER = 16; - private com.google.container.v1beta1.GkeBackupAgentConfig gkeBackupAgentConfig_; - /** - *
-   * Configuration for the Backup for GKE agent addon.
-   * 
- * - * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; - * @return Whether the gkeBackupAgentConfig field is set. - */ - @java.lang.Override - public boolean hasGkeBackupAgentConfig() { - return gkeBackupAgentConfig_ != null; - } - /** - *
-   * Configuration for the Backup for GKE agent addon.
-   * 
- * - * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; - * @return The gkeBackupAgentConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.GkeBackupAgentConfig getGkeBackupAgentConfig() { - return gkeBackupAgentConfig_ == null ? com.google.container.v1beta1.GkeBackupAgentConfig.getDefaultInstance() : gkeBackupAgentConfig_; - } - /** - *
-   * Configuration for the Backup for GKE agent addon.
-   * 
- * - * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; - */ - @java.lang.Override - public com.google.container.v1beta1.GkeBackupAgentConfigOrBuilder getGkeBackupAgentConfigOrBuilder() { - return getGkeBackupAgentConfig(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (httpLoadBalancing_ != null) { - output.writeMessage(1, getHttpLoadBalancing()); - } - if (horizontalPodAutoscaling_ != null) { - output.writeMessage(2, getHorizontalPodAutoscaling()); - } - if (kubernetesDashboard_ != null) { - output.writeMessage(3, getKubernetesDashboard()); - } - if (networkPolicyConfig_ != null) { - output.writeMessage(4, getNetworkPolicyConfig()); - } - if (istioConfig_ != null) { - output.writeMessage(5, getIstioConfig()); - } - if (cloudRunConfig_ != null) { - output.writeMessage(7, getCloudRunConfig()); - } - if (dnsCacheConfig_ != null) { - output.writeMessage(8, getDnsCacheConfig()); - } - if (configConnectorConfig_ != null) { - output.writeMessage(10, getConfigConnectorConfig()); - } - if (gcePersistentDiskCsiDriverConfig_ != null) { - output.writeMessage(11, getGcePersistentDiskCsiDriverConfig()); - } - if (kalmConfig_ != null) { - output.writeMessage(12, getKalmConfig()); - } - if (gcpFilestoreCsiDriverConfig_ != null) { - output.writeMessage(14, getGcpFilestoreCsiDriverConfig()); - } - if (gkeBackupAgentConfig_ != null) { - output.writeMessage(16, getGkeBackupAgentConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (httpLoadBalancing_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getHttpLoadBalancing()); - } - if (horizontalPodAutoscaling_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getHorizontalPodAutoscaling()); - } - if (kubernetesDashboard_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getKubernetesDashboard()); - } - if (networkPolicyConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getNetworkPolicyConfig()); - } - if (istioConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getIstioConfig()); - } - if (cloudRunConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getCloudRunConfig()); - } - if (dnsCacheConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getDnsCacheConfig()); - } - if (configConnectorConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getConfigConnectorConfig()); - } - if (gcePersistentDiskCsiDriverConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getGcePersistentDiskCsiDriverConfig()); - } - if (kalmConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getKalmConfig()); - } - if (gcpFilestoreCsiDriverConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getGcpFilestoreCsiDriverConfig()); - } - if (gkeBackupAgentConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getGkeBackupAgentConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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 (!getUnknownFields().equals(other.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(); - } - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (httpLoadBalancingBuilder_ == null) { - httpLoadBalancing_ = null; - } else { - httpLoadBalancing_ = null; - httpLoadBalancingBuilder_ = null; - } - if (horizontalPodAutoscalingBuilder_ == null) { - horizontalPodAutoscaling_ = null; - } else { - horizontalPodAutoscaling_ = null; - horizontalPodAutoscalingBuilder_ = null; - } - if (kubernetesDashboardBuilder_ == null) { - kubernetesDashboard_ = null; - } else { - kubernetesDashboard_ = null; - kubernetesDashboardBuilder_ = null; - } - if (networkPolicyConfigBuilder_ == null) { - networkPolicyConfig_ = null; - } else { - networkPolicyConfig_ = null; - networkPolicyConfigBuilder_ = null; - } - if (istioConfigBuilder_ == null) { - istioConfig_ = null; - } else { - istioConfig_ = null; - istioConfigBuilder_ = null; - } - if (cloudRunConfigBuilder_ == null) { - cloudRunConfig_ = null; - } else { - cloudRunConfig_ = null; - cloudRunConfigBuilder_ = null; - } - if (dnsCacheConfigBuilder_ == null) { - dnsCacheConfig_ = null; - } else { - dnsCacheConfig_ = null; - dnsCacheConfigBuilder_ = null; - } - if (configConnectorConfigBuilder_ == null) { - configConnectorConfig_ = null; - } else { - configConnectorConfig_ = null; - configConnectorConfigBuilder_ = null; - } - if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { - gcePersistentDiskCsiDriverConfig_ = null; - } else { - gcePersistentDiskCsiDriverConfig_ = null; - gcePersistentDiskCsiDriverConfigBuilder_ = null; - } - if (kalmConfigBuilder_ == null) { - kalmConfig_ = null; - } else { - kalmConfig_ = null; - kalmConfigBuilder_ = null; - } - if (gcpFilestoreCsiDriverConfigBuilder_ == null) { - gcpFilestoreCsiDriverConfig_ = null; - } else { - gcpFilestoreCsiDriverConfig_ = null; - gcpFilestoreCsiDriverConfigBuilder_ = null; - } - if (gkeBackupAgentConfigBuilder_ == null) { - gkeBackupAgentConfig_ = null; - } else { - gkeBackupAgentConfig_ = null; - gkeBackupAgentConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AddonsConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.AddonsConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.AddonsConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.AddonsConfig build() { - com.google.container.v1beta1.AddonsConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.AddonsConfig buildPartial() { - com.google.container.v1beta1.AddonsConfig result = new com.google.container.v1beta1.AddonsConfig(this); - if (httpLoadBalancingBuilder_ == null) { - result.httpLoadBalancing_ = httpLoadBalancing_; - } else { - result.httpLoadBalancing_ = httpLoadBalancingBuilder_.build(); - } - if (horizontalPodAutoscalingBuilder_ == null) { - result.horizontalPodAutoscaling_ = horizontalPodAutoscaling_; - } else { - result.horizontalPodAutoscaling_ = horizontalPodAutoscalingBuilder_.build(); - } - if (kubernetesDashboardBuilder_ == null) { - result.kubernetesDashboard_ = kubernetesDashboard_; - } else { - result.kubernetesDashboard_ = kubernetesDashboardBuilder_.build(); - } - if (networkPolicyConfigBuilder_ == null) { - result.networkPolicyConfig_ = networkPolicyConfig_; - } else { - result.networkPolicyConfig_ = networkPolicyConfigBuilder_.build(); - } - if (istioConfigBuilder_ == null) { - result.istioConfig_ = istioConfig_; - } else { - result.istioConfig_ = istioConfigBuilder_.build(); - } - if (cloudRunConfigBuilder_ == null) { - result.cloudRunConfig_ = cloudRunConfig_; - } else { - result.cloudRunConfig_ = cloudRunConfigBuilder_.build(); - } - if (dnsCacheConfigBuilder_ == null) { - result.dnsCacheConfig_ = dnsCacheConfig_; - } else { - result.dnsCacheConfig_ = dnsCacheConfigBuilder_.build(); - } - if (configConnectorConfigBuilder_ == null) { - result.configConnectorConfig_ = configConnectorConfig_; - } else { - result.configConnectorConfig_ = configConnectorConfigBuilder_.build(); - } - if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { - result.gcePersistentDiskCsiDriverConfig_ = gcePersistentDiskCsiDriverConfig_; - } else { - result.gcePersistentDiskCsiDriverConfig_ = gcePersistentDiskCsiDriverConfigBuilder_.build(); - } - if (kalmConfigBuilder_ == null) { - result.kalmConfig_ = kalmConfig_; - } else { - result.kalmConfig_ = kalmConfigBuilder_.build(); - } - if (gcpFilestoreCsiDriverConfigBuilder_ == null) { - result.gcpFilestoreCsiDriverConfig_ = gcpFilestoreCsiDriverConfig_; - } else { - result.gcpFilestoreCsiDriverConfig_ = gcpFilestoreCsiDriverConfigBuilder_.build(); - } - if (gkeBackupAgentConfigBuilder_ == null) { - result.gkeBackupAgentConfig_ = gkeBackupAgentConfig_; - } else { - result.gkeBackupAgentConfig_ = gkeBackupAgentConfigBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object 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()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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); - - break; - } // case 10 - case 18: { - input.readMessage( - getHorizontalPodAutoscalingFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - case 26: { - input.readMessage( - getKubernetesDashboardFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 26 - case 34: { - input.readMessage( - getNetworkPolicyConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 34 - case 42: { - input.readMessage( - getIstioConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 42 - case 58: { - input.readMessage( - getCloudRunConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 58 - case 66: { - input.readMessage( - getDnsCacheConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 66 - case 82: { - input.readMessage( - getConfigConnectorConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 82 - case 90: { - input.readMessage( - getGcePersistentDiskCsiDriverConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 90 - case 98: { - input.readMessage( - getKalmConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 98 - case 114: { - input.readMessage( - getGcpFilestoreCsiDriverConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 114 - case 130: { - input.readMessage( - getGkeBackupAgentConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 130 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.container.v1beta1.HttpLoadBalancing httpLoadBalancing_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.HttpLoadBalancing, com.google.container.v1beta1.HttpLoadBalancing.Builder, com.google.container.v1beta1.HttpLoadBalancingOrBuilder> httpLoadBalancingBuilder_; - /** - *
-     * Configuration for the HTTP (L7) load balancing controller addon, which
-     * makes it easy to set up HTTP load balancers for services in a cluster.
-     * 
- * - * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; - * @return Whether the httpLoadBalancing field is set. - */ - public boolean hasHttpLoadBalancing() { - return httpLoadBalancingBuilder_ != null || httpLoadBalancing_ != null; - } - /** - *
-     * Configuration for the HTTP (L7) load balancing controller addon, which
-     * makes it easy to set up HTTP load balancers for services in a cluster.
-     * 
- * - * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; - * @return The httpLoadBalancing. - */ - public com.google.container.v1beta1.HttpLoadBalancing getHttpLoadBalancing() { - if (httpLoadBalancingBuilder_ == null) { - return httpLoadBalancing_ == null ? com.google.container.v1beta1.HttpLoadBalancing.getDefaultInstance() : httpLoadBalancing_; - } else { - return httpLoadBalancingBuilder_.getMessage(); - } - } - /** - *
-     * Configuration for the HTTP (L7) load balancing controller addon, which
-     * makes it easy to set up HTTP load balancers for services in a cluster.
-     * 
- * - * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; - */ - public Builder setHttpLoadBalancing(com.google.container.v1beta1.HttpLoadBalancing value) { - if (httpLoadBalancingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - httpLoadBalancing_ = value; - onChanged(); - } else { - httpLoadBalancingBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for the HTTP (L7) load balancing controller addon, which
-     * makes it easy to set up HTTP load balancers for services in a cluster.
-     * 
- * - * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; - */ - public Builder setHttpLoadBalancing( - com.google.container.v1beta1.HttpLoadBalancing.Builder builderForValue) { - if (httpLoadBalancingBuilder_ == null) { - httpLoadBalancing_ = builderForValue.build(); - onChanged(); - } else { - httpLoadBalancingBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for the HTTP (L7) load balancing controller addon, which
-     * makes it easy to set up HTTP load balancers for services in a cluster.
-     * 
- * - * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; - */ - public Builder mergeHttpLoadBalancing(com.google.container.v1beta1.HttpLoadBalancing value) { - if (httpLoadBalancingBuilder_ == null) { - if (httpLoadBalancing_ != null) { - httpLoadBalancing_ = - com.google.container.v1beta1.HttpLoadBalancing.newBuilder(httpLoadBalancing_).mergeFrom(value).buildPartial(); - } else { - httpLoadBalancing_ = value; - } - onChanged(); - } else { - httpLoadBalancingBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for the HTTP (L7) load balancing controller addon, which
-     * makes it easy to set up HTTP load balancers for services in a cluster.
-     * 
- * - * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; - */ - public Builder clearHttpLoadBalancing() { - if (httpLoadBalancingBuilder_ == null) { - httpLoadBalancing_ = null; - onChanged(); - } else { - httpLoadBalancing_ = null; - httpLoadBalancingBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for the HTTP (L7) load balancing controller addon, which
-     * makes it easy to set up HTTP load balancers for services in a cluster.
-     * 
- * - * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; - */ - public com.google.container.v1beta1.HttpLoadBalancing.Builder getHttpLoadBalancingBuilder() { - - onChanged(); - return getHttpLoadBalancingFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for the HTTP (L7) load balancing controller addon, which
-     * makes it easy to set up HTTP load balancers for services in a cluster.
-     * 
- * - * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; - */ - public com.google.container.v1beta1.HttpLoadBalancingOrBuilder getHttpLoadBalancingOrBuilder() { - if (httpLoadBalancingBuilder_ != null) { - return httpLoadBalancingBuilder_.getMessageOrBuilder(); - } else { - return httpLoadBalancing_ == null ? - com.google.container.v1beta1.HttpLoadBalancing.getDefaultInstance() : httpLoadBalancing_; - } - } - /** - *
-     * Configuration for the HTTP (L7) load balancing controller addon, which
-     * makes it easy to set up HTTP load balancers for services in a cluster.
-     * 
- * - * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.HttpLoadBalancing, com.google.container.v1beta1.HttpLoadBalancing.Builder, com.google.container.v1beta1.HttpLoadBalancingOrBuilder> - getHttpLoadBalancingFieldBuilder() { - if (httpLoadBalancingBuilder_ == null) { - httpLoadBalancingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.HttpLoadBalancing, com.google.container.v1beta1.HttpLoadBalancing.Builder, com.google.container.v1beta1.HttpLoadBalancingOrBuilder>( - getHttpLoadBalancing(), - getParentForChildren(), - isClean()); - httpLoadBalancing_ = null; - } - return httpLoadBalancingBuilder_; - } - - private com.google.container.v1beta1.HorizontalPodAutoscaling horizontalPodAutoscaling_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.HorizontalPodAutoscaling, com.google.container.v1beta1.HorizontalPodAutoscaling.Builder, com.google.container.v1beta1.HorizontalPodAutoscalingOrBuilder> horizontalPodAutoscalingBuilder_; - /** - *
-     * Configuration for the horizontal pod autoscaling feature, which
-     * increases or decreases the number of replica pods a replication controller
-     * has based on the resource usage of the existing pods.
-     * 
- * - * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - * @return Whether the horizontalPodAutoscaling field is set. - */ - public boolean hasHorizontalPodAutoscaling() { - return horizontalPodAutoscalingBuilder_ != null || horizontalPodAutoscaling_ != null; - } - /** - *
-     * Configuration for the horizontal pod autoscaling feature, which
-     * increases or decreases the number of replica pods a replication controller
-     * has based on the resource usage of the existing pods.
-     * 
- * - * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - * @return The horizontalPodAutoscaling. - */ - public com.google.container.v1beta1.HorizontalPodAutoscaling getHorizontalPodAutoscaling() { - if (horizontalPodAutoscalingBuilder_ == null) { - return horizontalPodAutoscaling_ == null ? com.google.container.v1beta1.HorizontalPodAutoscaling.getDefaultInstance() : horizontalPodAutoscaling_; - } else { - return horizontalPodAutoscalingBuilder_.getMessage(); - } - } - /** - *
-     * Configuration for the horizontal pod autoscaling feature, which
-     * increases or decreases the number of replica pods a replication controller
-     * has based on the resource usage of the existing pods.
-     * 
- * - * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - */ - public Builder setHorizontalPodAutoscaling(com.google.container.v1beta1.HorizontalPodAutoscaling value) { - if (horizontalPodAutoscalingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - horizontalPodAutoscaling_ = value; - onChanged(); - } else { - horizontalPodAutoscalingBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for the horizontal pod autoscaling feature, which
-     * increases or decreases the number of replica pods a replication controller
-     * has based on the resource usage of the existing pods.
-     * 
- * - * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - */ - public Builder setHorizontalPodAutoscaling( - com.google.container.v1beta1.HorizontalPodAutoscaling.Builder builderForValue) { - if (horizontalPodAutoscalingBuilder_ == null) { - horizontalPodAutoscaling_ = builderForValue.build(); - onChanged(); - } else { - horizontalPodAutoscalingBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for the horizontal pod autoscaling feature, which
-     * increases or decreases the number of replica pods a replication controller
-     * has based on the resource usage of the existing pods.
-     * 
- * - * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - */ - public Builder mergeHorizontalPodAutoscaling(com.google.container.v1beta1.HorizontalPodAutoscaling value) { - if (horizontalPodAutoscalingBuilder_ == null) { - if (horizontalPodAutoscaling_ != null) { - horizontalPodAutoscaling_ = - com.google.container.v1beta1.HorizontalPodAutoscaling.newBuilder(horizontalPodAutoscaling_).mergeFrom(value).buildPartial(); - } else { - horizontalPodAutoscaling_ = value; - } - onChanged(); - } else { - horizontalPodAutoscalingBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for the horizontal pod autoscaling feature, which
-     * increases or decreases the number of replica pods a replication controller
-     * has based on the resource usage of the existing pods.
-     * 
- * - * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - */ - public Builder clearHorizontalPodAutoscaling() { - if (horizontalPodAutoscalingBuilder_ == null) { - horizontalPodAutoscaling_ = null; - onChanged(); - } else { - horizontalPodAutoscaling_ = null; - horizontalPodAutoscalingBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for the horizontal pod autoscaling feature, which
-     * increases or decreases the number of replica pods a replication controller
-     * has based on the resource usage of the existing pods.
-     * 
- * - * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - */ - public com.google.container.v1beta1.HorizontalPodAutoscaling.Builder getHorizontalPodAutoscalingBuilder() { - - onChanged(); - return getHorizontalPodAutoscalingFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for the horizontal pod autoscaling feature, which
-     * increases or decreases the number of replica pods a replication controller
-     * has based on the resource usage of the existing pods.
-     * 
- * - * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - */ - public com.google.container.v1beta1.HorizontalPodAutoscalingOrBuilder getHorizontalPodAutoscalingOrBuilder() { - if (horizontalPodAutoscalingBuilder_ != null) { - return horizontalPodAutoscalingBuilder_.getMessageOrBuilder(); - } else { - return horizontalPodAutoscaling_ == null ? - com.google.container.v1beta1.HorizontalPodAutoscaling.getDefaultInstance() : horizontalPodAutoscaling_; - } - } - /** - *
-     * Configuration for the horizontal pod autoscaling feature, which
-     * increases or decreases the number of replica pods a replication controller
-     * has based on the resource usage of the existing pods.
-     * 
- * - * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.HorizontalPodAutoscaling, com.google.container.v1beta1.HorizontalPodAutoscaling.Builder, com.google.container.v1beta1.HorizontalPodAutoscalingOrBuilder> - getHorizontalPodAutoscalingFieldBuilder() { - if (horizontalPodAutoscalingBuilder_ == null) { - horizontalPodAutoscalingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.HorizontalPodAutoscaling, com.google.container.v1beta1.HorizontalPodAutoscaling.Builder, com.google.container.v1beta1.HorizontalPodAutoscalingOrBuilder>( - getHorizontalPodAutoscaling(), - getParentForChildren(), - isClean()); - horizontalPodAutoscaling_ = null; - } - return horizontalPodAutoscalingBuilder_; - } - - private com.google.container.v1beta1.KubernetesDashboard kubernetesDashboard_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.KubernetesDashboard, com.google.container.v1beta1.KubernetesDashboard.Builder, com.google.container.v1beta1.KubernetesDashboardOrBuilder> kubernetesDashboardBuilder_; - /** - *
-     * Configuration for the Kubernetes Dashboard.
-     * This addon is deprecated, and will be disabled in 1.15. It is recommended
-     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
-     * workloads and applications. For more information, see:
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
-     * 
- * - * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1051 - * @return Whether the kubernetesDashboard field is set. - */ - @java.lang.Deprecated public boolean hasKubernetesDashboard() { - return kubernetesDashboardBuilder_ != null || kubernetesDashboard_ != null; - } - /** - *
-     * Configuration for the Kubernetes Dashboard.
-     * This addon is deprecated, and will be disabled in 1.15. It is recommended
-     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
-     * workloads and applications. For more information, see:
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
-     * 
- * - * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1051 - * @return The kubernetesDashboard. - */ - @java.lang.Deprecated public com.google.container.v1beta1.KubernetesDashboard getKubernetesDashboard() { - if (kubernetesDashboardBuilder_ == null) { - return kubernetesDashboard_ == null ? com.google.container.v1beta1.KubernetesDashboard.getDefaultInstance() : kubernetesDashboard_; - } else { - return kubernetesDashboardBuilder_.getMessage(); - } - } - /** - *
-     * Configuration for the Kubernetes Dashboard.
-     * This addon is deprecated, and will be disabled in 1.15. It is recommended
-     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
-     * workloads and applications. For more information, see:
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
-     * 
- * - * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setKubernetesDashboard(com.google.container.v1beta1.KubernetesDashboard value) { - if (kubernetesDashboardBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kubernetesDashboard_ = value; - onChanged(); - } else { - kubernetesDashboardBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for the Kubernetes Dashboard.
-     * This addon is deprecated, and will be disabled in 1.15. It is recommended
-     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
-     * workloads and applications. For more information, see:
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
-     * 
- * - * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setKubernetesDashboard( - com.google.container.v1beta1.KubernetesDashboard.Builder builderForValue) { - if (kubernetesDashboardBuilder_ == null) { - kubernetesDashboard_ = builderForValue.build(); - onChanged(); - } else { - kubernetesDashboardBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for the Kubernetes Dashboard.
-     * This addon is deprecated, and will be disabled in 1.15. It is recommended
-     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
-     * workloads and applications. For more information, see:
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
-     * 
- * - * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - */ - @java.lang.Deprecated public Builder mergeKubernetesDashboard(com.google.container.v1beta1.KubernetesDashboard value) { - if (kubernetesDashboardBuilder_ == null) { - if (kubernetesDashboard_ != null) { - kubernetesDashboard_ = - com.google.container.v1beta1.KubernetesDashboard.newBuilder(kubernetesDashboard_).mergeFrom(value).buildPartial(); - } else { - kubernetesDashboard_ = value; - } - onChanged(); - } else { - kubernetesDashboardBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for the Kubernetes Dashboard.
-     * This addon is deprecated, and will be disabled in 1.15. It is recommended
-     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
-     * workloads and applications. For more information, see:
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
-     * 
- * - * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearKubernetesDashboard() { - if (kubernetesDashboardBuilder_ == null) { - kubernetesDashboard_ = null; - onChanged(); - } else { - kubernetesDashboard_ = null; - kubernetesDashboardBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for the Kubernetes Dashboard.
-     * This addon is deprecated, and will be disabled in 1.15. It is recommended
-     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
-     * workloads and applications. For more information, see:
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
-     * 
- * - * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.container.v1beta1.KubernetesDashboard.Builder getKubernetesDashboardBuilder() { - - onChanged(); - return getKubernetesDashboardFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for the Kubernetes Dashboard.
-     * This addon is deprecated, and will be disabled in 1.15. It is recommended
-     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
-     * workloads and applications. For more information, see:
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
-     * 
- * - * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.container.v1beta1.KubernetesDashboardOrBuilder getKubernetesDashboardOrBuilder() { - if (kubernetesDashboardBuilder_ != null) { - return kubernetesDashboardBuilder_.getMessageOrBuilder(); - } else { - return kubernetesDashboard_ == null ? - com.google.container.v1beta1.KubernetesDashboard.getDefaultInstance() : kubernetesDashboard_; - } - } - /** - *
-     * Configuration for the Kubernetes Dashboard.
-     * This addon is deprecated, and will be disabled in 1.15. It is recommended
-     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
-     * workloads and applications. For more information, see:
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
-     * 
- * - * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.KubernetesDashboard, com.google.container.v1beta1.KubernetesDashboard.Builder, com.google.container.v1beta1.KubernetesDashboardOrBuilder> - getKubernetesDashboardFieldBuilder() { - if (kubernetesDashboardBuilder_ == null) { - kubernetesDashboardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.KubernetesDashboard, com.google.container.v1beta1.KubernetesDashboard.Builder, com.google.container.v1beta1.KubernetesDashboardOrBuilder>( - getKubernetesDashboard(), - getParentForChildren(), - isClean()); - kubernetesDashboard_ = null; - } - return kubernetesDashboardBuilder_; - } - - private com.google.container.v1beta1.NetworkPolicyConfig networkPolicyConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NetworkPolicyConfig, com.google.container.v1beta1.NetworkPolicyConfig.Builder, com.google.container.v1beta1.NetworkPolicyConfigOrBuilder> networkPolicyConfigBuilder_; - /** - *
-     * Configuration for NetworkPolicy. This only tracks whether the addon
-     * is enabled or not on the Master, it does not track whether network policy
-     * is enabled for the nodes.
-     * 
- * - * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; - * @return Whether the networkPolicyConfig field is set. - */ - public boolean hasNetworkPolicyConfig() { - return networkPolicyConfigBuilder_ != null || networkPolicyConfig_ != null; - } - /** - *
-     * Configuration for NetworkPolicy. This only tracks whether the addon
-     * is enabled or not on the Master, it does not track whether network policy
-     * is enabled for the nodes.
-     * 
- * - * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; - * @return The networkPolicyConfig. - */ - public com.google.container.v1beta1.NetworkPolicyConfig getNetworkPolicyConfig() { - if (networkPolicyConfigBuilder_ == null) { - return networkPolicyConfig_ == null ? com.google.container.v1beta1.NetworkPolicyConfig.getDefaultInstance() : networkPolicyConfig_; - } else { - return networkPolicyConfigBuilder_.getMessage(); - } - } - /** - *
-     * Configuration for NetworkPolicy. This only tracks whether the addon
-     * is enabled or not on the Master, it does not track whether network policy
-     * is enabled for the nodes.
-     * 
- * - * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; - */ - public Builder setNetworkPolicyConfig(com.google.container.v1beta1.NetworkPolicyConfig value) { - if (networkPolicyConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - networkPolicyConfig_ = value; - onChanged(); - } else { - networkPolicyConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for NetworkPolicy. This only tracks whether the addon
-     * is enabled or not on the Master, it does not track whether network policy
-     * is enabled for the nodes.
-     * 
- * - * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; - */ - public Builder setNetworkPolicyConfig( - com.google.container.v1beta1.NetworkPolicyConfig.Builder builderForValue) { - if (networkPolicyConfigBuilder_ == null) { - networkPolicyConfig_ = builderForValue.build(); - onChanged(); - } else { - networkPolicyConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for NetworkPolicy. This only tracks whether the addon
-     * is enabled or not on the Master, it does not track whether network policy
-     * is enabled for the nodes.
-     * 
- * - * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; - */ - public Builder mergeNetworkPolicyConfig(com.google.container.v1beta1.NetworkPolicyConfig value) { - if (networkPolicyConfigBuilder_ == null) { - if (networkPolicyConfig_ != null) { - networkPolicyConfig_ = - com.google.container.v1beta1.NetworkPolicyConfig.newBuilder(networkPolicyConfig_).mergeFrom(value).buildPartial(); - } else { - networkPolicyConfig_ = value; - } - onChanged(); - } else { - networkPolicyConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for NetworkPolicy. This only tracks whether the addon
-     * is enabled or not on the Master, it does not track whether network policy
-     * is enabled for the nodes.
-     * 
- * - * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; - */ - public Builder clearNetworkPolicyConfig() { - if (networkPolicyConfigBuilder_ == null) { - networkPolicyConfig_ = null; - onChanged(); - } else { - networkPolicyConfig_ = null; - networkPolicyConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for NetworkPolicy. This only tracks whether the addon
-     * is enabled or not on the Master, it does not track whether network policy
-     * is enabled for the nodes.
-     * 
- * - * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; - */ - public com.google.container.v1beta1.NetworkPolicyConfig.Builder getNetworkPolicyConfigBuilder() { - - onChanged(); - return getNetworkPolicyConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for NetworkPolicy. This only tracks whether the addon
-     * is enabled or not on the Master, it does not track whether network policy
-     * is enabled for the nodes.
-     * 
- * - * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; - */ - public com.google.container.v1beta1.NetworkPolicyConfigOrBuilder getNetworkPolicyConfigOrBuilder() { - if (networkPolicyConfigBuilder_ != null) { - return networkPolicyConfigBuilder_.getMessageOrBuilder(); - } else { - return networkPolicyConfig_ == null ? - com.google.container.v1beta1.NetworkPolicyConfig.getDefaultInstance() : networkPolicyConfig_; - } - } - /** - *
-     * Configuration for NetworkPolicy. This only tracks whether the addon
-     * is enabled or not on the Master, it does not track whether network policy
-     * is enabled for the nodes.
-     * 
- * - * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NetworkPolicyConfig, com.google.container.v1beta1.NetworkPolicyConfig.Builder, com.google.container.v1beta1.NetworkPolicyConfigOrBuilder> - getNetworkPolicyConfigFieldBuilder() { - if (networkPolicyConfigBuilder_ == null) { - networkPolicyConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NetworkPolicyConfig, com.google.container.v1beta1.NetworkPolicyConfig.Builder, com.google.container.v1beta1.NetworkPolicyConfigOrBuilder>( - getNetworkPolicyConfig(), - getParentForChildren(), - isClean()); - networkPolicyConfig_ = null; - } - return networkPolicyConfigBuilder_; - } - - private com.google.container.v1beta1.IstioConfig istioConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.IstioConfig, com.google.container.v1beta1.IstioConfig.Builder, com.google.container.v1beta1.IstioConfigOrBuilder> istioConfigBuilder_; - /** - *
-     * Configuration for Istio, an open platform to connect, manage, and secure
-     * microservices.
-     * 
- * - * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; - * @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1060 - * @return Whether the istioConfig field is set. - */ - @java.lang.Deprecated public boolean hasIstioConfig() { - return istioConfigBuilder_ != null || istioConfig_ != null; - } - /** - *
-     * Configuration for Istio, an open platform to connect, manage, and secure
-     * microservices.
-     * 
- * - * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; - * @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1060 - * @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; - onChanged(); - } else { - istioConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for Istio, an open platform to connect, manage, and secure
-     * microservices.
-     * 
- * - * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setIstioConfig( - com.google.container.v1beta1.IstioConfig.Builder builderForValue) { - if (istioConfigBuilder_ == null) { - istioConfig_ = builderForValue.build(); - onChanged(); - } else { - istioConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for Istio, an open platform to connect, manage, and secure
-     * microservices.
-     * 
- * - * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; - */ - @java.lang.Deprecated public Builder mergeIstioConfig(com.google.container.v1beta1.IstioConfig value) { - if (istioConfigBuilder_ == null) { - if (istioConfig_ != null) { - istioConfig_ = - com.google.container.v1beta1.IstioConfig.newBuilder(istioConfig_).mergeFrom(value).buildPartial(); - } else { - istioConfig_ = value; - } - onChanged(); - } else { - istioConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for Istio, an open platform to connect, manage, and secure
-     * microservices.
-     * 
- * - * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearIstioConfig() { - if (istioConfigBuilder_ == null) { - istioConfig_ = null; - onChanged(); - } else { - istioConfig_ = null; - istioConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for Istio, an open platform to connect, manage, and secure
-     * microservices.
-     * 
- * - * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.container.v1beta1.IstioConfig.Builder getIstioConfigBuilder() { - - onChanged(); - return getIstioConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for Istio, an open platform to connect, manage, and secure
-     * microservices.
-     * 
- * - * .google.container.v1beta1.IstioConfig istio_config = 5 [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 cloudRunConfigBuilder_ != null || cloudRunConfig_ != null; - } - /** - *
-     * Configuration for the Cloud Run addon. The `IstioConfig` addon must be
-     * enabled in order to enable Cloud Run addon. This option can only be enabled
-     * at cluster creation time.
-     * 
- * - * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; - * @return The cloudRunConfig. - */ - public com.google.container.v1beta1.CloudRunConfig getCloudRunConfig() { - if (cloudRunConfigBuilder_ == null) { - return cloudRunConfig_ == null ? com.google.container.v1beta1.CloudRunConfig.getDefaultInstance() : cloudRunConfig_; - } else { - return cloudRunConfigBuilder_.getMessage(); - } - } - /** - *
-     * Configuration for the Cloud Run addon. The `IstioConfig` addon must be
-     * enabled in order to enable Cloud Run addon. This option can only be enabled
-     * at cluster creation time.
-     * 
- * - * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; - */ - public Builder setCloudRunConfig(com.google.container.v1beta1.CloudRunConfig value) { - if (cloudRunConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - cloudRunConfig_ = value; - onChanged(); - } else { - cloudRunConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for the Cloud Run addon. The `IstioConfig` addon must be
-     * enabled in order to enable Cloud Run addon. This option can only be enabled
-     * at cluster creation time.
-     * 
- * - * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; - */ - public Builder setCloudRunConfig( - com.google.container.v1beta1.CloudRunConfig.Builder builderForValue) { - if (cloudRunConfigBuilder_ == null) { - cloudRunConfig_ = builderForValue.build(); - onChanged(); - } else { - cloudRunConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for the Cloud Run addon. The `IstioConfig` addon must be
-     * enabled in order to enable Cloud Run addon. This option can only be enabled
-     * at cluster creation time.
-     * 
- * - * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; - */ - public Builder mergeCloudRunConfig(com.google.container.v1beta1.CloudRunConfig value) { - if (cloudRunConfigBuilder_ == null) { - if (cloudRunConfig_ != null) { - cloudRunConfig_ = - com.google.container.v1beta1.CloudRunConfig.newBuilder(cloudRunConfig_).mergeFrom(value).buildPartial(); - } else { - cloudRunConfig_ = value; - } - onChanged(); - } else { - cloudRunConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for the Cloud Run addon. The `IstioConfig` addon must be
-     * enabled in order to enable Cloud Run addon. This option can only be enabled
-     * at cluster creation time.
-     * 
- * - * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; - */ - public Builder clearCloudRunConfig() { - if (cloudRunConfigBuilder_ == null) { - cloudRunConfig_ = null; - onChanged(); - } else { - cloudRunConfig_ = null; - cloudRunConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for the Cloud Run addon. The `IstioConfig` addon must be
-     * enabled in order to enable Cloud Run addon. This option can only be enabled
-     * at cluster creation time.
-     * 
- * - * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; - */ - public com.google.container.v1beta1.CloudRunConfig.Builder getCloudRunConfigBuilder() { - - onChanged(); - return getCloudRunConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for the Cloud Run addon. The `IstioConfig` addon must be
-     * enabled in order to enable Cloud Run addon. This option can only be enabled
-     * at cluster creation time.
-     * 
- * - * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; - */ - public com.google.container.v1beta1.CloudRunConfigOrBuilder getCloudRunConfigOrBuilder() { - if (cloudRunConfigBuilder_ != null) { - return cloudRunConfigBuilder_.getMessageOrBuilder(); - } else { - return cloudRunConfig_ == null ? - com.google.container.v1beta1.CloudRunConfig.getDefaultInstance() : cloudRunConfig_; - } - } - /** - *
-     * Configuration for the Cloud Run addon. The `IstioConfig` addon must be
-     * enabled in order to enable Cloud Run addon. This option can only be enabled
-     * at cluster creation time.
-     * 
- * - * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.CloudRunConfig, com.google.container.v1beta1.CloudRunConfig.Builder, com.google.container.v1beta1.CloudRunConfigOrBuilder> - getCloudRunConfigFieldBuilder() { - if (cloudRunConfigBuilder_ == null) { - cloudRunConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.CloudRunConfig, com.google.container.v1beta1.CloudRunConfig.Builder, com.google.container.v1beta1.CloudRunConfigOrBuilder>( - getCloudRunConfig(), - getParentForChildren(), - isClean()); - cloudRunConfig_ = null; - } - return cloudRunConfigBuilder_; - } - - private com.google.container.v1beta1.DnsCacheConfig dnsCacheConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.DnsCacheConfig, com.google.container.v1beta1.DnsCacheConfig.Builder, com.google.container.v1beta1.DnsCacheConfigOrBuilder> dnsCacheConfigBuilder_; - /** - *
-     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-     * 
- * - * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; - * @return Whether the dnsCacheConfig field is set. - */ - public boolean hasDnsCacheConfig() { - return dnsCacheConfigBuilder_ != null || dnsCacheConfig_ != null; - } - /** - *
-     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-     * 
- * - * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; - * @return The dnsCacheConfig. - */ - public com.google.container.v1beta1.DnsCacheConfig getDnsCacheConfig() { - if (dnsCacheConfigBuilder_ == null) { - return dnsCacheConfig_ == null ? com.google.container.v1beta1.DnsCacheConfig.getDefaultInstance() : dnsCacheConfig_; - } else { - return dnsCacheConfigBuilder_.getMessage(); - } - } - /** - *
-     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-     * 
- * - * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; - */ - public Builder setDnsCacheConfig(com.google.container.v1beta1.DnsCacheConfig value) { - if (dnsCacheConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dnsCacheConfig_ = value; - onChanged(); - } else { - dnsCacheConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-     * 
- * - * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; - */ - public Builder setDnsCacheConfig( - com.google.container.v1beta1.DnsCacheConfig.Builder builderForValue) { - if (dnsCacheConfigBuilder_ == null) { - dnsCacheConfig_ = builderForValue.build(); - onChanged(); - } else { - dnsCacheConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-     * 
- * - * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; - */ - public Builder mergeDnsCacheConfig(com.google.container.v1beta1.DnsCacheConfig value) { - if (dnsCacheConfigBuilder_ == null) { - if (dnsCacheConfig_ != null) { - dnsCacheConfig_ = - com.google.container.v1beta1.DnsCacheConfig.newBuilder(dnsCacheConfig_).mergeFrom(value).buildPartial(); - } else { - dnsCacheConfig_ = value; - } - onChanged(); - } else { - dnsCacheConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-     * 
- * - * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; - */ - public Builder clearDnsCacheConfig() { - if (dnsCacheConfigBuilder_ == null) { - dnsCacheConfig_ = null; - onChanged(); - } else { - dnsCacheConfig_ = null; - dnsCacheConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-     * 
- * - * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; - */ - public com.google.container.v1beta1.DnsCacheConfig.Builder getDnsCacheConfigBuilder() { - - onChanged(); - return getDnsCacheConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-     * 
- * - * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; - */ - public com.google.container.v1beta1.DnsCacheConfigOrBuilder getDnsCacheConfigOrBuilder() { - if (dnsCacheConfigBuilder_ != null) { - return dnsCacheConfigBuilder_.getMessageOrBuilder(); - } else { - return dnsCacheConfig_ == null ? - com.google.container.v1beta1.DnsCacheConfig.getDefaultInstance() : dnsCacheConfig_; - } - } - /** - *
-     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-     * 
- * - * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.DnsCacheConfig, com.google.container.v1beta1.DnsCacheConfig.Builder, com.google.container.v1beta1.DnsCacheConfigOrBuilder> - getDnsCacheConfigFieldBuilder() { - if (dnsCacheConfigBuilder_ == null) { - dnsCacheConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.DnsCacheConfig, com.google.container.v1beta1.DnsCacheConfig.Builder, com.google.container.v1beta1.DnsCacheConfigOrBuilder>( - getDnsCacheConfig(), - getParentForChildren(), - isClean()); - dnsCacheConfig_ = null; - } - return dnsCacheConfigBuilder_; - } - - private com.google.container.v1beta1.ConfigConnectorConfig configConnectorConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ConfigConnectorConfig, com.google.container.v1beta1.ConfigConnectorConfig.Builder, com.google.container.v1beta1.ConfigConnectorConfigOrBuilder> configConnectorConfigBuilder_; - /** - *
-     * Configuration for the ConfigConnector add-on, a Kubernetes
-     * extension to manage hosted GCP services through the Kubernetes API
-     * 
- * - * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; - * @return Whether the configConnectorConfig field is set. - */ - public boolean hasConfigConnectorConfig() { - return configConnectorConfigBuilder_ != null || configConnectorConfig_ != null; - } - /** - *
-     * Configuration for the ConfigConnector add-on, a Kubernetes
-     * extension to manage hosted GCP services through the Kubernetes API
-     * 
- * - * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; - * @return The configConnectorConfig. - */ - public com.google.container.v1beta1.ConfigConnectorConfig getConfigConnectorConfig() { - if (configConnectorConfigBuilder_ == null) { - return configConnectorConfig_ == null ? com.google.container.v1beta1.ConfigConnectorConfig.getDefaultInstance() : configConnectorConfig_; - } else { - return configConnectorConfigBuilder_.getMessage(); - } - } - /** - *
-     * Configuration for the ConfigConnector add-on, a Kubernetes
-     * extension to manage hosted GCP services through the Kubernetes API
-     * 
- * - * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; - */ - public Builder setConfigConnectorConfig(com.google.container.v1beta1.ConfigConnectorConfig value) { - if (configConnectorConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - configConnectorConfig_ = value; - onChanged(); - } else { - configConnectorConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for the ConfigConnector add-on, a Kubernetes
-     * extension to manage hosted GCP services through the Kubernetes API
-     * 
- * - * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; - */ - public Builder setConfigConnectorConfig( - com.google.container.v1beta1.ConfigConnectorConfig.Builder builderForValue) { - if (configConnectorConfigBuilder_ == null) { - configConnectorConfig_ = builderForValue.build(); - onChanged(); - } else { - configConnectorConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for the ConfigConnector add-on, a Kubernetes
-     * extension to manage hosted GCP services through the Kubernetes API
-     * 
- * - * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; - */ - public Builder mergeConfigConnectorConfig(com.google.container.v1beta1.ConfigConnectorConfig value) { - if (configConnectorConfigBuilder_ == null) { - if (configConnectorConfig_ != null) { - configConnectorConfig_ = - com.google.container.v1beta1.ConfigConnectorConfig.newBuilder(configConnectorConfig_).mergeFrom(value).buildPartial(); - } else { - configConnectorConfig_ = value; - } - onChanged(); - } else { - configConnectorConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for the ConfigConnector add-on, a Kubernetes
-     * extension to manage hosted GCP services through the Kubernetes API
-     * 
- * - * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; - */ - public Builder clearConfigConnectorConfig() { - if (configConnectorConfigBuilder_ == null) { - configConnectorConfig_ = null; - onChanged(); - } else { - configConnectorConfig_ = null; - configConnectorConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for the ConfigConnector add-on, a Kubernetes
-     * extension to manage hosted GCP services through the Kubernetes API
-     * 
- * - * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; - */ - public com.google.container.v1beta1.ConfigConnectorConfig.Builder getConfigConnectorConfigBuilder() { - - onChanged(); - return getConfigConnectorConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for the ConfigConnector add-on, a Kubernetes
-     * extension to manage hosted GCP services through the Kubernetes API
-     * 
- * - * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; - */ - public com.google.container.v1beta1.ConfigConnectorConfigOrBuilder getConfigConnectorConfigOrBuilder() { - if (configConnectorConfigBuilder_ != null) { - return configConnectorConfigBuilder_.getMessageOrBuilder(); - } else { - return configConnectorConfig_ == null ? - com.google.container.v1beta1.ConfigConnectorConfig.getDefaultInstance() : configConnectorConfig_; - } - } - /** - *
-     * Configuration for the ConfigConnector add-on, a Kubernetes
-     * extension to manage hosted GCP services through the Kubernetes API
-     * 
- * - * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ConfigConnectorConfig, com.google.container.v1beta1.ConfigConnectorConfig.Builder, com.google.container.v1beta1.ConfigConnectorConfigOrBuilder> - getConfigConnectorConfigFieldBuilder() { - if (configConnectorConfigBuilder_ == null) { - configConnectorConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ConfigConnectorConfig, com.google.container.v1beta1.ConfigConnectorConfig.Builder, com.google.container.v1beta1.ConfigConnectorConfigOrBuilder>( - getConfigConnectorConfig(), - getParentForChildren(), - isClean()); - configConnectorConfig_ = null; - } - return configConnectorConfigBuilder_; - } - - private com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig gcePersistentDiskCsiDriverConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig, com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.Builder, com.google.container.v1beta1.GcePersistentDiskCsiDriverConfigOrBuilder> gcePersistentDiskCsiDriverConfigBuilder_; - /** - *
-     * Configuration for the Compute Engine Persistent Disk CSI driver.
-     * 
- * - * .google.container.v1beta1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - * @return Whether the gcePersistentDiskCsiDriverConfig field is set. - */ - public boolean hasGcePersistentDiskCsiDriverConfig() { - return gcePersistentDiskCsiDriverConfigBuilder_ != null || gcePersistentDiskCsiDriverConfig_ != null; - } - /** - *
-     * Configuration for the Compute Engine Persistent Disk CSI driver.
-     * 
- * - * .google.container.v1beta1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - * @return The gcePersistentDiskCsiDriverConfig. - */ - public com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig getGcePersistentDiskCsiDriverConfig() { - if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { - return gcePersistentDiskCsiDriverConfig_ == null ? com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.getDefaultInstance() : gcePersistentDiskCsiDriverConfig_; - } else { - return gcePersistentDiskCsiDriverConfigBuilder_.getMessage(); - } - } - /** - *
-     * Configuration for the Compute Engine Persistent Disk CSI driver.
-     * 
- * - * .google.container.v1beta1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - */ - public Builder setGcePersistentDiskCsiDriverConfig(com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig value) { - if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gcePersistentDiskCsiDriverConfig_ = value; - onChanged(); - } else { - gcePersistentDiskCsiDriverConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for the Compute Engine Persistent Disk CSI driver.
-     * 
- * - * .google.container.v1beta1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - */ - public Builder setGcePersistentDiskCsiDriverConfig( - com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.Builder builderForValue) { - if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { - gcePersistentDiskCsiDriverConfig_ = builderForValue.build(); - onChanged(); - } else { - gcePersistentDiskCsiDriverConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for the Compute Engine Persistent Disk CSI driver.
-     * 
- * - * .google.container.v1beta1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - */ - public Builder mergeGcePersistentDiskCsiDriverConfig(com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig value) { - if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { - if (gcePersistentDiskCsiDriverConfig_ != null) { - gcePersistentDiskCsiDriverConfig_ = - com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.newBuilder(gcePersistentDiskCsiDriverConfig_).mergeFrom(value).buildPartial(); - } else { - gcePersistentDiskCsiDriverConfig_ = value; - } - onChanged(); - } else { - gcePersistentDiskCsiDriverConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for the Compute Engine Persistent Disk CSI driver.
-     * 
- * - * .google.container.v1beta1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - */ - public Builder clearGcePersistentDiskCsiDriverConfig() { - if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { - gcePersistentDiskCsiDriverConfig_ = null; - onChanged(); - } else { - gcePersistentDiskCsiDriverConfig_ = null; - gcePersistentDiskCsiDriverConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for the Compute Engine Persistent Disk CSI driver.
-     * 
- * - * .google.container.v1beta1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - */ - public com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.Builder getGcePersistentDiskCsiDriverConfigBuilder() { - - onChanged(); - return getGcePersistentDiskCsiDriverConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for the Compute Engine Persistent Disk CSI driver.
-     * 
- * - * .google.container.v1beta1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - */ - public com.google.container.v1beta1.GcePersistentDiskCsiDriverConfigOrBuilder getGcePersistentDiskCsiDriverConfigOrBuilder() { - if (gcePersistentDiskCsiDriverConfigBuilder_ != null) { - return gcePersistentDiskCsiDriverConfigBuilder_.getMessageOrBuilder(); - } else { - return gcePersistentDiskCsiDriverConfig_ == null ? - com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.getDefaultInstance() : gcePersistentDiskCsiDriverConfig_; - } - } - /** - *
-     * Configuration for the Compute Engine Persistent Disk CSI driver.
-     * 
- * - * .google.container.v1beta1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig, com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.Builder, com.google.container.v1beta1.GcePersistentDiskCsiDriverConfigOrBuilder> - getGcePersistentDiskCsiDriverConfigFieldBuilder() { - if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { - gcePersistentDiskCsiDriverConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig, com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.Builder, com.google.container.v1beta1.GcePersistentDiskCsiDriverConfigOrBuilder>( - getGcePersistentDiskCsiDriverConfig(), - getParentForChildren(), - isClean()); - gcePersistentDiskCsiDriverConfig_ = null; - } - return gcePersistentDiskCsiDriverConfigBuilder_; - } - - private com.google.container.v1beta1.KalmConfig kalmConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.KalmConfig, com.google.container.v1beta1.KalmConfig.Builder, com.google.container.v1beta1.KalmConfigOrBuilder> kalmConfigBuilder_; - /** - *
-     * Configuration for the KALM addon, which manages the lifecycle of k8s
-     * applications.
-     * 
- * - * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; - * @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1079 - * @return Whether the kalmConfig field is set. - */ - @java.lang.Deprecated public boolean hasKalmConfig() { - return kalmConfigBuilder_ != null || kalmConfig_ != null; - } - /** - *
-     * Configuration for the KALM addon, which manages the lifecycle of k8s
-     * applications.
-     * 
- * - * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; - * @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1079 - * @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; - onChanged(); - } else { - kalmConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for the KALM addon, which manages the lifecycle of k8s
-     * applications.
-     * 
- * - * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setKalmConfig( - com.google.container.v1beta1.KalmConfig.Builder builderForValue) { - if (kalmConfigBuilder_ == null) { - kalmConfig_ = builderForValue.build(); - onChanged(); - } else { - kalmConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for the KALM addon, which manages the lifecycle of k8s
-     * applications.
-     * 
- * - * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; - */ - @java.lang.Deprecated public Builder mergeKalmConfig(com.google.container.v1beta1.KalmConfig value) { - if (kalmConfigBuilder_ == null) { - if (kalmConfig_ != null) { - kalmConfig_ = - com.google.container.v1beta1.KalmConfig.newBuilder(kalmConfig_).mergeFrom(value).buildPartial(); - } else { - kalmConfig_ = value; - } - onChanged(); - } else { - kalmConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for the KALM addon, which manages the lifecycle of k8s
-     * applications.
-     * 
- * - * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearKalmConfig() { - if (kalmConfigBuilder_ == null) { - kalmConfig_ = null; - onChanged(); - } else { - kalmConfig_ = null; - kalmConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for the KALM addon, which manages the lifecycle of k8s
-     * applications.
-     * 
- * - * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.container.v1beta1.KalmConfig.Builder getKalmConfigBuilder() { - - onChanged(); - return getKalmConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for the KALM addon, which manages the lifecycle of k8s
-     * applications.
-     * 
- * - * .google.container.v1beta1.KalmConfig kalm_config = 12 [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 gcpFilestoreCsiDriverConfigBuilder_ != null || gcpFilestoreCsiDriverConfig_ != null; - } - /** - *
-     * Configuration for the GCP Filestore CSI driver.
-     * 
- * - * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * @return The gcpFilestoreCsiDriverConfig. - */ - public com.google.container.v1beta1.GcpFilestoreCsiDriverConfig getGcpFilestoreCsiDriverConfig() { - if (gcpFilestoreCsiDriverConfigBuilder_ == null) { - return gcpFilestoreCsiDriverConfig_ == null ? com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.getDefaultInstance() : gcpFilestoreCsiDriverConfig_; - } else { - return gcpFilestoreCsiDriverConfigBuilder_.getMessage(); - } - } - /** - *
-     * Configuration for the GCP Filestore CSI driver.
-     * 
- * - * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - */ - public Builder setGcpFilestoreCsiDriverConfig(com.google.container.v1beta1.GcpFilestoreCsiDriverConfig value) { - if (gcpFilestoreCsiDriverConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gcpFilestoreCsiDriverConfig_ = value; - onChanged(); - } else { - gcpFilestoreCsiDriverConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for the GCP Filestore CSI driver.
-     * 
- * - * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - */ - public Builder setGcpFilestoreCsiDriverConfig( - com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.Builder builderForValue) { - if (gcpFilestoreCsiDriverConfigBuilder_ == null) { - gcpFilestoreCsiDriverConfig_ = builderForValue.build(); - onChanged(); - } else { - gcpFilestoreCsiDriverConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for the GCP Filestore CSI driver.
-     * 
- * - * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - */ - public Builder mergeGcpFilestoreCsiDriverConfig(com.google.container.v1beta1.GcpFilestoreCsiDriverConfig value) { - if (gcpFilestoreCsiDriverConfigBuilder_ == null) { - if (gcpFilestoreCsiDriverConfig_ != null) { - gcpFilestoreCsiDriverConfig_ = - com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.newBuilder(gcpFilestoreCsiDriverConfig_).mergeFrom(value).buildPartial(); - } else { - gcpFilestoreCsiDriverConfig_ = value; - } - onChanged(); - } else { - gcpFilestoreCsiDriverConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for the GCP Filestore CSI driver.
-     * 
- * - * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - */ - public Builder clearGcpFilestoreCsiDriverConfig() { - if (gcpFilestoreCsiDriverConfigBuilder_ == null) { - gcpFilestoreCsiDriverConfig_ = null; - onChanged(); - } else { - gcpFilestoreCsiDriverConfig_ = null; - gcpFilestoreCsiDriverConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for the GCP Filestore CSI driver.
-     * 
- * - * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - */ - public com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.Builder getGcpFilestoreCsiDriverConfigBuilder() { - - onChanged(); - return getGcpFilestoreCsiDriverConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for the GCP Filestore CSI driver.
-     * 
- * - * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - */ - public com.google.container.v1beta1.GcpFilestoreCsiDriverConfigOrBuilder getGcpFilestoreCsiDriverConfigOrBuilder() { - if (gcpFilestoreCsiDriverConfigBuilder_ != null) { - return gcpFilestoreCsiDriverConfigBuilder_.getMessageOrBuilder(); - } else { - return gcpFilestoreCsiDriverConfig_ == null ? - com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.getDefaultInstance() : gcpFilestoreCsiDriverConfig_; - } - } - /** - *
-     * Configuration for the GCP Filestore CSI driver.
-     * 
- * - * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GcpFilestoreCsiDriverConfig, com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.Builder, com.google.container.v1beta1.GcpFilestoreCsiDriverConfigOrBuilder> - getGcpFilestoreCsiDriverConfigFieldBuilder() { - if (gcpFilestoreCsiDriverConfigBuilder_ == null) { - gcpFilestoreCsiDriverConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GcpFilestoreCsiDriverConfig, com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.Builder, com.google.container.v1beta1.GcpFilestoreCsiDriverConfigOrBuilder>( - getGcpFilestoreCsiDriverConfig(), - getParentForChildren(), - isClean()); - gcpFilestoreCsiDriverConfig_ = null; - } - return gcpFilestoreCsiDriverConfigBuilder_; - } - - private com.google.container.v1beta1.GkeBackupAgentConfig gkeBackupAgentConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GkeBackupAgentConfig, com.google.container.v1beta1.GkeBackupAgentConfig.Builder, com.google.container.v1beta1.GkeBackupAgentConfigOrBuilder> gkeBackupAgentConfigBuilder_; - /** - *
-     * Configuration for the Backup for GKE agent addon.
-     * 
- * - * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; - * @return Whether the gkeBackupAgentConfig field is set. - */ - public boolean hasGkeBackupAgentConfig() { - return gkeBackupAgentConfigBuilder_ != null || gkeBackupAgentConfig_ != null; - } - /** - *
-     * Configuration for the Backup for GKE agent addon.
-     * 
- * - * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; - * @return The gkeBackupAgentConfig. - */ - public com.google.container.v1beta1.GkeBackupAgentConfig getGkeBackupAgentConfig() { - if (gkeBackupAgentConfigBuilder_ == null) { - return gkeBackupAgentConfig_ == null ? com.google.container.v1beta1.GkeBackupAgentConfig.getDefaultInstance() : gkeBackupAgentConfig_; - } else { - return gkeBackupAgentConfigBuilder_.getMessage(); - } - } - /** - *
-     * Configuration for the Backup for GKE agent addon.
-     * 
- * - * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; - */ - public Builder setGkeBackupAgentConfig(com.google.container.v1beta1.GkeBackupAgentConfig value) { - if (gkeBackupAgentConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gkeBackupAgentConfig_ = value; - onChanged(); - } else { - gkeBackupAgentConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for the Backup for GKE agent addon.
-     * 
- * - * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; - */ - public Builder setGkeBackupAgentConfig( - com.google.container.v1beta1.GkeBackupAgentConfig.Builder builderForValue) { - if (gkeBackupAgentConfigBuilder_ == null) { - gkeBackupAgentConfig_ = builderForValue.build(); - onChanged(); - } else { - gkeBackupAgentConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for the Backup for GKE agent addon.
-     * 
- * - * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; - */ - public Builder mergeGkeBackupAgentConfig(com.google.container.v1beta1.GkeBackupAgentConfig value) { - if (gkeBackupAgentConfigBuilder_ == null) { - if (gkeBackupAgentConfig_ != null) { - gkeBackupAgentConfig_ = - com.google.container.v1beta1.GkeBackupAgentConfig.newBuilder(gkeBackupAgentConfig_).mergeFrom(value).buildPartial(); - } else { - gkeBackupAgentConfig_ = value; - } - onChanged(); - } else { - gkeBackupAgentConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for the Backup for GKE agent addon.
-     * 
- * - * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; - */ - public Builder clearGkeBackupAgentConfig() { - if (gkeBackupAgentConfigBuilder_ == null) { - gkeBackupAgentConfig_ = null; - onChanged(); - } else { - gkeBackupAgentConfig_ = null; - gkeBackupAgentConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for the Backup for GKE agent addon.
-     * 
- * - * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; - */ - public com.google.container.v1beta1.GkeBackupAgentConfig.Builder getGkeBackupAgentConfigBuilder() { - - onChanged(); - return getGkeBackupAgentConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for the Backup for GKE agent addon.
-     * 
- * - * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; - */ - public com.google.container.v1beta1.GkeBackupAgentConfigOrBuilder getGkeBackupAgentConfigOrBuilder() { - if (gkeBackupAgentConfigBuilder_ != null) { - return gkeBackupAgentConfigBuilder_.getMessageOrBuilder(); - } else { - return gkeBackupAgentConfig_ == null ? - com.google.container.v1beta1.GkeBackupAgentConfig.getDefaultInstance() : gkeBackupAgentConfig_; - } - } - /** - *
-     * Configuration for the Backup for GKE agent addon.
-     * 
- * - * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GkeBackupAgentConfig, com.google.container.v1beta1.GkeBackupAgentConfig.Builder, com.google.container.v1beta1.GkeBackupAgentConfigOrBuilder> - getGkeBackupAgentConfigFieldBuilder() { - if (gkeBackupAgentConfigBuilder_ == null) { - gkeBackupAgentConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GkeBackupAgentConfig, com.google.container.v1beta1.GkeBackupAgentConfig.Builder, com.google.container.v1beta1.GkeBackupAgentConfigOrBuilder>( - getGkeBackupAgentConfig(), - getParentForChildren(), - isClean()); - gkeBackupAgentConfig_ = null; - } - return gkeBackupAgentConfigBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index f5a185942c3a..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfigOrBuilder.java +++ /dev/null @@ -1,387 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface AddonsConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.AddonsConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Configuration for the HTTP (L7) load balancing controller addon, which
-   * makes it easy to set up HTTP load balancers for services in a cluster.
-   * 
- * - * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; - * @return Whether the httpLoadBalancing field is set. - */ - boolean hasHttpLoadBalancing(); - /** - *
-   * Configuration for the HTTP (L7) load balancing controller addon, which
-   * makes it easy to set up HTTP load balancers for services in a cluster.
-   * 
- * - * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; - * @return The httpLoadBalancing. - */ - com.google.container.v1beta1.HttpLoadBalancing getHttpLoadBalancing(); - /** - *
-   * Configuration for the HTTP (L7) load balancing controller addon, which
-   * makes it easy to set up HTTP load balancers for services in a cluster.
-   * 
- * - * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; - */ - com.google.container.v1beta1.HttpLoadBalancingOrBuilder getHttpLoadBalancingOrBuilder(); - - /** - *
-   * Configuration for the horizontal pod autoscaling feature, which
-   * increases or decreases the number of replica pods a replication controller
-   * has based on the resource usage of the existing pods.
-   * 
- * - * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - * @return Whether the horizontalPodAutoscaling field is set. - */ - boolean hasHorizontalPodAutoscaling(); - /** - *
-   * Configuration for the horizontal pod autoscaling feature, which
-   * increases or decreases the number of replica pods a replication controller
-   * has based on the resource usage of the existing pods.
-   * 
- * - * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - * @return The horizontalPodAutoscaling. - */ - com.google.container.v1beta1.HorizontalPodAutoscaling getHorizontalPodAutoscaling(); - /** - *
-   * Configuration for the horizontal pod autoscaling feature, which
-   * increases or decreases the number of replica pods a replication controller
-   * has based on the resource usage of the existing pods.
-   * 
- * - * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - */ - com.google.container.v1beta1.HorizontalPodAutoscalingOrBuilder getHorizontalPodAutoscalingOrBuilder(); - - /** - *
-   * Configuration for the Kubernetes Dashboard.
-   * This addon is deprecated, and will be disabled in 1.15. It is recommended
-   * to use the Cloud Console to manage and monitor your Kubernetes clusters,
-   * workloads and applications. For more information, see:
-   * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
-   * 
- * - * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1051 - * @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=1051 - * @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=1060 - * @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=1060 - * @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=1079 - * @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=1079 - * @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(); -} 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 deleted file mode 100644 index b2fd5f86fdc5..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdvancedMachineFeatures.java +++ /dev/null @@ -1,539 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Specifies options for controlling advanced machine features.
- * 
- * - * Protobuf type {@code google.container.v1beta1.AdvancedMachineFeatures} - */ -public final class AdvancedMachineFeatures extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.AdvancedMachineFeatures) - AdvancedMachineFeaturesOrBuilder { -private static final long serialVersionUID = 0L; - // Use AdvancedMachineFeatures.newBuilder() to construct. - private AdvancedMachineFeatures(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AdvancedMachineFeatures() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AdvancedMachineFeatures(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AdvancedMachineFeatures_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AdvancedMachineFeatures_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.AdvancedMachineFeatures.class, com.google.container.v1beta1.AdvancedMachineFeatures.Builder.class); - } - - private int bitField0_; - public static final int THREADS_PER_CORE_FIELD_NUMBER = 1; - private long threadsPerCore_; - /** - *
-   * The number of threads per physical core. To disable simultaneous
-   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
-   * supported per core by the underlying processor is assumed.
-   * 
- * - * optional int64 threads_per_core = 1; - * @return Whether the threadsPerCore field is set. - */ - @java.lang.Override - public boolean hasThreadsPerCore() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * The number of threads per physical core. To disable simultaneous
-   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
-   * supported per core by the underlying processor is assumed.
-   * 
- * - * optional int64 threads_per_core = 1; - * @return The threadsPerCore. - */ - @java.lang.Override - public long getThreadsPerCore() { - return threadsPerCore_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt64(1, threadsPerCore_); - } - 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(); - threadsPerCore_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AdvancedMachineFeatures_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.AdvancedMachineFeatures getDefaultInstanceForType() { - return com.google.container.v1beta1.AdvancedMachineFeatures.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.AdvancedMachineFeatures build() { - com.google.container.v1beta1.AdvancedMachineFeatures result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.AdvancedMachineFeatures buildPartial() { - com.google.container.v1beta1.AdvancedMachineFeatures result = new com.google.container.v1beta1.AdvancedMachineFeatures(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.threadsPerCore_ = threadsPerCore_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.AdvancedMachineFeatures) { - return mergeFrom((com.google.container.v1beta1.AdvancedMachineFeatures)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.AdvancedMachineFeatures other) { - if (other == com.google.container.v1beta1.AdvancedMachineFeatures.getDefaultInstance()) return this; - if (other.hasThreadsPerCore()) { - setThreadsPerCore(other.getThreadsPerCore()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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) { - bitField0_ |= 0x00000001; - threadsPerCore_ = value; - onChanged(); - return this; - } - /** - *
-     * The number of threads per physical core. To disable simultaneous
-     * multithreading (SMT) set this to 1. If unset, the maximum number of threads
-     * supported per core by the underlying processor is assumed.
-     * 
- * - * optional int64 threads_per_core = 1; - * @return This builder for chaining. - */ - public Builder clearThreadsPerCore() { - bitField0_ = (bitField0_ & ~0x00000001); - threadsPerCore_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.AdvancedMachineFeatures) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.AdvancedMachineFeatures) - private static final com.google.container.v1beta1.AdvancedMachineFeatures DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.AdvancedMachineFeatures(); - } - - public static com.google.container.v1beta1.AdvancedMachineFeatures getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AdvancedMachineFeatures parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 5981e45af7ac..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdvancedMachineFeaturesOrBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface AdvancedMachineFeaturesOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.AdvancedMachineFeatures) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The number of threads per physical core. To disable simultaneous
-   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
-   * supported per core by the underlying processor is assumed.
-   * 
- * - * optional int64 threads_per_core = 1; - * @return Whether the threadsPerCore field is set. - */ - boolean hasThreadsPerCore(); - /** - *
-   * The number of threads per physical core. To disable simultaneous
-   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
-   * supported per core by the underlying processor is assumed.
-   * 
- * - * optional int64 threads_per_core = 1; - * @return The threadsPerCore. - */ - long getThreadsPerCore(); -} diff --git a/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 deleted file mode 100644 index 42899f04d576..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AuthenticatorGroupsConfig.java +++ /dev/null @@ -1,666 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Configuration for returning group information from authenticators.
- * 
- * - * Protobuf type {@code google.container.v1beta1.AuthenticatorGroupsConfig} - */ -public final class AuthenticatorGroupsConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.AuthenticatorGroupsConfig) - AuthenticatorGroupsConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use AuthenticatorGroupsConfig.newBuilder() to construct. - private AuthenticatorGroupsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AuthenticatorGroupsConfig() { - securityGroup_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AuthenticatorGroupsConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AuthenticatorGroupsConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AuthenticatorGroupsConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.AuthenticatorGroupsConfig.class, com.google.container.v1beta1.AuthenticatorGroupsConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-   * Whether this cluster should return group membership lookups
-   * during authentication using a group of security groups.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - public static final int SECURITY_GROUP_FIELD_NUMBER = 2; - private volatile java.lang.Object securityGroup_; - /** - *
-   * The name of the security group-of-groups to be used. Only relevant
-   * if enabled = true.
-   * 
- * - * string security_group = 2; - * @return The securityGroup. - */ - @java.lang.Override - public java.lang.String getSecurityGroup() { - java.lang.Object ref = securityGroup_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - securityGroup_ = s; - return s; - } - } - /** - *
-   * The name of the security group-of-groups to be used. Only relevant
-   * if enabled = true.
-   * 
- * - * string security_group = 2; - * @return The bytes for securityGroup. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSecurityGroupBytes() { - java.lang.Object ref = securityGroup_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - securityGroup_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - if (!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(); - enabled_ = false; - - securityGroup_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AuthenticatorGroupsConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.AuthenticatorGroupsConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.AuthenticatorGroupsConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.AuthenticatorGroupsConfig build() { - com.google.container.v1beta1.AuthenticatorGroupsConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.AuthenticatorGroupsConfig buildPartial() { - com.google.container.v1beta1.AuthenticatorGroupsConfig result = new com.google.container.v1beta1.AuthenticatorGroupsConfig(this); - result.enabled_ = enabled_; - result.securityGroup_ = securityGroup_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.AuthenticatorGroupsConfig) { - return mergeFrom((com.google.container.v1beta1.AuthenticatorGroupsConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.AuthenticatorGroupsConfig other) { - if (other == com.google.container.v1beta1.AuthenticatorGroupsConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - if (!other.getSecurityGroup().isEmpty()) { - securityGroup_ = other.securityGroup_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 8 - case 18: { - securityGroup_ = input.readStringRequireUtf8(); - - 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 boolean enabled_ ; - /** - *
-     * Whether this cluster should return group membership lookups
-     * during authentication using a group of security groups.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Whether this cluster should return group membership lookups
-     * during authentication using a group of security groups.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether this cluster should return group membership lookups
-     * during authentication using a group of security groups.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - - private java.lang.Object securityGroup_ = ""; - /** - *
-     * The name of the security group-of-groups to be used. Only relevant
-     * if enabled = true.
-     * 
- * - * string security_group = 2; - * @return The securityGroup. - */ - public java.lang.String getSecurityGroup() { - java.lang.Object ref = securityGroup_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - securityGroup_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name of the security group-of-groups to be used. Only relevant
-     * if enabled = true.
-     * 
- * - * string security_group = 2; - * @return The bytes for securityGroup. - */ - public com.google.protobuf.ByteString - getSecurityGroupBytes() { - java.lang.Object ref = securityGroup_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - securityGroup_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name of the security group-of-groups to be used. Only relevant
-     * if enabled = true.
-     * 
- * - * string security_group = 2; - * @param value The securityGroup to set. - * @return This builder for chaining. - */ - public Builder setSecurityGroup( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - securityGroup_ = value; - onChanged(); - return this; - } - /** - *
-     * The name of the security group-of-groups to be used. Only relevant
-     * if enabled = true.
-     * 
- * - * string security_group = 2; - * @return This builder for chaining. - */ - public Builder clearSecurityGroup() { - - securityGroup_ = getDefaultInstance().getSecurityGroup(); - onChanged(); - return this; - } - /** - *
-     * The name of the security group-of-groups to be used. Only relevant
-     * if enabled = true.
-     * 
- * - * string security_group = 2; - * @param value The bytes for securityGroup to set. - * @return This builder for chaining. - */ - public Builder setSecurityGroupBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - securityGroup_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.AuthenticatorGroupsConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.AuthenticatorGroupsConfig) - private static final com.google.container.v1beta1.AuthenticatorGroupsConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.AuthenticatorGroupsConfig(); - } - - public static com.google.container.v1beta1.AuthenticatorGroupsConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuthenticatorGroupsConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 25e2aca398de..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AuthenticatorGroupsConfigOrBuilder.java +++ /dev/null @@ -1,42 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface AuthenticatorGroupsConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.AuthenticatorGroupsConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether this cluster should return group membership lookups
-   * during authentication using a group of security groups.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - boolean getEnabled(); - - /** - *
-   * The name of the security group-of-groups to be used. Only relevant
-   * if enabled = true.
-   * 
- * - * string security_group = 2; - * @return The securityGroup. - */ - java.lang.String getSecurityGroup(); - /** - *
-   * The name of the security group-of-groups to be used. Only relevant
-   * if enabled = true.
-   * 
- * - * string security_group = 2; - * @return The bytes for securityGroup. - */ - com.google.protobuf.ByteString - getSecurityGroupBytes(); -} diff --git a/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 deleted file mode 100644 index e9eb4101038a..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptions.java +++ /dev/null @@ -1,762 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * AutoUpgradeOptions defines the set of options for the user to control how
- * the Auto Upgrades will proceed.
- * 
- * - * Protobuf type {@code google.container.v1beta1.AutoUpgradeOptions} - */ -public final class AutoUpgradeOptions extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.AutoUpgradeOptions) - AutoUpgradeOptionsOrBuilder { -private static final long serialVersionUID = 0L; - // Use AutoUpgradeOptions.newBuilder() to construct. - private AutoUpgradeOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AutoUpgradeOptions() { - autoUpgradeStartTime_ = ""; - description_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AutoUpgradeOptions(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AutoUpgradeOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AutoUpgradeOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.AutoUpgradeOptions.class, com.google.container.v1beta1.AutoUpgradeOptions.Builder.class); - } - - public static final int AUTO_UPGRADE_START_TIME_FIELD_NUMBER = 1; - private volatile java.lang.Object autoUpgradeStartTime_; - /** - *
-   * [Output only] This field is set when upgrades are about to commence
-   * with the approximate start time for the upgrades, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string auto_upgrade_start_time = 1; - * @return The autoUpgradeStartTime. - */ - @java.lang.Override - public java.lang.String getAutoUpgradeStartTime() { - java.lang.Object ref = autoUpgradeStartTime_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - autoUpgradeStartTime_ = s; - return s; - } - } - /** - *
-   * [Output only] This field is set when upgrades are about to commence
-   * with the approximate start time for the upgrades, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string auto_upgrade_start_time = 1; - * @return The bytes for autoUpgradeStartTime. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAutoUpgradeStartTimeBytes() { - java.lang.Object ref = autoUpgradeStartTime_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - autoUpgradeStartTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 2; - private volatile java.lang.Object description_; - /** - *
-   * [Output only] This field is set when upgrades are about to commence
-   * with the description of the upgrade.
-   * 
- * - * string description = 2; - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - *
-   * [Output only] This field is set when upgrades are about to commence
-   * with the description of the upgrade.
-   * 
- * - * string description = 2; - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - autoUpgradeStartTime_ = ""; - - description_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AutoUpgradeOptions_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.AutoUpgradeOptions getDefaultInstanceForType() { - return com.google.container.v1beta1.AutoUpgradeOptions.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.AutoUpgradeOptions build() { - com.google.container.v1beta1.AutoUpgradeOptions result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.AutoUpgradeOptions buildPartial() { - com.google.container.v1beta1.AutoUpgradeOptions result = new com.google.container.v1beta1.AutoUpgradeOptions(this); - result.autoUpgradeStartTime_ = autoUpgradeStartTime_; - result.description_ = description_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.AutoUpgradeOptions) { - return mergeFrom((com.google.container.v1beta1.AutoUpgradeOptions)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.AutoUpgradeOptions other) { - if (other == com.google.container.v1beta1.AutoUpgradeOptions.getDefaultInstance()) return this; - if (!other.getAutoUpgradeStartTime().isEmpty()) { - autoUpgradeStartTime_ = other.autoUpgradeStartTime_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - description_ = input.readStringRequireUtf8(); - - 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 java.lang.Object autoUpgradeStartTime_ = ""; - /** - *
-     * [Output only] This field is set when upgrades are about to commence
-     * with the approximate start time for the upgrades, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string auto_upgrade_start_time = 1; - * @return The autoUpgradeStartTime. - */ - public java.lang.String getAutoUpgradeStartTime() { - java.lang.Object ref = autoUpgradeStartTime_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - autoUpgradeStartTime_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * [Output only] This field is set when upgrades are about to commence
-     * with the approximate start time for the upgrades, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string auto_upgrade_start_time = 1; - * @return The bytes for autoUpgradeStartTime. - */ - public com.google.protobuf.ByteString - getAutoUpgradeStartTimeBytes() { - java.lang.Object ref = autoUpgradeStartTime_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - autoUpgradeStartTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * [Output only] This field is set when upgrades are about to commence
-     * with the approximate start time for the upgrades, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string auto_upgrade_start_time = 1; - * @param value The autoUpgradeStartTime to set. - * @return This builder for chaining. - */ - public Builder setAutoUpgradeStartTime( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - autoUpgradeStartTime_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] This field is set when upgrades are about to commence
-     * with the approximate start time for the upgrades, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string auto_upgrade_start_time = 1; - * @return This builder for chaining. - */ - public Builder clearAutoUpgradeStartTime() { - - autoUpgradeStartTime_ = getDefaultInstance().getAutoUpgradeStartTime(); - onChanged(); - return this; - } - /** - *
-     * [Output only] This field is set when upgrades are about to commence
-     * with the approximate start time for the upgrades, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string auto_upgrade_start_time = 1; - * @param value The bytes for autoUpgradeStartTime to set. - * @return This builder for chaining. - */ - public Builder setAutoUpgradeStartTimeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - autoUpgradeStartTime_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - *
-     * [Output only] This field is set when upgrades are about to commence
-     * with the description of the upgrade.
-     * 
- * - * string description = 2; - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * [Output only] This field is set when upgrades are about to commence
-     * with the description of the upgrade.
-     * 
- * - * string description = 2; - * @return The bytes for description. - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * [Output only] This field is set when upgrades are about to commence
-     * with the description of the upgrade.
-     * 
- * - * string description = 2; - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] This field is set when upgrades are about to commence
-     * with the description of the upgrade.
-     * 
- * - * string description = 2; - * @return This builder for chaining. - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - *
-     * [Output only] This field is set when upgrades are about to commence
-     * with the description of the upgrade.
-     * 
- * - * string description = 2; - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.AutoUpgradeOptions) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.AutoUpgradeOptions) - private static final com.google.container.v1beta1.AutoUpgradeOptions DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.AutoUpgradeOptions(); - } - - public static com.google.container.v1beta1.AutoUpgradeOptions getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AutoUpgradeOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 7ce415728298..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptionsOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface AutoUpgradeOptionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.AutoUpgradeOptions) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * [Output only] This field is set when upgrades are about to commence
-   * with the approximate start time for the upgrades, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string auto_upgrade_start_time = 1; - * @return The autoUpgradeStartTime. - */ - java.lang.String getAutoUpgradeStartTime(); - /** - *
-   * [Output only] This field is set when upgrades are about to commence
-   * with the approximate start time for the upgrades, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string auto_upgrade_start_time = 1; - * @return The bytes for autoUpgradeStartTime. - */ - com.google.protobuf.ByteString - getAutoUpgradeStartTimeBytes(); - - /** - *
-   * [Output only] This field is set when upgrades are about to commence
-   * with the description of the upgrade.
-   * 
- * - * string description = 2; - * @return The description. - */ - java.lang.String getDescription(); - /** - *
-   * [Output only] This field is set when upgrades are about to commence
-   * with the description of the upgrade.
-   * 
- * - * string description = 2; - * @return The bytes for description. - */ - com.google.protobuf.ByteString - getDescriptionBytes(); -} diff --git a/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 deleted file mode 100644 index 0ea4cc7ba1c2..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Autopilot.java +++ /dev/null @@ -1,490 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-   * Enable Autopilot
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - 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.Autopilot)) { - return super.equals(obj); - } - com.google.container.v1beta1.Autopilot other = (com.google.container.v1beta1.Autopilot) 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.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_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); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.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()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 boolean enabled_ ; - /** - *
-     * Enable Autopilot
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Enable Autopilot
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Enable Autopilot
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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/AutopilotOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutopilotOrBuilder.java deleted file mode 100644 index dd13e338bb6d..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutopilotOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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(); -} 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 deleted file mode 100644 index 939f1310f875..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaults.java +++ /dev/null @@ -1,2551 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * AutoprovisioningNodePoolDefaults contains defaults for a node pool created
- * by NAP.
- * 
- * - * Protobuf type {@code google.container.v1beta1.AutoprovisioningNodePoolDefaults} - */ -public final class AutoprovisioningNodePoolDefaults extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.AutoprovisioningNodePoolDefaults) - AutoprovisioningNodePoolDefaultsOrBuilder { -private static final long serialVersionUID = 0L; - // Use AutoprovisioningNodePoolDefaults.newBuilder() to construct. - private AutoprovisioningNodePoolDefaults(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AutoprovisioningNodePoolDefaults() { - oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - serviceAccount_ = ""; - minCpuPlatform_ = ""; - diskType_ = ""; - bootDiskKmsKey_ = ""; - imageType_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AutoprovisioningNodePoolDefaults(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AutoprovisioningNodePoolDefaults_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AutoprovisioningNodePoolDefaults_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.class, com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.Builder.class); - } - - public static final int OAUTH_SCOPES_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList oauthScopes_; - /** - *
-   * The set of Google API scopes to be made available on all of the
-   * node VMs under the "default" service account.
-   * The following scopes are recommended, but not required, and by default are
-   * not included:
-   * * `https://www.googleapis.com/auth/compute` is required for mounting
-   * persistent storage on your nodes.
-   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-   * communicating with **gcr.io**
-   * (the [Google Container
-   * Registry](https://cloud.google.com/container-registry/)).
-   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-   * Monitoring are enabled, in which case their required scopes will be added.
-   * 
- * - * repeated string oauth_scopes = 1; - * @return A list containing the oauthScopes. - */ - public com.google.protobuf.ProtocolStringList - getOauthScopesList() { - return oauthScopes_; - } - /** - *
-   * The set of Google API scopes to be made available on all of the
-   * node VMs under the "default" service account.
-   * The following scopes are recommended, but not required, and by default are
-   * not included:
-   * * `https://www.googleapis.com/auth/compute` is required for mounting
-   * persistent storage on your nodes.
-   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-   * communicating with **gcr.io**
-   * (the [Google Container
-   * Registry](https://cloud.google.com/container-registry/)).
-   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-   * Monitoring are enabled, in which case their required scopes will be added.
-   * 
- * - * repeated string oauth_scopes = 1; - * @return The count of oauthScopes. - */ - public int getOauthScopesCount() { - return oauthScopes_.size(); - } - /** - *
-   * The set of Google API scopes to be made available on all of the
-   * node VMs under the "default" service account.
-   * The following scopes are recommended, but not required, and by default are
-   * not included:
-   * * `https://www.googleapis.com/auth/compute` is required for mounting
-   * persistent storage on your nodes.
-   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-   * communicating with **gcr.io**
-   * (the [Google Container
-   * Registry](https://cloud.google.com/container-registry/)).
-   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-   * Monitoring are enabled, in which case their required scopes will be added.
-   * 
- * - * repeated string oauth_scopes = 1; - * @param index The index of the element to return. - * @return The oauthScopes at the given index. - */ - public java.lang.String getOauthScopes(int index) { - return oauthScopes_.get(index); - } - /** - *
-   * The set of Google API scopes to be made available on all of the
-   * node VMs under the "default" service account.
-   * The following scopes are recommended, but not required, and by default are
-   * not included:
-   * * `https://www.googleapis.com/auth/compute` is required for mounting
-   * persistent storage on your nodes.
-   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-   * communicating with **gcr.io**
-   * (the [Google Container
-   * Registry](https://cloud.google.com/container-registry/)).
-   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-   * Monitoring are enabled, in which case their required scopes will be added.
-   * 
- * - * repeated string oauth_scopes = 1; - * @param index The index of the value to return. - * @return The bytes of the oauthScopes at the given index. - */ - public com.google.protobuf.ByteString - getOauthScopesBytes(int index) { - return oauthScopes_.getByteString(index); - } - - public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 2; - private volatile java.lang.Object serviceAccount_; - /** - *
-   * The Google Cloud Platform Service Account to be used by the node VMs.
-   * Specify the email address of the Service Account; otherwise, if no Service
-   * Account is specified, the "default" service account is used.
-   * 
- * - * string service_account = 2; - * @return The serviceAccount. - */ - @java.lang.Override - public java.lang.String getServiceAccount() { - java.lang.Object ref = serviceAccount_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceAccount_ = s; - return s; - } - } - /** - *
-   * The Google Cloud Platform Service Account to be used by the node VMs.
-   * Specify the email address of the Service Account; otherwise, if no Service
-   * Account is specified, the "default" service account is used.
-   * 
- * - * string service_account = 2; - * @return The bytes for serviceAccount. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountBytes() { - java.lang.Object ref = serviceAccount_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serviceAccount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int UPGRADE_SETTINGS_FIELD_NUMBER = 3; - private com.google.container.v1beta1.NodePool.UpgradeSettings upgradeSettings_; - /** - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; - * @return Whether the upgradeSettings field is set. - */ - @java.lang.Override - public boolean hasUpgradeSettings() { - return upgradeSettings_ != null; - } - /** - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; - * @return The upgradeSettings. - */ - @java.lang.Override - public com.google.container.v1beta1.NodePool.UpgradeSettings getUpgradeSettings() { - return upgradeSettings_ == null ? com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance() : upgradeSettings_; - } - /** - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - @java.lang.Override - public com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { - return getUpgradeSettings(); - } - - public static final int MANAGEMENT_FIELD_NUMBER = 4; - private com.google.container.v1beta1.NodeManagement management_; - /** - *
-   * NodeManagement configuration for this NodePool.
-   * 
- * - * .google.container.v1beta1.NodeManagement management = 4; - * @return Whether the management field is set. - */ - @java.lang.Override - public boolean hasManagement() { - return management_ != null; - } - /** - *
-   * NodeManagement configuration for this NodePool.
-   * 
- * - * .google.container.v1beta1.NodeManagement management = 4; - * @return The management. - */ - @java.lang.Override - public com.google.container.v1beta1.NodeManagement getManagement() { - return management_ == null ? com.google.container.v1beta1.NodeManagement.getDefaultInstance() : management_; - } - /** - *
-   * NodeManagement configuration for this NodePool.
-   * 
- * - * .google.container.v1beta1.NodeManagement management = 4; - */ - @java.lang.Override - public com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuilder() { - return getManagement(); - } - - public static final int MIN_CPU_PLATFORM_FIELD_NUMBER = 5; - private volatile java.lang.Object minCpuPlatform_; - /** - *
-   * 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
-   * https://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=3917 - * @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
-   * https://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=3917 - * @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_; - /** - *
-   * Size of the disk attached to each node, specified in GB.
-   * The smallest allowed disk size is 10GB.
-   * If unspecified, the default disk size is 100GB.
-   * 
- * - * int32 disk_size_gb = 6; - * @return The diskSizeGb. - */ - @java.lang.Override - public int getDiskSizeGb() { - return diskSizeGb_; - } - - public static final int DISK_TYPE_FIELD_NUMBER = 7; - private volatile java.lang.Object diskType_; - /** - *
-   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-   * 'pd-balanced')
-   * If unspecified, the default disk type is 'pd-standard'
-   * 
- * - * string disk_type = 7; - * @return The diskType. - */ - @java.lang.Override - public java.lang.String getDiskType() { - java.lang.Object ref = diskType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - diskType_ = s; - return s; - } - } - /** - *
-   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-   * 'pd-balanced')
-   * If unspecified, the default disk type is 'pd-standard'
-   * 
- * - * string disk_type = 7; - * @return The bytes for diskType. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDiskTypeBytes() { - java.lang.Object ref = diskType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - diskType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 8; - private com.google.container.v1beta1.ShieldedInstanceConfig shieldedInstanceConfig_; - /** - *
-   * Shielded Instance options.
-   * 
- * - * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; - * @return Whether the shieldedInstanceConfig field is set. - */ - @java.lang.Override - public boolean hasShieldedInstanceConfig() { - return shieldedInstanceConfig_ != null; - } - /** - *
-   * Shielded Instance options.
-   * 
- * - * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; - * @return The shieldedInstanceConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.ShieldedInstanceConfig getShieldedInstanceConfig() { - return shieldedInstanceConfig_ == null ? com.google.container.v1beta1.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; - } - /** - *
-   * Shielded Instance options.
-   * 
- * - * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - @java.lang.Override - public com.google.container.v1beta1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { - return getShieldedInstanceConfig(); - } - - public static final int BOOT_DISK_KMS_KEY_FIELD_NUMBER = 9; - private volatile java.lang.Object bootDiskKmsKey_; - /** - *
-   * The Customer Managed Encryption Key used to encrypt the boot disk attached
-   * to each node in the node pool. This should be of the form
-   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-   * For more information about protecting resources with Cloud KMS Keys please
-   * see:
-   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-   * 
- * - * string boot_disk_kms_key = 9; - * @return The bootDiskKmsKey. - */ - @java.lang.Override - public java.lang.String getBootDiskKmsKey() { - java.lang.Object ref = bootDiskKmsKey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bootDiskKmsKey_ = s; - return s; - } - } - /** - *
-   * The Customer Managed Encryption Key used to encrypt the boot disk attached
-   * to each node in the node pool. This should be of the form
-   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-   * For more information about protecting resources with Cloud KMS Keys please
-   * see:
-   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-   * 
- * - * string boot_disk_kms_key = 9; - * @return The bytes for bootDiskKmsKey. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBootDiskKmsKeyBytes() { - java.lang.Object ref = bootDiskKmsKey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bootDiskKmsKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IMAGE_TYPE_FIELD_NUMBER = 10; - private volatile java.lang.Object imageType_; - /** - *
-   * The image type to use for NAP created node.
-   * 
- * - * 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.
-   * 
- * - * string image_type = 10; - * @return The bytes for imageType. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getImageTypeBytes() { - java.lang.Object ref = imageType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - imageType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < oauthScopes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, oauthScopes_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceAccount_); - } - if (upgradeSettings_ != null) { - output.writeMessage(3, getUpgradeSettings()); - } - if (management_ != null) { - 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 (shieldedInstanceConfig_ != null) { - 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_); - } - 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 (upgradeSettings_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpgradeSettings()); - } - if (management_ != null) { - 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 (shieldedInstanceConfig_ != null) { - 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_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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 (!getUnknownFields().equals(other.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(); - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - serviceAccount_ = ""; - - if (upgradeSettingsBuilder_ == null) { - upgradeSettings_ = null; - } else { - upgradeSettings_ = null; - upgradeSettingsBuilder_ = null; - } - if (managementBuilder_ == null) { - management_ = null; - } else { - management_ = null; - managementBuilder_ = null; - } - minCpuPlatform_ = ""; - - diskSizeGb_ = 0; - - diskType_ = ""; - - if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfig_ = null; - } else { - shieldedInstanceConfig_ = null; - shieldedInstanceConfigBuilder_ = null; - } - bootDiskKmsKey_ = ""; - - imageType_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AutoprovisioningNodePoolDefaults_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.AutoprovisioningNodePoolDefaults getDefaultInstanceForType() { - return com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.AutoprovisioningNodePoolDefaults build() { - com.google.container.v1beta1.AutoprovisioningNodePoolDefaults result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.AutoprovisioningNodePoolDefaults buildPartial() { - com.google.container.v1beta1.AutoprovisioningNodePoolDefaults result = new com.google.container.v1beta1.AutoprovisioningNodePoolDefaults(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - oauthScopes_ = oauthScopes_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.oauthScopes_ = oauthScopes_; - result.serviceAccount_ = serviceAccount_; - if (upgradeSettingsBuilder_ == null) { - result.upgradeSettings_ = upgradeSettings_; - } else { - result.upgradeSettings_ = upgradeSettingsBuilder_.build(); - } - if (managementBuilder_ == null) { - result.management_ = management_; - } else { - result.management_ = managementBuilder_.build(); - } - result.minCpuPlatform_ = minCpuPlatform_; - result.diskSizeGb_ = diskSizeGb_; - result.diskType_ = diskType_; - if (shieldedInstanceConfigBuilder_ == null) { - result.shieldedInstanceConfig_ = shieldedInstanceConfig_; - } else { - result.shieldedInstanceConfig_ = shieldedInstanceConfigBuilder_.build(); - } - result.bootDiskKmsKey_ = bootDiskKmsKey_; - result.imageType_ = imageType_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.AutoprovisioningNodePoolDefaults) { - return mergeFrom((com.google.container.v1beta1.AutoprovisioningNodePoolDefaults)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.AutoprovisioningNodePoolDefaults other) { - if (other == com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.getDefaultInstance()) return this; - if (!other.oauthScopes_.isEmpty()) { - if (oauthScopes_.isEmpty()) { - oauthScopes_ = other.oauthScopes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureOauthScopesIsMutable(); - oauthScopes_.addAll(other.oauthScopes_); - } - onChanged(); - } - if (!other.getServiceAccount().isEmpty()) { - serviceAccount_ = other.serviceAccount_; - onChanged(); - } - if (other.hasUpgradeSettings()) { - mergeUpgradeSettings(other.getUpgradeSettings()); - } - if (other.hasManagement()) { - mergeManagement(other.getManagement()); - } - if (!other.getMinCpuPlatform().isEmpty()) { - minCpuPlatform_ = other.minCpuPlatform_; - onChanged(); - } - if (other.getDiskSizeGb() != 0) { - setDiskSizeGb(other.getDiskSizeGb()); - } - if (!other.getDiskType().isEmpty()) { - diskType_ = other.diskType_; - onChanged(); - } - if (other.hasShieldedInstanceConfig()) { - mergeShieldedInstanceConfig(other.getShieldedInstanceConfig()); - } - if (!other.getBootDiskKmsKey().isEmpty()) { - bootDiskKmsKey_ = other.bootDiskKmsKey_; - onChanged(); - } - if (!other.getImageType().isEmpty()) { - imageType_ = other.imageType_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 18 - case 26: { - input.readMessage( - getUpgradeSettingsFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 26 - case 34: { - input.readMessage( - getManagementFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 34 - case 42: { - minCpuPlatform_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 48: { - diskSizeGb_ = input.readInt32(); - - break; - } // case 48 - case 58: { - diskType_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 66: { - input.readMessage( - getShieldedInstanceConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 66 - case 74: { - bootDiskKmsKey_ = input.readStringRequireUtf8(); - - break; - } // case 74 - case 82: { - imageType_ = input.readStringRequireUtf8(); - - 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 com.google.protobuf.LazyStringList oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureOauthScopesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - oauthScopes_ = new com.google.protobuf.LazyStringArrayList(oauthScopes_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](https://cloud.google.com/container-registry/)).
-     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-     * Monitoring are enabled, in which case their required scopes will be added.
-     * 
- * - * repeated string oauth_scopes = 1; - * @return A list containing the oauthScopes. - */ - public com.google.protobuf.ProtocolStringList - getOauthScopesList() { - return oauthScopes_.getUnmodifiableView(); - } - /** - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](https://cloud.google.com/container-registry/)).
-     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-     * Monitoring are enabled, in which case their required scopes will be added.
-     * 
- * - * repeated string oauth_scopes = 1; - * @return The count of oauthScopes. - */ - public int getOauthScopesCount() { - return oauthScopes_.size(); - } - /** - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](https://cloud.google.com/container-registry/)).
-     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-     * Monitoring are enabled, in which case their required scopes will be added.
-     * 
- * - * repeated string oauth_scopes = 1; - * @param index The index of the element to return. - * @return The oauthScopes at the given index. - */ - public java.lang.String getOauthScopes(int index) { - return oauthScopes_.get(index); - } - /** - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](https://cloud.google.com/container-registry/)).
-     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-     * Monitoring are enabled, in which case their required scopes will be added.
-     * 
- * - * repeated string oauth_scopes = 1; - * @param index The index of the value to return. - * @return The bytes of the oauthScopes at the given index. - */ - public com.google.protobuf.ByteString - getOauthScopesBytes(int index) { - return oauthScopes_.getByteString(index); - } - /** - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](https://cloud.google.com/container-registry/)).
-     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-     * Monitoring are enabled, in which case their required scopes will be added.
-     * 
- * - * repeated string oauth_scopes = 1; - * @param index The index to set the value at. - * @param value The oauthScopes to set. - * @return This builder for chaining. - */ - public Builder setOauthScopes( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureOauthScopesIsMutable(); - oauthScopes_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](https://cloud.google.com/container-registry/)).
-     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-     * Monitoring are enabled, in which case their required scopes will be added.
-     * 
- * - * repeated string oauth_scopes = 1; - * @param value The oauthScopes to add. - * @return This builder for chaining. - */ - public Builder addOauthScopes( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureOauthScopesIsMutable(); - oauthScopes_.add(value); - onChanged(); - return this; - } - /** - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](https://cloud.google.com/container-registry/)).
-     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-     * Monitoring are enabled, in which case their required scopes will be added.
-     * 
- * - * repeated string oauth_scopes = 1; - * @param values The oauthScopes to add. - * @return This builder for chaining. - */ - public Builder addAllOauthScopes( - java.lang.Iterable values) { - ensureOauthScopesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, oauthScopes_); - onChanged(); - return this; - } - /** - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](https://cloud.google.com/container-registry/)).
-     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-     * Monitoring are enabled, in which case their required scopes will be added.
-     * 
- * - * repeated string oauth_scopes = 1; - * @return This builder for chaining. - */ - public Builder clearOauthScopes() { - oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](https://cloud.google.com/container-registry/)).
-     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-     * Monitoring are enabled, in which case their required scopes will be added.
-     * 
- * - * repeated string oauth_scopes = 1; - * @param value The bytes of the oauthScopes to add. - * @return This builder for chaining. - */ - public Builder addOauthScopesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureOauthScopesIsMutable(); - oauthScopes_.add(value); - onChanged(); - return this; - } - - private java.lang.Object serviceAccount_ = ""; - /** - *
-     * The Google Cloud Platform Service Account to be used by the node VMs.
-     * Specify the email address of the Service Account; otherwise, if no Service
-     * Account is specified, the "default" service account is used.
-     * 
- * - * string service_account = 2; - * @return The serviceAccount. - */ - public java.lang.String getServiceAccount() { - java.lang.Object ref = serviceAccount_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceAccount_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The Google Cloud Platform Service Account to be used by the node VMs.
-     * Specify the email address of the Service Account; otherwise, if no Service
-     * Account is specified, the "default" service account is used.
-     * 
- * - * string service_account = 2; - * @return The bytes for serviceAccount. - */ - public com.google.protobuf.ByteString - getServiceAccountBytes() { - java.lang.Object ref = serviceAccount_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serviceAccount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The Google Cloud Platform Service Account to be used by the node VMs.
-     * Specify the email address of the Service Account; otherwise, if no Service
-     * Account is specified, the "default" service account is used.
-     * 
- * - * string service_account = 2; - * @param value The serviceAccount to set. - * @return This builder for chaining. - */ - public Builder setServiceAccount( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - serviceAccount_ = value; - onChanged(); - return this; - } - /** - *
-     * The Google Cloud Platform Service Account to be used by the node VMs.
-     * Specify the email address of the Service Account; otherwise, if no Service
-     * Account is specified, the "default" service account is used.
-     * 
- * - * string service_account = 2; - * @return This builder for chaining. - */ - public Builder clearServiceAccount() { - - serviceAccount_ = getDefaultInstance().getServiceAccount(); - onChanged(); - return this; - } - /** - *
-     * The Google Cloud Platform Service Account to be used by the node VMs.
-     * Specify the email address of the Service Account; otherwise, if no Service
-     * Account is specified, the "default" service account is used.
-     * 
- * - * string service_account = 2; - * @param value The bytes for serviceAccount to set. - * @return This builder for chaining. - */ - public Builder setServiceAccountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - serviceAccount_ = value; - onChanged(); - return this; - } - - private com.google.container.v1beta1.NodePool.UpgradeSettings upgradeSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePool.UpgradeSettings, com.google.container.v1beta1.NodePool.UpgradeSettings.Builder, com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder> upgradeSettingsBuilder_; - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; - * @return Whether the upgradeSettings field is set. - */ - public boolean hasUpgradeSettings() { - return upgradeSettingsBuilder_ != null || upgradeSettings_ != null; - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; - * @return The upgradeSettings. - */ - public com.google.container.v1beta1.NodePool.UpgradeSettings getUpgradeSettings() { - if (upgradeSettingsBuilder_ == null) { - return upgradeSettings_ == null ? com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance() : upgradeSettings_; - } else { - return upgradeSettingsBuilder_.getMessage(); - } - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - public Builder setUpgradeSettings(com.google.container.v1beta1.NodePool.UpgradeSettings value) { - if (upgradeSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - upgradeSettings_ = value; - onChanged(); - } else { - upgradeSettingsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - public Builder setUpgradeSettings( - com.google.container.v1beta1.NodePool.UpgradeSettings.Builder builderForValue) { - if (upgradeSettingsBuilder_ == null) { - upgradeSettings_ = builderForValue.build(); - onChanged(); - } else { - upgradeSettingsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - public Builder mergeUpgradeSettings(com.google.container.v1beta1.NodePool.UpgradeSettings value) { - if (upgradeSettingsBuilder_ == null) { - if (upgradeSettings_ != null) { - upgradeSettings_ = - com.google.container.v1beta1.NodePool.UpgradeSettings.newBuilder(upgradeSettings_).mergeFrom(value).buildPartial(); - } else { - upgradeSettings_ = value; - } - onChanged(); - } else { - upgradeSettingsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - public Builder clearUpgradeSettings() { - if (upgradeSettingsBuilder_ == null) { - upgradeSettings_ = null; - onChanged(); - } else { - upgradeSettings_ = null; - upgradeSettingsBuilder_ = null; - } - - return this; - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - public com.google.container.v1beta1.NodePool.UpgradeSettings.Builder getUpgradeSettingsBuilder() { - - onChanged(); - return getUpgradeSettingsFieldBuilder().getBuilder(); - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - public com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { - if (upgradeSettingsBuilder_ != null) { - return upgradeSettingsBuilder_.getMessageOrBuilder(); - } else { - return upgradeSettings_ == null ? - com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance() : upgradeSettings_; - } - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePool.UpgradeSettings, com.google.container.v1beta1.NodePool.UpgradeSettings.Builder, com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder> - getUpgradeSettingsFieldBuilder() { - if (upgradeSettingsBuilder_ == null) { - upgradeSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePool.UpgradeSettings, com.google.container.v1beta1.NodePool.UpgradeSettings.Builder, com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder>( - getUpgradeSettings(), - getParentForChildren(), - isClean()); - upgradeSettings_ = null; - } - return upgradeSettingsBuilder_; - } - - private com.google.container.v1beta1.NodeManagement management_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeManagement, com.google.container.v1beta1.NodeManagement.Builder, com.google.container.v1beta1.NodeManagementOrBuilder> managementBuilder_; - /** - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1beta1.NodeManagement management = 4; - * @return Whether the management field is set. - */ - public boolean hasManagement() { - return managementBuilder_ != null || management_ != null; - } - /** - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1beta1.NodeManagement management = 4; - * @return The management. - */ - public com.google.container.v1beta1.NodeManagement getManagement() { - if (managementBuilder_ == null) { - return management_ == null ? com.google.container.v1beta1.NodeManagement.getDefaultInstance() : management_; - } else { - return managementBuilder_.getMessage(); - } - } - /** - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1beta1.NodeManagement management = 4; - */ - public Builder setManagement(com.google.container.v1beta1.NodeManagement value) { - if (managementBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - management_ = value; - onChanged(); - } else { - managementBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1beta1.NodeManagement management = 4; - */ - public Builder setManagement( - com.google.container.v1beta1.NodeManagement.Builder builderForValue) { - if (managementBuilder_ == null) { - management_ = builderForValue.build(); - onChanged(); - } else { - managementBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1beta1.NodeManagement management = 4; - */ - public Builder mergeManagement(com.google.container.v1beta1.NodeManagement value) { - if (managementBuilder_ == null) { - if (management_ != null) { - management_ = - com.google.container.v1beta1.NodeManagement.newBuilder(management_).mergeFrom(value).buildPartial(); - } else { - management_ = value; - } - onChanged(); - } else { - managementBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1beta1.NodeManagement management = 4; - */ - public Builder clearManagement() { - if (managementBuilder_ == null) { - management_ = null; - onChanged(); - } else { - management_ = null; - managementBuilder_ = null; - } - - return this; - } - /** - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1beta1.NodeManagement management = 4; - */ - public com.google.container.v1beta1.NodeManagement.Builder getManagementBuilder() { - - onChanged(); - return getManagementFieldBuilder().getBuilder(); - } - /** - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1beta1.NodeManagement management = 4; - */ - public com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuilder() { - if (managementBuilder_ != null) { - return managementBuilder_.getMessageOrBuilder(); - } else { - return management_ == null ? - com.google.container.v1beta1.NodeManagement.getDefaultInstance() : management_; - } - } - /** - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1beta1.NodeManagement management = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeManagement, com.google.container.v1beta1.NodeManagement.Builder, com.google.container.v1beta1.NodeManagementOrBuilder> - getManagementFieldBuilder() { - if (managementBuilder_ == null) { - managementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeManagement, com.google.container.v1beta1.NodeManagement.Builder, com.google.container.v1beta1.NodeManagementOrBuilder>( - getManagement(), - getParentForChildren(), - isClean()); - management_ = null; - } - return managementBuilder_; - } - - private java.lang.Object minCpuPlatform_ = ""; - /** - *
-     * 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
-     * https://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=3917 - * @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
-     * https://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=3917 - * @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
-     * https://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=3917 - * @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; - 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
-     * https://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=3917 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearMinCpuPlatform() { - - minCpuPlatform_ = getDefaultInstance().getMinCpuPlatform(); - 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
-     * https://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=3917 - * @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; - onChanged(); - return this; - } - - private int diskSizeGb_ ; - /** - *
-     * Size of the disk attached to each node, specified in GB.
-     * The smallest allowed disk size is 10GB.
-     * If unspecified, the default disk size is 100GB.
-     * 
- * - * int32 disk_size_gb = 6; - * @return The diskSizeGb. - */ - @java.lang.Override - public int getDiskSizeGb() { - return diskSizeGb_; - } - /** - *
-     * Size of the disk attached to each node, specified in GB.
-     * The smallest allowed disk size is 10GB.
-     * If unspecified, the default disk size is 100GB.
-     * 
- * - * int32 disk_size_gb = 6; - * @param value The diskSizeGb to set. - * @return This builder for chaining. - */ - public Builder setDiskSizeGb(int value) { - - diskSizeGb_ = value; - onChanged(); - return this; - } - /** - *
-     * Size of the disk attached to each node, specified in GB.
-     * The smallest allowed disk size is 10GB.
-     * If unspecified, the default disk size is 100GB.
-     * 
- * - * int32 disk_size_gb = 6; - * @return This builder for chaining. - */ - public Builder clearDiskSizeGb() { - - diskSizeGb_ = 0; - onChanged(); - return this; - } - - private java.lang.Object diskType_ = ""; - /** - *
-     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-     * 'pd-balanced')
-     * If unspecified, the default disk type is 'pd-standard'
-     * 
- * - * string disk_type = 7; - * @return The diskType. - */ - public java.lang.String getDiskType() { - java.lang.Object ref = diskType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - diskType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-     * 'pd-balanced')
-     * If unspecified, the default disk type is 'pd-standard'
-     * 
- * - * string disk_type = 7; - * @return The bytes for diskType. - */ - public com.google.protobuf.ByteString - getDiskTypeBytes() { - java.lang.Object ref = diskType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - diskType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-     * 'pd-balanced')
-     * If unspecified, the default disk type is 'pd-standard'
-     * 
- * - * string disk_type = 7; - * @param value The diskType to set. - * @return This builder for chaining. - */ - public Builder setDiskType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - diskType_ = value; - onChanged(); - return this; - } - /** - *
-     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-     * 'pd-balanced')
-     * If unspecified, the default disk type is 'pd-standard'
-     * 
- * - * string disk_type = 7; - * @return This builder for chaining. - */ - public Builder clearDiskType() { - - diskType_ = getDefaultInstance().getDiskType(); - onChanged(); - return this; - } - /** - *
-     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-     * 'pd-balanced')
-     * If unspecified, the default disk type is 'pd-standard'
-     * 
- * - * string disk_type = 7; - * @param value The bytes for diskType to set. - * @return This builder for chaining. - */ - public Builder setDiskTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - diskType_ = value; - onChanged(); - return this; - } - - private com.google.container.v1beta1.ShieldedInstanceConfig shieldedInstanceConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ShieldedInstanceConfig, com.google.container.v1beta1.ShieldedInstanceConfig.Builder, com.google.container.v1beta1.ShieldedInstanceConfigOrBuilder> shieldedInstanceConfigBuilder_; - /** - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; - * @return Whether the shieldedInstanceConfig field is set. - */ - public boolean hasShieldedInstanceConfig() { - return shieldedInstanceConfigBuilder_ != null || shieldedInstanceConfig_ != null; - } - /** - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; - * @return The shieldedInstanceConfig. - */ - public com.google.container.v1beta1.ShieldedInstanceConfig getShieldedInstanceConfig() { - if (shieldedInstanceConfigBuilder_ == null) { - return shieldedInstanceConfig_ == null ? com.google.container.v1beta1.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; - } else { - return shieldedInstanceConfigBuilder_.getMessage(); - } - } - /** - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - public Builder setShieldedInstanceConfig(com.google.container.v1beta1.ShieldedInstanceConfig value) { - if (shieldedInstanceConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - shieldedInstanceConfig_ = value; - onChanged(); - } else { - shieldedInstanceConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - public Builder setShieldedInstanceConfig( - com.google.container.v1beta1.ShieldedInstanceConfig.Builder builderForValue) { - if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfig_ = builderForValue.build(); - onChanged(); - } else { - shieldedInstanceConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - public Builder mergeShieldedInstanceConfig(com.google.container.v1beta1.ShieldedInstanceConfig value) { - if (shieldedInstanceConfigBuilder_ == null) { - if (shieldedInstanceConfig_ != null) { - shieldedInstanceConfig_ = - com.google.container.v1beta1.ShieldedInstanceConfig.newBuilder(shieldedInstanceConfig_).mergeFrom(value).buildPartial(); - } else { - shieldedInstanceConfig_ = value; - } - onChanged(); - } else { - shieldedInstanceConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - public Builder clearShieldedInstanceConfig() { - if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfig_ = null; - onChanged(); - } else { - shieldedInstanceConfig_ = null; - shieldedInstanceConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - public com.google.container.v1beta1.ShieldedInstanceConfig.Builder getShieldedInstanceConfigBuilder() { - - onChanged(); - return getShieldedInstanceConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - public com.google.container.v1beta1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { - if (shieldedInstanceConfigBuilder_ != null) { - return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); - } else { - return shieldedInstanceConfig_ == null ? - com.google.container.v1beta1.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; - } - } - /** - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ShieldedInstanceConfig, com.google.container.v1beta1.ShieldedInstanceConfig.Builder, com.google.container.v1beta1.ShieldedInstanceConfigOrBuilder> - getShieldedInstanceConfigFieldBuilder() { - if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ShieldedInstanceConfig, com.google.container.v1beta1.ShieldedInstanceConfig.Builder, com.google.container.v1beta1.ShieldedInstanceConfigOrBuilder>( - getShieldedInstanceConfig(), - getParentForChildren(), - isClean()); - shieldedInstanceConfig_ = null; - } - return shieldedInstanceConfigBuilder_; - } - - private java.lang.Object bootDiskKmsKey_ = ""; - /** - *
-     * The Customer Managed Encryption Key used to encrypt the boot disk attached
-     * to each node in the node pool. This should be of the form
-     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-     * For more information about protecting resources with Cloud KMS Keys please
-     * see:
-     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-     * 
- * - * string boot_disk_kms_key = 9; - * @return The bootDiskKmsKey. - */ - public java.lang.String getBootDiskKmsKey() { - java.lang.Object ref = bootDiskKmsKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bootDiskKmsKey_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The Customer Managed Encryption Key used to encrypt the boot disk attached
-     * to each node in the node pool. This should be of the form
-     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-     * For more information about protecting resources with Cloud KMS Keys please
-     * see:
-     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-     * 
- * - * string boot_disk_kms_key = 9; - * @return The bytes for bootDiskKmsKey. - */ - public com.google.protobuf.ByteString - getBootDiskKmsKeyBytes() { - java.lang.Object ref = bootDiskKmsKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bootDiskKmsKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The Customer Managed Encryption Key used to encrypt the boot disk attached
-     * to each node in the node pool. This should be of the form
-     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-     * For more information about protecting resources with Cloud KMS Keys please
-     * see:
-     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-     * 
- * - * string boot_disk_kms_key = 9; - * @param value The bootDiskKmsKey to set. - * @return This builder for chaining. - */ - public Builder setBootDiskKmsKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - bootDiskKmsKey_ = value; - onChanged(); - return this; - } - /** - *
-     * The Customer Managed Encryption Key used to encrypt the boot disk attached
-     * to each node in the node pool. This should be of the form
-     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-     * For more information about protecting resources with Cloud KMS Keys please
-     * see:
-     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-     * 
- * - * string boot_disk_kms_key = 9; - * @return This builder for chaining. - */ - public Builder clearBootDiskKmsKey() { - - bootDiskKmsKey_ = getDefaultInstance().getBootDiskKmsKey(); - onChanged(); - return this; - } - /** - *
-     * The Customer Managed Encryption Key used to encrypt the boot disk attached
-     * to each node in the node pool. This should be of the form
-     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-     * For more information about protecting resources with Cloud KMS Keys please
-     * see:
-     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-     * 
- * - * string boot_disk_kms_key = 9; - * @param value The bytes for bootDiskKmsKey to set. - * @return This builder for chaining. - */ - public Builder setBootDiskKmsKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - bootDiskKmsKey_ = value; - onChanged(); - return this; - } - - private java.lang.Object imageType_ = ""; - /** - *
-     * The image type to use for NAP created node.
-     * 
- * - * 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.
-     * 
- * - * 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.
-     * 
- * - * string image_type = 10; - * @param value The imageType to set. - * @return This builder for chaining. - */ - public Builder setImageType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - imageType_ = value; - onChanged(); - return this; - } - /** - *
-     * The image type to use for NAP created node.
-     * 
- * - * string image_type = 10; - * @return This builder for chaining. - */ - public Builder clearImageType() { - - imageType_ = getDefaultInstance().getImageType(); - onChanged(); - return this; - } - /** - *
-     * The image type to use for NAP created node.
-     * 
- * - * string image_type = 10; - * @param value The bytes for imageType to set. - * @return This builder for chaining. - */ - public Builder setImageTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - imageType_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.AutoprovisioningNodePoolDefaults) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.AutoprovisioningNodePoolDefaults) - private static final com.google.container.v1beta1.AutoprovisioningNodePoolDefaults DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.AutoprovisioningNodePoolDefaults(); - } - - public static com.google.container.v1beta1.AutoprovisioningNodePoolDefaults getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AutoprovisioningNodePoolDefaults parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 01ce07b4eb4c..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaultsOrBuilder.java +++ /dev/null @@ -1,331 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface AutoprovisioningNodePoolDefaultsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.AutoprovisioningNodePoolDefaults) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The set of Google API scopes to be made available on all of the
-   * node VMs under the "default" service account.
-   * The following scopes are recommended, but not required, and by default are
-   * not included:
-   * * `https://www.googleapis.com/auth/compute` is required for mounting
-   * persistent storage on your nodes.
-   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-   * communicating with **gcr.io**
-   * (the [Google Container
-   * Registry](https://cloud.google.com/container-registry/)).
-   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-   * Monitoring are enabled, in which case their required scopes will be added.
-   * 
- * - * repeated string oauth_scopes = 1; - * @return A list containing the oauthScopes. - */ - java.util.List - getOauthScopesList(); - /** - *
-   * The set of Google API scopes to be made available on all of the
-   * node VMs under the "default" service account.
-   * The following scopes are recommended, but not required, and by default are
-   * not included:
-   * * `https://www.googleapis.com/auth/compute` is required for mounting
-   * persistent storage on your nodes.
-   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-   * communicating with **gcr.io**
-   * (the [Google Container
-   * Registry](https://cloud.google.com/container-registry/)).
-   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-   * Monitoring are enabled, in which case their required scopes will be added.
-   * 
- * - * repeated string oauth_scopes = 1; - * @return The count of oauthScopes. - */ - int getOauthScopesCount(); - /** - *
-   * The set of Google API scopes to be made available on all of the
-   * node VMs under the "default" service account.
-   * The following scopes are recommended, but not required, and by default are
-   * not included:
-   * * `https://www.googleapis.com/auth/compute` is required for mounting
-   * persistent storage on your nodes.
-   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-   * communicating with **gcr.io**
-   * (the [Google Container
-   * Registry](https://cloud.google.com/container-registry/)).
-   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-   * Monitoring are enabled, in which case their required scopes will be added.
-   * 
- * - * repeated string oauth_scopes = 1; - * @param index The index of the element to return. - * @return The oauthScopes at the given index. - */ - java.lang.String getOauthScopes(int index); - /** - *
-   * The set of Google API scopes to be made available on all of the
-   * node VMs under the "default" service account.
-   * The following scopes are recommended, but not required, and by default are
-   * not included:
-   * * `https://www.googleapis.com/auth/compute` is required for mounting
-   * persistent storage on your nodes.
-   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-   * communicating with **gcr.io**
-   * (the [Google Container
-   * Registry](https://cloud.google.com/container-registry/)).
-   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-   * Monitoring are enabled, in which case their required scopes will be added.
-   * 
- * - * repeated string oauth_scopes = 1; - * @param index The index of the value to return. - * @return The bytes of the oauthScopes at the given index. - */ - com.google.protobuf.ByteString - getOauthScopesBytes(int index); - - /** - *
-   * The Google Cloud Platform Service Account to be used by the node VMs.
-   * Specify the email address of the Service Account; otherwise, if no Service
-   * Account is specified, the "default" service account is used.
-   * 
- * - * string service_account = 2; - * @return The serviceAccount. - */ - java.lang.String getServiceAccount(); - /** - *
-   * The Google Cloud Platform Service Account to be used by the node VMs.
-   * Specify the email address of the Service Account; otherwise, if no Service
-   * Account is specified, the "default" service account is used.
-   * 
- * - * string service_account = 2; - * @return The bytes for serviceAccount. - */ - com.google.protobuf.ByteString - getServiceAccountBytes(); - - /** - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; - * @return Whether the upgradeSettings field is set. - */ - boolean hasUpgradeSettings(); - /** - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; - * @return The upgradeSettings. - */ - com.google.container.v1beta1.NodePool.UpgradeSettings getUpgradeSettings(); - /** - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder(); - - /** - *
-   * NodeManagement configuration for this NodePool.
-   * 
- * - * .google.container.v1beta1.NodeManagement management = 4; - * @return Whether the management field is set. - */ - boolean hasManagement(); - /** - *
-   * NodeManagement configuration for this NodePool.
-   * 
- * - * .google.container.v1beta1.NodeManagement management = 4; - * @return The management. - */ - com.google.container.v1beta1.NodeManagement getManagement(); - /** - *
-   * NodeManagement configuration for this NodePool.
-   * 
- * - * .google.container.v1beta1.NodeManagement management = 4; - */ - com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuilder(); - - /** - *
-   * 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
-   * https://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=3917 - * @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
-   * https://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=3917 - * @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.
-   * 
- * - * string image_type = 10; - * @return The imageType. - */ - java.lang.String getImageType(); - /** - *
-   * The image type to use for NAP created node.
-   * 
- * - * string image_type = 10; - * @return The bytes for imageType. - */ - com.google.protobuf.ByteString - getImageTypeBytes(); -} 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 deleted file mode 100644 index 2e7c6fc0dcb7..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorization.java +++ /dev/null @@ -1,792 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Configuration for Binary Authorization.
- * 
- * - * Protobuf type {@code google.container.v1beta1.BinaryAuthorization} - */ -public final class BinaryAuthorization extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.BinaryAuthorization) - BinaryAuthorizationOrBuilder { -private static final long serialVersionUID = 0L; - // Use BinaryAuthorization.newBuilder() to construct. - private BinaryAuthorization(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BinaryAuthorization() { - evaluationMode_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BinaryAuthorization(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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), - 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.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 static final int ENABLED_FIELD_NUMBER = 1; - 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=1478 - * @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_; - /** - *
-   * Mode of operation for binauthz policy evaluation. Currently the only
-   * options are equivalent to enable/disable. 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. Currently the only
-   * options are equivalent to enable/disable. 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.BinaryAuthorization.EvaluationMode result = com.google.container.v1beta1.BinaryAuthorization.EvaluationMode.valueOf(evaluationMode_); - return result == null ? com.google.container.v1beta1.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.v1beta1.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.v1beta1.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.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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.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(); - enabled_ = false; - - evaluationMode_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_BinaryAuthorization_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.BinaryAuthorization getDefaultInstanceForType() { - return com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.BinaryAuthorization build() { - com.google.container.v1beta1.BinaryAuthorization result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.BinaryAuthorization buildPartial() { - com.google.container.v1beta1.BinaryAuthorization result = new com.google.container.v1beta1.BinaryAuthorization(this); - result.enabled_ = enabled_; - result.evaluationMode_ = evaluationMode_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.BinaryAuthorization) { - return mergeFrom((com.google.container.v1beta1.BinaryAuthorization)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.BinaryAuthorization other) { - if (other == com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - 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(); - - break; - } // case 8 - case 16: { - evaluationMode_ = input.readEnum(); - - 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 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=1478 - * @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=1478 - * @param value The enabled to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setEnabled(boolean value) { - - enabled_ = value; - 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=1478 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - - private int evaluationMode_ = 0; - /** - *
-     * Mode of operation for binauthz policy evaluation. Currently the only
-     * options are equivalent to enable/disable. 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. Currently the only
-     * options are equivalent to enable/disable. 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; - onChanged(); - return this; - } - /** - *
-     * Mode of operation for binauthz policy evaluation. Currently the only
-     * options are equivalent to enable/disable. 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.BinaryAuthorization.EvaluationMode result = com.google.container.v1beta1.BinaryAuthorization.EvaluationMode.valueOf(evaluationMode_); - return result == null ? com.google.container.v1beta1.BinaryAuthorization.EvaluationMode.UNRECOGNIZED : result; - } - /** - *
-     * Mode of operation for binauthz policy evaluation. Currently the only
-     * options are equivalent to enable/disable. 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(); - } - - evaluationMode_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Mode of operation for binauthz policy evaluation. Currently the only
-     * options are equivalent to enable/disable. If unspecified, defaults to
-     * DISABLED.
-     * 
- * - * .google.container.v1beta1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; - * @return This builder for chaining. - */ - public Builder clearEvaluationMode() { - - 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.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 deleted file mode 100644 index 4c7b6977602c..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorizationOrBuilder.java +++ /dev/null @@ -1,46 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface BinaryAuthorizationOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.BinaryAuthorization) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * 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=1478 - * @return The enabled. - */ - @java.lang.Deprecated boolean getEnabled(); - - /** - *
-   * Mode of operation for binauthz policy evaluation. Currently the only
-   * options are equivalent to enable/disable. 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. Currently the only
-   * options are equivalent to enable/disable. If unspecified, defaults to
-   * DISABLED.
-   * 
- * - * .google.container.v1beta1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; - * @return The evaluationMode. - */ - com.google.container.v1beta1.BinaryAuthorization.EvaluationMode getEvaluationMode(); -} 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 deleted file mode 100644 index 43368e975a1d..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BlueGreenSettings.java +++ /dev/null @@ -1,2027 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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(); - - public 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - 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(); - if (batchSoakDurationBuilder_ == null) { - batchSoakDuration_ = null; - } else { - batchSoakDurationBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (updateBatchSizeCase_ == 1) { - result.updateBatchSize_ = updateBatchSize_; - } - if (updateBatchSizeCase_ == 2) { - result.updateBatchSize_ = updateBatchSize_; - } - if (((from_bitField0_ & 0x00000001) != 0)) { - if (batchSoakDurationBuilder_ == null) { - result.batchSoakDuration_ = batchSoakDuration_; - } else { - result.batchSoakDuration_ = batchSoakDurationBuilder_.build(); - } - to_bitField0_ |= 0x00000001; - } - result.bitField0_ = to_bitField0_; - result.updateBatchSizeCase_ = updateBatchSizeCase_; - 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.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_ |= 0x00000001; - 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_ & 0x00000001) != 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; - onChanged(); - } else { - batchSoakDurationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - 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(); - onChanged(); - } else { - batchSoakDurationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - 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_ & 0x00000001) != 0) && - batchSoakDuration_ != null && - batchSoakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { - batchSoakDuration_ = - com.google.protobuf.Duration.newBuilder(batchSoakDuration_).mergeFrom(value).buildPartial(); - } else { - batchSoakDuration_ = value; - } - onChanged(); - } else { - batchSoakDurationBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - *
-       * Soak time after each batch gets drained. Default to zero.
-       * 
- * - * optional .google.protobuf.Duration batch_soak_duration = 3; - */ - public Builder clearBatchSoakDuration() { - if (batchSoakDurationBuilder_ == null) { - batchSoakDuration_ = null; - onChanged(); - } else { - batchSoakDurationBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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_ |= 0x00000001; - 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; - } - - } - - private int bitField0_; - private int rolloutPolicyCase_ = 0; - 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.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 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()); - } - 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()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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 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.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(); - if (standardRolloutPolicyBuilder_ != null) { - standardRolloutPolicyBuilder_.clear(); - } - if (nodePoolSoakDurationBuilder_ == null) { - nodePoolSoakDuration_ = null; - } else { - nodePoolSoakDurationBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (rolloutPolicyCase_ == 1) { - if (standardRolloutPolicyBuilder_ == null) { - result.rolloutPolicy_ = rolloutPolicy_; - } else { - result.rolloutPolicy_ = standardRolloutPolicyBuilder_.build(); - } - } - if (((from_bitField0_ & 0x00000001) != 0)) { - if (nodePoolSoakDurationBuilder_ == null) { - result.nodePoolSoakDuration_ = nodePoolSoakDuration_; - } else { - result.nodePoolSoakDuration_ = nodePoolSoakDurationBuilder_.build(); - } - to_bitField0_ |= 0x00000001; - } - result.bitField0_ = to_bitField0_; - result.rolloutPolicyCase_ = rolloutPolicyCase_; - 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) { - 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 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_ |= 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 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.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_ & 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. - */ - 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; - onChanged(); - } else { - nodePoolSoakDurationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - 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(); - onChanged(); - } else { - nodePoolSoakDurationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - 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_ & 0x00000001) != 0) && - nodePoolSoakDuration_ != null && - nodePoolSoakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { - nodePoolSoakDuration_ = - com.google.protobuf.Duration.newBuilder(nodePoolSoakDuration_).mergeFrom(value).buildPartial(); - } else { - nodePoolSoakDuration_ = value; - } - onChanged(); - } else { - nodePoolSoakDurationBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - 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() { - if (nodePoolSoakDurationBuilder_ == null) { - nodePoolSoakDuration_ = null; - onChanged(); - } else { - nodePoolSoakDurationBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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_ |= 0x00000001; - 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 deleted file mode 100644 index e9ca8ff88a0c..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BlueGreenSettingsOrBuilder.java +++ /dev/null @@ -1,68 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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(); - - /** - *
-   * 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(); - - public 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 deleted file mode 100644 index f2371d1b67ff..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequest.java +++ /dev/null @@ -1,1160 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * CancelOperationRequest cancels a single operation.
- * 
- * - * Protobuf type {@code google.container.v1beta1.CancelOperationRequest} - */ -public final class CancelOperationRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.CancelOperationRequest) - CancelOperationRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CancelOperationRequest.newBuilder() to construct. - private CancelOperationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CancelOperationRequest() { - projectId_ = ""; - zone_ = ""; - operationId_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CancelOperationRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CancelOperationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CancelOperationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.CancelOperationRequest.class, com.google.container.v1beta1.CancelOperationRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=2989 - * @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=2989 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Required. Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * operation resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2998 - * @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=2998 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OPERATION_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object operationId_; - /** - *
-   * Required. Deprecated. The server-assigned `name` of the operation.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string operation_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3005 - * @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=3005 - * @return The bytes for operationId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getOperationIdBytes() { - java.lang.Object ref = operationId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - operationId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, operation id) of the operation to cancel.
-   * Specified in the format `projects/*/locations/*/operations/*`.
-   * 
- * - * string name = 4; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project, location, operation id) of the operation to cancel.
-   * Specified in the format `projects/*/locations/*/operations/*`.
-   * 
- * - * string name = 4; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - projectId_ = ""; - - zone_ = ""; - - operationId_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CancelOperationRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.CancelOperationRequest getDefaultInstanceForType() { - return com.google.container.v1beta1.CancelOperationRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.CancelOperationRequest build() { - com.google.container.v1beta1.CancelOperationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.CancelOperationRequest buildPartial() { - com.google.container.v1beta1.CancelOperationRequest result = new com.google.container.v1beta1.CancelOperationRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.operationId_ = operationId_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.CancelOperationRequest) { - return mergeFrom((com.google.container.v1beta1.CancelOperationRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.CancelOperationRequest other) { - if (other == com.google.container.v1beta1.CancelOperationRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getOperationId().isEmpty()) { - operationId_ = other.operationId_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - operationId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - name_ = input.readStringRequireUtf8(); - - 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 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=2989 - * @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=2989 - * @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=2989 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=2989 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=2989 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * operation resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2998 - * @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=2998 - * @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=2998 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * operation resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2998 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * operation resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2998 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object operationId_ = ""; - /** - *
-     * Required. Deprecated. The server-assigned `name` of the operation.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string operation_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3005 - * @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=3005 - * @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=3005 - * @param value The operationId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setOperationId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - operationId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The server-assigned `name` of the operation.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string operation_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3005 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearOperationId() { - - operationId_ = getDefaultInstance().getOperationId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The server-assigned `name` of the operation.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string operation_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3005 - * @param value The bytes for operationId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setOperationIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - operationId_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, operation id) of the operation to cancel.
-     * Specified in the format `projects/*/locations/*/operations/*`.
-     * 
- * - * string name = 4; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name (project, location, operation id) of the operation to cancel.
-     * Specified in the format `projects/*/locations/*/operations/*`.
-     * 
- * - * string name = 4; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name (project, location, operation id) of the operation to cancel.
-     * Specified in the format `projects/*/locations/*/operations/*`.
-     * 
- * - * string name = 4; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name (project, location, operation id) of the operation to cancel.
-     * Specified in the format `projects/*/locations/*/operations/*`.
-     * 
- * - * string name = 4; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project, location, operation id) of the operation to cancel.
-     * Specified in the format `projects/*/locations/*/operations/*`.
-     * 
- * - * string name = 4; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.CancelOperationRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.CancelOperationRequest) - private static final com.google.container.v1beta1.CancelOperationRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.CancelOperationRequest(); - } - - public static com.google.container.v1beta1.CancelOperationRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CancelOperationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 72e2ee7943f2..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequestOrBuilder.java +++ /dev/null @@ -1,115 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface CancelOperationRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.CancelOperationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=2989 - * @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=2989 - * @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=2998 - * @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=2998 - * @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=3005 - * @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=3005 - * @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/ClientCertificateConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClientCertificateConfig.java deleted file mode 100644 index d8eaa0d74d32..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClientCertificateConfig.java +++ /dev/null @@ -1,490 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Configuration for client certificates on the cluster.
- * 
- * - * Protobuf type {@code google.container.v1beta1.ClientCertificateConfig} - */ -public final class ClientCertificateConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.ClientCertificateConfig) - ClientCertificateConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use ClientCertificateConfig.newBuilder() to construct. - private ClientCertificateConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ClientCertificateConfig() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ClientCertificateConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ClientCertificateConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ClientCertificateConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.ClientCertificateConfig.class, com.google.container.v1beta1.ClientCertificateConfig.Builder.class); - } - - public static final int ISSUE_CLIENT_CERTIFICATE_FIELD_NUMBER = 1; - private boolean issueClientCertificate_; - /** - *
-   * Issue a client certificate.
-   * 
- * - * bool issue_client_certificate = 1; - * @return The issueClientCertificate. - */ - @java.lang.Override - public boolean getIssueClientCertificate() { - return issueClientCertificate_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (issueClientCertificate_ != false) { - output.writeBool(1, issueClientCertificate_); - } - 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(); - issueClientCertificate_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ClientCertificateConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.ClientCertificateConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.ClientCertificateConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.ClientCertificateConfig build() { - com.google.container.v1beta1.ClientCertificateConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.ClientCertificateConfig buildPartial() { - com.google.container.v1beta1.ClientCertificateConfig result = new com.google.container.v1beta1.ClientCertificateConfig(this); - result.issueClientCertificate_ = issueClientCertificate_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.ClientCertificateConfig) { - return mergeFrom((com.google.container.v1beta1.ClientCertificateConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.ClientCertificateConfig other) { - if (other == com.google.container.v1beta1.ClientCertificateConfig.getDefaultInstance()) return this; - if (other.getIssueClientCertificate() != false) { - setIssueClientCertificate(other.getIssueClientCertificate()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 boolean issueClientCertificate_ ; - /** - *
-     * Issue a client certificate.
-     * 
- * - * bool issue_client_certificate = 1; - * @return The issueClientCertificate. - */ - @java.lang.Override - public boolean getIssueClientCertificate() { - return issueClientCertificate_; - } - /** - *
-     * Issue a client certificate.
-     * 
- * - * bool issue_client_certificate = 1; - * @param value The issueClientCertificate to set. - * @return This builder for chaining. - */ - public Builder setIssueClientCertificate(boolean value) { - - issueClientCertificate_ = value; - onChanged(); - return this; - } - /** - *
-     * Issue a client certificate.
-     * 
- * - * bool issue_client_certificate = 1; - * @return This builder for chaining. - */ - public Builder clearIssueClientCertificate() { - - issueClientCertificate_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ClientCertificateConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.ClientCertificateConfig) - private static final com.google.container.v1beta1.ClientCertificateConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.ClientCertificateConfig(); - } - - public static com.google.container.v1beta1.ClientCertificateConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClientCertificateConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 6c9b8b7ea37b..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClientCertificateConfigOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface ClientCertificateConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ClientCertificateConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Issue a client certificate.
-   * 
- * - * bool issue_client_certificate = 1; - * @return The issueClientCertificate. - */ - boolean getIssueClientCertificate(); -} diff --git a/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 deleted file mode 100644 index b994edad8fd9..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CloudRunConfig.java +++ /dev/null @@ -1,758 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Configuration options for the Cloud Run feature.
- * 
- * - * Protobuf type {@code google.container.v1beta1.CloudRunConfig} - */ -public final class CloudRunConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.CloudRunConfig) - CloudRunConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use CloudRunConfig.newBuilder() to construct. - private CloudRunConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CloudRunConfig() { - loadBalancerType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CloudRunConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * Whether Cloud Run addon is enabled for this cluster.
-   * 
- * - * bool disabled = 1; - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - - public static final int LOAD_BALANCER_TYPE_FIELD_NUMBER = 3; - private int loadBalancerType_; - /** - *
-   * Which load balancer type is installed for Cloud Run.
-   * 
- * - * .google.container.v1beta1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * @return The enum numeric value on the wire for loadBalancerType. - */ - @java.lang.Override public int getLoadBalancerTypeValue() { - return loadBalancerType_; - } - /** - *
-   * Which load balancer type is installed for Cloud Run.
-   * 
- * - * .google.container.v1beta1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * @return The loadBalancerType. - */ - @java.lang.Override public com.google.container.v1beta1.CloudRunConfig.LoadBalancerType getLoadBalancerType() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.CloudRunConfig.LoadBalancerType result = com.google.container.v1beta1.CloudRunConfig.LoadBalancerType.valueOf(loadBalancerType_); - return result == null ? com.google.container.v1beta1.CloudRunConfig.LoadBalancerType.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (disabled_ != false) { - output.writeBool(1, disabled_); - } - if (loadBalancerType_ != com.google.container.v1beta1.CloudRunConfig.LoadBalancerType.LOAD_BALANCER_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(3, loadBalancerType_); - } - 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(); - disabled_ = false; - - loadBalancerType_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CloudRunConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.CloudRunConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.CloudRunConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.CloudRunConfig build() { - com.google.container.v1beta1.CloudRunConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.CloudRunConfig buildPartial() { - com.google.container.v1beta1.CloudRunConfig result = new com.google.container.v1beta1.CloudRunConfig(this); - result.disabled_ = disabled_; - result.loadBalancerType_ = loadBalancerType_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.CloudRunConfig) { - return mergeFrom((com.google.container.v1beta1.CloudRunConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.CloudRunConfig other) { - if (other == com.google.container.v1beta1.CloudRunConfig.getDefaultInstance()) return this; - if (other.getDisabled() != false) { - setDisabled(other.getDisabled()); - } - if (other.loadBalancerType_ != 0) { - setLoadBalancerTypeValue(other.getLoadBalancerTypeValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 8 - case 24: { - loadBalancerType_ = input.readEnum(); - - 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 boolean disabled_ ; - /** - *
-     * Whether Cloud Run addon is enabled for this cluster.
-     * 
- * - * bool disabled = 1; - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - /** - *
-     * Whether Cloud Run addon is enabled for this cluster.
-     * 
- * - * bool disabled = 1; - * @param value The disabled to set. - * @return This builder for chaining. - */ - public Builder setDisabled(boolean value) { - - disabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether Cloud Run addon is enabled for this cluster.
-     * 
- * - * bool disabled = 1; - * @return This builder for chaining. - */ - public Builder clearDisabled() { - - disabled_ = false; - onChanged(); - return this; - } - - private int loadBalancerType_ = 0; - /** - *
-     * Which load balancer type is installed for Cloud Run.
-     * 
- * - * .google.container.v1beta1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * @return The enum numeric value on the wire for loadBalancerType. - */ - @java.lang.Override public int getLoadBalancerTypeValue() { - return loadBalancerType_; - } - /** - *
-     * Which load balancer type is installed for Cloud Run.
-     * 
- * - * .google.container.v1beta1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * @param value The enum numeric value on the wire for loadBalancerType to set. - * @return This builder for chaining. - */ - public Builder setLoadBalancerTypeValue(int value) { - - loadBalancerType_ = value; - onChanged(); - return this; - } - /** - *
-     * Which load balancer type is installed for Cloud Run.
-     * 
- * - * .google.container.v1beta1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * @return The loadBalancerType. - */ - @java.lang.Override - public com.google.container.v1beta1.CloudRunConfig.LoadBalancerType getLoadBalancerType() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.CloudRunConfig.LoadBalancerType result = com.google.container.v1beta1.CloudRunConfig.LoadBalancerType.valueOf(loadBalancerType_); - return result == null ? com.google.container.v1beta1.CloudRunConfig.LoadBalancerType.UNRECOGNIZED : result; - } - /** - *
-     * Which load balancer type is installed for Cloud Run.
-     * 
- * - * .google.container.v1beta1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * @param value The loadBalancerType to set. - * @return This builder for chaining. - */ - public Builder setLoadBalancerType(com.google.container.v1beta1.CloudRunConfig.LoadBalancerType value) { - if (value == null) { - throw new NullPointerException(); - } - - loadBalancerType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Which load balancer type is installed for Cloud Run.
-     * 
- * - * .google.container.v1beta1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * @return This builder for chaining. - */ - public Builder clearLoadBalancerType() { - - loadBalancerType_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.CloudRunConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.CloudRunConfig) - private static final com.google.container.v1beta1.CloudRunConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.CloudRunConfig(); - } - - public static com.google.container.v1beta1.CloudRunConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudRunConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index a0e491706ec3..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CloudRunConfigOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface CloudRunConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.CloudRunConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether Cloud Run addon is enabled for this cluster.
-   * 
- * - * bool disabled = 1; - * @return The disabled. - */ - boolean getDisabled(); - - /** - *
-   * Which load balancer type is installed for Cloud Run.
-   * 
- * - * .google.container.v1beta1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * @return The enum numeric value on the wire for loadBalancerType. - */ - int getLoadBalancerTypeValue(); - /** - *
-   * Which load balancer type is installed for Cloud Run.
-   * 
- * - * .google.container.v1beta1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * @return The loadBalancerType. - */ - com.google.container.v1beta1.CloudRunConfig.LoadBalancerType getLoadBalancerType(); -} diff --git a/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 deleted file mode 100644 index a4b9241eb5c2..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Cluster.java +++ /dev/null @@ -1,16193 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * A Google Kubernetes Engine cluster.
- * 
- * - * Protobuf type {@code google.container.v1beta1.Cluster} - */ -public final class Cluster extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.Cluster) - ClusterOrBuilder { -private static final long serialVersionUID = 0L; - // Use Cluster.newBuilder() to construct. - private Cluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Cluster() { - name_ = ""; - description_ = ""; - loggingService_ = ""; - monitoringService_ = ""; - network_ = ""; - clusterIpv4Cidr_ = ""; - subnetwork_ = ""; - nodePools_ = java.util.Collections.emptyList(); - locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - labelFingerprint_ = ""; - masterIpv4CidrBlock_ = ""; - selfLink_ = ""; - zone_ = ""; - endpoint_ = ""; - initialClusterVersion_ = ""; - currentMasterVersion_ = ""; - currentNodeVersion_ = ""; - createTime_ = ""; - status_ = 0; - statusMessage_ = ""; - servicesIpv4Cidr_ = ""; - instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - expireTime_ = ""; - location_ = ""; - tpuIpv4CidrBlock_ = ""; - conditions_ = java.util.Collections.emptyList(); - id_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Cluster(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Cluster_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 15: - return internalGetResourceLabels(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Cluster_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.Cluster.class, com.google.container.v1beta1.Cluster.Builder.class); - } - - /** - *
-   * The current status of the cluster.
-   * 
- * - * Protobuf enum {@code google.container.v1beta1.Cluster.Status} - */ - public enum Status - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Not set.
-     * 
- * - * STATUS_UNSPECIFIED = 0; - */ - STATUS_UNSPECIFIED(0), - /** - *
-     * The PROVISIONING state indicates the cluster is being created.
-     * 
- * - * PROVISIONING = 1; - */ - PROVISIONING(1), - /** - *
-     * The RUNNING state indicates the cluster has been created and is fully
-     * usable.
-     * 
- * - * RUNNING = 2; - */ - RUNNING(2), - /** - *
-     * The RECONCILING state indicates that some work is actively being done on
-     * the cluster, such as upgrading the master or node software. Details can
-     * be found in the `statusMessage` field.
-     * 
- * - * RECONCILING = 3; - */ - RECONCILING(3), - /** - *
-     * The STOPPING state indicates the cluster is being deleted.
-     * 
- * - * STOPPING = 4; - */ - STOPPING(4), - /** - *
-     * The ERROR state indicates the cluster may be unusable. Details
-     * can be found in the `statusMessage` field.
-     * 
- * - * ERROR = 5; - */ - ERROR(5), - /** - *
-     * The DEGRADED state indicates the cluster requires user action to restore
-     * full functionality. Details can be found in the `statusMessage` field.
-     * 
- * - * DEGRADED = 6; - */ - DEGRADED(6), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Not set.
-     * 
- * - * STATUS_UNSPECIFIED = 0; - */ - public static final int STATUS_UNSPECIFIED_VALUE = 0; - /** - *
-     * The PROVISIONING state indicates the cluster is being created.
-     * 
- * - * PROVISIONING = 1; - */ - public static final int PROVISIONING_VALUE = 1; - /** - *
-     * The RUNNING state indicates the cluster has been created and is fully
-     * usable.
-     * 
- * - * RUNNING = 2; - */ - public static final int RUNNING_VALUE = 2; - /** - *
-     * The RECONCILING state indicates that some work is actively being done on
-     * the cluster, such as upgrading the master or node software. Details can
-     * be found in the `statusMessage` field.
-     * 
- * - * RECONCILING = 3; - */ - public static final int RECONCILING_VALUE = 3; - /** - *
-     * The STOPPING state indicates the cluster is being deleted.
-     * 
- * - * STOPPING = 4; - */ - public static final int STOPPING_VALUE = 4; - /** - *
-     * The ERROR state indicates the cluster may be unusable. Details
-     * can be found in the `statusMessage` field.
-     * 
- * - * ERROR = 5; - */ - public static final int ERROR_VALUE = 5; - /** - *
-     * The DEGRADED state indicates the cluster requires user action to restore
-     * full functionality. Details can be found in the `statusMessage` field.
-     * 
- * - * DEGRADED = 6; - */ - public static final int DEGRADED_VALUE = 6; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Status valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Status forNumber(int value) { - switch (value) { - case 0: return STATUS_UNSPECIFIED; - case 1: return PROVISIONING; - case 2: return RUNNING; - case 3: return RECONCILING; - case 4: return STOPPING; - case 5: return ERROR; - case 6: return DEGRADED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - 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_; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-   * The name of this cluster. The name must be unique within this project
-   * and location (e.g. zone or region), and can be up to 40 characters with
-   * the following restrictions:
-   * * Lowercase letters, numbers, and hyphens only.
-   * * Must start with a letter.
-   * * Must end with a number or a letter.
-   * 
- * - * string name = 1; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name of this cluster. The name must be unique within this project
-   * and location (e.g. zone or region), and can be up to 40 characters with
-   * the following restrictions:
-   * * Lowercase letters, numbers, and hyphens only.
-   * * Must start with a letter.
-   * * Must end with a number or a letter.
-   * 
- * - * string name = 1; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 2; - private volatile java.lang.Object description_; - /** - *
-   * An optional description of this cluster.
-   * 
- * - * string description = 2; - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - *
-   * An optional description of this cluster.
-   * 
- * - * string description = 2; - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INITIAL_NODE_COUNT_FIELD_NUMBER = 3; - private int initialNodeCount_; - /** - *
-   * The number of nodes to create in this cluster. You must ensure that your
-   * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
-   * is sufficient for this number of instances. You must also have available
-   * firewall and routes quota.
-   * For requests, this field should only be used in lieu of a
-   * "node_pool" object, since this configuration (along with the
-   * "node_config") will be used to create a "NodePool" object with an
-   * auto-generated name. Do not use this and a node_pool at the same time.
-   * This field is deprecated, use node_pool.initial_node_count instead.
-   * 
- * - * int32 initial_node_count = 3 [deprecated = true]; - * @deprecated google.container.v1beta1.Cluster.initial_node_count is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1578 - * @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=1591 - * @return Whether the nodeConfig field is set. - */ - @java.lang.Override - @java.lang.Deprecated public boolean hasNodeConfig() { - return nodeConfig_ != null; - } - /** - *
-   * Parameters used in creating the cluster's nodes.
-   * For requests, this field should only be used in lieu of a
-   * "node_pool" object, since this configuration (along with the
-   * "initial_node_count") will be used to create a "NodePool" object with an
-   * auto-generated name. Do not use this and a node_pool at the same time.
-   * For responses, this field will be populated with the node configuration of
-   * the first node pool. (For configuration of each node pool, see
-   * `node_pool.config`)
-   * If unspecified, the defaults are used.
-   * This field is deprecated, use node_pool.config instead.
-   * 
- * - * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; - * @deprecated google.container.v1beta1.Cluster.node_config is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1591 - * @return The nodeConfig. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.container.v1beta1.NodeConfig getNodeConfig() { - return nodeConfig_ == null ? com.google.container.v1beta1.NodeConfig.getDefaultInstance() : nodeConfig_; - } - /** - *
-   * Parameters used in creating the cluster's nodes.
-   * For requests, this field should only be used in lieu of a
-   * "node_pool" object, since this configuration (along with the
-   * "initial_node_count") will be used to create a "NodePool" object with an
-   * auto-generated name. Do not use this and a node_pool at the same time.
-   * For responses, this field will be populated with the node configuration of
-   * the first node pool. (For configuration of each node pool, see
-   * `node_pool.config`)
-   * If unspecified, the defaults are used.
-   * This field is deprecated, use node_pool.config instead.
-   * 
- * - * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; - */ - @java.lang.Override - @java.lang.Deprecated public com.google.container.v1beta1.NodeConfigOrBuilder getNodeConfigOrBuilder() { - return getNodeConfig(); - } - - public static final int MASTER_AUTH_FIELD_NUMBER = 5; - private com.google.container.v1beta1.MasterAuth masterAuth_; - /** - *
-   * The authentication information for accessing the master endpoint.
-   * If unspecified, the defaults are used:
-   * For clusters before v1.12, if master_auth is unspecified, `username` will
-   * be set to "admin", a random password will be generated, and a client
-   * certificate will be issued.
-   * 
- * - * .google.container.v1beta1.MasterAuth master_auth = 5; - * @return Whether the masterAuth field is set. - */ - @java.lang.Override - public boolean hasMasterAuth() { - return masterAuth_ != null; - } - /** - *
-   * The authentication information for accessing the master endpoint.
-   * If unspecified, the defaults are used:
-   * For clusters before v1.12, if master_auth is unspecified, `username` will
-   * be set to "admin", a random password will be generated, and a client
-   * certificate will be issued.
-   * 
- * - * .google.container.v1beta1.MasterAuth master_auth = 5; - * @return The masterAuth. - */ - @java.lang.Override - public com.google.container.v1beta1.MasterAuth getMasterAuth() { - return masterAuth_ == null ? com.google.container.v1beta1.MasterAuth.getDefaultInstance() : masterAuth_; - } - /** - *
-   * The authentication information for accessing the master endpoint.
-   * If unspecified, the defaults are used:
-   * For clusters before v1.12, if master_auth is unspecified, `username` will
-   * be set to "admin", a random password will be generated, and a client
-   * certificate will be issued.
-   * 
- * - * .google.container.v1beta1.MasterAuth master_auth = 5; - */ - @java.lang.Override - public com.google.container.v1beta1.MasterAuthOrBuilder getMasterAuthOrBuilder() { - return getMasterAuth(); - } - - public static final int LOGGING_SERVICE_FIELD_NUMBER = 6; - private volatile java.lang.Object loggingService_; - /** - *
-   * The logging service the cluster should use to write logs.
-   * Currently available options:
-   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-   * service with a Kubernetes-native resource model
-   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-   *   available as of GKE 1.15).
-   * * `none` - no logs will be exported from the cluster.
-   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-   * 
- * - * string logging_service = 6; - * @return The loggingService. - */ - @java.lang.Override - public java.lang.String getLoggingService() { - java.lang.Object ref = loggingService_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - loggingService_ = s; - return s; - } - } - /** - *
-   * The logging service the cluster should use to write logs.
-   * Currently available options:
-   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-   * service with a Kubernetes-native resource model
-   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-   *   available as of GKE 1.15).
-   * * `none` - no logs will be exported from the cluster.
-   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-   * 
- * - * string logging_service = 6; - * @return The bytes for loggingService. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getLoggingServiceBytes() { - java.lang.Object ref = loggingService_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - loggingService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MONITORING_SERVICE_FIELD_NUMBER = 7; - private volatile java.lang.Object monitoringService_; - /** - *
-   * The monitoring service the cluster should use to write metrics.
-   * Currently available options:
-   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-   * service with a Kubernetes-native resource model
-   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-   *   longer available as of GKE 1.15).
-   * * `none` - No metrics will be exported from the cluster.
-   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-   * 
- * - * string monitoring_service = 7; - * @return The monitoringService. - */ - @java.lang.Override - public java.lang.String getMonitoringService() { - java.lang.Object ref = monitoringService_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - monitoringService_ = s; - return s; - } - } - /** - *
-   * The monitoring service the cluster should use to write metrics.
-   * Currently available options:
-   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-   * service with a Kubernetes-native resource model
-   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-   *   longer available as of GKE 1.15).
-   * * `none` - No metrics will be exported from the cluster.
-   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-   * 
- * - * string monitoring_service = 7; - * @return The bytes for monitoringService. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMonitoringServiceBytes() { - java.lang.Object ref = monitoringService_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - monitoringService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NETWORK_FIELD_NUMBER = 8; - private volatile java.lang.Object network_; - /** - *
-   * The name of the Google Compute Engine
-   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-   * to which the cluster is connected. If left unspecified, the `default`
-   * network will be used. On output this shows the network ID instead of the
-   * name.
-   * 
- * - * string network = 8; - * @return The network. - */ - @java.lang.Override - public java.lang.String getNetwork() { - java.lang.Object ref = network_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - network_ = s; - return s; - } - } - /** - *
-   * The name of the Google Compute Engine
-   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-   * to which the cluster is connected. If left unspecified, the `default`
-   * network will be used. On output this shows the network ID instead of the
-   * name.
-   * 
- * - * string network = 8; - * @return The bytes for network. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNetworkBytes() { - java.lang.Object ref = network_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - network_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_IPV4_CIDR_FIELD_NUMBER = 9; - private volatile java.lang.Object clusterIpv4Cidr_; - /** - *
-   * The IP address range of the container pods in this cluster, in
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`). Leave blank to have
-   * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
-   * 
- * - * string cluster_ipv4_cidr = 9; - * @return The clusterIpv4Cidr. - */ - @java.lang.Override - public java.lang.String getClusterIpv4Cidr() { - java.lang.Object ref = clusterIpv4Cidr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterIpv4Cidr_ = s; - return s; - } - } - /** - *
-   * The IP address range of the container pods in this cluster, in
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`). Leave blank to have
-   * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
-   * 
- * - * string cluster_ipv4_cidr = 9; - * @return The bytes for clusterIpv4Cidr. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getClusterIpv4CidrBytes() { - java.lang.Object ref = clusterIpv4Cidr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterIpv4Cidr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ADDONS_CONFIG_FIELD_NUMBER = 10; - private com.google.container.v1beta1.AddonsConfig addonsConfig_; - /** - *
-   * Configurations for the various addons available to run in the cluster.
-   * 
- * - * .google.container.v1beta1.AddonsConfig addons_config = 10; - * @return Whether the addonsConfig field is set. - */ - @java.lang.Override - public boolean hasAddonsConfig() { - return addonsConfig_ != null; - } - /** - *
-   * Configurations for the various addons available to run in the cluster.
-   * 
- * - * .google.container.v1beta1.AddonsConfig addons_config = 10; - * @return The addonsConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.AddonsConfig getAddonsConfig() { - return addonsConfig_ == null ? com.google.container.v1beta1.AddonsConfig.getDefaultInstance() : addonsConfig_; - } - /** - *
-   * Configurations for the various addons available to run in the cluster.
-   * 
- * - * .google.container.v1beta1.AddonsConfig addons_config = 10; - */ - @java.lang.Override - public com.google.container.v1beta1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() { - return getAddonsConfig(); - } - - public static final int SUBNETWORK_FIELD_NUMBER = 11; - private volatile java.lang.Object subnetwork_; - /** - *
-   * The name of the Google Compute Engine
-   * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
-   * the cluster is connected. On output this shows the subnetwork ID instead of
-   * the name.
-   * 
- * - * string subnetwork = 11; - * @return The subnetwork. - */ - @java.lang.Override - public java.lang.String getSubnetwork() { - java.lang.Object ref = subnetwork_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subnetwork_ = s; - return s; - } - } - /** - *
-   * The name of the Google Compute Engine
-   * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
-   * the cluster is connected. On output this shows the subnetwork ID instead of
-   * the name.
-   * 
- * - * string subnetwork = 11; - * @return The bytes for subnetwork. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSubnetworkBytes() { - java.lang.Object ref = subnetwork_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - subnetwork_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_POOLS_FIELD_NUMBER = 12; - private java.util.List nodePools_; - /** - *
-   * The node pools associated with this cluster.
-   * This field should not be set if "node_config" or "initial_node_count" are
-   * specified.
-   * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - @java.lang.Override - public java.util.List getNodePoolsList() { - return nodePools_; - } - /** - *
-   * The node pools associated with this cluster.
-   * This field should not be set if "node_config" or "initial_node_count" are
-   * specified.
-   * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - @java.lang.Override - public java.util.List - getNodePoolsOrBuilderList() { - return nodePools_; - } - /** - *
-   * The node pools associated with this cluster.
-   * This field should not be set if "node_config" or "initial_node_count" are
-   * specified.
-   * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - @java.lang.Override - public int getNodePoolsCount() { - return nodePools_.size(); - } - /** - *
-   * The node pools associated with this cluster.
-   * This field should not be set if "node_config" or "initial_node_count" are
-   * specified.
-   * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - @java.lang.Override - public com.google.container.v1beta1.NodePool getNodePools(int index) { - return nodePools_.get(index); - } - /** - *
-   * The node pools associated with this cluster.
-   * This field should not be set if "node_config" or "initial_node_count" are
-   * specified.
-   * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - @java.lang.Override - public com.google.container.v1beta1.NodePoolOrBuilder getNodePoolsOrBuilder( - int index) { - return nodePools_.get(index); - } - - public static final int LOCATIONS_FIELD_NUMBER = 13; - private com.google.protobuf.LazyStringList locations_; - /** - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This field provides a default value if
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * are not specified during node pool creation.
-   * Warning: changing cluster locations will update the
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * of all node pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string locations = 13; - * @return A list containing the locations. - */ - public com.google.protobuf.ProtocolStringList - getLocationsList() { - return locations_; - } - /** - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This field provides a default value if
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * are not specified during node pool creation.
-   * Warning: changing cluster locations will update the
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * of all node pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string locations = 13; - * @return The count of locations. - */ - public int getLocationsCount() { - return locations_.size(); - } - /** - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This field provides a default value if
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * are not specified during node pool creation.
-   * Warning: changing cluster locations will update the
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * of all node pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string locations = 13; - * @param index The index of the element to return. - * @return The locations at the given index. - */ - public java.lang.String getLocations(int index) { - return locations_.get(index); - } - /** - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This field provides a default value if
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * are not specified during node pool creation.
-   * Warning: changing cluster locations will update the
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * of all node pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string locations = 13; - * @param index The index of the value to return. - * @return The bytes of the locations at the given index. - */ - public com.google.protobuf.ByteString - getLocationsBytes(int index) { - return locations_.getByteString(index); - } - - public static final int ENABLE_KUBERNETES_ALPHA_FIELD_NUMBER = 14; - private boolean enableKubernetesAlpha_; - /** - *
-   * Kubernetes alpha features are enabled on this cluster. This includes alpha
-   * API groups (e.g. v1beta1) and features that may not be production ready in
-   * the kubernetes version of the master and nodes.
-   * The cluster has no SLA for uptime and master/node upgrades are disabled.
-   * Alpha enabled clusters are automatically deleted thirty days after
-   * creation.
-   * 
- * - * bool enable_kubernetes_alpha = 14; - * @return The enableKubernetesAlpha. - */ - @java.lang.Override - public boolean getEnableKubernetesAlpha() { - return enableKubernetesAlpha_; - } - - public static final int RESOURCE_LABELS_FIELD_NUMBER = 15; - private static final class ResourceLabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Cluster_ResourceLabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> resourceLabels_; - private com.google.protobuf.MapField - internalGetResourceLabels() { - if (resourceLabels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ResourceLabelsDefaultEntryHolder.defaultEntry); - } - return resourceLabels_; - } - - public int getResourceLabelsCount() { - return internalGetResourceLabels().getMap().size(); - } - /** - *
-   * The resource labels for the cluster to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * map<string, string> resource_labels = 15; - */ - - @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 java.lang.String getResourceLabelsOrDefault( - java.lang.String key, - 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; - private volatile java.lang.Object labelFingerprint_; - /** - *
-   * The fingerprint of the set of labels for this cluster.
-   * 
- * - * string label_fingerprint = 16; - * @return The labelFingerprint. - */ - @java.lang.Override - public java.lang.String getLabelFingerprint() { - java.lang.Object ref = labelFingerprint_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - labelFingerprint_ = s; - return s; - } - } - /** - *
-   * The fingerprint of the set of labels for this cluster.
-   * 
- * - * string label_fingerprint = 16; - * @return The bytes for labelFingerprint. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getLabelFingerprintBytes() { - java.lang.Object ref = labelFingerprint_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - labelFingerprint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LEGACY_ABAC_FIELD_NUMBER = 18; - private com.google.container.v1beta1.LegacyAbac legacyAbac_; - /** - *
-   * Configuration for the legacy ABAC authorization mode.
-   * 
- * - * .google.container.v1beta1.LegacyAbac legacy_abac = 18; - * @return Whether the legacyAbac field is set. - */ - @java.lang.Override - public boolean hasLegacyAbac() { - return legacyAbac_ != null; - } - /** - *
-   * Configuration for the legacy ABAC authorization mode.
-   * 
- * - * .google.container.v1beta1.LegacyAbac legacy_abac = 18; - * @return The legacyAbac. - */ - @java.lang.Override - public com.google.container.v1beta1.LegacyAbac getLegacyAbac() { - return legacyAbac_ == null ? com.google.container.v1beta1.LegacyAbac.getDefaultInstance() : legacyAbac_; - } - /** - *
-   * Configuration for the legacy ABAC authorization mode.
-   * 
- * - * .google.container.v1beta1.LegacyAbac legacy_abac = 18; - */ - @java.lang.Override - public com.google.container.v1beta1.LegacyAbacOrBuilder getLegacyAbacOrBuilder() { - return getLegacyAbac(); - } - - public static final int NETWORK_POLICY_FIELD_NUMBER = 19; - private com.google.container.v1beta1.NetworkPolicy networkPolicy_; - /** - *
-   * Configuration options for the NetworkPolicy feature.
-   * 
- * - * .google.container.v1beta1.NetworkPolicy network_policy = 19; - * @return Whether the networkPolicy field is set. - */ - @java.lang.Override - public boolean hasNetworkPolicy() { - return networkPolicy_ != null; - } - /** - *
-   * Configuration options for the NetworkPolicy feature.
-   * 
- * - * .google.container.v1beta1.NetworkPolicy network_policy = 19; - * @return The networkPolicy. - */ - @java.lang.Override - public com.google.container.v1beta1.NetworkPolicy getNetworkPolicy() { - return networkPolicy_ == null ? com.google.container.v1beta1.NetworkPolicy.getDefaultInstance() : networkPolicy_; - } - /** - *
-   * Configuration options for the NetworkPolicy feature.
-   * 
- * - * .google.container.v1beta1.NetworkPolicy network_policy = 19; - */ - @java.lang.Override - public com.google.container.v1beta1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { - return getNetworkPolicy(); - } - - public static final int IP_ALLOCATION_POLICY_FIELD_NUMBER = 20; - private com.google.container.v1beta1.IPAllocationPolicy ipAllocationPolicy_; - /** - *
-   * Configuration for cluster IP allocation.
-   * 
- * - * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; - * @return Whether the ipAllocationPolicy field is set. - */ - @java.lang.Override - public boolean hasIpAllocationPolicy() { - return ipAllocationPolicy_ != null; - } - /** - *
-   * Configuration for cluster IP allocation.
-   * 
- * - * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; - * @return The ipAllocationPolicy. - */ - @java.lang.Override - public com.google.container.v1beta1.IPAllocationPolicy getIpAllocationPolicy() { - return ipAllocationPolicy_ == null ? com.google.container.v1beta1.IPAllocationPolicy.getDefaultInstance() : ipAllocationPolicy_; - } - /** - *
-   * Configuration for cluster IP allocation.
-   * 
- * - * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; - */ - @java.lang.Override - public com.google.container.v1beta1.IPAllocationPolicyOrBuilder getIpAllocationPolicyOrBuilder() { - return getIpAllocationPolicy(); - } - - public static final int MASTER_AUTHORIZED_NETWORKS_CONFIG_FIELD_NUMBER = 22; - private com.google.container.v1beta1.MasterAuthorizedNetworksConfig masterAuthorizedNetworksConfig_; - /** - *
-   * The configuration options for master authorized networks feature.
-   * 
- * - * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * @return Whether the masterAuthorizedNetworksConfig field is set. - */ - @java.lang.Override - public boolean hasMasterAuthorizedNetworksConfig() { - return masterAuthorizedNetworksConfig_ != null; - } - /** - *
-   * The configuration options for master authorized networks feature.
-   * 
- * - * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * @return The masterAuthorizedNetworksConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.MasterAuthorizedNetworksConfig getMasterAuthorizedNetworksConfig() { - return masterAuthorizedNetworksConfig_ == null ? com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance() : masterAuthorizedNetworksConfig_; - } - /** - *
-   * The configuration options for master authorized networks feature.
-   * 
- * - * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - */ - @java.lang.Override - public com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder getMasterAuthorizedNetworksConfigOrBuilder() { - return getMasterAuthorizedNetworksConfig(); - } - - public static final int MAINTENANCE_POLICY_FIELD_NUMBER = 23; - private com.google.container.v1beta1.MaintenancePolicy maintenancePolicy_; - /** - *
-   * Configure the maintenance policy for this cluster.
-   * 
- * - * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; - * @return Whether the maintenancePolicy field is set. - */ - @java.lang.Override - public boolean hasMaintenancePolicy() { - return maintenancePolicy_ != null; - } - /** - *
-   * Configure the maintenance policy for this cluster.
-   * 
- * - * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; - * @return The maintenancePolicy. - */ - @java.lang.Override - public com.google.container.v1beta1.MaintenancePolicy getMaintenancePolicy() { - return maintenancePolicy_ == null ? com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; - } - /** - *
-   * Configure the maintenance policy for this cluster.
-   * 
- * - * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; - */ - @java.lang.Override - public com.google.container.v1beta1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { - return getMaintenancePolicy(); - } - - public static final int BINARY_AUTHORIZATION_FIELD_NUMBER = 24; - private com.google.container.v1beta1.BinaryAuthorization binaryAuthorization_; - /** - *
-   * Configuration for Binary Authorization.
-   * 
- * - * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; - * @return Whether the binaryAuthorization field is set. - */ - @java.lang.Override - public boolean hasBinaryAuthorization() { - return binaryAuthorization_ != null; - } - /** - *
-   * Configuration for Binary Authorization.
-   * 
- * - * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; - * @return The binaryAuthorization. - */ - @java.lang.Override - public com.google.container.v1beta1.BinaryAuthorization getBinaryAuthorization() { - return binaryAuthorization_ == null ? com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance() : binaryAuthorization_; - } - /** - *
-   * Configuration for Binary Authorization.
-   * 
- * - * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; - */ - @java.lang.Override - public com.google.container.v1beta1.BinaryAuthorizationOrBuilder getBinaryAuthorizationOrBuilder() { - return getBinaryAuthorization(); - } - - public static final int POD_SECURITY_POLICY_CONFIG_FIELD_NUMBER = 25; - private com.google.container.v1beta1.PodSecurityPolicyConfig podSecurityPolicyConfig_; - /** - *
-   * Configuration for the PodSecurityPolicy feature.
-   * 
- * - * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; - * @return Whether the podSecurityPolicyConfig field is set. - */ - @java.lang.Override - public boolean hasPodSecurityPolicyConfig() { - return podSecurityPolicyConfig_ != null; - } - /** - *
-   * Configuration for the PodSecurityPolicy feature.
-   * 
- * - * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; - * @return The podSecurityPolicyConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.PodSecurityPolicyConfig getPodSecurityPolicyConfig() { - return podSecurityPolicyConfig_ == null ? com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance() : podSecurityPolicyConfig_; - } - /** - *
-   * Configuration for the PodSecurityPolicy feature.
-   * 
- * - * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; - */ - @java.lang.Override - public com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder getPodSecurityPolicyConfigOrBuilder() { - return getPodSecurityPolicyConfig(); - } - - public static final int AUTOSCALING_FIELD_NUMBER = 26; - private com.google.container.v1beta1.ClusterAutoscaling autoscaling_; - /** - *
-   * Cluster-level autoscaling configuration.
-   * 
- * - * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; - * @return Whether the autoscaling field is set. - */ - @java.lang.Override - public boolean hasAutoscaling() { - return autoscaling_ != null; - } - /** - *
-   * Cluster-level autoscaling configuration.
-   * 
- * - * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; - * @return The autoscaling. - */ - @java.lang.Override - public com.google.container.v1beta1.ClusterAutoscaling getAutoscaling() { - return autoscaling_ == null ? com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance() : autoscaling_; - } - /** - *
-   * Cluster-level autoscaling configuration.
-   * 
- * - * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; - */ - @java.lang.Override - public com.google.container.v1beta1.ClusterAutoscalingOrBuilder getAutoscalingOrBuilder() { - return getAutoscaling(); - } - - public static final int NETWORK_CONFIG_FIELD_NUMBER = 27; - private com.google.container.v1beta1.NetworkConfig networkConfig_; - /** - *
-   * Configuration for cluster networking.
-   * 
- * - * .google.container.v1beta1.NetworkConfig network_config = 27; - * @return Whether the networkConfig field is set. - */ - @java.lang.Override - public boolean hasNetworkConfig() { - return networkConfig_ != null; - } - /** - *
-   * Configuration for cluster networking.
-   * 
- * - * .google.container.v1beta1.NetworkConfig network_config = 27; - * @return The networkConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.NetworkConfig getNetworkConfig() { - return networkConfig_ == null ? com.google.container.v1beta1.NetworkConfig.getDefaultInstance() : networkConfig_; - } - /** - *
-   * Configuration for cluster networking.
-   * 
- * - * .google.container.v1beta1.NetworkConfig network_config = 27; - */ - @java.lang.Override - public com.google.container.v1beta1.NetworkConfigOrBuilder getNetworkConfigOrBuilder() { - return getNetworkConfig(); - } - - public static final int PRIVATE_CLUSTER_FIELD_NUMBER = 28; - private boolean privateCluster_; - /** - *
-   * If this is a private cluster setup. Private clusters are clusters that, by
-   * default have no external IP addresses on the nodes and where nodes and the
-   * master communicate over private IP addresses.
-   * This field is deprecated, use private_cluster_config.enable_private_nodes
-   * instead.
-   * 
- * - * bool private_cluster = 28 [deprecated = true]; - * @deprecated google.container.v1beta1.Cluster.private_cluster is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1713 - * @return The privateCluster. - */ - @java.lang.Override - @java.lang.Deprecated public boolean getPrivateCluster() { - return privateCluster_; - } - - public static final int MASTER_IPV4_CIDR_BLOCK_FIELD_NUMBER = 29; - private volatile java.lang.Object masterIpv4CidrBlock_; - /** - *
-   * The IP prefix in CIDR notation to use for the hosted master network.
-   * This prefix will be used for assigning private IP addresses to the
-   * master or set of masters, as well as the ILB VIP.
-   * This field is deprecated, use
-   * private_cluster_config.master_ipv4_cidr_block instead.
-   * 
- * - * string master_ipv4_cidr_block = 29 [deprecated = true]; - * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1720 - * @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=1720 - * @return The bytes for masterIpv4CidrBlock. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getMasterIpv4CidrBlockBytes() { - java.lang.Object ref = masterIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - masterIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEFAULT_MAX_PODS_CONSTRAINT_FIELD_NUMBER = 30; - private com.google.container.v1beta1.MaxPodsConstraint defaultMaxPodsConstraint_; - /** - *
-   * The default constraint on the maximum number of pods that can be run
-   * simultaneously on a node in the node pool of this cluster. Only honored
-   * if cluster created with IP Alias support.
-   * 
- * - * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; - * @return Whether the defaultMaxPodsConstraint field is set. - */ - @java.lang.Override - public boolean hasDefaultMaxPodsConstraint() { - return defaultMaxPodsConstraint_ != null; - } - /** - *
-   * The default constraint on the maximum number of pods that can be run
-   * simultaneously on a node in the node pool of this cluster. Only honored
-   * if cluster created with IP Alias support.
-   * 
- * - * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; - * @return The defaultMaxPodsConstraint. - */ - @java.lang.Override - public com.google.container.v1beta1.MaxPodsConstraint getDefaultMaxPodsConstraint() { - return defaultMaxPodsConstraint_ == null ? com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance() : defaultMaxPodsConstraint_; - } - /** - *
-   * The default constraint on the maximum number of pods that can be run
-   * simultaneously on a node in the node pool of this cluster. Only honored
-   * if cluster created with IP Alias support.
-   * 
- * - * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; - */ - @java.lang.Override - public com.google.container.v1beta1.MaxPodsConstraintOrBuilder getDefaultMaxPodsConstraintOrBuilder() { - return getDefaultMaxPodsConstraint(); - } - - public static final int RESOURCE_USAGE_EXPORT_CONFIG_FIELD_NUMBER = 33; - private com.google.container.v1beta1.ResourceUsageExportConfig resourceUsageExportConfig_; - /** - *
-   * Configuration for exporting resource usages. Resource usage export is
-   * disabled when this config unspecified.
-   * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; - * @return Whether the resourceUsageExportConfig field is set. - */ - @java.lang.Override - public boolean hasResourceUsageExportConfig() { - return resourceUsageExportConfig_ != null; - } - /** - *
-   * Configuration for exporting resource usages. Resource usage export is
-   * disabled when this config unspecified.
-   * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; - * @return The resourceUsageExportConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.ResourceUsageExportConfig getResourceUsageExportConfig() { - return resourceUsageExportConfig_ == null ? com.google.container.v1beta1.ResourceUsageExportConfig.getDefaultInstance() : resourceUsageExportConfig_; - } - /** - *
-   * Configuration for exporting resource usages. Resource usage export is
-   * disabled when this config unspecified.
-   * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; - */ - @java.lang.Override - public com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder getResourceUsageExportConfigOrBuilder() { - return getResourceUsageExportConfig(); - } - - public static final int AUTHENTICATOR_GROUPS_CONFIG_FIELD_NUMBER = 34; - private com.google.container.v1beta1.AuthenticatorGroupsConfig authenticatorGroupsConfig_; - /** - *
-   * Configuration controlling RBAC group membership information.
-   * 
- * - * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - * @return Whether the authenticatorGroupsConfig field is set. - */ - @java.lang.Override - public boolean hasAuthenticatorGroupsConfig() { - return authenticatorGroupsConfig_ != null; - } - /** - *
-   * Configuration controlling RBAC group membership information.
-   * 
- * - * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - * @return The authenticatorGroupsConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.AuthenticatorGroupsConfig getAuthenticatorGroupsConfig() { - return authenticatorGroupsConfig_ == null ? com.google.container.v1beta1.AuthenticatorGroupsConfig.getDefaultInstance() : authenticatorGroupsConfig_; - } - /** - *
-   * Configuration controlling RBAC group membership information.
-   * 
- * - * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - */ - @java.lang.Override - public com.google.container.v1beta1.AuthenticatorGroupsConfigOrBuilder getAuthenticatorGroupsConfigOrBuilder() { - return getAuthenticatorGroupsConfig(); - } - - public static final int PRIVATE_CLUSTER_CONFIG_FIELD_NUMBER = 37; - private com.google.container.v1beta1.PrivateClusterConfig privateClusterConfig_; - /** - *
-   * Configuration for private cluster.
-   * 
- * - * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; - * @return Whether the privateClusterConfig field is set. - */ - @java.lang.Override - public boolean hasPrivateClusterConfig() { - return privateClusterConfig_ != null; - } - /** - *
-   * Configuration for private cluster.
-   * 
- * - * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; - * @return The privateClusterConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.PrivateClusterConfig getPrivateClusterConfig() { - return privateClusterConfig_ == null ? com.google.container.v1beta1.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; - } - /** - *
-   * Configuration for private cluster.
-   * 
- * - * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; - */ - @java.lang.Override - public com.google.container.v1beta1.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder() { - return getPrivateClusterConfig(); - } - - public static final int VERTICAL_POD_AUTOSCALING_FIELD_NUMBER = 39; - private com.google.container.v1beta1.VerticalPodAutoscaling verticalPodAutoscaling_; - /** - *
-   * Cluster-level Vertical Pod Autoscaling configuration.
-   * 
- * - * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - * @return Whether the verticalPodAutoscaling field is set. - */ - @java.lang.Override - public boolean hasVerticalPodAutoscaling() { - return verticalPodAutoscaling_ != null; - } - /** - *
-   * Cluster-level Vertical Pod Autoscaling configuration.
-   * 
- * - * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - * @return The verticalPodAutoscaling. - */ - @java.lang.Override - public com.google.container.v1beta1.VerticalPodAutoscaling getVerticalPodAutoscaling() { - return verticalPodAutoscaling_ == null ? com.google.container.v1beta1.VerticalPodAutoscaling.getDefaultInstance() : verticalPodAutoscaling_; - } - /** - *
-   * Cluster-level Vertical Pod Autoscaling configuration.
-   * 
- * - * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - */ - @java.lang.Override - public com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder getVerticalPodAutoscalingOrBuilder() { - return getVerticalPodAutoscaling(); - } - - public static final int SHIELDED_NODES_FIELD_NUMBER = 40; - private com.google.container.v1beta1.ShieldedNodes shieldedNodes_; - /** - *
-   * Shielded Nodes configuration.
-   * 
- * - * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; - * @return Whether the shieldedNodes field is set. - */ - @java.lang.Override - public boolean hasShieldedNodes() { - return shieldedNodes_ != null; - } - /** - *
-   * Shielded Nodes configuration.
-   * 
- * - * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; - * @return The shieldedNodes. - */ - @java.lang.Override - public com.google.container.v1beta1.ShieldedNodes getShieldedNodes() { - return shieldedNodes_ == null ? com.google.container.v1beta1.ShieldedNodes.getDefaultInstance() : shieldedNodes_; - } - /** - *
-   * Shielded Nodes configuration.
-   * 
- * - * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; - */ - @java.lang.Override - public com.google.container.v1beta1.ShieldedNodesOrBuilder getShieldedNodesOrBuilder() { - return getShieldedNodes(); - } - - public static final int RELEASE_CHANNEL_FIELD_NUMBER = 41; - private com.google.container.v1beta1.ReleaseChannel releaseChannel_; - /** - *
-   * Release channel configuration.
-   * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 41; - * @return Whether the releaseChannel field is set. - */ - @java.lang.Override - public boolean hasReleaseChannel() { - return releaseChannel_ != null; - } - /** - *
-   * Release channel configuration.
-   * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 41; - * @return The releaseChannel. - */ - @java.lang.Override - public com.google.container.v1beta1.ReleaseChannel getReleaseChannel() { - return releaseChannel_ == null ? com.google.container.v1beta1.ReleaseChannel.getDefaultInstance() : releaseChannel_; - } - /** - *
-   * Release channel configuration.
-   * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 41; - */ - @java.lang.Override - public com.google.container.v1beta1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder() { - return getReleaseChannel(); - } - - public static final int WORKLOAD_IDENTITY_CONFIG_FIELD_NUMBER = 43; - private com.google.container.v1beta1.WorkloadIdentityConfig workloadIdentityConfig_; - /** - *
-   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-   * policies.
-   * 
- * - * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; - * @return Whether the workloadIdentityConfig field is set. - */ - @java.lang.Override - public boolean hasWorkloadIdentityConfig() { - return workloadIdentityConfig_ != null; - } - /** - *
-   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-   * policies.
-   * 
- * - * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; - * @return The workloadIdentityConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.WorkloadIdentityConfig getWorkloadIdentityConfig() { - return workloadIdentityConfig_ == null ? com.google.container.v1beta1.WorkloadIdentityConfig.getDefaultInstance() : workloadIdentityConfig_; - } - /** - *
-   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-   * policies.
-   * 
- * - * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; - */ - @java.lang.Override - public com.google.container.v1beta1.WorkloadIdentityConfigOrBuilder getWorkloadIdentityConfigOrBuilder() { - return getWorkloadIdentityConfig(); - } - - public static final int 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 workloadCertificates_ != null; - } - /** - *
-   * 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 getWorkloadCertificates(); - } - - public static final int MESH_CERTIFICATES_FIELD_NUMBER = 67; - private com.google.container.v1beta1.MeshCertificates meshCertificates_; - /** - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; - * @return Whether the meshCertificates field is set. - */ - @java.lang.Override - public boolean hasMeshCertificates() { - return meshCertificates_ != null; - } - /** - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; - * @return The meshCertificates. - */ - @java.lang.Override - public com.google.container.v1beta1.MeshCertificates getMeshCertificates() { - return meshCertificates_ == null ? com.google.container.v1beta1.MeshCertificates.getDefaultInstance() : meshCertificates_; - } - /** - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; - */ - @java.lang.Override - public com.google.container.v1beta1.MeshCertificatesOrBuilder getMeshCertificatesOrBuilder() { - return getMeshCertificates(); - } - - public static final int 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 workloadAltsConfig_ != null; - } - /** - *
-   * 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 getWorkloadAltsConfig(); - } - - 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 costManagementConfig_ != null; - } - /** - *
-   * 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 getCostManagementConfig(); - } - - public static final int CLUSTER_TELEMETRY_FIELD_NUMBER = 46; - private com.google.container.v1beta1.ClusterTelemetry clusterTelemetry_; - /** - *
-   * Telemetry integration for the cluster.
-   * 
- * - * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; - * @return Whether the clusterTelemetry field is set. - */ - @java.lang.Override - public boolean hasClusterTelemetry() { - return clusterTelemetry_ != null; - } - /** - *
-   * Telemetry integration for the cluster.
-   * 
- * - * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; - * @return The clusterTelemetry. - */ - @java.lang.Override - public com.google.container.v1beta1.ClusterTelemetry getClusterTelemetry() { - return clusterTelemetry_ == null ? com.google.container.v1beta1.ClusterTelemetry.getDefaultInstance() : clusterTelemetry_; - } - /** - *
-   * Telemetry integration for the cluster.
-   * 
- * - * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; - */ - @java.lang.Override - public com.google.container.v1beta1.ClusterTelemetryOrBuilder getClusterTelemetryOrBuilder() { - return getClusterTelemetry(); - } - - public static final int TPU_CONFIG_FIELD_NUMBER = 47; - private com.google.container.v1beta1.TpuConfig tpuConfig_; - /** - *
-   * Configuration for Cloud TPU support;
-   * 
- * - * .google.container.v1beta1.TpuConfig tpu_config = 47; - * @return Whether the tpuConfig field is set. - */ - @java.lang.Override - public boolean hasTpuConfig() { - return tpuConfig_ != null; - } - /** - *
-   * Configuration for Cloud TPU support;
-   * 
- * - * .google.container.v1beta1.TpuConfig tpu_config = 47; - * @return The tpuConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.TpuConfig getTpuConfig() { - return tpuConfig_ == null ? com.google.container.v1beta1.TpuConfig.getDefaultInstance() : tpuConfig_; - } - /** - *
-   * Configuration for Cloud TPU support;
-   * 
- * - * .google.container.v1beta1.TpuConfig tpu_config = 47; - */ - @java.lang.Override - public com.google.container.v1beta1.TpuConfigOrBuilder getTpuConfigOrBuilder() { - return getTpuConfig(); - } - - public static final int NOTIFICATION_CONFIG_FIELD_NUMBER = 49; - private com.google.container.v1beta1.NotificationConfig notificationConfig_; - /** - *
-   * Notification configuration of the cluster.
-   * 
- * - * .google.container.v1beta1.NotificationConfig notification_config = 49; - * @return Whether the notificationConfig field is set. - */ - @java.lang.Override - public boolean hasNotificationConfig() { - return notificationConfig_ != null; - } - /** - *
-   * Notification configuration of the cluster.
-   * 
- * - * .google.container.v1beta1.NotificationConfig notification_config = 49; - * @return The notificationConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.NotificationConfig getNotificationConfig() { - return notificationConfig_ == null ? com.google.container.v1beta1.NotificationConfig.getDefaultInstance() : notificationConfig_; - } - /** - *
-   * Notification configuration of the cluster.
-   * 
- * - * .google.container.v1beta1.NotificationConfig notification_config = 49; - */ - @java.lang.Override - public com.google.container.v1beta1.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { - return getNotificationConfig(); - } - - public static final int CONFIDENTIAL_NODES_FIELD_NUMBER = 50; - private com.google.container.v1beta1.ConfidentialNodes confidentialNodes_; - /** - *
-   * Configuration of Confidential Nodes.
-   * 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 confidentialNodes_ != null; - } - /** - *
-   * 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 getConfidentialNodes(); - } - - 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 identityServiceConfig_ != null; - } - /** - *
-   * 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 getIdentityServiceConfig(); - } - - public static final int SELF_LINK_FIELD_NUMBER = 100; - private volatile java.lang.Object selfLink_; - /** - *
-   * [Output only] Server-defined URL for the resource.
-   * 
- * - * string self_link = 100; - * @return The selfLink. - */ - @java.lang.Override - public java.lang.String getSelfLink() { - java.lang.Object ref = selfLink_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - selfLink_ = s; - return s; - } - } - /** - *
-   * [Output only] Server-defined URL for the resource.
-   * 
- * - * string self_link = 100; - * @return The bytes for selfLink. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSelfLinkBytes() { - java.lang.Object ref = selfLink_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - selfLink_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 101; - private volatile java.lang.Object zone_; - /** - *
-   * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field is deprecated, use location instead.
-   * 
- * - * string zone = 101 [deprecated = true]; - * @deprecated google.container.v1beta1.Cluster.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1786 - * @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=1786 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ENDPOINT_FIELD_NUMBER = 102; - private volatile java.lang.Object endpoint_; - /** - *
-   * [Output only] The IP address of this cluster's master endpoint.
-   * The endpoint can be accessed from the internet at
-   * `https://username:password@endpoint/`.
-   * See the `masterAuth` property of this resource for username and
-   * password information.
-   * 
- * - * string endpoint = 102; - * @return The endpoint. - */ - @java.lang.Override - public java.lang.String getEndpoint() { - java.lang.Object ref = endpoint_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - endpoint_ = s; - return s; - } - } - /** - *
-   * [Output only] The IP address of this cluster's master endpoint.
-   * The endpoint can be accessed from the internet at
-   * `https://username:password@endpoint/`.
-   * See the `masterAuth` property of this resource for username and
-   * password information.
-   * 
- * - * string endpoint = 102; - * @return The bytes for endpoint. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getEndpointBytes() { - java.lang.Object ref = endpoint_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - endpoint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INITIAL_CLUSTER_VERSION_FIELD_NUMBER = 103; - private volatile java.lang.Object initialClusterVersion_; - /** - *
-   * The initial Kubernetes version for this cluster.  Valid versions are those
-   * found in validMasterVersions returned by getServerConfig.  The version can
-   * be upgraded over time; such upgrades are reflected in
-   * currentMasterVersion and currentNodeVersion.
-   * Users may specify either explicit versions offered by
-   * Kubernetes Engine or version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "","-": picks the default Kubernetes version
-   * 
- * - * string initial_cluster_version = 103; - * @return The initialClusterVersion. - */ - @java.lang.Override - public java.lang.String getInitialClusterVersion() { - java.lang.Object ref = initialClusterVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - initialClusterVersion_ = s; - return s; - } - } - /** - *
-   * The initial Kubernetes version for this cluster.  Valid versions are those
-   * found in validMasterVersions returned by getServerConfig.  The version can
-   * be upgraded over time; such upgrades are reflected in
-   * currentMasterVersion and currentNodeVersion.
-   * Users may specify either explicit versions offered by
-   * Kubernetes Engine or version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "","-": picks the default Kubernetes version
-   * 
- * - * string initial_cluster_version = 103; - * @return The bytes for initialClusterVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getInitialClusterVersionBytes() { - java.lang.Object ref = initialClusterVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - initialClusterVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CURRENT_MASTER_VERSION_FIELD_NUMBER = 104; - private volatile java.lang.Object currentMasterVersion_; - /** - *
-   * [Output only] The current software version of the master endpoint.
-   * 
- * - * string current_master_version = 104; - * @return The currentMasterVersion. - */ - @java.lang.Override - public java.lang.String getCurrentMasterVersion() { - java.lang.Object ref = currentMasterVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currentMasterVersion_ = s; - return s; - } - } - /** - *
-   * [Output only] The current software version of the master endpoint.
-   * 
- * - * string current_master_version = 104; - * @return The bytes for currentMasterVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCurrentMasterVersionBytes() { - java.lang.Object ref = currentMasterVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - currentMasterVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CURRENT_NODE_VERSION_FIELD_NUMBER = 105; - private volatile java.lang.Object currentNodeVersion_; - /** - *
-   * [Output only] Deprecated, use
-   * [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools)
-   * instead. The current version of the node software components.
-   * If they are currently at multiple versions because they're in the process
-   * of being upgraded, this reflects the minimum version of all nodes.
-   * 
- * - * string current_node_version = 105 [deprecated = true]; - * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1819 - * @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=1819 - * @return The bytes for currentNodeVersion. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getCurrentNodeVersionBytes() { - java.lang.Object ref = currentNodeVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - currentNodeVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CREATE_TIME_FIELD_NUMBER = 106; - private volatile java.lang.Object createTime_; - /** - *
-   * [Output only] The time the cluster was created, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string create_time = 106; - * @return The createTime. - */ - @java.lang.Override - public java.lang.String getCreateTime() { - java.lang.Object ref = createTime_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - createTime_ = s; - return s; - } - } - /** - *
-   * [Output only] The time the cluster was created, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string create_time = 106; - * @return The bytes for createTime. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCreateTimeBytes() { - java.lang.Object ref = createTime_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - createTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_FIELD_NUMBER = 107; - private int status_; - /** - *
-   * [Output only] The current status of this cluster.
-   * 
- * - * .google.container.v1beta1.Cluster.Status status = 107; - * @return The enum numeric value on the wire for status. - */ - @java.lang.Override public int getStatusValue() { - return status_; - } - /** - *
-   * [Output only] The current status of this cluster.
-   * 
- * - * .google.container.v1beta1.Cluster.Status status = 107; - * @return The status. - */ - @java.lang.Override public com.google.container.v1beta1.Cluster.Status getStatus() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.Cluster.Status result = com.google.container.v1beta1.Cluster.Status.valueOf(status_); - return result == null ? com.google.container.v1beta1.Cluster.Status.UNRECOGNIZED : result; - } - - public static final int STATUS_MESSAGE_FIELD_NUMBER = 108; - private volatile java.lang.Object statusMessage_; - /** - *
-   * [Output only] Deprecated. Use conditions instead.
-   * Additional information about the current status of this
-   * cluster, if available.
-   * 
- * - * string status_message = 108 [deprecated = true]; - * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1831 - * @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=1831 - * @return The bytes for statusMessage. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getStatusMessageBytes() { - java.lang.Object ref = statusMessage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - statusMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_IPV4_CIDR_SIZE_FIELD_NUMBER = 109; - private int nodeIpv4CidrSize_; - /** - *
-   * [Output only] The size of the address space on each node for hosting
-   * containers. This is provisioned from within the `container_ipv4_cidr`
-   * range. This field will only be set when cluster is in route-based network
-   * mode.
-   * 
- * - * int32 node_ipv4_cidr_size = 109; - * @return The nodeIpv4CidrSize. - */ - @java.lang.Override - public int getNodeIpv4CidrSize() { - return nodeIpv4CidrSize_; - } - - public static final int SERVICES_IPV4_CIDR_FIELD_NUMBER = 110; - private volatile java.lang.Object servicesIpv4Cidr_; - /** - *
-   * [Output only] The IP address range of the Kubernetes services in
-   * this cluster, in
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `1.2.3.4/29`). Service addresses are
-   * typically put in the last `/16` from the container CIDR.
-   * 
- * - * string services_ipv4_cidr = 110; - * @return The servicesIpv4Cidr. - */ - @java.lang.Override - public java.lang.String getServicesIpv4Cidr() { - java.lang.Object ref = servicesIpv4Cidr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - servicesIpv4Cidr_ = s; - return s; - } - } - /** - *
-   * [Output only] The IP address range of the Kubernetes services in
-   * this cluster, in
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `1.2.3.4/29`). Service addresses are
-   * typically put in the last `/16` from the container CIDR.
-   * 
- * - * string services_ipv4_cidr = 110; - * @return The bytes for servicesIpv4Cidr. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getServicesIpv4CidrBytes() { - java.lang.Object ref = servicesIpv4Cidr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - servicesIpv4Cidr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INSTANCE_GROUP_URLS_FIELD_NUMBER = 111; - private com.google.protobuf.LazyStringList instanceGroupUrls_; - /** - *
-   * Deprecated. Use node_pools.instance_group_urls.
-   * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1847 - * @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=1847 - * @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=1847 - * @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=1847 - * @param index The index of the value to return. - * @return The bytes of the instanceGroupUrls at the given index. - */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getInstanceGroupUrlsBytes(int index) { - return instanceGroupUrls_.getByteString(index); - } - - public static final int CURRENT_NODE_COUNT_FIELD_NUMBER = 112; - private int currentNodeCount_; - /** - *
-   * [Output only]  The number of nodes currently in the cluster. Deprecated.
-   * Call Kubernetes API directly to retrieve node information.
-   * 
- * - * int32 current_node_count = 112 [deprecated = true]; - * @deprecated google.container.v1beta1.Cluster.current_node_count is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1851 - * @return The currentNodeCount. - */ - @java.lang.Override - @java.lang.Deprecated public int getCurrentNodeCount() { - return currentNodeCount_; - } - - public static final int EXPIRE_TIME_FIELD_NUMBER = 113; - private volatile java.lang.Object expireTime_; - /** - *
-   * [Output only] The time the cluster will be automatically
-   * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string expire_time = 113; - * @return The expireTime. - */ - @java.lang.Override - public java.lang.String getExpireTime() { - java.lang.Object ref = expireTime_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - expireTime_ = s; - return s; - } - } - /** - *
-   * [Output only] The time the cluster will be automatically
-   * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string expire_time = 113; - * @return The bytes for expireTime. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getExpireTimeBytes() { - java.lang.Object ref = expireTime_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - expireTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOCATION_FIELD_NUMBER = 114; - private volatile java.lang.Object location_; - /** - *
-   * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * or
-   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * in which the cluster resides.
-   * 
- * - * string location = 114; - * @return The location. - */ - @java.lang.Override - public java.lang.String getLocation() { - java.lang.Object ref = location_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - location_ = s; - return s; - } - } - /** - *
-   * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * or
-   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * in which the cluster resides.
-   * 
- * - * string location = 114; - * @return The bytes for location. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getLocationBytes() { - java.lang.Object ref = location_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - location_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ENABLE_TPU_FIELD_NUMBER = 115; - private boolean enableTpu_; - /** - *
-   * Enable the ability to use Cloud TPUs in this cluster.
-   * This field is deprecated, use tpu_config.enabled instead.
-   * 
- * - * bool enable_tpu = 115; - * @return The enableTpu. - */ - @java.lang.Override - public boolean getEnableTpu() { - return enableTpu_; - } - - public static final int TPU_IPV4_CIDR_BLOCK_FIELD_NUMBER = 116; - private volatile java.lang.Object tpuIpv4CidrBlock_; - /** - *
-   * [Output only] The IP address range of the Cloud TPUs in this cluster, in
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `1.2.3.4/29`).
-   * 
- * - * string tpu_ipv4_cidr_block = 116; - * @return The tpuIpv4CidrBlock. - */ - @java.lang.Override - public java.lang.String getTpuIpv4CidrBlock() { - java.lang.Object ref = tpuIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tpuIpv4CidrBlock_ = s; - return s; - } - } - /** - *
-   * [Output only] The IP address range of the Cloud TPUs in this cluster, in
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `1.2.3.4/29`).
-   * 
- * - * string tpu_ipv4_cidr_block = 116; - * @return The bytes for tpuIpv4CidrBlock. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTpuIpv4CidrBlockBytes() { - java.lang.Object ref = tpuIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tpuIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DATABASE_ENCRYPTION_FIELD_NUMBER = 38; - private com.google.container.v1beta1.DatabaseEncryption databaseEncryption_; - /** - *
-   * Configuration of etcd encryption.
-   * 
- * - * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; - * @return Whether the databaseEncryption field is set. - */ - @java.lang.Override - public boolean hasDatabaseEncryption() { - return databaseEncryption_ != null; - } - /** - *
-   * Configuration of etcd encryption.
-   * 
- * - * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; - * @return The databaseEncryption. - */ - @java.lang.Override - public com.google.container.v1beta1.DatabaseEncryption getDatabaseEncryption() { - return databaseEncryption_ == null ? com.google.container.v1beta1.DatabaseEncryption.getDefaultInstance() : databaseEncryption_; - } - /** - *
-   * Configuration of etcd encryption.
-   * 
- * - * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; - */ - @java.lang.Override - public com.google.container.v1beta1.DatabaseEncryptionOrBuilder getDatabaseEncryptionOrBuilder() { - return getDatabaseEncryption(); - } - - public static final int CONDITIONS_FIELD_NUMBER = 118; - private java.util.List conditions_; - /** - *
-   * Which conditions caused the current cluster state.
-   * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - @java.lang.Override - public java.util.List getConditionsList() { - return conditions_; - } - /** - *
-   * Which conditions caused the current cluster state.
-   * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - @java.lang.Override - public java.util.List - getConditionsOrBuilderList() { - return conditions_; - } - /** - *
-   * Which conditions caused the current cluster state.
-   * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - @java.lang.Override - public int getConditionsCount() { - return conditions_.size(); - } - /** - *
-   * Which conditions caused the current cluster state.
-   * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - @java.lang.Override - public com.google.container.v1beta1.StatusCondition getConditions(int index) { - return conditions_.get(index); - } - /** - *
-   * Which conditions caused the current cluster state.
-   * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - @java.lang.Override - public com.google.container.v1beta1.StatusConditionOrBuilder getConditionsOrBuilder( - int index) { - return conditions_.get(index); - } - - public static final int MASTER_FIELD_NUMBER = 124; - private com.google.container.v1beta1.Master master_; - /** - *
-   * Configuration for master components.
-   * 
- * - * .google.container.v1beta1.Master master = 124; - * @return Whether the master field is set. - */ - @java.lang.Override - public boolean hasMaster() { - return master_ != null; - } - /** - *
-   * Configuration for master components.
-   * 
- * - * .google.container.v1beta1.Master master = 124; - * @return The master. - */ - @java.lang.Override - public com.google.container.v1beta1.Master getMaster() { - return master_ == null ? com.google.container.v1beta1.Master.getDefaultInstance() : master_; - } - /** - *
-   * Configuration for master components.
-   * 
- * - * .google.container.v1beta1.Master master = 124; - */ - @java.lang.Override - public com.google.container.v1beta1.MasterOrBuilder getMasterOrBuilder() { - return getMaster(); - } - - 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 autopilot_ != null; - } - /** - *
-   * 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 getAutopilot(); - } - - public static final int ID_FIELD_NUMBER = 129; - private volatile java.lang.Object id_; - /** - *
-   * Output only. Unique id for the cluster.
-   * 
- * - * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The id. - */ - @java.lang.Override - public 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 ((bitField0_ & 0x00000001) != 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 loggingConfig_ != null; - } - /** - *
-   * 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 getLoggingConfig(); - } - - 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 monitoringConfig_ != null; - } - /** - *
-   * 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 getMonitoringConfig(); - } - - 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 nodePoolAutoConfig_ != null; - } - /** - *
-   * 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 getNodePoolAutoConfig(); - } - - public static final int PROTECT_CONFIG_FIELD_NUMBER = 137; - private com.google.container.v1beta1.ProtectConfig protectConfig_; - /** - *
-   * Enable/Disable Protect API features for the cluster.
-   * 
- * - * optional .google.container.v1beta1.ProtectConfig protect_config = 137; - * @return Whether the protectConfig field is set. - */ - @java.lang.Override - public boolean hasProtectConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-   * Enable/Disable Protect API features for the cluster.
-   * 
- * - * optional .google.container.v1beta1.ProtectConfig protect_config = 137; - * @return The protectConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.ProtectConfig getProtectConfig() { - return protectConfig_ == null ? com.google.container.v1beta1.ProtectConfig.getDefaultInstance() : protectConfig_; - } - /** - *
-   * Enable/Disable Protect API features for the cluster.
-   * 
- * - * optional .google.container.v1beta1.ProtectConfig protect_config = 137; - */ - @java.lang.Override - public com.google.container.v1beta1.ProtectConfigOrBuilder getProtectConfigOrBuilder() { - return protectConfig_ == null ? com.google.container.v1beta1.ProtectConfig.getDefaultInstance() : protectConfig_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); - } - if (initialNodeCount_ != 0) { - output.writeInt32(3, initialNodeCount_); - } - if (nodeConfig_ != null) { - output.writeMessage(4, getNodeConfig()); - } - if (masterAuth_ != null) { - output.writeMessage(5, getMasterAuth()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loggingService_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, loggingService_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(monitoringService_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, monitoringService_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, network_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterIpv4Cidr_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, clusterIpv4Cidr_); - } - if (addonsConfig_ != null) { - output.writeMessage(10, getAddonsConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, subnetwork_); - } - for (int i = 0; i < nodePools_.size(); i++) { - output.writeMessage(12, nodePools_.get(i)); - } - for (int i = 0; i < locations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, locations_.getRaw(i)); - } - if (enableKubernetesAlpha_ != false) { - output.writeBool(14, enableKubernetesAlpha_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetResourceLabels(), - ResourceLabelsDefaultEntryHolder.defaultEntry, - 15); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(labelFingerprint_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 16, labelFingerprint_); - } - if (legacyAbac_ != null) { - output.writeMessage(18, getLegacyAbac()); - } - if (networkPolicy_ != null) { - output.writeMessage(19, getNetworkPolicy()); - } - if (ipAllocationPolicy_ != null) { - output.writeMessage(20, getIpAllocationPolicy()); - } - if (masterAuthorizedNetworksConfig_ != null) { - output.writeMessage(22, getMasterAuthorizedNetworksConfig()); - } - if (maintenancePolicy_ != null) { - output.writeMessage(23, getMaintenancePolicy()); - } - if (binaryAuthorization_ != null) { - output.writeMessage(24, getBinaryAuthorization()); - } - if (podSecurityPolicyConfig_ != null) { - output.writeMessage(25, getPodSecurityPolicyConfig()); - } - if (autoscaling_ != null) { - output.writeMessage(26, getAutoscaling()); - } - if (networkConfig_ != null) { - output.writeMessage(27, getNetworkConfig()); - } - if (privateCluster_ != false) { - output.writeBool(28, privateCluster_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(masterIpv4CidrBlock_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 29, masterIpv4CidrBlock_); - } - if (defaultMaxPodsConstraint_ != null) { - output.writeMessage(30, getDefaultMaxPodsConstraint()); - } - if (resourceUsageExportConfig_ != null) { - output.writeMessage(33, getResourceUsageExportConfig()); - } - if (authenticatorGroupsConfig_ != null) { - output.writeMessage(34, getAuthenticatorGroupsConfig()); - } - if (privateClusterConfig_ != null) { - output.writeMessage(37, getPrivateClusterConfig()); - } - if (databaseEncryption_ != null) { - output.writeMessage(38, getDatabaseEncryption()); - } - if (verticalPodAutoscaling_ != null) { - output.writeMessage(39, getVerticalPodAutoscaling()); - } - if (shieldedNodes_ != null) { - output.writeMessage(40, getShieldedNodes()); - } - if (releaseChannel_ != null) { - output.writeMessage(41, getReleaseChannel()); - } - if (workloadIdentityConfig_ != null) { - output.writeMessage(43, getWorkloadIdentityConfig()); - } - if (costManagementConfig_ != null) { - output.writeMessage(45, getCostManagementConfig()); - } - if (clusterTelemetry_ != null) { - output.writeMessage(46, getClusterTelemetry()); - } - if (tpuConfig_ != null) { - output.writeMessage(47, getTpuConfig()); - } - if (notificationConfig_ != null) { - output.writeMessage(49, getNotificationConfig()); - } - if (confidentialNodes_ != null) { - output.writeMessage(50, getConfidentialNodes()); - } - if (workloadCertificates_ != null) { - output.writeMessage(52, getWorkloadCertificates()); - } - if (workloadAltsConfig_ != null) { - output.writeMessage(53, getWorkloadAltsConfig()); - } - if (identityServiceConfig_ != null) { - output.writeMessage(54, getIdentityServiceConfig()); - } - if (meshCertificates_ != null) { - output.writeMessage(67, getMeshCertificates()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 100, selfLink_); - } - 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 (master_ != null) { - output.writeMessage(124, getMaster()); - } - if (autopilot_ != null) { - output.writeMessage(128, getAutopilot()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 129, id_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(131, getNodePoolDefaults()); - } - if (loggingConfig_ != null) { - output.writeMessage(132, getLoggingConfig()); - } - if (monitoringConfig_ != null) { - output.writeMessage(133, getMonitoringConfig()); - } - if (nodePoolAutoConfig_ != null) { - output.writeMessage(136, getNodePoolAutoConfig()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(137, getProtectConfig()); - } - getUnknownFields().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 (nodeConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getNodeConfig()); - } - if (masterAuth_ != null) { - 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 (addonsConfig_ != null) { - 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 (legacyAbac_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, getLegacyAbac()); - } - if (networkPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, getNetworkPolicy()); - } - if (ipAllocationPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, getIpAllocationPolicy()); - } - if (masterAuthorizedNetworksConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, getMasterAuthorizedNetworksConfig()); - } - if (maintenancePolicy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(23, getMaintenancePolicy()); - } - if (binaryAuthorization_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(24, getBinaryAuthorization()); - } - if (podSecurityPolicyConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(25, getPodSecurityPolicyConfig()); - } - if (autoscaling_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(26, getAutoscaling()); - } - if (networkConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(27, getNetworkConfig()); - } - if (privateCluster_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(28, privateCluster_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(masterIpv4CidrBlock_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, masterIpv4CidrBlock_); - } - if (defaultMaxPodsConstraint_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(30, getDefaultMaxPodsConstraint()); - } - if (resourceUsageExportConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(33, getResourceUsageExportConfig()); - } - if (authenticatorGroupsConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(34, getAuthenticatorGroupsConfig()); - } - if (privateClusterConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(37, getPrivateClusterConfig()); - } - if (databaseEncryption_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(38, getDatabaseEncryption()); - } - if (verticalPodAutoscaling_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(39, getVerticalPodAutoscaling()); - } - if (shieldedNodes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(40, getShieldedNodes()); - } - if (releaseChannel_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(41, getReleaseChannel()); - } - if (workloadIdentityConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(43, getWorkloadIdentityConfig()); - } - if (costManagementConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(45, getCostManagementConfig()); - } - if (clusterTelemetry_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(46, getClusterTelemetry()); - } - if (tpuConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(47, getTpuConfig()); - } - if (notificationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(49, getNotificationConfig()); - } - if (confidentialNodes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(50, getConfidentialNodes()); - } - if (workloadCertificates_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(52, getWorkloadCertificates()); - } - if (workloadAltsConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(53, getWorkloadAltsConfig()); - } - if (identityServiceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(54, getIdentityServiceConfig()); - } - if (meshCertificates_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(67, getMeshCertificates()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, selfLink_); - } - 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 (master_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(124, getMaster()); - } - if (autopilot_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(128, getAutopilot()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(129, id_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(131, getNodePoolDefaults()); - } - if (loggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(132, getLoggingConfig()); - } - if (monitoringConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(133, getMonitoringConfig()); - } - if (nodePoolAutoConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(136, getNodePoolAutoConfig()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(137, getProtectConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1beta1.Cluster)) { - return super.equals(obj); - } - com.google.container.v1beta1.Cluster other = (com.google.container.v1beta1.Cluster) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (getInitialNodeCount() - != other.getInitialNodeCount()) return false; - if (hasNodeConfig() != other.hasNodeConfig()) return false; - if (hasNodeConfig()) { - if (!getNodeConfig() - .equals(other.getNodeConfig())) return false; - } - if (hasMasterAuth() != other.hasMasterAuth()) return false; - if (hasMasterAuth()) { - if (!getMasterAuth() - .equals(other.getMasterAuth())) return false; - } - if (!getLoggingService() - .equals(other.getLoggingService())) return false; - if (!getMonitoringService() - .equals(other.getMonitoringService())) return false; - if (!getNetwork() - .equals(other.getNetwork())) return false; - if (!getClusterIpv4Cidr() - .equals(other.getClusterIpv4Cidr())) return false; - if (hasAddonsConfig() != other.hasAddonsConfig()) return false; - if (hasAddonsConfig()) { - if (!getAddonsConfig() - .equals(other.getAddonsConfig())) return false; - } - if (!getSubnetwork() - .equals(other.getSubnetwork())) return false; - if (!getNodePoolsList() - .equals(other.getNodePoolsList())) return false; - if (!getLocationsList() - .equals(other.getLocationsList())) return false; - if (getEnableKubernetesAlpha() - != other.getEnableKubernetesAlpha()) return false; - if (!internalGetResourceLabels().equals( - other.internalGetResourceLabels())) return false; - if (!getLabelFingerprint() - .equals(other.getLabelFingerprint())) return false; - if (hasLegacyAbac() != other.hasLegacyAbac()) return false; - if (hasLegacyAbac()) { - if (!getLegacyAbac() - .equals(other.getLegacyAbac())) return false; - } - if (hasNetworkPolicy() != other.hasNetworkPolicy()) return false; - if (hasNetworkPolicy()) { - if (!getNetworkPolicy() - .equals(other.getNetworkPolicy())) return false; - } - if (hasIpAllocationPolicy() != other.hasIpAllocationPolicy()) return false; - if (hasIpAllocationPolicy()) { - if (!getIpAllocationPolicy() - .equals(other.getIpAllocationPolicy())) return false; - } - if (hasMasterAuthorizedNetworksConfig() != other.hasMasterAuthorizedNetworksConfig()) return false; - if (hasMasterAuthorizedNetworksConfig()) { - if (!getMasterAuthorizedNetworksConfig() - .equals(other.getMasterAuthorizedNetworksConfig())) return false; - } - if (hasMaintenancePolicy() != other.hasMaintenancePolicy()) return false; - if (hasMaintenancePolicy()) { - if (!getMaintenancePolicy() - .equals(other.getMaintenancePolicy())) return false; - } - if (hasBinaryAuthorization() != other.hasBinaryAuthorization()) return false; - if (hasBinaryAuthorization()) { - if (!getBinaryAuthorization() - .equals(other.getBinaryAuthorization())) return false; - } - if (hasPodSecurityPolicyConfig() != other.hasPodSecurityPolicyConfig()) return false; - if (hasPodSecurityPolicyConfig()) { - if (!getPodSecurityPolicyConfig() - .equals(other.getPodSecurityPolicyConfig())) return false; - } - if (hasAutoscaling() != other.hasAutoscaling()) return false; - if (hasAutoscaling()) { - if (!getAutoscaling() - .equals(other.getAutoscaling())) return false; - } - if (hasNetworkConfig() != other.hasNetworkConfig()) return false; - if (hasNetworkConfig()) { - if (!getNetworkConfig() - .equals(other.getNetworkConfig())) return false; - } - if (getPrivateCluster() - != other.getPrivateCluster()) return false; - if (!getMasterIpv4CidrBlock() - .equals(other.getMasterIpv4CidrBlock())) return false; - if (hasDefaultMaxPodsConstraint() != other.hasDefaultMaxPodsConstraint()) return false; - if (hasDefaultMaxPodsConstraint()) { - if (!getDefaultMaxPodsConstraint() - .equals(other.getDefaultMaxPodsConstraint())) return false; - } - if (hasResourceUsageExportConfig() != other.hasResourceUsageExportConfig()) return false; - if (hasResourceUsageExportConfig()) { - if (!getResourceUsageExportConfig() - .equals(other.getResourceUsageExportConfig())) return false; - } - if (hasAuthenticatorGroupsConfig() != other.hasAuthenticatorGroupsConfig()) return false; - if (hasAuthenticatorGroupsConfig()) { - if (!getAuthenticatorGroupsConfig() - .equals(other.getAuthenticatorGroupsConfig())) return false; - } - if (hasPrivateClusterConfig() != other.hasPrivateClusterConfig()) return false; - if (hasPrivateClusterConfig()) { - if (!getPrivateClusterConfig() - .equals(other.getPrivateClusterConfig())) return false; - } - if (hasVerticalPodAutoscaling() != other.hasVerticalPodAutoscaling()) return false; - if (hasVerticalPodAutoscaling()) { - if (!getVerticalPodAutoscaling() - .equals(other.getVerticalPodAutoscaling())) return false; - } - if (hasShieldedNodes() != other.hasShieldedNodes()) return false; - if (hasShieldedNodes()) { - if (!getShieldedNodes() - .equals(other.getShieldedNodes())) return false; - } - if (hasReleaseChannel() != other.hasReleaseChannel()) return false; - if (hasReleaseChannel()) { - if (!getReleaseChannel() - .equals(other.getReleaseChannel())) return false; - } - if (hasWorkloadIdentityConfig() != other.hasWorkloadIdentityConfig()) return false; - if (hasWorkloadIdentityConfig()) { - if (!getWorkloadIdentityConfig() - .equals(other.getWorkloadIdentityConfig())) return false; - } - if (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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + INITIAL_NODE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getInitialNodeCount(); - if (hasNodeConfig()) { - hash = (37 * hash) + NODE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getNodeConfig().hashCode(); - } - if (hasMasterAuth()) { - hash = (37 * hash) + MASTER_AUTH_FIELD_NUMBER; - hash = (53 * hash) + getMasterAuth().hashCode(); - } - hash = (37 * hash) + LOGGING_SERVICE_FIELD_NUMBER; - hash = (53 * hash) + getLoggingService().hashCode(); - hash = (37 * hash) + MONITORING_SERVICE_FIELD_NUMBER; - hash = (53 * hash) + getMonitoringService().hashCode(); - hash = (37 * hash) + NETWORK_FIELD_NUMBER; - hash = (53 * hash) + getNetwork().hashCode(); - hash = (37 * hash) + CLUSTER_IPV4_CIDR_FIELD_NUMBER; - hash = (53 * hash) + getClusterIpv4Cidr().hashCode(); - if (hasAddonsConfig()) { - hash = (37 * hash) + ADDONS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getAddonsConfig().hashCode(); - } - hash = (37 * hash) + SUBNETWORK_FIELD_NUMBER; - hash = (53 * hash) + getSubnetwork().hashCode(); - if (getNodePoolsCount() > 0) { - hash = (37 * hash) + NODE_POOLS_FIELD_NUMBER; - hash = (53 * hash) + getNodePoolsList().hashCode(); - } - if (getLocationsCount() > 0) { - hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; - hash = (53 * hash) + getLocationsList().hashCode(); - } - hash = (37 * hash) + ENABLE_KUBERNETES_ALPHA_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableKubernetesAlpha()); - if (!internalGetResourceLabels().getMap().isEmpty()) { - hash = (37 * hash) + RESOURCE_LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetResourceLabels().hashCode(); - } - hash = (37 * hash) + LABEL_FINGERPRINT_FIELD_NUMBER; - hash = (53 * hash) + getLabelFingerprint().hashCode(); - if (hasLegacyAbac()) { - hash = (37 * hash) + LEGACY_ABAC_FIELD_NUMBER; - hash = (53 * hash) + getLegacyAbac().hashCode(); - } - if (hasNetworkPolicy()) { - hash = (37 * hash) + NETWORK_POLICY_FIELD_NUMBER; - hash = (53 * hash) + getNetworkPolicy().hashCode(); - } - if (hasIpAllocationPolicy()) { - hash = (37 * hash) + IP_ALLOCATION_POLICY_FIELD_NUMBER; - hash = (53 * hash) + getIpAllocationPolicy().hashCode(); - } - if (hasMasterAuthorizedNetworksConfig()) { - hash = (37 * hash) + MASTER_AUTHORIZED_NETWORKS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getMasterAuthorizedNetworksConfig().hashCode(); - } - if (hasMaintenancePolicy()) { - hash = (37 * hash) + MAINTENANCE_POLICY_FIELD_NUMBER; - hash = (53 * hash) + getMaintenancePolicy().hashCode(); - } - if (hasBinaryAuthorization()) { - hash = (37 * hash) + BINARY_AUTHORIZATION_FIELD_NUMBER; - hash = (53 * hash) + getBinaryAuthorization().hashCode(); - } - if (hasPodSecurityPolicyConfig()) { - hash = (37 * hash) + POD_SECURITY_POLICY_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getPodSecurityPolicyConfig().hashCode(); - } - if (hasAutoscaling()) { - hash = (37 * hash) + AUTOSCALING_FIELD_NUMBER; - hash = (53 * hash) + getAutoscaling().hashCode(); - } - if (hasNetworkConfig()) { - hash = (37 * hash) + NETWORK_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getNetworkConfig().hashCode(); - } - hash = (37 * hash) + PRIVATE_CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPrivateCluster()); - hash = (37 * hash) + MASTER_IPV4_CIDR_BLOCK_FIELD_NUMBER; - hash = (53 * hash) + getMasterIpv4CidrBlock().hashCode(); - if (hasDefaultMaxPodsConstraint()) { - hash = (37 * hash) + DEFAULT_MAX_PODS_CONSTRAINT_FIELD_NUMBER; - hash = (53 * hash) + getDefaultMaxPodsConstraint().hashCode(); - } - if (hasResourceUsageExportConfig()) { - hash = (37 * hash) + RESOURCE_USAGE_EXPORT_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getResourceUsageExportConfig().hashCode(); - } - if (hasAuthenticatorGroupsConfig()) { - hash = (37 * hash) + AUTHENTICATOR_GROUPS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getAuthenticatorGroupsConfig().hashCode(); - } - if (hasPrivateClusterConfig()) { - hash = (37 * hash) + PRIVATE_CLUSTER_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getPrivateClusterConfig().hashCode(); - } - if (hasVerticalPodAutoscaling()) { - hash = (37 * hash) + VERTICAL_POD_AUTOSCALING_FIELD_NUMBER; - hash = (53 * hash) + getVerticalPodAutoscaling().hashCode(); - } - if (hasShieldedNodes()) { - hash = (37 * hash) + SHIELDED_NODES_FIELD_NUMBER; - hash = (53 * hash) + getShieldedNodes().hashCode(); - } - if (hasReleaseChannel()) { - hash = (37 * hash) + RELEASE_CHANNEL_FIELD_NUMBER; - hash = (53 * hash) + getReleaseChannel().hashCode(); - } - if (hasWorkloadIdentityConfig()) { - hash = (37 * hash) + WORKLOAD_IDENTITY_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getWorkloadIdentityConfig().hashCode(); - } - if (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 = (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.MapField internalGetMapField( - int number) { - switch (number) { - case 15: - return internalGetResourceLabels(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 15: - return internalGetMutableResourceLabels(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Cluster_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.Cluster.class, com.google.container.v1beta1.Cluster.Builder.class); - } - - // Construct using com.google.container.v1beta1.Cluster.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getNodePoolsFieldBuilder(); - getConditionsFieldBuilder(); - getNodePoolDefaultsFieldBuilder(); - getProtectConfigFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - description_ = ""; - - initialNodeCount_ = 0; - - if (nodeConfigBuilder_ == null) { - nodeConfig_ = null; - } else { - nodeConfig_ = null; - nodeConfigBuilder_ = null; - } - if (masterAuthBuilder_ == null) { - masterAuth_ = null; - } else { - masterAuth_ = null; - masterAuthBuilder_ = null; - } - loggingService_ = ""; - - monitoringService_ = ""; - - network_ = ""; - - clusterIpv4Cidr_ = ""; - - if (addonsConfigBuilder_ == null) { - addonsConfig_ = null; - } else { - addonsConfig_ = null; - addonsConfigBuilder_ = null; - } - subnetwork_ = ""; - - if (nodePoolsBuilder_ == null) { - nodePools_ = java.util.Collections.emptyList(); - } else { - nodePools_ = null; - nodePoolsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - enableKubernetesAlpha_ = false; - - internalGetMutableResourceLabels().clear(); - labelFingerprint_ = ""; - - if (legacyAbacBuilder_ == null) { - legacyAbac_ = null; - } else { - legacyAbac_ = null; - legacyAbacBuilder_ = null; - } - if (networkPolicyBuilder_ == null) { - networkPolicy_ = null; - } else { - networkPolicy_ = null; - networkPolicyBuilder_ = null; - } - if (ipAllocationPolicyBuilder_ == null) { - ipAllocationPolicy_ = null; - } else { - ipAllocationPolicy_ = null; - ipAllocationPolicyBuilder_ = null; - } - if (masterAuthorizedNetworksConfigBuilder_ == null) { - masterAuthorizedNetworksConfig_ = null; - } else { - masterAuthorizedNetworksConfig_ = null; - masterAuthorizedNetworksConfigBuilder_ = null; - } - if (maintenancePolicyBuilder_ == null) { - maintenancePolicy_ = null; - } else { - maintenancePolicy_ = null; - maintenancePolicyBuilder_ = null; - } - if (binaryAuthorizationBuilder_ == null) { - binaryAuthorization_ = null; - } else { - binaryAuthorization_ = null; - binaryAuthorizationBuilder_ = null; - } - if (podSecurityPolicyConfigBuilder_ == null) { - podSecurityPolicyConfig_ = null; - } else { - podSecurityPolicyConfig_ = null; - podSecurityPolicyConfigBuilder_ = null; - } - if (autoscalingBuilder_ == null) { - autoscaling_ = null; - } else { - autoscaling_ = null; - autoscalingBuilder_ = null; - } - if (networkConfigBuilder_ == null) { - networkConfig_ = null; - } else { - networkConfig_ = null; - networkConfigBuilder_ = null; - } - privateCluster_ = false; - - masterIpv4CidrBlock_ = ""; - - if (defaultMaxPodsConstraintBuilder_ == null) { - defaultMaxPodsConstraint_ = null; - } else { - defaultMaxPodsConstraint_ = null; - defaultMaxPodsConstraintBuilder_ = null; - } - if (resourceUsageExportConfigBuilder_ == null) { - resourceUsageExportConfig_ = null; - } else { - resourceUsageExportConfig_ = null; - resourceUsageExportConfigBuilder_ = null; - } - if (authenticatorGroupsConfigBuilder_ == null) { - authenticatorGroupsConfig_ = null; - } else { - authenticatorGroupsConfig_ = null; - authenticatorGroupsConfigBuilder_ = null; - } - if (privateClusterConfigBuilder_ == null) { - privateClusterConfig_ = null; - } else { - privateClusterConfig_ = null; - privateClusterConfigBuilder_ = null; - } - if (verticalPodAutoscalingBuilder_ == null) { - verticalPodAutoscaling_ = null; - } else { - verticalPodAutoscaling_ = null; - verticalPodAutoscalingBuilder_ = null; - } - if (shieldedNodesBuilder_ == null) { - shieldedNodes_ = null; - } else { - shieldedNodes_ = null; - shieldedNodesBuilder_ = null; - } - if (releaseChannelBuilder_ == null) { - releaseChannel_ = null; - } else { - releaseChannel_ = null; - releaseChannelBuilder_ = null; - } - if (workloadIdentityConfigBuilder_ == null) { - workloadIdentityConfig_ = null; - } else { - workloadIdentityConfig_ = null; - workloadIdentityConfigBuilder_ = null; - } - if (workloadCertificatesBuilder_ == null) { - workloadCertificates_ = null; - } else { - workloadCertificates_ = null; - workloadCertificatesBuilder_ = null; - } - if (meshCertificatesBuilder_ == null) { - meshCertificates_ = null; - } else { - meshCertificates_ = null; - meshCertificatesBuilder_ = null; - } - if (workloadAltsConfigBuilder_ == null) { - workloadAltsConfig_ = null; - } else { - workloadAltsConfig_ = null; - workloadAltsConfigBuilder_ = null; - } - if (costManagementConfigBuilder_ == null) { - costManagementConfig_ = null; - } else { - costManagementConfig_ = null; - costManagementConfigBuilder_ = null; - } - if (clusterTelemetryBuilder_ == null) { - clusterTelemetry_ = null; - } else { - clusterTelemetry_ = null; - clusterTelemetryBuilder_ = null; - } - if (tpuConfigBuilder_ == null) { - tpuConfig_ = null; - } else { - tpuConfig_ = null; - tpuConfigBuilder_ = null; - } - if (notificationConfigBuilder_ == null) { - notificationConfig_ = null; - } else { - notificationConfig_ = null; - notificationConfigBuilder_ = null; - } - if (confidentialNodesBuilder_ == null) { - confidentialNodes_ = null; - } else { - confidentialNodes_ = null; - confidentialNodesBuilder_ = null; - } - if (identityServiceConfigBuilder_ == null) { - identityServiceConfig_ = null; - } else { - identityServiceConfig_ = null; - identityServiceConfigBuilder_ = null; - } - selfLink_ = ""; - - zone_ = ""; - - endpoint_ = ""; - - initialClusterVersion_ = ""; - - currentMasterVersion_ = ""; - - currentNodeVersion_ = ""; - - createTime_ = ""; - - status_ = 0; - - statusMessage_ = ""; - - nodeIpv4CidrSize_ = 0; - - servicesIpv4Cidr_ = ""; - - instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - currentNodeCount_ = 0; - - expireTime_ = ""; - - location_ = ""; - - enableTpu_ = false; - - tpuIpv4CidrBlock_ = ""; - - if (databaseEncryptionBuilder_ == null) { - databaseEncryption_ = null; - } else { - databaseEncryption_ = null; - databaseEncryptionBuilder_ = null; - } - if (conditionsBuilder_ == null) { - conditions_ = java.util.Collections.emptyList(); - } else { - conditions_ = null; - conditionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - if (masterBuilder_ == null) { - master_ = null; - } else { - master_ = null; - masterBuilder_ = null; - } - if (autopilotBuilder_ == null) { - autopilot_ = null; - } else { - autopilot_ = null; - autopilotBuilder_ = null; - } - id_ = ""; - - if (nodePoolDefaultsBuilder_ == null) { - nodePoolDefaults_ = null; - } else { - nodePoolDefaultsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - if (monitoringConfigBuilder_ == null) { - monitoringConfig_ = null; - } else { - monitoringConfig_ = null; - monitoringConfigBuilder_ = null; - } - if (nodePoolAutoConfigBuilder_ == null) { - nodePoolAutoConfig_ = null; - } else { - nodePoolAutoConfig_ = null; - nodePoolAutoConfigBuilder_ = null; - } - if (protectConfigBuilder_ == null) { - protectConfig_ = null; - } else { - protectConfigBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000040); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Cluster_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.Cluster getDefaultInstanceForType() { - return com.google.container.v1beta1.Cluster.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.Cluster build() { - com.google.container.v1beta1.Cluster result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.Cluster buildPartial() { - com.google.container.v1beta1.Cluster result = new com.google.container.v1beta1.Cluster(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.name_ = name_; - result.description_ = description_; - result.initialNodeCount_ = initialNodeCount_; - if (nodeConfigBuilder_ == null) { - result.nodeConfig_ = nodeConfig_; - } else { - result.nodeConfig_ = nodeConfigBuilder_.build(); - } - if (masterAuthBuilder_ == null) { - result.masterAuth_ = masterAuth_; - } else { - result.masterAuth_ = masterAuthBuilder_.build(); - } - result.loggingService_ = loggingService_; - result.monitoringService_ = monitoringService_; - result.network_ = network_; - result.clusterIpv4Cidr_ = clusterIpv4Cidr_; - if (addonsConfigBuilder_ == null) { - result.addonsConfig_ = addonsConfig_; - } else { - result.addonsConfig_ = addonsConfigBuilder_.build(); - } - result.subnetwork_ = subnetwork_; - if (nodePoolsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - nodePools_ = java.util.Collections.unmodifiableList(nodePools_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.nodePools_ = nodePools_; - } else { - result.nodePools_ = nodePoolsBuilder_.build(); - } - if (((bitField0_ & 0x00000002) != 0)) { - locations_ = locations_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.locations_ = locations_; - result.enableKubernetesAlpha_ = enableKubernetesAlpha_; - result.resourceLabels_ = internalGetResourceLabels(); - result.resourceLabels_.makeImmutable(); - result.labelFingerprint_ = labelFingerprint_; - if (legacyAbacBuilder_ == null) { - result.legacyAbac_ = legacyAbac_; - } else { - result.legacyAbac_ = legacyAbacBuilder_.build(); - } - if (networkPolicyBuilder_ == null) { - result.networkPolicy_ = networkPolicy_; - } else { - result.networkPolicy_ = networkPolicyBuilder_.build(); - } - if (ipAllocationPolicyBuilder_ == null) { - result.ipAllocationPolicy_ = ipAllocationPolicy_; - } else { - result.ipAllocationPolicy_ = ipAllocationPolicyBuilder_.build(); - } - if (masterAuthorizedNetworksConfigBuilder_ == null) { - result.masterAuthorizedNetworksConfig_ = masterAuthorizedNetworksConfig_; - } else { - result.masterAuthorizedNetworksConfig_ = masterAuthorizedNetworksConfigBuilder_.build(); - } - if (maintenancePolicyBuilder_ == null) { - result.maintenancePolicy_ = maintenancePolicy_; - } else { - result.maintenancePolicy_ = maintenancePolicyBuilder_.build(); - } - if (binaryAuthorizationBuilder_ == null) { - result.binaryAuthorization_ = binaryAuthorization_; - } else { - result.binaryAuthorization_ = binaryAuthorizationBuilder_.build(); - } - if (podSecurityPolicyConfigBuilder_ == null) { - result.podSecurityPolicyConfig_ = podSecurityPolicyConfig_; - } else { - result.podSecurityPolicyConfig_ = podSecurityPolicyConfigBuilder_.build(); - } - if (autoscalingBuilder_ == null) { - result.autoscaling_ = autoscaling_; - } else { - result.autoscaling_ = autoscalingBuilder_.build(); - } - if (networkConfigBuilder_ == null) { - result.networkConfig_ = networkConfig_; - } else { - result.networkConfig_ = networkConfigBuilder_.build(); - } - result.privateCluster_ = privateCluster_; - result.masterIpv4CidrBlock_ = masterIpv4CidrBlock_; - if (defaultMaxPodsConstraintBuilder_ == null) { - result.defaultMaxPodsConstraint_ = defaultMaxPodsConstraint_; - } else { - result.defaultMaxPodsConstraint_ = defaultMaxPodsConstraintBuilder_.build(); - } - if (resourceUsageExportConfigBuilder_ == null) { - result.resourceUsageExportConfig_ = resourceUsageExportConfig_; - } else { - result.resourceUsageExportConfig_ = resourceUsageExportConfigBuilder_.build(); - } - if (authenticatorGroupsConfigBuilder_ == null) { - result.authenticatorGroupsConfig_ = authenticatorGroupsConfig_; - } else { - result.authenticatorGroupsConfig_ = authenticatorGroupsConfigBuilder_.build(); - } - if (privateClusterConfigBuilder_ == null) { - result.privateClusterConfig_ = privateClusterConfig_; - } else { - result.privateClusterConfig_ = privateClusterConfigBuilder_.build(); - } - if (verticalPodAutoscalingBuilder_ == null) { - result.verticalPodAutoscaling_ = verticalPodAutoscaling_; - } else { - result.verticalPodAutoscaling_ = verticalPodAutoscalingBuilder_.build(); - } - if (shieldedNodesBuilder_ == null) { - result.shieldedNodes_ = shieldedNodes_; - } else { - result.shieldedNodes_ = shieldedNodesBuilder_.build(); - } - if (releaseChannelBuilder_ == null) { - result.releaseChannel_ = releaseChannel_; - } else { - result.releaseChannel_ = releaseChannelBuilder_.build(); - } - if (workloadIdentityConfigBuilder_ == null) { - result.workloadIdentityConfig_ = workloadIdentityConfig_; - } else { - result.workloadIdentityConfig_ = workloadIdentityConfigBuilder_.build(); - } - if (workloadCertificatesBuilder_ == null) { - result.workloadCertificates_ = workloadCertificates_; - } else { - result.workloadCertificates_ = workloadCertificatesBuilder_.build(); - } - if (meshCertificatesBuilder_ == null) { - result.meshCertificates_ = meshCertificates_; - } else { - result.meshCertificates_ = meshCertificatesBuilder_.build(); - } - if (workloadAltsConfigBuilder_ == null) { - result.workloadAltsConfig_ = workloadAltsConfig_; - } else { - result.workloadAltsConfig_ = workloadAltsConfigBuilder_.build(); - } - if (costManagementConfigBuilder_ == null) { - result.costManagementConfig_ = costManagementConfig_; - } else { - result.costManagementConfig_ = costManagementConfigBuilder_.build(); - } - if (clusterTelemetryBuilder_ == null) { - result.clusterTelemetry_ = clusterTelemetry_; - } else { - result.clusterTelemetry_ = clusterTelemetryBuilder_.build(); - } - if (tpuConfigBuilder_ == null) { - result.tpuConfig_ = tpuConfig_; - } else { - result.tpuConfig_ = tpuConfigBuilder_.build(); - } - if (notificationConfigBuilder_ == null) { - result.notificationConfig_ = notificationConfig_; - } else { - result.notificationConfig_ = notificationConfigBuilder_.build(); - } - if (confidentialNodesBuilder_ == null) { - result.confidentialNodes_ = confidentialNodes_; - } else { - result.confidentialNodes_ = confidentialNodesBuilder_.build(); - } - if (identityServiceConfigBuilder_ == null) { - result.identityServiceConfig_ = identityServiceConfig_; - } else { - result.identityServiceConfig_ = identityServiceConfigBuilder_.build(); - } - result.selfLink_ = selfLink_; - result.zone_ = zone_; - result.endpoint_ = endpoint_; - result.initialClusterVersion_ = initialClusterVersion_; - result.currentMasterVersion_ = currentMasterVersion_; - result.currentNodeVersion_ = currentNodeVersion_; - result.createTime_ = createTime_; - result.status_ = status_; - result.statusMessage_ = statusMessage_; - result.nodeIpv4CidrSize_ = nodeIpv4CidrSize_; - result.servicesIpv4Cidr_ = servicesIpv4Cidr_; - if (((bitField0_ & 0x00000008) != 0)) { - instanceGroupUrls_ = instanceGroupUrls_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.instanceGroupUrls_ = instanceGroupUrls_; - result.currentNodeCount_ = currentNodeCount_; - result.expireTime_ = expireTime_; - result.location_ = location_; - result.enableTpu_ = enableTpu_; - result.tpuIpv4CidrBlock_ = tpuIpv4CidrBlock_; - if (databaseEncryptionBuilder_ == null) { - result.databaseEncryption_ = databaseEncryption_; - } else { - result.databaseEncryption_ = databaseEncryptionBuilder_.build(); - } - if (conditionsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - conditions_ = java.util.Collections.unmodifiableList(conditions_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.conditions_ = conditions_; - } else { - result.conditions_ = conditionsBuilder_.build(); - } - if (masterBuilder_ == null) { - result.master_ = master_; - } else { - result.master_ = masterBuilder_.build(); - } - if (autopilotBuilder_ == null) { - result.autopilot_ = autopilot_; - } else { - result.autopilot_ = autopilotBuilder_.build(); - } - result.id_ = id_; - if (((from_bitField0_ & 0x00000020) != 0)) { - if (nodePoolDefaultsBuilder_ == null) { - result.nodePoolDefaults_ = nodePoolDefaults_; - } else { - result.nodePoolDefaults_ = nodePoolDefaultsBuilder_.build(); - } - to_bitField0_ |= 0x00000001; - } - if (loggingConfigBuilder_ == null) { - result.loggingConfig_ = loggingConfig_; - } else { - result.loggingConfig_ = loggingConfigBuilder_.build(); - } - if (monitoringConfigBuilder_ == null) { - result.monitoringConfig_ = monitoringConfig_; - } else { - result.monitoringConfig_ = monitoringConfigBuilder_.build(); - } - if (nodePoolAutoConfigBuilder_ == null) { - result.nodePoolAutoConfig_ = nodePoolAutoConfig_; - } else { - result.nodePoolAutoConfig_ = nodePoolAutoConfigBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) != 0)) { - if (protectConfigBuilder_ == null) { - result.protectConfig_ = protectConfig_; - } else { - result.protectConfig_ = protectConfigBuilder_.build(); - } - to_bitField0_ |= 0x00000002; - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.Cluster) { - return mergeFrom((com.google.container.v1beta1.Cluster)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.Cluster other) { - if (other == com.google.container.v1beta1.Cluster.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (other.getInitialNodeCount() != 0) { - setInitialNodeCount(other.getInitialNodeCount()); - } - if (other.hasNodeConfig()) { - mergeNodeConfig(other.getNodeConfig()); - } - if (other.hasMasterAuth()) { - mergeMasterAuth(other.getMasterAuth()); - } - if (!other.getLoggingService().isEmpty()) { - loggingService_ = other.loggingService_; - onChanged(); - } - if (!other.getMonitoringService().isEmpty()) { - monitoringService_ = other.monitoringService_; - onChanged(); - } - if (!other.getNetwork().isEmpty()) { - network_ = other.network_; - onChanged(); - } - if (!other.getClusterIpv4Cidr().isEmpty()) { - clusterIpv4Cidr_ = other.clusterIpv4Cidr_; - onChanged(); - } - if (other.hasAddonsConfig()) { - mergeAddonsConfig(other.getAddonsConfig()); - } - if (!other.getSubnetwork().isEmpty()) { - subnetwork_ = other.subnetwork_; - onChanged(); - } - if (nodePoolsBuilder_ == null) { - if (!other.nodePools_.isEmpty()) { - if (nodePools_.isEmpty()) { - nodePools_ = other.nodePools_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNodePoolsIsMutable(); - nodePools_.addAll(other.nodePools_); - } - onChanged(); - } - } else { - if (!other.nodePools_.isEmpty()) { - if (nodePoolsBuilder_.isEmpty()) { - nodePoolsBuilder_.dispose(); - nodePoolsBuilder_ = null; - nodePools_ = other.nodePools_; - bitField0_ = (bitField0_ & ~0x00000001); - nodePoolsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNodePoolsFieldBuilder() : null; - } else { - nodePoolsBuilder_.addAllMessages(other.nodePools_); - } - } - } - if (!other.locations_.isEmpty()) { - if (locations_.isEmpty()) { - locations_ = other.locations_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureLocationsIsMutable(); - locations_.addAll(other.locations_); - } - onChanged(); - } - if (other.getEnableKubernetesAlpha() != false) { - setEnableKubernetesAlpha(other.getEnableKubernetesAlpha()); - } - internalGetMutableResourceLabels().mergeFrom( - other.internalGetResourceLabels()); - if (!other.getLabelFingerprint().isEmpty()) { - labelFingerprint_ = other.labelFingerprint_; - onChanged(); - } - if (other.hasLegacyAbac()) { - mergeLegacyAbac(other.getLegacyAbac()); - } - if (other.hasNetworkPolicy()) { - mergeNetworkPolicy(other.getNetworkPolicy()); - } - if (other.hasIpAllocationPolicy()) { - mergeIpAllocationPolicy(other.getIpAllocationPolicy()); - } - if (other.hasMasterAuthorizedNetworksConfig()) { - mergeMasterAuthorizedNetworksConfig(other.getMasterAuthorizedNetworksConfig()); - } - if (other.hasMaintenancePolicy()) { - mergeMaintenancePolicy(other.getMaintenancePolicy()); - } - if (other.hasBinaryAuthorization()) { - mergeBinaryAuthorization(other.getBinaryAuthorization()); - } - if (other.hasPodSecurityPolicyConfig()) { - mergePodSecurityPolicyConfig(other.getPodSecurityPolicyConfig()); - } - if (other.hasAutoscaling()) { - mergeAutoscaling(other.getAutoscaling()); - } - if (other.hasNetworkConfig()) { - mergeNetworkConfig(other.getNetworkConfig()); - } - if (other.getPrivateCluster() != false) { - setPrivateCluster(other.getPrivateCluster()); - } - if (!other.getMasterIpv4CidrBlock().isEmpty()) { - masterIpv4CidrBlock_ = other.masterIpv4CidrBlock_; - onChanged(); - } - if (other.hasDefaultMaxPodsConstraint()) { - mergeDefaultMaxPodsConstraint(other.getDefaultMaxPodsConstraint()); - } - if (other.hasResourceUsageExportConfig()) { - mergeResourceUsageExportConfig(other.getResourceUsageExportConfig()); - } - if (other.hasAuthenticatorGroupsConfig()) { - mergeAuthenticatorGroupsConfig(other.getAuthenticatorGroupsConfig()); - } - if (other.hasPrivateClusterConfig()) { - mergePrivateClusterConfig(other.getPrivateClusterConfig()); - } - if (other.hasVerticalPodAutoscaling()) { - mergeVerticalPodAutoscaling(other.getVerticalPodAutoscaling()); - } - if (other.hasShieldedNodes()) { - mergeShieldedNodes(other.getShieldedNodes()); - } - if (other.hasReleaseChannel()) { - mergeReleaseChannel(other.getReleaseChannel()); - } - if (other.hasWorkloadIdentityConfig()) { - mergeWorkloadIdentityConfig(other.getWorkloadIdentityConfig()); - } - if (other.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_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getEndpoint().isEmpty()) { - endpoint_ = other.endpoint_; - onChanged(); - } - if (!other.getInitialClusterVersion().isEmpty()) { - initialClusterVersion_ = other.initialClusterVersion_; - onChanged(); - } - if (!other.getCurrentMasterVersion().isEmpty()) { - currentMasterVersion_ = other.currentMasterVersion_; - onChanged(); - } - if (!other.getCurrentNodeVersion().isEmpty()) { - currentNodeVersion_ = other.currentNodeVersion_; - onChanged(); - } - if (!other.getCreateTime().isEmpty()) { - createTime_ = other.createTime_; - onChanged(); - } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); - } - if (!other.getStatusMessage().isEmpty()) { - statusMessage_ = other.statusMessage_; - onChanged(); - } - if (other.getNodeIpv4CidrSize() != 0) { - setNodeIpv4CidrSize(other.getNodeIpv4CidrSize()); - } - if (!other.getServicesIpv4Cidr().isEmpty()) { - servicesIpv4Cidr_ = other.servicesIpv4Cidr_; - onChanged(); - } - if (!other.instanceGroupUrls_.isEmpty()) { - if (instanceGroupUrls_.isEmpty()) { - instanceGroupUrls_ = other.instanceGroupUrls_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureInstanceGroupUrlsIsMutable(); - instanceGroupUrls_.addAll(other.instanceGroupUrls_); - } - onChanged(); - } - if (other.getCurrentNodeCount() != 0) { - setCurrentNodeCount(other.getCurrentNodeCount()); - } - if (!other.getExpireTime().isEmpty()) { - expireTime_ = other.expireTime_; - onChanged(); - } - if (!other.getLocation().isEmpty()) { - location_ = other.location_; - onChanged(); - } - if (other.getEnableTpu() != false) { - setEnableTpu(other.getEnableTpu()); - } - if (!other.getTpuIpv4CidrBlock().isEmpty()) { - tpuIpv4CidrBlock_ = other.tpuIpv4CidrBlock_; - onChanged(); - } - if (other.hasDatabaseEncryption()) { - mergeDatabaseEncryption(other.getDatabaseEncryption()); - } - if (conditionsBuilder_ == null) { - if (!other.conditions_.isEmpty()) { - if (conditions_.isEmpty()) { - conditions_ = other.conditions_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureConditionsIsMutable(); - conditions_.addAll(other.conditions_); - } - onChanged(); - } - } else { - if (!other.conditions_.isEmpty()) { - if (conditionsBuilder_.isEmpty()) { - conditionsBuilder_.dispose(); - conditionsBuilder_ = null; - conditions_ = other.conditions_; - bitField0_ = (bitField0_ & ~0x00000010); - conditionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getConditionsFieldBuilder() : null; - } else { - conditionsBuilder_.addAllMessages(other.conditions_); - } - } - } - if (other.hasMaster()) { - mergeMaster(other.getMaster()); - } - if (other.hasAutopilot()) { - mergeAutopilot(other.getAutopilot()); - } - if (!other.getId().isEmpty()) { - id_ = other.id_; - onChanged(); - } - if (other.hasNodePoolDefaults()) { - mergeNodePoolDefaults(other.getNodePoolDefaults()); - } - if (other.hasLoggingConfig()) { - mergeLoggingConfig(other.getLoggingConfig()); - } - if (other.hasMonitoringConfig()) { - mergeMonitoringConfig(other.getMonitoringConfig()); - } - if (other.hasNodePoolAutoConfig()) { - mergeNodePoolAutoConfig(other.getNodePoolAutoConfig()); - } - if (other.hasProtectConfig()) { - mergeProtectConfig(other.getProtectConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - description_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: { - initialNodeCount_ = input.readInt32(); - - break; - } // case 24 - case 34: { - input.readMessage( - getNodeConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 34 - case 42: { - input.readMessage( - getMasterAuthFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 42 - case 50: { - loggingService_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 58: { - monitoringService_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 66: { - network_ = input.readStringRequireUtf8(); - - break; - } // case 66 - case 74: { - clusterIpv4Cidr_ = input.readStringRequireUtf8(); - - break; - } // case 74 - case 82: { - input.readMessage( - getAddonsConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 82 - case 90: { - subnetwork_ = input.readStringRequireUtf8(); - - 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(); - - break; - } // case 112 - case 122: { - com.google.protobuf.MapEntry - resourceLabels__ = input.readMessage( - ResourceLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableResourceLabels().getMutableMap().put( - resourceLabels__.getKey(), resourceLabels__.getValue()); - break; - } // case 122 - case 130: { - labelFingerprint_ = input.readStringRequireUtf8(); - - break; - } // case 130 - case 146: { - input.readMessage( - getLegacyAbacFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 146 - case 154: { - input.readMessage( - getNetworkPolicyFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 154 - case 162: { - input.readMessage( - getIpAllocationPolicyFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 162 - case 178: { - input.readMessage( - getMasterAuthorizedNetworksConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 178 - case 186: { - input.readMessage( - getMaintenancePolicyFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 186 - case 194: { - input.readMessage( - getBinaryAuthorizationFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 194 - case 202: { - input.readMessage( - getPodSecurityPolicyConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 202 - case 210: { - input.readMessage( - getAutoscalingFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 210 - case 218: { - input.readMessage( - getNetworkConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 218 - case 224: { - privateCluster_ = input.readBool(); - - break; - } // case 224 - case 234: { - masterIpv4CidrBlock_ = input.readStringRequireUtf8(); - - break; - } // case 234 - case 242: { - input.readMessage( - getDefaultMaxPodsConstraintFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 242 - case 266: { - input.readMessage( - getResourceUsageExportConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 266 - case 274: { - input.readMessage( - getAuthenticatorGroupsConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 274 - case 298: { - input.readMessage( - getPrivateClusterConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 298 - case 306: { - input.readMessage( - getDatabaseEncryptionFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 306 - case 314: { - input.readMessage( - getVerticalPodAutoscalingFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 314 - case 322: { - input.readMessage( - getShieldedNodesFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 322 - case 330: { - input.readMessage( - getReleaseChannelFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 330 - case 346: { - input.readMessage( - getWorkloadIdentityConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 346 - case 362: { - input.readMessage( - getCostManagementConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 362 - case 370: { - input.readMessage( - getClusterTelemetryFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 370 - case 378: { - input.readMessage( - getTpuConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 378 - case 394: { - input.readMessage( - getNotificationConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 394 - case 402: { - input.readMessage( - getConfidentialNodesFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 402 - case 418: { - input.readMessage( - getWorkloadCertificatesFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 418 - case 426: { - input.readMessage( - getWorkloadAltsConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 426 - case 434: { - input.readMessage( - getIdentityServiceConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 434 - case 538: { - input.readMessage( - getMeshCertificatesFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 538 - case 802: { - selfLink_ = input.readStringRequireUtf8(); - - break; - } // case 802 - case 810: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 810 - case 818: { - endpoint_ = input.readStringRequireUtf8(); - - break; - } // case 818 - case 826: { - initialClusterVersion_ = input.readStringRequireUtf8(); - - break; - } // case 826 - case 834: { - currentMasterVersion_ = input.readStringRequireUtf8(); - - break; - } // case 834 - case 842: { - currentNodeVersion_ = input.readStringRequireUtf8(); - - break; - } // case 842 - case 850: { - createTime_ = input.readStringRequireUtf8(); - - break; - } // case 850 - case 856: { - status_ = input.readEnum(); - - break; - } // case 856 - case 866: { - statusMessage_ = input.readStringRequireUtf8(); - - break; - } // case 866 - case 872: { - nodeIpv4CidrSize_ = input.readInt32(); - - break; - } // case 872 - case 882: { - servicesIpv4Cidr_ = input.readStringRequireUtf8(); - - break; - } // case 882 - case 890: { - java.lang.String s = input.readStringRequireUtf8(); - ensureInstanceGroupUrlsIsMutable(); - instanceGroupUrls_.add(s); - break; - } // case 890 - case 896: { - currentNodeCount_ = input.readInt32(); - - break; - } // case 896 - case 906: { - expireTime_ = input.readStringRequireUtf8(); - - break; - } // case 906 - case 914: { - location_ = input.readStringRequireUtf8(); - - break; - } // case 914 - case 920: { - enableTpu_ = input.readBool(); - - break; - } // case 920 - case 930: { - tpuIpv4CidrBlock_ = input.readStringRequireUtf8(); - - 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); - - break; - } // case 994 - case 1026: { - input.readMessage( - getAutopilotFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 1026 - case 1034: { - id_ = input.readStringRequireUtf8(); - - break; - } // case 1034 - case 1050: { - input.readMessage( - getNodePoolDefaultsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 1050 - case 1058: { - input.readMessage( - getLoggingConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 1058 - case 1066: { - input.readMessage( - getMonitoringConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 1066 - case 1090: { - input.readMessage( - getNodePoolAutoConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 1090 - case 1098: { - input.readMessage( - getProtectConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 1098 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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 this cluster. The name must be unique within this project
-     * and location (e.g. zone or region), and can be up to 40 characters with
-     * the following restrictions:
-     * * Lowercase letters, numbers, and hyphens only.
-     * * Must start with a letter.
-     * * Must end with a number or a letter.
-     * 
- * - * string name = 1; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name of this cluster. The name must be unique within this project
-     * and location (e.g. zone or region), and can be up to 40 characters with
-     * the following restrictions:
-     * * Lowercase letters, numbers, and hyphens only.
-     * * Must start with a letter.
-     * * Must end with a number or a letter.
-     * 
- * - * string name = 1; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name of this cluster. The name must be unique within this project
-     * and location (e.g. zone or region), and can be up to 40 characters with
-     * the following restrictions:
-     * * Lowercase letters, numbers, and hyphens only.
-     * * Must start with a letter.
-     * * Must end with a number or a letter.
-     * 
- * - * string name = 1; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name of this cluster. The name must be unique within this project
-     * and location (e.g. zone or region), and can be up to 40 characters with
-     * the following restrictions:
-     * * Lowercase letters, numbers, and hyphens only.
-     * * Must start with a letter.
-     * * Must end with a number or a letter.
-     * 
- * - * string name = 1; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name of this cluster. The name must be unique within this project
-     * and location (e.g. zone or region), and can be up to 40 characters with
-     * the following restrictions:
-     * * Lowercase letters, numbers, and hyphens only.
-     * * Must start with a letter.
-     * * Must end with a number or a letter.
-     * 
- * - * string name = 1; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - *
-     * An optional description of this cluster.
-     * 
- * - * string description = 2; - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * An optional description of this cluster.
-     * 
- * - * string description = 2; - * @return The bytes for description. - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * An optional description of this cluster.
-     * 
- * - * string description = 2; - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - *
-     * An optional description of this cluster.
-     * 
- * - * string description = 2; - * @return This builder for chaining. - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - *
-     * An optional description of this cluster.
-     * 
- * - * string description = 2; - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private int initialNodeCount_ ; - /** - *
-     * The number of nodes to create in this cluster. You must ensure that your
-     * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
-     * is sufficient for this number of instances. You must also have available
-     * firewall and routes quota.
-     * For requests, this field should only be used in lieu of a
-     * "node_pool" object, since this configuration (along with the
-     * "node_config") will be used to create a "NodePool" object with an
-     * auto-generated name. Do not use this and a node_pool at the same time.
-     * This field is deprecated, use node_pool.initial_node_count instead.
-     * 
- * - * int32 initial_node_count = 3 [deprecated = true]; - * @deprecated google.container.v1beta1.Cluster.initial_node_count is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1578 - * @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=1578 - * @param value The initialNodeCount to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setInitialNodeCount(int value) { - - initialNodeCount_ = value; - onChanged(); - return this; - } - /** - *
-     * The number of nodes to create in this cluster. You must ensure that your
-     * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
-     * is sufficient for this number of instances. You must also have available
-     * firewall and routes quota.
-     * For requests, this field should only be used in lieu of a
-     * "node_pool" object, since this configuration (along with the
-     * "node_config") will be used to create a "NodePool" object with an
-     * auto-generated name. Do not use this and a node_pool at the same time.
-     * This field is deprecated, use node_pool.initial_node_count instead.
-     * 
- * - * int32 initial_node_count = 3 [deprecated = true]; - * @deprecated google.container.v1beta1.Cluster.initial_node_count is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1578 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearInitialNodeCount() { - - initialNodeCount_ = 0; - onChanged(); - return this; - } - - private com.google.container.v1beta1.NodeConfig nodeConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeConfig, com.google.container.v1beta1.NodeConfig.Builder, com.google.container.v1beta1.NodeConfigOrBuilder> nodeConfigBuilder_; - /** - *
-     * Parameters used in creating the cluster's nodes.
-     * For requests, this field should only be used in lieu of a
-     * "node_pool" object, since this configuration (along with the
-     * "initial_node_count") will be used to create a "NodePool" object with an
-     * auto-generated name. Do not use this and a node_pool at the same time.
-     * For responses, this field will be populated with the node configuration of
-     * the first node pool. (For configuration of each node pool, see
-     * `node_pool.config`)
-     * If unspecified, the defaults are used.
-     * This field is deprecated, use node_pool.config instead.
-     * 
- * - * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; - * @deprecated google.container.v1beta1.Cluster.node_config is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1591 - * @return Whether the nodeConfig field is set. - */ - @java.lang.Deprecated public boolean hasNodeConfig() { - return nodeConfigBuilder_ != null || nodeConfig_ != null; - } - /** - *
-     * Parameters used in creating the cluster's nodes.
-     * For requests, this field should only be used in lieu of a
-     * "node_pool" object, since this configuration (along with the
-     * "initial_node_count") will be used to create a "NodePool" object with an
-     * auto-generated name. Do not use this and a node_pool at the same time.
-     * For responses, this field will be populated with the node configuration of
-     * the first node pool. (For configuration of each node pool, see
-     * `node_pool.config`)
-     * If unspecified, the defaults are used.
-     * This field is deprecated, use node_pool.config instead.
-     * 
- * - * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; - * @deprecated google.container.v1beta1.Cluster.node_config is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1591 - * @return The nodeConfig. - */ - @java.lang.Deprecated public com.google.container.v1beta1.NodeConfig getNodeConfig() { - if (nodeConfigBuilder_ == null) { - return nodeConfig_ == null ? com.google.container.v1beta1.NodeConfig.getDefaultInstance() : nodeConfig_; - } else { - return nodeConfigBuilder_.getMessage(); - } - } - /** - *
-     * Parameters used in creating the cluster's nodes.
-     * For requests, this field should only be used in lieu of a
-     * "node_pool" object, since this configuration (along with the
-     * "initial_node_count") will be used to create a "NodePool" object with an
-     * auto-generated name. Do not use this and a node_pool at the same time.
-     * For responses, this field will be populated with the node configuration of
-     * the first node pool. (For configuration of each node pool, see
-     * `node_pool.config`)
-     * If unspecified, the defaults are used.
-     * This field is deprecated, use node_pool.config instead.
-     * 
- * - * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setNodeConfig(com.google.container.v1beta1.NodeConfig value) { - if (nodeConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nodeConfig_ = value; - onChanged(); - } else { - nodeConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Parameters used in creating the cluster's nodes.
-     * For requests, this field should only be used in lieu of a
-     * "node_pool" object, since this configuration (along with the
-     * "initial_node_count") will be used to create a "NodePool" object with an
-     * auto-generated name. Do not use this and a node_pool at the same time.
-     * For responses, this field will be populated with the node configuration of
-     * the first node pool. (For configuration of each node pool, see
-     * `node_pool.config`)
-     * If unspecified, the defaults are used.
-     * This field is deprecated, use node_pool.config instead.
-     * 
- * - * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setNodeConfig( - com.google.container.v1beta1.NodeConfig.Builder builderForValue) { - if (nodeConfigBuilder_ == null) { - nodeConfig_ = builderForValue.build(); - onChanged(); - } else { - nodeConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Parameters used in creating the cluster's nodes.
-     * For requests, this field should only be used in lieu of a
-     * "node_pool" object, since this configuration (along with the
-     * "initial_node_count") will be used to create a "NodePool" object with an
-     * auto-generated name. Do not use this and a node_pool at the same time.
-     * For responses, this field will be populated with the node configuration of
-     * the first node pool. (For configuration of each node pool, see
-     * `node_pool.config`)
-     * If unspecified, the defaults are used.
-     * This field is deprecated, use node_pool.config instead.
-     * 
- * - * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; - */ - @java.lang.Deprecated public Builder mergeNodeConfig(com.google.container.v1beta1.NodeConfig value) { - if (nodeConfigBuilder_ == null) { - if (nodeConfig_ != null) { - nodeConfig_ = - com.google.container.v1beta1.NodeConfig.newBuilder(nodeConfig_).mergeFrom(value).buildPartial(); - } else { - nodeConfig_ = value; - } - onChanged(); - } else { - nodeConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Parameters used in creating the cluster's nodes.
-     * For requests, this field should only be used in lieu of a
-     * "node_pool" object, since this configuration (along with the
-     * "initial_node_count") will be used to create a "NodePool" object with an
-     * auto-generated name. Do not use this and a node_pool at the same time.
-     * For responses, this field will be populated with the node configuration of
-     * the first node pool. (For configuration of each node pool, see
-     * `node_pool.config`)
-     * If unspecified, the defaults are used.
-     * This field is deprecated, use node_pool.config instead.
-     * 
- * - * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearNodeConfig() { - if (nodeConfigBuilder_ == null) { - nodeConfig_ = null; - onChanged(); - } else { - nodeConfig_ = null; - nodeConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Parameters used in creating the cluster's nodes.
-     * For requests, this field should only be used in lieu of a
-     * "node_pool" object, since this configuration (along with the
-     * "initial_node_count") will be used to create a "NodePool" object with an
-     * auto-generated name. Do not use this and a node_pool at the same time.
-     * For responses, this field will be populated with the node configuration of
-     * the first node pool. (For configuration of each node pool, see
-     * `node_pool.config`)
-     * If unspecified, the defaults are used.
-     * This field is deprecated, use node_pool.config instead.
-     * 
- * - * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.container.v1beta1.NodeConfig.Builder getNodeConfigBuilder() { - - onChanged(); - return getNodeConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Parameters used in creating the cluster's nodes.
-     * For requests, this field should only be used in lieu of a
-     * "node_pool" object, since this configuration (along with the
-     * "initial_node_count") will be used to create a "NodePool" object with an
-     * auto-generated name. Do not use this and a node_pool at the same time.
-     * For responses, this field will be populated with the node configuration of
-     * the first node pool. (For configuration of each node pool, see
-     * `node_pool.config`)
-     * If unspecified, the defaults are used.
-     * This field is deprecated, use node_pool.config instead.
-     * 
- * - * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.container.v1beta1.NodeConfigOrBuilder getNodeConfigOrBuilder() { - if (nodeConfigBuilder_ != null) { - return nodeConfigBuilder_.getMessageOrBuilder(); - } else { - return nodeConfig_ == null ? - com.google.container.v1beta1.NodeConfig.getDefaultInstance() : nodeConfig_; - } - } - /** - *
-     * Parameters used in creating the cluster's nodes.
-     * For requests, this field should only be used in lieu of a
-     * "node_pool" object, since this configuration (along with the
-     * "initial_node_count") will be used to create a "NodePool" object with an
-     * auto-generated name. Do not use this and a node_pool at the same time.
-     * For responses, this field will be populated with the node configuration of
-     * the first node pool. (For configuration of each node pool, see
-     * `node_pool.config`)
-     * If unspecified, the defaults are used.
-     * This field is deprecated, use node_pool.config instead.
-     * 
- * - * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeConfig, com.google.container.v1beta1.NodeConfig.Builder, com.google.container.v1beta1.NodeConfigOrBuilder> - getNodeConfigFieldBuilder() { - if (nodeConfigBuilder_ == null) { - nodeConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeConfig, com.google.container.v1beta1.NodeConfig.Builder, com.google.container.v1beta1.NodeConfigOrBuilder>( - getNodeConfig(), - getParentForChildren(), - isClean()); - nodeConfig_ = null; - } - return nodeConfigBuilder_; - } - - private com.google.container.v1beta1.MasterAuth masterAuth_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MasterAuth, com.google.container.v1beta1.MasterAuth.Builder, com.google.container.v1beta1.MasterAuthOrBuilder> masterAuthBuilder_; - /** - *
-     * The authentication information for accessing the master endpoint.
-     * If unspecified, the defaults are used:
-     * For clusters before v1.12, if master_auth is unspecified, `username` will
-     * be set to "admin", a random password will be generated, and a client
-     * certificate will be issued.
-     * 
- * - * .google.container.v1beta1.MasterAuth master_auth = 5; - * @return Whether the masterAuth field is set. - */ - public boolean hasMasterAuth() { - return masterAuthBuilder_ != null || masterAuth_ != null; - } - /** - *
-     * The authentication information for accessing the master endpoint.
-     * If unspecified, the defaults are used:
-     * For clusters before v1.12, if master_auth is unspecified, `username` will
-     * be set to "admin", a random password will be generated, and a client
-     * certificate will be issued.
-     * 
- * - * .google.container.v1beta1.MasterAuth master_auth = 5; - * @return The masterAuth. - */ - public com.google.container.v1beta1.MasterAuth getMasterAuth() { - if (masterAuthBuilder_ == null) { - return masterAuth_ == null ? com.google.container.v1beta1.MasterAuth.getDefaultInstance() : masterAuth_; - } else { - return masterAuthBuilder_.getMessage(); - } - } - /** - *
-     * The authentication information for accessing the master endpoint.
-     * If unspecified, the defaults are used:
-     * For clusters before v1.12, if master_auth is unspecified, `username` will
-     * be set to "admin", a random password will be generated, and a client
-     * certificate will be issued.
-     * 
- * - * .google.container.v1beta1.MasterAuth master_auth = 5; - */ - public Builder setMasterAuth(com.google.container.v1beta1.MasterAuth value) { - if (masterAuthBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - masterAuth_ = value; - onChanged(); - } else { - masterAuthBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The authentication information for accessing the master endpoint.
-     * If unspecified, the defaults are used:
-     * For clusters before v1.12, if master_auth is unspecified, `username` will
-     * be set to "admin", a random password will be generated, and a client
-     * certificate will be issued.
-     * 
- * - * .google.container.v1beta1.MasterAuth master_auth = 5; - */ - public Builder setMasterAuth( - com.google.container.v1beta1.MasterAuth.Builder builderForValue) { - if (masterAuthBuilder_ == null) { - masterAuth_ = builderForValue.build(); - onChanged(); - } else { - masterAuthBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The authentication information for accessing the master endpoint.
-     * If unspecified, the defaults are used:
-     * For clusters before v1.12, if master_auth is unspecified, `username` will
-     * be set to "admin", a random password will be generated, and a client
-     * certificate will be issued.
-     * 
- * - * .google.container.v1beta1.MasterAuth master_auth = 5; - */ - public Builder mergeMasterAuth(com.google.container.v1beta1.MasterAuth value) { - if (masterAuthBuilder_ == null) { - if (masterAuth_ != null) { - masterAuth_ = - com.google.container.v1beta1.MasterAuth.newBuilder(masterAuth_).mergeFrom(value).buildPartial(); - } else { - masterAuth_ = value; - } - onChanged(); - } else { - masterAuthBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The authentication information for accessing the master endpoint.
-     * If unspecified, the defaults are used:
-     * For clusters before v1.12, if master_auth is unspecified, `username` will
-     * be set to "admin", a random password will be generated, and a client
-     * certificate will be issued.
-     * 
- * - * .google.container.v1beta1.MasterAuth master_auth = 5; - */ - public Builder clearMasterAuth() { - if (masterAuthBuilder_ == null) { - masterAuth_ = null; - onChanged(); - } else { - masterAuth_ = null; - masterAuthBuilder_ = null; - } - - return this; - } - /** - *
-     * The authentication information for accessing the master endpoint.
-     * If unspecified, the defaults are used:
-     * For clusters before v1.12, if master_auth is unspecified, `username` will
-     * be set to "admin", a random password will be generated, and a client
-     * certificate will be issued.
-     * 
- * - * .google.container.v1beta1.MasterAuth master_auth = 5; - */ - public com.google.container.v1beta1.MasterAuth.Builder getMasterAuthBuilder() { - - onChanged(); - return getMasterAuthFieldBuilder().getBuilder(); - } - /** - *
-     * The authentication information for accessing the master endpoint.
-     * If unspecified, the defaults are used:
-     * For clusters before v1.12, if master_auth is unspecified, `username` will
-     * be set to "admin", a random password will be generated, and a client
-     * certificate will be issued.
-     * 
- * - * .google.container.v1beta1.MasterAuth master_auth = 5; - */ - public com.google.container.v1beta1.MasterAuthOrBuilder getMasterAuthOrBuilder() { - if (masterAuthBuilder_ != null) { - return masterAuthBuilder_.getMessageOrBuilder(); - } else { - return masterAuth_ == null ? - com.google.container.v1beta1.MasterAuth.getDefaultInstance() : masterAuth_; - } - } - /** - *
-     * The authentication information for accessing the master endpoint.
-     * If unspecified, the defaults are used:
-     * For clusters before v1.12, if master_auth is unspecified, `username` will
-     * be set to "admin", a random password will be generated, and a client
-     * certificate will be issued.
-     * 
- * - * .google.container.v1beta1.MasterAuth master_auth = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MasterAuth, com.google.container.v1beta1.MasterAuth.Builder, com.google.container.v1beta1.MasterAuthOrBuilder> - getMasterAuthFieldBuilder() { - if (masterAuthBuilder_ == null) { - masterAuthBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MasterAuth, com.google.container.v1beta1.MasterAuth.Builder, com.google.container.v1beta1.MasterAuthOrBuilder>( - getMasterAuth(), - getParentForChildren(), - isClean()); - masterAuth_ = null; - } - return masterAuthBuilder_; - } - - private java.lang.Object loggingService_ = ""; - /** - *
-     * The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string logging_service = 6; - * @return The loggingService. - */ - public java.lang.String getLoggingService() { - java.lang.Object ref = loggingService_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - loggingService_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string logging_service = 6; - * @return The bytes for loggingService. - */ - public com.google.protobuf.ByteString - getLoggingServiceBytes() { - java.lang.Object ref = loggingService_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - loggingService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string logging_service = 6; - * @param value The loggingService to set. - * @return This builder for chaining. - */ - public Builder setLoggingService( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - loggingService_ = value; - onChanged(); - return this; - } - /** - *
-     * The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string logging_service = 6; - * @return This builder for chaining. - */ - public Builder clearLoggingService() { - - loggingService_ = getDefaultInstance().getLoggingService(); - onChanged(); - return this; - } - /** - *
-     * The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string logging_service = 6; - * @param value The bytes for loggingService to set. - * @return This builder for chaining. - */ - public Builder setLoggingServiceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - loggingService_ = value; - onChanged(); - return this; - } - - private java.lang.Object monitoringService_ = ""; - /** - *
-     * The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string monitoring_service = 7; - * @return The monitoringService. - */ - public java.lang.String getMonitoringService() { - java.lang.Object ref = monitoringService_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - monitoringService_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string monitoring_service = 7; - * @return The bytes for monitoringService. - */ - public com.google.protobuf.ByteString - getMonitoringServiceBytes() { - java.lang.Object ref = monitoringService_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - monitoringService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string monitoring_service = 7; - * @param value The monitoringService to set. - * @return This builder for chaining. - */ - public Builder setMonitoringService( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - monitoringService_ = value; - onChanged(); - return this; - } - /** - *
-     * The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string monitoring_service = 7; - * @return This builder for chaining. - */ - public Builder clearMonitoringService() { - - monitoringService_ = getDefaultInstance().getMonitoringService(); - onChanged(); - return this; - } - /** - *
-     * The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string monitoring_service = 7; - * @param value The bytes for monitoringService to set. - * @return This builder for chaining. - */ - public Builder setMonitoringServiceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - monitoringService_ = value; - onChanged(); - return this; - } - - private java.lang.Object network_ = ""; - /** - *
-     * The name of the Google Compute Engine
-     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-     * to which the cluster is connected. If left unspecified, the `default`
-     * network will be used. On output this shows the network ID instead of the
-     * name.
-     * 
- * - * string network = 8; - * @return The network. - */ - public java.lang.String getNetwork() { - java.lang.Object ref = network_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - network_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name of the Google Compute Engine
-     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-     * to which the cluster is connected. If left unspecified, the `default`
-     * network will be used. On output this shows the network ID instead of the
-     * name.
-     * 
- * - * string network = 8; - * @return The bytes for network. - */ - public com.google.protobuf.ByteString - getNetworkBytes() { - java.lang.Object ref = network_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - network_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name of the Google Compute Engine
-     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-     * to which the cluster is connected. If left unspecified, the `default`
-     * network will be used. On output this shows the network ID instead of the
-     * name.
-     * 
- * - * string network = 8; - * @param value The network to set. - * @return This builder for chaining. - */ - public Builder setNetwork( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - network_ = value; - onChanged(); - return this; - } - /** - *
-     * The name of the Google Compute Engine
-     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-     * to which the cluster is connected. If left unspecified, the `default`
-     * network will be used. On output this shows the network ID instead of the
-     * name.
-     * 
- * - * string network = 8; - * @return This builder for chaining. - */ - public Builder clearNetwork() { - - network_ = getDefaultInstance().getNetwork(); - onChanged(); - return this; - } - /** - *
-     * The name of the Google Compute Engine
-     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-     * to which the cluster is connected. If left unspecified, the `default`
-     * network will be used. On output this shows the network ID instead of the
-     * name.
-     * 
- * - * string network = 8; - * @param value The bytes for network to set. - * @return This builder for chaining. - */ - public Builder setNetworkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - network_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterIpv4Cidr_ = ""; - /** - *
-     * The IP address range of the container pods in this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`). Leave blank to have
-     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
-     * 
- * - * string cluster_ipv4_cidr = 9; - * @return The clusterIpv4Cidr. - */ - public java.lang.String getClusterIpv4Cidr() { - java.lang.Object ref = clusterIpv4Cidr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterIpv4Cidr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The IP address range of the container pods in this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`). Leave blank to have
-     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
-     * 
- * - * string cluster_ipv4_cidr = 9; - * @return The bytes for clusterIpv4Cidr. - */ - public com.google.protobuf.ByteString - getClusterIpv4CidrBytes() { - java.lang.Object ref = clusterIpv4Cidr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterIpv4Cidr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The IP address range of the container pods in this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`). Leave blank to have
-     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
-     * 
- * - * string cluster_ipv4_cidr = 9; - * @param value The clusterIpv4Cidr to set. - * @return This builder for chaining. - */ - public Builder setClusterIpv4Cidr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterIpv4Cidr_ = value; - onChanged(); - return this; - } - /** - *
-     * The IP address range of the container pods in this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`). Leave blank to have
-     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
-     * 
- * - * string cluster_ipv4_cidr = 9; - * @return This builder for chaining. - */ - public Builder clearClusterIpv4Cidr() { - - clusterIpv4Cidr_ = getDefaultInstance().getClusterIpv4Cidr(); - onChanged(); - return this; - } - /** - *
-     * The IP address range of the container pods in this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`). Leave blank to have
-     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
-     * 
- * - * string cluster_ipv4_cidr = 9; - * @param value The bytes for clusterIpv4Cidr to set. - * @return This builder for chaining. - */ - public Builder setClusterIpv4CidrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterIpv4Cidr_ = value; - onChanged(); - return this; - } - - private com.google.container.v1beta1.AddonsConfig addonsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AddonsConfig, com.google.container.v1beta1.AddonsConfig.Builder, com.google.container.v1beta1.AddonsConfigOrBuilder> addonsConfigBuilder_; - /** - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1beta1.AddonsConfig addons_config = 10; - * @return Whether the addonsConfig field is set. - */ - public boolean hasAddonsConfig() { - return addonsConfigBuilder_ != null || addonsConfig_ != null; - } - /** - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1beta1.AddonsConfig addons_config = 10; - * @return The addonsConfig. - */ - public com.google.container.v1beta1.AddonsConfig getAddonsConfig() { - if (addonsConfigBuilder_ == null) { - return addonsConfig_ == null ? com.google.container.v1beta1.AddonsConfig.getDefaultInstance() : addonsConfig_; - } else { - return addonsConfigBuilder_.getMessage(); - } - } - /** - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1beta1.AddonsConfig addons_config = 10; - */ - public Builder setAddonsConfig(com.google.container.v1beta1.AddonsConfig value) { - if (addonsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - addonsConfig_ = value; - onChanged(); - } else { - addonsConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1beta1.AddonsConfig addons_config = 10; - */ - public Builder setAddonsConfig( - com.google.container.v1beta1.AddonsConfig.Builder builderForValue) { - if (addonsConfigBuilder_ == null) { - addonsConfig_ = builderForValue.build(); - onChanged(); - } else { - addonsConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1beta1.AddonsConfig addons_config = 10; - */ - public Builder mergeAddonsConfig(com.google.container.v1beta1.AddonsConfig value) { - if (addonsConfigBuilder_ == null) { - if (addonsConfig_ != null) { - addonsConfig_ = - com.google.container.v1beta1.AddonsConfig.newBuilder(addonsConfig_).mergeFrom(value).buildPartial(); - } else { - addonsConfig_ = value; - } - onChanged(); - } else { - addonsConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1beta1.AddonsConfig addons_config = 10; - */ - public Builder clearAddonsConfig() { - if (addonsConfigBuilder_ == null) { - addonsConfig_ = null; - onChanged(); - } else { - addonsConfig_ = null; - addonsConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1beta1.AddonsConfig addons_config = 10; - */ - public com.google.container.v1beta1.AddonsConfig.Builder getAddonsConfigBuilder() { - - onChanged(); - return getAddonsConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1beta1.AddonsConfig addons_config = 10; - */ - public com.google.container.v1beta1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() { - if (addonsConfigBuilder_ != null) { - return addonsConfigBuilder_.getMessageOrBuilder(); - } else { - return addonsConfig_ == null ? - com.google.container.v1beta1.AddonsConfig.getDefaultInstance() : addonsConfig_; - } - } - /** - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1beta1.AddonsConfig addons_config = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AddonsConfig, com.google.container.v1beta1.AddonsConfig.Builder, com.google.container.v1beta1.AddonsConfigOrBuilder> - getAddonsConfigFieldBuilder() { - if (addonsConfigBuilder_ == null) { - addonsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AddonsConfig, com.google.container.v1beta1.AddonsConfig.Builder, com.google.container.v1beta1.AddonsConfigOrBuilder>( - getAddonsConfig(), - getParentForChildren(), - isClean()); - addonsConfig_ = null; - } - return addonsConfigBuilder_; - } - - private java.lang.Object subnetwork_ = ""; - /** - *
-     * The name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
-     * the cluster is connected. On output this shows the subnetwork ID instead of
-     * the name.
-     * 
- * - * string subnetwork = 11; - * @return The subnetwork. - */ - public java.lang.String getSubnetwork() { - java.lang.Object ref = subnetwork_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subnetwork_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
-     * the cluster is connected. On output this shows the subnetwork ID instead of
-     * the name.
-     * 
- * - * string subnetwork = 11; - * @return The bytes for subnetwork. - */ - public com.google.protobuf.ByteString - getSubnetworkBytes() { - java.lang.Object ref = subnetwork_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - subnetwork_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
-     * the cluster is connected. On output this shows the subnetwork ID instead of
-     * the name.
-     * 
- * - * string subnetwork = 11; - * @param value The subnetwork to set. - * @return This builder for chaining. - */ - public Builder setSubnetwork( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - subnetwork_ = value; - onChanged(); - return this; - } - /** - *
-     * The name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
-     * the cluster is connected. On output this shows the subnetwork ID instead of
-     * the name.
-     * 
- * - * string subnetwork = 11; - * @return This builder for chaining. - */ - public Builder clearSubnetwork() { - - subnetwork_ = getDefaultInstance().getSubnetwork(); - onChanged(); - return this; - } - /** - *
-     * The name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
-     * the cluster is connected. On output this shows the subnetwork ID instead of
-     * the name.
-     * 
- * - * string subnetwork = 11; - * @param value The bytes for subnetwork to set. - * @return This builder for chaining. - */ - public Builder setSubnetworkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - subnetwork_ = value; - onChanged(); - return this; - } - - private java.util.List nodePools_ = - java.util.Collections.emptyList(); - private void ensureNodePoolsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - nodePools_ = new java.util.ArrayList(nodePools_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.NodePool, com.google.container.v1beta1.NodePool.Builder, com.google.container.v1beta1.NodePoolOrBuilder> nodePoolsBuilder_; - - /** - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - public java.util.List getNodePoolsList() { - if (nodePoolsBuilder_ == null) { - return java.util.Collections.unmodifiableList(nodePools_); - } else { - return nodePoolsBuilder_.getMessageList(); - } - } - /** - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - public int getNodePoolsCount() { - if (nodePoolsBuilder_ == null) { - return nodePools_.size(); - } else { - return nodePoolsBuilder_.getCount(); - } - } - /** - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - public com.google.container.v1beta1.NodePool getNodePools(int index) { - if (nodePoolsBuilder_ == null) { - return nodePools_.get(index); - } else { - return nodePoolsBuilder_.getMessage(index); - } - } - /** - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - public Builder setNodePools( - int index, com.google.container.v1beta1.NodePool value) { - if (nodePoolsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodePoolsIsMutable(); - nodePools_.set(index, value); - onChanged(); - } else { - nodePoolsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - public Builder setNodePools( - int index, com.google.container.v1beta1.NodePool.Builder builderForValue) { - if (nodePoolsBuilder_ == null) { - ensureNodePoolsIsMutable(); - nodePools_.set(index, builderForValue.build()); - onChanged(); - } else { - nodePoolsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - public Builder addNodePools(com.google.container.v1beta1.NodePool value) { - if (nodePoolsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodePoolsIsMutable(); - nodePools_.add(value); - onChanged(); - } else { - nodePoolsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - public Builder addNodePools( - int index, com.google.container.v1beta1.NodePool value) { - if (nodePoolsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodePoolsIsMutable(); - nodePools_.add(index, value); - onChanged(); - } else { - nodePoolsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - public Builder addNodePools( - com.google.container.v1beta1.NodePool.Builder builderForValue) { - if (nodePoolsBuilder_ == null) { - ensureNodePoolsIsMutable(); - nodePools_.add(builderForValue.build()); - onChanged(); - } else { - nodePoolsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - public Builder addNodePools( - int index, com.google.container.v1beta1.NodePool.Builder builderForValue) { - if (nodePoolsBuilder_ == null) { - ensureNodePoolsIsMutable(); - nodePools_.add(index, builderForValue.build()); - onChanged(); - } else { - nodePoolsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - public Builder addAllNodePools( - java.lang.Iterable values) { - if (nodePoolsBuilder_ == null) { - ensureNodePoolsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nodePools_); - onChanged(); - } else { - nodePoolsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - public Builder clearNodePools() { - if (nodePoolsBuilder_ == null) { - nodePools_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - nodePoolsBuilder_.clear(); - } - return this; - } - /** - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - public Builder removeNodePools(int index) { - if (nodePoolsBuilder_ == null) { - ensureNodePoolsIsMutable(); - nodePools_.remove(index); - onChanged(); - } else { - nodePoolsBuilder_.remove(index); - } - return this; - } - /** - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - public com.google.container.v1beta1.NodePool.Builder getNodePoolsBuilder( - int index) { - return getNodePoolsFieldBuilder().getBuilder(index); - } - /** - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - public com.google.container.v1beta1.NodePoolOrBuilder getNodePoolsOrBuilder( - int index) { - if (nodePoolsBuilder_ == null) { - return nodePools_.get(index); } else { - return nodePoolsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - public java.util.List - getNodePoolsOrBuilderList() { - if (nodePoolsBuilder_ != null) { - return nodePoolsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nodePools_); - } - } - /** - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - public com.google.container.v1beta1.NodePool.Builder addNodePoolsBuilder() { - return getNodePoolsFieldBuilder().addBuilder( - com.google.container.v1beta1.NodePool.getDefaultInstance()); - } - /** - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - public com.google.container.v1beta1.NodePool.Builder addNodePoolsBuilder( - int index) { - return getNodePoolsFieldBuilder().addBuilder( - index, com.google.container.v1beta1.NodePool.getDefaultInstance()); - } - /** - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - public java.util.List - getNodePoolsBuilderList() { - return getNodePoolsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.NodePool, com.google.container.v1beta1.NodePool.Builder, com.google.container.v1beta1.NodePoolOrBuilder> - getNodePoolsFieldBuilder() { - if (nodePoolsBuilder_ == null) { - nodePoolsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.NodePool, com.google.container.v1beta1.NodePool.Builder, com.google.container.v1beta1.NodePoolOrBuilder>( - nodePools_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - nodePools_ = null; - } - return nodePoolsBuilder_; - } - - private com.google.protobuf.LazyStringList locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureLocationsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - locations_ = new com.google.protobuf.LazyStringArrayList(locations_); - bitField0_ |= 0x00000002; - } - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This field provides a default value if
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * are not specified during node pool creation.
-     * Warning: changing cluster locations will update the
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * of all node pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string locations = 13; - * @return A list containing the locations. - */ - public com.google.protobuf.ProtocolStringList - getLocationsList() { - return locations_.getUnmodifiableView(); - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This field provides a default value if
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * are not specified during node pool creation.
-     * Warning: changing cluster locations will update the
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * of all node pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string locations = 13; - * @return The count of locations. - */ - public int getLocationsCount() { - return locations_.size(); - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This field provides a default value if
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * are not specified during node pool creation.
-     * Warning: changing cluster locations will update the
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * of all node pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string locations = 13; - * @param index The index of the element to return. - * @return The locations at the given index. - */ - public java.lang.String getLocations(int index) { - return locations_.get(index); - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This field provides a default value if
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * are not specified during node pool creation.
-     * Warning: changing cluster locations will update the
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * of all node pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string locations = 13; - * @param index The index of the value to return. - * @return The bytes of the locations at the given index. - */ - public com.google.protobuf.ByteString - getLocationsBytes(int index) { - return locations_.getByteString(index); - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This field provides a default value if
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * are not specified during node pool creation.
-     * Warning: changing cluster locations will update the
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * of all node pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string locations = 13; - * @param index The index to set the value at. - * @param value The locations to set. - * @return This builder for chaining. - */ - public Builder setLocations( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); - locations_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This field provides a default value if
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * are not specified during node pool creation.
-     * Warning: changing cluster locations will update the
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * of all node pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string locations = 13; - * @param value The locations to add. - * @return This builder for chaining. - */ - public Builder addLocations( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); - locations_.add(value); - onChanged(); - return this; - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This field provides a default value if
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * are not specified during node pool creation.
-     * Warning: changing cluster locations will update the
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * of all node pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string locations = 13; - * @param values The locations to add. - * @return This builder for chaining. - */ - public Builder addAllLocations( - java.lang.Iterable values) { - ensureLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, locations_); - onChanged(); - return this; - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This field provides a default value if
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * are not specified during node pool creation.
-     * Warning: changing cluster locations will update the
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * of all node pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string locations = 13; - * @return This builder for chaining. - */ - public Builder clearLocations() { - locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This field provides a default value if
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * are not specified during node pool creation.
-     * Warning: changing cluster locations will update the
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * of all node pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string locations = 13; - * @param value The bytes of the locations to add. - * @return This builder for chaining. - */ - public Builder addLocationsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureLocationsIsMutable(); - locations_.add(value); - onChanged(); - return this; - } - - private boolean enableKubernetesAlpha_ ; - /** - *
-     * Kubernetes alpha features are enabled on this cluster. This includes alpha
-     * API groups (e.g. v1beta1) and features that may not be production ready in
-     * the kubernetes version of the master and nodes.
-     * The cluster has no SLA for uptime and master/node upgrades are disabled.
-     * Alpha enabled clusters are automatically deleted thirty days after
-     * creation.
-     * 
- * - * bool enable_kubernetes_alpha = 14; - * @return The enableKubernetesAlpha. - */ - @java.lang.Override - public boolean getEnableKubernetesAlpha() { - return enableKubernetesAlpha_; - } - /** - *
-     * Kubernetes alpha features are enabled on this cluster. This includes alpha
-     * API groups (e.g. v1beta1) and features that may not be production ready in
-     * the kubernetes version of the master and nodes.
-     * The cluster has no SLA for uptime and master/node upgrades are disabled.
-     * Alpha enabled clusters are automatically deleted thirty days after
-     * creation.
-     * 
- * - * bool enable_kubernetes_alpha = 14; - * @param value The enableKubernetesAlpha to set. - * @return This builder for chaining. - */ - public Builder setEnableKubernetesAlpha(boolean value) { - - enableKubernetesAlpha_ = value; - onChanged(); - return this; - } - /** - *
-     * Kubernetes alpha features are enabled on this cluster. This includes alpha
-     * API groups (e.g. v1beta1) and features that may not be production ready in
-     * the kubernetes version of the master and nodes.
-     * The cluster has no SLA for uptime and master/node upgrades are disabled.
-     * Alpha enabled clusters are automatically deleted thirty days after
-     * creation.
-     * 
- * - * bool enable_kubernetes_alpha = 14; - * @return This builder for chaining. - */ - public Builder clearEnableKubernetesAlpha() { - - enableKubernetesAlpha_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> resourceLabels_; - private com.google.protobuf.MapField - internalGetResourceLabels() { - if (resourceLabels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ResourceLabelsDefaultEntryHolder.defaultEntry); - } - return resourceLabels_; - } - private com.google.protobuf.MapField - internalGetMutableResourceLabels() { - onChanged();; - if (resourceLabels_ == null) { - resourceLabels_ = com.google.protobuf.MapField.newMapField( - ResourceLabelsDefaultEntryHolder.defaultEntry); - } - if (!resourceLabels_.isMutable()) { - resourceLabels_ = resourceLabels_.copy(); - } - return resourceLabels_; - } - - public int getResourceLabelsCount() { - return internalGetResourceLabels().getMap().size(); - } - /** - *
-     * The resource labels for the cluster to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * map<string, string> resource_labels = 15; - */ - - @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 java.lang.String getResourceLabelsOrDefault( - java.lang.String key, - 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() { - 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() { - 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); - return this; - } - /** - *
-     * The resource labels for the cluster to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * map<string, string> resource_labels = 15; - */ - - public Builder putAllResourceLabels( - java.util.Map values) { - internalGetMutableResourceLabels().getMutableMap() - .putAll(values); - return this; - } - - private java.lang.Object labelFingerprint_ = ""; - /** - *
-     * The fingerprint of the set of labels for this cluster.
-     * 
- * - * string label_fingerprint = 16; - * @return The labelFingerprint. - */ - public java.lang.String getLabelFingerprint() { - java.lang.Object ref = labelFingerprint_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - labelFingerprint_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The fingerprint of the set of labels for this cluster.
-     * 
- * - * string label_fingerprint = 16; - * @return The bytes for labelFingerprint. - */ - public com.google.protobuf.ByteString - getLabelFingerprintBytes() { - java.lang.Object ref = labelFingerprint_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - labelFingerprint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The fingerprint of the set of labels for this cluster.
-     * 
- * - * string label_fingerprint = 16; - * @param value The labelFingerprint to set. - * @return This builder for chaining. - */ - public Builder setLabelFingerprint( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - labelFingerprint_ = value; - onChanged(); - return this; - } - /** - *
-     * The fingerprint of the set of labels for this cluster.
-     * 
- * - * string label_fingerprint = 16; - * @return This builder for chaining. - */ - public Builder clearLabelFingerprint() { - - labelFingerprint_ = getDefaultInstance().getLabelFingerprint(); - onChanged(); - return this; - } - /** - *
-     * The fingerprint of the set of labels for this cluster.
-     * 
- * - * string label_fingerprint = 16; - * @param value The bytes for labelFingerprint to set. - * @return This builder for chaining. - */ - public Builder setLabelFingerprintBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - labelFingerprint_ = value; - onChanged(); - return this; - } - - private com.google.container.v1beta1.LegacyAbac legacyAbac_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.LegacyAbac, com.google.container.v1beta1.LegacyAbac.Builder, com.google.container.v1beta1.LegacyAbacOrBuilder> legacyAbacBuilder_; - /** - *
-     * Configuration for the legacy ABAC authorization mode.
-     * 
- * - * .google.container.v1beta1.LegacyAbac legacy_abac = 18; - * @return Whether the legacyAbac field is set. - */ - public boolean hasLegacyAbac() { - return legacyAbacBuilder_ != null || legacyAbac_ != null; - } - /** - *
-     * Configuration for the legacy ABAC authorization mode.
-     * 
- * - * .google.container.v1beta1.LegacyAbac legacy_abac = 18; - * @return The legacyAbac. - */ - public com.google.container.v1beta1.LegacyAbac getLegacyAbac() { - if (legacyAbacBuilder_ == null) { - return legacyAbac_ == null ? com.google.container.v1beta1.LegacyAbac.getDefaultInstance() : legacyAbac_; - } else { - return legacyAbacBuilder_.getMessage(); - } - } - /** - *
-     * Configuration for the legacy ABAC authorization mode.
-     * 
- * - * .google.container.v1beta1.LegacyAbac legacy_abac = 18; - */ - public Builder setLegacyAbac(com.google.container.v1beta1.LegacyAbac value) { - if (legacyAbacBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - legacyAbac_ = value; - onChanged(); - } else { - legacyAbacBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for the legacy ABAC authorization mode.
-     * 
- * - * .google.container.v1beta1.LegacyAbac legacy_abac = 18; - */ - public Builder setLegacyAbac( - com.google.container.v1beta1.LegacyAbac.Builder builderForValue) { - if (legacyAbacBuilder_ == null) { - legacyAbac_ = builderForValue.build(); - onChanged(); - } else { - legacyAbacBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for the legacy ABAC authorization mode.
-     * 
- * - * .google.container.v1beta1.LegacyAbac legacy_abac = 18; - */ - public Builder mergeLegacyAbac(com.google.container.v1beta1.LegacyAbac value) { - if (legacyAbacBuilder_ == null) { - if (legacyAbac_ != null) { - legacyAbac_ = - com.google.container.v1beta1.LegacyAbac.newBuilder(legacyAbac_).mergeFrom(value).buildPartial(); - } else { - legacyAbac_ = value; - } - onChanged(); - } else { - legacyAbacBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for the legacy ABAC authorization mode.
-     * 
- * - * .google.container.v1beta1.LegacyAbac legacy_abac = 18; - */ - public Builder clearLegacyAbac() { - if (legacyAbacBuilder_ == null) { - legacyAbac_ = null; - onChanged(); - } else { - legacyAbac_ = null; - legacyAbacBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for the legacy ABAC authorization mode.
-     * 
- * - * .google.container.v1beta1.LegacyAbac legacy_abac = 18; - */ - public com.google.container.v1beta1.LegacyAbac.Builder getLegacyAbacBuilder() { - - onChanged(); - return getLegacyAbacFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for the legacy ABAC authorization mode.
-     * 
- * - * .google.container.v1beta1.LegacyAbac legacy_abac = 18; - */ - public com.google.container.v1beta1.LegacyAbacOrBuilder getLegacyAbacOrBuilder() { - if (legacyAbacBuilder_ != null) { - return legacyAbacBuilder_.getMessageOrBuilder(); - } else { - return legacyAbac_ == null ? - com.google.container.v1beta1.LegacyAbac.getDefaultInstance() : legacyAbac_; - } - } - /** - *
-     * Configuration for the legacy ABAC authorization mode.
-     * 
- * - * .google.container.v1beta1.LegacyAbac legacy_abac = 18; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.LegacyAbac, com.google.container.v1beta1.LegacyAbac.Builder, com.google.container.v1beta1.LegacyAbacOrBuilder> - getLegacyAbacFieldBuilder() { - if (legacyAbacBuilder_ == null) { - legacyAbacBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.LegacyAbac, com.google.container.v1beta1.LegacyAbac.Builder, com.google.container.v1beta1.LegacyAbacOrBuilder>( - getLegacyAbac(), - getParentForChildren(), - isClean()); - legacyAbac_ = null; - } - return legacyAbacBuilder_; - } - - private com.google.container.v1beta1.NetworkPolicy networkPolicy_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NetworkPolicy, com.google.container.v1beta1.NetworkPolicy.Builder, com.google.container.v1beta1.NetworkPolicyOrBuilder> networkPolicyBuilder_; - /** - *
-     * Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1beta1.NetworkPolicy network_policy = 19; - * @return Whether the networkPolicy field is set. - */ - public boolean hasNetworkPolicy() { - return networkPolicyBuilder_ != null || networkPolicy_ != null; - } - /** - *
-     * Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1beta1.NetworkPolicy network_policy = 19; - * @return The networkPolicy. - */ - public com.google.container.v1beta1.NetworkPolicy getNetworkPolicy() { - if (networkPolicyBuilder_ == null) { - return networkPolicy_ == null ? com.google.container.v1beta1.NetworkPolicy.getDefaultInstance() : networkPolicy_; - } else { - return networkPolicyBuilder_.getMessage(); - } - } - /** - *
-     * Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1beta1.NetworkPolicy network_policy = 19; - */ - public Builder setNetworkPolicy(com.google.container.v1beta1.NetworkPolicy value) { - if (networkPolicyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - networkPolicy_ = value; - onChanged(); - } else { - networkPolicyBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1beta1.NetworkPolicy network_policy = 19; - */ - public Builder setNetworkPolicy( - com.google.container.v1beta1.NetworkPolicy.Builder builderForValue) { - if (networkPolicyBuilder_ == null) { - networkPolicy_ = builderForValue.build(); - onChanged(); - } else { - networkPolicyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1beta1.NetworkPolicy network_policy = 19; - */ - public Builder mergeNetworkPolicy(com.google.container.v1beta1.NetworkPolicy value) { - if (networkPolicyBuilder_ == null) { - if (networkPolicy_ != null) { - networkPolicy_ = - com.google.container.v1beta1.NetworkPolicy.newBuilder(networkPolicy_).mergeFrom(value).buildPartial(); - } else { - networkPolicy_ = value; - } - onChanged(); - } else { - networkPolicyBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1beta1.NetworkPolicy network_policy = 19; - */ - public Builder clearNetworkPolicy() { - if (networkPolicyBuilder_ == null) { - networkPolicy_ = null; - onChanged(); - } else { - networkPolicy_ = null; - networkPolicyBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1beta1.NetworkPolicy network_policy = 19; - */ - public com.google.container.v1beta1.NetworkPolicy.Builder getNetworkPolicyBuilder() { - - onChanged(); - return getNetworkPolicyFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1beta1.NetworkPolicy network_policy = 19; - */ - public com.google.container.v1beta1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { - if (networkPolicyBuilder_ != null) { - return networkPolicyBuilder_.getMessageOrBuilder(); - } else { - return networkPolicy_ == null ? - com.google.container.v1beta1.NetworkPolicy.getDefaultInstance() : networkPolicy_; - } - } - /** - *
-     * Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1beta1.NetworkPolicy network_policy = 19; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NetworkPolicy, com.google.container.v1beta1.NetworkPolicy.Builder, com.google.container.v1beta1.NetworkPolicyOrBuilder> - getNetworkPolicyFieldBuilder() { - if (networkPolicyBuilder_ == null) { - networkPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NetworkPolicy, com.google.container.v1beta1.NetworkPolicy.Builder, com.google.container.v1beta1.NetworkPolicyOrBuilder>( - getNetworkPolicy(), - getParentForChildren(), - isClean()); - networkPolicy_ = null; - } - return networkPolicyBuilder_; - } - - private com.google.container.v1beta1.IPAllocationPolicy ipAllocationPolicy_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.IPAllocationPolicy, com.google.container.v1beta1.IPAllocationPolicy.Builder, com.google.container.v1beta1.IPAllocationPolicyOrBuilder> ipAllocationPolicyBuilder_; - /** - *
-     * Configuration for cluster IP allocation.
-     * 
- * - * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; - * @return Whether the ipAllocationPolicy field is set. - */ - public boolean hasIpAllocationPolicy() { - return ipAllocationPolicyBuilder_ != null || ipAllocationPolicy_ != null; - } - /** - *
-     * Configuration for cluster IP allocation.
-     * 
- * - * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; - * @return The ipAllocationPolicy. - */ - public com.google.container.v1beta1.IPAllocationPolicy getIpAllocationPolicy() { - if (ipAllocationPolicyBuilder_ == null) { - return ipAllocationPolicy_ == null ? com.google.container.v1beta1.IPAllocationPolicy.getDefaultInstance() : ipAllocationPolicy_; - } else { - return ipAllocationPolicyBuilder_.getMessage(); - } - } - /** - *
-     * Configuration for cluster IP allocation.
-     * 
- * - * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; - */ - public Builder setIpAllocationPolicy(com.google.container.v1beta1.IPAllocationPolicy value) { - if (ipAllocationPolicyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ipAllocationPolicy_ = value; - onChanged(); - } else { - ipAllocationPolicyBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for cluster IP allocation.
-     * 
- * - * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; - */ - public Builder setIpAllocationPolicy( - com.google.container.v1beta1.IPAllocationPolicy.Builder builderForValue) { - if (ipAllocationPolicyBuilder_ == null) { - ipAllocationPolicy_ = builderForValue.build(); - onChanged(); - } else { - ipAllocationPolicyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for cluster IP allocation.
-     * 
- * - * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; - */ - public Builder mergeIpAllocationPolicy(com.google.container.v1beta1.IPAllocationPolicy value) { - if (ipAllocationPolicyBuilder_ == null) { - if (ipAllocationPolicy_ != null) { - ipAllocationPolicy_ = - com.google.container.v1beta1.IPAllocationPolicy.newBuilder(ipAllocationPolicy_).mergeFrom(value).buildPartial(); - } else { - ipAllocationPolicy_ = value; - } - onChanged(); - } else { - ipAllocationPolicyBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for cluster IP allocation.
-     * 
- * - * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; - */ - public Builder clearIpAllocationPolicy() { - if (ipAllocationPolicyBuilder_ == null) { - ipAllocationPolicy_ = null; - onChanged(); - } else { - ipAllocationPolicy_ = null; - ipAllocationPolicyBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for cluster IP allocation.
-     * 
- * - * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; - */ - public com.google.container.v1beta1.IPAllocationPolicy.Builder getIpAllocationPolicyBuilder() { - - onChanged(); - return getIpAllocationPolicyFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for cluster IP allocation.
-     * 
- * - * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; - */ - public com.google.container.v1beta1.IPAllocationPolicyOrBuilder getIpAllocationPolicyOrBuilder() { - if (ipAllocationPolicyBuilder_ != null) { - return ipAllocationPolicyBuilder_.getMessageOrBuilder(); - } else { - return ipAllocationPolicy_ == null ? - com.google.container.v1beta1.IPAllocationPolicy.getDefaultInstance() : ipAllocationPolicy_; - } - } - /** - *
-     * Configuration for cluster IP allocation.
-     * 
- * - * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.IPAllocationPolicy, com.google.container.v1beta1.IPAllocationPolicy.Builder, com.google.container.v1beta1.IPAllocationPolicyOrBuilder> - getIpAllocationPolicyFieldBuilder() { - if (ipAllocationPolicyBuilder_ == null) { - ipAllocationPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.IPAllocationPolicy, com.google.container.v1beta1.IPAllocationPolicy.Builder, com.google.container.v1beta1.IPAllocationPolicyOrBuilder>( - getIpAllocationPolicy(), - getParentForChildren(), - isClean()); - ipAllocationPolicy_ = null; - } - return ipAllocationPolicyBuilder_; - } - - private com.google.container.v1beta1.MasterAuthorizedNetworksConfig masterAuthorizedNetworksConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MasterAuthorizedNetworksConfig, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder, com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder> masterAuthorizedNetworksConfigBuilder_; - /** - *
-     * The configuration options for master authorized networks feature.
-     * 
- * - * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * @return Whether the masterAuthorizedNetworksConfig field is set. - */ - public boolean hasMasterAuthorizedNetworksConfig() { - return masterAuthorizedNetworksConfigBuilder_ != null || masterAuthorizedNetworksConfig_ != null; - } - /** - *
-     * The configuration options for master authorized networks feature.
-     * 
- * - * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * @return The masterAuthorizedNetworksConfig. - */ - public com.google.container.v1beta1.MasterAuthorizedNetworksConfig getMasterAuthorizedNetworksConfig() { - if (masterAuthorizedNetworksConfigBuilder_ == null) { - return masterAuthorizedNetworksConfig_ == null ? com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance() : masterAuthorizedNetworksConfig_; - } else { - return masterAuthorizedNetworksConfigBuilder_.getMessage(); - } - } - /** - *
-     * The configuration options for master authorized networks feature.
-     * 
- * - * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - */ - public Builder setMasterAuthorizedNetworksConfig(com.google.container.v1beta1.MasterAuthorizedNetworksConfig value) { - if (masterAuthorizedNetworksConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - masterAuthorizedNetworksConfig_ = value; - onChanged(); - } else { - masterAuthorizedNetworksConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The configuration options for master authorized networks feature.
-     * 
- * - * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - */ - public Builder setMasterAuthorizedNetworksConfig( - com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder builderForValue) { - if (masterAuthorizedNetworksConfigBuilder_ == null) { - masterAuthorizedNetworksConfig_ = builderForValue.build(); - onChanged(); - } else { - masterAuthorizedNetworksConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The configuration options for master authorized networks feature.
-     * 
- * - * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - */ - public Builder mergeMasterAuthorizedNetworksConfig(com.google.container.v1beta1.MasterAuthorizedNetworksConfig value) { - if (masterAuthorizedNetworksConfigBuilder_ == null) { - if (masterAuthorizedNetworksConfig_ != null) { - masterAuthorizedNetworksConfig_ = - com.google.container.v1beta1.MasterAuthorizedNetworksConfig.newBuilder(masterAuthorizedNetworksConfig_).mergeFrom(value).buildPartial(); - } else { - masterAuthorizedNetworksConfig_ = value; - } - onChanged(); - } else { - masterAuthorizedNetworksConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The configuration options for master authorized networks feature.
-     * 
- * - * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - */ - public Builder clearMasterAuthorizedNetworksConfig() { - if (masterAuthorizedNetworksConfigBuilder_ == null) { - masterAuthorizedNetworksConfig_ = null; - onChanged(); - } else { - masterAuthorizedNetworksConfig_ = null; - masterAuthorizedNetworksConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * The configuration options for master authorized networks feature.
-     * 
- * - * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - */ - public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder getMasterAuthorizedNetworksConfigBuilder() { - - onChanged(); - return getMasterAuthorizedNetworksConfigFieldBuilder().getBuilder(); - } - /** - *
-     * The configuration options for master authorized networks feature.
-     * 
- * - * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - */ - public com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder getMasterAuthorizedNetworksConfigOrBuilder() { - if (masterAuthorizedNetworksConfigBuilder_ != null) { - return masterAuthorizedNetworksConfigBuilder_.getMessageOrBuilder(); - } else { - return masterAuthorizedNetworksConfig_ == null ? - com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance() : masterAuthorizedNetworksConfig_; - } - } - /** - *
-     * The configuration options for master authorized networks feature.
-     * 
- * - * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MasterAuthorizedNetworksConfig, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder, com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder> - getMasterAuthorizedNetworksConfigFieldBuilder() { - if (masterAuthorizedNetworksConfigBuilder_ == null) { - masterAuthorizedNetworksConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MasterAuthorizedNetworksConfig, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder, com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder>( - getMasterAuthorizedNetworksConfig(), - getParentForChildren(), - isClean()); - masterAuthorizedNetworksConfig_ = null; - } - return masterAuthorizedNetworksConfigBuilder_; - } - - private com.google.container.v1beta1.MaintenancePolicy maintenancePolicy_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MaintenancePolicy, com.google.container.v1beta1.MaintenancePolicy.Builder, com.google.container.v1beta1.MaintenancePolicyOrBuilder> maintenancePolicyBuilder_; - /** - *
-     * Configure the maintenance policy for this cluster.
-     * 
- * - * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; - * @return Whether the maintenancePolicy field is set. - */ - public boolean hasMaintenancePolicy() { - return maintenancePolicyBuilder_ != null || maintenancePolicy_ != null; - } - /** - *
-     * Configure the maintenance policy for this cluster.
-     * 
- * - * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; - * @return The maintenancePolicy. - */ - public com.google.container.v1beta1.MaintenancePolicy getMaintenancePolicy() { - if (maintenancePolicyBuilder_ == null) { - return maintenancePolicy_ == null ? com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; - } else { - return maintenancePolicyBuilder_.getMessage(); - } - } - /** - *
-     * Configure the maintenance policy for this cluster.
-     * 
- * - * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; - */ - public Builder setMaintenancePolicy(com.google.container.v1beta1.MaintenancePolicy value) { - if (maintenancePolicyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - maintenancePolicy_ = value; - onChanged(); - } else { - maintenancePolicyBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configure the maintenance policy for this cluster.
-     * 
- * - * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; - */ - public Builder setMaintenancePolicy( - com.google.container.v1beta1.MaintenancePolicy.Builder builderForValue) { - if (maintenancePolicyBuilder_ == null) { - maintenancePolicy_ = builderForValue.build(); - onChanged(); - } else { - maintenancePolicyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configure the maintenance policy for this cluster.
-     * 
- * - * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; - */ - public Builder mergeMaintenancePolicy(com.google.container.v1beta1.MaintenancePolicy value) { - if (maintenancePolicyBuilder_ == null) { - if (maintenancePolicy_ != null) { - maintenancePolicy_ = - com.google.container.v1beta1.MaintenancePolicy.newBuilder(maintenancePolicy_).mergeFrom(value).buildPartial(); - } else { - maintenancePolicy_ = value; - } - onChanged(); - } else { - maintenancePolicyBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configure the maintenance policy for this cluster.
-     * 
- * - * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; - */ - public Builder clearMaintenancePolicy() { - if (maintenancePolicyBuilder_ == null) { - maintenancePolicy_ = null; - onChanged(); - } else { - maintenancePolicy_ = null; - maintenancePolicyBuilder_ = null; - } - - return this; - } - /** - *
-     * Configure the maintenance policy for this cluster.
-     * 
- * - * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; - */ - public com.google.container.v1beta1.MaintenancePolicy.Builder getMaintenancePolicyBuilder() { - - onChanged(); - return getMaintenancePolicyFieldBuilder().getBuilder(); - } - /** - *
-     * Configure the maintenance policy for this cluster.
-     * 
- * - * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; - */ - public com.google.container.v1beta1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { - if (maintenancePolicyBuilder_ != null) { - return maintenancePolicyBuilder_.getMessageOrBuilder(); - } else { - return maintenancePolicy_ == null ? - com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; - } - } - /** - *
-     * Configure the maintenance policy for this cluster.
-     * 
- * - * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MaintenancePolicy, com.google.container.v1beta1.MaintenancePolicy.Builder, com.google.container.v1beta1.MaintenancePolicyOrBuilder> - getMaintenancePolicyFieldBuilder() { - if (maintenancePolicyBuilder_ == null) { - maintenancePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MaintenancePolicy, com.google.container.v1beta1.MaintenancePolicy.Builder, com.google.container.v1beta1.MaintenancePolicyOrBuilder>( - getMaintenancePolicy(), - getParentForChildren(), - isClean()); - maintenancePolicy_ = null; - } - return maintenancePolicyBuilder_; - } - - private com.google.container.v1beta1.BinaryAuthorization binaryAuthorization_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.BinaryAuthorization, com.google.container.v1beta1.BinaryAuthorization.Builder, com.google.container.v1beta1.BinaryAuthorizationOrBuilder> binaryAuthorizationBuilder_; - /** - *
-     * Configuration for Binary Authorization.
-     * 
- * - * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; - * @return Whether the binaryAuthorization field is set. - */ - public boolean hasBinaryAuthorization() { - return binaryAuthorizationBuilder_ != null || binaryAuthorization_ != null; - } - /** - *
-     * Configuration for Binary Authorization.
-     * 
- * - * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; - * @return The binaryAuthorization. - */ - public com.google.container.v1beta1.BinaryAuthorization getBinaryAuthorization() { - if (binaryAuthorizationBuilder_ == null) { - return binaryAuthorization_ == null ? com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance() : binaryAuthorization_; - } else { - return binaryAuthorizationBuilder_.getMessage(); - } - } - /** - *
-     * Configuration for Binary Authorization.
-     * 
- * - * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; - */ - public Builder setBinaryAuthorization(com.google.container.v1beta1.BinaryAuthorization value) { - if (binaryAuthorizationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - binaryAuthorization_ = value; - onChanged(); - } else { - binaryAuthorizationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for Binary Authorization.
-     * 
- * - * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; - */ - public Builder setBinaryAuthorization( - com.google.container.v1beta1.BinaryAuthorization.Builder builderForValue) { - if (binaryAuthorizationBuilder_ == null) { - binaryAuthorization_ = builderForValue.build(); - onChanged(); - } else { - binaryAuthorizationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for Binary Authorization.
-     * 
- * - * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; - */ - public Builder mergeBinaryAuthorization(com.google.container.v1beta1.BinaryAuthorization value) { - if (binaryAuthorizationBuilder_ == null) { - if (binaryAuthorization_ != null) { - binaryAuthorization_ = - com.google.container.v1beta1.BinaryAuthorization.newBuilder(binaryAuthorization_).mergeFrom(value).buildPartial(); - } else { - binaryAuthorization_ = value; - } - onChanged(); - } else { - binaryAuthorizationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for Binary Authorization.
-     * 
- * - * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; - */ - public Builder clearBinaryAuthorization() { - if (binaryAuthorizationBuilder_ == null) { - binaryAuthorization_ = null; - onChanged(); - } else { - binaryAuthorization_ = null; - binaryAuthorizationBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for Binary Authorization.
-     * 
- * - * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; - */ - public com.google.container.v1beta1.BinaryAuthorization.Builder getBinaryAuthorizationBuilder() { - - onChanged(); - return getBinaryAuthorizationFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for Binary Authorization.
-     * 
- * - * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; - */ - public com.google.container.v1beta1.BinaryAuthorizationOrBuilder getBinaryAuthorizationOrBuilder() { - if (binaryAuthorizationBuilder_ != null) { - return binaryAuthorizationBuilder_.getMessageOrBuilder(); - } else { - return binaryAuthorization_ == null ? - com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance() : binaryAuthorization_; - } - } - /** - *
-     * Configuration for Binary Authorization.
-     * 
- * - * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.BinaryAuthorization, com.google.container.v1beta1.BinaryAuthorization.Builder, com.google.container.v1beta1.BinaryAuthorizationOrBuilder> - getBinaryAuthorizationFieldBuilder() { - if (binaryAuthorizationBuilder_ == null) { - binaryAuthorizationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.BinaryAuthorization, com.google.container.v1beta1.BinaryAuthorization.Builder, com.google.container.v1beta1.BinaryAuthorizationOrBuilder>( - getBinaryAuthorization(), - getParentForChildren(), - isClean()); - binaryAuthorization_ = null; - } - return binaryAuthorizationBuilder_; - } - - private com.google.container.v1beta1.PodSecurityPolicyConfig podSecurityPolicyConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.PodSecurityPolicyConfig, com.google.container.v1beta1.PodSecurityPolicyConfig.Builder, com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder> podSecurityPolicyConfigBuilder_; - /** - *
-     * Configuration for the PodSecurityPolicy feature.
-     * 
- * - * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; - * @return Whether the podSecurityPolicyConfig field is set. - */ - public boolean hasPodSecurityPolicyConfig() { - return podSecurityPolicyConfigBuilder_ != null || podSecurityPolicyConfig_ != null; - } - /** - *
-     * Configuration for the PodSecurityPolicy feature.
-     * 
- * - * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; - * @return The podSecurityPolicyConfig. - */ - public com.google.container.v1beta1.PodSecurityPolicyConfig getPodSecurityPolicyConfig() { - if (podSecurityPolicyConfigBuilder_ == null) { - return podSecurityPolicyConfig_ == null ? com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance() : podSecurityPolicyConfig_; - } else { - return podSecurityPolicyConfigBuilder_.getMessage(); - } - } - /** - *
-     * Configuration for the PodSecurityPolicy feature.
-     * 
- * - * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; - */ - public Builder setPodSecurityPolicyConfig(com.google.container.v1beta1.PodSecurityPolicyConfig value) { - if (podSecurityPolicyConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - podSecurityPolicyConfig_ = value; - onChanged(); - } else { - podSecurityPolicyConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for the PodSecurityPolicy feature.
-     * 
- * - * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; - */ - public Builder setPodSecurityPolicyConfig( - com.google.container.v1beta1.PodSecurityPolicyConfig.Builder builderForValue) { - if (podSecurityPolicyConfigBuilder_ == null) { - podSecurityPolicyConfig_ = builderForValue.build(); - onChanged(); - } else { - podSecurityPolicyConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for the PodSecurityPolicy feature.
-     * 
- * - * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; - */ - public Builder mergePodSecurityPolicyConfig(com.google.container.v1beta1.PodSecurityPolicyConfig value) { - if (podSecurityPolicyConfigBuilder_ == null) { - if (podSecurityPolicyConfig_ != null) { - podSecurityPolicyConfig_ = - com.google.container.v1beta1.PodSecurityPolicyConfig.newBuilder(podSecurityPolicyConfig_).mergeFrom(value).buildPartial(); - } else { - podSecurityPolicyConfig_ = value; - } - onChanged(); - } else { - podSecurityPolicyConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for the PodSecurityPolicy feature.
-     * 
- * - * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; - */ - public Builder clearPodSecurityPolicyConfig() { - if (podSecurityPolicyConfigBuilder_ == null) { - podSecurityPolicyConfig_ = null; - onChanged(); - } else { - podSecurityPolicyConfig_ = null; - podSecurityPolicyConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for the PodSecurityPolicy feature.
-     * 
- * - * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; - */ - public com.google.container.v1beta1.PodSecurityPolicyConfig.Builder getPodSecurityPolicyConfigBuilder() { - - onChanged(); - return getPodSecurityPolicyConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for the PodSecurityPolicy feature.
-     * 
- * - * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; - */ - public com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder getPodSecurityPolicyConfigOrBuilder() { - if (podSecurityPolicyConfigBuilder_ != null) { - return podSecurityPolicyConfigBuilder_.getMessageOrBuilder(); - } else { - return podSecurityPolicyConfig_ == null ? - com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance() : podSecurityPolicyConfig_; - } - } - /** - *
-     * Configuration for the PodSecurityPolicy feature.
-     * 
- * - * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.PodSecurityPolicyConfig, com.google.container.v1beta1.PodSecurityPolicyConfig.Builder, com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder> - getPodSecurityPolicyConfigFieldBuilder() { - if (podSecurityPolicyConfigBuilder_ == null) { - podSecurityPolicyConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.PodSecurityPolicyConfig, com.google.container.v1beta1.PodSecurityPolicyConfig.Builder, com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder>( - getPodSecurityPolicyConfig(), - getParentForChildren(), - isClean()); - podSecurityPolicyConfig_ = null; - } - return podSecurityPolicyConfigBuilder_; - } - - private com.google.container.v1beta1.ClusterAutoscaling autoscaling_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ClusterAutoscaling, com.google.container.v1beta1.ClusterAutoscaling.Builder, com.google.container.v1beta1.ClusterAutoscalingOrBuilder> autoscalingBuilder_; - /** - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; - * @return Whether the autoscaling field is set. - */ - public boolean hasAutoscaling() { - return autoscalingBuilder_ != null || autoscaling_ != null; - } - /** - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; - * @return The autoscaling. - */ - public com.google.container.v1beta1.ClusterAutoscaling getAutoscaling() { - if (autoscalingBuilder_ == null) { - return autoscaling_ == null ? com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance() : autoscaling_; - } else { - return autoscalingBuilder_.getMessage(); - } - } - /** - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; - */ - public Builder setAutoscaling(com.google.container.v1beta1.ClusterAutoscaling value) { - if (autoscalingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - autoscaling_ = value; - onChanged(); - } else { - autoscalingBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; - */ - public Builder setAutoscaling( - com.google.container.v1beta1.ClusterAutoscaling.Builder builderForValue) { - if (autoscalingBuilder_ == null) { - autoscaling_ = builderForValue.build(); - onChanged(); - } else { - autoscalingBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; - */ - public Builder mergeAutoscaling(com.google.container.v1beta1.ClusterAutoscaling value) { - if (autoscalingBuilder_ == null) { - if (autoscaling_ != null) { - autoscaling_ = - com.google.container.v1beta1.ClusterAutoscaling.newBuilder(autoscaling_).mergeFrom(value).buildPartial(); - } else { - autoscaling_ = value; - } - onChanged(); - } else { - autoscalingBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; - */ - public Builder clearAutoscaling() { - if (autoscalingBuilder_ == null) { - autoscaling_ = null; - onChanged(); - } else { - autoscaling_ = null; - autoscalingBuilder_ = null; - } - - return this; - } - /** - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; - */ - public com.google.container.v1beta1.ClusterAutoscaling.Builder getAutoscalingBuilder() { - - onChanged(); - return getAutoscalingFieldBuilder().getBuilder(); - } - /** - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; - */ - public com.google.container.v1beta1.ClusterAutoscalingOrBuilder getAutoscalingOrBuilder() { - if (autoscalingBuilder_ != null) { - return autoscalingBuilder_.getMessageOrBuilder(); - } else { - return autoscaling_ == null ? - com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance() : autoscaling_; - } - } - /** - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ClusterAutoscaling, com.google.container.v1beta1.ClusterAutoscaling.Builder, com.google.container.v1beta1.ClusterAutoscalingOrBuilder> - getAutoscalingFieldBuilder() { - if (autoscalingBuilder_ == null) { - autoscalingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ClusterAutoscaling, com.google.container.v1beta1.ClusterAutoscaling.Builder, com.google.container.v1beta1.ClusterAutoscalingOrBuilder>( - getAutoscaling(), - getParentForChildren(), - isClean()); - autoscaling_ = null; - } - return autoscalingBuilder_; - } - - private com.google.container.v1beta1.NetworkConfig networkConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NetworkConfig, com.google.container.v1beta1.NetworkConfig.Builder, com.google.container.v1beta1.NetworkConfigOrBuilder> networkConfigBuilder_; - /** - *
-     * Configuration for cluster networking.
-     * 
- * - * .google.container.v1beta1.NetworkConfig network_config = 27; - * @return Whether the networkConfig field is set. - */ - public boolean hasNetworkConfig() { - return networkConfigBuilder_ != null || networkConfig_ != null; - } - /** - *
-     * Configuration for cluster networking.
-     * 
- * - * .google.container.v1beta1.NetworkConfig network_config = 27; - * @return The networkConfig. - */ - public com.google.container.v1beta1.NetworkConfig getNetworkConfig() { - if (networkConfigBuilder_ == null) { - return networkConfig_ == null ? com.google.container.v1beta1.NetworkConfig.getDefaultInstance() : networkConfig_; - } else { - return networkConfigBuilder_.getMessage(); - } - } - /** - *
-     * Configuration for cluster networking.
-     * 
- * - * .google.container.v1beta1.NetworkConfig network_config = 27; - */ - public Builder setNetworkConfig(com.google.container.v1beta1.NetworkConfig value) { - if (networkConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - networkConfig_ = value; - onChanged(); - } else { - networkConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for cluster networking.
-     * 
- * - * .google.container.v1beta1.NetworkConfig network_config = 27; - */ - public Builder setNetworkConfig( - com.google.container.v1beta1.NetworkConfig.Builder builderForValue) { - if (networkConfigBuilder_ == null) { - networkConfig_ = builderForValue.build(); - onChanged(); - } else { - networkConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for cluster networking.
-     * 
- * - * .google.container.v1beta1.NetworkConfig network_config = 27; - */ - public Builder mergeNetworkConfig(com.google.container.v1beta1.NetworkConfig value) { - if (networkConfigBuilder_ == null) { - if (networkConfig_ != null) { - networkConfig_ = - com.google.container.v1beta1.NetworkConfig.newBuilder(networkConfig_).mergeFrom(value).buildPartial(); - } else { - networkConfig_ = value; - } - onChanged(); - } else { - networkConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for cluster networking.
-     * 
- * - * .google.container.v1beta1.NetworkConfig network_config = 27; - */ - public Builder clearNetworkConfig() { - if (networkConfigBuilder_ == null) { - networkConfig_ = null; - onChanged(); - } else { - networkConfig_ = null; - networkConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for cluster networking.
-     * 
- * - * .google.container.v1beta1.NetworkConfig network_config = 27; - */ - public com.google.container.v1beta1.NetworkConfig.Builder getNetworkConfigBuilder() { - - onChanged(); - return getNetworkConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for cluster networking.
-     * 
- * - * .google.container.v1beta1.NetworkConfig network_config = 27; - */ - public com.google.container.v1beta1.NetworkConfigOrBuilder getNetworkConfigOrBuilder() { - if (networkConfigBuilder_ != null) { - return networkConfigBuilder_.getMessageOrBuilder(); - } else { - return networkConfig_ == null ? - com.google.container.v1beta1.NetworkConfig.getDefaultInstance() : networkConfig_; - } - } - /** - *
-     * Configuration for cluster networking.
-     * 
- * - * .google.container.v1beta1.NetworkConfig network_config = 27; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NetworkConfig, com.google.container.v1beta1.NetworkConfig.Builder, com.google.container.v1beta1.NetworkConfigOrBuilder> - getNetworkConfigFieldBuilder() { - if (networkConfigBuilder_ == null) { - networkConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NetworkConfig, com.google.container.v1beta1.NetworkConfig.Builder, com.google.container.v1beta1.NetworkConfigOrBuilder>( - getNetworkConfig(), - getParentForChildren(), - isClean()); - networkConfig_ = null; - } - return networkConfigBuilder_; - } - - private boolean privateCluster_ ; - /** - *
-     * If this is a private cluster setup. Private clusters are clusters that, by
-     * default have no external IP addresses on the nodes and where nodes and the
-     * master communicate over private IP addresses.
-     * This field is deprecated, use private_cluster_config.enable_private_nodes
-     * instead.
-     * 
- * - * bool private_cluster = 28 [deprecated = true]; - * @deprecated google.container.v1beta1.Cluster.private_cluster is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1713 - * @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=1713 - * @param value The privateCluster to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setPrivateCluster(boolean value) { - - privateCluster_ = value; - onChanged(); - return this; - } - /** - *
-     * If this is a private cluster setup. Private clusters are clusters that, by
-     * default have no external IP addresses on the nodes and where nodes and the
-     * master communicate over private IP addresses.
-     * This field is deprecated, use private_cluster_config.enable_private_nodes
-     * instead.
-     * 
- * - * bool private_cluster = 28 [deprecated = true]; - * @deprecated google.container.v1beta1.Cluster.private_cluster is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1713 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearPrivateCluster() { - - privateCluster_ = false; - onChanged(); - return this; - } - - private java.lang.Object masterIpv4CidrBlock_ = ""; - /** - *
-     * The IP prefix in CIDR notation to use for the hosted master network.
-     * This prefix will be used for assigning private IP addresses to the
-     * master or set of masters, as well as the ILB VIP.
-     * This field is deprecated, use
-     * private_cluster_config.master_ipv4_cidr_block instead.
-     * 
- * - * string master_ipv4_cidr_block = 29 [deprecated = true]; - * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1720 - * @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=1720 - * @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=1720 - * @param value The masterIpv4CidrBlock to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setMasterIpv4CidrBlock( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - masterIpv4CidrBlock_ = value; - onChanged(); - return this; - } - /** - *
-     * The IP prefix in CIDR notation to use for the hosted master network.
-     * This prefix will be used for assigning private IP addresses to the
-     * master or set of masters, as well as the ILB VIP.
-     * This field is deprecated, use
-     * private_cluster_config.master_ipv4_cidr_block instead.
-     * 
- * - * string master_ipv4_cidr_block = 29 [deprecated = true]; - * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1720 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearMasterIpv4CidrBlock() { - - masterIpv4CidrBlock_ = getDefaultInstance().getMasterIpv4CidrBlock(); - onChanged(); - return this; - } - /** - *
-     * The IP prefix in CIDR notation to use for the hosted master network.
-     * This prefix will be used for assigning private IP addresses to the
-     * master or set of masters, as well as the ILB VIP.
-     * This field is deprecated, use
-     * private_cluster_config.master_ipv4_cidr_block instead.
-     * 
- * - * string master_ipv4_cidr_block = 29 [deprecated = true]; - * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1720 - * @param value The bytes for masterIpv4CidrBlock to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setMasterIpv4CidrBlockBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - masterIpv4CidrBlock_ = value; - onChanged(); - return this; - } - - private com.google.container.v1beta1.MaxPodsConstraint defaultMaxPodsConstraint_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MaxPodsConstraint, com.google.container.v1beta1.MaxPodsConstraint.Builder, com.google.container.v1beta1.MaxPodsConstraintOrBuilder> defaultMaxPodsConstraintBuilder_; - /** - *
-     * The default constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool of this cluster. Only honored
-     * if cluster created with IP Alias support.
-     * 
- * - * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; - * @return Whether the defaultMaxPodsConstraint field is set. - */ - public boolean hasDefaultMaxPodsConstraint() { - return defaultMaxPodsConstraintBuilder_ != null || defaultMaxPodsConstraint_ != null; - } - /** - *
-     * The default constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool of this cluster. Only honored
-     * if cluster created with IP Alias support.
-     * 
- * - * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; - * @return The defaultMaxPodsConstraint. - */ - public com.google.container.v1beta1.MaxPodsConstraint getDefaultMaxPodsConstraint() { - if (defaultMaxPodsConstraintBuilder_ == null) { - return defaultMaxPodsConstraint_ == null ? com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance() : defaultMaxPodsConstraint_; - } else { - return defaultMaxPodsConstraintBuilder_.getMessage(); - } - } - /** - *
-     * The default constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool of this cluster. Only honored
-     * if cluster created with IP Alias support.
-     * 
- * - * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; - */ - public Builder setDefaultMaxPodsConstraint(com.google.container.v1beta1.MaxPodsConstraint value) { - if (defaultMaxPodsConstraintBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - defaultMaxPodsConstraint_ = value; - onChanged(); - } else { - defaultMaxPodsConstraintBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The default constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool of this cluster. Only honored
-     * if cluster created with IP Alias support.
-     * 
- * - * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; - */ - public Builder setDefaultMaxPodsConstraint( - com.google.container.v1beta1.MaxPodsConstraint.Builder builderForValue) { - if (defaultMaxPodsConstraintBuilder_ == null) { - defaultMaxPodsConstraint_ = builderForValue.build(); - onChanged(); - } else { - defaultMaxPodsConstraintBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The default constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool of this cluster. Only honored
-     * if cluster created with IP Alias support.
-     * 
- * - * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; - */ - public Builder mergeDefaultMaxPodsConstraint(com.google.container.v1beta1.MaxPodsConstraint value) { - if (defaultMaxPodsConstraintBuilder_ == null) { - if (defaultMaxPodsConstraint_ != null) { - defaultMaxPodsConstraint_ = - com.google.container.v1beta1.MaxPodsConstraint.newBuilder(defaultMaxPodsConstraint_).mergeFrom(value).buildPartial(); - } else { - defaultMaxPodsConstraint_ = value; - } - onChanged(); - } else { - defaultMaxPodsConstraintBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The default constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool of this cluster. Only honored
-     * if cluster created with IP Alias support.
-     * 
- * - * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; - */ - public Builder clearDefaultMaxPodsConstraint() { - if (defaultMaxPodsConstraintBuilder_ == null) { - defaultMaxPodsConstraint_ = null; - onChanged(); - } else { - defaultMaxPodsConstraint_ = null; - defaultMaxPodsConstraintBuilder_ = null; - } - - return this; - } - /** - *
-     * The default constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool of this cluster. Only honored
-     * if cluster created with IP Alias support.
-     * 
- * - * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; - */ - public com.google.container.v1beta1.MaxPodsConstraint.Builder getDefaultMaxPodsConstraintBuilder() { - - onChanged(); - return getDefaultMaxPodsConstraintFieldBuilder().getBuilder(); - } - /** - *
-     * The default constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool of this cluster. Only honored
-     * if cluster created with IP Alias support.
-     * 
- * - * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; - */ - public com.google.container.v1beta1.MaxPodsConstraintOrBuilder getDefaultMaxPodsConstraintOrBuilder() { - if (defaultMaxPodsConstraintBuilder_ != null) { - return defaultMaxPodsConstraintBuilder_.getMessageOrBuilder(); - } else { - return defaultMaxPodsConstraint_ == null ? - com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance() : defaultMaxPodsConstraint_; - } - } - /** - *
-     * The default constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool of this cluster. Only honored
-     * if cluster created with IP Alias support.
-     * 
- * - * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MaxPodsConstraint, com.google.container.v1beta1.MaxPodsConstraint.Builder, com.google.container.v1beta1.MaxPodsConstraintOrBuilder> - getDefaultMaxPodsConstraintFieldBuilder() { - if (defaultMaxPodsConstraintBuilder_ == null) { - defaultMaxPodsConstraintBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MaxPodsConstraint, com.google.container.v1beta1.MaxPodsConstraint.Builder, com.google.container.v1beta1.MaxPodsConstraintOrBuilder>( - getDefaultMaxPodsConstraint(), - getParentForChildren(), - isClean()); - defaultMaxPodsConstraint_ = null; - } - return defaultMaxPodsConstraintBuilder_; - } - - private com.google.container.v1beta1.ResourceUsageExportConfig resourceUsageExportConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ResourceUsageExportConfig, com.google.container.v1beta1.ResourceUsageExportConfig.Builder, com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder> resourceUsageExportConfigBuilder_; - /** - *
-     * Configuration for exporting resource usages. Resource usage export is
-     * disabled when this config unspecified.
-     * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; - * @return Whether the resourceUsageExportConfig field is set. - */ - public boolean hasResourceUsageExportConfig() { - return resourceUsageExportConfigBuilder_ != null || resourceUsageExportConfig_ != null; - } - /** - *
-     * Configuration for exporting resource usages. Resource usage export is
-     * disabled when this config unspecified.
-     * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; - * @return The resourceUsageExportConfig. - */ - public com.google.container.v1beta1.ResourceUsageExportConfig getResourceUsageExportConfig() { - if (resourceUsageExportConfigBuilder_ == null) { - return resourceUsageExportConfig_ == null ? com.google.container.v1beta1.ResourceUsageExportConfig.getDefaultInstance() : resourceUsageExportConfig_; - } else { - return resourceUsageExportConfigBuilder_.getMessage(); - } - } - /** - *
-     * Configuration for exporting resource usages. Resource usage export is
-     * disabled when this config unspecified.
-     * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; - */ - public Builder setResourceUsageExportConfig(com.google.container.v1beta1.ResourceUsageExportConfig value) { - if (resourceUsageExportConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resourceUsageExportConfig_ = value; - onChanged(); - } else { - resourceUsageExportConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for exporting resource usages. Resource usage export is
-     * disabled when this config unspecified.
-     * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; - */ - public Builder setResourceUsageExportConfig( - com.google.container.v1beta1.ResourceUsageExportConfig.Builder builderForValue) { - if (resourceUsageExportConfigBuilder_ == null) { - resourceUsageExportConfig_ = builderForValue.build(); - onChanged(); - } else { - resourceUsageExportConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for exporting resource usages. Resource usage export is
-     * disabled when this config unspecified.
-     * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; - */ - public Builder mergeResourceUsageExportConfig(com.google.container.v1beta1.ResourceUsageExportConfig value) { - if (resourceUsageExportConfigBuilder_ == null) { - if (resourceUsageExportConfig_ != null) { - resourceUsageExportConfig_ = - com.google.container.v1beta1.ResourceUsageExportConfig.newBuilder(resourceUsageExportConfig_).mergeFrom(value).buildPartial(); - } else { - resourceUsageExportConfig_ = value; - } - onChanged(); - } else { - resourceUsageExportConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for exporting resource usages. Resource usage export is
-     * disabled when this config unspecified.
-     * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; - */ - public Builder clearResourceUsageExportConfig() { - if (resourceUsageExportConfigBuilder_ == null) { - resourceUsageExportConfig_ = null; - onChanged(); - } else { - resourceUsageExportConfig_ = null; - resourceUsageExportConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for exporting resource usages. Resource usage export is
-     * disabled when this config unspecified.
-     * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; - */ - public com.google.container.v1beta1.ResourceUsageExportConfig.Builder getResourceUsageExportConfigBuilder() { - - onChanged(); - return getResourceUsageExportConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for exporting resource usages. Resource usage export is
-     * disabled when this config unspecified.
-     * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; - */ - public com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder getResourceUsageExportConfigOrBuilder() { - if (resourceUsageExportConfigBuilder_ != null) { - return resourceUsageExportConfigBuilder_.getMessageOrBuilder(); - } else { - return resourceUsageExportConfig_ == null ? - com.google.container.v1beta1.ResourceUsageExportConfig.getDefaultInstance() : resourceUsageExportConfig_; - } - } - /** - *
-     * Configuration for exporting resource usages. Resource usage export is
-     * disabled when this config unspecified.
-     * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ResourceUsageExportConfig, com.google.container.v1beta1.ResourceUsageExportConfig.Builder, com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder> - getResourceUsageExportConfigFieldBuilder() { - if (resourceUsageExportConfigBuilder_ == null) { - resourceUsageExportConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ResourceUsageExportConfig, com.google.container.v1beta1.ResourceUsageExportConfig.Builder, com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder>( - getResourceUsageExportConfig(), - getParentForChildren(), - isClean()); - resourceUsageExportConfig_ = null; - } - return resourceUsageExportConfigBuilder_; - } - - private com.google.container.v1beta1.AuthenticatorGroupsConfig authenticatorGroupsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AuthenticatorGroupsConfig, com.google.container.v1beta1.AuthenticatorGroupsConfig.Builder, com.google.container.v1beta1.AuthenticatorGroupsConfigOrBuilder> authenticatorGroupsConfigBuilder_; - /** - *
-     * Configuration controlling RBAC group membership information.
-     * 
- * - * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - * @return Whether the authenticatorGroupsConfig field is set. - */ - public boolean hasAuthenticatorGroupsConfig() { - return authenticatorGroupsConfigBuilder_ != null || authenticatorGroupsConfig_ != null; - } - /** - *
-     * Configuration controlling RBAC group membership information.
-     * 
- * - * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - * @return The authenticatorGroupsConfig. - */ - public com.google.container.v1beta1.AuthenticatorGroupsConfig getAuthenticatorGroupsConfig() { - if (authenticatorGroupsConfigBuilder_ == null) { - return authenticatorGroupsConfig_ == null ? com.google.container.v1beta1.AuthenticatorGroupsConfig.getDefaultInstance() : authenticatorGroupsConfig_; - } else { - return authenticatorGroupsConfigBuilder_.getMessage(); - } - } - /** - *
-     * Configuration controlling RBAC group membership information.
-     * 
- * - * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - */ - public Builder setAuthenticatorGroupsConfig(com.google.container.v1beta1.AuthenticatorGroupsConfig value) { - if (authenticatorGroupsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - authenticatorGroupsConfig_ = value; - onChanged(); - } else { - authenticatorGroupsConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration controlling RBAC group membership information.
-     * 
- * - * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - */ - public Builder setAuthenticatorGroupsConfig( - com.google.container.v1beta1.AuthenticatorGroupsConfig.Builder builderForValue) { - if (authenticatorGroupsConfigBuilder_ == null) { - authenticatorGroupsConfig_ = builderForValue.build(); - onChanged(); - } else { - authenticatorGroupsConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration controlling RBAC group membership information.
-     * 
- * - * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - */ - public Builder mergeAuthenticatorGroupsConfig(com.google.container.v1beta1.AuthenticatorGroupsConfig value) { - if (authenticatorGroupsConfigBuilder_ == null) { - if (authenticatorGroupsConfig_ != null) { - authenticatorGroupsConfig_ = - com.google.container.v1beta1.AuthenticatorGroupsConfig.newBuilder(authenticatorGroupsConfig_).mergeFrom(value).buildPartial(); - } else { - authenticatorGroupsConfig_ = value; - } - onChanged(); - } else { - authenticatorGroupsConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration controlling RBAC group membership information.
-     * 
- * - * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - */ - public Builder clearAuthenticatorGroupsConfig() { - if (authenticatorGroupsConfigBuilder_ == null) { - authenticatorGroupsConfig_ = null; - onChanged(); - } else { - authenticatorGroupsConfig_ = null; - authenticatorGroupsConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration controlling RBAC group membership information.
-     * 
- * - * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - */ - public com.google.container.v1beta1.AuthenticatorGroupsConfig.Builder getAuthenticatorGroupsConfigBuilder() { - - onChanged(); - return getAuthenticatorGroupsConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration controlling RBAC group membership information.
-     * 
- * - * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - */ - public com.google.container.v1beta1.AuthenticatorGroupsConfigOrBuilder getAuthenticatorGroupsConfigOrBuilder() { - if (authenticatorGroupsConfigBuilder_ != null) { - return authenticatorGroupsConfigBuilder_.getMessageOrBuilder(); - } else { - return authenticatorGroupsConfig_ == null ? - com.google.container.v1beta1.AuthenticatorGroupsConfig.getDefaultInstance() : authenticatorGroupsConfig_; - } - } - /** - *
-     * Configuration controlling RBAC group membership information.
-     * 
- * - * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AuthenticatorGroupsConfig, com.google.container.v1beta1.AuthenticatorGroupsConfig.Builder, com.google.container.v1beta1.AuthenticatorGroupsConfigOrBuilder> - getAuthenticatorGroupsConfigFieldBuilder() { - if (authenticatorGroupsConfigBuilder_ == null) { - authenticatorGroupsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AuthenticatorGroupsConfig, com.google.container.v1beta1.AuthenticatorGroupsConfig.Builder, com.google.container.v1beta1.AuthenticatorGroupsConfigOrBuilder>( - getAuthenticatorGroupsConfig(), - getParentForChildren(), - isClean()); - authenticatorGroupsConfig_ = null; - } - return authenticatorGroupsConfigBuilder_; - } - - private com.google.container.v1beta1.PrivateClusterConfig privateClusterConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.PrivateClusterConfig, com.google.container.v1beta1.PrivateClusterConfig.Builder, com.google.container.v1beta1.PrivateClusterConfigOrBuilder> privateClusterConfigBuilder_; - /** - *
-     * Configuration for private cluster.
-     * 
- * - * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; - * @return Whether the privateClusterConfig field is set. - */ - public boolean hasPrivateClusterConfig() { - return privateClusterConfigBuilder_ != null || privateClusterConfig_ != null; - } - /** - *
-     * Configuration for private cluster.
-     * 
- * - * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; - * @return The privateClusterConfig. - */ - public com.google.container.v1beta1.PrivateClusterConfig getPrivateClusterConfig() { - if (privateClusterConfigBuilder_ == null) { - return privateClusterConfig_ == null ? com.google.container.v1beta1.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; - } else { - return privateClusterConfigBuilder_.getMessage(); - } - } - /** - *
-     * Configuration for private cluster.
-     * 
- * - * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; - */ - public Builder setPrivateClusterConfig(com.google.container.v1beta1.PrivateClusterConfig value) { - if (privateClusterConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - privateClusterConfig_ = value; - onChanged(); - } else { - privateClusterConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for private cluster.
-     * 
- * - * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; - */ - public Builder setPrivateClusterConfig( - com.google.container.v1beta1.PrivateClusterConfig.Builder builderForValue) { - if (privateClusterConfigBuilder_ == null) { - privateClusterConfig_ = builderForValue.build(); - onChanged(); - } else { - privateClusterConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for private cluster.
-     * 
- * - * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; - */ - public Builder mergePrivateClusterConfig(com.google.container.v1beta1.PrivateClusterConfig value) { - if (privateClusterConfigBuilder_ == null) { - if (privateClusterConfig_ != null) { - privateClusterConfig_ = - com.google.container.v1beta1.PrivateClusterConfig.newBuilder(privateClusterConfig_).mergeFrom(value).buildPartial(); - } else { - privateClusterConfig_ = value; - } - onChanged(); - } else { - privateClusterConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for private cluster.
-     * 
- * - * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; - */ - public Builder clearPrivateClusterConfig() { - if (privateClusterConfigBuilder_ == null) { - privateClusterConfig_ = null; - onChanged(); - } else { - privateClusterConfig_ = null; - privateClusterConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for private cluster.
-     * 
- * - * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; - */ - public com.google.container.v1beta1.PrivateClusterConfig.Builder getPrivateClusterConfigBuilder() { - - onChanged(); - return getPrivateClusterConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for private cluster.
-     * 
- * - * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; - */ - public com.google.container.v1beta1.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder() { - if (privateClusterConfigBuilder_ != null) { - return privateClusterConfigBuilder_.getMessageOrBuilder(); - } else { - return privateClusterConfig_ == null ? - com.google.container.v1beta1.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; - } - } - /** - *
-     * Configuration for private cluster.
-     * 
- * - * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.PrivateClusterConfig, com.google.container.v1beta1.PrivateClusterConfig.Builder, com.google.container.v1beta1.PrivateClusterConfigOrBuilder> - getPrivateClusterConfigFieldBuilder() { - if (privateClusterConfigBuilder_ == null) { - privateClusterConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.PrivateClusterConfig, com.google.container.v1beta1.PrivateClusterConfig.Builder, com.google.container.v1beta1.PrivateClusterConfigOrBuilder>( - getPrivateClusterConfig(), - getParentForChildren(), - isClean()); - privateClusterConfig_ = null; - } - return privateClusterConfigBuilder_; - } - - private com.google.container.v1beta1.VerticalPodAutoscaling verticalPodAutoscaling_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.VerticalPodAutoscaling, com.google.container.v1beta1.VerticalPodAutoscaling.Builder, com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder> verticalPodAutoscalingBuilder_; - /** - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - * @return Whether the verticalPodAutoscaling field is set. - */ - public boolean hasVerticalPodAutoscaling() { - return verticalPodAutoscalingBuilder_ != null || verticalPodAutoscaling_ != null; - } - /** - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - * @return The verticalPodAutoscaling. - */ - public com.google.container.v1beta1.VerticalPodAutoscaling getVerticalPodAutoscaling() { - if (verticalPodAutoscalingBuilder_ == null) { - return verticalPodAutoscaling_ == null ? com.google.container.v1beta1.VerticalPodAutoscaling.getDefaultInstance() : verticalPodAutoscaling_; - } else { - return verticalPodAutoscalingBuilder_.getMessage(); - } - } - /** - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - */ - public Builder setVerticalPodAutoscaling(com.google.container.v1beta1.VerticalPodAutoscaling value) { - if (verticalPodAutoscalingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - verticalPodAutoscaling_ = value; - onChanged(); - } else { - verticalPodAutoscalingBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - */ - public Builder setVerticalPodAutoscaling( - com.google.container.v1beta1.VerticalPodAutoscaling.Builder builderForValue) { - if (verticalPodAutoscalingBuilder_ == null) { - verticalPodAutoscaling_ = builderForValue.build(); - onChanged(); - } else { - verticalPodAutoscalingBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - */ - public Builder mergeVerticalPodAutoscaling(com.google.container.v1beta1.VerticalPodAutoscaling value) { - if (verticalPodAutoscalingBuilder_ == null) { - if (verticalPodAutoscaling_ != null) { - verticalPodAutoscaling_ = - com.google.container.v1beta1.VerticalPodAutoscaling.newBuilder(verticalPodAutoscaling_).mergeFrom(value).buildPartial(); - } else { - verticalPodAutoscaling_ = value; - } - onChanged(); - } else { - verticalPodAutoscalingBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - */ - public Builder clearVerticalPodAutoscaling() { - if (verticalPodAutoscalingBuilder_ == null) { - verticalPodAutoscaling_ = null; - onChanged(); - } else { - verticalPodAutoscaling_ = null; - verticalPodAutoscalingBuilder_ = null; - } - - return this; - } - /** - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - */ - public com.google.container.v1beta1.VerticalPodAutoscaling.Builder getVerticalPodAutoscalingBuilder() { - - onChanged(); - return getVerticalPodAutoscalingFieldBuilder().getBuilder(); - } - /** - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - */ - public com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder getVerticalPodAutoscalingOrBuilder() { - if (verticalPodAutoscalingBuilder_ != null) { - return verticalPodAutoscalingBuilder_.getMessageOrBuilder(); - } else { - return verticalPodAutoscaling_ == null ? - com.google.container.v1beta1.VerticalPodAutoscaling.getDefaultInstance() : verticalPodAutoscaling_; - } - } - /** - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.VerticalPodAutoscaling, com.google.container.v1beta1.VerticalPodAutoscaling.Builder, com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder> - getVerticalPodAutoscalingFieldBuilder() { - if (verticalPodAutoscalingBuilder_ == null) { - verticalPodAutoscalingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.VerticalPodAutoscaling, com.google.container.v1beta1.VerticalPodAutoscaling.Builder, com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder>( - getVerticalPodAutoscaling(), - getParentForChildren(), - isClean()); - verticalPodAutoscaling_ = null; - } - return verticalPodAutoscalingBuilder_; - } - - private com.google.container.v1beta1.ShieldedNodes shieldedNodes_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ShieldedNodes, com.google.container.v1beta1.ShieldedNodes.Builder, com.google.container.v1beta1.ShieldedNodesOrBuilder> shieldedNodesBuilder_; - /** - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; - * @return Whether the shieldedNodes field is set. - */ - public boolean hasShieldedNodes() { - return shieldedNodesBuilder_ != null || shieldedNodes_ != null; - } - /** - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; - * @return The shieldedNodes. - */ - public com.google.container.v1beta1.ShieldedNodes getShieldedNodes() { - if (shieldedNodesBuilder_ == null) { - return shieldedNodes_ == null ? com.google.container.v1beta1.ShieldedNodes.getDefaultInstance() : shieldedNodes_; - } else { - return shieldedNodesBuilder_.getMessage(); - } - } - /** - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; - */ - public Builder setShieldedNodes(com.google.container.v1beta1.ShieldedNodes value) { - if (shieldedNodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - shieldedNodes_ = value; - onChanged(); - } else { - shieldedNodesBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; - */ - public Builder setShieldedNodes( - com.google.container.v1beta1.ShieldedNodes.Builder builderForValue) { - if (shieldedNodesBuilder_ == null) { - shieldedNodes_ = builderForValue.build(); - onChanged(); - } else { - shieldedNodesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; - */ - public Builder mergeShieldedNodes(com.google.container.v1beta1.ShieldedNodes value) { - if (shieldedNodesBuilder_ == null) { - if (shieldedNodes_ != null) { - shieldedNodes_ = - com.google.container.v1beta1.ShieldedNodes.newBuilder(shieldedNodes_).mergeFrom(value).buildPartial(); - } else { - shieldedNodes_ = value; - } - onChanged(); - } else { - shieldedNodesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; - */ - public Builder clearShieldedNodes() { - if (shieldedNodesBuilder_ == null) { - shieldedNodes_ = null; - onChanged(); - } else { - shieldedNodes_ = null; - shieldedNodesBuilder_ = null; - } - - return this; - } - /** - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; - */ - public com.google.container.v1beta1.ShieldedNodes.Builder getShieldedNodesBuilder() { - - onChanged(); - return getShieldedNodesFieldBuilder().getBuilder(); - } - /** - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; - */ - public com.google.container.v1beta1.ShieldedNodesOrBuilder getShieldedNodesOrBuilder() { - if (shieldedNodesBuilder_ != null) { - return shieldedNodesBuilder_.getMessageOrBuilder(); - } else { - return shieldedNodes_ == null ? - com.google.container.v1beta1.ShieldedNodes.getDefaultInstance() : shieldedNodes_; - } - } - /** - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ShieldedNodes, com.google.container.v1beta1.ShieldedNodes.Builder, com.google.container.v1beta1.ShieldedNodesOrBuilder> - getShieldedNodesFieldBuilder() { - if (shieldedNodesBuilder_ == null) { - shieldedNodesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ShieldedNodes, com.google.container.v1beta1.ShieldedNodes.Builder, com.google.container.v1beta1.ShieldedNodesOrBuilder>( - getShieldedNodes(), - getParentForChildren(), - isClean()); - shieldedNodes_ = null; - } - return shieldedNodesBuilder_; - } - - private com.google.container.v1beta1.ReleaseChannel releaseChannel_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ReleaseChannel, com.google.container.v1beta1.ReleaseChannel.Builder, com.google.container.v1beta1.ReleaseChannelOrBuilder> releaseChannelBuilder_; - /** - *
-     * Release channel configuration.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 41; - * @return Whether the releaseChannel field is set. - */ - public boolean hasReleaseChannel() { - return releaseChannelBuilder_ != null || releaseChannel_ != null; - } - /** - *
-     * Release channel configuration.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 41; - * @return The releaseChannel. - */ - public com.google.container.v1beta1.ReleaseChannel getReleaseChannel() { - if (releaseChannelBuilder_ == null) { - return releaseChannel_ == null ? com.google.container.v1beta1.ReleaseChannel.getDefaultInstance() : releaseChannel_; - } else { - return releaseChannelBuilder_.getMessage(); - } - } - /** - *
-     * Release channel configuration.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 41; - */ - public Builder setReleaseChannel(com.google.container.v1beta1.ReleaseChannel value) { - if (releaseChannelBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - releaseChannel_ = value; - onChanged(); - } else { - releaseChannelBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Release channel configuration.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 41; - */ - public Builder setReleaseChannel( - com.google.container.v1beta1.ReleaseChannel.Builder builderForValue) { - if (releaseChannelBuilder_ == null) { - releaseChannel_ = builderForValue.build(); - onChanged(); - } else { - releaseChannelBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Release channel configuration.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 41; - */ - public Builder mergeReleaseChannel(com.google.container.v1beta1.ReleaseChannel value) { - if (releaseChannelBuilder_ == null) { - if (releaseChannel_ != null) { - releaseChannel_ = - com.google.container.v1beta1.ReleaseChannel.newBuilder(releaseChannel_).mergeFrom(value).buildPartial(); - } else { - releaseChannel_ = value; - } - onChanged(); - } else { - releaseChannelBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Release channel configuration.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 41; - */ - public Builder clearReleaseChannel() { - if (releaseChannelBuilder_ == null) { - releaseChannel_ = null; - onChanged(); - } else { - releaseChannel_ = null; - releaseChannelBuilder_ = null; - } - - return this; - } - /** - *
-     * Release channel configuration.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 41; - */ - public com.google.container.v1beta1.ReleaseChannel.Builder getReleaseChannelBuilder() { - - onChanged(); - return getReleaseChannelFieldBuilder().getBuilder(); - } - /** - *
-     * Release channel configuration.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 41; - */ - public com.google.container.v1beta1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder() { - if (releaseChannelBuilder_ != null) { - return releaseChannelBuilder_.getMessageOrBuilder(); - } else { - return releaseChannel_ == null ? - com.google.container.v1beta1.ReleaseChannel.getDefaultInstance() : releaseChannel_; - } - } - /** - *
-     * Release channel configuration.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 41; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ReleaseChannel, com.google.container.v1beta1.ReleaseChannel.Builder, com.google.container.v1beta1.ReleaseChannelOrBuilder> - getReleaseChannelFieldBuilder() { - if (releaseChannelBuilder_ == null) { - releaseChannelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ReleaseChannel, com.google.container.v1beta1.ReleaseChannel.Builder, com.google.container.v1beta1.ReleaseChannelOrBuilder>( - getReleaseChannel(), - getParentForChildren(), - isClean()); - releaseChannel_ = null; - } - return releaseChannelBuilder_; - } - - private com.google.container.v1beta1.WorkloadIdentityConfig workloadIdentityConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WorkloadIdentityConfig, com.google.container.v1beta1.WorkloadIdentityConfig.Builder, com.google.container.v1beta1.WorkloadIdentityConfigOrBuilder> workloadIdentityConfigBuilder_; - /** - *
-     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-     * policies.
-     * 
- * - * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; - * @return Whether the workloadIdentityConfig field is set. - */ - public boolean hasWorkloadIdentityConfig() { - return workloadIdentityConfigBuilder_ != null || workloadIdentityConfig_ != null; - } - /** - *
-     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-     * policies.
-     * 
- * - * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; - * @return The workloadIdentityConfig. - */ - public com.google.container.v1beta1.WorkloadIdentityConfig getWorkloadIdentityConfig() { - if (workloadIdentityConfigBuilder_ == null) { - return workloadIdentityConfig_ == null ? com.google.container.v1beta1.WorkloadIdentityConfig.getDefaultInstance() : workloadIdentityConfig_; - } else { - return workloadIdentityConfigBuilder_.getMessage(); - } - } - /** - *
-     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-     * policies.
-     * 
- * - * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; - */ - public Builder setWorkloadIdentityConfig(com.google.container.v1beta1.WorkloadIdentityConfig value) { - if (workloadIdentityConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workloadIdentityConfig_ = value; - onChanged(); - } else { - workloadIdentityConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-     * policies.
-     * 
- * - * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; - */ - public Builder setWorkloadIdentityConfig( - com.google.container.v1beta1.WorkloadIdentityConfig.Builder builderForValue) { - if (workloadIdentityConfigBuilder_ == null) { - workloadIdentityConfig_ = builderForValue.build(); - onChanged(); - } else { - workloadIdentityConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-     * policies.
-     * 
- * - * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; - */ - public Builder mergeWorkloadIdentityConfig(com.google.container.v1beta1.WorkloadIdentityConfig value) { - if (workloadIdentityConfigBuilder_ == null) { - if (workloadIdentityConfig_ != null) { - workloadIdentityConfig_ = - com.google.container.v1beta1.WorkloadIdentityConfig.newBuilder(workloadIdentityConfig_).mergeFrom(value).buildPartial(); - } else { - workloadIdentityConfig_ = value; - } - onChanged(); - } else { - workloadIdentityConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-     * policies.
-     * 
- * - * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; - */ - public Builder clearWorkloadIdentityConfig() { - if (workloadIdentityConfigBuilder_ == null) { - workloadIdentityConfig_ = null; - onChanged(); - } else { - workloadIdentityConfig_ = null; - workloadIdentityConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-     * policies.
-     * 
- * - * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; - */ - public com.google.container.v1beta1.WorkloadIdentityConfig.Builder getWorkloadIdentityConfigBuilder() { - - onChanged(); - return getWorkloadIdentityConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-     * policies.
-     * 
- * - * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; - */ - public com.google.container.v1beta1.WorkloadIdentityConfigOrBuilder getWorkloadIdentityConfigOrBuilder() { - if (workloadIdentityConfigBuilder_ != null) { - return workloadIdentityConfigBuilder_.getMessageOrBuilder(); - } else { - return workloadIdentityConfig_ == null ? - com.google.container.v1beta1.WorkloadIdentityConfig.getDefaultInstance() : workloadIdentityConfig_; - } - } - /** - *
-     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-     * policies.
-     * 
- * - * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WorkloadIdentityConfig, com.google.container.v1beta1.WorkloadIdentityConfig.Builder, com.google.container.v1beta1.WorkloadIdentityConfigOrBuilder> - getWorkloadIdentityConfigFieldBuilder() { - if (workloadIdentityConfigBuilder_ == null) { - workloadIdentityConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WorkloadIdentityConfig, com.google.container.v1beta1.WorkloadIdentityConfig.Builder, com.google.container.v1beta1.WorkloadIdentityConfigOrBuilder>( - getWorkloadIdentityConfig(), - getParentForChildren(), - isClean()); - workloadIdentityConfig_ = null; - } - return workloadIdentityConfigBuilder_; - } - - private com.google.container.v1beta1.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 workloadCertificatesBuilder_ != null || workloadCertificates_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - workloadCertificatesBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - workloadCertificatesBuilder_.setMessage(builderForValue.build()); - } - - 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 (workloadCertificates_ != null) { - workloadCertificates_ = - com.google.container.v1beta1.WorkloadCertificates.newBuilder(workloadCertificates_).mergeFrom(value).buildPartial(); - } else { - workloadCertificates_ = value; - } - onChanged(); - } else { - workloadCertificatesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.WorkloadCertificates workload_certificates = 52; - */ - public Builder clearWorkloadCertificates() { - if (workloadCertificatesBuilder_ == null) { - workloadCertificates_ = null; - onChanged(); - } else { - workloadCertificates_ = null; - workloadCertificatesBuilder_ = null; - } - - 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() { - - 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 meshCertificatesBuilder_ != null || meshCertificates_ != null; - } - /** - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; - * @return The meshCertificates. - */ - public com.google.container.v1beta1.MeshCertificates getMeshCertificates() { - if (meshCertificatesBuilder_ == null) { - return meshCertificates_ == null ? com.google.container.v1beta1.MeshCertificates.getDefaultInstance() : meshCertificates_; - } else { - return meshCertificatesBuilder_.getMessage(); - } - } - /** - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; - */ - public Builder setMeshCertificates(com.google.container.v1beta1.MeshCertificates value) { - if (meshCertificatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - meshCertificates_ = value; - onChanged(); - } else { - meshCertificatesBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; - */ - public Builder setMeshCertificates( - com.google.container.v1beta1.MeshCertificates.Builder builderForValue) { - if (meshCertificatesBuilder_ == null) { - meshCertificates_ = builderForValue.build(); - onChanged(); - } else { - meshCertificatesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; - */ - public Builder mergeMeshCertificates(com.google.container.v1beta1.MeshCertificates value) { - if (meshCertificatesBuilder_ == null) { - if (meshCertificates_ != null) { - meshCertificates_ = - com.google.container.v1beta1.MeshCertificates.newBuilder(meshCertificates_).mergeFrom(value).buildPartial(); - } else { - meshCertificates_ = value; - } - onChanged(); - } else { - meshCertificatesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; - */ - public Builder clearMeshCertificates() { - if (meshCertificatesBuilder_ == null) { - meshCertificates_ = null; - onChanged(); - } else { - meshCertificates_ = null; - meshCertificatesBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; - */ - public com.google.container.v1beta1.MeshCertificates.Builder getMeshCertificatesBuilder() { - - onChanged(); - return getMeshCertificatesFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; - */ - public com.google.container.v1beta1.MeshCertificatesOrBuilder getMeshCertificatesOrBuilder() { - if (meshCertificatesBuilder_ != null) { - return meshCertificatesBuilder_.getMessageOrBuilder(); - } else { - return meshCertificates_ == null ? - com.google.container.v1beta1.MeshCertificates.getDefaultInstance() : meshCertificates_; - } - } - /** - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MeshCertificates, com.google.container.v1beta1.MeshCertificates.Builder, com.google.container.v1beta1.MeshCertificatesOrBuilder> - getMeshCertificatesFieldBuilder() { - if (meshCertificatesBuilder_ == null) { - meshCertificatesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MeshCertificates, com.google.container.v1beta1.MeshCertificates.Builder, com.google.container.v1beta1.MeshCertificatesOrBuilder>( - getMeshCertificates(), - getParentForChildren(), - isClean()); - meshCertificates_ = null; - } - return meshCertificatesBuilder_; - } - - private com.google.container.v1beta1.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 workloadAltsConfigBuilder_ != null || workloadAltsConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - workloadAltsConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - workloadAltsConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (workloadAltsConfig_ != null) { - workloadAltsConfig_ = - com.google.container.v1beta1.WorkloadALTSConfig.newBuilder(workloadAltsConfig_).mergeFrom(value).buildPartial(); - } else { - workloadAltsConfig_ = value; - } - onChanged(); - } else { - workloadAltsConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for direct-path (via ALTS) with workload identity.
-     * 
- * - * .google.container.v1beta1.WorkloadALTSConfig workload_alts_config = 53; - */ - public Builder clearWorkloadAltsConfig() { - if (workloadAltsConfigBuilder_ == null) { - workloadAltsConfig_ = null; - onChanged(); - } else { - workloadAltsConfig_ = null; - workloadAltsConfigBuilder_ = null; - } - - 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() { - - 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 costManagementConfigBuilder_ != null || costManagementConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - costManagementConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - costManagementConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (costManagementConfig_ != null) { - costManagementConfig_ = - com.google.container.v1beta1.CostManagementConfig.newBuilder(costManagementConfig_).mergeFrom(value).buildPartial(); - } else { - costManagementConfig_ = value; - } - onChanged(); - } else { - costManagementConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1beta1.CostManagementConfig cost_management_config = 45; - */ - public Builder clearCostManagementConfig() { - if (costManagementConfigBuilder_ == null) { - costManagementConfig_ = null; - onChanged(); - } else { - costManagementConfig_ = null; - costManagementConfigBuilder_ = null; - } - - 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() { - - 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 clusterTelemetryBuilder_ != null || clusterTelemetry_ != null; - } - /** - *
-     * Telemetry integration for the cluster.
-     * 
- * - * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; - * @return The clusterTelemetry. - */ - public com.google.container.v1beta1.ClusterTelemetry getClusterTelemetry() { - if (clusterTelemetryBuilder_ == null) { - return clusterTelemetry_ == null ? com.google.container.v1beta1.ClusterTelemetry.getDefaultInstance() : clusterTelemetry_; - } else { - return clusterTelemetryBuilder_.getMessage(); - } - } - /** - *
-     * Telemetry integration for the cluster.
-     * 
- * - * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; - */ - public Builder setClusterTelemetry(com.google.container.v1beta1.ClusterTelemetry value) { - if (clusterTelemetryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - clusterTelemetry_ = value; - onChanged(); - } else { - clusterTelemetryBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Telemetry integration for the cluster.
-     * 
- * - * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; - */ - public Builder setClusterTelemetry( - com.google.container.v1beta1.ClusterTelemetry.Builder builderForValue) { - if (clusterTelemetryBuilder_ == null) { - clusterTelemetry_ = builderForValue.build(); - onChanged(); - } else { - clusterTelemetryBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Telemetry integration for the cluster.
-     * 
- * - * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; - */ - public Builder mergeClusterTelemetry(com.google.container.v1beta1.ClusterTelemetry value) { - if (clusterTelemetryBuilder_ == null) { - if (clusterTelemetry_ != null) { - clusterTelemetry_ = - com.google.container.v1beta1.ClusterTelemetry.newBuilder(clusterTelemetry_).mergeFrom(value).buildPartial(); - } else { - clusterTelemetry_ = value; - } - onChanged(); - } else { - clusterTelemetryBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Telemetry integration for the cluster.
-     * 
- * - * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; - */ - public Builder clearClusterTelemetry() { - if (clusterTelemetryBuilder_ == null) { - clusterTelemetry_ = null; - onChanged(); - } else { - clusterTelemetry_ = null; - clusterTelemetryBuilder_ = null; - } - - return this; - } - /** - *
-     * Telemetry integration for the cluster.
-     * 
- * - * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; - */ - public com.google.container.v1beta1.ClusterTelemetry.Builder getClusterTelemetryBuilder() { - - onChanged(); - return getClusterTelemetryFieldBuilder().getBuilder(); - } - /** - *
-     * Telemetry integration for the cluster.
-     * 
- * - * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; - */ - public com.google.container.v1beta1.ClusterTelemetryOrBuilder getClusterTelemetryOrBuilder() { - if (clusterTelemetryBuilder_ != null) { - return clusterTelemetryBuilder_.getMessageOrBuilder(); - } else { - return clusterTelemetry_ == null ? - com.google.container.v1beta1.ClusterTelemetry.getDefaultInstance() : clusterTelemetry_; - } - } - /** - *
-     * Telemetry integration for the cluster.
-     * 
- * - * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ClusterTelemetry, com.google.container.v1beta1.ClusterTelemetry.Builder, com.google.container.v1beta1.ClusterTelemetryOrBuilder> - getClusterTelemetryFieldBuilder() { - if (clusterTelemetryBuilder_ == null) { - clusterTelemetryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ClusterTelemetry, com.google.container.v1beta1.ClusterTelemetry.Builder, com.google.container.v1beta1.ClusterTelemetryOrBuilder>( - getClusterTelemetry(), - getParentForChildren(), - isClean()); - clusterTelemetry_ = null; - } - return clusterTelemetryBuilder_; - } - - private com.google.container.v1beta1.TpuConfig tpuConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.TpuConfig, com.google.container.v1beta1.TpuConfig.Builder, com.google.container.v1beta1.TpuConfigOrBuilder> tpuConfigBuilder_; - /** - *
-     * Configuration for Cloud TPU support;
-     * 
- * - * .google.container.v1beta1.TpuConfig tpu_config = 47; - * @return Whether the tpuConfig field is set. - */ - public boolean hasTpuConfig() { - return tpuConfigBuilder_ != null || tpuConfig_ != null; - } - /** - *
-     * Configuration for Cloud TPU support;
-     * 
- * - * .google.container.v1beta1.TpuConfig tpu_config = 47; - * @return The tpuConfig. - */ - public com.google.container.v1beta1.TpuConfig getTpuConfig() { - if (tpuConfigBuilder_ == null) { - return tpuConfig_ == null ? com.google.container.v1beta1.TpuConfig.getDefaultInstance() : tpuConfig_; - } else { - return tpuConfigBuilder_.getMessage(); - } - } - /** - *
-     * Configuration for Cloud TPU support;
-     * 
- * - * .google.container.v1beta1.TpuConfig tpu_config = 47; - */ - public Builder setTpuConfig(com.google.container.v1beta1.TpuConfig value) { - if (tpuConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tpuConfig_ = value; - onChanged(); - } else { - tpuConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for Cloud TPU support;
-     * 
- * - * .google.container.v1beta1.TpuConfig tpu_config = 47; - */ - public Builder setTpuConfig( - com.google.container.v1beta1.TpuConfig.Builder builderForValue) { - if (tpuConfigBuilder_ == null) { - tpuConfig_ = builderForValue.build(); - onChanged(); - } else { - tpuConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for Cloud TPU support;
-     * 
- * - * .google.container.v1beta1.TpuConfig tpu_config = 47; - */ - public Builder mergeTpuConfig(com.google.container.v1beta1.TpuConfig value) { - if (tpuConfigBuilder_ == null) { - if (tpuConfig_ != null) { - tpuConfig_ = - com.google.container.v1beta1.TpuConfig.newBuilder(tpuConfig_).mergeFrom(value).buildPartial(); - } else { - tpuConfig_ = value; - } - onChanged(); - } else { - tpuConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for Cloud TPU support;
-     * 
- * - * .google.container.v1beta1.TpuConfig tpu_config = 47; - */ - public Builder clearTpuConfig() { - if (tpuConfigBuilder_ == null) { - tpuConfig_ = null; - onChanged(); - } else { - tpuConfig_ = null; - tpuConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for Cloud TPU support;
-     * 
- * - * .google.container.v1beta1.TpuConfig tpu_config = 47; - */ - public com.google.container.v1beta1.TpuConfig.Builder getTpuConfigBuilder() { - - onChanged(); - return getTpuConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for Cloud TPU support;
-     * 
- * - * .google.container.v1beta1.TpuConfig tpu_config = 47; - */ - public com.google.container.v1beta1.TpuConfigOrBuilder getTpuConfigOrBuilder() { - if (tpuConfigBuilder_ != null) { - return tpuConfigBuilder_.getMessageOrBuilder(); - } else { - return tpuConfig_ == null ? - com.google.container.v1beta1.TpuConfig.getDefaultInstance() : tpuConfig_; - } - } - /** - *
-     * Configuration for Cloud TPU support;
-     * 
- * - * .google.container.v1beta1.TpuConfig tpu_config = 47; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.TpuConfig, com.google.container.v1beta1.TpuConfig.Builder, com.google.container.v1beta1.TpuConfigOrBuilder> - getTpuConfigFieldBuilder() { - if (tpuConfigBuilder_ == null) { - tpuConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.TpuConfig, com.google.container.v1beta1.TpuConfig.Builder, com.google.container.v1beta1.TpuConfigOrBuilder>( - getTpuConfig(), - getParentForChildren(), - isClean()); - tpuConfig_ = null; - } - return tpuConfigBuilder_; - } - - private com.google.container.v1beta1.NotificationConfig notificationConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NotificationConfig, com.google.container.v1beta1.NotificationConfig.Builder, com.google.container.v1beta1.NotificationConfigOrBuilder> notificationConfigBuilder_; - /** - *
-     * Notification configuration of the cluster.
-     * 
- * - * .google.container.v1beta1.NotificationConfig notification_config = 49; - * @return Whether the notificationConfig field is set. - */ - public boolean hasNotificationConfig() { - return notificationConfigBuilder_ != null || notificationConfig_ != null; - } - /** - *
-     * Notification configuration of the cluster.
-     * 
- * - * .google.container.v1beta1.NotificationConfig notification_config = 49; - * @return The notificationConfig. - */ - public com.google.container.v1beta1.NotificationConfig getNotificationConfig() { - if (notificationConfigBuilder_ == null) { - return notificationConfig_ == null ? com.google.container.v1beta1.NotificationConfig.getDefaultInstance() : notificationConfig_; - } else { - return notificationConfigBuilder_.getMessage(); - } - } - /** - *
-     * Notification configuration of the cluster.
-     * 
- * - * .google.container.v1beta1.NotificationConfig notification_config = 49; - */ - public Builder setNotificationConfig(com.google.container.v1beta1.NotificationConfig value) { - if (notificationConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - notificationConfig_ = value; - onChanged(); - } else { - notificationConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Notification configuration of the cluster.
-     * 
- * - * .google.container.v1beta1.NotificationConfig notification_config = 49; - */ - public Builder setNotificationConfig( - com.google.container.v1beta1.NotificationConfig.Builder builderForValue) { - if (notificationConfigBuilder_ == null) { - notificationConfig_ = builderForValue.build(); - onChanged(); - } else { - notificationConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Notification configuration of the cluster.
-     * 
- * - * .google.container.v1beta1.NotificationConfig notification_config = 49; - */ - public Builder mergeNotificationConfig(com.google.container.v1beta1.NotificationConfig value) { - if (notificationConfigBuilder_ == null) { - if (notificationConfig_ != null) { - notificationConfig_ = - com.google.container.v1beta1.NotificationConfig.newBuilder(notificationConfig_).mergeFrom(value).buildPartial(); - } else { - notificationConfig_ = value; - } - onChanged(); - } else { - notificationConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Notification configuration of the cluster.
-     * 
- * - * .google.container.v1beta1.NotificationConfig notification_config = 49; - */ - public Builder clearNotificationConfig() { - if (notificationConfigBuilder_ == null) { - notificationConfig_ = null; - onChanged(); - } else { - notificationConfig_ = null; - notificationConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Notification configuration of the cluster.
-     * 
- * - * .google.container.v1beta1.NotificationConfig notification_config = 49; - */ - public com.google.container.v1beta1.NotificationConfig.Builder getNotificationConfigBuilder() { - - onChanged(); - return getNotificationConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Notification configuration of the cluster.
-     * 
- * - * .google.container.v1beta1.NotificationConfig notification_config = 49; - */ - public com.google.container.v1beta1.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { - if (notificationConfigBuilder_ != null) { - return notificationConfigBuilder_.getMessageOrBuilder(); - } else { - return notificationConfig_ == null ? - com.google.container.v1beta1.NotificationConfig.getDefaultInstance() : notificationConfig_; - } - } - /** - *
-     * Notification configuration of the cluster.
-     * 
- * - * .google.container.v1beta1.NotificationConfig notification_config = 49; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NotificationConfig, com.google.container.v1beta1.NotificationConfig.Builder, com.google.container.v1beta1.NotificationConfigOrBuilder> - getNotificationConfigFieldBuilder() { - if (notificationConfigBuilder_ == null) { - notificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NotificationConfig, com.google.container.v1beta1.NotificationConfig.Builder, com.google.container.v1beta1.NotificationConfigOrBuilder>( - getNotificationConfig(), - getParentForChildren(), - isClean()); - notificationConfig_ = null; - } - return notificationConfigBuilder_; - } - - private com.google.container.v1beta1.ConfidentialNodes confidentialNodes_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ConfidentialNodes, com.google.container.v1beta1.ConfidentialNodes.Builder, com.google.container.v1beta1.ConfidentialNodesOrBuilder> confidentialNodesBuilder_; - /** - *
-     * Configuration of Confidential Nodes.
-     * 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 confidentialNodesBuilder_ != null || confidentialNodes_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - confidentialNodesBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - confidentialNodesBuilder_.setMessage(builderForValue.build()); - } - - 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 (confidentialNodes_ != null) { - confidentialNodes_ = - com.google.container.v1beta1.ConfidentialNodes.newBuilder(confidentialNodes_).mergeFrom(value).buildPartial(); - } else { - confidentialNodes_ = value; - } - onChanged(); - } else { - confidentialNodesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration of Confidential Nodes.
-     * All the nodes in the cluster will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 50; - */ - public Builder clearConfidentialNodes() { - if (confidentialNodesBuilder_ == null) { - confidentialNodes_ = null; - onChanged(); - } else { - confidentialNodes_ = null; - confidentialNodesBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration of Confidential Nodes.
-     * 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() { - - 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 identityServiceConfigBuilder_ != null || identityServiceConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - identityServiceConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - identityServiceConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (identityServiceConfig_ != null) { - identityServiceConfig_ = - com.google.container.v1beta1.IdentityServiceConfig.newBuilder(identityServiceConfig_).mergeFrom(value).buildPartial(); - } else { - identityServiceConfig_ = value; - } - onChanged(); - } else { - identityServiceConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for Identity Service component.
-     * 
- * - * .google.container.v1beta1.IdentityServiceConfig identity_service_config = 54; - */ - public Builder clearIdentityServiceConfig() { - if (identityServiceConfigBuilder_ == null) { - identityServiceConfig_ = null; - onChanged(); - } else { - identityServiceConfig_ = null; - identityServiceConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for Identity Service component.
-     * 
- * - * .google.container.v1beta1.IdentityServiceConfig identity_service_config = 54; - */ - public com.google.container.v1beta1.IdentityServiceConfig.Builder getIdentityServiceConfigBuilder() { - - 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; - onChanged(); - return this; - } - /** - *
-     * [Output only] Server-defined URL for the resource.
-     * 
- * - * string self_link = 100; - * @return This builder for chaining. - */ - public Builder clearSelfLink() { - - selfLink_ = getDefaultInstance().getSelfLink(); - onChanged(); - return this; - } - /** - *
-     * [Output only] Server-defined URL for the resource.
-     * 
- * - * string self_link = 100; - * @param value The bytes for selfLink to set. - * @return This builder for chaining. - */ - public Builder setSelfLinkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - selfLink_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field is deprecated, use location instead.
-     * 
- * - * string zone = 101 [deprecated = true]; - * @deprecated google.container.v1beta1.Cluster.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1786 - * @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=1786 - * @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=1786 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field is deprecated, use location instead.
-     * 
- * - * string zone = 101 [deprecated = true]; - * @deprecated google.container.v1beta1.Cluster.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1786 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field is deprecated, use location instead.
-     * 
- * - * string zone = 101 [deprecated = true]; - * @deprecated google.container.v1beta1.Cluster.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1786 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object endpoint_ = ""; - /** - *
-     * [Output only] The IP address of this cluster's master endpoint.
-     * The endpoint can be accessed from the internet at
-     * `https://username:password@endpoint/`.
-     * See the `masterAuth` property of this resource for username and
-     * password information.
-     * 
- * - * string endpoint = 102; - * @return The endpoint. - */ - public java.lang.String getEndpoint() { - java.lang.Object ref = endpoint_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - endpoint_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * [Output only] The IP address of this cluster's master endpoint.
-     * The endpoint can be accessed from the internet at
-     * `https://username:password@endpoint/`.
-     * See the `masterAuth` property of this resource for username and
-     * password information.
-     * 
- * - * string endpoint = 102; - * @return The bytes for endpoint. - */ - public com.google.protobuf.ByteString - getEndpointBytes() { - java.lang.Object ref = endpoint_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - endpoint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * [Output only] The IP address of this cluster's master endpoint.
-     * The endpoint can be accessed from the internet at
-     * `https://username:password@endpoint/`.
-     * See the `masterAuth` property of this resource for username and
-     * password information.
-     * 
- * - * string endpoint = 102; - * @param value The endpoint to set. - * @return This builder for chaining. - */ - public Builder setEndpoint( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - endpoint_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] The IP address of this cluster's master endpoint.
-     * The endpoint can be accessed from the internet at
-     * `https://username:password@endpoint/`.
-     * See the `masterAuth` property of this resource for username and
-     * password information.
-     * 
- * - * string endpoint = 102; - * @return This builder for chaining. - */ - public Builder clearEndpoint() { - - endpoint_ = getDefaultInstance().getEndpoint(); - onChanged(); - return this; - } - /** - *
-     * [Output only] The IP address of this cluster's master endpoint.
-     * The endpoint can be accessed from the internet at
-     * `https://username:password@endpoint/`.
-     * See the `masterAuth` property of this resource for username and
-     * password information.
-     * 
- * - * string endpoint = 102; - * @param value The bytes for endpoint to set. - * @return This builder for chaining. - */ - public Builder setEndpointBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - endpoint_ = value; - onChanged(); - return this; - } - - private java.lang.Object initialClusterVersion_ = ""; - /** - *
-     * The initial Kubernetes version for this cluster.  Valid versions are those
-     * found in validMasterVersions returned by getServerConfig.  The version can
-     * be upgraded over time; such upgrades are reflected in
-     * currentMasterVersion and currentNodeVersion.
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "","-": picks the default Kubernetes version
-     * 
- * - * string initial_cluster_version = 103; - * @return The initialClusterVersion. - */ - public java.lang.String getInitialClusterVersion() { - java.lang.Object ref = initialClusterVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - initialClusterVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The initial Kubernetes version for this cluster.  Valid versions are those
-     * found in validMasterVersions returned by getServerConfig.  The version can
-     * be upgraded over time; such upgrades are reflected in
-     * currentMasterVersion and currentNodeVersion.
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "","-": picks the default Kubernetes version
-     * 
- * - * string initial_cluster_version = 103; - * @return The bytes for initialClusterVersion. - */ - public com.google.protobuf.ByteString - getInitialClusterVersionBytes() { - java.lang.Object ref = initialClusterVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - initialClusterVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The initial Kubernetes version for this cluster.  Valid versions are those
-     * found in validMasterVersions returned by getServerConfig.  The version can
-     * be upgraded over time; such upgrades are reflected in
-     * currentMasterVersion and currentNodeVersion.
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "","-": picks the default Kubernetes version
-     * 
- * - * string initial_cluster_version = 103; - * @param value The initialClusterVersion to set. - * @return This builder for chaining. - */ - public Builder setInitialClusterVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - initialClusterVersion_ = value; - onChanged(); - return this; - } - /** - *
-     * The initial Kubernetes version for this cluster.  Valid versions are those
-     * found in validMasterVersions returned by getServerConfig.  The version can
-     * be upgraded over time; such upgrades are reflected in
-     * currentMasterVersion and currentNodeVersion.
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "","-": picks the default Kubernetes version
-     * 
- * - * string initial_cluster_version = 103; - * @return This builder for chaining. - */ - public Builder clearInitialClusterVersion() { - - initialClusterVersion_ = getDefaultInstance().getInitialClusterVersion(); - onChanged(); - return this; - } - /** - *
-     * The initial Kubernetes version for this cluster.  Valid versions are those
-     * found in validMasterVersions returned by getServerConfig.  The version can
-     * be upgraded over time; such upgrades are reflected in
-     * currentMasterVersion and currentNodeVersion.
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "","-": picks the default Kubernetes version
-     * 
- * - * string initial_cluster_version = 103; - * @param value The bytes for initialClusterVersion to set. - * @return This builder for chaining. - */ - public Builder setInitialClusterVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - initialClusterVersion_ = value; - onChanged(); - return this; - } - - private java.lang.Object currentMasterVersion_ = ""; - /** - *
-     * [Output only] The current software version of the master endpoint.
-     * 
- * - * string current_master_version = 104; - * @return The currentMasterVersion. - */ - public java.lang.String getCurrentMasterVersion() { - java.lang.Object ref = currentMasterVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currentMasterVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * [Output only] The current software version of the master endpoint.
-     * 
- * - * string current_master_version = 104; - * @return The bytes for currentMasterVersion. - */ - public com.google.protobuf.ByteString - getCurrentMasterVersionBytes() { - java.lang.Object ref = currentMasterVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - currentMasterVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * [Output only] The current software version of the master endpoint.
-     * 
- * - * string current_master_version = 104; - * @param value The currentMasterVersion to set. - * @return This builder for chaining. - */ - public Builder setCurrentMasterVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - currentMasterVersion_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] The current software version of the master endpoint.
-     * 
- * - * string current_master_version = 104; - * @return This builder for chaining. - */ - public Builder clearCurrentMasterVersion() { - - currentMasterVersion_ = getDefaultInstance().getCurrentMasterVersion(); - onChanged(); - return this; - } - /** - *
-     * [Output only] The current software version of the master endpoint.
-     * 
- * - * string current_master_version = 104; - * @param value The bytes for currentMasterVersion to set. - * @return This builder for chaining. - */ - public Builder setCurrentMasterVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - currentMasterVersion_ = value; - onChanged(); - return this; - } - - private java.lang.Object currentNodeVersion_ = ""; - /** - *
-     * [Output only] Deprecated, use
-     * [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools)
-     * instead. The current version of the node software components.
-     * If they are currently at multiple versions because they're in the process
-     * of being upgraded, this reflects the minimum version of all nodes.
-     * 
- * - * string current_node_version = 105 [deprecated = true]; - * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1819 - * @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=1819 - * @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=1819 - * @param value The currentNodeVersion to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setCurrentNodeVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - currentNodeVersion_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] Deprecated, use
-     * [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools)
-     * instead. The current version of the node software components.
-     * If they are currently at multiple versions because they're in the process
-     * of being upgraded, this reflects the minimum version of all nodes.
-     * 
- * - * string current_node_version = 105 [deprecated = true]; - * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1819 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearCurrentNodeVersion() { - - currentNodeVersion_ = getDefaultInstance().getCurrentNodeVersion(); - onChanged(); - return this; - } - /** - *
-     * [Output only] Deprecated, use
-     * [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools)
-     * instead. The current version of the node software components.
-     * If they are currently at multiple versions because they're in the process
-     * of being upgraded, this reflects the minimum version of all nodes.
-     * 
- * - * string current_node_version = 105 [deprecated = true]; - * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1819 - * @param value The bytes for currentNodeVersion to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setCurrentNodeVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - currentNodeVersion_ = value; - onChanged(); - return this; - } - - private java.lang.Object createTime_ = ""; - /** - *
-     * [Output only] The time the cluster was created, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string create_time = 106; - * @return The createTime. - */ - public java.lang.String getCreateTime() { - java.lang.Object ref = createTime_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - createTime_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * [Output only] The time the cluster was created, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string create_time = 106; - * @return The bytes for createTime. - */ - public com.google.protobuf.ByteString - getCreateTimeBytes() { - java.lang.Object ref = createTime_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - createTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * [Output only] The time the cluster was created, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string create_time = 106; - * @param value The createTime to set. - * @return This builder for chaining. - */ - public Builder setCreateTime( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - createTime_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] The time the cluster was created, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string create_time = 106; - * @return This builder for chaining. - */ - public Builder clearCreateTime() { - - createTime_ = getDefaultInstance().getCreateTime(); - onChanged(); - return this; - } - /** - *
-     * [Output only] The time the cluster was created, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string create_time = 106; - * @param value The bytes for createTime to set. - * @return This builder for chaining. - */ - public Builder setCreateTimeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - createTime_ = value; - onChanged(); - return this; - } - - private int status_ = 0; - /** - *
-     * [Output only] The current status of this cluster.
-     * 
- * - * .google.container.v1beta1.Cluster.Status status = 107; - * @return The enum numeric value on the wire for status. - */ - @java.lang.Override public int getStatusValue() { - return status_; - } - /** - *
-     * [Output only] The current status of this cluster.
-     * 
- * - * .google.container.v1beta1.Cluster.Status status = 107; - * @param value The enum numeric value on the wire for status to set. - * @return This builder for chaining. - */ - public Builder setStatusValue(int value) { - - status_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] The current status of this cluster.
-     * 
- * - * .google.container.v1beta1.Cluster.Status status = 107; - * @return The status. - */ - @java.lang.Override - public com.google.container.v1beta1.Cluster.Status getStatus() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.Cluster.Status result = com.google.container.v1beta1.Cluster.Status.valueOf(status_); - return result == null ? com.google.container.v1beta1.Cluster.Status.UNRECOGNIZED : result; - } - /** - *
-     * [Output only] The current status of this cluster.
-     * 
- * - * .google.container.v1beta1.Cluster.Status status = 107; - * @param value The status to set. - * @return This builder for chaining. - */ - public Builder setStatus(com.google.container.v1beta1.Cluster.Status value) { - if (value == null) { - throw new NullPointerException(); - } - - status_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * [Output only] The current status of this cluster.
-     * 
- * - * .google.container.v1beta1.Cluster.Status status = 107; - * @return This builder for chaining. - */ - public Builder clearStatus() { - - status_ = 0; - onChanged(); - return this; - } - - private java.lang.Object statusMessage_ = ""; - /** - *
-     * [Output only] Deprecated. Use conditions instead.
-     * Additional information about the current status of this
-     * cluster, if available.
-     * 
- * - * string status_message = 108 [deprecated = true]; - * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1831 - * @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=1831 - * @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=1831 - * @param value The statusMessage to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setStatusMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - statusMessage_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] Deprecated. Use conditions instead.
-     * Additional information about the current status of this
-     * cluster, if available.
-     * 
- * - * string status_message = 108 [deprecated = true]; - * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1831 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearStatusMessage() { - - statusMessage_ = getDefaultInstance().getStatusMessage(); - onChanged(); - return this; - } - /** - *
-     * [Output only] Deprecated. Use conditions instead.
-     * Additional information about the current status of this
-     * cluster, if available.
-     * 
- * - * string status_message = 108 [deprecated = true]; - * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1831 - * @param value The bytes for statusMessage to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setStatusMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - statusMessage_ = value; - onChanged(); - return this; - } - - private int nodeIpv4CidrSize_ ; - /** - *
-     * [Output only] The size of the address space on each node for hosting
-     * containers. This is provisioned from within the `container_ipv4_cidr`
-     * range. This field will only be set when cluster is in route-based network
-     * mode.
-     * 
- * - * int32 node_ipv4_cidr_size = 109; - * @return The nodeIpv4CidrSize. - */ - @java.lang.Override - public int getNodeIpv4CidrSize() { - return nodeIpv4CidrSize_; - } - /** - *
-     * [Output only] The size of the address space on each node for hosting
-     * containers. This is provisioned from within the `container_ipv4_cidr`
-     * range. This field will only be set when cluster is in route-based network
-     * mode.
-     * 
- * - * int32 node_ipv4_cidr_size = 109; - * @param value The nodeIpv4CidrSize to set. - * @return This builder for chaining. - */ - public Builder setNodeIpv4CidrSize(int value) { - - nodeIpv4CidrSize_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] The size of the address space on each node for hosting
-     * containers. This is provisioned from within the `container_ipv4_cidr`
-     * range. This field will only be set when cluster is in route-based network
-     * mode.
-     * 
- * - * int32 node_ipv4_cidr_size = 109; - * @return This builder for chaining. - */ - public Builder clearNodeIpv4CidrSize() { - - nodeIpv4CidrSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object servicesIpv4Cidr_ = ""; - /** - *
-     * [Output only] The IP address range of the Kubernetes services in
-     * this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`). Service addresses are
-     * typically put in the last `/16` from the container CIDR.
-     * 
- * - * string services_ipv4_cidr = 110; - * @return The servicesIpv4Cidr. - */ - public java.lang.String getServicesIpv4Cidr() { - java.lang.Object ref = servicesIpv4Cidr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - servicesIpv4Cidr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * [Output only] The IP address range of the Kubernetes services in
-     * this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`). Service addresses are
-     * typically put in the last `/16` from the container CIDR.
-     * 
- * - * string services_ipv4_cidr = 110; - * @return The bytes for servicesIpv4Cidr. - */ - public com.google.protobuf.ByteString - getServicesIpv4CidrBytes() { - java.lang.Object ref = servicesIpv4Cidr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - servicesIpv4Cidr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * [Output only] The IP address range of the Kubernetes services in
-     * this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`). Service addresses are
-     * typically put in the last `/16` from the container CIDR.
-     * 
- * - * string services_ipv4_cidr = 110; - * @param value The servicesIpv4Cidr to set. - * @return This builder for chaining. - */ - public Builder setServicesIpv4Cidr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - servicesIpv4Cidr_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] The IP address range of the Kubernetes services in
-     * this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`). Service addresses are
-     * typically put in the last `/16` from the container CIDR.
-     * 
- * - * string services_ipv4_cidr = 110; - * @return This builder for chaining. - */ - public Builder clearServicesIpv4Cidr() { - - servicesIpv4Cidr_ = getDefaultInstance().getServicesIpv4Cidr(); - onChanged(); - return this; - } - /** - *
-     * [Output only] The IP address range of the Kubernetes services in
-     * this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`). Service addresses are
-     * typically put in the last `/16` from the container CIDR.
-     * 
- * - * string services_ipv4_cidr = 110; - * @param value The bytes for servicesIpv4Cidr to set. - * @return This builder for chaining. - */ - public Builder setServicesIpv4CidrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - servicesIpv4Cidr_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureInstanceGroupUrlsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(instanceGroupUrls_); - bitField0_ |= 0x00000008; - } - } - /** - *
-     * Deprecated. Use node_pools.instance_group_urls.
-     * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1847 - * @return A list containing the instanceGroupUrls. - */ - @java.lang.Deprecated public com.google.protobuf.ProtocolStringList - getInstanceGroupUrlsList() { - return instanceGroupUrls_.getUnmodifiableView(); - } - /** - *
-     * Deprecated. Use node_pools.instance_group_urls.
-     * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1847 - * @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=1847 - * @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=1847 - * @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=1847 - * @param index The index to set the value at. - * @param value The instanceGroupUrls to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setInstanceGroupUrls( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureInstanceGroupUrlsIsMutable(); - instanceGroupUrls_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * Deprecated. Use node_pools.instance_group_urls.
-     * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1847 - * @param value The instanceGroupUrls to add. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder addInstanceGroupUrls( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureInstanceGroupUrlsIsMutable(); - instanceGroupUrls_.add(value); - onChanged(); - return this; - } - /** - *
-     * Deprecated. Use node_pools.instance_group_urls.
-     * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1847 - * @param values The instanceGroupUrls to add. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder addAllInstanceGroupUrls( - java.lang.Iterable values) { - ensureInstanceGroupUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, instanceGroupUrls_); - onChanged(); - return this; - } - /** - *
-     * Deprecated. Use node_pools.instance_group_urls.
-     * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1847 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearInstanceGroupUrls() { - instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - *
-     * Deprecated. Use node_pools.instance_group_urls.
-     * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1847 - * @param value The bytes of the instanceGroupUrls to add. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder addInstanceGroupUrlsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureInstanceGroupUrlsIsMutable(); - instanceGroupUrls_.add(value); - onChanged(); - return this; - } - - private int currentNodeCount_ ; - /** - *
-     * [Output only]  The number of nodes currently in the cluster. Deprecated.
-     * Call Kubernetes API directly to retrieve node information.
-     * 
- * - * int32 current_node_count = 112 [deprecated = true]; - * @deprecated google.container.v1beta1.Cluster.current_node_count is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1851 - * @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=1851 - * @param value The currentNodeCount to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setCurrentNodeCount(int value) { - - currentNodeCount_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only]  The number of nodes currently in the cluster. Deprecated.
-     * Call Kubernetes API directly to retrieve node information.
-     * 
- * - * int32 current_node_count = 112 [deprecated = true]; - * @deprecated google.container.v1beta1.Cluster.current_node_count is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1851 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearCurrentNodeCount() { - - currentNodeCount_ = 0; - onChanged(); - return this; - } - - private java.lang.Object expireTime_ = ""; - /** - *
-     * [Output only] The time the cluster will be automatically
-     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string expire_time = 113; - * @return The expireTime. - */ - public java.lang.String getExpireTime() { - java.lang.Object ref = expireTime_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - expireTime_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * [Output only] The time the cluster will be automatically
-     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string expire_time = 113; - * @return The bytes for expireTime. - */ - public com.google.protobuf.ByteString - getExpireTimeBytes() { - java.lang.Object ref = expireTime_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - expireTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * [Output only] The time the cluster will be automatically
-     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string expire_time = 113; - * @param value The expireTime to set. - * @return This builder for chaining. - */ - public Builder setExpireTime( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - expireTime_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] The time the cluster will be automatically
-     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string expire_time = 113; - * @return This builder for chaining. - */ - public Builder clearExpireTime() { - - expireTime_ = getDefaultInstance().getExpireTime(); - onChanged(); - return this; - } - /** - *
-     * [Output only] The time the cluster will be automatically
-     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string expire_time = 113; - * @param value The bytes for expireTime to set. - * @return This builder for chaining. - */ - public Builder setExpireTimeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - expireTime_ = value; - onChanged(); - return this; - } - - private java.lang.Object location_ = ""; - /** - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * in which the cluster resides.
-     * 
- * - * string location = 114; - * @return The location. - */ - public java.lang.String getLocation() { - java.lang.Object ref = location_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - location_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * in which the cluster resides.
-     * 
- * - * string location = 114; - * @return The bytes for location. - */ - public com.google.protobuf.ByteString - getLocationBytes() { - java.lang.Object ref = location_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - location_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * in which the cluster resides.
-     * 
- * - * string location = 114; - * @param value The location to set. - * @return This builder for chaining. - */ - public Builder setLocation( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - location_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * in which the cluster resides.
-     * 
- * - * string location = 114; - * @return This builder for chaining. - */ - public Builder clearLocation() { - - location_ = getDefaultInstance().getLocation(); - onChanged(); - return this; - } - /** - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * in which the cluster resides.
-     * 
- * - * string location = 114; - * @param value The bytes for location to set. - * @return This builder for chaining. - */ - public Builder setLocationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - location_ = value; - onChanged(); - return this; - } - - private boolean enableTpu_ ; - /** - *
-     * Enable the ability to use Cloud TPUs in this cluster.
-     * This field is deprecated, use tpu_config.enabled instead.
-     * 
- * - * bool enable_tpu = 115; - * @return The enableTpu. - */ - @java.lang.Override - public boolean getEnableTpu() { - return enableTpu_; - } - /** - *
-     * Enable the ability to use Cloud TPUs in this cluster.
-     * This field is deprecated, use tpu_config.enabled instead.
-     * 
- * - * bool enable_tpu = 115; - * @param value The enableTpu to set. - * @return This builder for chaining. - */ - public Builder setEnableTpu(boolean value) { - - enableTpu_ = value; - onChanged(); - return this; - } - /** - *
-     * Enable the ability to use Cloud TPUs in this cluster.
-     * This field is deprecated, use tpu_config.enabled instead.
-     * 
- * - * bool enable_tpu = 115; - * @return This builder for chaining. - */ - public Builder clearEnableTpu() { - - enableTpu_ = false; - onChanged(); - return this; - } - - private java.lang.Object tpuIpv4CidrBlock_ = ""; - /** - *
-     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`).
-     * 
- * - * string tpu_ipv4_cidr_block = 116; - * @return The tpuIpv4CidrBlock. - */ - public java.lang.String getTpuIpv4CidrBlock() { - java.lang.Object ref = tpuIpv4CidrBlock_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tpuIpv4CidrBlock_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`).
-     * 
- * - * string tpu_ipv4_cidr_block = 116; - * @return The bytes for tpuIpv4CidrBlock. - */ - public com.google.protobuf.ByteString - getTpuIpv4CidrBlockBytes() { - java.lang.Object ref = tpuIpv4CidrBlock_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tpuIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`).
-     * 
- * - * string tpu_ipv4_cidr_block = 116; - * @param value The tpuIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setTpuIpv4CidrBlock( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - tpuIpv4CidrBlock_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`).
-     * 
- * - * string tpu_ipv4_cidr_block = 116; - * @return This builder for chaining. - */ - public Builder clearTpuIpv4CidrBlock() { - - tpuIpv4CidrBlock_ = getDefaultInstance().getTpuIpv4CidrBlock(); - onChanged(); - return this; - } - /** - *
-     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`).
-     * 
- * - * string tpu_ipv4_cidr_block = 116; - * @param value The bytes for tpuIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setTpuIpv4CidrBlockBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - tpuIpv4CidrBlock_ = value; - onChanged(); - return this; - } - - private com.google.container.v1beta1.DatabaseEncryption databaseEncryption_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.DatabaseEncryption, com.google.container.v1beta1.DatabaseEncryption.Builder, com.google.container.v1beta1.DatabaseEncryptionOrBuilder> databaseEncryptionBuilder_; - /** - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; - * @return Whether the databaseEncryption field is set. - */ - public boolean hasDatabaseEncryption() { - return databaseEncryptionBuilder_ != null || databaseEncryption_ != null; - } - /** - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; - * @return The databaseEncryption. - */ - public com.google.container.v1beta1.DatabaseEncryption getDatabaseEncryption() { - if (databaseEncryptionBuilder_ == null) { - return databaseEncryption_ == null ? com.google.container.v1beta1.DatabaseEncryption.getDefaultInstance() : databaseEncryption_; - } else { - return databaseEncryptionBuilder_.getMessage(); - } - } - /** - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; - */ - public Builder setDatabaseEncryption(com.google.container.v1beta1.DatabaseEncryption value) { - if (databaseEncryptionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - databaseEncryption_ = value; - onChanged(); - } else { - databaseEncryptionBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; - */ - public Builder setDatabaseEncryption( - com.google.container.v1beta1.DatabaseEncryption.Builder builderForValue) { - if (databaseEncryptionBuilder_ == null) { - databaseEncryption_ = builderForValue.build(); - onChanged(); - } else { - databaseEncryptionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; - */ - public Builder mergeDatabaseEncryption(com.google.container.v1beta1.DatabaseEncryption value) { - if (databaseEncryptionBuilder_ == null) { - if (databaseEncryption_ != null) { - databaseEncryption_ = - com.google.container.v1beta1.DatabaseEncryption.newBuilder(databaseEncryption_).mergeFrom(value).buildPartial(); - } else { - databaseEncryption_ = value; - } - onChanged(); - } else { - databaseEncryptionBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; - */ - public Builder clearDatabaseEncryption() { - if (databaseEncryptionBuilder_ == null) { - databaseEncryption_ = null; - onChanged(); - } else { - databaseEncryption_ = null; - databaseEncryptionBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; - */ - public com.google.container.v1beta1.DatabaseEncryption.Builder getDatabaseEncryptionBuilder() { - - onChanged(); - return getDatabaseEncryptionFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; - */ - public com.google.container.v1beta1.DatabaseEncryptionOrBuilder getDatabaseEncryptionOrBuilder() { - if (databaseEncryptionBuilder_ != null) { - return databaseEncryptionBuilder_.getMessageOrBuilder(); - } else { - return databaseEncryption_ == null ? - com.google.container.v1beta1.DatabaseEncryption.getDefaultInstance() : databaseEncryption_; - } - } - /** - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.DatabaseEncryption, com.google.container.v1beta1.DatabaseEncryption.Builder, com.google.container.v1beta1.DatabaseEncryptionOrBuilder> - getDatabaseEncryptionFieldBuilder() { - if (databaseEncryptionBuilder_ == null) { - databaseEncryptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.DatabaseEncryption, com.google.container.v1beta1.DatabaseEncryption.Builder, com.google.container.v1beta1.DatabaseEncryptionOrBuilder>( - getDatabaseEncryption(), - getParentForChildren(), - isClean()); - databaseEncryption_ = null; - } - return databaseEncryptionBuilder_; - } - - private java.util.List conditions_ = - java.util.Collections.emptyList(); - private void ensureConditionsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - conditions_ = new java.util.ArrayList(conditions_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.StatusCondition, com.google.container.v1beta1.StatusCondition.Builder, com.google.container.v1beta1.StatusConditionOrBuilder> conditionsBuilder_; - - /** - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - public java.util.List getConditionsList() { - if (conditionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(conditions_); - } else { - return conditionsBuilder_.getMessageList(); - } - } - /** - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - public int getConditionsCount() { - if (conditionsBuilder_ == null) { - return conditions_.size(); - } else { - return conditionsBuilder_.getCount(); - } - } - /** - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - public com.google.container.v1beta1.StatusCondition getConditions(int index) { - if (conditionsBuilder_ == null) { - return conditions_.get(index); - } else { - return conditionsBuilder_.getMessage(index); - } - } - /** - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - public Builder setConditions( - int index, com.google.container.v1beta1.StatusCondition value) { - if (conditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConditionsIsMutable(); - conditions_.set(index, value); - onChanged(); - } else { - conditionsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - public Builder setConditions( - int index, com.google.container.v1beta1.StatusCondition.Builder builderForValue) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.set(index, builderForValue.build()); - onChanged(); - } else { - conditionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - public Builder addConditions(com.google.container.v1beta1.StatusCondition value) { - if (conditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConditionsIsMutable(); - conditions_.add(value); - onChanged(); - } else { - conditionsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - public Builder addConditions( - int index, com.google.container.v1beta1.StatusCondition value) { - if (conditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConditionsIsMutable(); - conditions_.add(index, value); - onChanged(); - } else { - conditionsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - public Builder addConditions( - com.google.container.v1beta1.StatusCondition.Builder builderForValue) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.add(builderForValue.build()); - onChanged(); - } else { - conditionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - public Builder addConditions( - int index, com.google.container.v1beta1.StatusCondition.Builder builderForValue) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.add(index, builderForValue.build()); - onChanged(); - } else { - conditionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - public Builder addAllConditions( - java.lang.Iterable values) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, conditions_); - onChanged(); - } else { - conditionsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - public Builder clearConditions() { - if (conditionsBuilder_ == null) { - conditions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - conditionsBuilder_.clear(); - } - return this; - } - /** - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - public Builder removeConditions(int index) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.remove(index); - onChanged(); - } else { - conditionsBuilder_.remove(index); - } - return this; - } - /** - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - public com.google.container.v1beta1.StatusCondition.Builder getConditionsBuilder( - int index) { - return getConditionsFieldBuilder().getBuilder(index); - } - /** - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - public com.google.container.v1beta1.StatusConditionOrBuilder getConditionsOrBuilder( - int index) { - if (conditionsBuilder_ == null) { - return conditions_.get(index); } else { - return conditionsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - public java.util.List - getConditionsOrBuilderList() { - if (conditionsBuilder_ != null) { - return conditionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(conditions_); - } - } - /** - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - public com.google.container.v1beta1.StatusCondition.Builder addConditionsBuilder() { - return getConditionsFieldBuilder().addBuilder( - com.google.container.v1beta1.StatusCondition.getDefaultInstance()); - } - /** - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - public com.google.container.v1beta1.StatusCondition.Builder addConditionsBuilder( - int index) { - return getConditionsFieldBuilder().addBuilder( - index, com.google.container.v1beta1.StatusCondition.getDefaultInstance()); - } - /** - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - public java.util.List - getConditionsBuilderList() { - return getConditionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.StatusCondition, com.google.container.v1beta1.StatusCondition.Builder, com.google.container.v1beta1.StatusConditionOrBuilder> - getConditionsFieldBuilder() { - if (conditionsBuilder_ == null) { - conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.StatusCondition, com.google.container.v1beta1.StatusCondition.Builder, com.google.container.v1beta1.StatusConditionOrBuilder>( - conditions_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - conditions_ = null; - } - return conditionsBuilder_; - } - - private com.google.container.v1beta1.Master master_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.Master, com.google.container.v1beta1.Master.Builder, com.google.container.v1beta1.MasterOrBuilder> masterBuilder_; - /** - *
-     * Configuration for master components.
-     * 
- * - * .google.container.v1beta1.Master master = 124; - * @return Whether the master field is set. - */ - public boolean hasMaster() { - return masterBuilder_ != null || master_ != null; - } - /** - *
-     * Configuration for master components.
-     * 
- * - * .google.container.v1beta1.Master master = 124; - * @return The master. - */ - public com.google.container.v1beta1.Master getMaster() { - if (masterBuilder_ == null) { - return master_ == null ? com.google.container.v1beta1.Master.getDefaultInstance() : master_; - } else { - return masterBuilder_.getMessage(); - } - } - /** - *
-     * Configuration for master components.
-     * 
- * - * .google.container.v1beta1.Master master = 124; - */ - public Builder setMaster(com.google.container.v1beta1.Master value) { - if (masterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - master_ = value; - onChanged(); - } else { - masterBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for master components.
-     * 
- * - * .google.container.v1beta1.Master master = 124; - */ - public Builder setMaster( - com.google.container.v1beta1.Master.Builder builderForValue) { - if (masterBuilder_ == null) { - master_ = builderForValue.build(); - onChanged(); - } else { - masterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for master components.
-     * 
- * - * .google.container.v1beta1.Master master = 124; - */ - public Builder mergeMaster(com.google.container.v1beta1.Master value) { - if (masterBuilder_ == null) { - if (master_ != null) { - master_ = - com.google.container.v1beta1.Master.newBuilder(master_).mergeFrom(value).buildPartial(); - } else { - master_ = value; - } - onChanged(); - } else { - masterBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for master components.
-     * 
- * - * .google.container.v1beta1.Master master = 124; - */ - public Builder clearMaster() { - if (masterBuilder_ == null) { - master_ = null; - onChanged(); - } else { - master_ = null; - masterBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for master components.
-     * 
- * - * .google.container.v1beta1.Master master = 124; - */ - public com.google.container.v1beta1.Master.Builder getMasterBuilder() { - - onChanged(); - return getMasterFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for master components.
-     * 
- * - * .google.container.v1beta1.Master master = 124; - */ - public com.google.container.v1beta1.MasterOrBuilder getMasterOrBuilder() { - if (masterBuilder_ != null) { - return masterBuilder_.getMessageOrBuilder(); - } else { - return master_ == null ? - com.google.container.v1beta1.Master.getDefaultInstance() : master_; - } - } - /** - *
-     * Configuration for master components.
-     * 
- * - * .google.container.v1beta1.Master master = 124; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.Master, com.google.container.v1beta1.Master.Builder, com.google.container.v1beta1.MasterOrBuilder> - getMasterFieldBuilder() { - if (masterBuilder_ == null) { - masterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.Master, com.google.container.v1beta1.Master.Builder, com.google.container.v1beta1.MasterOrBuilder>( - getMaster(), - getParentForChildren(), - isClean()); - master_ = null; - } - return masterBuilder_; - } - - 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 autopilotBuilder_ != null || autopilot_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - autopilotBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - autopilotBuilder_.setMessage(builderForValue.build()); - } - - 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 (autopilot_ != null) { - autopilot_ = - com.google.container.v1beta1.Autopilot.newBuilder(autopilot_).mergeFrom(value).buildPartial(); - } else { - autopilot_ = value; - } - onChanged(); - } else { - autopilotBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Autopilot configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.Autopilot autopilot = 128; - */ - public Builder clearAutopilot() { - if (autopilotBuilder_ == null) { - autopilot_ = null; - onChanged(); - } else { - autopilot_ = null; - autopilotBuilder_ = null; - } - - return this; - } - /** - *
-     * Autopilot configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.Autopilot autopilot = 128; - */ - public com.google.container.v1beta1.Autopilot.Builder getAutopilotBuilder() { - - 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; - 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(); - 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; - 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 ((bitField0_ & 0x00000020) != 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; - onChanged(); - } else { - nodePoolDefaultsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - 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(); - onChanged(); - } else { - nodePoolDefaultsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - 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 (((bitField0_ & 0x00000020) != 0) && - nodePoolDefaults_ != null && - nodePoolDefaults_ != com.google.container.v1beta1.NodePoolDefaults.getDefaultInstance()) { - nodePoolDefaults_ = - com.google.container.v1beta1.NodePoolDefaults.newBuilder(nodePoolDefaults_).mergeFrom(value).buildPartial(); - } else { - nodePoolDefaults_ = value; - } - onChanged(); - } else { - nodePoolDefaultsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000020; - 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() { - if (nodePoolDefaultsBuilder_ == null) { - nodePoolDefaults_ = null; - onChanged(); - } else { - nodePoolDefaultsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - 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() { - bitField0_ |= 0x00000020; - 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 loggingConfigBuilder_ != null || loggingConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - loggingConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - loggingConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (loggingConfig_ != null) { - loggingConfig_ = - com.google.container.v1beta1.LoggingConfig.newBuilder(loggingConfig_).mergeFrom(value).buildPartial(); - } else { - loggingConfig_ = value; - } - onChanged(); - } else { - loggingConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Logging configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.LoggingConfig logging_config = 132; - */ - public Builder clearLoggingConfig() { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - onChanged(); - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Logging configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.LoggingConfig logging_config = 132; - */ - public com.google.container.v1beta1.LoggingConfig.Builder getLoggingConfigBuilder() { - - 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 monitoringConfigBuilder_ != null || monitoringConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - monitoringConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - monitoringConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (monitoringConfig_ != null) { - monitoringConfig_ = - com.google.container.v1beta1.MonitoringConfig.newBuilder(monitoringConfig_).mergeFrom(value).buildPartial(); - } else { - monitoringConfig_ = value; - } - onChanged(); - } else { - monitoringConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Monitoring configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.MonitoringConfig monitoring_config = 133; - */ - public Builder clearMonitoringConfig() { - if (monitoringConfigBuilder_ == null) { - monitoringConfig_ = null; - onChanged(); - } else { - monitoringConfig_ = null; - monitoringConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Monitoring configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.MonitoringConfig monitoring_config = 133; - */ - public com.google.container.v1beta1.MonitoringConfig.Builder getMonitoringConfigBuilder() { - - 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 nodePoolAutoConfigBuilder_ != null || nodePoolAutoConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - nodePoolAutoConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - nodePoolAutoConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (nodePoolAutoConfig_ != null) { - nodePoolAutoConfig_ = - com.google.container.v1beta1.NodePoolAutoConfig.newBuilder(nodePoolAutoConfig_).mergeFrom(value).buildPartial(); - } else { - nodePoolAutoConfig_ = value; - } - onChanged(); - } else { - nodePoolAutoConfigBuilder_.mergeFrom(value); - } - - 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() { - if (nodePoolAutoConfigBuilder_ == null) { - nodePoolAutoConfig_ = null; - onChanged(); - } else { - nodePoolAutoConfig_ = null; - nodePoolAutoConfigBuilder_ = null; - } - - 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() { - - 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_; - /** - *
-     * Enable/Disable Protect API features for the cluster.
-     * 
- * - * optional .google.container.v1beta1.ProtectConfig protect_config = 137; - * @return Whether the protectConfig field is set. - */ - public boolean hasProtectConfig() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - *
-     * Enable/Disable Protect API features for the cluster.
-     * 
- * - * optional .google.container.v1beta1.ProtectConfig protect_config = 137; - * @return The protectConfig. - */ - public com.google.container.v1beta1.ProtectConfig getProtectConfig() { - if (protectConfigBuilder_ == null) { - return protectConfig_ == null ? com.google.container.v1beta1.ProtectConfig.getDefaultInstance() : protectConfig_; - } else { - return protectConfigBuilder_.getMessage(); - } - } - /** - *
-     * Enable/Disable Protect API features for the cluster.
-     * 
- * - * optional .google.container.v1beta1.ProtectConfig protect_config = 137; - */ - public Builder setProtectConfig(com.google.container.v1beta1.ProtectConfig value) { - if (protectConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - protectConfig_ = value; - onChanged(); - } else { - protectConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - return this; - } - /** - *
-     * Enable/Disable Protect API features for the cluster.
-     * 
- * - * optional .google.container.v1beta1.ProtectConfig protect_config = 137; - */ - public Builder setProtectConfig( - com.google.container.v1beta1.ProtectConfig.Builder builderForValue) { - if (protectConfigBuilder_ == null) { - protectConfig_ = builderForValue.build(); - onChanged(); - } else { - protectConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - return this; - } - /** - *
-     * Enable/Disable Protect API features for the cluster.
-     * 
- * - * optional .google.container.v1beta1.ProtectConfig protect_config = 137; - */ - public Builder mergeProtectConfig(com.google.container.v1beta1.ProtectConfig value) { - if (protectConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - protectConfig_ != null && - protectConfig_ != com.google.container.v1beta1.ProtectConfig.getDefaultInstance()) { - protectConfig_ = - com.google.container.v1beta1.ProtectConfig.newBuilder(protectConfig_).mergeFrom(value).buildPartial(); - } else { - protectConfig_ = value; - } - onChanged(); - } else { - protectConfigBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000040; - return this; - } - /** - *
-     * Enable/Disable Protect API features for the cluster.
-     * 
- * - * optional .google.container.v1beta1.ProtectConfig protect_config = 137; - */ - public Builder clearProtectConfig() { - if (protectConfigBuilder_ == null) { - protectConfig_ = null; - onChanged(); - } else { - protectConfigBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000040); - return this; - } - /** - *
-     * Enable/Disable Protect API features for the cluster.
-     * 
- * - * optional .google.container.v1beta1.ProtectConfig protect_config = 137; - */ - public com.google.container.v1beta1.ProtectConfig.Builder getProtectConfigBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getProtectConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Enable/Disable Protect API features for the cluster.
-     * 
- * - * optional .google.container.v1beta1.ProtectConfig protect_config = 137; - */ - public com.google.container.v1beta1.ProtectConfigOrBuilder getProtectConfigOrBuilder() { - if (protectConfigBuilder_ != null) { - return protectConfigBuilder_.getMessageOrBuilder(); - } else { - return protectConfig_ == null ? - com.google.container.v1beta1.ProtectConfig.getDefaultInstance() : protectConfig_; - } - } - /** - *
-     * Enable/Disable Protect API features for the cluster.
-     * 
- * - * optional .google.container.v1beta1.ProtectConfig protect_config = 137; - */ - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index c0e44c52ecd7..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterAutoscaling.java +++ /dev/null @@ -1,1736 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * ClusterAutoscaling contains global, per-cluster information
- * required by Cluster Autoscaler to automatically adjust
- * the size of the cluster and create/delete
- * node pools based on the current needs.
- * 
- * - * Protobuf type {@code google.container.v1beta1.ClusterAutoscaling} - */ -public final class ClusterAutoscaling extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.ClusterAutoscaling) - ClusterAutoscalingOrBuilder { -private static final long serialVersionUID = 0L; - // Use ClusterAutoscaling.newBuilder() to construct. - private ClusterAutoscaling(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ClusterAutoscaling() { - resourceLimits_ = java.util.Collections.emptyList(); - autoscalingProfile_ = 0; - autoprovisioningLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ClusterAutoscaling(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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) - } - - public static final int ENABLE_NODE_AUTOPROVISIONING_FIELD_NUMBER = 1; - private boolean enableNodeAutoprovisioning_; - /** - *
-   * Enables automatic node pool creation and deletion.
-   * 
- * - * bool enable_node_autoprovisioning = 1; - * @return The enableNodeAutoprovisioning. - */ - @java.lang.Override - public boolean getEnableNodeAutoprovisioning() { - return enableNodeAutoprovisioning_; - } - - public static final int RESOURCE_LIMITS_FIELD_NUMBER = 2; - private java.util.List resourceLimits_; - /** - *
-   * Contains global constraints regarding minimum and maximum
-   * amount of resources in the cluster.
-   * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - @java.lang.Override - public java.util.List getResourceLimitsList() { - return resourceLimits_; - } - /** - *
-   * Contains global constraints regarding minimum and maximum
-   * amount of resources in the cluster.
-   * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - @java.lang.Override - public java.util.List - getResourceLimitsOrBuilderList() { - return resourceLimits_; - } - /** - *
-   * Contains global constraints regarding minimum and maximum
-   * amount of resources in the cluster.
-   * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - @java.lang.Override - public int getResourceLimitsCount() { - return resourceLimits_.size(); - } - /** - *
-   * Contains global constraints regarding minimum and maximum
-   * amount of resources in the cluster.
-   * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - @java.lang.Override - public com.google.container.v1beta1.ResourceLimit getResourceLimits(int index) { - return resourceLimits_.get(index); - } - /** - *
-   * Contains global constraints regarding minimum and maximum
-   * amount of resources in the cluster.
-   * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - @java.lang.Override - public com.google.container.v1beta1.ResourceLimitOrBuilder getResourceLimitsOrBuilder( - int index) { - return resourceLimits_.get(index); - } - - public static final int AUTOSCALING_PROFILE_FIELD_NUMBER = 3; - private int autoscalingProfile_; - /** - *
-   * Defines autoscaling behaviour.
-   * 
- * - * .google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; - * @return The enum numeric value on the wire for autoscalingProfile. - */ - @java.lang.Override public int getAutoscalingProfileValue() { - return autoscalingProfile_; - } - /** - *
-   * Defines autoscaling behaviour.
-   * 
- * - * .google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; - * @return The autoscalingProfile. - */ - @java.lang.Override public com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile getAutoscalingProfile() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile result = com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile.valueOf(autoscalingProfile_); - return result == null ? com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile.UNRECOGNIZED : result; - } - - public static final int AUTOPROVISIONING_NODE_POOL_DEFAULTS_FIELD_NUMBER = 4; - private com.google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioningNodePoolDefaults_; - /** - *
-   * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-   * created by NAP.
-   * 
- * - * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * @return Whether the autoprovisioningNodePoolDefaults field is set. - */ - @java.lang.Override - public boolean hasAutoprovisioningNodePoolDefaults() { - return autoprovisioningNodePoolDefaults_ != null; - } - /** - *
-   * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-   * created by NAP.
-   * 
- * - * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * @return The autoprovisioningNodePoolDefaults. - */ - @java.lang.Override - public com.google.container.v1beta1.AutoprovisioningNodePoolDefaults getAutoprovisioningNodePoolDefaults() { - return autoprovisioningNodePoolDefaults_ == null ? com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.getDefaultInstance() : autoprovisioningNodePoolDefaults_; - } - /** - *
-   * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-   * created by NAP.
-   * 
- * - * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - */ - @java.lang.Override - public com.google.container.v1beta1.AutoprovisioningNodePoolDefaultsOrBuilder getAutoprovisioningNodePoolDefaultsOrBuilder() { - return getAutoprovisioningNodePoolDefaults(); - } - - public static final int AUTOPROVISIONING_LOCATIONS_FIELD_NUMBER = 5; - private com.google.protobuf.LazyStringList autoprovisioningLocations_; - /** - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes can be created by NAP.
-   * 
- * - * repeated string autoprovisioning_locations = 5; - * @return A list containing the autoprovisioningLocations. - */ - public com.google.protobuf.ProtocolStringList - getAutoprovisioningLocationsList() { - return autoprovisioningLocations_; - } - /** - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes can be created by NAP.
-   * 
- * - * repeated string autoprovisioning_locations = 5; - * @return The count of autoprovisioningLocations. - */ - public int getAutoprovisioningLocationsCount() { - return autoprovisioningLocations_.size(); - } - /** - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes can be created by NAP.
-   * 
- * - * repeated string autoprovisioning_locations = 5; - * @param index The index of the element to return. - * @return The autoprovisioningLocations at the given index. - */ - public java.lang.String getAutoprovisioningLocations(int index) { - return autoprovisioningLocations_.get(index); - } - /** - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes can be created by NAP.
-   * 
- * - * repeated string autoprovisioning_locations = 5; - * @param index The index of the value to return. - * @return The bytes of the autoprovisioningLocations at the given index. - */ - public com.google.protobuf.ByteString - getAutoprovisioningLocationsBytes(int index) { - return autoprovisioningLocations_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enableNodeAutoprovisioning_ != false) { - output.writeBool(1, enableNodeAutoprovisioning_); - } - for (int i = 0; i < resourceLimits_.size(); i++) { - output.writeMessage(2, resourceLimits_.get(i)); - } - if (autoscalingProfile_ != com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile.PROFILE_UNSPECIFIED.getNumber()) { - output.writeEnum(3, autoscalingProfile_); - } - if (autoprovisioningNodePoolDefaults_ != null) { - output.writeMessage(4, getAutoprovisioningNodePoolDefaults()); - } - for (int i = 0; i < autoprovisioningLocations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, autoprovisioningLocations_.getRaw(i)); - } - 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 (autoprovisioningNodePoolDefaults_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getAutoprovisioningNodePoolDefaults()); - } - { - int dataSize = 0; - for (int i = 0; i < autoprovisioningLocations_.size(); i++) { - dataSize += computeStringSizeNoTag(autoprovisioningLocations_.getRaw(i)); - } - size += dataSize; - size += 1 * getAutoprovisioningLocationsList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - enableNodeAutoprovisioning_ = false; - - if (resourceLimitsBuilder_ == null) { - resourceLimits_ = java.util.Collections.emptyList(); - } else { - resourceLimits_ = null; - resourceLimitsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - autoscalingProfile_ = 0; - - if (autoprovisioningNodePoolDefaultsBuilder_ == null) { - autoprovisioningNodePoolDefaults_ = null; - } else { - autoprovisioningNodePoolDefaults_ = null; - autoprovisioningNodePoolDefaultsBuilder_ = null; - } - autoprovisioningLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ClusterAutoscaling_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.ClusterAutoscaling getDefaultInstanceForType() { - return com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.ClusterAutoscaling build() { - com.google.container.v1beta1.ClusterAutoscaling result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.ClusterAutoscaling buildPartial() { - com.google.container.v1beta1.ClusterAutoscaling result = new com.google.container.v1beta1.ClusterAutoscaling(this); - int from_bitField0_ = bitField0_; - result.enableNodeAutoprovisioning_ = enableNodeAutoprovisioning_; - if (resourceLimitsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - resourceLimits_ = java.util.Collections.unmodifiableList(resourceLimits_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.resourceLimits_ = resourceLimits_; - } else { - result.resourceLimits_ = resourceLimitsBuilder_.build(); - } - result.autoscalingProfile_ = autoscalingProfile_; - if (autoprovisioningNodePoolDefaultsBuilder_ == null) { - result.autoprovisioningNodePoolDefaults_ = autoprovisioningNodePoolDefaults_; - } else { - result.autoprovisioningNodePoolDefaults_ = autoprovisioningNodePoolDefaultsBuilder_.build(); - } - if (((bitField0_ & 0x00000002) != 0)) { - autoprovisioningLocations_ = autoprovisioningLocations_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.autoprovisioningLocations_ = autoprovisioningLocations_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.ClusterAutoscaling) { - return mergeFrom((com.google.container.v1beta1.ClusterAutoscaling)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.ClusterAutoscaling other) { - if (other == com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance()) return this; - if (other.getEnableNodeAutoprovisioning() != false) { - setEnableNodeAutoprovisioning(other.getEnableNodeAutoprovisioning()); - } - if (resourceLimitsBuilder_ == null) { - if (!other.resourceLimits_.isEmpty()) { - if (resourceLimits_.isEmpty()) { - resourceLimits_ = other.resourceLimits_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureResourceLimitsIsMutable(); - resourceLimits_.addAll(other.resourceLimits_); - } - onChanged(); - } - } else { - if (!other.resourceLimits_.isEmpty()) { - if (resourceLimitsBuilder_.isEmpty()) { - resourceLimitsBuilder_.dispose(); - resourceLimitsBuilder_ = null; - resourceLimits_ = other.resourceLimits_; - bitField0_ = (bitField0_ & ~0x00000001); - resourceLimitsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResourceLimitsFieldBuilder() : null; - } else { - resourceLimitsBuilder_.addAllMessages(other.resourceLimits_); - } - } - } - if (other.autoscalingProfile_ != 0) { - setAutoscalingProfileValue(other.getAutoscalingProfileValue()); - } - if (other.hasAutoprovisioningNodePoolDefaults()) { - mergeAutoprovisioningNodePoolDefaults(other.getAutoprovisioningNodePoolDefaults()); - } - if (!other.autoprovisioningLocations_.isEmpty()) { - if (autoprovisioningLocations_.isEmpty()) { - autoprovisioningLocations_ = other.autoprovisioningLocations_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureAutoprovisioningLocationsIsMutable(); - autoprovisioningLocations_.addAll(other.autoprovisioningLocations_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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(); - - break; - } // case 24 - case 34: { - input.readMessage( - getAutoprovisioningNodePoolDefaultsFieldBuilder().getBuilder(), - extensionRegistry); - - 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; - onChanged(); - return this; - } - /** - *
-     * Enables automatic node pool creation and deletion.
-     * 
- * - * bool enable_node_autoprovisioning = 1; - * @return This builder for chaining. - */ - public Builder clearEnableNodeAutoprovisioning() { - - enableNodeAutoprovisioning_ = false; - onChanged(); - return this; - } - - private java.util.List resourceLimits_ = - java.util.Collections.emptyList(); - private void ensureResourceLimitsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - resourceLimits_ = new java.util.ArrayList(resourceLimits_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.ResourceLimit, com.google.container.v1beta1.ResourceLimit.Builder, com.google.container.v1beta1.ResourceLimitOrBuilder> resourceLimitsBuilder_; - - /** - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - public java.util.List getResourceLimitsList() { - if (resourceLimitsBuilder_ == null) { - return java.util.Collections.unmodifiableList(resourceLimits_); - } else { - return resourceLimitsBuilder_.getMessageList(); - } - } - /** - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - public int getResourceLimitsCount() { - if (resourceLimitsBuilder_ == null) { - return resourceLimits_.size(); - } else { - return resourceLimitsBuilder_.getCount(); - } - } - /** - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - public com.google.container.v1beta1.ResourceLimit getResourceLimits(int index) { - if (resourceLimitsBuilder_ == null) { - return resourceLimits_.get(index); - } else { - return resourceLimitsBuilder_.getMessage(index); - } - } - /** - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - public Builder setResourceLimits( - int index, com.google.container.v1beta1.ResourceLimit value) { - if (resourceLimitsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureResourceLimitsIsMutable(); - resourceLimits_.set(index, value); - onChanged(); - } else { - resourceLimitsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - public Builder setResourceLimits( - int index, com.google.container.v1beta1.ResourceLimit.Builder builderForValue) { - if (resourceLimitsBuilder_ == null) { - ensureResourceLimitsIsMutable(); - resourceLimits_.set(index, builderForValue.build()); - onChanged(); - } else { - resourceLimitsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - public Builder addResourceLimits(com.google.container.v1beta1.ResourceLimit value) { - if (resourceLimitsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureResourceLimitsIsMutable(); - resourceLimits_.add(value); - onChanged(); - } else { - resourceLimitsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - public Builder addResourceLimits( - int index, com.google.container.v1beta1.ResourceLimit value) { - if (resourceLimitsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureResourceLimitsIsMutable(); - resourceLimits_.add(index, value); - onChanged(); - } else { - resourceLimitsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - public Builder addResourceLimits( - com.google.container.v1beta1.ResourceLimit.Builder builderForValue) { - if (resourceLimitsBuilder_ == null) { - ensureResourceLimitsIsMutable(); - resourceLimits_.add(builderForValue.build()); - onChanged(); - } else { - resourceLimitsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - public Builder addResourceLimits( - int index, com.google.container.v1beta1.ResourceLimit.Builder builderForValue) { - if (resourceLimitsBuilder_ == null) { - ensureResourceLimitsIsMutable(); - resourceLimits_.add(index, builderForValue.build()); - onChanged(); - } else { - resourceLimitsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - public Builder addAllResourceLimits( - java.lang.Iterable values) { - if (resourceLimitsBuilder_ == null) { - ensureResourceLimitsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, resourceLimits_); - onChanged(); - } else { - resourceLimitsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - public Builder clearResourceLimits() { - if (resourceLimitsBuilder_ == null) { - resourceLimits_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - resourceLimitsBuilder_.clear(); - } - return this; - } - /** - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - public Builder removeResourceLimits(int index) { - if (resourceLimitsBuilder_ == null) { - ensureResourceLimitsIsMutable(); - resourceLimits_.remove(index); - onChanged(); - } else { - resourceLimitsBuilder_.remove(index); - } - return this; - } - /** - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - public com.google.container.v1beta1.ResourceLimit.Builder getResourceLimitsBuilder( - int index) { - return getResourceLimitsFieldBuilder().getBuilder(index); - } - /** - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - public com.google.container.v1beta1.ResourceLimitOrBuilder getResourceLimitsOrBuilder( - int index) { - if (resourceLimitsBuilder_ == null) { - return resourceLimits_.get(index); } else { - return resourceLimitsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - public java.util.List - getResourceLimitsOrBuilderList() { - if (resourceLimitsBuilder_ != null) { - return resourceLimitsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(resourceLimits_); - } - } - /** - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - public com.google.container.v1beta1.ResourceLimit.Builder addResourceLimitsBuilder() { - return getResourceLimitsFieldBuilder().addBuilder( - com.google.container.v1beta1.ResourceLimit.getDefaultInstance()); - } - /** - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - public com.google.container.v1beta1.ResourceLimit.Builder addResourceLimitsBuilder( - int index) { - return getResourceLimitsFieldBuilder().addBuilder( - index, com.google.container.v1beta1.ResourceLimit.getDefaultInstance()); - } - /** - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - public java.util.List - getResourceLimitsBuilderList() { - return getResourceLimitsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.ResourceLimit, com.google.container.v1beta1.ResourceLimit.Builder, com.google.container.v1beta1.ResourceLimitOrBuilder> - getResourceLimitsFieldBuilder() { - if (resourceLimitsBuilder_ == null) { - resourceLimitsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.ResourceLimit, com.google.container.v1beta1.ResourceLimit.Builder, com.google.container.v1beta1.ResourceLimitOrBuilder>( - resourceLimits_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - resourceLimits_ = null; - } - return resourceLimitsBuilder_; - } - - private int autoscalingProfile_ = 0; - /** - *
-     * Defines autoscaling behaviour.
-     * 
- * - * .google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; - * @return The enum numeric value on the wire for autoscalingProfile. - */ - @java.lang.Override public int getAutoscalingProfileValue() { - return autoscalingProfile_; - } - /** - *
-     * Defines autoscaling behaviour.
-     * 
- * - * .google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; - * @param value The enum numeric value on the wire for autoscalingProfile to set. - * @return This builder for chaining. - */ - public Builder setAutoscalingProfileValue(int value) { - - autoscalingProfile_ = value; - onChanged(); - return this; - } - /** - *
-     * Defines autoscaling behaviour.
-     * 
- * - * .google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; - * @return The autoscalingProfile. - */ - @java.lang.Override - public com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile getAutoscalingProfile() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile result = com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile.valueOf(autoscalingProfile_); - return result == null ? com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile.UNRECOGNIZED : result; - } - /** - *
-     * Defines autoscaling behaviour.
-     * 
- * - * .google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; - * @param value The autoscalingProfile to set. - * @return This builder for chaining. - */ - public Builder setAutoscalingProfile(com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile value) { - if (value == null) { - throw new NullPointerException(); - } - - autoscalingProfile_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Defines autoscaling behaviour.
-     * 
- * - * .google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; - * @return This builder for chaining. - */ - public Builder clearAutoscalingProfile() { - - autoscalingProfile_ = 0; - onChanged(); - return this; - } - - private com.google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioningNodePoolDefaults_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AutoprovisioningNodePoolDefaults, com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.Builder, com.google.container.v1beta1.AutoprovisioningNodePoolDefaultsOrBuilder> autoprovisioningNodePoolDefaultsBuilder_; - /** - *
-     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-     * created by NAP.
-     * 
- * - * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * @return Whether the autoprovisioningNodePoolDefaults field is set. - */ - public boolean hasAutoprovisioningNodePoolDefaults() { - return autoprovisioningNodePoolDefaultsBuilder_ != null || autoprovisioningNodePoolDefaults_ != null; - } - /** - *
-     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-     * created by NAP.
-     * 
- * - * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * @return The autoprovisioningNodePoolDefaults. - */ - public com.google.container.v1beta1.AutoprovisioningNodePoolDefaults getAutoprovisioningNodePoolDefaults() { - if (autoprovisioningNodePoolDefaultsBuilder_ == null) { - return autoprovisioningNodePoolDefaults_ == null ? com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.getDefaultInstance() : autoprovisioningNodePoolDefaults_; - } else { - return autoprovisioningNodePoolDefaultsBuilder_.getMessage(); - } - } - /** - *
-     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-     * created by NAP.
-     * 
- * - * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - */ - public Builder setAutoprovisioningNodePoolDefaults(com.google.container.v1beta1.AutoprovisioningNodePoolDefaults value) { - if (autoprovisioningNodePoolDefaultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - autoprovisioningNodePoolDefaults_ = value; - onChanged(); - } else { - autoprovisioningNodePoolDefaultsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-     * created by NAP.
-     * 
- * - * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - */ - public Builder setAutoprovisioningNodePoolDefaults( - com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.Builder builderForValue) { - if (autoprovisioningNodePoolDefaultsBuilder_ == null) { - autoprovisioningNodePoolDefaults_ = builderForValue.build(); - onChanged(); - } else { - autoprovisioningNodePoolDefaultsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-     * created by NAP.
-     * 
- * - * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - */ - public Builder mergeAutoprovisioningNodePoolDefaults(com.google.container.v1beta1.AutoprovisioningNodePoolDefaults value) { - if (autoprovisioningNodePoolDefaultsBuilder_ == null) { - if (autoprovisioningNodePoolDefaults_ != null) { - autoprovisioningNodePoolDefaults_ = - com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.newBuilder(autoprovisioningNodePoolDefaults_).mergeFrom(value).buildPartial(); - } else { - autoprovisioningNodePoolDefaults_ = value; - } - onChanged(); - } else { - autoprovisioningNodePoolDefaultsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-     * created by NAP.
-     * 
- * - * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - */ - public Builder clearAutoprovisioningNodePoolDefaults() { - if (autoprovisioningNodePoolDefaultsBuilder_ == null) { - autoprovisioningNodePoolDefaults_ = null; - onChanged(); - } else { - autoprovisioningNodePoolDefaults_ = null; - autoprovisioningNodePoolDefaultsBuilder_ = null; - } - - return this; - } - /** - *
-     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-     * created by NAP.
-     * 
- * - * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - */ - public com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.Builder getAutoprovisioningNodePoolDefaultsBuilder() { - - onChanged(); - return getAutoprovisioningNodePoolDefaultsFieldBuilder().getBuilder(); - } - /** - *
-     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-     * created by NAP.
-     * 
- * - * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - */ - public com.google.container.v1beta1.AutoprovisioningNodePoolDefaultsOrBuilder getAutoprovisioningNodePoolDefaultsOrBuilder() { - if (autoprovisioningNodePoolDefaultsBuilder_ != null) { - return autoprovisioningNodePoolDefaultsBuilder_.getMessageOrBuilder(); - } else { - return autoprovisioningNodePoolDefaults_ == null ? - com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.getDefaultInstance() : autoprovisioningNodePoolDefaults_; - } - } - /** - *
-     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-     * created by NAP.
-     * 
- * - * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AutoprovisioningNodePoolDefaults, com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.Builder, com.google.container.v1beta1.AutoprovisioningNodePoolDefaultsOrBuilder> - getAutoprovisioningNodePoolDefaultsFieldBuilder() { - if (autoprovisioningNodePoolDefaultsBuilder_ == null) { - autoprovisioningNodePoolDefaultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AutoprovisioningNodePoolDefaults, com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.Builder, com.google.container.v1beta1.AutoprovisioningNodePoolDefaultsOrBuilder>( - getAutoprovisioningNodePoolDefaults(), - getParentForChildren(), - isClean()); - autoprovisioningNodePoolDefaults_ = null; - } - return autoprovisioningNodePoolDefaultsBuilder_; - } - - private com.google.protobuf.LazyStringList autoprovisioningLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureAutoprovisioningLocationsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - autoprovisioningLocations_ = new com.google.protobuf.LazyStringArrayList(autoprovisioningLocations_); - bitField0_ |= 0x00000002; - } - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes can be created by NAP.
-     * 
- * - * repeated string autoprovisioning_locations = 5; - * @return A list containing the autoprovisioningLocations. - */ - public com.google.protobuf.ProtocolStringList - getAutoprovisioningLocationsList() { - return autoprovisioningLocations_.getUnmodifiableView(); - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes can be created by NAP.
-     * 
- * - * repeated string autoprovisioning_locations = 5; - * @return The count of autoprovisioningLocations. - */ - public int getAutoprovisioningLocationsCount() { - return autoprovisioningLocations_.size(); - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes can be created by NAP.
-     * 
- * - * repeated string autoprovisioning_locations = 5; - * @param index The index of the element to return. - * @return The autoprovisioningLocations at the given index. - */ - public java.lang.String getAutoprovisioningLocations(int index) { - return autoprovisioningLocations_.get(index); - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes can be created by NAP.
-     * 
- * - * repeated string autoprovisioning_locations = 5; - * @param index The index of the value to return. - * @return The bytes of the autoprovisioningLocations at the given index. - */ - public com.google.protobuf.ByteString - getAutoprovisioningLocationsBytes(int index) { - return autoprovisioningLocations_.getByteString(index); - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes can be created by NAP.
-     * 
- * - * repeated string autoprovisioning_locations = 5; - * @param index The index to set the value at. - * @param value The autoprovisioningLocations to set. - * @return This builder for chaining. - */ - public Builder setAutoprovisioningLocations( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAutoprovisioningLocationsIsMutable(); - autoprovisioningLocations_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes can be created by NAP.
-     * 
- * - * repeated string autoprovisioning_locations = 5; - * @param value The autoprovisioningLocations to add. - * @return This builder for chaining. - */ - public Builder addAutoprovisioningLocations( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAutoprovisioningLocationsIsMutable(); - autoprovisioningLocations_.add(value); - onChanged(); - return this; - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes can be created by NAP.
-     * 
- * - * repeated string autoprovisioning_locations = 5; - * @param values The autoprovisioningLocations to add. - * @return This builder for chaining. - */ - public Builder addAllAutoprovisioningLocations( - java.lang.Iterable values) { - ensureAutoprovisioningLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, autoprovisioningLocations_); - onChanged(); - return this; - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes can be created by NAP.
-     * 
- * - * repeated string autoprovisioning_locations = 5; - * @return This builder for chaining. - */ - public Builder clearAutoprovisioningLocations() { - autoprovisioningLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes can be created by NAP.
-     * 
- * - * repeated string autoprovisioning_locations = 5; - * @param value The bytes of the autoprovisioningLocations to add. - * @return This builder for chaining. - */ - public Builder addAutoprovisioningLocationsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureAutoprovisioningLocationsIsMutable(); - autoprovisioningLocations_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ClusterAutoscaling) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.ClusterAutoscaling) - private static final com.google.container.v1beta1.ClusterAutoscaling DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.ClusterAutoscaling(); - } - - public static com.google.container.v1beta1.ClusterAutoscaling getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterAutoscaling parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index a489cb1fc997..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterAutoscalingOrBuilder.java +++ /dev/null @@ -1,166 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface ClusterAutoscalingOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ClusterAutoscaling) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Enables automatic node pool creation and deletion.
-   * 
- * - * bool enable_node_autoprovisioning = 1; - * @return The enableNodeAutoprovisioning. - */ - boolean getEnableNodeAutoprovisioning(); - - /** - *
-   * Contains global constraints regarding minimum and maximum
-   * amount of resources in the cluster.
-   * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - java.util.List - getResourceLimitsList(); - /** - *
-   * Contains global constraints regarding minimum and maximum
-   * amount of resources in the cluster.
-   * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - com.google.container.v1beta1.ResourceLimit getResourceLimits(int index); - /** - *
-   * Contains global constraints regarding minimum and maximum
-   * amount of resources in the cluster.
-   * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - int getResourceLimitsCount(); - /** - *
-   * Contains global constraints regarding minimum and maximum
-   * amount of resources in the cluster.
-   * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - java.util.List - getResourceLimitsOrBuilderList(); - /** - *
-   * Contains global constraints regarding minimum and maximum
-   * amount of resources in the cluster.
-   * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - com.google.container.v1beta1.ResourceLimitOrBuilder getResourceLimitsOrBuilder( - int index); - - /** - *
-   * Defines autoscaling behaviour.
-   * 
- * - * .google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; - * @return The enum numeric value on the wire for autoscalingProfile. - */ - int getAutoscalingProfileValue(); - /** - *
-   * Defines autoscaling behaviour.
-   * 
- * - * .google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; - * @return The autoscalingProfile. - */ - com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile getAutoscalingProfile(); - - /** - *
-   * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-   * created by NAP.
-   * 
- * - * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * @return Whether the autoprovisioningNodePoolDefaults field is set. - */ - boolean hasAutoprovisioningNodePoolDefaults(); - /** - *
-   * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-   * created by NAP.
-   * 
- * - * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * @return The autoprovisioningNodePoolDefaults. - */ - com.google.container.v1beta1.AutoprovisioningNodePoolDefaults getAutoprovisioningNodePoolDefaults(); - /** - *
-   * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-   * created by NAP.
-   * 
- * - * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - */ - com.google.container.v1beta1.AutoprovisioningNodePoolDefaultsOrBuilder getAutoprovisioningNodePoolDefaultsOrBuilder(); - - /** - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes can be created by NAP.
-   * 
- * - * repeated string autoprovisioning_locations = 5; - * @return A list containing the autoprovisioningLocations. - */ - java.util.List - getAutoprovisioningLocationsList(); - /** - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes can be created by NAP.
-   * 
- * - * repeated string autoprovisioning_locations = 5; - * @return The count of autoprovisioningLocations. - */ - int getAutoprovisioningLocationsCount(); - /** - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes can be created by NAP.
-   * 
- * - * repeated string autoprovisioning_locations = 5; - * @param index The index of the element to return. - * @return The autoprovisioningLocations at the given index. - */ - java.lang.String getAutoprovisioningLocations(int index); - /** - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes can be created by NAP.
-   * 
- * - * repeated string autoprovisioning_locations = 5; - * @param index The index of the value to return. - * @return The bytes of the autoprovisioningLocations at the given index. - */ - com.google.protobuf.ByteString - getAutoprovisioningLocationsBytes(int index); -} diff --git a/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 deleted file mode 100644 index 77f305c86298..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterOrBuilder.java +++ /dev/null @@ -1,2060 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface ClusterOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.Cluster) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The name of this cluster. The name must be unique within this project
-   * and location (e.g. zone or region), and can be up to 40 characters with
-   * the following restrictions:
-   * * Lowercase letters, numbers, and hyphens only.
-   * * Must start with a letter.
-   * * Must end with a number or a letter.
-   * 
- * - * string name = 1; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * The name of this cluster. The name must be unique within this project
-   * and location (e.g. zone or region), and can be up to 40 characters with
-   * the following restrictions:
-   * * Lowercase letters, numbers, and hyphens only.
-   * * Must start with a letter.
-   * * Must end with a number or a letter.
-   * 
- * - * string name = 1; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * An optional description of this cluster.
-   * 
- * - * string description = 2; - * @return The description. - */ - java.lang.String getDescription(); - /** - *
-   * An optional description of this cluster.
-   * 
- * - * string description = 2; - * @return The bytes for description. - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - *
-   * The number of nodes to create in this cluster. You must ensure that your
-   * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
-   * is sufficient for this number of instances. You must also have available
-   * firewall and routes quota.
-   * For requests, this field should only be used in lieu of a
-   * "node_pool" object, since this configuration (along with the
-   * "node_config") will be used to create a "NodePool" object with an
-   * auto-generated name. Do not use this and a node_pool at the same time.
-   * This field is deprecated, use node_pool.initial_node_count instead.
-   * 
- * - * int32 initial_node_count = 3 [deprecated = true]; - * @deprecated google.container.v1beta1.Cluster.initial_node_count is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1578 - * @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=1591 - * @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=1591 - * @return The nodeConfig. - */ - @java.lang.Deprecated com.google.container.v1beta1.NodeConfig getNodeConfig(); - /** - *
-   * Parameters used in creating the cluster's nodes.
-   * For requests, this field should only be used in lieu of a
-   * "node_pool" object, since this configuration (along with the
-   * "initial_node_count") will be used to create a "NodePool" object with an
-   * auto-generated name. Do not use this and a node_pool at the same time.
-   * For responses, this field will be populated with the node configuration of
-   * the first node pool. (For configuration of each node pool, see
-   * `node_pool.config`)
-   * If unspecified, the defaults are used.
-   * This field is deprecated, use node_pool.config instead.
-   * 
- * - * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; - */ - @java.lang.Deprecated com.google.container.v1beta1.NodeConfigOrBuilder getNodeConfigOrBuilder(); - - /** - *
-   * The authentication information for accessing the master endpoint.
-   * If unspecified, the defaults are used:
-   * For clusters before v1.12, if master_auth is unspecified, `username` will
-   * be set to "admin", a random password will be generated, and a client
-   * certificate will be issued.
-   * 
- * - * .google.container.v1beta1.MasterAuth master_auth = 5; - * @return Whether the masterAuth field is set. - */ - boolean hasMasterAuth(); - /** - *
-   * The authentication information for accessing the master endpoint.
-   * If unspecified, the defaults are used:
-   * For clusters before v1.12, if master_auth is unspecified, `username` will
-   * be set to "admin", a random password will be generated, and a client
-   * certificate will be issued.
-   * 
- * - * .google.container.v1beta1.MasterAuth master_auth = 5; - * @return The masterAuth. - */ - com.google.container.v1beta1.MasterAuth getMasterAuth(); - /** - *
-   * The authentication information for accessing the master endpoint.
-   * If unspecified, the defaults are used:
-   * For clusters before v1.12, if master_auth is unspecified, `username` will
-   * be set to "admin", a random password will be generated, and a client
-   * certificate will be issued.
-   * 
- * - * .google.container.v1beta1.MasterAuth master_auth = 5; - */ - com.google.container.v1beta1.MasterAuthOrBuilder getMasterAuthOrBuilder(); - - /** - *
-   * The logging service the cluster should use to write logs.
-   * Currently available options:
-   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-   * service with a Kubernetes-native resource model
-   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-   *   available as of GKE 1.15).
-   * * `none` - no logs will be exported from the cluster.
-   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-   * 
- * - * string logging_service = 6; - * @return The loggingService. - */ - java.lang.String getLoggingService(); - /** - *
-   * The logging service the cluster should use to write logs.
-   * Currently available options:
-   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-   * service with a Kubernetes-native resource model
-   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-   *   available as of GKE 1.15).
-   * * `none` - no logs will be exported from the cluster.
-   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-   * 
- * - * string logging_service = 6; - * @return The bytes for loggingService. - */ - com.google.protobuf.ByteString - getLoggingServiceBytes(); - - /** - *
-   * The monitoring service the cluster should use to write metrics.
-   * Currently available options:
-   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-   * service with a Kubernetes-native resource model
-   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-   *   longer available as of GKE 1.15).
-   * * `none` - No metrics will be exported from the cluster.
-   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-   * 
- * - * string monitoring_service = 7; - * @return The monitoringService. - */ - java.lang.String getMonitoringService(); - /** - *
-   * The monitoring service the cluster should use to write metrics.
-   * Currently available options:
-   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-   * service with a Kubernetes-native resource model
-   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-   *   longer available as of GKE 1.15).
-   * * `none` - No metrics will be exported from the cluster.
-   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-   * 
- * - * string monitoring_service = 7; - * @return The bytes for monitoringService. - */ - com.google.protobuf.ByteString - getMonitoringServiceBytes(); - - /** - *
-   * The name of the Google Compute Engine
-   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-   * to which the cluster is connected. If left unspecified, the `default`
-   * network will be used. On output this shows the network ID instead of the
-   * name.
-   * 
- * - * string network = 8; - * @return The network. - */ - java.lang.String getNetwork(); - /** - *
-   * The name of the Google Compute Engine
-   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-   * to which the cluster is connected. If left unspecified, the `default`
-   * network will be used. On output this shows the network ID instead of the
-   * name.
-   * 
- * - * string network = 8; - * @return The bytes for network. - */ - com.google.protobuf.ByteString - getNetworkBytes(); - - /** - *
-   * The IP address range of the container pods in this cluster, in
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`). Leave blank to have
-   * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
-   * 
- * - * string cluster_ipv4_cidr = 9; - * @return The clusterIpv4Cidr. - */ - java.lang.String getClusterIpv4Cidr(); - /** - *
-   * The IP address range of the container pods in this cluster, in
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`). Leave blank to have
-   * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
-   * 
- * - * string cluster_ipv4_cidr = 9; - * @return The bytes for clusterIpv4Cidr. - */ - com.google.protobuf.ByteString - getClusterIpv4CidrBytes(); - - /** - *
-   * Configurations for the various addons available to run in the cluster.
-   * 
- * - * .google.container.v1beta1.AddonsConfig addons_config = 10; - * @return Whether the addonsConfig field is set. - */ - boolean hasAddonsConfig(); - /** - *
-   * Configurations for the various addons available to run in the cluster.
-   * 
- * - * .google.container.v1beta1.AddonsConfig addons_config = 10; - * @return The addonsConfig. - */ - com.google.container.v1beta1.AddonsConfig getAddonsConfig(); - /** - *
-   * Configurations for the various addons available to run in the cluster.
-   * 
- * - * .google.container.v1beta1.AddonsConfig addons_config = 10; - */ - com.google.container.v1beta1.AddonsConfigOrBuilder getAddonsConfigOrBuilder(); - - /** - *
-   * The name of the Google Compute Engine
-   * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
-   * the cluster is connected. On output this shows the subnetwork ID instead of
-   * the name.
-   * 
- * - * string subnetwork = 11; - * @return The subnetwork. - */ - java.lang.String getSubnetwork(); - /** - *
-   * The name of the Google Compute Engine
-   * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
-   * the cluster is connected. On output this shows the subnetwork ID instead of
-   * the name.
-   * 
- * - * string subnetwork = 11; - * @return The bytes for subnetwork. - */ - com.google.protobuf.ByteString - getSubnetworkBytes(); - - /** - *
-   * The node pools associated with this cluster.
-   * This field should not be set if "node_config" or "initial_node_count" are
-   * specified.
-   * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - java.util.List - getNodePoolsList(); - /** - *
-   * The node pools associated with this cluster.
-   * This field should not be set if "node_config" or "initial_node_count" are
-   * specified.
-   * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - com.google.container.v1beta1.NodePool getNodePools(int index); - /** - *
-   * The node pools associated with this cluster.
-   * This field should not be set if "node_config" or "initial_node_count" are
-   * specified.
-   * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - int getNodePoolsCount(); - /** - *
-   * The node pools associated with this cluster.
-   * This field should not be set if "node_config" or "initial_node_count" are
-   * specified.
-   * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - java.util.List - getNodePoolsOrBuilderList(); - /** - *
-   * The node pools associated with this cluster.
-   * This field should not be set if "node_config" or "initial_node_count" are
-   * specified.
-   * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - com.google.container.v1beta1.NodePoolOrBuilder getNodePoolsOrBuilder( - int index); - - /** - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This field provides a default value if
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * are not specified during node pool creation.
-   * Warning: changing cluster locations will update the
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * of all node pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string locations = 13; - * @return A list containing the locations. - */ - java.util.List - getLocationsList(); - /** - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This field provides a default value if
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * are not specified during node pool creation.
-   * Warning: changing cluster locations will update the
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * of all node pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string locations = 13; - * @return The count of locations. - */ - int getLocationsCount(); - /** - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This field provides a default value if
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * are not specified during node pool creation.
-   * Warning: changing cluster locations will update the
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * of all node pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string locations = 13; - * @param index The index of the element to return. - * @return The locations at the given index. - */ - java.lang.String getLocations(int index); - /** - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This field provides a default value if
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * are not specified during node pool creation.
-   * Warning: changing cluster locations will update the
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * of all node pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string locations = 13; - * @param index The index of the value to return. - * @return The bytes of the locations at the given index. - */ - com.google.protobuf.ByteString - getLocationsBytes(int index); - - /** - *
-   * Kubernetes alpha features are enabled on this cluster. This includes alpha
-   * API groups (e.g. v1beta1) and features that may not be production ready in
-   * the kubernetes version of the master and nodes.
-   * The cluster has no SLA for uptime and master/node upgrades are disabled.
-   * Alpha enabled clusters are automatically deleted thirty days after
-   * creation.
-   * 
- * - * bool enable_kubernetes_alpha = 14; - * @return The enableKubernetesAlpha. - */ - boolean getEnableKubernetesAlpha(); - - /** - *
-   * The resource labels for the cluster to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * map<string, string> resource_labels = 15; - */ - int getResourceLabelsCount(); - /** - *
-   * The resource labels for the cluster to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * map<string, string> resource_labels = 15; - */ - boolean containsResourceLabels( - java.lang.String key); - /** - * Use {@link #getResourceLabelsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getResourceLabels(); - /** - *
-   * The resource labels for the cluster to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * map<string, string> resource_labels = 15; - */ - java.util.Map - getResourceLabelsMap(); - /** - *
-   * The resource labels for the cluster to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * map<string, string> resource_labels = 15; - */ - - /* 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=1713 - * @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=1720 - * @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=1720 - * @return The bytes for masterIpv4CidrBlock. - */ - @java.lang.Deprecated com.google.protobuf.ByteString - getMasterIpv4CidrBlockBytes(); - - /** - *
-   * The default constraint on the maximum number of pods that can be run
-   * simultaneously on a node in the node pool of this cluster. Only honored
-   * if cluster created with IP Alias support.
-   * 
- * - * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; - * @return Whether the defaultMaxPodsConstraint field is set. - */ - boolean hasDefaultMaxPodsConstraint(); - /** - *
-   * The default constraint on the maximum number of pods that can be run
-   * simultaneously on a node in the node pool of this cluster. Only honored
-   * if cluster created with IP Alias support.
-   * 
- * - * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; - * @return The defaultMaxPodsConstraint. - */ - com.google.container.v1beta1.MaxPodsConstraint getDefaultMaxPodsConstraint(); - /** - *
-   * The default constraint on the maximum number of pods that can be run
-   * simultaneously on a node in the node pool of this cluster. Only honored
-   * if cluster created with IP Alias support.
-   * 
- * - * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; - */ - com.google.container.v1beta1.MaxPodsConstraintOrBuilder getDefaultMaxPodsConstraintOrBuilder(); - - /** - *
-   * Configuration for exporting resource usages. Resource usage export is
-   * disabled when this config unspecified.
-   * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; - * @return Whether the resourceUsageExportConfig field is set. - */ - boolean hasResourceUsageExportConfig(); - /** - *
-   * Configuration for exporting resource usages. Resource usage export is
-   * disabled when this config unspecified.
-   * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; - * @return The resourceUsageExportConfig. - */ - com.google.container.v1beta1.ResourceUsageExportConfig getResourceUsageExportConfig(); - /** - *
-   * Configuration for exporting resource usages. Resource usage export is
-   * disabled when this config unspecified.
-   * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; - */ - com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder getResourceUsageExportConfigOrBuilder(); - - /** - *
-   * Configuration controlling RBAC group membership information.
-   * 
- * - * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - * @return Whether the authenticatorGroupsConfig field is set. - */ - boolean hasAuthenticatorGroupsConfig(); - /** - *
-   * Configuration controlling RBAC group membership information.
-   * 
- * - * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - * @return The authenticatorGroupsConfig. - */ - com.google.container.v1beta1.AuthenticatorGroupsConfig getAuthenticatorGroupsConfig(); - /** - *
-   * Configuration controlling RBAC group membership information.
-   * 
- * - * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - */ - com.google.container.v1beta1.AuthenticatorGroupsConfigOrBuilder getAuthenticatorGroupsConfigOrBuilder(); - - /** - *
-   * Configuration for private cluster.
-   * 
- * - * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; - * @return Whether the privateClusterConfig field is set. - */ - boolean hasPrivateClusterConfig(); - /** - *
-   * Configuration for private cluster.
-   * 
- * - * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; - * @return The privateClusterConfig. - */ - com.google.container.v1beta1.PrivateClusterConfig getPrivateClusterConfig(); - /** - *
-   * Configuration for private cluster.
-   * 
- * - * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; - */ - com.google.container.v1beta1.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder(); - - /** - *
-   * Cluster-level Vertical Pod Autoscaling configuration.
-   * 
- * - * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - * @return Whether the verticalPodAutoscaling field is set. - */ - boolean hasVerticalPodAutoscaling(); - /** - *
-   * Cluster-level Vertical Pod Autoscaling configuration.
-   * 
- * - * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - * @return The verticalPodAutoscaling. - */ - com.google.container.v1beta1.VerticalPodAutoscaling getVerticalPodAutoscaling(); - /** - *
-   * Cluster-level Vertical Pod Autoscaling configuration.
-   * 
- * - * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - */ - com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder getVerticalPodAutoscalingOrBuilder(); - - /** - *
-   * Shielded Nodes configuration.
-   * 
- * - * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; - * @return Whether the shieldedNodes field is set. - */ - boolean hasShieldedNodes(); - /** - *
-   * Shielded Nodes configuration.
-   * 
- * - * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; - * @return The shieldedNodes. - */ - com.google.container.v1beta1.ShieldedNodes getShieldedNodes(); - /** - *
-   * Shielded Nodes configuration.
-   * 
- * - * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; - */ - com.google.container.v1beta1.ShieldedNodesOrBuilder getShieldedNodesOrBuilder(); - - /** - *
-   * Release channel configuration.
-   * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 41; - * @return Whether the releaseChannel field is set. - */ - boolean hasReleaseChannel(); - /** - *
-   * Release channel configuration.
-   * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 41; - * @return The releaseChannel. - */ - com.google.container.v1beta1.ReleaseChannel getReleaseChannel(); - /** - *
-   * Release channel configuration.
-   * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 41; - */ - com.google.container.v1beta1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder(); - - /** - *
-   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-   * policies.
-   * 
- * - * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; - * @return Whether the workloadIdentityConfig field is set. - */ - boolean hasWorkloadIdentityConfig(); - /** - *
-   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-   * policies.
-   * 
- * - * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; - * @return The workloadIdentityConfig. - */ - com.google.container.v1beta1.WorkloadIdentityConfig getWorkloadIdentityConfig(); - /** - *
-   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-   * policies.
-   * 
- * - * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; - */ - com.google.container.v1beta1.WorkloadIdentityConfigOrBuilder getWorkloadIdentityConfigOrBuilder(); - - /** - *
-   * 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=1786 - * @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=1786 - * @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=1819 - * @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=1819 - * @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=1831 - * @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=1831 - * @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=1847 - * @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=1847 - * @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=1847 - * @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=1847 - * @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=1851 - * @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(); - - /** - *
-   * Enable/Disable Protect API features for the cluster.
-   * 
- * - * optional .google.container.v1beta1.ProtectConfig protect_config = 137; - * @return Whether the protectConfig field is set. - */ - boolean hasProtectConfig(); - /** - *
-   * Enable/Disable Protect API features for the cluster.
-   * 
- * - * optional .google.container.v1beta1.ProtectConfig protect_config = 137; - * @return The protectConfig. - */ - com.google.container.v1beta1.ProtectConfig getProtectConfig(); - /** - *
-   * Enable/Disable Protect API features for the cluster.
-   * 
- * - * optional .google.container.v1beta1.ProtectConfig protect_config = 137; - */ - com.google.container.v1beta1.ProtectConfigOrBuilder getProtectConfigOrBuilder(); -} 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 deleted file mode 100644 index b8e54deab54c..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterServiceProto.java +++ /dev/null @@ -1,3202 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public final class ClusterServiceProto { - private ClusterServiceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_LinuxNodeConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_LinuxNodeConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_LinuxNodeConfig_SysctlsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_LinuxNodeConfig_SysctlsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_NodeKubeletConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_NodeKubeletConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_NodeConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_NodeConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_NodeConfig_MetadataEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_NodeConfig_MetadataEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_NodeConfig_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_NodeConfig_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_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_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_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_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_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_PrivateClusterMasterGlobalAccessConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_PrivateClusterMasterGlobalAccessConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_PrivateClusterConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_PrivateClusterConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_IstioConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_IstioConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_CloudRunConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_CloudRunConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_CidrBlock_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_LegacyAbac_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_LegacyAbac_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_NetworkPolicy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_NetworkPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_IPAllocationPolicy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_IPAllocationPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_BinaryAuthorization_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_BinaryAuthorization_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_PodSecurityPolicyConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_PodSecurityPolicyConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_AuthenticatorGroupsConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_AuthenticatorGroupsConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_ClusterTelemetry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_ClusterTelemetry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_Cluster_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_Cluster_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_Cluster_ResourceLabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_Cluster_ResourceLabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_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_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_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_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_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_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_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_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_GetOpenIDConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_GetOpenIDConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_GetOpenIDConfigResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_GetOpenIDConfigResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_GetJSONWebKeysRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_GetJSONWebKeysRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_Jwk_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_Jwk_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_GetJSONWebKeysResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_GetJSONWebKeysResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_ReleaseChannel_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_ReleaseChannel_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_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_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_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_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; - - 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\"\230\001\n\021NodeKubeletConfig\022\032\n\022cpu_mana" + - "ger_policy\030\001 \001(\t\0221\n\rcpu_cfs_quota\030\002 \001(\0132" + - "\032.google.protobuf.BoolValue\022\034\n\024cpu_cfs_q" + - "uota_period\030\003 \001(\t\022\026\n\016pod_pids_limit\030\004 \001(" + - "\003\"\370\014\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\010metadata\030" + - "\004 \003(\01322.google.container.v1beta1.NodeCon" + - "fig.MetadataEntry\022\022\n\nimage_type\030\005 \001(\t\022@\n" + - "\006labels\030\006 \003(\01320.google.container.v1beta1" + - ".NodeConfig.LabelsEntry\022\027\n\017local_ssd_cou" + - "nt\030\007 \001(\005\022\014\n\004tags\030\010 \003(\t\022\023\n\013preemptible\030\n " + - "\001(\010\022A\n\014accelerators\030\013 \003(\0132+.google.conta" + - "iner.v1beta1.AcceleratorConfig\022?\n\016sandbo" + - "x_config\030\021 \001(\0132\'.google.container.v1beta" + - "1.SandboxConfig\022\022\n\nnode_group\030\022 \001(\t\022K\n\024r" + - "eservation_affinity\030\023 \001(\0132-.google.conta" + - "iner.v1beta1.ReservationAffinity\022\021\n\tdisk" + - "_type\030\014 \001(\t\022\030\n\020min_cpu_platform\030\r \001(\t\022R\n" + - "\030workload_metadata_config\030\016 \001(\01320.google" + - ".container.v1beta1.WorkloadMetadataConfi" + - "g\0223\n\006taints\030\017 \003(\0132#.google.container.v1b" + - "eta1.NodeTaint\022\031\n\021boot_disk_kms_key\030\027 \001(" + - "\t\022R\n\030shielded_instance_config\030\024 \001(\01320.go" + - "ogle.container.v1beta1.ShieldedInstanceC" + - "onfig\022D\n\021linux_node_config\030\025 \001(\0132).googl" + - "e.container.v1beta1.LinuxNodeConfig\022C\n\016k" + - "ubelet_config\030\026 \001(\0132+.google.container.v" + - "1beta1.NodeKubeletConfig\022R\n\030ephemeral_st" + - "orage_config\030\030 \001(\01320.google.container.v1" + - "beta1.EphemeralStorageConfig\0229\n\013gcfs_con" + - "fig\030\031 \001(\0132$.google.container.v1beta1.Gcf" + - "sConfig\022T\n\031advanced_machine_features\030\032 \001" + - "(\01321.google.container.v1beta1.AdvancedMa" + - "chineFeatures\0223\n\005gvnic\030\035 \001(\0132$.google.co" + - "ntainer.v1beta1.VirtualNIC\022\014\n\004spot\030 \001(\010" + - "\022G\n\022confidential_nodes\030# \001(\0132+.google.co" + - "ntainer.v1beta1.ConfidentialNodes\022Q\n\017res" + - "ource_labels\030% \003(\01328.google.container.v1" + - "beta1.NodeConfig.ResourceLabelsEntry\022G\n\016" + - "logging_config\030& \001(\0132/.google.container." + - "v1beta1.NodePoolLoggingConfig\032/\n\rMetadat" + - "aEntry\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\001\"M\n\027AdvancedMachineF" + - "eatures\022\035\n\020threads_per_core\030\001 \001(\003H\000\210\001\001B\023" + - "\n\021_threads_per_core\"\251\005\n\021NodeNetworkConfi" + - "g\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_cidr_block\030\006 \001(\t" + - "\022!\n\024enable_private_nodes\030\t \001(\010H\000\210\001\001\022m\n\032n" + - "etwork_performance_config\030\013 \001(\0132D.google" + - ".container.v1beta1.NodeNetworkConfig.Net" + - "workPerformanceConfigH\001\210\001\001\032\372\002\n\030NetworkPe" + - "rformanceConfig\022s\n\033total_egress_bandwidt" + - "h_tier\030\001 \001(\0162I.google.container.v1beta1." + - "NodeNetworkConfig.NetworkPerformanceConf" + - "ig.TierH\000\210\001\001\022y\n!external_ip_egress_bandw" + - "idth_tier\030\002 \001(\0162I.google.container.v1bet" + - "a1.NodeNetworkConfig.NetworkPerformanceC" + - "onfig.TierH\001\210\001\001\"(\n\004Tier\022\024\n\020TIER_UNSPECIF" + - "IED\020\000\022\n\n\006TIER_1\020\001B\036\n\034_total_egress_bandw" + - "idth_tierB$\n\"_external_ip_egress_bandwid" + - "th_tierB\027\n\025_enable_private_nodesB\035\n\033_net" + - "work_performance_config\"Y\n\026ShieldedInsta" + - "nceConfig\022\032\n\022enable_secure_boot\030\001 \001(\010\022#\n" + - "\033enable_integrity_monitoring\030\002 \001(\010\"\212\001\n\rS" + - "andboxConfig\022\030\n\014sandbox_type\030\001 \001(\tB\002\030\001\022:" + - "\n\004type\030\002 \001(\0162,.google.container.v1beta1." + - "SandboxConfig.Type\"#\n\004Type\022\017\n\013UNSPECIFIE" + - "D\020\000\022\n\n\006GVISOR\020\001\"1\n\026EphemeralStorageConfi" + - "g\022\027\n\017local_ssd_count\030\001 \001(\005\"\035\n\nGcfsConfig" + - "\022\017\n\007enabled\030\001 \001(\010\"\344\001\n\023ReservationAffinit" + - "y\022T\n\030consume_reservation_type\030\001 \001(\01622.go" + - "ogle.container.v1beta1.ReservationAffini" + - "ty.Type\022\013\n\003key\030\002 \001(\t\022\016\n\006values\030\003 \003(\t\"Z\n\004" + - "Type\022\017\n\013UNSPECIFIED\020\000\022\022\n\016NO_RESERVATION\020" + - "\001\022\023\n\017ANY_RESERVATION\020\002\022\030\n\024SPECIFIC_RESER" + - "VATION\020\003\"\276\001\n\tNodeTaint\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + - "alue\030\002 \001(\t\022:\n\006effect\030\003 \001(\0162*.google.cont" + - "ainer.v1beta1.NodeTaint.Effect\"Y\n\006Effect" + - "\022\026\n\022EFFECT_UNSPECIFIED\020\000\022\017\n\013NO_SCHEDULE\020" + - "\001\022\026\n\022PREFER_NO_SCHEDULE\020\002\022\016\n\nNO_EXECUTE\020" + - "\003\"A\n\nNodeTaints\0223\n\006taints\030\001 \003(\0132#.google" + - ".container.v1beta1.NodeTaint\"}\n\nNodeLabe" + - "ls\022@\n\006labels\030\001 \003(\01320.google.container.v1" + - "beta1.NodeLabels.LabelsEntry\032-\n\013LabelsEn" + - "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\205\001\n\016" + - "ResourceLabels\022D\n\006labels\030\001 \003(\01324.google." + - "container.v1beta1.ResourceLabels.LabelsE" + - "ntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + - "e\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_certificat" + - "e_config\030\003 \001(\01321.google.container.v1beta" + - "1.ClientCertificateConfig\022\036\n\026cluster_ca_" + - "certificate\030d \001(\t\022\032\n\022client_certificate\030" + - "e \001(\t\022\022\n\nclient_key\030f \001(\t\";\n\027ClientCerti" + - "ficateConfig\022 \n\030issue_client_certificate" + - "\030\001 \001(\010\"\305\007\n\014AddonsConfig\022H\n\023http_load_bal" + - "ancing\030\001 \001(\0132+.google.container.v1beta1." + - "HttpLoadBalancing\022V\n\032horizontal_pod_auto" + - "scaling\030\002 \001(\01322.google.container.v1beta1" + - ".HorizontalPodAutoscaling\022O\n\024kubernetes_" + - "dashboard\030\003 \001(\0132-.google.container.v1bet" + - "a1.KubernetesDashboardB\002\030\001\022L\n\025network_po" + - "licy_config\030\004 \001(\0132-.google.container.v1b" + - "eta1.NetworkPolicyConfig\022?\n\014istio_config" + - "\030\005 \001(\0132%.google.container.v1beta1.IstioC" + - "onfigB\002\030\001\022B\n\020cloud_run_config\030\007 \001(\0132(.go" + - "ogle.container.v1beta1.CloudRunConfig\022B\n" + - "\020dns_cache_config\030\010 \001(\0132(.google.contain" + - "er.v1beta1.DnsCacheConfig\022P\n\027config_conn" + - "ector_config\030\n \001(\0132/.google.container.v1" + - "beta1.ConfigConnectorConfig\022i\n%gce_persi" + - "stent_disk_csi_driver_config\030\013 \001(\0132:.goo" + - "gle.container.v1beta1.GcePersistentDiskC" + - "siDriverConfig\022=\n\013kalm_config\030\014 \001(\0132$.go" + - "ogle.container.v1beta1.KalmConfigB\002\030\001\022^\n" + - "\037gcp_filestore_csi_driver_config\030\016 \001(\01325" + - ".google.container.v1beta1.GcpFilestoreCs" + - "iDriverConfig\022O\n\027gke_backup_agent_config" + - "\030\020 \001(\0132..google.container.v1beta1.GkeBac" + - "kupAgentConfig\"%\n\021HttpLoadBalancing\022\020\n\010d" + - "isabled\030\001 \001(\010\",\n\030HorizontalPodAutoscalin" + - "g\022\020\n\010disabled\030\001 \001(\010\"\'\n\023KubernetesDashboa" + - "rd\022\020\n\010disabled\030\001 \001(\010\"\'\n\023NetworkPolicyCon" + - "fig\022\020\n\010disabled\030\001 \001(\010\"!\n\016DnsCacheConfig\022" + - "\017\n\007enabled\030\001 \001(\010\"!\n\nKalmConfig\022\023\n\007enable" + - "d\030\001 \001(\010B\002\030\001\"\'\n\024GkeBackupAgentConfig\022\017\n\007e" + - "nabled\030\001 \001(\010\"(\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\"9\n&P" + - "rivateClusterMasterGlobalAccessConfig\022\017\n" + - "\007enabled\030\001 \001(\010\"\312\002\n\024PrivateClusterConfig\022" + - "\034\n\024enable_private_nodes\030\001 \001(\010\022\037\n\027enable_" + - "private_endpoint\030\002 \001(\010\022\036\n\026master_ipv4_ci" + - "dr_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_nam" + - "e\030\007 \001(\t\022e\n\033master_global_access_config\030\010" + - " \001(\0132@.google.container.v1beta1.PrivateC" + - "lusterMasterGlobalAccessConfig\022#\n\033privat" + - "e_endpoint_subnetwork\030\n \001(\t\"\237\001\n\013IstioCon" + - "fig\022\024\n\010disabled\030\001 \001(\010B\002\030\001\022E\n\004auth\030\002 \001(\0162" + - "3.google.container.v1beta1.IstioConfig.I" + - "stioAuthModeB\002\030\001\"3\n\rIstioAuthMode\022\r\n\tAUT" + - "H_NONE\020\000\022\023\n\017AUTH_MUTUAL_TLS\020\001\"\363\001\n\016CloudR" + - "unConfig\022\020\n\010disabled\030\001 \001(\010\022U\n\022load_balan" + - "cer_type\030\003 \001(\01629.google.container.v1beta" + - "1.CloudRunConfig.LoadBalancerType\"x\n\020Loa" + - "dBalancerType\022\"\n\036LOAD_BALANCER_TYPE_UNSP" + - "ECIFIED\020\000\022\037\n\033LOAD_BALANCER_TYPE_EXTERNAL" + - "\020\001\022\037\n\033LOAD_BALANCER_TYPE_INTERNAL\020\002\"\223\002\n\036" + - "MasterAuthorizedNetworksConfig\022\017\n\007enable" + - "d\030\001 \001(\010\022W\n\013cidr_blocks\030\002 \003(\0132B.google.co" + - "ntainer.v1beta1.MasterAuthorizedNetworks" + - "Config.CidrBlock\022,\n\037gcp_public_cidrs_acc" + - "ess_enabled\030\003 \001(\010H\000\210\001\001\0325\n\tCidrBlock\022\024\n\014d" + - "isplay_name\030\001 \001(\t\022\022\n\ncidr_block\030\002 \001(\tB\"\n" + - " _gcp_public_cidrs_access_enabled\"\035\n\nLeg" + - "acyAbac\022\017\n\007enabled\030\001 \001(\010\"\226\001\n\rNetworkPoli" + - "cy\022B\n\010provider\030\001 \001(\01620.google.container." + - "v1beta1.NetworkPolicy.Provider\022\017\n\007enable" + - "d\030\002 \001(\010\"0\n\010Provider\022\030\n\024PROVIDER_UNSPECIF" + - "IED\020\000\022\n\n\006CALICO\020\001\"\270\006\n\022IPAllocationPolicy" + - "\022\026\n\016use_ip_aliases\030\001 \001(\010\022\031\n\021create_subne" + - "twork\030\002 \001(\010\022\027\n\017subnetwork_name\030\003 \001(\t\022\035\n\021" + - "cluster_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_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\023allow_route_ove" + - "rlap\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\nstack_type\030\020 \001(\0162" + - "6.google.container.v1beta1.IPAllocationP" + - "olicy.StackType\022U\n\020ipv6_access_type\030\021 \001(" + - "\0162;.google.container.v1beta1.IPAllocatio" + - "nPolicy.IPv6AccessType\022#\n\026subnet_ipv6_ci" + - "dr_block\030\026 \001(\tB\003\340A\003\022%\n\030services_ipv6_cid" + - "r_block\030\027 \001(\tB\003\340A\003\"@\n\tStackType\022\032\n\026STACK" + - "_TYPE_UNSPECIFIED\020\000\022\010\n\004IPV4\020\001\022\r\n\tIPV4_IP" + - "V6\020\002\"N\n\016IPv6AccessType\022 \n\034IPV6_ACCESS_TY" + - "PE_UNSPECIFIED\020\000\022\014\n\010INTERNAL\020\001\022\014\n\010EXTERN" + - "AL\020\002\"\350\001\n\023BinaryAuthorization\022\023\n\007enabled\030" + - "\001 \001(\010B\002\030\001\022U\n\017evaluation_mode\030\002 \001(\0162<.goo" + - "gle.container.v1beta1.BinaryAuthorizatio" + - "n.EvaluationMode\"e\n\016EvaluationMode\022\037\n\033EV" + - "ALUATION_MODE_UNSPECIFIED\020\000\022\014\n\010DISABLED\020" + - "\001\022$\n PROJECT_SINGLETON_POLICY_ENFORCE\020\002\"" + - "*\n\027PodSecurityPolicyConfig\022\017\n\007enabled\030\001 " + - "\001(\010\"D\n\031AuthenticatorGroupsConfig\022\017\n\007enab" + - "led\030\001 \001(\010\022\026\n\016security_group\030\002 \001(\t\"\226\001\n\020Cl" + - "usterTelemetry\022=\n\004type\030\001 \001(\0162/.google.co" + - "ntainer.v1beta1.ClusterTelemetry.Type\"C\n" + - "\004Type\022\017\n\013UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\013\n\007" + - "ENABLED\020\002\022\017\n\013SYSTEM_ONLY\020\003\"\360\036\n\007Cluster\022\014" + - "\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022\036\n\022ini" + - "tial_node_count\030\003 \001(\005B\002\030\001\022=\n\013node_config" + - "\030\004 \001(\0132$.google.container.v1beta1.NodeCo" + - "nfigB\002\030\001\0229\n\013master_auth\030\005 \001(\0132$.google.c" + - "ontainer.v1beta1.MasterAuth\022\027\n\017logging_s" + - "ervice\030\006 \001(\t\022\032\n\022monitoring_service\030\007 \001(\t" + - "\022\017\n\007network\030\010 \001(\t\022\031\n\021cluster_ipv4_cidr\030\t" + - " \001(\t\022=\n\raddons_config\030\n \001(\0132&.google.con" + - "tainer.v1beta1.AddonsConfig\022\022\n\nsubnetwor" + - "k\030\013 \001(\t\0226\n\nnode_pools\030\014 \003(\0132\".google.con" + - "tainer.v1beta1.NodePool\022\021\n\tlocations\030\r \003" + - "(\t\022\037\n\027enable_kubernetes_alpha\030\016 \001(\010\022N\n\017r" + - "esource_labels\030\017 \003(\01325.google.container." + - "v1beta1.Cluster.ResourceLabelsEntry\022\031\n\021l" + - "abel_fingerprint\030\020 \001(\t\0229\n\013legacy_abac\030\022 " + - "\001(\0132$.google.container.v1beta1.LegacyAba" + - "c\022?\n\016network_policy\030\023 \001(\0132\'.google.conta" + - "iner.v1beta1.NetworkPolicy\022J\n\024ip_allocat" + - "ion_policy\030\024 \001(\0132,.google.container.v1be" + - "ta1.IPAllocationPolicy\022c\n!master_authori" + - "zed_networks_config\030\026 \001(\01328.google.conta" + - "iner.v1beta1.MasterAuthorizedNetworksCon" + - "fig\022G\n\022maintenance_policy\030\027 \001(\0132+.google" + - ".container.v1beta1.MaintenancePolicy\022K\n\024" + - "binary_authorization\030\030 \001(\0132-.google.cont" + - "ainer.v1beta1.BinaryAuthorization\022U\n\032pod" + - "_security_policy_config\030\031 \001(\01321.google.c" + - "ontainer.v1beta1.PodSecurityPolicyConfig" + - "\022A\n\013autoscaling\030\032 \001(\0132,.google.container" + - ".v1beta1.ClusterAutoscaling\022?\n\016network_c" + - "onfig\030\033 \001(\0132\'.google.container.v1beta1.N" + - "etworkConfig\022\033\n\017private_cluster\030\034 \001(\010B\002\030" + - "\001\022\"\n\026master_ipv4_cidr_block\030\035 \001(\tB\002\030\001\022P\n" + - "\033default_max_pods_constraint\030\036 \001(\0132+.goo" + - "gle.container.v1beta1.MaxPodsConstraint\022" + - "Y\n\034resource_usage_export_config\030! \001(\01323." + - "google.container.v1beta1.ResourceUsageEx" + - "portConfig\022X\n\033authenticator_groups_confi" + - "g\030\" \001(\01323.google.container.v1beta1.Authe" + - "nticatorGroupsConfig\022N\n\026private_cluster_" + - "config\030% \001(\0132..google.container.v1beta1." + - "PrivateClusterConfig\022R\n\030vertical_pod_aut" + - "oscaling\030\' \001(\01320.google.container.v1beta" + - "1.VerticalPodAutoscaling\022?\n\016shielded_nod" + - "es\030( \001(\0132\'.google.container.v1beta1.Shie" + - "ldedNodes\022A\n\017release_channel\030) \001(\0132(.goo" + - "gle.container.v1beta1.ReleaseChannel\022R\n\030" + - "workload_identity_config\030+ \001(\01320.google." + - "container.v1beta1.WorkloadIdentityConfig" + - "\022M\n\025workload_certificates\0304 \001(\0132..google" + - ".container.v1beta1.WorkloadCertificates\022" + - "E\n\021mesh_certificates\030C \001(\0132*.google.cont" + - "ainer.v1beta1.MeshCertificates\022J\n\024worklo" + - "ad_alts_config\0305 \001(\0132,.google.container." + - "v1beta1.WorkloadALTSConfig\022N\n\026cost_manag" + - "ement_config\030- \001(\0132..google.container.v1" + - "beta1.CostManagementConfig\022E\n\021cluster_te" + - "lemetry\030. \001(\0132*.google.container.v1beta1" + - ".ClusterTelemetry\0227\n\ntpu_config\030/ \001(\0132#." + - "google.container.v1beta1.TpuConfig\022I\n\023no" + - "tification_config\0301 \001(\0132,.google.contain" + - "er.v1beta1.NotificationConfig\022G\n\022confide" + - "ntial_nodes\0302 \001(\0132+.google.container.v1b" + - "eta1.ConfidentialNodes\022P\n\027identity_servi" + - "ce_config\0306 \001(\0132/.google.container.v1bet" + - "a1.IdentityServiceConfig\022\021\n\tself_link\030d " + - "\001(\t\022\020\n\004zone\030e \001(\tB\002\030\001\022\020\n\010endpoint\030f \001(\t\022" + - "\037\n\027initial_cluster_version\030g \001(\t\022\036\n\026curr" + - "ent_master_version\030h \001(\t\022 \n\024current_node" + - "_version\030i \001(\tB\002\030\001\022\023\n\013create_time\030j \001(\t\022" + - "8\n\006status\030k \001(\0162(.google.container.v1bet" + - "a1.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\022se" + - "rvices_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_tpu\030s \001(\010\022\033\n\023tpu_ipv4_c" + - "idr_block\030t \001(\t\022I\n\023database_encryption\030&" + - " \001(\0132,.google.container.v1beta1.Database" + - "Encryption\022=\n\nconditions\030v \003(\0132).google." + - "container.v1beta1.StatusCondition\0220\n\006mas" + - "ter\030| \001(\0132 .google.container.v1beta1.Mas" + - "ter\0227\n\tautopilot\030\200\001 \001(\0132#.google.contain" + - "er.v1beta1.Autopilot\022\020\n\002id\030\201\001 \001(\tB\003\340A\003\022L" + - "\n\022node_pool_defaults\030\203\001 \001(\0132*.google.con" + - "tainer.v1beta1.NodePoolDefaultsH\000\210\001\001\022@\n\016" + - "logging_config\030\204\001 \001(\0132\'.google.container" + - ".v1beta1.LoggingConfig\022F\n\021monitoring_con" + - "fig\030\205\001 \001(\0132*.google.container.v1beta1.Mo" + - "nitoringConfig\022L\n\025node_pool_auto_config\030" + - "\210\001 \001(\0132,.google.container.v1beta1.NodePo" + - "olAutoConfig\022E\n\016protect_config\030\211\001 \001(\0132\'." + - "google.container.v1beta1.ProtectConfigH\001" + - "\210\001\001\0325\n\023ResourceLabelsEntry\022\013\n\003key\030\001 \001(\t\022" + - "\r\n\005value\030\002 \001(\t:\0028\001\"w\n\006Status\022\026\n\022STATUS_U" + - "NSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007RUNNIN" + - "G\020\002\022\017\n\013RECONCILING\020\003\022\014\n\010STOPPING\020\004\022\t\n\005ER" + - "ROR\020\005\022\014\n\010DEGRADED\020\006B\025\n\023_node_pool_defaul" + - "tsB\021\n\017_protect_config\"\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\005" + - "BASIC\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(\0132(.google.contain" + - "er.v1beta1.WorkloadConfigH\000\210\001\001\022k\n\033worklo" + - "ad_vulnerability_mode\030\002 \001(\0162A.google.con" + - "tainer.v1beta1.ProtectConfig.WorkloadVul" + - "nerabilityModeH\001\210\001\001\"a\n\031WorkloadVulnerabi" + - "lityMode\022+\n\'WORKLOAD_VULNERABILITY_MODE_" + - "UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\t\n\005BASIC\020\002B\022" + - "\n\020_workload_configB\036\n\034_workload_vulnerab" + - "ility_mode\"^\n\020NodePoolDefaults\022J\n\024node_c" + - "onfig_defaults\030\001 \001(\0132,.google.container." + - "v1beta1.NodeConfigDefaults\"\230\001\n\022NodeConfi" + - "gDefaults\0229\n\013gcfs_config\030\001 \001(\0132$.google." + - "container.v1beta1.GcfsConfig\022G\n\016logging_" + - "config\030\003 \001(\0132/.google.container.v1beta1." + - "NodePoolLoggingConfig\"Q\n\022NodePoolAutoCon" + - "fig\022;\n\014network_tags\030\001 \001(\0132%.google.conta" + - "iner.v1beta1.NetworkTags\"\366\032\n\rClusterUpda" + - "te\022\034\n\024desired_node_version\030\004 \001(\t\022\"\n\032desi" + - "red_monitoring_service\030\005 \001(\t\022E\n\025desired_" + - "addons_config\030\006 \001(\0132&.google.container.v" + - "1beta1.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-.g" + - "oogle.container.v1beta1.NodePoolAutoscal" + - "ing\022\031\n\021desired_locations\030\n \003(\t\022k\n)desire" + - "d_master_authorized_networks_config\030\014 \001(" + - "\01328.google.container.v1beta1.MasterAutho" + - "rizedNetworksConfig\022]\n\"desired_pod_secur" + - "ity_policy_config\030\016 \001(\01321.google.contain" + - "er.v1beta1.PodSecurityPolicyConfig\022Q\n\033de" + - "sired_cluster_autoscaling\030\017 \001(\0132,.google" + - ".container.v1beta1.ClusterAutoscaling\022S\n" + - "\034desired_binary_authorization\030\020 \001(\0132-.go" + - "ogle.container.v1beta1.BinaryAuthorizati" + - "on\022\037\n\027desired_logging_service\030\023 \001(\t\022a\n$d" + - "esired_resource_usage_export_config\030\025 \001(" + - "\01323.google.container.v1beta1.ResourceUsa" + - "geExportConfig\022Z\n desired_vertical_pod_a" + - "utoscaling\030\026 \001(\01320.google.container.v1be" + - "ta1.VerticalPodAutoscaling\022V\n\036desired_pr" + - "ivate_cluster_config\030\031 \001(\0132..google.cont" + - "ainer.v1beta1.PrivateClusterConfig\022a\n$de" + - "sired_intra_node_visibility_config\030\032 \001(\013" + - "23.google.container.v1beta1.IntraNodeVis" + - "ibilityConfig\022P\n\033desired_default_snat_st" + - "atus\030\034 \001(\0132+.google.container.v1beta1.De" + - "faultSnatStatus\022M\n\031desired_cluster_telem" + - "etry\030\036 \001(\0132*.google.container.v1beta1.Cl" + - "usterTelemetry\022I\n\027desired_release_channe" + - "l\030\037 \001(\0132(.google.container.v1beta1.Relea" + - "seChannel\022?\n\022desired_tpu_config\030& \001(\0132#." + - "google.container.v1beta1.TpuConfig\022V\n\037de" + - "sired_l4ilb_subsetting_config\030\' \001(\0132-.go" + - "ogle.container.v1beta1.ILBSubsettingConf" + - "ig\022M\n\031desired_datapath_provider\0302 \001(\0162*." + - "google.container.v1beta1.DatapathProvide" + - "r\022]\n\"desired_private_ipv6_google_access\030" + - "3 \001(\01621.google.container.v1beta1.Private" + - "IPv6GoogleAccess\022Q\n\033desired_notification" + - "_config\0307 \001(\0132,.google.container.v1beta1" + - ".NotificationConfig\022\036\n\026desired_master_ve" + - "rsion\030d \001(\t\022A\n\023desired_gcfs_config\030m \001(\013" + - "2$.google.container.v1beta1.GcfsConfig\022Q" + - "\n\033desired_database_encryption\030. \001(\0132,.go" + - "ogle.container.v1beta1.DatabaseEncryptio" + - "n\022Z\n desired_workload_identity_config\030/ " + - "\001(\01320.google.container.v1beta1.WorkloadI" + - "dentityConfig\022U\n\035desired_workload_certif" + - "icates\030= \001(\0132..google.container.v1beta1." + - "WorkloadCertificates\022M\n\031desired_mesh_cer" + - "tificates\030C \001(\0132*.google.container.v1bet" + - "a1.MeshCertificates\022R\n\034desired_workload_" + - "alts_config\030> \001(\0132,.google.container.v1b" + - "eta1.WorkloadALTSConfig\022G\n\026desired_shiel" + - "ded_nodes\0300 \001(\0132\'.google.container.v1bet" + - "a1.ShieldedNodes\022V\n\036desired_cost_managem" + - "ent_config\0301 \001(\0132..google.container.v1be" + - "ta1.CostManagementConfig\0228\n\016desired_mast" + - "er\0304 \001(\0132 .google.container.v1beta1.Mast" + - "er\022?\n\022desired_dns_config\0305 \001(\0132#.google.", - "container.v1beta1.DNSConfig\022_\n#desired_s" + - "ervice_external_ips_config\030< \001(\01322.googl" + - "e.container.v1beta1.ServiceExternalIPsCo" + - "nfig\022`\n#desired_authenticator_groups_con" + - "fig\030? \001(\01323.google.container.v1beta1.Aut" + - "henticatorGroupsConfig\022G\n\026desired_loggin" + - "g_config\030@ \001(\0132\'.google.container.v1beta" + - "1.LoggingConfig\022M\n\031desired_monitoring_co" + - "nfig\030A \001(\0132*.google.container.v1beta1.Mo" + - "nitoringConfig\022X\n\037desired_identity_servi" + - "ce_config\030B \001(\0132/.google.container.v1bet" + - "a1.IdentityServiceConfig\022,\n\037desired_enab" + - "le_private_endpoint\030G \001(\010H\000\210\001\001\022Y\n*desire" + - "d_node_pool_auto_config_network_tags\030n \001" + - "(\0132%.google.container.v1beta1.NetworkTag" + - "s\022L\n\026desired_protect_config\030p \001(\0132\'.goog" + - "le.container.v1beta1.ProtectConfigH\001\210\001\001\022" + - "N\n\032desired_gateway_api_config\030r \001(\0132*.go" + - "ogle.container.v1beta1.GatewayAPIConfig\022" + - "Y\n desired_node_pool_logging_config\030t \001(" + - "\0132/.google.container.v1beta1.NodePoolLog" + - "gingConfigB\"\n _desired_enable_private_en" + - "dpointB\031\n\027_desired_protect_config\"\212\010\n\tOp" + - "eration\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.contain" + - "er.v1beta1.Operation.Type\022:\n\006status\030\004 \001(" + - "\0162*.google.container.v1beta1.Operation.S" + - "tatus\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\013targe" + - "t_link\030\007 \001(\t\022\020\n\010location\030\t \001(\t\022\022\n\nstart_" + - "time\030\n \001(\t\022\020\n\010end_time\030\013 \001(\t\022B\n\010progress" + - "\030\014 \001(\0132+.google.container.v1beta1.Operat" + - "ionProgressB\003\340A\003\022I\n\022cluster_conditions\030\r" + - " \003(\0132).google.container.v1beta1.StatusCo" + - "nditionB\002\030\001\022J\n\023nodepool_conditions\030\016 \003(\013" + - "2).google.container.v1beta1.StatusCondit" + - "ionB\002\030\001\022!\n\005error\030\017 \001(\0132\022.google.rpc.Stat" + - "us\"R\n\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\013\n\007" + - "PENDING\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\022\014\n\010ABOR" + - "TING\020\004\"\375\002\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n" + - "\016CREATE_CLUSTER\020\001\022\022\n\016DELETE_CLUSTER\020\002\022\022\n" + - "\016UPGRADE_MASTER\020\003\022\021\n\rUPGRADE_NODES\020\004\022\022\n\016" + - "REPAIR_CLUSTER\020\005\022\022\n\016UPDATE_CLUSTER\020\006\022\024\n\020" + - "CREATE_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_R" + - "EPAIR_NODES\020\n\022\026\n\022AUTO_UPGRADE_NODES\020\013\022\016\n" + - "\nSET_LABELS\020\014\022\023\n\017SET_MASTER_AUTH\020\r\022\026\n\022SE" + - "T_NODE_POOL_SIZE\020\016\022\026\n\022SET_NETWORK_POLICY" + - "\020\017\022\032\n\026SET_MAINTENANCE_POLICY\020\020\"\312\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\032i\n\006Metric\022\021\n\004name\030\001 \001(\t" + - "B\003\340A\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\"\217\001\n\024CreateClusterRequest\022\031\n\nproject_" + - "id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\0227\n\007" + - "cluster\030\003 \001(\0132!.google.container.v1beta1" + - ".ClusterB\003\340A\002\022\016\n\006parent\030\005 \001(\t\"l\n\021GetClus" + - "terRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n" + - "\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005" + - "\030\001\340A\002\022\014\n\004name\030\005 \001(\t\"\255\001\n\024UpdateClusterReq" + - "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" + - "<\n\006update\030\004 \001(\0132\'.google.container.v1bet" + - "a1.ClusterUpdateB\003\340A\002\022\014\n\004name\030\005 \001(\t\"\261\010\n\025" + - "UpdateNodePoolRequest\022\031\n\nproject_id\030\001 \001(" + - "\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster" + - "_id\030\003 \001(\tB\005\030\001\340A\002\022\033\n\014node_pool_id\030\004 \001(\tB\005" + - "\030\001\340A\002\022\031\n\014node_version\030\005 \001(\tB\003\340A\002\022\027\n\nimag" + - "e_type\030\006 \001(\tB\003\340A\002\022\021\n\tlocations\030\r \003(\t\022R\n\030" + - "workload_metadata_config\030\016 \001(\01320.google." + - "container.v1beta1.WorkloadMetadataConfig" + - "\022\014\n\004name\030\010 \001(\t\022L\n\020upgrade_settings\030\017 \001(\013" + - "22.google.container.v1beta1.NodePool.Upg" + - "radeSettings\0223\n\004tags\030\020 \001(\0132%.google.cont" + - "ainer.v1beta1.NetworkTags\0224\n\006taints\030\021 \001(" + - "\0132$.google.container.v1beta1.NodeTaints\022" + - "4\n\006labels\030\022 \001(\0132$.google.container.v1bet" + - "a1.NodeLabels\022D\n\021linux_node_config\030\023 \001(\013" + - "2).google.container.v1beta1.LinuxNodeCon" + - "fig\022C\n\016kubelet_config\030\024 \001(\0132+.google.con" + - "tainer.v1beta1.NodeKubeletConfig\022H\n\023node" + - "_network_config\030\025 \001(\0132+.google.container" + - ".v1beta1.NodeNetworkConfig\0229\n\013gcfs_confi" + - "g\030\026 \001(\0132$.google.container.v1beta1.GcfsC" + - "onfig\022G\n\022confidential_nodes\030\027 \001(\0132+.goog" + - "le.container.v1beta1.ConfidentialNodes\0223" + - "\n\005gvnic\030\035 \001(\0132$.google.container.v1beta1" + - ".VirtualNIC\022G\n\016logging_config\030 \001(\0132/.go" + - "ogle.container.v1beta1.NodePoolLoggingCo" + - "nfig\022A\n\017resource_labels\030! \001(\0132(.google.c" + - "ontainer.v1beta1.ResourceLabels\"\336\001\n\035SetN" + - "odePoolAutoscalingRequest\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\022G\n\013autoscaling\030\005 \001(\0132-.google." + - "container.v1beta1.NodePoolAutoscalingB\003\340" + - "A\002\022\014\n\004name\030\006 \001(\t\"\221\001\n\030SetLoggingServiceRe" + - "quest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone" + - "\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002" + - "\022\034\n\017logging_service\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\005" + - " \001(\t\"\227\001\n\033SetMonitoringServiceRequest\022\031\n\n" + - "project_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030" + - "\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\037\n\022monit" + - "oring_service\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\265" + - "\001\n\026SetAddonsConfigRequest\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\022B\n\raddons_config\030\004 " + - "\001(\0132&.google.container.v1beta1.AddonsCon" + - "figB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\206\001\n\023SetLocationsR" + - "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\026\n\tlocations\030\004 \003(\tB\003\340A\002\022\014\n\004name\030\006 \001(\t\"" + - "\213\001\n\023UpdateMasterRequest\022\031\n\nproject_id\030\001 " + - "\001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\nclust" + - "er_id\030\003 \001(\tB\005\030\001\340A\002\022\033\n\016master_version\030\004 \001" + - "(\tB\003\340A\002\022\014\n\004name\030\007 \001(\t\"\310\002\n\024SetMasterAuthR" + - "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\022J\n\006action\030\004 \001(\01625.google.container.v1b" + - "eta1.SetMasterAuthRequest.ActionB\003\340A\002\0229\n" + - "\006update\030\005 \001(\0132$.google.container.v1beta1" + - ".MasterAuthB\003\340A\002\022\014\n\004name\030\007 \001(\t\"P\n\006Action" + - "\022\013\n\007UNKNOWN\020\000\022\020\n\014SET_PASSWORD\020\001\022\025\n\021GENER" + - "ATE_PASSWORD\020\002\022\020\n\014SET_USERNAME\020\003\"o\n\024Dele" + - "teClusterRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001" + - "\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003" + - " \001(\tB\005\030\001\340A\002\022\014\n\004name\030\004 \001(\t\"U\n\023ListCluster" + - "sRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004z" + - "one\030\002 \001(\tB\005\030\001\340A\002\022\016\n\006parent\030\004 \001(\t\"b\n\024List" + - "ClustersResponse\0223\n\010clusters\030\001 \003(\0132!.goo" + - "gle.container.v1beta1.Cluster\022\025\n\rmissing" + - "_zones\030\002 \003(\t\"p\n\023GetOperationRequest\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\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\nproje" + - "ct_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022" + - "\016\n\006parent\030\004 \001(\t\"s\n\026CancelOperationReques" + - "t\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001" + - "(\tB\005\030\001\340A\002\022\033\n\014operation_id\030\003 \001(\tB\005\030\001\340A\002\022\014" + - "\n\004name\030\004 \001(\t\"h\n\026ListOperationsResponse\0227" + - "\n\noperations\030\001 \003(\0132#.google.container.v1" + - "beta1.Operation\022\025\n\rmissing_zones\030\002 \003(\t\"V" + - "\n\026GetServerConfigRequest\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\014\n\004name" + - "\030\004 \001(\t\"\351\005\n\014ServerConfig\022\037\n\027default_clust" + - "er_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\021val" + - "id_image_types\030\005 \003(\t\022\035\n\025valid_master_ver" + - "sions\030\006 \003(\t\022M\n\010channels\030\t \003(\0132;.google.c" + - "ontainer.v1beta1.ServerConfig.ReleaseCha" + - "nnelConfig\022\\\n\024windows_version_maps\030\n \003(\013" + - "2>.google.container.v1beta1.ServerConfig" + - ".WindowsVersionMapsEntry\032\261\002\n\024ReleaseChan" + - "nelConfig\022A\n\007channel\030\001 \001(\01620.google.cont" + - "ainer.v1beta1.ReleaseChannel.Channel\022\027\n\017" + - "default_version\030\002 \001(\t\022l\n\022available_versi" + - "ons\030\003 \003(\0132L.google.container.v1beta1.Ser" + - "verConfig.ReleaseChannelConfig.Available" + - "VersionB\002\030\001\022\026\n\016valid_versions\030\004 \003(\t\0327\n\020A" + - "vailableVersion\022\017\n\007version\030\001 \001(\t\022\016\n\006reas" + - "on\030\002 \001(\t:\002\030\001\032d\n\027WindowsVersionMapsEntry\022" + - "\013\n\003key\030\001 \001(\t\0228\n\005value\030\002 \001(\0132).google.con" + - "tainer.v1beta1.WindowsVersions:\0028\001\"\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\"\244\003\n\021BlueGreenSettings" + - "\022d\n\027standard_rollout_policy\030\001 \001(\0132A.goog" + - "le.container.v1beta1.BlueGreenSettings.S" + - "tandardRolloutPolicyH\000\022?\n\027node_pool_soak" + - "_duration\030\002 \001(\0132\031.google.protobuf.Durati" + - "onH\001\210\001\001\032\271\001\n\025StandardRolloutPolicy\022\032\n\020bat" + - "ch_percentage\030\001 \001(\002H\000\022\032\n\020batch_node_coun" + - "t\030\002 \001(\005H\000\022;\n\023batch_soak_duration\030\003 \001(\0132\031" + - ".google.protobuf.DurationH\001\210\001\001B\023\n\021update" + - "_batch_sizeB\026\n\024_batch_soak_durationB\020\n\016r" + - "ollout_policyB\032\n\030_node_pool_soak_duratio" + - "n\"\202\017\n\010NodePool\022\014\n\004name\030\001 \001(\t\0224\n\006config\030\002" + - " \001(\0132$.google.container.v1beta1.NodeConf" + - "ig\022\032\n\022initial_node_count\030\003 \001(\005\022\021\n\tlocati" + - "ons\030\r \003(\t\022C\n\016network_config\030\016 \001(\0132+.goog" + - "le.container.v1beta1.NodeNetworkConfig\022\021" + - "\n\tself_link\030d \001(\t\022\017\n\007version\030e \001(\t\022\033\n\023in" + - "stance_group_urls\030f \003(\t\0229\n\006status\030g \001(\0162" + - ").google.container.v1beta1.NodePool.Stat" + - "us\022\032\n\016status_message\030h \001(\tB\002\030\001\022B\n\013autosc" + - "aling\030\004 \001(\0132-.google.container.v1beta1.N" + - "odePoolAutoscaling\022<\n\nmanagement\030\005 \001(\0132(" + - ".google.container.v1beta1.NodeManagement" + - "\022H\n\023max_pods_constraint\030\006 \001(\0132+.google.c" + - "ontainer.v1beta1.MaxPodsConstraint\022=\n\nco" + - "nditions\030i \003(\0132).google.container.v1beta" + - "1.StatusCondition\022\032\n\022pod_ipv4_cidr_size\030" + - "\007 \001(\005\022L\n\020upgrade_settings\030k \001(\01322.google" + - ".container.v1beta1.NodePool.UpgradeSetti" + - "ngs\022L\n\020placement_policy\030l \001(\01322.google.c" + - "ontainer.v1beta1.NodePool.PlacementPolic" + - "y\022G\n\013update_info\030m \001(\0132-.google.containe" + - "r.v1beta1.NodePool.UpdateInfoB\003\340A\003\032\372\001\n\017U" + - "pgradeSettings\022\021\n\tmax_surge\030\001 \001(\005\022\027\n\017max" + - "_unavailable\030\002 \001(\005\022G\n\010strategy\030\003 \001(\01620.g" + - "oogle.container.v1beta1.NodePoolUpdateSt" + - "rategyH\000\210\001\001\022M\n\023blue_green_settings\030\004 \001(\013" + - "2+.google.container.v1beta1.BlueGreenSet" + - "tingsH\001\210\001\001B\013\n\t_strategyB\026\n\024_blue_green_s" + - "ettings\032\222\004\n\nUpdateInfo\022T\n\017blue_green_inf" + - "o\030\001 \001(\0132;.google.container.v1beta1.NodeP" + - "ool.UpdateInfo.BlueGreenInfo\032\255\003\n\rBlueGre" + - "enInfo\022P\n\005phase\030\001 \001(\0162A.google.container" + - ".v1beta1.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\203\001\n\017PlacementPolicy" + - "\022E\n\004type\030\001 \001(\01627.google.container.v1beta" + - "1.NodePool.PlacementPolicy.Type\")\n\004Type\022" + - "\024\n\020TYPE_UNSPECIFIED\020\000\022\013\n\007COMPACT\020\001\"\201\001\n\006S" + - "tatus\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014PROVISI" + - "ONING\020\001\022\013\n\007RUNNING\020\002\022\026\n\022RUNNING_WITH_ERR" + - "OR\020\003\022\017\n\013RECONCILING\020\004\022\014\n\010STOPPING\020\005\022\t\n\005E" + - "RROR\020\006\"\202\001\n\016NodeManagement\022\024\n\014auto_upgrad" + - "e\030\001 \001(\010\022\023\n\013auto_repair\030\002 \001(\010\022E\n\017upgrade_" + - "options\030\n \001(\0132,.google.container.v1beta1" + - ".AutoUpgradeOptions\"J\n\022AutoUpgradeOption" + - "s\022\037\n\027auto_upgrade_start_time\030\001 \001(\t\022\023\n\013de" + - "scription\030\002 \001(\t\"j\n\021MaintenancePolicy\022;\n\006" + - "window\030\001 \001(\0132+.google.container.v1beta1." + - "MaintenanceWindow\022\030\n\020resource_version\030\003 " + - "\001(\t\"\212\003\n\021MaintenanceWindow\022T\n\030daily_maint" + - "enance_window\030\002 \001(\01320.google.container.v" + - "1beta1.DailyMaintenanceWindowH\000\022I\n\020recur" + - "ring_window\030\003 \001(\0132-.google.container.v1b" + - "eta1.RecurringTimeWindowH\000\022f\n\026maintenanc" + - "e_exclusions\030\004 \003(\0132F.google.container.v1" + - "beta1.MaintenanceWindow.MaintenanceExclu" + - "sionsEntry\032b\n\032MaintenanceExclusionsEntry" + - "\022\013\n\003key\030\001 \001(\t\0223\n\005value\030\002 \001(\0132$.google.co" + - "ntainer.v1beta1.TimeWindow:\0028\001B\010\n\006policy" + - "\"\325\001\n\nTimeWindow\022^\n\035maintenance_exclusion" + - "_options\030\003 \001(\01325.google.container.v1beta" + - "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\"\271\001\n\033MaintenanceExclusio" + - "nOptions\022J\n\005scope\030\001 \001(\0162;.google.contain" + - "er.v1beta1.MaintenanceExclusionOptions.S" + - "cope\"N\n\005Scope\022\017\n\013NO_UPGRADES\020\000\022\025\n\021NO_MIN" + - "OR_UPGRADES\020\001\022\035\n\031NO_MINOR_OR_NODE_UPGRAD" + - "ES\020\002\"_\n\023RecurringTimeWindow\0224\n\006window\030\001 " + - "\001(\0132$.google.container.v1beta1.TimeWindo" + - "w\022\022\n\nrecurrence\030\002 \001(\t\">\n\026DailyMaintenanc" + - "eWindow\022\022\n\nstart_time\030\002 \001(\t\022\020\n\010duration\030" + - "\003 \001(\t\"\327\001\n\034SetNodePoolManagementRequest\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\014nod" + - "e_pool_id\030\004 \001(\tB\005\030\001\340A\002\022A\n\nmanagement\030\005 \001" + - "(\0132(.google.container.v1beta1.NodeManage" + - "mentB\003\340A\002\022\014\n\004name\030\007 \001(\t\"\247\001\n\026SetNodePoolS" + - "izeRequest\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\027\n\nno" + - "de_count\030\005 \001(\005B\003\340A\002\022\014\n\004name\030\007 \001(\t\".\n\036Com" + - "pleteNodePoolUpgradeRequest\022\014\n\004name\030\001 \001(" + - "\t\"\253\001\n\036RollbackNodePoolUpgradeRequest\022\031\n\n" + - "project_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030" + - "\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\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\013re" + - "spect_pdb\030\007 \001(\010\"O\n\025ListNodePoolsResponse" + - "\0226\n\nnode_pools\030\001 \003(\0132\".google.container." + - "v1beta1.NodePool\"\276\003\n\022ClusterAutoscaling\022" + - "$\n\034enable_node_autoprovisioning\030\001 \001(\010\022@\n" + - "\017resource_limits\030\002 \003(\0132\'.google.containe" + - "r.v1beta1.ResourceLimit\022\\\n\023autoscaling_p" + - "rofile\030\003 \001(\0162?.google.container.v1beta1." + - "ClusterAutoscaling.AutoscalingProfile\022g\n" + - "#autoprovisioning_node_pool_defaults\030\004 \001" + - "(\0132:.google.container.v1beta1.Autoprovis" + - "ioningNodePoolDefaults\022\"\n\032autoprovisioni" + - "ng_locations\030\005 \003(\t\"U\n\022AutoscalingProfile" + - "\022\027\n\023PROFILE_UNSPECIFIED\020\000\022\030\n\024OPTIMIZE_UT" + - "ILIZATION\020\001\022\014\n\010BALANCED\020\002\"\247\003\n Autoprovis" + - "ioningNodePoolDefaults\022\024\n\014oauth_scopes\030\001" + - " \003(\t\022\027\n\017service_account\030\002 \001(\t\022L\n\020upgrade" + - "_settings\030\003 \001(\01322.google.container.v1bet" + - "a1.NodePool.UpgradeSettings\022<\n\nmanagemen" + - "t\030\004 \001(\0132(.google.container.v1beta1.NodeM" + - "anagement\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.goo" + - "gle.container.v1beta1.ShieldedInstanceCo" + - "nfig\022\031\n\021boot_disk_kms_key\030\t \001(\t\022\022\n\nimage" + - "_type\030\n \001(\t\"H\n\rResourceLimit\022\025\n\rresource" + - "_type\030\001 \001(\t\022\017\n\007minimum\030\002 \001(\003\022\017\n\007maximum\030" + - "\003 \001(\003\"\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_no" + - "de_count\030\003 \001(\005\022\027\n\017autoprovisioned\030\004 \001(\010\022" + - "U\n\017location_policy\030\005 \001(\0162<.google.contai" + - "ner.v1beta1.NodePoolAutoscaling.Location" + - "Policy\022\034\n\024total_min_node_count\030\006 \001(\005\022\034\n\024" + - "total_max_node_count\030\007 \001(\005\"H\n\016LocationPo" + - "licy\022\037\n\033LOCATION_POLICY_UNSPECIFIED\020\000\022\014\n" + - "\010BALANCED\020\001\022\007\n\003ANY\020\002\"\240\002\n\020SetLabelsReques" + - "t\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001" + - "(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\\\n\017" + - "resource_labels\030\004 \003(\0132>.google.container" + - ".v1beta1.SetLabelsRequest.ResourceLabels" + - "EntryB\003\340A\002\022\036\n\021label_fingerprint\030\005 \001(\tB\003\340" + - "A\002\022\014\n\004name\030\007 \001(\t\0325\n\023ResourceLabelsEntry\022" + - "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\205\001\n\024SetL" + - "egacyAbacRequest\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\004nam" + - "e\030\006 \001(\t\"\215\001\n\026StartIPRotationRequest\022\031\n\npr" + - "oject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340" + - "A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\006 " + - "\001(\t\022\032\n\022rotate_credentials\030\007 \001(\010\"t\n\031Compl" + - "eteIPRotationRequest\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\014\n\004name\030\007 \001(\t\"\365\001\n\021Accele" + - "ratorConfig\022\031\n\021accelerator_count\030\001 \001(\003\022\030" + - "\n\020accelerator_type\030\002 \001(\t\022\032\n\022gpu_partitio" + - "n_size\030\003 \001(\t\022+\n\037max_time_shared_clients_" + - "per_gpu\030\004 \001(\003B\002\030\001\022K\n\022gpu_sharing_config\030" + - "\005 \001(\0132*.google.container.v1beta1.GPUShar" + - "ingConfigH\000\210\001\001B\025\n\023_gpu_sharing_config\"\377\001" + - "\n\020GPUSharingConfig\022\"\n\032max_shared_clients" + - "_per_gpu\030\001 \001(\003\022`\n\024gpu_sharing_strategy\030\002" + - " \001(\0162=.google.container.v1beta1.GPUShari" + - "ngConfig.GPUSharingStrategyH\000\210\001\001\"L\n\022GPUS" + - "haringStrategy\022$\n GPU_SHARING_STRATEGY_U" + - "NSPECIFIED\020\000\022\020\n\014TIME_SHARING\020\001B\027\n\025_gpu_s" + - "haring_strategy\"*\n\027ManagedPrometheusConf" + - "ig\022\017\n\007enabled\030\001 \001(\010\"\313\002\n\026WorkloadMetadata" + - "Config\022X\n\rnode_metadata\030\001 \001(\0162=.google.c" + - "ontainer.v1beta1.WorkloadMetadataConfig." + - "NodeMetadataB\002\030\001\022C\n\004mode\030\002 \001(\01625.google." + - "container.v1beta1.WorkloadMetadataConfig" + - ".Mode\"P\n\014NodeMetadata\022\017\n\013UNSPECIFIED\020\000\022\n" + - "\n\006SECURE\020\001\022\n\n\006EXPOSE\020\002\022\027\n\023GKE_METADATA_S" + - "ERVER\020\003\"@\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\020\n" + - "\014GCE_METADATA\020\001\022\020\n\014GKE_METADATA\020\002\"\270\001\n\027Se" + - "tNetworkPolicyRequest\022\031\n\nproject_id\030\001 \001(" + - "\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster" + - "_id\030\003 \001(\tB\005\030\001\340A\002\022D\n\016network_policy\030\004 \001(\013" + - "2\'.google.container.v1beta1.NetworkPolic" + - "yB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\276\001\n\033SetMaintenanceP" + - "olicyRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\021\n" + - "\004zone\030\002 \001(\tB\003\340A\002\022\027\n\ncluster_id\030\003 \001(\tB\003\340A" + - "\002\022L\n\022maintenance_policy\030\004 \001(\0132+.google.c" + - "ontainer.v1beta1.MaintenancePolicyB\003\340A\002\022" + - "\014\n\004name\030\005 \001(\t\"+\n\024ListLocationsRequest\022\023\n" + - "\006parent\030\001 \001(\tB\003\340A\002\"g\n\025ListLocationsRespo" + - "nse\0225\n\tlocations\030\001 \003(\0132\".google.containe" + - "r.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\013recommended\030\003 \001(\010\"C\n\014Lo" + - "cationType\022\035\n\031LOCATION_TYPE_UNSPECIFIED\020" + - "\000\022\010\n\004ZONE\020\001\022\n\n\006REGION\020\002\"\262\002\n\017StatusCondit" + - "ion\022@\n\004code\030\001 \001(\0162..google.container.v1b" + - "eta1.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_ST" + - "OCKOUT\020\001\022\037\n\033GKE_SERVICE_ACCOUNT_DELETED\020" + - "\002\022\026\n\022GCE_QUOTA_EXCEEDED\020\003\022\023\n\017SET_BY_OPER" + - "ATOR\020\004\022\027\n\023CLOUD_KMS_KEY_ERROR\020\007\022\017\n\013CA_EX" + - "PIRING\020\t\032\002\030\001\"\275\004\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\022H\n\023default_sna" + - "t_status\030\007 \001(\0132+.google.container.v1beta" + - "1.DefaultSnatStatus\022\037\n\027enable_l4ilb_subs" + - "etting\030\n \001(\010\022E\n\021datapath_provider\030\013 \001(\0162" + - "*.google.container.v1beta1.DatapathProvi" + - "der\022U\n\032private_ipv6_google_access\030\014 \001(\0162" + - "1.google.container.v1beta1.PrivateIPv6Go", - "ogleAccess\0227\n\ndns_config\030\r \001(\0132#.google." + - "container.v1beta1.DNSConfig\022W\n\033service_e" + - "xternal_ips_config\030\017 \001(\01322.google.contai" + - "ner.v1beta1.ServiceExternalIPsConfig\022F\n\022" + - "gateway_api_config\030\020 \001(\0132*.google.contai" + - "ner.v1beta1.GatewayAPIConfig\"\301\001\n\020Gateway" + - "APIConfig\022C\n\007channel\030\001 \001(\01622.google.cont" + - "ainer.v1beta1.GatewayAPIConfig.Channel\"h" + - "\n\007Channel\022\027\n\023CHANNEL_UNSPECIFIED\020\000\022\024\n\020CH" + - "ANNEL_DISABLED\020\001\022\030\n\024CHANNEL_EXPERIMENTAL" + - "\020\003\022\024\n\020CHANNEL_STANDARD\020\004\"+\n\030ServiceExter" + - "nalIPsConfig\022\017\n\007enabled\030\001 \001(\010\"j\n\034ListUsa" + - "bleSubnetworksRequest\022\023\n\006parent\030\001 \001(\tB\003\340" + - "A\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\035ListUsableSubnetwor" + - "ksResponse\022?\n\013subnetworks\030\001 \003(\0132*.google" + - ".container.v1beta1.UsableSubnetwork\022\027\n\017n" + - "ext_page_token\030\002 \001(\t\"\205\002\n\036UsableSubnetwor" + - "kSecondaryRange\022\022\n\nrange_name\030\001 \001(\t\022\025\n\ri" + - "p_cidr_range\030\002 \001(\t\022O\n\006status\030\003 \001(\0162?.goo" + - "gle.container.v1beta1.UsableSubnetworkSe" + - "condaryRange.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_P" + - "OD\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.goo" + - "gle.container.v1beta1.UsableSubnetworkSe" + - "condaryRange\022\026\n\016status_message\030\005 \001(\t\")\n\026" + - "VerticalPodAutoscaling\022\017\n\007enabled\030\001 \001(\010\"" + - "%\n\021DefaultSnatStatus\022\020\n\010disabled\030\001 \001(\010\"," + - "\n\031IntraNodeVisibilityConfig\022\017\n\007enabled\030\001" + - " \001(\010\"&\n\023ILBSubsettingConfig\022\017\n\007enabled\030\001" + - " \001(\010\"\307\002\n\tDNSConfig\022A\n\013cluster_dns\030\001 \001(\0162" + - ",.google.container.v1beta1.DNSConfig.Pro" + - "vider\022G\n\021cluster_dns_scope\030\002 \001(\0162,.googl" + - "e.container.v1beta1.DNSConfig.DNSScope\022\032" + - "\n\022cluster_dns_domain\030\003 \001(\t\"I\n\010Provider\022\030" + - "\n\024PROVIDER_UNSPECIFIED\020\000\022\024\n\020PLATFORM_DEF" + - "AULT\020\001\022\r\n\tCLOUD_DNS\020\002\"G\n\010DNSScope\022\031\n\025DNS" + - "_SCOPE_UNSPECIFIED\020\000\022\021\n\rCLUSTER_SCOPE\020\001\022" + - "\r\n\tVPC_SCOPE\020\002\".\n\021MaxPodsConstraint\022\031\n\021m" + - "ax_pods_per_node\030\001 \001(\003\"j\n\026WorkloadIdenti" + - "tyConfig\022\036\n\022identity_namespace\030\001 \001(\tB\002\030\001" + - "\022\025\n\rworkload_pool\030\002 \001(\t\022\031\n\021identity_prov" + - "ider\030\003 \001(\t\"E\n\022WorkloadALTSConfig\022/\n\013enab" + - "le_alts\030\001 \001(\0132\032.google.protobuf.BoolValu" + - "e\"O\n\024WorkloadCertificates\0227\n\023enable_cert" + - "ificates\030\001 \001(\0132\032.google.protobuf.BoolVal" + - "ue\"K\n\020MeshCertificates\0227\n\023enable_certifi" + - "cates\030\001 \001(\0132\032.google.protobuf.BoolValue\"" + - "\235\001\n\022DatabaseEncryption\022A\n\005state\030\002 \001(\01622." + - "google.container.v1beta1.DatabaseEncrypt" + - "ion.State\022\020\n\010key_name\030\001 \001(\t\"2\n\005State\022\013\n\007" + - "UNKNOWN\020\000\022\r\n\tENCRYPTED\020\001\022\r\n\tDECRYPTED\020\002\"" + - "\367\002\n\031ResourceUsageExportConfig\022e\n\024bigquer" + - "y_destination\030\001 \001(\0132G.google.container.v" + - "1beta1.ResourceUsageExportConfig.BigQuer" + - "yDestination\022&\n\036enable_network_egress_me" + - "tering\030\002 \001(\010\022r\n\033consumption_metering_con" + - "fig\030\003 \001(\0132M.google.container.v1beta1.Res" + - "ourceUsageExportConfig.ConsumptionMeteri" + - "ngConfig\032)\n\023BigQueryDestination\022\022\n\ndatas" + - "et_id\030\001 \001(\t\032,\n\031ConsumptionMeteringConfig" + - "\022\017\n\007enabled\030\001 \001(\010\" \n\rShieldedNodes\022\017\n\007en" + - "abled\030\001 \001(\010\"\035\n\nVirtualNIC\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\006issu" + - "er\030\001 \001(\t\022\020\n\010jwks_uri\030\002 \001(\t\022 \n\030response_t" + - "ypes_supported\030\003 \003(\t\022\037\n\027subject_types_su" + - "pported\030\004 \003(\t\022-\n%id_token_signing_alg_va" + - "lues_supported\030\005 \003(\t\022\030\n\020claims_supported" + - "\030\006 \003(\t\022\023\n\013grant_types\030\007 \003(\t\"\'\n\025GetJSONWe" + - "bKeysRequest\022\016\n\006parent\030\001 \001(\t\"r\n\003Jwk\022\013\n\003k" + - "ty\030\001 \001(\t\022\013\n\003alg\030\002 \001(\t\022\013\n\003use\030\003 \001(\t\022\013\n\003ki" + - "d\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\026GetJSONWebKe" + - "ysResponse\022+\n\004keys\030\001 \003(\0132\035.google.contai" + - "ner.v1beta1.Jwk\"\223\001\n\016ReleaseChannel\022A\n\007ch" + - "annel\030\001 \001(\01620.google.container.v1beta1.R" + - "eleaseChannel.Channel\">\n\007Channel\022\017\n\013UNSP" + - "ECIFIED\020\000\022\t\n\005RAPID\020\001\022\013\n\007REGULAR\020\002\022\n\n\006STA" + - "BLE\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\026" + - "use_service_networking\030\002 \001(\010\022\027\n\017ipv4_cid" + - "r_block\030\003 \001(\t\"\010\n\006Master\"\034\n\tAutopilot\022\017\n\007" + - "enabled\030\001 \001(\010\"\267\003\n\022NotificationConfig\022C\n\006" + - "pubsub\030\001 \001(\01323.google.container.v1beta1." + - "NotificationConfig.PubSub\032\217\001\n\006PubSub\022\017\n\007" + - "enabled\030\001 \001(\010\022/\n\005topic\030\002 \001(\tB \372A\035\n\033pubsu" + - "b.googleapis.com/Topic\022C\n\006filter\030\003 \001(\01323" + - ".google.container.v1beta1.NotificationCo" + - "nfig.Filter\032T\n\006Filter\022J\n\nevent_type\030\001 \003(" + - "\01626.google.container.v1beta1.Notificatio" + - "nConfig.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_B" + - "ULLETIN_EVENT\020\003\"$\n\021ConfidentialNodes\022\017\n\007" + - "enabled\030\001 \001(\010\"\344\001\n\014UpgradeEvent\022D\n\rresour" + - "ce_type\030\001 \001(\0162-.google.container.v1beta1" + - ".UpgradeResourceType\022\021\n\toperation\030\002 \001(\t\022" + - "8\n\024operation_start_time\030\003 \001(\0132\032.google.p" + - "rotobuf.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\007versio" + - "n\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.containe" + - "r.v1beta1.ReleaseChannel\022\020\n\010resource\030\004 \001" + - "(\t\022C\n\020windows_versions\030\005 \001(\0132).google.co" + - "ntainer.v1beta1.WindowsVersions\"\236\002\n\025Secu" + - "rityBulletinEvent\022\036\n\026resource_type_affec" + - "ted\030\001 \001(\t\022\023\n\013bulletin_id\030\002 \001(\t\022\017\n\007cve_id" + - "s\030\003 \003(\t\022\020\n\010severity\030\004 \001(\t\022\024\n\014bulletin_ur" + - "i\030\005 \001(\t\022\031\n\021brief_description\030\006 \001(\t\022!\n\031af" + - "fected_supported_minors\030\007 \003(\t\022\030\n\020patched" + - "_versions\030\010 \003(\t\022 \n\030suggested_upgrade_tar" + - "get\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.Logging" + - "ComponentConfig\"\364\001\n\026LoggingComponentConf" + - "ig\022U\n\021enable_components\030\001 \003(\0162:.google.c" + - "ontainer.v1beta1.LoggingComponentConfig." + - "Component\"\202\001\n\tComponent\022\031\n\025COMPONENT_UNS" + - "PECIFIED\020\000\022\025\n\021SYSTEM_COMPONENTS\020\001\022\r\n\tWOR" + - "KLOADS\020\002\022\r\n\tAPISERVER\020\003\022\r\n\tSCHEDULER\020\004\022\026" + - "\n\022CONTROLLER_MANAGER\020\005\"\267\001\n\020MonitoringCon" + - "fig\022M\n\020component_config\030\001 \001(\01323.google.c" + - "ontainer.v1beta1.MonitoringComponentConf" + - "ig\022T\n\031managed_prometheus_config\030\002 \001(\01321." + - "google.container.v1beta1.ManagedPromethe" + - "usConfig\"_\n\025NodePoolLoggingConfig\022F\n\016var" + - "iant_config\030\001 \001(\0132..google.container.v1b" + - "eta1.LoggingVariantConfig\"\244\001\n\024LoggingVar" + - "iantConfig\022G\n\007variant\030\001 \001(\01626.google.con" + - "tainer.v1beta1.LoggingVariantConfig.Vari" + - "ant\"C\n\007Variant\022\027\n\023VARIANT_UNSPECIFIED\020\000\022" + - "\013\n\007DEFAULT\020\001\022\022\n\016MAX_THROUGHPUT\020\002\"\376\001\n\031Mon" + - "itoringComponentConfig\022X\n\021enable_compone" + - "nts\030\001 \003(\0162=.google.container.v1beta1.Mon" + - "itoringComponentConfig.Component\"\206\001\n\tCom" + - "ponent\022\031\n\025COMPONENT_UNSPECIFIED\020\000\022\025\n\021SYS" + - "TEM_COMPONENTS\020\001\022\021\n\tWORKLOADS\020\002\032\002\010\001\022\r\n\tA" + - "PISERVER\020\003\022\r\n\tSCHEDULER\020\004\022\026\n\022CONTROLLER_" + - "MANAGER\020\005*\306\001\n\027PrivateIPv6GoogleAccess\022*\n" + - "&PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED\020" + - "\000\022\'\n#PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED" + - "\020\001\022(\n$PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOG" + - "LE\020\002\022,\n(PRIVATE_IPV6_GOOGLE_ACCESS_BIDIR" + - "ECTIONAL\020\003*W\n\023UpgradeResourceType\022%\n!UPG" + - "RADE_RESOURCE_TYPE_UNSPECIFIED\020\000\022\n\n\006MAST" + - "ER\020\001\022\r\n\tNODE_POOL\020\002*^\n\026NodePoolUpdateStr" + - "ategy\022)\n%NODE_POOL_UPDATE_STRATEGY_UNSPE" + - "CIFIED\020\000\022\016\n\nBLUE_GREEN\020\002\022\t\n\005SURGE\020\003*a\n\020D" + - "atapathProvider\022!\n\035DATAPATH_PROVIDER_UNS" + - "PECIFIED\020\000\022\023\n\017LEGACY_DATAPATH\020\001\022\025\n\021ADVAN" + - "CED_DATAPATH\020\0022\262L\n\016ClusterManager\022\363\001\n\014Li" + - "stClusters\022-.google.container.v1beta1.Li" + - "stClustersRequest\032..google.container.v1b" + - "eta1.ListClustersResponse\"\203\001\202\323\344\223\002k\0221/v1b" + - "eta1/{parent=projects/*/locations/*}/clu" + - "stersZ6\0224/v1beta1/projects/{project_id}/" + - "zones/{zone}/clusters\332A\017project_id,zone\022" + - "\372\001\n\nGetCluster\022+.google.container.v1beta" + - "1.GetClusterRequest\032!.google.container.v" + - "1beta1.Cluster\"\233\001\202\323\344\223\002x\0221/v1beta1/{name=" + - "projects/*/locations/*/clusters/*}ZC\022A/v" + - "1beta1/projects/{project_id}/zones/{zone" + - "}/clusters/{cluster_id}\332A\032project_id,zon" + - "e,cluster_id\022\370\001\n\rCreateCluster\022..google." + - "container.v1beta1.CreateClusterRequest\032#" + - ".google.container.v1beta1.Operation\"\221\001\202\323" + - "\344\223\002q\"1/v1beta1/{parent=projects/*/locati" + - "ons/*}/clusters:\001*Z9\"4/v1beta1/projects/" + - "{project_id}/zones/{zone}/clusters:\001*\332A\027" + - "project_id,zone,cluster\022\217\002\n\rUpdateCluste" + - "r\022..google.container.v1beta1.UpdateClust" + - "erRequest\032#.google.container.v1beta1.Ope" + - "ration\"\250\001\202\323\344\223\002~\0321/v1beta1/{name=projects" + - "/*/locations/*/clusters/*}:\001*ZF\032A/v1beta" + - "1/projects/{project_id}/zones/{zone}/clu" + - "sters/{cluster_id}:\001*\332A!project_id,zone," + - "cluster_id,update\022\232\002\n\016UpdateNodePool\022/.g" + - "oogle.container.v1beta1.UpdateNodePoolRe" + - "quest\032#.google.container.v1beta1.Operati" + - "on\"\261\001\202\323\344\223\002\252\001\032=/v1beta1/{name=projects/*/" + - "locations/*/clusters/*/nodePools/*}:\001*Zf" + - "\"a/v1beta1/projects/{project_id}/zones/{" + - "zone}/clusters/{cluster_id}/nodePools/{n" + - "ode_pool_id}/update:\001*\022\276\002\n\026SetNodePoolAu" + - "toscaling\0227.google.container.v1beta1.Set" + - "NodePoolAutoscalingRequest\032#.google.cont" + - "ainer.v1beta1.Operation\"\305\001\202\323\344\223\002\276\001\"L/v1be" + - "ta1/{name=projects/*/locations/*/cluster" + - "s/*/nodePools/*}:setAutoscaling:\001*Zk\"f/v" + - "1beta1/projects/{project_id}/zones/{zone" + - "}/clusters/{cluster_id}/nodePools/{node_" + - "pool_id}/autoscaling:\001*\022\264\002\n\021SetLoggingSe" + - "rvice\0222.google.container.v1beta1.SetLogg" + - "ingServiceRequest\032#.google.container.v1b" + - "eta1.Operation\"\305\001\202\323\344\223\002\221\001\"/" + - "v1beta1/{name=projects/*/locations/*/clu" + - "sters/*}:setLocations:\001*ZP\"K/v1beta1/pro" + - "jects/{project_id}/zones/{zone}/clusters" + - "/{cluster_id}/locations:\001*\332A$project_id," + - "zone,cluster_id,locations\022\252\002\n\014UpdateMast" + - "er\022-.google.container.v1beta1.UpdateMast" + - "erRequest\032#.google.container.v1beta1.Ope" + - "ration\"\305\001\202\323\344\223\002\222\001\">/v1beta1/{name=project" + - "s/*/locations/*/clusters/*}:updateMaster" + - ":\001*ZM\"H/v1beta1/projects/{project_id}/zo" + - "nes/{zone}/clusters/{cluster_id}/master:" + - "\001*\332A)project_id,zone,cluster_id,master_v" + - "ersion\022\210\002\n\rSetMasterAuth\022..google.contai" + - "ner.v1beta1.SetMasterAuthRequest\032#.googl" + - "e.container.v1beta1.Operation\"\241\001\202\323\344\223\002\232\001\"" + - "?/v1beta1/{name=projects/*/locations/*/c" + - "lusters/*}:setMasterAuth:\001*ZT\"O/v1beta1/" + - "projects/{project_id}/zones/{zone}/clust" + - "ers/{cluster_id}:setMasterAuth:\001*\022\202\002\n\rDe" + - "leteCluster\022..google.container.v1beta1.D" + - "eleteClusterRequest\032#.google.container.v" + - "1beta1.Operation\"\233\001\202\323\344\223\002x*1/v1beta1/{nam" + - "e=projects/*/locations/*/clusters/*}ZC*A" + - "/v1beta1/projects/{project_id}/zones/{zo" + - "ne}/clusters/{cluster_id}\332A\032project_id,z" + - "one,cluster_id\022\375\001\n\016ListOperations\022/.goog" + - "le.container.v1beta1.ListOperationsReque" + - "st\0320.google.container.v1beta1.ListOperat" + - "ionsResponse\"\207\001\202\323\344\223\002o\0223/v1beta1/{parent=" + - "projects/*/locations/*}/operationsZ8\0226/v" + - "1beta1/projects/{project_id}/zones/{zone" + - "}/operations\332A\017project_id,zone\022\210\002\n\014GetOp" + - "eration\022-.google.container.v1beta1.GetOp" + - "erationRequest\032#.google.container.v1beta" + - "1.Operation\"\243\001\202\323\344\223\002~\0223/v1beta1/{name=pro" + - "jects/*/locations/*/operations/*}ZG\022E/v1" + - "beta1/projects/{project_id}/zones/{zone}" + - "/operations/{operation_id}\332A\034project_id," + - "zone,operation_id\022\226\002\n\017CancelOperation\0220." + - "google.container.v1beta1.CancelOperation" + - "Request\032\026.google.protobuf.Empty\"\270\001\202\323\344\223\002\222" + - "\001\":/v1beta1/{name=projects/*/locations/*" + - "/operations/*}:cancel:\001*ZQ\"L/v1beta1/pro" + - "jects/{project_id}/zones/{zone}/operatio" + - "ns/{operation_id}:cancel:\001*\332A\034project_id" + - ",zone,operation_id\022\367\001\n\017GetServerConfig\0220" + - ".google.container.v1beta1.GetServerConfi" + - "gRequest\032&.google.container.v1beta1.Serv" + - "erConfig\"\211\001\202\323\344\223\002q\0223/v1beta1/{name=projec" + - "ts/*/locations/*}/serverConfigZ:\0228/v1bet" + - "a1/projects/{project_id}/zones/{zone}/se" + - "rverconfig\332A\017project_id,zone\022\245\002\n\rListNod" + - "ePools\022..google.container.v1beta1.ListNo" + - "dePoolsRequest\032/.google.container.v1beta" + - "1.ListNodePoolsResponse\"\262\001\202\323\344\223\002\216\001\022=/v1be" + - "ta1/{parent=projects/*/locations/*/clust" + - "ers/*}/nodePoolsZM\022K/v1beta1/projects/{p" + - "roject_id}/zones/{zone}/clusters/{cluste" + - "r_id}/nodePools\332A\032project_id,zone,cluste" + - "r_id\022\265\001\n\016GetJSONWebKeys\022/.google.contain" + - "er.v1beta1.GetJSONWebKeysRequest\0320.googl" + - "e.container.v1beta1.GetJSONWebKeysRespon" + - "se\"@\202\323\344\223\002:\0228/v1beta1/{parent=projects/*/" + - "locations/*/clusters/*}/jwks\022\260\002\n\013GetNode" + - "Pool\022,.google.container.v1beta1.GetNodeP" + - "oolRequest\032\".google.container.v1beta1.No" + - "dePool\"\316\001\202\323\344\223\002\235\001\022=/v1beta1/{name=project" + - "s/*/locations/*/clusters/*/nodePools/*}Z" + - "\\\022Z/v1beta1/projects/{project_id}/zones/" + - "{zone}/clusters/{cluster_id}/nodePools/{" + - "node_pool_id}\332A\'project_id,zone,cluster_" + - "id,node_pool_id\022\253\002\n\016CreateNodePool\022/.goo" + - "gle.container.v1beta1.CreateNodePoolRequ" + - "est\032#.google.container.v1beta1.Operation" + - "\"\302\001\202\323\344\223\002\224\001\"=/v1beta1/{parent=projects/*/" + - "locations/*/clusters/*}/nodePools:\001*ZP\"K" + - "/v1beta1/projects/{project_id}/zones/{zo" + - "ne}/clusters/{cluster_id}/nodePools:\001*\332A" + - "$project_id,zone,cluster_id,node_pool\022\267\002" + - "\n\016DeleteNodePool\022/.google.container.v1be" + - "ta1.DeleteNodePoolRequest\032#.google.conta" + - "iner.v1beta1.Operation\"\316\001\202\323\344\223\002\235\001*=/v1bet" + - "a1/{name=projects/*/locations/*/clusters" + - "/*/nodePools/*}Z\\*Z/v1beta1/projects/{pr" + - "oject_id}/zones/{zone}/clusters/{cluster" + - "_id}/nodePools/{node_pool_id}\332A\'project_" + - "id,zone,cluster_id,node_pool_id\022\305\001\n\027Comp" + - "leteNodePoolUpgrade\0228.google.container.v" + - "1beta1.CompleteNodePoolUpgradeRequest\032\026." + - "google.protobuf.Empty\"X\202\323\344\223\002R\"M/v1beta1/" + - "{name=projects/*/locations/*/clusters/*/" + - "nodePools/*}:completeUpgrade:\001*\022\341\002\n\027Roll" + - "backNodePoolUpgrade\0228.google.container.v" + - "1beta1.RollbackNodePoolUpgradeRequest\032#." + - "google.container.v1beta1.Operation\"\346\001\202\323\344" + - "\223\002\265\001\"F/v1beta1/{name=projects/*/location" + - "s/*/clusters/*/nodePools/*}:rollback:\001*Z" + - "h\"c/v1beta1/projects/{project_id}/zones/" + - "{zone}/clusters/{cluster_id}/nodePools/{" + - "node_pool_id}:rollback:\001*\332A\'project_id,z" + - "one,cluster_id,node_pool_id\022\362\002\n\025SetNodeP" + - "oolManagement\0226.google.container.v1beta1" + - ".SetNodePoolManagementRequest\032#.google.c" + - "ontainer.v1beta1.Operation\"\373\001\202\323\344\223\002\277\001\"K/v" + - "1beta1/{name=projects/*/locations/*/clus" + - "ters/*/nodePools/*}:setManagement:\001*Zm\"h" + - "/v1beta1/projects/{project_id}/zones/{zo" + - "ne}/clusters/{cluster_id}/nodePools/{nod" + - "e_pool_id}/setManagement:\001*\332A2project_id" + - ",zone,cluster_id,node_pool_id,management" + - "\022\304\002\n\tSetLabels\022*.google.container.v1beta" + - "1.SetLabelsRequest\032#.google.container.v1" + - "beta1.Operation\"\345\001\202\323\344\223\002\237\001\"C/v1beta1/{nam" + - "e=projects/*/locations/*/clusters/*}:set" + - "ResourceLabels:\001*ZU\"P/v1beta1/projects/{" + - "project_id}/zones/{zone}/clusters/{clust" + - "er_id}/resourceLabels:\001*\332A - * Telemetry integration for the cluster. - * - * - * Protobuf type {@code google.container.v1beta1.ClusterTelemetry} - */ -public final class ClusterTelemetry extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.ClusterTelemetry) - ClusterTelemetryOrBuilder { -private static final long serialVersionUID = 0L; - // Use ClusterTelemetry.newBuilder() to construct. - private ClusterTelemetry(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ClusterTelemetry() { - type_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ClusterTelemetry(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * Type of the integration.
-   * 
- * - * .google.container.v1beta1.ClusterTelemetry.Type type = 1; - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } - /** - *
-   * Type of the integration.
-   * 
- * - * .google.container.v1beta1.ClusterTelemetry.Type type = 1; - * @return The type. - */ - @java.lang.Override public com.google.container.v1beta1.ClusterTelemetry.Type getType() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.ClusterTelemetry.Type result = com.google.container.v1beta1.ClusterTelemetry.Type.valueOf(type_); - return result == null ? com.google.container.v1beta1.ClusterTelemetry.Type.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != com.google.container.v1beta1.ClusterTelemetry.Type.UNSPECIFIED.getNumber()) { - output.writeEnum(1, type_); - } - 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(); - type_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ClusterTelemetry_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.ClusterTelemetry getDefaultInstanceForType() { - return com.google.container.v1beta1.ClusterTelemetry.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.ClusterTelemetry build() { - com.google.container.v1beta1.ClusterTelemetry result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.ClusterTelemetry buildPartial() { - com.google.container.v1beta1.ClusterTelemetry result = new com.google.container.v1beta1.ClusterTelemetry(this); - result.type_ = type_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.ClusterTelemetry) { - return mergeFrom((com.google.container.v1beta1.ClusterTelemetry)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.ClusterTelemetry other) { - if (other == com.google.container.v1beta1.ClusterTelemetry.getDefaultInstance()) return this; - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 type_ = 0; - /** - *
-     * Type of the integration.
-     * 
- * - * .google.container.v1beta1.ClusterTelemetry.Type type = 1; - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } - /** - *
-     * Type of the integration.
-     * 
- * - * .google.container.v1beta1.ClusterTelemetry.Type type = 1; - * @param value The enum numeric value on the wire for type to set. - * @return This builder for chaining. - */ - public Builder setTypeValue(int value) { - - type_ = value; - onChanged(); - return this; - } - /** - *
-     * Type of the integration.
-     * 
- * - * .google.container.v1beta1.ClusterTelemetry.Type type = 1; - * @return The type. - */ - @java.lang.Override - public com.google.container.v1beta1.ClusterTelemetry.Type getType() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.ClusterTelemetry.Type result = com.google.container.v1beta1.ClusterTelemetry.Type.valueOf(type_); - return result == null ? com.google.container.v1beta1.ClusterTelemetry.Type.UNRECOGNIZED : result; - } - /** - *
-     * Type of the integration.
-     * 
- * - * .google.container.v1beta1.ClusterTelemetry.Type type = 1; - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(com.google.container.v1beta1.ClusterTelemetry.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Type of the integration.
-     * 
- * - * .google.container.v1beta1.ClusterTelemetry.Type type = 1; - * @return This builder for chaining. - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ClusterTelemetry) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.ClusterTelemetry) - private static final com.google.container.v1beta1.ClusterTelemetry DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.ClusterTelemetry(); - } - - public static com.google.container.v1beta1.ClusterTelemetry getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterTelemetry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 952e0c742474..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterTelemetryOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface ClusterTelemetryOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ClusterTelemetry) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Type of the integration.
-   * 
- * - * .google.container.v1beta1.ClusterTelemetry.Type type = 1; - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - /** - *
-   * Type of the integration.
-   * 
- * - * .google.container.v1beta1.ClusterTelemetry.Type type = 1; - * @return The type. - */ - com.google.container.v1beta1.ClusterTelemetry.Type getType(); -} diff --git a/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 deleted file mode 100644 index f3d7a4856783..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdate.java +++ /dev/null @@ -1,10478 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * ClusterUpdate describes an update to the cluster. Exactly one update can
- * be applied to a cluster with each request, so at most one field can be
- * provided.
- * 
- * - * Protobuf type {@code google.container.v1beta1.ClusterUpdate} - */ -public final class ClusterUpdate extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.ClusterUpdate) - ClusterUpdateOrBuilder { -private static final long serialVersionUID = 0L; - // Use ClusterUpdate.newBuilder() to construct. - private ClusterUpdate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ClusterUpdate() { - desiredNodeVersion_ = ""; - desiredMonitoringService_ = ""; - desiredNodePoolId_ = ""; - desiredImageType_ = ""; - desiredLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - desiredLoggingService_ = ""; - desiredDatapathProvider_ = 0; - desiredPrivateIpv6GoogleAccess_ = 0; - desiredMasterVersion_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ClusterUpdate(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ClusterUpdate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ClusterUpdate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.ClusterUpdate.class, com.google.container.v1beta1.ClusterUpdate.Builder.class); - } - - private int bitField0_; - public static final int DESIRED_NODE_VERSION_FIELD_NUMBER = 4; - private volatile java.lang.Object desiredNodeVersion_; - /** - *
-   * The Kubernetes version to change the nodes to (typically an
-   * upgrade).
-   * Users may specify either explicit versions offered by
-   * Kubernetes Engine or version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the Kubernetes master version
-   * 
- * - * string desired_node_version = 4; - * @return The desiredNodeVersion. - */ - @java.lang.Override - public java.lang.String getDesiredNodeVersion() { - java.lang.Object ref = desiredNodeVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - desiredNodeVersion_ = s; - return s; - } - } - /** - *
-   * The Kubernetes version to change the nodes to (typically an
-   * upgrade).
-   * Users may specify either explicit versions offered by
-   * Kubernetes Engine or version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the Kubernetes master version
-   * 
- * - * string desired_node_version = 4; - * @return The bytes for desiredNodeVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDesiredNodeVersionBytes() { - java.lang.Object ref = desiredNodeVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - desiredNodeVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESIRED_MONITORING_SERVICE_FIELD_NUMBER = 5; - private volatile java.lang.Object desiredMonitoringService_; - /** - *
-   * The monitoring service the cluster should use to write metrics.
-   * Currently available options:
-   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-   * service with a Kubernetes-native resource model
-   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-   *   longer available as of GKE 1.15).
-   * * `none` - No metrics will be exported from the cluster.
-   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-   * 
- * - * string desired_monitoring_service = 5; - * @return The desiredMonitoringService. - */ - @java.lang.Override - public java.lang.String getDesiredMonitoringService() { - java.lang.Object ref = desiredMonitoringService_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - desiredMonitoringService_ = s; - return s; - } - } - /** - *
-   * The monitoring service the cluster should use to write metrics.
-   * Currently available options:
-   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-   * service with a Kubernetes-native resource model
-   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-   *   longer available as of GKE 1.15).
-   * * `none` - No metrics will be exported from the cluster.
-   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-   * 
- * - * string desired_monitoring_service = 5; - * @return The bytes for desiredMonitoringService. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDesiredMonitoringServiceBytes() { - java.lang.Object ref = desiredMonitoringService_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - desiredMonitoringService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESIRED_ADDONS_CONFIG_FIELD_NUMBER = 6; - private com.google.container.v1beta1.AddonsConfig desiredAddonsConfig_; - /** - *
-   * Configurations for the various addons available to run in the cluster.
-   * 
- * - * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; - * @return Whether the desiredAddonsConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredAddonsConfig() { - return desiredAddonsConfig_ != null; - } - /** - *
-   * Configurations for the various addons available to run in the cluster.
-   * 
- * - * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; - * @return The desiredAddonsConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.AddonsConfig getDesiredAddonsConfig() { - return desiredAddonsConfig_ == null ? com.google.container.v1beta1.AddonsConfig.getDefaultInstance() : desiredAddonsConfig_; - } - /** - *
-   * Configurations for the various addons available to run in the cluster.
-   * 
- * - * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; - */ - @java.lang.Override - public com.google.container.v1beta1.AddonsConfigOrBuilder getDesiredAddonsConfigOrBuilder() { - return getDesiredAddonsConfig(); - } - - public static final int DESIRED_NODE_POOL_ID_FIELD_NUMBER = 7; - private volatile java.lang.Object desiredNodePoolId_; - /** - *
-   * The node pool to be upgraded. This field is mandatory if
-   * "desired_node_version", "desired_image_family",
-   * "desired_node_pool_autoscaling", or "desired_workload_metadata_config"
-   * is specified and there is more than one node pool on the cluster.
-   * 
- * - * string desired_node_pool_id = 7; - * @return The desiredNodePoolId. - */ - @java.lang.Override - public java.lang.String getDesiredNodePoolId() { - java.lang.Object ref = desiredNodePoolId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - desiredNodePoolId_ = s; - return s; - } - } - /** - *
-   * The node pool to be upgraded. This field is mandatory if
-   * "desired_node_version", "desired_image_family",
-   * "desired_node_pool_autoscaling", or "desired_workload_metadata_config"
-   * is specified and there is more than one node pool on the cluster.
-   * 
- * - * string desired_node_pool_id = 7; - * @return The bytes for desiredNodePoolId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDesiredNodePoolIdBytes() { - java.lang.Object ref = desiredNodePoolId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - desiredNodePoolId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESIRED_IMAGE_TYPE_FIELD_NUMBER = 8; - private volatile java.lang.Object desiredImageType_; - /** - *
-   * The desired image type for the node pool.
-   * NOTE: Set the "desired_node_pool" field as well.
-   * 
- * - * string desired_image_type = 8; - * @return The desiredImageType. - */ - @java.lang.Override - public java.lang.String getDesiredImageType() { - java.lang.Object ref = desiredImageType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - desiredImageType_ = s; - return s; - } - } - /** - *
-   * The desired image type for the node pool.
-   * NOTE: Set the "desired_node_pool" field as well.
-   * 
- * - * string desired_image_type = 8; - * @return The bytes for desiredImageType. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDesiredImageTypeBytes() { - java.lang.Object ref = desiredImageType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - desiredImageType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESIRED_NODE_POOL_AUTOSCALING_FIELD_NUMBER = 9; - private com.google.container.v1beta1.NodePoolAutoscaling desiredNodePoolAutoscaling_; - /** - *
-   * Autoscaler configuration for the node pool specified in
-   * desired_node_pool_id. If there is only one pool in the
-   * cluster and desired_node_pool_id is not provided then
-   * the change applies to that single node pool.
-   * 
- * - * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - * @return Whether the desiredNodePoolAutoscaling field is set. - */ - @java.lang.Override - public boolean hasDesiredNodePoolAutoscaling() { - return desiredNodePoolAutoscaling_ != null; - } - /** - *
-   * Autoscaler configuration for the node pool specified in
-   * desired_node_pool_id. If there is only one pool in the
-   * cluster and desired_node_pool_id is not provided then
-   * the change applies to that single node pool.
-   * 
- * - * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - * @return The desiredNodePoolAutoscaling. - */ - @java.lang.Override - public com.google.container.v1beta1.NodePoolAutoscaling getDesiredNodePoolAutoscaling() { - return desiredNodePoolAutoscaling_ == null ? com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() : desiredNodePoolAutoscaling_; - } - /** - *
-   * Autoscaler configuration for the node pool specified in
-   * desired_node_pool_id. If there is only one pool in the
-   * cluster and desired_node_pool_id is not provided then
-   * the change applies to that single node pool.
-   * 
- * - * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - */ - @java.lang.Override - public com.google.container.v1beta1.NodePoolAutoscalingOrBuilder getDesiredNodePoolAutoscalingOrBuilder() { - return getDesiredNodePoolAutoscaling(); - } - - public static final int DESIRED_LOCATIONS_FIELD_NUMBER = 10; - private com.google.protobuf.LazyStringList desiredLocations_; - /** - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This list must always include the cluster's primary zone.
-   * Warning: changing cluster locations will update the locations of all node
-   * pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string desired_locations = 10; - * @return A list containing the desiredLocations. - */ - public com.google.protobuf.ProtocolStringList - getDesiredLocationsList() { - return desiredLocations_; - } - /** - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This list must always include the cluster's primary zone.
-   * Warning: changing cluster locations will update the locations of all node
-   * pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string desired_locations = 10; - * @return The count of desiredLocations. - */ - public int getDesiredLocationsCount() { - return desiredLocations_.size(); - } - /** - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This list must always include the cluster's primary zone.
-   * Warning: changing cluster locations will update the locations of all node
-   * pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string desired_locations = 10; - * @param index The index of the element to return. - * @return The desiredLocations at the given index. - */ - public java.lang.String getDesiredLocations(int index) { - return desiredLocations_.get(index); - } - /** - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This list must always include the cluster's primary zone.
-   * Warning: changing cluster locations will update the locations of all node
-   * pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string desired_locations = 10; - * @param index The index of the value to return. - * @return The bytes of the desiredLocations at the given index. - */ - public com.google.protobuf.ByteString - getDesiredLocationsBytes(int index) { - return desiredLocations_.getByteString(index); - } - - public static final int DESIRED_MASTER_AUTHORIZED_NETWORKS_CONFIG_FIELD_NUMBER = 12; - private com.google.container.v1beta1.MasterAuthorizedNetworksConfig desiredMasterAuthorizedNetworksConfig_; - /** - *
-   * The desired configuration options for master authorized networks feature.
-   * 
- * - * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * @return Whether the desiredMasterAuthorizedNetworksConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredMasterAuthorizedNetworksConfig() { - return desiredMasterAuthorizedNetworksConfig_ != null; - } - /** - *
-   * The desired configuration options for master authorized networks feature.
-   * 
- * - * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * @return The desiredMasterAuthorizedNetworksConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.MasterAuthorizedNetworksConfig getDesiredMasterAuthorizedNetworksConfig() { - return desiredMasterAuthorizedNetworksConfig_ == null ? com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance() : desiredMasterAuthorizedNetworksConfig_; - } - /** - *
-   * The desired configuration options for master authorized networks feature.
-   * 
- * - * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - */ - @java.lang.Override - public com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder getDesiredMasterAuthorizedNetworksConfigOrBuilder() { - return getDesiredMasterAuthorizedNetworksConfig(); - } - - public static final int DESIRED_POD_SECURITY_POLICY_CONFIG_FIELD_NUMBER = 14; - private com.google.container.v1beta1.PodSecurityPolicyConfig desiredPodSecurityPolicyConfig_; - /** - *
-   * The desired configuration options for the PodSecurityPolicy feature.
-   * 
- * - * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; - * @return Whether the desiredPodSecurityPolicyConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredPodSecurityPolicyConfig() { - return desiredPodSecurityPolicyConfig_ != null; - } - /** - *
-   * The desired configuration options for the PodSecurityPolicy feature.
-   * 
- * - * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; - * @return The desiredPodSecurityPolicyConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.PodSecurityPolicyConfig getDesiredPodSecurityPolicyConfig() { - return desiredPodSecurityPolicyConfig_ == null ? com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance() : desiredPodSecurityPolicyConfig_; - } - /** - *
-   * The desired configuration options for the PodSecurityPolicy feature.
-   * 
- * - * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; - */ - @java.lang.Override - public com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder getDesiredPodSecurityPolicyConfigOrBuilder() { - return getDesiredPodSecurityPolicyConfig(); - } - - public static final int DESIRED_CLUSTER_AUTOSCALING_FIELD_NUMBER = 15; - private com.google.container.v1beta1.ClusterAutoscaling desiredClusterAutoscaling_; - /** - *
-   * Cluster-level autoscaling configuration.
-   * 
- * - * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; - * @return Whether the desiredClusterAutoscaling field is set. - */ - @java.lang.Override - public boolean hasDesiredClusterAutoscaling() { - return desiredClusterAutoscaling_ != null; - } - /** - *
-   * Cluster-level autoscaling configuration.
-   * 
- * - * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; - * @return The desiredClusterAutoscaling. - */ - @java.lang.Override - public com.google.container.v1beta1.ClusterAutoscaling getDesiredClusterAutoscaling() { - return desiredClusterAutoscaling_ == null ? com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance() : desiredClusterAutoscaling_; - } - /** - *
-   * Cluster-level autoscaling configuration.
-   * 
- * - * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; - */ - @java.lang.Override - public com.google.container.v1beta1.ClusterAutoscalingOrBuilder getDesiredClusterAutoscalingOrBuilder() { - return getDesiredClusterAutoscaling(); - } - - public static final int DESIRED_BINARY_AUTHORIZATION_FIELD_NUMBER = 16; - private com.google.container.v1beta1.BinaryAuthorization desiredBinaryAuthorization_; - /** - *
-   * The desired configuration options for the Binary Authorization feature.
-   * 
- * - * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; - * @return Whether the desiredBinaryAuthorization field is set. - */ - @java.lang.Override - public boolean hasDesiredBinaryAuthorization() { - return desiredBinaryAuthorization_ != null; - } - /** - *
-   * The desired configuration options for the Binary Authorization feature.
-   * 
- * - * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; - * @return The desiredBinaryAuthorization. - */ - @java.lang.Override - public com.google.container.v1beta1.BinaryAuthorization getDesiredBinaryAuthorization() { - return desiredBinaryAuthorization_ == null ? com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance() : desiredBinaryAuthorization_; - } - /** - *
-   * The desired configuration options for the Binary Authorization feature.
-   * 
- * - * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; - */ - @java.lang.Override - public com.google.container.v1beta1.BinaryAuthorizationOrBuilder getDesiredBinaryAuthorizationOrBuilder() { - return getDesiredBinaryAuthorization(); - } - - public static final int DESIRED_LOGGING_SERVICE_FIELD_NUMBER = 19; - private volatile java.lang.Object desiredLoggingService_; - /** - *
-   * The logging service the cluster should use to write logs.
-   * Currently available options:
-   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-   * service with a Kubernetes-native resource model
-   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-   *   available as of GKE 1.15).
-   * * `none` - no logs will be exported from the cluster.
-   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-   * 
- * - * string desired_logging_service = 19; - * @return The desiredLoggingService. - */ - @java.lang.Override - public java.lang.String getDesiredLoggingService() { - java.lang.Object ref = desiredLoggingService_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - desiredLoggingService_ = s; - return s; - } - } - /** - *
-   * The logging service the cluster should use to write logs.
-   * Currently available options:
-   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-   * service with a Kubernetes-native resource model
-   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-   *   available as of GKE 1.15).
-   * * `none` - no logs will be exported from the cluster.
-   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-   * 
- * - * string desired_logging_service = 19; - * @return The bytes for desiredLoggingService. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDesiredLoggingServiceBytes() { - java.lang.Object ref = desiredLoggingService_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - desiredLoggingService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESIRED_RESOURCE_USAGE_EXPORT_CONFIG_FIELD_NUMBER = 21; - private com.google.container.v1beta1.ResourceUsageExportConfig desiredResourceUsageExportConfig_; - /** - *
-   * The desired configuration for exporting resource usage.
-   * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * @return Whether the desiredResourceUsageExportConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredResourceUsageExportConfig() { - return desiredResourceUsageExportConfig_ != null; - } - /** - *
-   * The desired configuration for exporting resource usage.
-   * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * @return The desiredResourceUsageExportConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.ResourceUsageExportConfig getDesiredResourceUsageExportConfig() { - return desiredResourceUsageExportConfig_ == null ? com.google.container.v1beta1.ResourceUsageExportConfig.getDefaultInstance() : desiredResourceUsageExportConfig_; - } - /** - *
-   * The desired configuration for exporting resource usage.
-   * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - */ - @java.lang.Override - public com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder getDesiredResourceUsageExportConfigOrBuilder() { - return getDesiredResourceUsageExportConfig(); - } - - public static final int DESIRED_VERTICAL_POD_AUTOSCALING_FIELD_NUMBER = 22; - private com.google.container.v1beta1.VerticalPodAutoscaling desiredVerticalPodAutoscaling_; - /** - *
-   * Cluster-level Vertical Pod Autoscaling configuration.
-   * 
- * - * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * @return Whether the desiredVerticalPodAutoscaling field is set. - */ - @java.lang.Override - public boolean hasDesiredVerticalPodAutoscaling() { - return desiredVerticalPodAutoscaling_ != null; - } - /** - *
-   * Cluster-level Vertical Pod Autoscaling configuration.
-   * 
- * - * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * @return The desiredVerticalPodAutoscaling. - */ - @java.lang.Override - public com.google.container.v1beta1.VerticalPodAutoscaling getDesiredVerticalPodAutoscaling() { - return desiredVerticalPodAutoscaling_ == null ? com.google.container.v1beta1.VerticalPodAutoscaling.getDefaultInstance() : desiredVerticalPodAutoscaling_; - } - /** - *
-   * Cluster-level Vertical Pod Autoscaling configuration.
-   * 
- * - * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - */ - @java.lang.Override - public com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder getDesiredVerticalPodAutoscalingOrBuilder() { - return getDesiredVerticalPodAutoscaling(); - } - - public static final int DESIRED_PRIVATE_CLUSTER_CONFIG_FIELD_NUMBER = 25; - private com.google.container.v1beta1.PrivateClusterConfig desiredPrivateClusterConfig_; - /** - *
-   * The desired private cluster configuration.
-   * 
- * - * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; - * @return Whether the desiredPrivateClusterConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredPrivateClusterConfig() { - return desiredPrivateClusterConfig_ != null; - } - /** - *
-   * The desired private cluster configuration.
-   * 
- * - * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; - * @return The desiredPrivateClusterConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.PrivateClusterConfig getDesiredPrivateClusterConfig() { - return desiredPrivateClusterConfig_ == null ? com.google.container.v1beta1.PrivateClusterConfig.getDefaultInstance() : desiredPrivateClusterConfig_; - } - /** - *
-   * The desired private cluster configuration.
-   * 
- * - * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - @java.lang.Override - public com.google.container.v1beta1.PrivateClusterConfigOrBuilder getDesiredPrivateClusterConfigOrBuilder() { - return getDesiredPrivateClusterConfig(); - } - - public static final int DESIRED_INTRA_NODE_VISIBILITY_CONFIG_FIELD_NUMBER = 26; - private com.google.container.v1beta1.IntraNodeVisibilityConfig desiredIntraNodeVisibilityConfig_; - /** - *
-   * The desired config of Intra-node visibility.
-   * 
- * - * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * @return Whether the desiredIntraNodeVisibilityConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredIntraNodeVisibilityConfig() { - return desiredIntraNodeVisibilityConfig_ != null; - } - /** - *
-   * The desired config of Intra-node visibility.
-   * 
- * - * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * @return The desiredIntraNodeVisibilityConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.IntraNodeVisibilityConfig getDesiredIntraNodeVisibilityConfig() { - return desiredIntraNodeVisibilityConfig_ == null ? com.google.container.v1beta1.IntraNodeVisibilityConfig.getDefaultInstance() : desiredIntraNodeVisibilityConfig_; - } - /** - *
-   * The desired config of Intra-node visibility.
-   * 
- * - * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - */ - @java.lang.Override - public com.google.container.v1beta1.IntraNodeVisibilityConfigOrBuilder getDesiredIntraNodeVisibilityConfigOrBuilder() { - return getDesiredIntraNodeVisibilityConfig(); - } - - public static final int DESIRED_DEFAULT_SNAT_STATUS_FIELD_NUMBER = 28; - private com.google.container.v1beta1.DefaultSnatStatus desiredDefaultSnatStatus_; - /** - *
-   * The desired status of whether to disable default sNAT for this cluster.
-   * 
- * - * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; - * @return Whether the desiredDefaultSnatStatus field is set. - */ - @java.lang.Override - public boolean hasDesiredDefaultSnatStatus() { - return desiredDefaultSnatStatus_ != null; - } - /** - *
-   * The desired status of whether to disable default sNAT for this cluster.
-   * 
- * - * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; - * @return The desiredDefaultSnatStatus. - */ - @java.lang.Override - public com.google.container.v1beta1.DefaultSnatStatus getDesiredDefaultSnatStatus() { - return desiredDefaultSnatStatus_ == null ? com.google.container.v1beta1.DefaultSnatStatus.getDefaultInstance() : desiredDefaultSnatStatus_; - } - /** - *
-   * The desired status of whether to disable default sNAT for this cluster.
-   * 
- * - * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; - */ - @java.lang.Override - public com.google.container.v1beta1.DefaultSnatStatusOrBuilder getDesiredDefaultSnatStatusOrBuilder() { - return getDesiredDefaultSnatStatus(); - } - - public static final int DESIRED_CLUSTER_TELEMETRY_FIELD_NUMBER = 30; - private com.google.container.v1beta1.ClusterTelemetry desiredClusterTelemetry_; - /** - *
-   * The desired telemetry integration for the cluster.
-   * 
- * - * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; - * @return Whether the desiredClusterTelemetry field is set. - */ - @java.lang.Override - public boolean hasDesiredClusterTelemetry() { - return desiredClusterTelemetry_ != null; - } - /** - *
-   * The desired telemetry integration for the cluster.
-   * 
- * - * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; - * @return The desiredClusterTelemetry. - */ - @java.lang.Override - public com.google.container.v1beta1.ClusterTelemetry getDesiredClusterTelemetry() { - return desiredClusterTelemetry_ == null ? com.google.container.v1beta1.ClusterTelemetry.getDefaultInstance() : desiredClusterTelemetry_; - } - /** - *
-   * The desired telemetry integration for the cluster.
-   * 
- * - * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; - */ - @java.lang.Override - public com.google.container.v1beta1.ClusterTelemetryOrBuilder getDesiredClusterTelemetryOrBuilder() { - return getDesiredClusterTelemetry(); - } - - public static final int DESIRED_RELEASE_CHANNEL_FIELD_NUMBER = 31; - private com.google.container.v1beta1.ReleaseChannel desiredReleaseChannel_; - /** - *
-   * The desired release channel configuration.
-   * 
- * - * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; - * @return Whether the desiredReleaseChannel field is set. - */ - @java.lang.Override - public boolean hasDesiredReleaseChannel() { - return desiredReleaseChannel_ != null; - } - /** - *
-   * The desired release channel configuration.
-   * 
- * - * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; - * @return The desiredReleaseChannel. - */ - @java.lang.Override - public com.google.container.v1beta1.ReleaseChannel getDesiredReleaseChannel() { - return desiredReleaseChannel_ == null ? com.google.container.v1beta1.ReleaseChannel.getDefaultInstance() : desiredReleaseChannel_; - } - /** - *
-   * The desired release channel configuration.
-   * 
- * - * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; - */ - @java.lang.Override - public com.google.container.v1beta1.ReleaseChannelOrBuilder getDesiredReleaseChannelOrBuilder() { - return getDesiredReleaseChannel(); - } - - public static final int DESIRED_TPU_CONFIG_FIELD_NUMBER = 38; - private com.google.container.v1beta1.TpuConfig desiredTpuConfig_; - /** - *
-   * The desired Cloud TPU configuration.
-   * 
- * - * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; - * @return Whether the desiredTpuConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredTpuConfig() { - return desiredTpuConfig_ != null; - } - /** - *
-   * The desired Cloud TPU configuration.
-   * 
- * - * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; - * @return The desiredTpuConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.TpuConfig getDesiredTpuConfig() { - return desiredTpuConfig_ == null ? com.google.container.v1beta1.TpuConfig.getDefaultInstance() : desiredTpuConfig_; - } - /** - *
-   * The desired Cloud TPU configuration.
-   * 
- * - * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; - */ - @java.lang.Override - public com.google.container.v1beta1.TpuConfigOrBuilder getDesiredTpuConfigOrBuilder() { - return getDesiredTpuConfig(); - } - - public static final int DESIRED_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 desiredL4IlbSubsettingConfig_ != null; - } - /** - *
-   * 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 getDesiredL4IlbSubsettingConfig(); - } - - public static final int DESIRED_DATAPATH_PROVIDER_FIELD_NUMBER = 50; - private int desiredDatapathProvider_; - /** - *
-   * The desired datapath provider for the cluster.
-   * 
- * - * .google.container.v1beta1.DatapathProvider desired_datapath_provider = 50; - * @return The enum numeric value on the wire for desiredDatapathProvider. - */ - @java.lang.Override public int getDesiredDatapathProviderValue() { - return desiredDatapathProvider_; - } - /** - *
-   * The desired datapath provider for the cluster.
-   * 
- * - * .google.container.v1beta1.DatapathProvider desired_datapath_provider = 50; - * @return The desiredDatapathProvider. - */ - @java.lang.Override public com.google.container.v1beta1.DatapathProvider getDesiredDatapathProvider() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.DatapathProvider result = com.google.container.v1beta1.DatapathProvider.valueOf(desiredDatapathProvider_); - return result == null ? com.google.container.v1beta1.DatapathProvider.UNRECOGNIZED : result; - } - - public static final int DESIRED_PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER = 51; - private int desiredPrivateIpv6GoogleAccess_; - /** - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.PrivateIPv6GoogleAccess result = com.google.container.v1beta1.PrivateIPv6GoogleAccess.valueOf(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 desiredNotificationConfig_ != null; - } - /** - *
-   * The desired notification configuration.
-   * 
- * - * .google.container.v1beta1.NotificationConfig desired_notification_config = 55; - * @return The desiredNotificationConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.NotificationConfig getDesiredNotificationConfig() { - return desiredNotificationConfig_ == null ? com.google.container.v1beta1.NotificationConfig.getDefaultInstance() : desiredNotificationConfig_; - } - /** - *
-   * The desired notification configuration.
-   * 
- * - * .google.container.v1beta1.NotificationConfig desired_notification_config = 55; - */ - @java.lang.Override - public com.google.container.v1beta1.NotificationConfigOrBuilder getDesiredNotificationConfigOrBuilder() { - return getDesiredNotificationConfig(); - } - - public static final int DESIRED_MASTER_VERSION_FIELD_NUMBER = 100; - private volatile java.lang.Object desiredMasterVersion_; - /** - *
-   * The Kubernetes version to change the master to. The only valid value is the
-   * latest supported version.
-   * Users may specify either explicit versions offered by
-   * Kubernetes Engine or version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the default Kubernetes version
-   * 
- * - * string desired_master_version = 100; - * @return The desiredMasterVersion. - */ - @java.lang.Override - public java.lang.String getDesiredMasterVersion() { - java.lang.Object ref = desiredMasterVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - desiredMasterVersion_ = s; - return s; - } - } - /** - *
-   * The Kubernetes version to change the master to. The only valid value is the
-   * latest supported version.
-   * Users may specify either explicit versions offered by
-   * Kubernetes Engine or version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the default Kubernetes version
-   * 
- * - * string desired_master_version = 100; - * @return The bytes for desiredMasterVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDesiredMasterVersionBytes() { - java.lang.Object ref = desiredMasterVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - desiredMasterVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESIRED_GCFS_CONFIG_FIELD_NUMBER = 109; - private com.google.container.v1beta1.GcfsConfig desiredGcfsConfig_; - /** - *
-   * The desired GCFS config for the cluster.
-   * 
- * - * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; - * @return Whether the desiredGcfsConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredGcfsConfig() { - return desiredGcfsConfig_ != null; - } - /** - *
-   * The desired GCFS config for the cluster.
-   * 
- * - * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; - * @return The desiredGcfsConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.GcfsConfig getDesiredGcfsConfig() { - return desiredGcfsConfig_ == null ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() : desiredGcfsConfig_; - } - /** - *
-   * The desired GCFS config for the cluster.
-   * 
- * - * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; - */ - @java.lang.Override - public com.google.container.v1beta1.GcfsConfigOrBuilder getDesiredGcfsConfigOrBuilder() { - return getDesiredGcfsConfig(); - } - - public static final int DESIRED_DATABASE_ENCRYPTION_FIELD_NUMBER = 46; - private com.google.container.v1beta1.DatabaseEncryption desiredDatabaseEncryption_; - /** - *
-   * Configuration of etcd encryption.
-   * 
- * - * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; - * @return Whether the desiredDatabaseEncryption field is set. - */ - @java.lang.Override - public boolean hasDesiredDatabaseEncryption() { - return desiredDatabaseEncryption_ != null; - } - /** - *
-   * Configuration of etcd encryption.
-   * 
- * - * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; - * @return The desiredDatabaseEncryption. - */ - @java.lang.Override - public com.google.container.v1beta1.DatabaseEncryption getDesiredDatabaseEncryption() { - return desiredDatabaseEncryption_ == null ? com.google.container.v1beta1.DatabaseEncryption.getDefaultInstance() : desiredDatabaseEncryption_; - } - /** - *
-   * Configuration of etcd encryption.
-   * 
- * - * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; - */ - @java.lang.Override - public com.google.container.v1beta1.DatabaseEncryptionOrBuilder getDesiredDatabaseEncryptionOrBuilder() { - return getDesiredDatabaseEncryption(); - } - - public static final int DESIRED_WORKLOAD_IDENTITY_CONFIG_FIELD_NUMBER = 47; - private com.google.container.v1beta1.WorkloadIdentityConfig desiredWorkloadIdentityConfig_; - /** - *
-   * Configuration for Workload Identity.
-   * 
- * - * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * @return Whether the desiredWorkloadIdentityConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredWorkloadIdentityConfig() { - return desiredWorkloadIdentityConfig_ != null; - } - /** - *
-   * Configuration for Workload Identity.
-   * 
- * - * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * @return The desiredWorkloadIdentityConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.WorkloadIdentityConfig getDesiredWorkloadIdentityConfig() { - return desiredWorkloadIdentityConfig_ == null ? com.google.container.v1beta1.WorkloadIdentityConfig.getDefaultInstance() : desiredWorkloadIdentityConfig_; - } - /** - *
-   * Configuration for Workload Identity.
-   * 
- * - * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; - */ - @java.lang.Override - public com.google.container.v1beta1.WorkloadIdentityConfigOrBuilder getDesiredWorkloadIdentityConfigOrBuilder() { - return getDesiredWorkloadIdentityConfig(); - } - - public static final int DESIRED_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 desiredWorkloadCertificates_ != null; - } - /** - *
-   * 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 getDesiredWorkloadCertificates(); - } - - public static final int DESIRED_MESH_CERTIFICATES_FIELD_NUMBER = 67; - private com.google.container.v1beta1.MeshCertificates desiredMeshCertificates_; - /** - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; - * @return Whether the desiredMeshCertificates field is set. - */ - @java.lang.Override - public boolean hasDesiredMeshCertificates() { - return desiredMeshCertificates_ != null; - } - /** - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; - * @return The desiredMeshCertificates. - */ - @java.lang.Override - public com.google.container.v1beta1.MeshCertificates getDesiredMeshCertificates() { - return desiredMeshCertificates_ == null ? com.google.container.v1beta1.MeshCertificates.getDefaultInstance() : desiredMeshCertificates_; - } - /** - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; - */ - @java.lang.Override - public com.google.container.v1beta1.MeshCertificatesOrBuilder getDesiredMeshCertificatesOrBuilder() { - return getDesiredMeshCertificates(); - } - - public static final int DESIRED_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 desiredWorkloadAltsConfig_ != null; - } - /** - *
-   * 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 getDesiredWorkloadAltsConfig(); - } - - public static final int DESIRED_SHIELDED_NODES_FIELD_NUMBER = 48; - private com.google.container.v1beta1.ShieldedNodes desiredShieldedNodes_; - /** - *
-   * Configuration for Shielded Nodes.
-   * 
- * - * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; - * @return Whether the desiredShieldedNodes field is set. - */ - @java.lang.Override - public boolean hasDesiredShieldedNodes() { - return desiredShieldedNodes_ != null; - } - /** - *
-   * Configuration for Shielded Nodes.
-   * 
- * - * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; - * @return The desiredShieldedNodes. - */ - @java.lang.Override - public com.google.container.v1beta1.ShieldedNodes getDesiredShieldedNodes() { - return desiredShieldedNodes_ == null ? com.google.container.v1beta1.ShieldedNodes.getDefaultInstance() : desiredShieldedNodes_; - } - /** - *
-   * Configuration for Shielded Nodes.
-   * 
- * - * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; - */ - @java.lang.Override - public com.google.container.v1beta1.ShieldedNodesOrBuilder getDesiredShieldedNodesOrBuilder() { - return getDesiredShieldedNodes(); - } - - public static final int DESIRED_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 desiredCostManagementConfig_ != null; - } - /** - *
-   * 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 getDesiredCostManagementConfig(); - } - - public static final int DESIRED_MASTER_FIELD_NUMBER = 52; - private com.google.container.v1beta1.Master desiredMaster_; - /** - *
-   * Configuration for master components.
-   * 
- * - * .google.container.v1beta1.Master desired_master = 52; - * @return Whether the desiredMaster field is set. - */ - @java.lang.Override - public boolean hasDesiredMaster() { - return desiredMaster_ != null; - } - /** - *
-   * Configuration for master components.
-   * 
- * - * .google.container.v1beta1.Master desired_master = 52; - * @return The desiredMaster. - */ - @java.lang.Override - public com.google.container.v1beta1.Master getDesiredMaster() { - return desiredMaster_ == null ? com.google.container.v1beta1.Master.getDefaultInstance() : desiredMaster_; - } - /** - *
-   * Configuration for master components.
-   * 
- * - * .google.container.v1beta1.Master desired_master = 52; - */ - @java.lang.Override - public com.google.container.v1beta1.MasterOrBuilder getDesiredMasterOrBuilder() { - return getDesiredMaster(); - } - - 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 desiredDnsConfig_ != null; - } - /** - *
-   * 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 getDesiredDnsConfig(); - } - - 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 desiredServiceExternalIpsConfig_ != null; - } - /** - *
-   * 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 getDesiredServiceExternalIpsConfig(); - } - - 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 desiredAuthenticatorGroupsConfig_ != null; - } - /** - *
-   * 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 getDesiredAuthenticatorGroupsConfig(); - } - - 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 desiredLoggingConfig_ != null; - } - /** - *
-   * 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 getDesiredLoggingConfig(); - } - - 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 desiredMonitoringConfig_ != null; - } - /** - *
-   * 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 getDesiredMonitoringConfig(); - } - - 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 desiredIdentityServiceConfig_ != null; - } - /** - *
-   * 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 getDesiredIdentityServiceConfig(); - } - - public static final int DESIRED_ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER = 71; - 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 ((bitField0_ & 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_; - } - - 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 desiredNodePoolAutoConfigNetworkTags_ != null; - } - /** - *
-   * 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 getDesiredNodePoolAutoConfigNetworkTags(); - } - - public static final int DESIRED_PROTECT_CONFIG_FIELD_NUMBER = 112; - private com.google.container.v1beta1.ProtectConfig desiredProtectConfig_; - /** - *
-   * Enable/Disable Protect API features for the cluster.
-   * 
- * - * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112; - * @return Whether the desiredProtectConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredProtectConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-   * Enable/Disable Protect API features for the cluster.
-   * 
- * - * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112; - * @return The desiredProtectConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.ProtectConfig getDesiredProtectConfig() { - return desiredProtectConfig_ == null ? com.google.container.v1beta1.ProtectConfig.getDefaultInstance() : desiredProtectConfig_; - } - /** - *
-   * Enable/Disable Protect API features for the cluster.
-   * 
- * - * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112; - */ - @java.lang.Override - 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 desiredGatewayApiConfig_ != null; - } - /** - *
-   * 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 getDesiredGatewayApiConfig(); - } - - 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 desiredNodePoolLoggingConfig_ != null; - } - /** - *
-   * 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 getDesiredNodePoolLoggingConfig(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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 (desiredAddonsConfig_ != null) { - 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 (desiredNodePoolAutoscaling_ != null) { - output.writeMessage(9, getDesiredNodePoolAutoscaling()); - } - for (int i = 0; i < desiredLocations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, desiredLocations_.getRaw(i)); - } - if (desiredMasterAuthorizedNetworksConfig_ != null) { - output.writeMessage(12, getDesiredMasterAuthorizedNetworksConfig()); - } - if (desiredPodSecurityPolicyConfig_ != null) { - output.writeMessage(14, getDesiredPodSecurityPolicyConfig()); - } - if (desiredClusterAutoscaling_ != null) { - output.writeMessage(15, getDesiredClusterAutoscaling()); - } - if (desiredBinaryAuthorization_ != null) { - output.writeMessage(16, getDesiredBinaryAuthorization()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredLoggingService_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 19, desiredLoggingService_); - } - if (desiredResourceUsageExportConfig_ != null) { - output.writeMessage(21, getDesiredResourceUsageExportConfig()); - } - if (desiredVerticalPodAutoscaling_ != null) { - output.writeMessage(22, getDesiredVerticalPodAutoscaling()); - } - if (desiredPrivateClusterConfig_ != null) { - output.writeMessage(25, getDesiredPrivateClusterConfig()); - } - if (desiredIntraNodeVisibilityConfig_ != null) { - output.writeMessage(26, getDesiredIntraNodeVisibilityConfig()); - } - if (desiredDefaultSnatStatus_ != null) { - output.writeMessage(28, getDesiredDefaultSnatStatus()); - } - if (desiredClusterTelemetry_ != null) { - output.writeMessage(30, getDesiredClusterTelemetry()); - } - if (desiredReleaseChannel_ != null) { - output.writeMessage(31, getDesiredReleaseChannel()); - } - if (desiredTpuConfig_ != null) { - output.writeMessage(38, getDesiredTpuConfig()); - } - if (desiredL4IlbSubsettingConfig_ != null) { - output.writeMessage(39, getDesiredL4IlbSubsettingConfig()); - } - if (desiredDatabaseEncryption_ != null) { - output.writeMessage(46, getDesiredDatabaseEncryption()); - } - if (desiredWorkloadIdentityConfig_ != null) { - output.writeMessage(47, getDesiredWorkloadIdentityConfig()); - } - if (desiredShieldedNodes_ != null) { - output.writeMessage(48, getDesiredShieldedNodes()); - } - if (desiredCostManagementConfig_ != null) { - 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 (desiredMaster_ != null) { - output.writeMessage(52, getDesiredMaster()); - } - if (desiredDnsConfig_ != null) { - output.writeMessage(53, getDesiredDnsConfig()); - } - if (desiredNotificationConfig_ != null) { - output.writeMessage(55, getDesiredNotificationConfig()); - } - if (desiredServiceExternalIpsConfig_ != null) { - output.writeMessage(60, getDesiredServiceExternalIpsConfig()); - } - if (desiredWorkloadCertificates_ != null) { - output.writeMessage(61, getDesiredWorkloadCertificates()); - } - if (desiredWorkloadAltsConfig_ != null) { - output.writeMessage(62, getDesiredWorkloadAltsConfig()); - } - if (desiredAuthenticatorGroupsConfig_ != null) { - output.writeMessage(63, getDesiredAuthenticatorGroupsConfig()); - } - if (desiredLoggingConfig_ != null) { - output.writeMessage(64, getDesiredLoggingConfig()); - } - if (desiredMonitoringConfig_ != null) { - output.writeMessage(65, getDesiredMonitoringConfig()); - } - if (desiredIdentityServiceConfig_ != null) { - output.writeMessage(66, getDesiredIdentityServiceConfig()); - } - if (desiredMeshCertificates_ != null) { - output.writeMessage(67, getDesiredMeshCertificates()); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeBool(71, desiredEnablePrivateEndpoint_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredMasterVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 100, desiredMasterVersion_); - } - if (desiredGcfsConfig_ != null) { - output.writeMessage(109, getDesiredGcfsConfig()); - } - if (desiredNodePoolAutoConfigNetworkTags_ != null) { - output.writeMessage(110, getDesiredNodePoolAutoConfigNetworkTags()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(112, getDesiredProtectConfig()); - } - if (desiredGatewayApiConfig_ != null) { - output.writeMessage(114, getDesiredGatewayApiConfig()); - } - if (desiredNodePoolLoggingConfig_ != null) { - output.writeMessage(116, getDesiredNodePoolLoggingConfig()); - } - getUnknownFields().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 (desiredAddonsConfig_ != null) { - 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 (desiredNodePoolAutoscaling_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getDesiredNodePoolAutoscaling()); - } - { - int dataSize = 0; - for (int i = 0; i < desiredLocations_.size(); i++) { - dataSize += computeStringSizeNoTag(desiredLocations_.getRaw(i)); - } - size += dataSize; - size += 1 * getDesiredLocationsList().size(); - } - if (desiredMasterAuthorizedNetworksConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getDesiredMasterAuthorizedNetworksConfig()); - } - if (desiredPodSecurityPolicyConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getDesiredPodSecurityPolicyConfig()); - } - if (desiredClusterAutoscaling_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, getDesiredClusterAutoscaling()); - } - if (desiredBinaryAuthorization_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getDesiredBinaryAuthorization()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredLoggingService_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, desiredLoggingService_); - } - if (desiredResourceUsageExportConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, getDesiredResourceUsageExportConfig()); - } - if (desiredVerticalPodAutoscaling_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, getDesiredVerticalPodAutoscaling()); - } - if (desiredPrivateClusterConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(25, getDesiredPrivateClusterConfig()); - } - if (desiredIntraNodeVisibilityConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(26, getDesiredIntraNodeVisibilityConfig()); - } - if (desiredDefaultSnatStatus_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(28, getDesiredDefaultSnatStatus()); - } - if (desiredClusterTelemetry_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(30, getDesiredClusterTelemetry()); - } - if (desiredReleaseChannel_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(31, getDesiredReleaseChannel()); - } - if (desiredTpuConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(38, getDesiredTpuConfig()); - } - if (desiredL4IlbSubsettingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(39, getDesiredL4IlbSubsettingConfig()); - } - if (desiredDatabaseEncryption_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(46, getDesiredDatabaseEncryption()); - } - if (desiredWorkloadIdentityConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(47, getDesiredWorkloadIdentityConfig()); - } - if (desiredShieldedNodes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(48, getDesiredShieldedNodes()); - } - if (desiredCostManagementConfig_ != null) { - 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 (desiredMaster_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(52, getDesiredMaster()); - } - if (desiredDnsConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(53, getDesiredDnsConfig()); - } - if (desiredNotificationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(55, getDesiredNotificationConfig()); - } - if (desiredServiceExternalIpsConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(60, getDesiredServiceExternalIpsConfig()); - } - if (desiredWorkloadCertificates_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(61, getDesiredWorkloadCertificates()); - } - if (desiredWorkloadAltsConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(62, getDesiredWorkloadAltsConfig()); - } - if (desiredAuthenticatorGroupsConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(63, getDesiredAuthenticatorGroupsConfig()); - } - if (desiredLoggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(64, getDesiredLoggingConfig()); - } - if (desiredMonitoringConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(65, getDesiredMonitoringConfig()); - } - if (desiredIdentityServiceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(66, getDesiredIdentityServiceConfig()); - } - if (desiredMeshCertificates_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(67, getDesiredMeshCertificates()); - } - if (((bitField0_ & 0x00000001) != 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 (desiredGcfsConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(109, getDesiredGcfsConfig()); - } - if (desiredNodePoolAutoConfigNetworkTags_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(110, getDesiredNodePoolAutoConfigNetworkTags()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(112, getDesiredProtectConfig()); - } - if (desiredGatewayApiConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(114, getDesiredGatewayApiConfig()); - } - if (desiredNodePoolLoggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(116, getDesiredNodePoolLoggingConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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 (hasDesiredNodePoolLoggingConfig() != other.hasDesiredNodePoolLoggingConfig()) return false; - if (hasDesiredNodePoolLoggingConfig()) { - if (!getDesiredNodePoolLoggingConfig() - .equals(other.getDesiredNodePoolLoggingConfig())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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(); - } - if (hasDesiredNodePoolLoggingConfig()) { - hash = (37 * hash) + DESIRED_NODE_POOL_LOGGING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredNodePoolLoggingConfig().hashCode(); - } - 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) { - getDesiredProtectConfigFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - desiredNodeVersion_ = ""; - - desiredMonitoringService_ = ""; - - if (desiredAddonsConfigBuilder_ == null) { - desiredAddonsConfig_ = null; - } else { - desiredAddonsConfig_ = null; - desiredAddonsConfigBuilder_ = null; - } - desiredNodePoolId_ = ""; - - desiredImageType_ = ""; - - if (desiredNodePoolAutoscalingBuilder_ == null) { - desiredNodePoolAutoscaling_ = null; - } else { - desiredNodePoolAutoscaling_ = null; - desiredNodePoolAutoscalingBuilder_ = null; - } - desiredLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { - desiredMasterAuthorizedNetworksConfig_ = null; - } else { - desiredMasterAuthorizedNetworksConfig_ = null; - desiredMasterAuthorizedNetworksConfigBuilder_ = null; - } - if (desiredPodSecurityPolicyConfigBuilder_ == null) { - desiredPodSecurityPolicyConfig_ = null; - } else { - desiredPodSecurityPolicyConfig_ = null; - desiredPodSecurityPolicyConfigBuilder_ = null; - } - if (desiredClusterAutoscalingBuilder_ == null) { - desiredClusterAutoscaling_ = null; - } else { - desiredClusterAutoscaling_ = null; - desiredClusterAutoscalingBuilder_ = null; - } - if (desiredBinaryAuthorizationBuilder_ == null) { - desiredBinaryAuthorization_ = null; - } else { - desiredBinaryAuthorization_ = null; - desiredBinaryAuthorizationBuilder_ = null; - } - desiredLoggingService_ = ""; - - if (desiredResourceUsageExportConfigBuilder_ == null) { - desiredResourceUsageExportConfig_ = null; - } else { - desiredResourceUsageExportConfig_ = null; - desiredResourceUsageExportConfigBuilder_ = null; - } - if (desiredVerticalPodAutoscalingBuilder_ == null) { - desiredVerticalPodAutoscaling_ = null; - } else { - desiredVerticalPodAutoscaling_ = null; - desiredVerticalPodAutoscalingBuilder_ = null; - } - if (desiredPrivateClusterConfigBuilder_ == null) { - desiredPrivateClusterConfig_ = null; - } else { - desiredPrivateClusterConfig_ = null; - desiredPrivateClusterConfigBuilder_ = null; - } - if (desiredIntraNodeVisibilityConfigBuilder_ == null) { - desiredIntraNodeVisibilityConfig_ = null; - } else { - desiredIntraNodeVisibilityConfig_ = null; - desiredIntraNodeVisibilityConfigBuilder_ = null; - } - if (desiredDefaultSnatStatusBuilder_ == null) { - desiredDefaultSnatStatus_ = null; - } else { - desiredDefaultSnatStatus_ = null; - desiredDefaultSnatStatusBuilder_ = null; - } - if (desiredClusterTelemetryBuilder_ == null) { - desiredClusterTelemetry_ = null; - } else { - desiredClusterTelemetry_ = null; - desiredClusterTelemetryBuilder_ = null; - } - if (desiredReleaseChannelBuilder_ == null) { - desiredReleaseChannel_ = null; - } else { - desiredReleaseChannel_ = null; - desiredReleaseChannelBuilder_ = null; - } - if (desiredTpuConfigBuilder_ == null) { - desiredTpuConfig_ = null; - } else { - desiredTpuConfig_ = null; - desiredTpuConfigBuilder_ = null; - } - if (desiredL4IlbSubsettingConfigBuilder_ == null) { - desiredL4IlbSubsettingConfig_ = null; - } else { - desiredL4IlbSubsettingConfig_ = null; - desiredL4IlbSubsettingConfigBuilder_ = null; - } - desiredDatapathProvider_ = 0; - - desiredPrivateIpv6GoogleAccess_ = 0; - - if (desiredNotificationConfigBuilder_ == null) { - desiredNotificationConfig_ = null; - } else { - desiredNotificationConfig_ = null; - desiredNotificationConfigBuilder_ = null; - } - desiredMasterVersion_ = ""; - - if (desiredGcfsConfigBuilder_ == null) { - desiredGcfsConfig_ = null; - } else { - desiredGcfsConfig_ = null; - desiredGcfsConfigBuilder_ = null; - } - if (desiredDatabaseEncryptionBuilder_ == null) { - desiredDatabaseEncryption_ = null; - } else { - desiredDatabaseEncryption_ = null; - desiredDatabaseEncryptionBuilder_ = null; - } - if (desiredWorkloadIdentityConfigBuilder_ == null) { - desiredWorkloadIdentityConfig_ = null; - } else { - desiredWorkloadIdentityConfig_ = null; - desiredWorkloadIdentityConfigBuilder_ = null; - } - if (desiredWorkloadCertificatesBuilder_ == null) { - desiredWorkloadCertificates_ = null; - } else { - desiredWorkloadCertificates_ = null; - desiredWorkloadCertificatesBuilder_ = null; - } - if (desiredMeshCertificatesBuilder_ == null) { - desiredMeshCertificates_ = null; - } else { - desiredMeshCertificates_ = null; - desiredMeshCertificatesBuilder_ = null; - } - if (desiredWorkloadAltsConfigBuilder_ == null) { - desiredWorkloadAltsConfig_ = null; - } else { - desiredWorkloadAltsConfig_ = null; - desiredWorkloadAltsConfigBuilder_ = null; - } - if (desiredShieldedNodesBuilder_ == null) { - desiredShieldedNodes_ = null; - } else { - desiredShieldedNodes_ = null; - desiredShieldedNodesBuilder_ = null; - } - if (desiredCostManagementConfigBuilder_ == null) { - desiredCostManagementConfig_ = null; - } else { - desiredCostManagementConfig_ = null; - desiredCostManagementConfigBuilder_ = null; - } - if (desiredMasterBuilder_ == null) { - desiredMaster_ = null; - } else { - desiredMaster_ = null; - desiredMasterBuilder_ = null; - } - if (desiredDnsConfigBuilder_ == null) { - desiredDnsConfig_ = null; - } else { - desiredDnsConfig_ = null; - desiredDnsConfigBuilder_ = null; - } - if (desiredServiceExternalIpsConfigBuilder_ == null) { - desiredServiceExternalIpsConfig_ = null; - } else { - desiredServiceExternalIpsConfig_ = null; - desiredServiceExternalIpsConfigBuilder_ = null; - } - if (desiredAuthenticatorGroupsConfigBuilder_ == null) { - desiredAuthenticatorGroupsConfig_ = null; - } else { - desiredAuthenticatorGroupsConfig_ = null; - desiredAuthenticatorGroupsConfigBuilder_ = null; - } - if (desiredLoggingConfigBuilder_ == null) { - desiredLoggingConfig_ = null; - } else { - desiredLoggingConfig_ = null; - desiredLoggingConfigBuilder_ = null; - } - if (desiredMonitoringConfigBuilder_ == null) { - desiredMonitoringConfig_ = null; - } else { - desiredMonitoringConfig_ = null; - desiredMonitoringConfigBuilder_ = null; - } - if (desiredIdentityServiceConfigBuilder_ == null) { - desiredIdentityServiceConfig_ = null; - } else { - desiredIdentityServiceConfig_ = null; - desiredIdentityServiceConfigBuilder_ = null; - } - desiredEnablePrivateEndpoint_ = false; - bitField0_ = (bitField0_ & ~0x00000002); - if (desiredNodePoolAutoConfigNetworkTagsBuilder_ == null) { - desiredNodePoolAutoConfigNetworkTags_ = null; - } else { - desiredNodePoolAutoConfigNetworkTags_ = null; - desiredNodePoolAutoConfigNetworkTagsBuilder_ = null; - } - if (desiredProtectConfigBuilder_ == null) { - desiredProtectConfig_ = null; - } else { - desiredProtectConfigBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - if (desiredGatewayApiConfigBuilder_ == null) { - desiredGatewayApiConfig_ = null; - } else { - desiredGatewayApiConfig_ = null; - desiredGatewayApiConfigBuilder_ = null; - } - if (desiredNodePoolLoggingConfigBuilder_ == null) { - desiredNodePoolLoggingConfig_ = null; - } else { - desiredNodePoolLoggingConfig_ = null; - desiredNodePoolLoggingConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ClusterUpdate_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.ClusterUpdate getDefaultInstanceForType() { - return com.google.container.v1beta1.ClusterUpdate.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.ClusterUpdate build() { - com.google.container.v1beta1.ClusterUpdate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.ClusterUpdate buildPartial() { - com.google.container.v1beta1.ClusterUpdate result = new com.google.container.v1beta1.ClusterUpdate(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.desiredNodeVersion_ = desiredNodeVersion_; - result.desiredMonitoringService_ = desiredMonitoringService_; - if (desiredAddonsConfigBuilder_ == null) { - result.desiredAddonsConfig_ = desiredAddonsConfig_; - } else { - result.desiredAddonsConfig_ = desiredAddonsConfigBuilder_.build(); - } - result.desiredNodePoolId_ = desiredNodePoolId_; - result.desiredImageType_ = desiredImageType_; - if (desiredNodePoolAutoscalingBuilder_ == null) { - result.desiredNodePoolAutoscaling_ = desiredNodePoolAutoscaling_; - } else { - result.desiredNodePoolAutoscaling_ = desiredNodePoolAutoscalingBuilder_.build(); - } - if (((bitField0_ & 0x00000001) != 0)) { - desiredLocations_ = desiredLocations_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.desiredLocations_ = desiredLocations_; - if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { - result.desiredMasterAuthorizedNetworksConfig_ = desiredMasterAuthorizedNetworksConfig_; - } else { - result.desiredMasterAuthorizedNetworksConfig_ = desiredMasterAuthorizedNetworksConfigBuilder_.build(); - } - if (desiredPodSecurityPolicyConfigBuilder_ == null) { - result.desiredPodSecurityPolicyConfig_ = desiredPodSecurityPolicyConfig_; - } else { - result.desiredPodSecurityPolicyConfig_ = desiredPodSecurityPolicyConfigBuilder_.build(); - } - if (desiredClusterAutoscalingBuilder_ == null) { - result.desiredClusterAutoscaling_ = desiredClusterAutoscaling_; - } else { - result.desiredClusterAutoscaling_ = desiredClusterAutoscalingBuilder_.build(); - } - if (desiredBinaryAuthorizationBuilder_ == null) { - result.desiredBinaryAuthorization_ = desiredBinaryAuthorization_; - } else { - result.desiredBinaryAuthorization_ = desiredBinaryAuthorizationBuilder_.build(); - } - result.desiredLoggingService_ = desiredLoggingService_; - if (desiredResourceUsageExportConfigBuilder_ == null) { - result.desiredResourceUsageExportConfig_ = desiredResourceUsageExportConfig_; - } else { - result.desiredResourceUsageExportConfig_ = desiredResourceUsageExportConfigBuilder_.build(); - } - if (desiredVerticalPodAutoscalingBuilder_ == null) { - result.desiredVerticalPodAutoscaling_ = desiredVerticalPodAutoscaling_; - } else { - result.desiredVerticalPodAutoscaling_ = desiredVerticalPodAutoscalingBuilder_.build(); - } - if (desiredPrivateClusterConfigBuilder_ == null) { - result.desiredPrivateClusterConfig_ = desiredPrivateClusterConfig_; - } else { - result.desiredPrivateClusterConfig_ = desiredPrivateClusterConfigBuilder_.build(); - } - if (desiredIntraNodeVisibilityConfigBuilder_ == null) { - result.desiredIntraNodeVisibilityConfig_ = desiredIntraNodeVisibilityConfig_; - } else { - result.desiredIntraNodeVisibilityConfig_ = desiredIntraNodeVisibilityConfigBuilder_.build(); - } - if (desiredDefaultSnatStatusBuilder_ == null) { - result.desiredDefaultSnatStatus_ = desiredDefaultSnatStatus_; - } else { - result.desiredDefaultSnatStatus_ = desiredDefaultSnatStatusBuilder_.build(); - } - if (desiredClusterTelemetryBuilder_ == null) { - result.desiredClusterTelemetry_ = desiredClusterTelemetry_; - } else { - result.desiredClusterTelemetry_ = desiredClusterTelemetryBuilder_.build(); - } - if (desiredReleaseChannelBuilder_ == null) { - result.desiredReleaseChannel_ = desiredReleaseChannel_; - } else { - result.desiredReleaseChannel_ = desiredReleaseChannelBuilder_.build(); - } - if (desiredTpuConfigBuilder_ == null) { - result.desiredTpuConfig_ = desiredTpuConfig_; - } else { - result.desiredTpuConfig_ = desiredTpuConfigBuilder_.build(); - } - if (desiredL4IlbSubsettingConfigBuilder_ == null) { - result.desiredL4IlbSubsettingConfig_ = desiredL4IlbSubsettingConfig_; - } else { - result.desiredL4IlbSubsettingConfig_ = desiredL4IlbSubsettingConfigBuilder_.build(); - } - result.desiredDatapathProvider_ = desiredDatapathProvider_; - result.desiredPrivateIpv6GoogleAccess_ = desiredPrivateIpv6GoogleAccess_; - if (desiredNotificationConfigBuilder_ == null) { - result.desiredNotificationConfig_ = desiredNotificationConfig_; - } else { - result.desiredNotificationConfig_ = desiredNotificationConfigBuilder_.build(); - } - result.desiredMasterVersion_ = desiredMasterVersion_; - if (desiredGcfsConfigBuilder_ == null) { - result.desiredGcfsConfig_ = desiredGcfsConfig_; - } else { - result.desiredGcfsConfig_ = desiredGcfsConfigBuilder_.build(); - } - if (desiredDatabaseEncryptionBuilder_ == null) { - result.desiredDatabaseEncryption_ = desiredDatabaseEncryption_; - } else { - result.desiredDatabaseEncryption_ = desiredDatabaseEncryptionBuilder_.build(); - } - if (desiredWorkloadIdentityConfigBuilder_ == null) { - result.desiredWorkloadIdentityConfig_ = desiredWorkloadIdentityConfig_; - } else { - result.desiredWorkloadIdentityConfig_ = desiredWorkloadIdentityConfigBuilder_.build(); - } - if (desiredWorkloadCertificatesBuilder_ == null) { - result.desiredWorkloadCertificates_ = desiredWorkloadCertificates_; - } else { - result.desiredWorkloadCertificates_ = desiredWorkloadCertificatesBuilder_.build(); - } - if (desiredMeshCertificatesBuilder_ == null) { - result.desiredMeshCertificates_ = desiredMeshCertificates_; - } else { - result.desiredMeshCertificates_ = desiredMeshCertificatesBuilder_.build(); - } - if (desiredWorkloadAltsConfigBuilder_ == null) { - result.desiredWorkloadAltsConfig_ = desiredWorkloadAltsConfig_; - } else { - result.desiredWorkloadAltsConfig_ = desiredWorkloadAltsConfigBuilder_.build(); - } - if (desiredShieldedNodesBuilder_ == null) { - result.desiredShieldedNodes_ = desiredShieldedNodes_; - } else { - result.desiredShieldedNodes_ = desiredShieldedNodesBuilder_.build(); - } - if (desiredCostManagementConfigBuilder_ == null) { - result.desiredCostManagementConfig_ = desiredCostManagementConfig_; - } else { - result.desiredCostManagementConfig_ = desiredCostManagementConfigBuilder_.build(); - } - if (desiredMasterBuilder_ == null) { - result.desiredMaster_ = desiredMaster_; - } else { - result.desiredMaster_ = desiredMasterBuilder_.build(); - } - if (desiredDnsConfigBuilder_ == null) { - result.desiredDnsConfig_ = desiredDnsConfig_; - } else { - result.desiredDnsConfig_ = desiredDnsConfigBuilder_.build(); - } - if (desiredServiceExternalIpsConfigBuilder_ == null) { - result.desiredServiceExternalIpsConfig_ = desiredServiceExternalIpsConfig_; - } else { - result.desiredServiceExternalIpsConfig_ = desiredServiceExternalIpsConfigBuilder_.build(); - } - if (desiredAuthenticatorGroupsConfigBuilder_ == null) { - result.desiredAuthenticatorGroupsConfig_ = desiredAuthenticatorGroupsConfig_; - } else { - result.desiredAuthenticatorGroupsConfig_ = desiredAuthenticatorGroupsConfigBuilder_.build(); - } - if (desiredLoggingConfigBuilder_ == null) { - result.desiredLoggingConfig_ = desiredLoggingConfig_; - } else { - result.desiredLoggingConfig_ = desiredLoggingConfigBuilder_.build(); - } - if (desiredMonitoringConfigBuilder_ == null) { - result.desiredMonitoringConfig_ = desiredMonitoringConfig_; - } else { - result.desiredMonitoringConfig_ = desiredMonitoringConfigBuilder_.build(); - } - if (desiredIdentityServiceConfigBuilder_ == null) { - result.desiredIdentityServiceConfig_ = desiredIdentityServiceConfig_; - } else { - result.desiredIdentityServiceConfig_ = desiredIdentityServiceConfigBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.desiredEnablePrivateEndpoint_ = desiredEnablePrivateEndpoint_; - to_bitField0_ |= 0x00000001; - } - if (desiredNodePoolAutoConfigNetworkTagsBuilder_ == null) { - result.desiredNodePoolAutoConfigNetworkTags_ = desiredNodePoolAutoConfigNetworkTags_; - } else { - result.desiredNodePoolAutoConfigNetworkTags_ = desiredNodePoolAutoConfigNetworkTagsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - if (desiredProtectConfigBuilder_ == null) { - result.desiredProtectConfig_ = desiredProtectConfig_; - } else { - result.desiredProtectConfig_ = desiredProtectConfigBuilder_.build(); - } - to_bitField0_ |= 0x00000002; - } - if (desiredGatewayApiConfigBuilder_ == null) { - result.desiredGatewayApiConfig_ = desiredGatewayApiConfig_; - } else { - result.desiredGatewayApiConfig_ = desiredGatewayApiConfigBuilder_.build(); - } - if (desiredNodePoolLoggingConfigBuilder_ == null) { - result.desiredNodePoolLoggingConfig_ = desiredNodePoolLoggingConfig_; - } else { - result.desiredNodePoolLoggingConfig_ = desiredNodePoolLoggingConfigBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.ClusterUpdate) { - return mergeFrom((com.google.container.v1beta1.ClusterUpdate)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.ClusterUpdate other) { - if (other == com.google.container.v1beta1.ClusterUpdate.getDefaultInstance()) return this; - if (!other.getDesiredNodeVersion().isEmpty()) { - desiredNodeVersion_ = other.desiredNodeVersion_; - onChanged(); - } - if (!other.getDesiredMonitoringService().isEmpty()) { - desiredMonitoringService_ = other.desiredMonitoringService_; - onChanged(); - } - if (other.hasDesiredAddonsConfig()) { - mergeDesiredAddonsConfig(other.getDesiredAddonsConfig()); - } - if (!other.getDesiredNodePoolId().isEmpty()) { - desiredNodePoolId_ = other.desiredNodePoolId_; - onChanged(); - } - if (!other.getDesiredImageType().isEmpty()) { - desiredImageType_ = other.desiredImageType_; - onChanged(); - } - if (other.hasDesiredNodePoolAutoscaling()) { - mergeDesiredNodePoolAutoscaling(other.getDesiredNodePoolAutoscaling()); - } - if (!other.desiredLocations_.isEmpty()) { - if (desiredLocations_.isEmpty()) { - desiredLocations_ = other.desiredLocations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDesiredLocationsIsMutable(); - desiredLocations_.addAll(other.desiredLocations_); - } - onChanged(); - } - if (other.hasDesiredMasterAuthorizedNetworksConfig()) { - mergeDesiredMasterAuthorizedNetworksConfig(other.getDesiredMasterAuthorizedNetworksConfig()); - } - if (other.hasDesiredPodSecurityPolicyConfig()) { - mergeDesiredPodSecurityPolicyConfig(other.getDesiredPodSecurityPolicyConfig()); - } - if (other.hasDesiredClusterAutoscaling()) { - mergeDesiredClusterAutoscaling(other.getDesiredClusterAutoscaling()); - } - if (other.hasDesiredBinaryAuthorization()) { - mergeDesiredBinaryAuthorization(other.getDesiredBinaryAuthorization()); - } - if (!other.getDesiredLoggingService().isEmpty()) { - desiredLoggingService_ = other.desiredLoggingService_; - onChanged(); - } - if (other.hasDesiredResourceUsageExportConfig()) { - mergeDesiredResourceUsageExportConfig(other.getDesiredResourceUsageExportConfig()); - } - if (other.hasDesiredVerticalPodAutoscaling()) { - mergeDesiredVerticalPodAutoscaling(other.getDesiredVerticalPodAutoscaling()); - } - if (other.hasDesiredPrivateClusterConfig()) { - mergeDesiredPrivateClusterConfig(other.getDesiredPrivateClusterConfig()); - } - if (other.hasDesiredIntraNodeVisibilityConfig()) { - mergeDesiredIntraNodeVisibilityConfig(other.getDesiredIntraNodeVisibilityConfig()); - } - if (other.hasDesiredDefaultSnatStatus()) { - mergeDesiredDefaultSnatStatus(other.getDesiredDefaultSnatStatus()); - } - if (other.hasDesiredClusterTelemetry()) { - mergeDesiredClusterTelemetry(other.getDesiredClusterTelemetry()); - } - if (other.hasDesiredReleaseChannel()) { - mergeDesiredReleaseChannel(other.getDesiredReleaseChannel()); - } - if (other.hasDesiredTpuConfig()) { - mergeDesiredTpuConfig(other.getDesiredTpuConfig()); - } - if (other.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_; - 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.hasDesiredNodePoolLoggingConfig()) { - mergeDesiredNodePoolLoggingConfig(other.getDesiredNodePoolLoggingConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == 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(); - - break; - } // case 34 - case 42: { - desiredMonitoringService_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: { - input.readMessage( - getDesiredAddonsConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 50 - case 58: { - desiredNodePoolId_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 66: { - desiredImageType_ = input.readStringRequireUtf8(); - - break; - } // case 66 - case 74: { - input.readMessage( - getDesiredNodePoolAutoscalingFieldBuilder().getBuilder(), - extensionRegistry); - - 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); - - break; - } // case 98 - case 114: { - input.readMessage( - getDesiredPodSecurityPolicyConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 114 - case 122: { - input.readMessage( - getDesiredClusterAutoscalingFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 122 - case 130: { - input.readMessage( - getDesiredBinaryAuthorizationFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 130 - case 154: { - desiredLoggingService_ = input.readStringRequireUtf8(); - - break; - } // case 154 - case 170: { - input.readMessage( - getDesiredResourceUsageExportConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 170 - case 178: { - input.readMessage( - getDesiredVerticalPodAutoscalingFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 178 - case 202: { - input.readMessage( - getDesiredPrivateClusterConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 202 - case 210: { - input.readMessage( - getDesiredIntraNodeVisibilityConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 210 - case 226: { - input.readMessage( - getDesiredDefaultSnatStatusFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 226 - case 242: { - input.readMessage( - getDesiredClusterTelemetryFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 242 - case 250: { - input.readMessage( - getDesiredReleaseChannelFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 250 - case 306: { - input.readMessage( - getDesiredTpuConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 306 - case 314: { - input.readMessage( - getDesiredL4IlbSubsettingConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 314 - case 370: { - input.readMessage( - getDesiredDatabaseEncryptionFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 370 - case 378: { - input.readMessage( - getDesiredWorkloadIdentityConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 378 - case 386: { - input.readMessage( - getDesiredShieldedNodesFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 386 - case 394: { - input.readMessage( - getDesiredCostManagementConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 394 - case 400: { - desiredDatapathProvider_ = input.readEnum(); - - break; - } // case 400 - case 408: { - desiredPrivateIpv6GoogleAccess_ = input.readEnum(); - - break; - } // case 408 - case 418: { - input.readMessage( - getDesiredMasterFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 418 - case 426: { - input.readMessage( - getDesiredDnsConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 426 - case 442: { - input.readMessage( - getDesiredNotificationConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 442 - case 482: { - input.readMessage( - getDesiredServiceExternalIpsConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 482 - case 490: { - input.readMessage( - getDesiredWorkloadCertificatesFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 490 - case 498: { - input.readMessage( - getDesiredWorkloadAltsConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 498 - case 506: { - input.readMessage( - getDesiredAuthenticatorGroupsConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 506 - case 514: { - input.readMessage( - getDesiredLoggingConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 514 - case 522: { - input.readMessage( - getDesiredMonitoringConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 522 - case 530: { - input.readMessage( - getDesiredIdentityServiceConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 530 - case 538: { - input.readMessage( - getDesiredMeshCertificatesFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 538 - case 568: { - desiredEnablePrivateEndpoint_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 568 - case 802: { - desiredMasterVersion_ = input.readStringRequireUtf8(); - - break; - } // case 802 - case 874: { - input.readMessage( - getDesiredGcfsConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 874 - case 882: { - input.readMessage( - getDesiredNodePoolAutoConfigNetworkTagsFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 882 - case 898: { - input.readMessage( - getDesiredProtectConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 898 - case 914: { - input.readMessage( - getDesiredGatewayApiConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 914 - case 930: { - input.readMessage( - getDesiredNodePoolLoggingConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 930 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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 desiredNodeVersion_ = ""; - /** - *
-     * The Kubernetes version to change the nodes to (typically an
-     * upgrade).
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the Kubernetes master version
-     * 
- * - * string desired_node_version = 4; - * @return The desiredNodeVersion. - */ - public java.lang.String getDesiredNodeVersion() { - java.lang.Object ref = desiredNodeVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - desiredNodeVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The Kubernetes version to change the nodes to (typically an
-     * upgrade).
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the Kubernetes master version
-     * 
- * - * string desired_node_version = 4; - * @return The bytes for desiredNodeVersion. - */ - public com.google.protobuf.ByteString - getDesiredNodeVersionBytes() { - java.lang.Object ref = desiredNodeVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - desiredNodeVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The Kubernetes version to change the nodes to (typically an
-     * upgrade).
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the Kubernetes master version
-     * 
- * - * string desired_node_version = 4; - * @param value The desiredNodeVersion to set. - * @return This builder for chaining. - */ - public Builder setDesiredNodeVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - desiredNodeVersion_ = value; - onChanged(); - return this; - } - /** - *
-     * The Kubernetes version to change the nodes to (typically an
-     * upgrade).
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the Kubernetes master version
-     * 
- * - * string desired_node_version = 4; - * @return This builder for chaining. - */ - public Builder clearDesiredNodeVersion() { - - desiredNodeVersion_ = getDefaultInstance().getDesiredNodeVersion(); - onChanged(); - return this; - } - /** - *
-     * The Kubernetes version to change the nodes to (typically an
-     * upgrade).
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the Kubernetes master version
-     * 
- * - * string desired_node_version = 4; - * @param value The bytes for desiredNodeVersion to set. - * @return This builder for chaining. - */ - public Builder setDesiredNodeVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - desiredNodeVersion_ = value; - onChanged(); - return this; - } - - private java.lang.Object desiredMonitoringService_ = ""; - /** - *
-     * The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string desired_monitoring_service = 5; - * @return The desiredMonitoringService. - */ - public java.lang.String getDesiredMonitoringService() { - java.lang.Object ref = desiredMonitoringService_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - desiredMonitoringService_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string desired_monitoring_service = 5; - * @return The bytes for desiredMonitoringService. - */ - public com.google.protobuf.ByteString - getDesiredMonitoringServiceBytes() { - java.lang.Object ref = desiredMonitoringService_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - desiredMonitoringService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string desired_monitoring_service = 5; - * @param value The desiredMonitoringService to set. - * @return This builder for chaining. - */ - public Builder setDesiredMonitoringService( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - desiredMonitoringService_ = value; - onChanged(); - return this; - } - /** - *
-     * The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string desired_monitoring_service = 5; - * @return This builder for chaining. - */ - public Builder clearDesiredMonitoringService() { - - desiredMonitoringService_ = getDefaultInstance().getDesiredMonitoringService(); - onChanged(); - return this; - } - /** - *
-     * The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string desired_monitoring_service = 5; - * @param value The bytes for desiredMonitoringService to set. - * @return This builder for chaining. - */ - public Builder setDesiredMonitoringServiceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - desiredMonitoringService_ = value; - onChanged(); - return this; - } - - private com.google.container.v1beta1.AddonsConfig desiredAddonsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AddonsConfig, com.google.container.v1beta1.AddonsConfig.Builder, com.google.container.v1beta1.AddonsConfigOrBuilder> desiredAddonsConfigBuilder_; - /** - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; - * @return Whether the desiredAddonsConfig field is set. - */ - public boolean hasDesiredAddonsConfig() { - return desiredAddonsConfigBuilder_ != null || desiredAddonsConfig_ != null; - } - /** - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; - * @return The desiredAddonsConfig. - */ - public com.google.container.v1beta1.AddonsConfig getDesiredAddonsConfig() { - if (desiredAddonsConfigBuilder_ == null) { - return desiredAddonsConfig_ == null ? com.google.container.v1beta1.AddonsConfig.getDefaultInstance() : desiredAddonsConfig_; - } else { - return desiredAddonsConfigBuilder_.getMessage(); - } - } - /** - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; - */ - public Builder setDesiredAddonsConfig(com.google.container.v1beta1.AddonsConfig value) { - if (desiredAddonsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredAddonsConfig_ = value; - onChanged(); - } else { - desiredAddonsConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; - */ - public Builder setDesiredAddonsConfig( - com.google.container.v1beta1.AddonsConfig.Builder builderForValue) { - if (desiredAddonsConfigBuilder_ == null) { - desiredAddonsConfig_ = builderForValue.build(); - onChanged(); - } else { - desiredAddonsConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; - */ - public Builder mergeDesiredAddonsConfig(com.google.container.v1beta1.AddonsConfig value) { - if (desiredAddonsConfigBuilder_ == null) { - if (desiredAddonsConfig_ != null) { - desiredAddonsConfig_ = - com.google.container.v1beta1.AddonsConfig.newBuilder(desiredAddonsConfig_).mergeFrom(value).buildPartial(); - } else { - desiredAddonsConfig_ = value; - } - onChanged(); - } else { - desiredAddonsConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; - */ - public Builder clearDesiredAddonsConfig() { - if (desiredAddonsConfigBuilder_ == null) { - desiredAddonsConfig_ = null; - onChanged(); - } else { - desiredAddonsConfig_ = null; - desiredAddonsConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; - */ - public com.google.container.v1beta1.AddonsConfig.Builder getDesiredAddonsConfigBuilder() { - - onChanged(); - return getDesiredAddonsConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; - */ - public com.google.container.v1beta1.AddonsConfigOrBuilder getDesiredAddonsConfigOrBuilder() { - if (desiredAddonsConfigBuilder_ != null) { - return desiredAddonsConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredAddonsConfig_ == null ? - com.google.container.v1beta1.AddonsConfig.getDefaultInstance() : desiredAddonsConfig_; - } - } - /** - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AddonsConfig, com.google.container.v1beta1.AddonsConfig.Builder, com.google.container.v1beta1.AddonsConfigOrBuilder> - getDesiredAddonsConfigFieldBuilder() { - if (desiredAddonsConfigBuilder_ == null) { - desiredAddonsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AddonsConfig, com.google.container.v1beta1.AddonsConfig.Builder, com.google.container.v1beta1.AddonsConfigOrBuilder>( - getDesiredAddonsConfig(), - getParentForChildren(), - isClean()); - desiredAddonsConfig_ = null; - } - return desiredAddonsConfigBuilder_; - } - - private java.lang.Object desiredNodePoolId_ = ""; - /** - *
-     * The node pool to be upgraded. This field is mandatory if
-     * "desired_node_version", "desired_image_family",
-     * "desired_node_pool_autoscaling", or "desired_workload_metadata_config"
-     * is specified and there is more than one node pool on the cluster.
-     * 
- * - * string desired_node_pool_id = 7; - * @return The desiredNodePoolId. - */ - public java.lang.String getDesiredNodePoolId() { - java.lang.Object ref = desiredNodePoolId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - desiredNodePoolId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The node pool to be upgraded. This field is mandatory if
-     * "desired_node_version", "desired_image_family",
-     * "desired_node_pool_autoscaling", or "desired_workload_metadata_config"
-     * is specified and there is more than one node pool on the cluster.
-     * 
- * - * string desired_node_pool_id = 7; - * @return The bytes for desiredNodePoolId. - */ - public com.google.protobuf.ByteString - getDesiredNodePoolIdBytes() { - java.lang.Object ref = desiredNodePoolId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - desiredNodePoolId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The node pool to be upgraded. This field is mandatory if
-     * "desired_node_version", "desired_image_family",
-     * "desired_node_pool_autoscaling", or "desired_workload_metadata_config"
-     * is specified and there is more than one node pool on the cluster.
-     * 
- * - * string desired_node_pool_id = 7; - * @param value The desiredNodePoolId to set. - * @return This builder for chaining. - */ - public Builder setDesiredNodePoolId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - desiredNodePoolId_ = value; - onChanged(); - return this; - } - /** - *
-     * The node pool to be upgraded. This field is mandatory if
-     * "desired_node_version", "desired_image_family",
-     * "desired_node_pool_autoscaling", or "desired_workload_metadata_config"
-     * is specified and there is more than one node pool on the cluster.
-     * 
- * - * string desired_node_pool_id = 7; - * @return This builder for chaining. - */ - public Builder clearDesiredNodePoolId() { - - desiredNodePoolId_ = getDefaultInstance().getDesiredNodePoolId(); - onChanged(); - return this; - } - /** - *
-     * The node pool to be upgraded. This field is mandatory if
-     * "desired_node_version", "desired_image_family",
-     * "desired_node_pool_autoscaling", or "desired_workload_metadata_config"
-     * is specified and there is more than one node pool on the cluster.
-     * 
- * - * string desired_node_pool_id = 7; - * @param value The bytes for desiredNodePoolId to set. - * @return This builder for chaining. - */ - public Builder setDesiredNodePoolIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - desiredNodePoolId_ = value; - onChanged(); - return this; - } - - private java.lang.Object desiredImageType_ = ""; - /** - *
-     * The desired image type for the node pool.
-     * NOTE: Set the "desired_node_pool" field as well.
-     * 
- * - * string desired_image_type = 8; - * @return The desiredImageType. - */ - public java.lang.String getDesiredImageType() { - java.lang.Object ref = desiredImageType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - desiredImageType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The desired image type for the node pool.
-     * NOTE: Set the "desired_node_pool" field as well.
-     * 
- * - * string desired_image_type = 8; - * @return The bytes for desiredImageType. - */ - public com.google.protobuf.ByteString - getDesiredImageTypeBytes() { - java.lang.Object ref = desiredImageType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - desiredImageType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The desired image type for the node pool.
-     * NOTE: Set the "desired_node_pool" field as well.
-     * 
- * - * string desired_image_type = 8; - * @param value The desiredImageType to set. - * @return This builder for chaining. - */ - public Builder setDesiredImageType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - desiredImageType_ = value; - onChanged(); - return this; - } - /** - *
-     * The desired image type for the node pool.
-     * NOTE: Set the "desired_node_pool" field as well.
-     * 
- * - * string desired_image_type = 8; - * @return This builder for chaining. - */ - public Builder clearDesiredImageType() { - - desiredImageType_ = getDefaultInstance().getDesiredImageType(); - onChanged(); - return this; - } - /** - *
-     * The desired image type for the node pool.
-     * NOTE: Set the "desired_node_pool" field as well.
-     * 
- * - * string desired_image_type = 8; - * @param value The bytes for desiredImageType to set. - * @return This builder for chaining. - */ - public Builder setDesiredImageTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - desiredImageType_ = value; - onChanged(); - return this; - } - - private com.google.container.v1beta1.NodePoolAutoscaling desiredNodePoolAutoscaling_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePoolAutoscaling, com.google.container.v1beta1.NodePoolAutoscaling.Builder, com.google.container.v1beta1.NodePoolAutoscalingOrBuilder> desiredNodePoolAutoscalingBuilder_; - /** - *
-     * Autoscaler configuration for the node pool specified in
-     * desired_node_pool_id. If there is only one pool in the
-     * cluster and desired_node_pool_id is not provided then
-     * the change applies to that single node pool.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - * @return Whether the desiredNodePoolAutoscaling field is set. - */ - public boolean hasDesiredNodePoolAutoscaling() { - return desiredNodePoolAutoscalingBuilder_ != null || desiredNodePoolAutoscaling_ != null; - } - /** - *
-     * Autoscaler configuration for the node pool specified in
-     * desired_node_pool_id. If there is only one pool in the
-     * cluster and desired_node_pool_id is not provided then
-     * the change applies to that single node pool.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - * @return The desiredNodePoolAutoscaling. - */ - public com.google.container.v1beta1.NodePoolAutoscaling getDesiredNodePoolAutoscaling() { - if (desiredNodePoolAutoscalingBuilder_ == null) { - return desiredNodePoolAutoscaling_ == null ? com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() : desiredNodePoolAutoscaling_; - } else { - return desiredNodePoolAutoscalingBuilder_.getMessage(); - } - } - /** - *
-     * Autoscaler configuration for the node pool specified in
-     * desired_node_pool_id. If there is only one pool in the
-     * cluster and desired_node_pool_id is not provided then
-     * the change applies to that single node pool.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - */ - public Builder setDesiredNodePoolAutoscaling(com.google.container.v1beta1.NodePoolAutoscaling value) { - if (desiredNodePoolAutoscalingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredNodePoolAutoscaling_ = value; - onChanged(); - } else { - desiredNodePoolAutoscalingBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Autoscaler configuration for the node pool specified in
-     * desired_node_pool_id. If there is only one pool in the
-     * cluster and desired_node_pool_id is not provided then
-     * the change applies to that single node pool.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - */ - public Builder setDesiredNodePoolAutoscaling( - com.google.container.v1beta1.NodePoolAutoscaling.Builder builderForValue) { - if (desiredNodePoolAutoscalingBuilder_ == null) { - desiredNodePoolAutoscaling_ = builderForValue.build(); - onChanged(); - } else { - desiredNodePoolAutoscalingBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Autoscaler configuration for the node pool specified in
-     * desired_node_pool_id. If there is only one pool in the
-     * cluster and desired_node_pool_id is not provided then
-     * the change applies to that single node pool.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - */ - public Builder mergeDesiredNodePoolAutoscaling(com.google.container.v1beta1.NodePoolAutoscaling value) { - if (desiredNodePoolAutoscalingBuilder_ == null) { - if (desiredNodePoolAutoscaling_ != null) { - desiredNodePoolAutoscaling_ = - com.google.container.v1beta1.NodePoolAutoscaling.newBuilder(desiredNodePoolAutoscaling_).mergeFrom(value).buildPartial(); - } else { - desiredNodePoolAutoscaling_ = value; - } - onChanged(); - } else { - desiredNodePoolAutoscalingBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Autoscaler configuration for the node pool specified in
-     * desired_node_pool_id. If there is only one pool in the
-     * cluster and desired_node_pool_id is not provided then
-     * the change applies to that single node pool.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - */ - public Builder clearDesiredNodePoolAutoscaling() { - if (desiredNodePoolAutoscalingBuilder_ == null) { - desiredNodePoolAutoscaling_ = null; - onChanged(); - } else { - desiredNodePoolAutoscaling_ = null; - desiredNodePoolAutoscalingBuilder_ = null; - } - - return this; - } - /** - *
-     * Autoscaler configuration for the node pool specified in
-     * desired_node_pool_id. If there is only one pool in the
-     * cluster and desired_node_pool_id is not provided then
-     * the change applies to that single node pool.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - */ - public com.google.container.v1beta1.NodePoolAutoscaling.Builder getDesiredNodePoolAutoscalingBuilder() { - - onChanged(); - return getDesiredNodePoolAutoscalingFieldBuilder().getBuilder(); - } - /** - *
-     * Autoscaler configuration for the node pool specified in
-     * desired_node_pool_id. If there is only one pool in the
-     * cluster and desired_node_pool_id is not provided then
-     * the change applies to that single node pool.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - */ - public com.google.container.v1beta1.NodePoolAutoscalingOrBuilder getDesiredNodePoolAutoscalingOrBuilder() { - if (desiredNodePoolAutoscalingBuilder_ != null) { - return desiredNodePoolAutoscalingBuilder_.getMessageOrBuilder(); - } else { - return desiredNodePoolAutoscaling_ == null ? - com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() : desiredNodePoolAutoscaling_; - } - } - /** - *
-     * Autoscaler configuration for the node pool specified in
-     * desired_node_pool_id. If there is only one pool in the
-     * cluster and desired_node_pool_id is not provided then
-     * the change applies to that single node pool.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePoolAutoscaling, com.google.container.v1beta1.NodePoolAutoscaling.Builder, com.google.container.v1beta1.NodePoolAutoscalingOrBuilder> - getDesiredNodePoolAutoscalingFieldBuilder() { - if (desiredNodePoolAutoscalingBuilder_ == null) { - desiredNodePoolAutoscalingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePoolAutoscaling, com.google.container.v1beta1.NodePoolAutoscaling.Builder, com.google.container.v1beta1.NodePoolAutoscalingOrBuilder>( - getDesiredNodePoolAutoscaling(), - getParentForChildren(), - isClean()); - desiredNodePoolAutoscaling_ = null; - } - return desiredNodePoolAutoscalingBuilder_; - } - - private com.google.protobuf.LazyStringList desiredLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureDesiredLocationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - desiredLocations_ = new com.google.protobuf.LazyStringArrayList(desiredLocations_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This list must always include the cluster's primary zone.
-     * Warning: changing cluster locations will update the locations of all node
-     * pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string desired_locations = 10; - * @return A list containing the desiredLocations. - */ - public com.google.protobuf.ProtocolStringList - getDesiredLocationsList() { - return desiredLocations_.getUnmodifiableView(); - } - /** - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This list must always include the cluster's primary zone.
-     * Warning: changing cluster locations will update the locations of all node
-     * pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string desired_locations = 10; - * @return The count of desiredLocations. - */ - public int getDesiredLocationsCount() { - return desiredLocations_.size(); - } - /** - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This list must always include the cluster's primary zone.
-     * Warning: changing cluster locations will update the locations of all node
-     * pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string desired_locations = 10; - * @param index The index of the element to return. - * @return The desiredLocations at the given index. - */ - public java.lang.String getDesiredLocations(int index) { - return desiredLocations_.get(index); - } - /** - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This list must always include the cluster's primary zone.
-     * Warning: changing cluster locations will update the locations of all node
-     * pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string desired_locations = 10; - * @param index The index of the value to return. - * @return The bytes of the desiredLocations at the given index. - */ - public com.google.protobuf.ByteString - getDesiredLocationsBytes(int index) { - return desiredLocations_.getByteString(index); - } - /** - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This list must always include the cluster's primary zone.
-     * Warning: changing cluster locations will update the locations of all node
-     * pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string desired_locations = 10; - * @param index The index to set the value at. - * @param value The desiredLocations to set. - * @return This builder for chaining. - */ - public Builder setDesiredLocations( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDesiredLocationsIsMutable(); - desiredLocations_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This list must always include the cluster's primary zone.
-     * Warning: changing cluster locations will update the locations of all node
-     * pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string desired_locations = 10; - * @param value The desiredLocations to add. - * @return This builder for chaining. - */ - public Builder addDesiredLocations( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDesiredLocationsIsMutable(); - desiredLocations_.add(value); - onChanged(); - return this; - } - /** - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This list must always include the cluster's primary zone.
-     * Warning: changing cluster locations will update the locations of all node
-     * pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string desired_locations = 10; - * @param values The desiredLocations to add. - * @return This builder for chaining. - */ - public Builder addAllDesiredLocations( - java.lang.Iterable values) { - ensureDesiredLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, desiredLocations_); - onChanged(); - return this; - } - /** - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This list must always include the cluster's primary zone.
-     * Warning: changing cluster locations will update the locations of all node
-     * pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string desired_locations = 10; - * @return This builder for chaining. - */ - public Builder clearDesiredLocations() { - desiredLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This list must always include the cluster's primary zone.
-     * Warning: changing cluster locations will update the locations of all node
-     * pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string desired_locations = 10; - * @param value The bytes of the desiredLocations to add. - * @return This builder for chaining. - */ - public Builder addDesiredLocationsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureDesiredLocationsIsMutable(); - desiredLocations_.add(value); - onChanged(); - return this; - } - - private com.google.container.v1beta1.MasterAuthorizedNetworksConfig desiredMasterAuthorizedNetworksConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MasterAuthorizedNetworksConfig, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder, com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder> desiredMasterAuthorizedNetworksConfigBuilder_; - /** - *
-     * The desired configuration options for master authorized networks feature.
-     * 
- * - * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * @return Whether the desiredMasterAuthorizedNetworksConfig field is set. - */ - public boolean hasDesiredMasterAuthorizedNetworksConfig() { - return desiredMasterAuthorizedNetworksConfigBuilder_ != null || desiredMasterAuthorizedNetworksConfig_ != null; - } - /** - *
-     * The desired configuration options for master authorized networks feature.
-     * 
- * - * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * @return The desiredMasterAuthorizedNetworksConfig. - */ - public com.google.container.v1beta1.MasterAuthorizedNetworksConfig getDesiredMasterAuthorizedNetworksConfig() { - if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { - return desiredMasterAuthorizedNetworksConfig_ == null ? com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance() : desiredMasterAuthorizedNetworksConfig_; - } else { - return desiredMasterAuthorizedNetworksConfigBuilder_.getMessage(); - } - } - /** - *
-     * The desired configuration options for master authorized networks feature.
-     * 
- * - * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - */ - public Builder setDesiredMasterAuthorizedNetworksConfig(com.google.container.v1beta1.MasterAuthorizedNetworksConfig value) { - if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredMasterAuthorizedNetworksConfig_ = value; - onChanged(); - } else { - desiredMasterAuthorizedNetworksConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The desired configuration options for master authorized networks feature.
-     * 
- * - * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - */ - public Builder setDesiredMasterAuthorizedNetworksConfig( - com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder builderForValue) { - if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { - desiredMasterAuthorizedNetworksConfig_ = builderForValue.build(); - onChanged(); - } else { - desiredMasterAuthorizedNetworksConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The desired configuration options for master authorized networks feature.
-     * 
- * - * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - */ - public Builder mergeDesiredMasterAuthorizedNetworksConfig(com.google.container.v1beta1.MasterAuthorizedNetworksConfig value) { - if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { - if (desiredMasterAuthorizedNetworksConfig_ != null) { - desiredMasterAuthorizedNetworksConfig_ = - com.google.container.v1beta1.MasterAuthorizedNetworksConfig.newBuilder(desiredMasterAuthorizedNetworksConfig_).mergeFrom(value).buildPartial(); - } else { - desiredMasterAuthorizedNetworksConfig_ = value; - } - onChanged(); - } else { - desiredMasterAuthorizedNetworksConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The desired configuration options for master authorized networks feature.
-     * 
- * - * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - */ - public Builder clearDesiredMasterAuthorizedNetworksConfig() { - if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { - desiredMasterAuthorizedNetworksConfig_ = null; - onChanged(); - } else { - desiredMasterAuthorizedNetworksConfig_ = null; - desiredMasterAuthorizedNetworksConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * The desired configuration options for master authorized networks feature.
-     * 
- * - * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - */ - public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder getDesiredMasterAuthorizedNetworksConfigBuilder() { - - onChanged(); - return getDesiredMasterAuthorizedNetworksConfigFieldBuilder().getBuilder(); - } - /** - *
-     * The desired configuration options for master authorized networks feature.
-     * 
- * - * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - */ - public com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder getDesiredMasterAuthorizedNetworksConfigOrBuilder() { - if (desiredMasterAuthorizedNetworksConfigBuilder_ != null) { - return desiredMasterAuthorizedNetworksConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredMasterAuthorizedNetworksConfig_ == null ? - com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance() : desiredMasterAuthorizedNetworksConfig_; - } - } - /** - *
-     * The desired configuration options for master authorized networks feature.
-     * 
- * - * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MasterAuthorizedNetworksConfig, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder, com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder> - getDesiredMasterAuthorizedNetworksConfigFieldBuilder() { - if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { - desiredMasterAuthorizedNetworksConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MasterAuthorizedNetworksConfig, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder, com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder>( - getDesiredMasterAuthorizedNetworksConfig(), - getParentForChildren(), - isClean()); - desiredMasterAuthorizedNetworksConfig_ = null; - } - return desiredMasterAuthorizedNetworksConfigBuilder_; - } - - private com.google.container.v1beta1.PodSecurityPolicyConfig desiredPodSecurityPolicyConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.PodSecurityPolicyConfig, com.google.container.v1beta1.PodSecurityPolicyConfig.Builder, com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder> desiredPodSecurityPolicyConfigBuilder_; - /** - *
-     * The desired configuration options for the PodSecurityPolicy feature.
-     * 
- * - * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; - * @return Whether the desiredPodSecurityPolicyConfig field is set. - */ - public boolean hasDesiredPodSecurityPolicyConfig() { - return desiredPodSecurityPolicyConfigBuilder_ != null || desiredPodSecurityPolicyConfig_ != null; - } - /** - *
-     * The desired configuration options for the PodSecurityPolicy feature.
-     * 
- * - * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; - * @return The desiredPodSecurityPolicyConfig. - */ - public com.google.container.v1beta1.PodSecurityPolicyConfig getDesiredPodSecurityPolicyConfig() { - if (desiredPodSecurityPolicyConfigBuilder_ == null) { - return desiredPodSecurityPolicyConfig_ == null ? com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance() : desiredPodSecurityPolicyConfig_; - } else { - return desiredPodSecurityPolicyConfigBuilder_.getMessage(); - } - } - /** - *
-     * The desired configuration options for the PodSecurityPolicy feature.
-     * 
- * - * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; - */ - public Builder setDesiredPodSecurityPolicyConfig(com.google.container.v1beta1.PodSecurityPolicyConfig value) { - if (desiredPodSecurityPolicyConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredPodSecurityPolicyConfig_ = value; - onChanged(); - } else { - desiredPodSecurityPolicyConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The desired configuration options for the PodSecurityPolicy feature.
-     * 
- * - * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; - */ - public Builder setDesiredPodSecurityPolicyConfig( - com.google.container.v1beta1.PodSecurityPolicyConfig.Builder builderForValue) { - if (desiredPodSecurityPolicyConfigBuilder_ == null) { - desiredPodSecurityPolicyConfig_ = builderForValue.build(); - onChanged(); - } else { - desiredPodSecurityPolicyConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The desired configuration options for the PodSecurityPolicy feature.
-     * 
- * - * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; - */ - public Builder mergeDesiredPodSecurityPolicyConfig(com.google.container.v1beta1.PodSecurityPolicyConfig value) { - if (desiredPodSecurityPolicyConfigBuilder_ == null) { - if (desiredPodSecurityPolicyConfig_ != null) { - desiredPodSecurityPolicyConfig_ = - com.google.container.v1beta1.PodSecurityPolicyConfig.newBuilder(desiredPodSecurityPolicyConfig_).mergeFrom(value).buildPartial(); - } else { - desiredPodSecurityPolicyConfig_ = value; - } - onChanged(); - } else { - desiredPodSecurityPolicyConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The desired configuration options for the PodSecurityPolicy feature.
-     * 
- * - * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; - */ - public Builder clearDesiredPodSecurityPolicyConfig() { - if (desiredPodSecurityPolicyConfigBuilder_ == null) { - desiredPodSecurityPolicyConfig_ = null; - onChanged(); - } else { - desiredPodSecurityPolicyConfig_ = null; - desiredPodSecurityPolicyConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * The desired configuration options for the PodSecurityPolicy feature.
-     * 
- * - * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; - */ - public com.google.container.v1beta1.PodSecurityPolicyConfig.Builder getDesiredPodSecurityPolicyConfigBuilder() { - - onChanged(); - return getDesiredPodSecurityPolicyConfigFieldBuilder().getBuilder(); - } - /** - *
-     * The desired configuration options for the PodSecurityPolicy feature.
-     * 
- * - * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; - */ - public com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder getDesiredPodSecurityPolicyConfigOrBuilder() { - if (desiredPodSecurityPolicyConfigBuilder_ != null) { - return desiredPodSecurityPolicyConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredPodSecurityPolicyConfig_ == null ? - com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance() : desiredPodSecurityPolicyConfig_; - } - } - /** - *
-     * The desired configuration options for the PodSecurityPolicy feature.
-     * 
- * - * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.PodSecurityPolicyConfig, com.google.container.v1beta1.PodSecurityPolicyConfig.Builder, com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder> - getDesiredPodSecurityPolicyConfigFieldBuilder() { - if (desiredPodSecurityPolicyConfigBuilder_ == null) { - desiredPodSecurityPolicyConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.PodSecurityPolicyConfig, com.google.container.v1beta1.PodSecurityPolicyConfig.Builder, com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder>( - getDesiredPodSecurityPolicyConfig(), - getParentForChildren(), - isClean()); - desiredPodSecurityPolicyConfig_ = null; - } - return desiredPodSecurityPolicyConfigBuilder_; - } - - private com.google.container.v1beta1.ClusterAutoscaling desiredClusterAutoscaling_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ClusterAutoscaling, com.google.container.v1beta1.ClusterAutoscaling.Builder, com.google.container.v1beta1.ClusterAutoscalingOrBuilder> desiredClusterAutoscalingBuilder_; - /** - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; - * @return Whether the desiredClusterAutoscaling field is set. - */ - public boolean hasDesiredClusterAutoscaling() { - return desiredClusterAutoscalingBuilder_ != null || desiredClusterAutoscaling_ != null; - } - /** - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; - * @return The desiredClusterAutoscaling. - */ - public com.google.container.v1beta1.ClusterAutoscaling getDesiredClusterAutoscaling() { - if (desiredClusterAutoscalingBuilder_ == null) { - return desiredClusterAutoscaling_ == null ? com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance() : desiredClusterAutoscaling_; - } else { - return desiredClusterAutoscalingBuilder_.getMessage(); - } - } - /** - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; - */ - public Builder setDesiredClusterAutoscaling(com.google.container.v1beta1.ClusterAutoscaling value) { - if (desiredClusterAutoscalingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredClusterAutoscaling_ = value; - onChanged(); - } else { - desiredClusterAutoscalingBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; - */ - public Builder setDesiredClusterAutoscaling( - com.google.container.v1beta1.ClusterAutoscaling.Builder builderForValue) { - if (desiredClusterAutoscalingBuilder_ == null) { - desiredClusterAutoscaling_ = builderForValue.build(); - onChanged(); - } else { - desiredClusterAutoscalingBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; - */ - public Builder mergeDesiredClusterAutoscaling(com.google.container.v1beta1.ClusterAutoscaling value) { - if (desiredClusterAutoscalingBuilder_ == null) { - if (desiredClusterAutoscaling_ != null) { - desiredClusterAutoscaling_ = - com.google.container.v1beta1.ClusterAutoscaling.newBuilder(desiredClusterAutoscaling_).mergeFrom(value).buildPartial(); - } else { - desiredClusterAutoscaling_ = value; - } - onChanged(); - } else { - desiredClusterAutoscalingBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; - */ - public Builder clearDesiredClusterAutoscaling() { - if (desiredClusterAutoscalingBuilder_ == null) { - desiredClusterAutoscaling_ = null; - onChanged(); - } else { - desiredClusterAutoscaling_ = null; - desiredClusterAutoscalingBuilder_ = null; - } - - return this; - } - /** - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; - */ - public com.google.container.v1beta1.ClusterAutoscaling.Builder getDesiredClusterAutoscalingBuilder() { - - onChanged(); - return getDesiredClusterAutoscalingFieldBuilder().getBuilder(); - } - /** - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; - */ - public com.google.container.v1beta1.ClusterAutoscalingOrBuilder getDesiredClusterAutoscalingOrBuilder() { - if (desiredClusterAutoscalingBuilder_ != null) { - return desiredClusterAutoscalingBuilder_.getMessageOrBuilder(); - } else { - return desiredClusterAutoscaling_ == null ? - com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance() : desiredClusterAutoscaling_; - } - } - /** - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ClusterAutoscaling, com.google.container.v1beta1.ClusterAutoscaling.Builder, com.google.container.v1beta1.ClusterAutoscalingOrBuilder> - getDesiredClusterAutoscalingFieldBuilder() { - if (desiredClusterAutoscalingBuilder_ == null) { - desiredClusterAutoscalingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ClusterAutoscaling, com.google.container.v1beta1.ClusterAutoscaling.Builder, com.google.container.v1beta1.ClusterAutoscalingOrBuilder>( - getDesiredClusterAutoscaling(), - getParentForChildren(), - isClean()); - desiredClusterAutoscaling_ = null; - } - return desiredClusterAutoscalingBuilder_; - } - - private com.google.container.v1beta1.BinaryAuthorization desiredBinaryAuthorization_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.BinaryAuthorization, com.google.container.v1beta1.BinaryAuthorization.Builder, com.google.container.v1beta1.BinaryAuthorizationOrBuilder> desiredBinaryAuthorizationBuilder_; - /** - *
-     * The desired configuration options for the Binary Authorization feature.
-     * 
- * - * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; - * @return Whether the desiredBinaryAuthorization field is set. - */ - public boolean hasDesiredBinaryAuthorization() { - return desiredBinaryAuthorizationBuilder_ != null || desiredBinaryAuthorization_ != null; - } - /** - *
-     * The desired configuration options for the Binary Authorization feature.
-     * 
- * - * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; - * @return The desiredBinaryAuthorization. - */ - public com.google.container.v1beta1.BinaryAuthorization getDesiredBinaryAuthorization() { - if (desiredBinaryAuthorizationBuilder_ == null) { - return desiredBinaryAuthorization_ == null ? com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance() : desiredBinaryAuthorization_; - } else { - return desiredBinaryAuthorizationBuilder_.getMessage(); - } - } - /** - *
-     * The desired configuration options for the Binary Authorization feature.
-     * 
- * - * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; - */ - public Builder setDesiredBinaryAuthorization(com.google.container.v1beta1.BinaryAuthorization value) { - if (desiredBinaryAuthorizationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredBinaryAuthorization_ = value; - onChanged(); - } else { - desiredBinaryAuthorizationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The desired configuration options for the Binary Authorization feature.
-     * 
- * - * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; - */ - public Builder setDesiredBinaryAuthorization( - com.google.container.v1beta1.BinaryAuthorization.Builder builderForValue) { - if (desiredBinaryAuthorizationBuilder_ == null) { - desiredBinaryAuthorization_ = builderForValue.build(); - onChanged(); - } else { - desiredBinaryAuthorizationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The desired configuration options for the Binary Authorization feature.
-     * 
- * - * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; - */ - public Builder mergeDesiredBinaryAuthorization(com.google.container.v1beta1.BinaryAuthorization value) { - if (desiredBinaryAuthorizationBuilder_ == null) { - if (desiredBinaryAuthorization_ != null) { - desiredBinaryAuthorization_ = - com.google.container.v1beta1.BinaryAuthorization.newBuilder(desiredBinaryAuthorization_).mergeFrom(value).buildPartial(); - } else { - desiredBinaryAuthorization_ = value; - } - onChanged(); - } else { - desiredBinaryAuthorizationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The desired configuration options for the Binary Authorization feature.
-     * 
- * - * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; - */ - public Builder clearDesiredBinaryAuthorization() { - if (desiredBinaryAuthorizationBuilder_ == null) { - desiredBinaryAuthorization_ = null; - onChanged(); - } else { - desiredBinaryAuthorization_ = null; - desiredBinaryAuthorizationBuilder_ = null; - } - - return this; - } - /** - *
-     * The desired configuration options for the Binary Authorization feature.
-     * 
- * - * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; - */ - public com.google.container.v1beta1.BinaryAuthorization.Builder getDesiredBinaryAuthorizationBuilder() { - - onChanged(); - return getDesiredBinaryAuthorizationFieldBuilder().getBuilder(); - } - /** - *
-     * The desired configuration options for the Binary Authorization feature.
-     * 
- * - * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; - */ - public com.google.container.v1beta1.BinaryAuthorizationOrBuilder getDesiredBinaryAuthorizationOrBuilder() { - if (desiredBinaryAuthorizationBuilder_ != null) { - return desiredBinaryAuthorizationBuilder_.getMessageOrBuilder(); - } else { - return desiredBinaryAuthorization_ == null ? - com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance() : desiredBinaryAuthorization_; - } - } - /** - *
-     * The desired configuration options for the Binary Authorization feature.
-     * 
- * - * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.BinaryAuthorization, com.google.container.v1beta1.BinaryAuthorization.Builder, com.google.container.v1beta1.BinaryAuthorizationOrBuilder> - getDesiredBinaryAuthorizationFieldBuilder() { - if (desiredBinaryAuthorizationBuilder_ == null) { - desiredBinaryAuthorizationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.BinaryAuthorization, com.google.container.v1beta1.BinaryAuthorization.Builder, com.google.container.v1beta1.BinaryAuthorizationOrBuilder>( - getDesiredBinaryAuthorization(), - getParentForChildren(), - isClean()); - desiredBinaryAuthorization_ = null; - } - return desiredBinaryAuthorizationBuilder_; - } - - private java.lang.Object desiredLoggingService_ = ""; - /** - *
-     * The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string desired_logging_service = 19; - * @return The desiredLoggingService. - */ - public java.lang.String getDesiredLoggingService() { - java.lang.Object ref = desiredLoggingService_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - desiredLoggingService_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string desired_logging_service = 19; - * @return The bytes for desiredLoggingService. - */ - public com.google.protobuf.ByteString - getDesiredLoggingServiceBytes() { - java.lang.Object ref = desiredLoggingService_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - desiredLoggingService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string desired_logging_service = 19; - * @param value The desiredLoggingService to set. - * @return This builder for chaining. - */ - public Builder setDesiredLoggingService( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - desiredLoggingService_ = value; - onChanged(); - return this; - } - /** - *
-     * The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string desired_logging_service = 19; - * @return This builder for chaining. - */ - public Builder clearDesiredLoggingService() { - - desiredLoggingService_ = getDefaultInstance().getDesiredLoggingService(); - onChanged(); - return this; - } - /** - *
-     * The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string desired_logging_service = 19; - * @param value The bytes for desiredLoggingService to set. - * @return This builder for chaining. - */ - public Builder setDesiredLoggingServiceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - desiredLoggingService_ = value; - onChanged(); - return this; - } - - private com.google.container.v1beta1.ResourceUsageExportConfig desiredResourceUsageExportConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ResourceUsageExportConfig, com.google.container.v1beta1.ResourceUsageExportConfig.Builder, com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder> desiredResourceUsageExportConfigBuilder_; - /** - *
-     * The desired configuration for exporting resource usage.
-     * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * @return Whether the desiredResourceUsageExportConfig field is set. - */ - public boolean hasDesiredResourceUsageExportConfig() { - return desiredResourceUsageExportConfigBuilder_ != null || desiredResourceUsageExportConfig_ != null; - } - /** - *
-     * The desired configuration for exporting resource usage.
-     * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * @return The desiredResourceUsageExportConfig. - */ - public com.google.container.v1beta1.ResourceUsageExportConfig getDesiredResourceUsageExportConfig() { - if (desiredResourceUsageExportConfigBuilder_ == null) { - return desiredResourceUsageExportConfig_ == null ? com.google.container.v1beta1.ResourceUsageExportConfig.getDefaultInstance() : desiredResourceUsageExportConfig_; - } else { - return desiredResourceUsageExportConfigBuilder_.getMessage(); - } - } - /** - *
-     * The desired configuration for exporting resource usage.
-     * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - */ - public Builder setDesiredResourceUsageExportConfig(com.google.container.v1beta1.ResourceUsageExportConfig value) { - if (desiredResourceUsageExportConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredResourceUsageExportConfig_ = value; - onChanged(); - } else { - desiredResourceUsageExportConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The desired configuration for exporting resource usage.
-     * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - */ - public Builder setDesiredResourceUsageExportConfig( - com.google.container.v1beta1.ResourceUsageExportConfig.Builder builderForValue) { - if (desiredResourceUsageExportConfigBuilder_ == null) { - desiredResourceUsageExportConfig_ = builderForValue.build(); - onChanged(); - } else { - desiredResourceUsageExportConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The desired configuration for exporting resource usage.
-     * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - */ - public Builder mergeDesiredResourceUsageExportConfig(com.google.container.v1beta1.ResourceUsageExportConfig value) { - if (desiredResourceUsageExportConfigBuilder_ == null) { - if (desiredResourceUsageExportConfig_ != null) { - desiredResourceUsageExportConfig_ = - com.google.container.v1beta1.ResourceUsageExportConfig.newBuilder(desiredResourceUsageExportConfig_).mergeFrom(value).buildPartial(); - } else { - desiredResourceUsageExportConfig_ = value; - } - onChanged(); - } else { - desiredResourceUsageExportConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The desired configuration for exporting resource usage.
-     * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - */ - public Builder clearDesiredResourceUsageExportConfig() { - if (desiredResourceUsageExportConfigBuilder_ == null) { - desiredResourceUsageExportConfig_ = null; - onChanged(); - } else { - desiredResourceUsageExportConfig_ = null; - desiredResourceUsageExportConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * The desired configuration for exporting resource usage.
-     * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - */ - public com.google.container.v1beta1.ResourceUsageExportConfig.Builder getDesiredResourceUsageExportConfigBuilder() { - - onChanged(); - return getDesiredResourceUsageExportConfigFieldBuilder().getBuilder(); - } - /** - *
-     * The desired configuration for exporting resource usage.
-     * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - */ - public com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder getDesiredResourceUsageExportConfigOrBuilder() { - if (desiredResourceUsageExportConfigBuilder_ != null) { - return desiredResourceUsageExportConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredResourceUsageExportConfig_ == null ? - com.google.container.v1beta1.ResourceUsageExportConfig.getDefaultInstance() : desiredResourceUsageExportConfig_; - } - } - /** - *
-     * The desired configuration for exporting resource usage.
-     * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ResourceUsageExportConfig, com.google.container.v1beta1.ResourceUsageExportConfig.Builder, com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder> - getDesiredResourceUsageExportConfigFieldBuilder() { - if (desiredResourceUsageExportConfigBuilder_ == null) { - desiredResourceUsageExportConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ResourceUsageExportConfig, com.google.container.v1beta1.ResourceUsageExportConfig.Builder, com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder>( - getDesiredResourceUsageExportConfig(), - getParentForChildren(), - isClean()); - desiredResourceUsageExportConfig_ = null; - } - return desiredResourceUsageExportConfigBuilder_; - } - - private com.google.container.v1beta1.VerticalPodAutoscaling desiredVerticalPodAutoscaling_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.VerticalPodAutoscaling, com.google.container.v1beta1.VerticalPodAutoscaling.Builder, com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder> desiredVerticalPodAutoscalingBuilder_; - /** - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * @return Whether the desiredVerticalPodAutoscaling field is set. - */ - public boolean hasDesiredVerticalPodAutoscaling() { - return desiredVerticalPodAutoscalingBuilder_ != null || desiredVerticalPodAutoscaling_ != null; - } - /** - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * @return The desiredVerticalPodAutoscaling. - */ - public com.google.container.v1beta1.VerticalPodAutoscaling getDesiredVerticalPodAutoscaling() { - if (desiredVerticalPodAutoscalingBuilder_ == null) { - return desiredVerticalPodAutoscaling_ == null ? com.google.container.v1beta1.VerticalPodAutoscaling.getDefaultInstance() : desiredVerticalPodAutoscaling_; - } else { - return desiredVerticalPodAutoscalingBuilder_.getMessage(); - } - } - /** - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - */ - public Builder setDesiredVerticalPodAutoscaling(com.google.container.v1beta1.VerticalPodAutoscaling value) { - if (desiredVerticalPodAutoscalingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredVerticalPodAutoscaling_ = value; - onChanged(); - } else { - desiredVerticalPodAutoscalingBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - */ - public Builder setDesiredVerticalPodAutoscaling( - com.google.container.v1beta1.VerticalPodAutoscaling.Builder builderForValue) { - if (desiredVerticalPodAutoscalingBuilder_ == null) { - desiredVerticalPodAutoscaling_ = builderForValue.build(); - onChanged(); - } else { - desiredVerticalPodAutoscalingBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - */ - public Builder mergeDesiredVerticalPodAutoscaling(com.google.container.v1beta1.VerticalPodAutoscaling value) { - if (desiredVerticalPodAutoscalingBuilder_ == null) { - if (desiredVerticalPodAutoscaling_ != null) { - desiredVerticalPodAutoscaling_ = - com.google.container.v1beta1.VerticalPodAutoscaling.newBuilder(desiredVerticalPodAutoscaling_).mergeFrom(value).buildPartial(); - } else { - desiredVerticalPodAutoscaling_ = value; - } - onChanged(); - } else { - desiredVerticalPodAutoscalingBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - */ - public Builder clearDesiredVerticalPodAutoscaling() { - if (desiredVerticalPodAutoscalingBuilder_ == null) { - desiredVerticalPodAutoscaling_ = null; - onChanged(); - } else { - desiredVerticalPodAutoscaling_ = null; - desiredVerticalPodAutoscalingBuilder_ = null; - } - - return this; - } - /** - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - */ - public com.google.container.v1beta1.VerticalPodAutoscaling.Builder getDesiredVerticalPodAutoscalingBuilder() { - - onChanged(); - return getDesiredVerticalPodAutoscalingFieldBuilder().getBuilder(); - } - /** - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - */ - public com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder getDesiredVerticalPodAutoscalingOrBuilder() { - if (desiredVerticalPodAutoscalingBuilder_ != null) { - return desiredVerticalPodAutoscalingBuilder_.getMessageOrBuilder(); - } else { - return desiredVerticalPodAutoscaling_ == null ? - com.google.container.v1beta1.VerticalPodAutoscaling.getDefaultInstance() : desiredVerticalPodAutoscaling_; - } - } - /** - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.VerticalPodAutoscaling, com.google.container.v1beta1.VerticalPodAutoscaling.Builder, com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder> - getDesiredVerticalPodAutoscalingFieldBuilder() { - if (desiredVerticalPodAutoscalingBuilder_ == null) { - desiredVerticalPodAutoscalingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.VerticalPodAutoscaling, com.google.container.v1beta1.VerticalPodAutoscaling.Builder, com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder>( - getDesiredVerticalPodAutoscaling(), - getParentForChildren(), - isClean()); - desiredVerticalPodAutoscaling_ = null; - } - return desiredVerticalPodAutoscalingBuilder_; - } - - private com.google.container.v1beta1.PrivateClusterConfig desiredPrivateClusterConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.PrivateClusterConfig, com.google.container.v1beta1.PrivateClusterConfig.Builder, com.google.container.v1beta1.PrivateClusterConfigOrBuilder> desiredPrivateClusterConfigBuilder_; - /** - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; - * @return Whether the desiredPrivateClusterConfig field is set. - */ - public boolean hasDesiredPrivateClusterConfig() { - return desiredPrivateClusterConfigBuilder_ != null || desiredPrivateClusterConfig_ != null; - } - /** - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; - * @return The desiredPrivateClusterConfig. - */ - public com.google.container.v1beta1.PrivateClusterConfig getDesiredPrivateClusterConfig() { - if (desiredPrivateClusterConfigBuilder_ == null) { - return desiredPrivateClusterConfig_ == null ? com.google.container.v1beta1.PrivateClusterConfig.getDefaultInstance() : desiredPrivateClusterConfig_; - } else { - return desiredPrivateClusterConfigBuilder_.getMessage(); - } - } - /** - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - public Builder setDesiredPrivateClusterConfig(com.google.container.v1beta1.PrivateClusterConfig value) { - if (desiredPrivateClusterConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredPrivateClusterConfig_ = value; - onChanged(); - } else { - desiredPrivateClusterConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - public Builder setDesiredPrivateClusterConfig( - com.google.container.v1beta1.PrivateClusterConfig.Builder builderForValue) { - if (desiredPrivateClusterConfigBuilder_ == null) { - desiredPrivateClusterConfig_ = builderForValue.build(); - onChanged(); - } else { - desiredPrivateClusterConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - public Builder mergeDesiredPrivateClusterConfig(com.google.container.v1beta1.PrivateClusterConfig value) { - if (desiredPrivateClusterConfigBuilder_ == null) { - if (desiredPrivateClusterConfig_ != null) { - desiredPrivateClusterConfig_ = - com.google.container.v1beta1.PrivateClusterConfig.newBuilder(desiredPrivateClusterConfig_).mergeFrom(value).buildPartial(); - } else { - desiredPrivateClusterConfig_ = value; - } - onChanged(); - } else { - desiredPrivateClusterConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - public Builder clearDesiredPrivateClusterConfig() { - if (desiredPrivateClusterConfigBuilder_ == null) { - desiredPrivateClusterConfig_ = null; - onChanged(); - } else { - desiredPrivateClusterConfig_ = null; - desiredPrivateClusterConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - public com.google.container.v1beta1.PrivateClusterConfig.Builder getDesiredPrivateClusterConfigBuilder() { - - onChanged(); - return getDesiredPrivateClusterConfigFieldBuilder().getBuilder(); - } - /** - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - public com.google.container.v1beta1.PrivateClusterConfigOrBuilder getDesiredPrivateClusterConfigOrBuilder() { - if (desiredPrivateClusterConfigBuilder_ != null) { - return desiredPrivateClusterConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredPrivateClusterConfig_ == null ? - com.google.container.v1beta1.PrivateClusterConfig.getDefaultInstance() : desiredPrivateClusterConfig_; - } - } - /** - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.PrivateClusterConfig, com.google.container.v1beta1.PrivateClusterConfig.Builder, com.google.container.v1beta1.PrivateClusterConfigOrBuilder> - getDesiredPrivateClusterConfigFieldBuilder() { - if (desiredPrivateClusterConfigBuilder_ == null) { - desiredPrivateClusterConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.PrivateClusterConfig, com.google.container.v1beta1.PrivateClusterConfig.Builder, com.google.container.v1beta1.PrivateClusterConfigOrBuilder>( - getDesiredPrivateClusterConfig(), - getParentForChildren(), - isClean()); - desiredPrivateClusterConfig_ = null; - } - return desiredPrivateClusterConfigBuilder_; - } - - private com.google.container.v1beta1.IntraNodeVisibilityConfig desiredIntraNodeVisibilityConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.IntraNodeVisibilityConfig, com.google.container.v1beta1.IntraNodeVisibilityConfig.Builder, com.google.container.v1beta1.IntraNodeVisibilityConfigOrBuilder> desiredIntraNodeVisibilityConfigBuilder_; - /** - *
-     * The desired config of Intra-node visibility.
-     * 
- * - * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * @return Whether the desiredIntraNodeVisibilityConfig field is set. - */ - public boolean hasDesiredIntraNodeVisibilityConfig() { - return desiredIntraNodeVisibilityConfigBuilder_ != null || desiredIntraNodeVisibilityConfig_ != null; - } - /** - *
-     * The desired config of Intra-node visibility.
-     * 
- * - * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * @return The desiredIntraNodeVisibilityConfig. - */ - public com.google.container.v1beta1.IntraNodeVisibilityConfig getDesiredIntraNodeVisibilityConfig() { - if (desiredIntraNodeVisibilityConfigBuilder_ == null) { - return desiredIntraNodeVisibilityConfig_ == null ? com.google.container.v1beta1.IntraNodeVisibilityConfig.getDefaultInstance() : desiredIntraNodeVisibilityConfig_; - } else { - return desiredIntraNodeVisibilityConfigBuilder_.getMessage(); - } - } - /** - *
-     * The desired config of Intra-node visibility.
-     * 
- * - * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - */ - public Builder setDesiredIntraNodeVisibilityConfig(com.google.container.v1beta1.IntraNodeVisibilityConfig value) { - if (desiredIntraNodeVisibilityConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredIntraNodeVisibilityConfig_ = value; - onChanged(); - } else { - desiredIntraNodeVisibilityConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The desired config of Intra-node visibility.
-     * 
- * - * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - */ - public Builder setDesiredIntraNodeVisibilityConfig( - com.google.container.v1beta1.IntraNodeVisibilityConfig.Builder builderForValue) { - if (desiredIntraNodeVisibilityConfigBuilder_ == null) { - desiredIntraNodeVisibilityConfig_ = builderForValue.build(); - onChanged(); - } else { - desiredIntraNodeVisibilityConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The desired config of Intra-node visibility.
-     * 
- * - * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - */ - public Builder mergeDesiredIntraNodeVisibilityConfig(com.google.container.v1beta1.IntraNodeVisibilityConfig value) { - if (desiredIntraNodeVisibilityConfigBuilder_ == null) { - if (desiredIntraNodeVisibilityConfig_ != null) { - desiredIntraNodeVisibilityConfig_ = - com.google.container.v1beta1.IntraNodeVisibilityConfig.newBuilder(desiredIntraNodeVisibilityConfig_).mergeFrom(value).buildPartial(); - } else { - desiredIntraNodeVisibilityConfig_ = value; - } - onChanged(); - } else { - desiredIntraNodeVisibilityConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The desired config of Intra-node visibility.
-     * 
- * - * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - */ - public Builder clearDesiredIntraNodeVisibilityConfig() { - if (desiredIntraNodeVisibilityConfigBuilder_ == null) { - desiredIntraNodeVisibilityConfig_ = null; - onChanged(); - } else { - desiredIntraNodeVisibilityConfig_ = null; - desiredIntraNodeVisibilityConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * The desired config of Intra-node visibility.
-     * 
- * - * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - */ - public com.google.container.v1beta1.IntraNodeVisibilityConfig.Builder getDesiredIntraNodeVisibilityConfigBuilder() { - - onChanged(); - return getDesiredIntraNodeVisibilityConfigFieldBuilder().getBuilder(); - } - /** - *
-     * The desired config of Intra-node visibility.
-     * 
- * - * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - */ - public com.google.container.v1beta1.IntraNodeVisibilityConfigOrBuilder getDesiredIntraNodeVisibilityConfigOrBuilder() { - if (desiredIntraNodeVisibilityConfigBuilder_ != null) { - return desiredIntraNodeVisibilityConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredIntraNodeVisibilityConfig_ == null ? - com.google.container.v1beta1.IntraNodeVisibilityConfig.getDefaultInstance() : desiredIntraNodeVisibilityConfig_; - } - } - /** - *
-     * The desired config of Intra-node visibility.
-     * 
- * - * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.IntraNodeVisibilityConfig, com.google.container.v1beta1.IntraNodeVisibilityConfig.Builder, com.google.container.v1beta1.IntraNodeVisibilityConfigOrBuilder> - getDesiredIntraNodeVisibilityConfigFieldBuilder() { - if (desiredIntraNodeVisibilityConfigBuilder_ == null) { - desiredIntraNodeVisibilityConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.IntraNodeVisibilityConfig, com.google.container.v1beta1.IntraNodeVisibilityConfig.Builder, com.google.container.v1beta1.IntraNodeVisibilityConfigOrBuilder>( - getDesiredIntraNodeVisibilityConfig(), - getParentForChildren(), - isClean()); - desiredIntraNodeVisibilityConfig_ = null; - } - return desiredIntraNodeVisibilityConfigBuilder_; - } - - private com.google.container.v1beta1.DefaultSnatStatus desiredDefaultSnatStatus_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.DefaultSnatStatus, com.google.container.v1beta1.DefaultSnatStatus.Builder, com.google.container.v1beta1.DefaultSnatStatusOrBuilder> desiredDefaultSnatStatusBuilder_; - /** - *
-     * The desired status of whether to disable default sNAT for this cluster.
-     * 
- * - * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; - * @return Whether the desiredDefaultSnatStatus field is set. - */ - public boolean hasDesiredDefaultSnatStatus() { - return desiredDefaultSnatStatusBuilder_ != null || desiredDefaultSnatStatus_ != null; - } - /** - *
-     * The desired status of whether to disable default sNAT for this cluster.
-     * 
- * - * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; - * @return The desiredDefaultSnatStatus. - */ - public com.google.container.v1beta1.DefaultSnatStatus getDesiredDefaultSnatStatus() { - if (desiredDefaultSnatStatusBuilder_ == null) { - return desiredDefaultSnatStatus_ == null ? com.google.container.v1beta1.DefaultSnatStatus.getDefaultInstance() : desiredDefaultSnatStatus_; - } else { - return desiredDefaultSnatStatusBuilder_.getMessage(); - } - } - /** - *
-     * The desired status of whether to disable default sNAT for this cluster.
-     * 
- * - * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; - */ - public Builder setDesiredDefaultSnatStatus(com.google.container.v1beta1.DefaultSnatStatus value) { - if (desiredDefaultSnatStatusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredDefaultSnatStatus_ = value; - onChanged(); - } else { - desiredDefaultSnatStatusBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The desired status of whether to disable default sNAT for this cluster.
-     * 
- * - * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; - */ - public Builder setDesiredDefaultSnatStatus( - com.google.container.v1beta1.DefaultSnatStatus.Builder builderForValue) { - if (desiredDefaultSnatStatusBuilder_ == null) { - desiredDefaultSnatStatus_ = builderForValue.build(); - onChanged(); - } else { - desiredDefaultSnatStatusBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The desired status of whether to disable default sNAT for this cluster.
-     * 
- * - * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; - */ - public Builder mergeDesiredDefaultSnatStatus(com.google.container.v1beta1.DefaultSnatStatus value) { - if (desiredDefaultSnatStatusBuilder_ == null) { - if (desiredDefaultSnatStatus_ != null) { - desiredDefaultSnatStatus_ = - com.google.container.v1beta1.DefaultSnatStatus.newBuilder(desiredDefaultSnatStatus_).mergeFrom(value).buildPartial(); - } else { - desiredDefaultSnatStatus_ = value; - } - onChanged(); - } else { - desiredDefaultSnatStatusBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The desired status of whether to disable default sNAT for this cluster.
-     * 
- * - * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; - */ - public Builder clearDesiredDefaultSnatStatus() { - if (desiredDefaultSnatStatusBuilder_ == null) { - desiredDefaultSnatStatus_ = null; - onChanged(); - } else { - desiredDefaultSnatStatus_ = null; - desiredDefaultSnatStatusBuilder_ = null; - } - - return this; - } - /** - *
-     * The desired status of whether to disable default sNAT for this cluster.
-     * 
- * - * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; - */ - public com.google.container.v1beta1.DefaultSnatStatus.Builder getDesiredDefaultSnatStatusBuilder() { - - onChanged(); - return getDesiredDefaultSnatStatusFieldBuilder().getBuilder(); - } - /** - *
-     * The desired status of whether to disable default sNAT for this cluster.
-     * 
- * - * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; - */ - public com.google.container.v1beta1.DefaultSnatStatusOrBuilder getDesiredDefaultSnatStatusOrBuilder() { - if (desiredDefaultSnatStatusBuilder_ != null) { - return desiredDefaultSnatStatusBuilder_.getMessageOrBuilder(); - } else { - return desiredDefaultSnatStatus_ == null ? - com.google.container.v1beta1.DefaultSnatStatus.getDefaultInstance() : desiredDefaultSnatStatus_; - } - } - /** - *
-     * The desired status of whether to disable default sNAT for this cluster.
-     * 
- * - * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.DefaultSnatStatus, com.google.container.v1beta1.DefaultSnatStatus.Builder, com.google.container.v1beta1.DefaultSnatStatusOrBuilder> - getDesiredDefaultSnatStatusFieldBuilder() { - if (desiredDefaultSnatStatusBuilder_ == null) { - desiredDefaultSnatStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.DefaultSnatStatus, com.google.container.v1beta1.DefaultSnatStatus.Builder, com.google.container.v1beta1.DefaultSnatStatusOrBuilder>( - getDesiredDefaultSnatStatus(), - getParentForChildren(), - isClean()); - desiredDefaultSnatStatus_ = null; - } - return desiredDefaultSnatStatusBuilder_; - } - - private com.google.container.v1beta1.ClusterTelemetry desiredClusterTelemetry_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ClusterTelemetry, com.google.container.v1beta1.ClusterTelemetry.Builder, com.google.container.v1beta1.ClusterTelemetryOrBuilder> desiredClusterTelemetryBuilder_; - /** - *
-     * The desired telemetry integration for the cluster.
-     * 
- * - * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; - * @return Whether the desiredClusterTelemetry field is set. - */ - public boolean hasDesiredClusterTelemetry() { - return desiredClusterTelemetryBuilder_ != null || desiredClusterTelemetry_ != null; - } - /** - *
-     * The desired telemetry integration for the cluster.
-     * 
- * - * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; - * @return The desiredClusterTelemetry. - */ - public com.google.container.v1beta1.ClusterTelemetry getDesiredClusterTelemetry() { - if (desiredClusterTelemetryBuilder_ == null) { - return desiredClusterTelemetry_ == null ? com.google.container.v1beta1.ClusterTelemetry.getDefaultInstance() : desiredClusterTelemetry_; - } else { - return desiredClusterTelemetryBuilder_.getMessage(); - } - } - /** - *
-     * The desired telemetry integration for the cluster.
-     * 
- * - * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; - */ - public Builder setDesiredClusterTelemetry(com.google.container.v1beta1.ClusterTelemetry value) { - if (desiredClusterTelemetryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredClusterTelemetry_ = value; - onChanged(); - } else { - desiredClusterTelemetryBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The desired telemetry integration for the cluster.
-     * 
- * - * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; - */ - public Builder setDesiredClusterTelemetry( - com.google.container.v1beta1.ClusterTelemetry.Builder builderForValue) { - if (desiredClusterTelemetryBuilder_ == null) { - desiredClusterTelemetry_ = builderForValue.build(); - onChanged(); - } else { - desiredClusterTelemetryBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The desired telemetry integration for the cluster.
-     * 
- * - * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; - */ - public Builder mergeDesiredClusterTelemetry(com.google.container.v1beta1.ClusterTelemetry value) { - if (desiredClusterTelemetryBuilder_ == null) { - if (desiredClusterTelemetry_ != null) { - desiredClusterTelemetry_ = - com.google.container.v1beta1.ClusterTelemetry.newBuilder(desiredClusterTelemetry_).mergeFrom(value).buildPartial(); - } else { - desiredClusterTelemetry_ = value; - } - onChanged(); - } else { - desiredClusterTelemetryBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The desired telemetry integration for the cluster.
-     * 
- * - * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; - */ - public Builder clearDesiredClusterTelemetry() { - if (desiredClusterTelemetryBuilder_ == null) { - desiredClusterTelemetry_ = null; - onChanged(); - } else { - desiredClusterTelemetry_ = null; - desiredClusterTelemetryBuilder_ = null; - } - - return this; - } - /** - *
-     * The desired telemetry integration for the cluster.
-     * 
- * - * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; - */ - public com.google.container.v1beta1.ClusterTelemetry.Builder getDesiredClusterTelemetryBuilder() { - - onChanged(); - return getDesiredClusterTelemetryFieldBuilder().getBuilder(); - } - /** - *
-     * The desired telemetry integration for the cluster.
-     * 
- * - * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; - */ - public com.google.container.v1beta1.ClusterTelemetryOrBuilder getDesiredClusterTelemetryOrBuilder() { - if (desiredClusterTelemetryBuilder_ != null) { - return desiredClusterTelemetryBuilder_.getMessageOrBuilder(); - } else { - return desiredClusterTelemetry_ == null ? - com.google.container.v1beta1.ClusterTelemetry.getDefaultInstance() : desiredClusterTelemetry_; - } - } - /** - *
-     * The desired telemetry integration for the cluster.
-     * 
- * - * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ClusterTelemetry, com.google.container.v1beta1.ClusterTelemetry.Builder, com.google.container.v1beta1.ClusterTelemetryOrBuilder> - getDesiredClusterTelemetryFieldBuilder() { - if (desiredClusterTelemetryBuilder_ == null) { - desiredClusterTelemetryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ClusterTelemetry, com.google.container.v1beta1.ClusterTelemetry.Builder, com.google.container.v1beta1.ClusterTelemetryOrBuilder>( - getDesiredClusterTelemetry(), - getParentForChildren(), - isClean()); - desiredClusterTelemetry_ = null; - } - return desiredClusterTelemetryBuilder_; - } - - private com.google.container.v1beta1.ReleaseChannel desiredReleaseChannel_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ReleaseChannel, com.google.container.v1beta1.ReleaseChannel.Builder, com.google.container.v1beta1.ReleaseChannelOrBuilder> desiredReleaseChannelBuilder_; - /** - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; - * @return Whether the desiredReleaseChannel field is set. - */ - public boolean hasDesiredReleaseChannel() { - return desiredReleaseChannelBuilder_ != null || desiredReleaseChannel_ != null; - } - /** - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; - * @return The desiredReleaseChannel. - */ - public com.google.container.v1beta1.ReleaseChannel getDesiredReleaseChannel() { - if (desiredReleaseChannelBuilder_ == null) { - return desiredReleaseChannel_ == null ? com.google.container.v1beta1.ReleaseChannel.getDefaultInstance() : desiredReleaseChannel_; - } else { - return desiredReleaseChannelBuilder_.getMessage(); - } - } - /** - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; - */ - public Builder setDesiredReleaseChannel(com.google.container.v1beta1.ReleaseChannel value) { - if (desiredReleaseChannelBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredReleaseChannel_ = value; - onChanged(); - } else { - desiredReleaseChannelBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; - */ - public Builder setDesiredReleaseChannel( - com.google.container.v1beta1.ReleaseChannel.Builder builderForValue) { - if (desiredReleaseChannelBuilder_ == null) { - desiredReleaseChannel_ = builderForValue.build(); - onChanged(); - } else { - desiredReleaseChannelBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; - */ - public Builder mergeDesiredReleaseChannel(com.google.container.v1beta1.ReleaseChannel value) { - if (desiredReleaseChannelBuilder_ == null) { - if (desiredReleaseChannel_ != null) { - desiredReleaseChannel_ = - com.google.container.v1beta1.ReleaseChannel.newBuilder(desiredReleaseChannel_).mergeFrom(value).buildPartial(); - } else { - desiredReleaseChannel_ = value; - } - onChanged(); - } else { - desiredReleaseChannelBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; - */ - public Builder clearDesiredReleaseChannel() { - if (desiredReleaseChannelBuilder_ == null) { - desiredReleaseChannel_ = null; - onChanged(); - } else { - desiredReleaseChannel_ = null; - desiredReleaseChannelBuilder_ = null; - } - - return this; - } - /** - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; - */ - public com.google.container.v1beta1.ReleaseChannel.Builder getDesiredReleaseChannelBuilder() { - - onChanged(); - return getDesiredReleaseChannelFieldBuilder().getBuilder(); - } - /** - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; - */ - public com.google.container.v1beta1.ReleaseChannelOrBuilder getDesiredReleaseChannelOrBuilder() { - if (desiredReleaseChannelBuilder_ != null) { - return desiredReleaseChannelBuilder_.getMessageOrBuilder(); - } else { - return desiredReleaseChannel_ == null ? - com.google.container.v1beta1.ReleaseChannel.getDefaultInstance() : desiredReleaseChannel_; - } - } - /** - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ReleaseChannel, com.google.container.v1beta1.ReleaseChannel.Builder, com.google.container.v1beta1.ReleaseChannelOrBuilder> - getDesiredReleaseChannelFieldBuilder() { - if (desiredReleaseChannelBuilder_ == null) { - desiredReleaseChannelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ReleaseChannel, com.google.container.v1beta1.ReleaseChannel.Builder, com.google.container.v1beta1.ReleaseChannelOrBuilder>( - getDesiredReleaseChannel(), - getParentForChildren(), - isClean()); - desiredReleaseChannel_ = null; - } - return desiredReleaseChannelBuilder_; - } - - private com.google.container.v1beta1.TpuConfig desiredTpuConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.TpuConfig, com.google.container.v1beta1.TpuConfig.Builder, com.google.container.v1beta1.TpuConfigOrBuilder> desiredTpuConfigBuilder_; - /** - *
-     * The desired Cloud TPU configuration.
-     * 
- * - * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; - * @return Whether the desiredTpuConfig field is set. - */ - public boolean hasDesiredTpuConfig() { - return desiredTpuConfigBuilder_ != null || desiredTpuConfig_ != null; - } - /** - *
-     * The desired Cloud TPU configuration.
-     * 
- * - * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; - * @return The desiredTpuConfig. - */ - public com.google.container.v1beta1.TpuConfig getDesiredTpuConfig() { - if (desiredTpuConfigBuilder_ == null) { - return desiredTpuConfig_ == null ? com.google.container.v1beta1.TpuConfig.getDefaultInstance() : desiredTpuConfig_; - } else { - return desiredTpuConfigBuilder_.getMessage(); - } - } - /** - *
-     * The desired Cloud TPU configuration.
-     * 
- * - * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; - */ - public Builder setDesiredTpuConfig(com.google.container.v1beta1.TpuConfig value) { - if (desiredTpuConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredTpuConfig_ = value; - onChanged(); - } else { - desiredTpuConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The desired Cloud TPU configuration.
-     * 
- * - * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; - */ - public Builder setDesiredTpuConfig( - com.google.container.v1beta1.TpuConfig.Builder builderForValue) { - if (desiredTpuConfigBuilder_ == null) { - desiredTpuConfig_ = builderForValue.build(); - onChanged(); - } else { - desiredTpuConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The desired Cloud TPU configuration.
-     * 
- * - * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; - */ - public Builder mergeDesiredTpuConfig(com.google.container.v1beta1.TpuConfig value) { - if (desiredTpuConfigBuilder_ == null) { - if (desiredTpuConfig_ != null) { - desiredTpuConfig_ = - com.google.container.v1beta1.TpuConfig.newBuilder(desiredTpuConfig_).mergeFrom(value).buildPartial(); - } else { - desiredTpuConfig_ = value; - } - onChanged(); - } else { - desiredTpuConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The desired Cloud TPU configuration.
-     * 
- * - * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; - */ - public Builder clearDesiredTpuConfig() { - if (desiredTpuConfigBuilder_ == null) { - desiredTpuConfig_ = null; - onChanged(); - } else { - desiredTpuConfig_ = null; - desiredTpuConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * The desired Cloud TPU configuration.
-     * 
- * - * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; - */ - public com.google.container.v1beta1.TpuConfig.Builder getDesiredTpuConfigBuilder() { - - onChanged(); - return getDesiredTpuConfigFieldBuilder().getBuilder(); - } - /** - *
-     * The desired Cloud TPU configuration.
-     * 
- * - * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; - */ - public com.google.container.v1beta1.TpuConfigOrBuilder getDesiredTpuConfigOrBuilder() { - if (desiredTpuConfigBuilder_ != null) { - return desiredTpuConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredTpuConfig_ == null ? - com.google.container.v1beta1.TpuConfig.getDefaultInstance() : desiredTpuConfig_; - } - } - /** - *
-     * The desired Cloud TPU configuration.
-     * 
- * - * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.TpuConfig, com.google.container.v1beta1.TpuConfig.Builder, com.google.container.v1beta1.TpuConfigOrBuilder> - getDesiredTpuConfigFieldBuilder() { - if (desiredTpuConfigBuilder_ == null) { - desiredTpuConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.TpuConfig, com.google.container.v1beta1.TpuConfig.Builder, com.google.container.v1beta1.TpuConfigOrBuilder>( - getDesiredTpuConfig(), - getParentForChildren(), - isClean()); - desiredTpuConfig_ = null; - } - return desiredTpuConfigBuilder_; - } - - private 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 desiredL4IlbSubsettingConfigBuilder_ != null || desiredL4IlbSubsettingConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - desiredL4IlbSubsettingConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - desiredL4IlbSubsettingConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (desiredL4IlbSubsettingConfig_ != null) { - desiredL4IlbSubsettingConfig_ = - com.google.container.v1beta1.ILBSubsettingConfig.newBuilder(desiredL4IlbSubsettingConfig_).mergeFrom(value).buildPartial(); - } else { - desiredL4IlbSubsettingConfig_ = value; - } - onChanged(); - } else { - desiredL4IlbSubsettingConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The desired L4 Internal Load Balancer Subsetting configuration.
-     * 
- * - * .google.container.v1beta1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - */ - public Builder clearDesiredL4IlbSubsettingConfig() { - if (desiredL4IlbSubsettingConfigBuilder_ == null) { - desiredL4IlbSubsettingConfig_ = null; - onChanged(); - } else { - desiredL4IlbSubsettingConfig_ = null; - desiredL4IlbSubsettingConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * The desired L4 Internal Load Balancer Subsetting configuration.
-     * 
- * - * .google.container.v1beta1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - */ - public com.google.container.v1beta1.ILBSubsettingConfig.Builder getDesiredL4IlbSubsettingConfigBuilder() { - - 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; - onChanged(); - return this; - } - /** - *
-     * The desired datapath provider for the cluster.
-     * 
- * - * .google.container.v1beta1.DatapathProvider desired_datapath_provider = 50; - * @return The desiredDatapathProvider. - */ - @java.lang.Override - public com.google.container.v1beta1.DatapathProvider getDesiredDatapathProvider() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.DatapathProvider result = com.google.container.v1beta1.DatapathProvider.valueOf(desiredDatapathProvider_); - return result == null ? com.google.container.v1beta1.DatapathProvider.UNRECOGNIZED : result; - } - /** - *
-     * The desired datapath provider for the cluster.
-     * 
- * - * .google.container.v1beta1.DatapathProvider desired_datapath_provider = 50; - * @param value The desiredDatapathProvider to set. - * @return This builder for chaining. - */ - public Builder setDesiredDatapathProvider(com.google.container.v1beta1.DatapathProvider value) { - if (value == null) { - throw new NullPointerException(); - } - - desiredDatapathProvider_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * The desired datapath provider for the cluster.
-     * 
- * - * .google.container.v1beta1.DatapathProvider desired_datapath_provider = 50; - * @return This builder for chaining. - */ - public Builder clearDesiredDatapathProvider() { - - desiredDatapathProvider_ = 0; - onChanged(); - return this; - } - - private 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; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.PrivateIPv6GoogleAccess result = com.google.container.v1beta1.PrivateIPv6GoogleAccess.valueOf(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(); - } - - 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() { - - 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 desiredNotificationConfigBuilder_ != null || desiredNotificationConfig_ != null; - } - /** - *
-     * The desired notification configuration.
-     * 
- * - * .google.container.v1beta1.NotificationConfig desired_notification_config = 55; - * @return The desiredNotificationConfig. - */ - public com.google.container.v1beta1.NotificationConfig getDesiredNotificationConfig() { - if (desiredNotificationConfigBuilder_ == null) { - return desiredNotificationConfig_ == null ? com.google.container.v1beta1.NotificationConfig.getDefaultInstance() : desiredNotificationConfig_; - } else { - return desiredNotificationConfigBuilder_.getMessage(); - } - } - /** - *
-     * The desired notification configuration.
-     * 
- * - * .google.container.v1beta1.NotificationConfig desired_notification_config = 55; - */ - public Builder setDesiredNotificationConfig(com.google.container.v1beta1.NotificationConfig value) { - if (desiredNotificationConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredNotificationConfig_ = value; - onChanged(); - } else { - desiredNotificationConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The desired notification configuration.
-     * 
- * - * .google.container.v1beta1.NotificationConfig desired_notification_config = 55; - */ - public Builder setDesiredNotificationConfig( - com.google.container.v1beta1.NotificationConfig.Builder builderForValue) { - if (desiredNotificationConfigBuilder_ == null) { - desiredNotificationConfig_ = builderForValue.build(); - onChanged(); - } else { - desiredNotificationConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The desired notification configuration.
-     * 
- * - * .google.container.v1beta1.NotificationConfig desired_notification_config = 55; - */ - public Builder mergeDesiredNotificationConfig(com.google.container.v1beta1.NotificationConfig value) { - if (desiredNotificationConfigBuilder_ == null) { - if (desiredNotificationConfig_ != null) { - desiredNotificationConfig_ = - com.google.container.v1beta1.NotificationConfig.newBuilder(desiredNotificationConfig_).mergeFrom(value).buildPartial(); - } else { - desiredNotificationConfig_ = value; - } - onChanged(); - } else { - desiredNotificationConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The desired notification configuration.
-     * 
- * - * .google.container.v1beta1.NotificationConfig desired_notification_config = 55; - */ - public Builder clearDesiredNotificationConfig() { - if (desiredNotificationConfigBuilder_ == null) { - desiredNotificationConfig_ = null; - onChanged(); - } else { - desiredNotificationConfig_ = null; - desiredNotificationConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * The desired notification configuration.
-     * 
- * - * .google.container.v1beta1.NotificationConfig desired_notification_config = 55; - */ - public com.google.container.v1beta1.NotificationConfig.Builder getDesiredNotificationConfigBuilder() { - - onChanged(); - return getDesiredNotificationConfigFieldBuilder().getBuilder(); - } - /** - *
-     * The desired notification configuration.
-     * 
- * - * .google.container.v1beta1.NotificationConfig desired_notification_config = 55; - */ - public com.google.container.v1beta1.NotificationConfigOrBuilder getDesiredNotificationConfigOrBuilder() { - if (desiredNotificationConfigBuilder_ != null) { - return desiredNotificationConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredNotificationConfig_ == null ? - com.google.container.v1beta1.NotificationConfig.getDefaultInstance() : desiredNotificationConfig_; - } - } - /** - *
-     * The desired notification configuration.
-     * 
- * - * .google.container.v1beta1.NotificationConfig desired_notification_config = 55; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NotificationConfig, com.google.container.v1beta1.NotificationConfig.Builder, com.google.container.v1beta1.NotificationConfigOrBuilder> - getDesiredNotificationConfigFieldBuilder() { - if (desiredNotificationConfigBuilder_ == null) { - desiredNotificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NotificationConfig, com.google.container.v1beta1.NotificationConfig.Builder, com.google.container.v1beta1.NotificationConfigOrBuilder>( - getDesiredNotificationConfig(), - getParentForChildren(), - isClean()); - desiredNotificationConfig_ = null; - } - return desiredNotificationConfigBuilder_; - } - - private java.lang.Object desiredMasterVersion_ = ""; - /** - *
-     * The Kubernetes version to change the master to. The only valid value is the
-     * latest supported version.
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the default Kubernetes version
-     * 
- * - * string desired_master_version = 100; - * @return The desiredMasterVersion. - */ - public java.lang.String getDesiredMasterVersion() { - java.lang.Object ref = desiredMasterVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - desiredMasterVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The Kubernetes version to change the master to. The only valid value is the
-     * latest supported version.
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the default Kubernetes version
-     * 
- * - * string desired_master_version = 100; - * @return The bytes for desiredMasterVersion. - */ - public com.google.protobuf.ByteString - getDesiredMasterVersionBytes() { - java.lang.Object ref = desiredMasterVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - desiredMasterVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The Kubernetes version to change the master to. The only valid value is the
-     * latest supported version.
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the default Kubernetes version
-     * 
- * - * string desired_master_version = 100; - * @param value The desiredMasterVersion to set. - * @return This builder for chaining. - */ - public Builder setDesiredMasterVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - desiredMasterVersion_ = value; - onChanged(); - return this; - } - /** - *
-     * The Kubernetes version to change the master to. The only valid value is the
-     * latest supported version.
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the default Kubernetes version
-     * 
- * - * string desired_master_version = 100; - * @return This builder for chaining. - */ - public Builder clearDesiredMasterVersion() { - - desiredMasterVersion_ = getDefaultInstance().getDesiredMasterVersion(); - onChanged(); - return this; - } - /** - *
-     * The Kubernetes version to change the master to. The only valid value is the
-     * latest supported version.
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the default Kubernetes version
-     * 
- * - * string desired_master_version = 100; - * @param value The bytes for desiredMasterVersion to set. - * @return This builder for chaining. - */ - public Builder setDesiredMasterVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - desiredMasterVersion_ = value; - onChanged(); - return this; - } - - private com.google.container.v1beta1.GcfsConfig desiredGcfsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GcfsConfig, com.google.container.v1beta1.GcfsConfig.Builder, com.google.container.v1beta1.GcfsConfigOrBuilder> desiredGcfsConfigBuilder_; - /** - *
-     * The desired GCFS config for the cluster.
-     * 
- * - * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; - * @return Whether the desiredGcfsConfig field is set. - */ - public boolean hasDesiredGcfsConfig() { - return desiredGcfsConfigBuilder_ != null || desiredGcfsConfig_ != null; - } - /** - *
-     * The desired GCFS config for the cluster.
-     * 
- * - * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; - * @return The desiredGcfsConfig. - */ - public com.google.container.v1beta1.GcfsConfig getDesiredGcfsConfig() { - if (desiredGcfsConfigBuilder_ == null) { - return desiredGcfsConfig_ == null ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() : desiredGcfsConfig_; - } else { - return desiredGcfsConfigBuilder_.getMessage(); - } - } - /** - *
-     * The desired GCFS config for the cluster.
-     * 
- * - * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; - */ - public Builder setDesiredGcfsConfig(com.google.container.v1beta1.GcfsConfig value) { - if (desiredGcfsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredGcfsConfig_ = value; - onChanged(); - } else { - desiredGcfsConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The desired GCFS config for the cluster.
-     * 
- * - * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; - */ - public Builder setDesiredGcfsConfig( - com.google.container.v1beta1.GcfsConfig.Builder builderForValue) { - if (desiredGcfsConfigBuilder_ == null) { - desiredGcfsConfig_ = builderForValue.build(); - onChanged(); - } else { - desiredGcfsConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The desired GCFS config for the cluster.
-     * 
- * - * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; - */ - public Builder mergeDesiredGcfsConfig(com.google.container.v1beta1.GcfsConfig value) { - if (desiredGcfsConfigBuilder_ == null) { - if (desiredGcfsConfig_ != null) { - desiredGcfsConfig_ = - com.google.container.v1beta1.GcfsConfig.newBuilder(desiredGcfsConfig_).mergeFrom(value).buildPartial(); - } else { - desiredGcfsConfig_ = value; - } - onChanged(); - } else { - desiredGcfsConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The desired GCFS config for the cluster.
-     * 
- * - * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; - */ - public Builder clearDesiredGcfsConfig() { - if (desiredGcfsConfigBuilder_ == null) { - desiredGcfsConfig_ = null; - onChanged(); - } else { - desiredGcfsConfig_ = null; - desiredGcfsConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * The desired GCFS config for the cluster.
-     * 
- * - * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; - */ - public com.google.container.v1beta1.GcfsConfig.Builder getDesiredGcfsConfigBuilder() { - - onChanged(); - return getDesiredGcfsConfigFieldBuilder().getBuilder(); - } - /** - *
-     * The desired GCFS config for the cluster.
-     * 
- * - * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; - */ - public com.google.container.v1beta1.GcfsConfigOrBuilder getDesiredGcfsConfigOrBuilder() { - if (desiredGcfsConfigBuilder_ != null) { - return desiredGcfsConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredGcfsConfig_ == null ? - com.google.container.v1beta1.GcfsConfig.getDefaultInstance() : desiredGcfsConfig_; - } - } - /** - *
-     * The desired GCFS config for the cluster.
-     * 
- * - * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GcfsConfig, com.google.container.v1beta1.GcfsConfig.Builder, com.google.container.v1beta1.GcfsConfigOrBuilder> - getDesiredGcfsConfigFieldBuilder() { - if (desiredGcfsConfigBuilder_ == null) { - desiredGcfsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GcfsConfig, com.google.container.v1beta1.GcfsConfig.Builder, com.google.container.v1beta1.GcfsConfigOrBuilder>( - getDesiredGcfsConfig(), - getParentForChildren(), - isClean()); - desiredGcfsConfig_ = null; - } - return desiredGcfsConfigBuilder_; - } - - private com.google.container.v1beta1.DatabaseEncryption desiredDatabaseEncryption_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.DatabaseEncryption, com.google.container.v1beta1.DatabaseEncryption.Builder, com.google.container.v1beta1.DatabaseEncryptionOrBuilder> desiredDatabaseEncryptionBuilder_; - /** - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; - * @return Whether the desiredDatabaseEncryption field is set. - */ - public boolean hasDesiredDatabaseEncryption() { - return desiredDatabaseEncryptionBuilder_ != null || desiredDatabaseEncryption_ != null; - } - /** - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; - * @return The desiredDatabaseEncryption. - */ - public com.google.container.v1beta1.DatabaseEncryption getDesiredDatabaseEncryption() { - if (desiredDatabaseEncryptionBuilder_ == null) { - return desiredDatabaseEncryption_ == null ? com.google.container.v1beta1.DatabaseEncryption.getDefaultInstance() : desiredDatabaseEncryption_; - } else { - return desiredDatabaseEncryptionBuilder_.getMessage(); - } - } - /** - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; - */ - public Builder setDesiredDatabaseEncryption(com.google.container.v1beta1.DatabaseEncryption value) { - if (desiredDatabaseEncryptionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredDatabaseEncryption_ = value; - onChanged(); - } else { - desiredDatabaseEncryptionBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; - */ - public Builder setDesiredDatabaseEncryption( - com.google.container.v1beta1.DatabaseEncryption.Builder builderForValue) { - if (desiredDatabaseEncryptionBuilder_ == null) { - desiredDatabaseEncryption_ = builderForValue.build(); - onChanged(); - } else { - desiredDatabaseEncryptionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; - */ - public Builder mergeDesiredDatabaseEncryption(com.google.container.v1beta1.DatabaseEncryption value) { - if (desiredDatabaseEncryptionBuilder_ == null) { - if (desiredDatabaseEncryption_ != null) { - desiredDatabaseEncryption_ = - com.google.container.v1beta1.DatabaseEncryption.newBuilder(desiredDatabaseEncryption_).mergeFrom(value).buildPartial(); - } else { - desiredDatabaseEncryption_ = value; - } - onChanged(); - } else { - desiredDatabaseEncryptionBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; - */ - public Builder clearDesiredDatabaseEncryption() { - if (desiredDatabaseEncryptionBuilder_ == null) { - desiredDatabaseEncryption_ = null; - onChanged(); - } else { - desiredDatabaseEncryption_ = null; - desiredDatabaseEncryptionBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; - */ - public com.google.container.v1beta1.DatabaseEncryption.Builder getDesiredDatabaseEncryptionBuilder() { - - onChanged(); - return getDesiredDatabaseEncryptionFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; - */ - public com.google.container.v1beta1.DatabaseEncryptionOrBuilder getDesiredDatabaseEncryptionOrBuilder() { - if (desiredDatabaseEncryptionBuilder_ != null) { - return desiredDatabaseEncryptionBuilder_.getMessageOrBuilder(); - } else { - return desiredDatabaseEncryption_ == null ? - com.google.container.v1beta1.DatabaseEncryption.getDefaultInstance() : desiredDatabaseEncryption_; - } - } - /** - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.DatabaseEncryption, com.google.container.v1beta1.DatabaseEncryption.Builder, com.google.container.v1beta1.DatabaseEncryptionOrBuilder> - getDesiredDatabaseEncryptionFieldBuilder() { - if (desiredDatabaseEncryptionBuilder_ == null) { - desiredDatabaseEncryptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.DatabaseEncryption, com.google.container.v1beta1.DatabaseEncryption.Builder, com.google.container.v1beta1.DatabaseEncryptionOrBuilder>( - getDesiredDatabaseEncryption(), - getParentForChildren(), - isClean()); - desiredDatabaseEncryption_ = null; - } - return desiredDatabaseEncryptionBuilder_; - } - - private com.google.container.v1beta1.WorkloadIdentityConfig desiredWorkloadIdentityConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WorkloadIdentityConfig, com.google.container.v1beta1.WorkloadIdentityConfig.Builder, com.google.container.v1beta1.WorkloadIdentityConfigOrBuilder> desiredWorkloadIdentityConfigBuilder_; - /** - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * @return Whether the desiredWorkloadIdentityConfig field is set. - */ - public boolean hasDesiredWorkloadIdentityConfig() { - return desiredWorkloadIdentityConfigBuilder_ != null || desiredWorkloadIdentityConfig_ != null; - } - /** - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * @return The desiredWorkloadIdentityConfig. - */ - public com.google.container.v1beta1.WorkloadIdentityConfig getDesiredWorkloadIdentityConfig() { - if (desiredWorkloadIdentityConfigBuilder_ == null) { - return desiredWorkloadIdentityConfig_ == null ? com.google.container.v1beta1.WorkloadIdentityConfig.getDefaultInstance() : desiredWorkloadIdentityConfig_; - } else { - return desiredWorkloadIdentityConfigBuilder_.getMessage(); - } - } - /** - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; - */ - public Builder setDesiredWorkloadIdentityConfig(com.google.container.v1beta1.WorkloadIdentityConfig value) { - if (desiredWorkloadIdentityConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredWorkloadIdentityConfig_ = value; - onChanged(); - } else { - desiredWorkloadIdentityConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; - */ - public Builder setDesiredWorkloadIdentityConfig( - com.google.container.v1beta1.WorkloadIdentityConfig.Builder builderForValue) { - if (desiredWorkloadIdentityConfigBuilder_ == null) { - desiredWorkloadIdentityConfig_ = builderForValue.build(); - onChanged(); - } else { - desiredWorkloadIdentityConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; - */ - public Builder mergeDesiredWorkloadIdentityConfig(com.google.container.v1beta1.WorkloadIdentityConfig value) { - if (desiredWorkloadIdentityConfigBuilder_ == null) { - if (desiredWorkloadIdentityConfig_ != null) { - desiredWorkloadIdentityConfig_ = - com.google.container.v1beta1.WorkloadIdentityConfig.newBuilder(desiredWorkloadIdentityConfig_).mergeFrom(value).buildPartial(); - } else { - desiredWorkloadIdentityConfig_ = value; - } - onChanged(); - } else { - desiredWorkloadIdentityConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; - */ - public Builder clearDesiredWorkloadIdentityConfig() { - if (desiredWorkloadIdentityConfigBuilder_ == null) { - desiredWorkloadIdentityConfig_ = null; - onChanged(); - } else { - desiredWorkloadIdentityConfig_ = null; - desiredWorkloadIdentityConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; - */ - public com.google.container.v1beta1.WorkloadIdentityConfig.Builder getDesiredWorkloadIdentityConfigBuilder() { - - onChanged(); - return getDesiredWorkloadIdentityConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; - */ - public com.google.container.v1beta1.WorkloadIdentityConfigOrBuilder getDesiredWorkloadIdentityConfigOrBuilder() { - if (desiredWorkloadIdentityConfigBuilder_ != null) { - return desiredWorkloadIdentityConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredWorkloadIdentityConfig_ == null ? - com.google.container.v1beta1.WorkloadIdentityConfig.getDefaultInstance() : desiredWorkloadIdentityConfig_; - } - } - /** - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WorkloadIdentityConfig, com.google.container.v1beta1.WorkloadIdentityConfig.Builder, com.google.container.v1beta1.WorkloadIdentityConfigOrBuilder> - getDesiredWorkloadIdentityConfigFieldBuilder() { - if (desiredWorkloadIdentityConfigBuilder_ == null) { - desiredWorkloadIdentityConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WorkloadIdentityConfig, com.google.container.v1beta1.WorkloadIdentityConfig.Builder, com.google.container.v1beta1.WorkloadIdentityConfigOrBuilder>( - getDesiredWorkloadIdentityConfig(), - getParentForChildren(), - isClean()); - desiredWorkloadIdentityConfig_ = null; - } - return desiredWorkloadIdentityConfigBuilder_; - } - - private com.google.container.v1beta1.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 desiredWorkloadCertificatesBuilder_ != null || desiredWorkloadCertificates_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - desiredWorkloadCertificatesBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - desiredWorkloadCertificatesBuilder_.setMessage(builderForValue.build()); - } - - 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 (desiredWorkloadCertificates_ != null) { - desiredWorkloadCertificates_ = - com.google.container.v1beta1.WorkloadCertificates.newBuilder(desiredWorkloadCertificates_).mergeFrom(value).buildPartial(); - } else { - desiredWorkloadCertificates_ = value; - } - onChanged(); - } else { - desiredWorkloadCertificatesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.WorkloadCertificates desired_workload_certificates = 61; - */ - public Builder clearDesiredWorkloadCertificates() { - if (desiredWorkloadCertificatesBuilder_ == null) { - desiredWorkloadCertificates_ = null; - onChanged(); - } else { - desiredWorkloadCertificates_ = null; - desiredWorkloadCertificatesBuilder_ = null; - } - - 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() { - - 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 desiredMeshCertificatesBuilder_ != null || desiredMeshCertificates_ != null; - } - /** - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; - * @return The desiredMeshCertificates. - */ - public com.google.container.v1beta1.MeshCertificates getDesiredMeshCertificates() { - if (desiredMeshCertificatesBuilder_ == null) { - return desiredMeshCertificates_ == null ? com.google.container.v1beta1.MeshCertificates.getDefaultInstance() : desiredMeshCertificates_; - } else { - return desiredMeshCertificatesBuilder_.getMessage(); - } - } - /** - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; - */ - public Builder setDesiredMeshCertificates(com.google.container.v1beta1.MeshCertificates value) { - if (desiredMeshCertificatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredMeshCertificates_ = value; - onChanged(); - } else { - desiredMeshCertificatesBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; - */ - public Builder setDesiredMeshCertificates( - com.google.container.v1beta1.MeshCertificates.Builder builderForValue) { - if (desiredMeshCertificatesBuilder_ == null) { - desiredMeshCertificates_ = builderForValue.build(); - onChanged(); - } else { - desiredMeshCertificatesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; - */ - public Builder mergeDesiredMeshCertificates(com.google.container.v1beta1.MeshCertificates value) { - if (desiredMeshCertificatesBuilder_ == null) { - if (desiredMeshCertificates_ != null) { - desiredMeshCertificates_ = - com.google.container.v1beta1.MeshCertificates.newBuilder(desiredMeshCertificates_).mergeFrom(value).buildPartial(); - } else { - desiredMeshCertificates_ = value; - } - onChanged(); - } else { - desiredMeshCertificatesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; - */ - public Builder clearDesiredMeshCertificates() { - if (desiredMeshCertificatesBuilder_ == null) { - desiredMeshCertificates_ = null; - onChanged(); - } else { - desiredMeshCertificates_ = null; - desiredMeshCertificatesBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; - */ - public com.google.container.v1beta1.MeshCertificates.Builder getDesiredMeshCertificatesBuilder() { - - onChanged(); - return getDesiredMeshCertificatesFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; - */ - public com.google.container.v1beta1.MeshCertificatesOrBuilder getDesiredMeshCertificatesOrBuilder() { - if (desiredMeshCertificatesBuilder_ != null) { - return desiredMeshCertificatesBuilder_.getMessageOrBuilder(); - } else { - return desiredMeshCertificates_ == null ? - com.google.container.v1beta1.MeshCertificates.getDefaultInstance() : desiredMeshCertificates_; - } - } - /** - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MeshCertificates, com.google.container.v1beta1.MeshCertificates.Builder, com.google.container.v1beta1.MeshCertificatesOrBuilder> - getDesiredMeshCertificatesFieldBuilder() { - if (desiredMeshCertificatesBuilder_ == null) { - desiredMeshCertificatesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MeshCertificates, com.google.container.v1beta1.MeshCertificates.Builder, com.google.container.v1beta1.MeshCertificatesOrBuilder>( - getDesiredMeshCertificates(), - getParentForChildren(), - isClean()); - desiredMeshCertificates_ = null; - } - return desiredMeshCertificatesBuilder_; - } - - private com.google.container.v1beta1.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 desiredWorkloadAltsConfigBuilder_ != null || desiredWorkloadAltsConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - desiredWorkloadAltsConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - desiredWorkloadAltsConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (desiredWorkloadAltsConfig_ != null) { - desiredWorkloadAltsConfig_ = - com.google.container.v1beta1.WorkloadALTSConfig.newBuilder(desiredWorkloadAltsConfig_).mergeFrom(value).buildPartial(); - } else { - desiredWorkloadAltsConfig_ = value; - } - onChanged(); - } else { - desiredWorkloadAltsConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for direct-path (via ALTS) with workload identity.
-     * 
- * - * .google.container.v1beta1.WorkloadALTSConfig desired_workload_alts_config = 62; - */ - public Builder clearDesiredWorkloadAltsConfig() { - if (desiredWorkloadAltsConfigBuilder_ == null) { - desiredWorkloadAltsConfig_ = null; - onChanged(); - } else { - desiredWorkloadAltsConfig_ = null; - desiredWorkloadAltsConfigBuilder_ = null; - } - - 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() { - - 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 desiredShieldedNodesBuilder_ != null || desiredShieldedNodes_ != null; - } - /** - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; - * @return The desiredShieldedNodes. - */ - public com.google.container.v1beta1.ShieldedNodes getDesiredShieldedNodes() { - if (desiredShieldedNodesBuilder_ == null) { - return desiredShieldedNodes_ == null ? com.google.container.v1beta1.ShieldedNodes.getDefaultInstance() : desiredShieldedNodes_; - } else { - return desiredShieldedNodesBuilder_.getMessage(); - } - } - /** - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; - */ - public Builder setDesiredShieldedNodes(com.google.container.v1beta1.ShieldedNodes value) { - if (desiredShieldedNodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredShieldedNodes_ = value; - onChanged(); - } else { - desiredShieldedNodesBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; - */ - public Builder setDesiredShieldedNodes( - com.google.container.v1beta1.ShieldedNodes.Builder builderForValue) { - if (desiredShieldedNodesBuilder_ == null) { - desiredShieldedNodes_ = builderForValue.build(); - onChanged(); - } else { - desiredShieldedNodesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; - */ - public Builder mergeDesiredShieldedNodes(com.google.container.v1beta1.ShieldedNodes value) { - if (desiredShieldedNodesBuilder_ == null) { - if (desiredShieldedNodes_ != null) { - desiredShieldedNodes_ = - com.google.container.v1beta1.ShieldedNodes.newBuilder(desiredShieldedNodes_).mergeFrom(value).buildPartial(); - } else { - desiredShieldedNodes_ = value; - } - onChanged(); - } else { - desiredShieldedNodesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; - */ - public Builder clearDesiredShieldedNodes() { - if (desiredShieldedNodesBuilder_ == null) { - desiredShieldedNodes_ = null; - onChanged(); - } else { - desiredShieldedNodes_ = null; - desiredShieldedNodesBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; - */ - public com.google.container.v1beta1.ShieldedNodes.Builder getDesiredShieldedNodesBuilder() { - - onChanged(); - return getDesiredShieldedNodesFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; - */ - public com.google.container.v1beta1.ShieldedNodesOrBuilder getDesiredShieldedNodesOrBuilder() { - if (desiredShieldedNodesBuilder_ != null) { - return desiredShieldedNodesBuilder_.getMessageOrBuilder(); - } else { - return desiredShieldedNodes_ == null ? - com.google.container.v1beta1.ShieldedNodes.getDefaultInstance() : desiredShieldedNodes_; - } - } - /** - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ShieldedNodes, com.google.container.v1beta1.ShieldedNodes.Builder, com.google.container.v1beta1.ShieldedNodesOrBuilder> - getDesiredShieldedNodesFieldBuilder() { - if (desiredShieldedNodesBuilder_ == null) { - desiredShieldedNodesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ShieldedNodes, com.google.container.v1beta1.ShieldedNodes.Builder, com.google.container.v1beta1.ShieldedNodesOrBuilder>( - getDesiredShieldedNodes(), - getParentForChildren(), - isClean()); - desiredShieldedNodes_ = null; - } - return desiredShieldedNodesBuilder_; - } - - private com.google.container.v1beta1.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 desiredCostManagementConfigBuilder_ != null || desiredCostManagementConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - desiredCostManagementConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - desiredCostManagementConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (desiredCostManagementConfig_ != null) { - desiredCostManagementConfig_ = - com.google.container.v1beta1.CostManagementConfig.newBuilder(desiredCostManagementConfig_).mergeFrom(value).buildPartial(); - } else { - desiredCostManagementConfig_ = value; - } - onChanged(); - } else { - desiredCostManagementConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The desired configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1beta1.CostManagementConfig desired_cost_management_config = 49; - */ - public Builder clearDesiredCostManagementConfig() { - if (desiredCostManagementConfigBuilder_ == null) { - desiredCostManagementConfig_ = null; - onChanged(); - } else { - desiredCostManagementConfig_ = null; - desiredCostManagementConfigBuilder_ = null; - } - - 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() { - - 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 desiredMasterBuilder_ != null || desiredMaster_ != null; - } - /** - *
-     * Configuration for master components.
-     * 
- * - * .google.container.v1beta1.Master desired_master = 52; - * @return The desiredMaster. - */ - public com.google.container.v1beta1.Master getDesiredMaster() { - if (desiredMasterBuilder_ == null) { - return desiredMaster_ == null ? com.google.container.v1beta1.Master.getDefaultInstance() : desiredMaster_; - } else { - return desiredMasterBuilder_.getMessage(); - } - } - /** - *
-     * Configuration for master components.
-     * 
- * - * .google.container.v1beta1.Master desired_master = 52; - */ - public Builder setDesiredMaster(com.google.container.v1beta1.Master value) { - if (desiredMasterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredMaster_ = value; - onChanged(); - } else { - desiredMasterBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for master components.
-     * 
- * - * .google.container.v1beta1.Master desired_master = 52; - */ - public Builder setDesiredMaster( - com.google.container.v1beta1.Master.Builder builderForValue) { - if (desiredMasterBuilder_ == null) { - desiredMaster_ = builderForValue.build(); - onChanged(); - } else { - desiredMasterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for master components.
-     * 
- * - * .google.container.v1beta1.Master desired_master = 52; - */ - public Builder mergeDesiredMaster(com.google.container.v1beta1.Master value) { - if (desiredMasterBuilder_ == null) { - if (desiredMaster_ != null) { - desiredMaster_ = - com.google.container.v1beta1.Master.newBuilder(desiredMaster_).mergeFrom(value).buildPartial(); - } else { - desiredMaster_ = value; - } - onChanged(); - } else { - desiredMasterBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for master components.
-     * 
- * - * .google.container.v1beta1.Master desired_master = 52; - */ - public Builder clearDesiredMaster() { - if (desiredMasterBuilder_ == null) { - desiredMaster_ = null; - onChanged(); - } else { - desiredMaster_ = null; - desiredMasterBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for master components.
-     * 
- * - * .google.container.v1beta1.Master desired_master = 52; - */ - public com.google.container.v1beta1.Master.Builder getDesiredMasterBuilder() { - - onChanged(); - return getDesiredMasterFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for master components.
-     * 
- * - * .google.container.v1beta1.Master desired_master = 52; - */ - public com.google.container.v1beta1.MasterOrBuilder getDesiredMasterOrBuilder() { - if (desiredMasterBuilder_ != null) { - return desiredMasterBuilder_.getMessageOrBuilder(); - } else { - return desiredMaster_ == null ? - com.google.container.v1beta1.Master.getDefaultInstance() : desiredMaster_; - } - } - /** - *
-     * Configuration for master components.
-     * 
- * - * .google.container.v1beta1.Master desired_master = 52; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.Master, com.google.container.v1beta1.Master.Builder, com.google.container.v1beta1.MasterOrBuilder> - getDesiredMasterFieldBuilder() { - if (desiredMasterBuilder_ == null) { - desiredMasterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.Master, com.google.container.v1beta1.Master.Builder, com.google.container.v1beta1.MasterOrBuilder>( - getDesiredMaster(), - getParentForChildren(), - isClean()); - desiredMaster_ = null; - } - return desiredMasterBuilder_; - } - - 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 desiredDnsConfigBuilder_ != null || desiredDnsConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - desiredDnsConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - desiredDnsConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (desiredDnsConfig_ != null) { - desiredDnsConfig_ = - com.google.container.v1beta1.DNSConfig.newBuilder(desiredDnsConfig_).mergeFrom(value).buildPartial(); - } else { - desiredDnsConfig_ = value; - } - onChanged(); - } else { - desiredDnsConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1beta1.DNSConfig desired_dns_config = 53; - */ - public Builder clearDesiredDnsConfig() { - if (desiredDnsConfigBuilder_ == null) { - desiredDnsConfig_ = null; - onChanged(); - } else { - desiredDnsConfig_ = null; - desiredDnsConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1beta1.DNSConfig desired_dns_config = 53; - */ - public com.google.container.v1beta1.DNSConfig.Builder getDesiredDnsConfigBuilder() { - - 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 desiredServiceExternalIpsConfigBuilder_ != null || desiredServiceExternalIpsConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - desiredServiceExternalIpsConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - desiredServiceExternalIpsConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (desiredServiceExternalIpsConfig_ != null) { - desiredServiceExternalIpsConfig_ = - com.google.container.v1beta1.ServiceExternalIPsConfig.newBuilder(desiredServiceExternalIpsConfig_).mergeFrom(value).buildPartial(); - } else { - desiredServiceExternalIpsConfig_ = value; - } - onChanged(); - } else { - desiredServiceExternalIpsConfigBuilder_.mergeFrom(value); - } - - 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() { - if (desiredServiceExternalIpsConfigBuilder_ == null) { - desiredServiceExternalIpsConfig_ = null; - onChanged(); - } else { - desiredServiceExternalIpsConfig_ = null; - desiredServiceExternalIpsConfigBuilder_ = null; - } - - 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() { - - 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 desiredAuthenticatorGroupsConfigBuilder_ != null || desiredAuthenticatorGroupsConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - desiredAuthenticatorGroupsConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - desiredAuthenticatorGroupsConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (desiredAuthenticatorGroupsConfig_ != null) { - desiredAuthenticatorGroupsConfig_ = - com.google.container.v1beta1.AuthenticatorGroupsConfig.newBuilder(desiredAuthenticatorGroupsConfig_).mergeFrom(value).buildPartial(); - } else { - desiredAuthenticatorGroupsConfig_ = value; - } - onChanged(); - } else { - desiredAuthenticatorGroupsConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * AuthenticatorGroupsConfig specifies the config for the cluster security
-     * groups settings.
-     * 
- * - * .google.container.v1beta1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - */ - public Builder clearDesiredAuthenticatorGroupsConfig() { - if (desiredAuthenticatorGroupsConfigBuilder_ == null) { - desiredAuthenticatorGroupsConfig_ = null; - onChanged(); - } else { - desiredAuthenticatorGroupsConfig_ = null; - desiredAuthenticatorGroupsConfigBuilder_ = null; - } - - 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() { - - 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 desiredLoggingConfigBuilder_ != null || desiredLoggingConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - desiredLoggingConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - desiredLoggingConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (desiredLoggingConfig_ != null) { - desiredLoggingConfig_ = - com.google.container.v1beta1.LoggingConfig.newBuilder(desiredLoggingConfig_).mergeFrom(value).buildPartial(); - } else { - desiredLoggingConfig_ = value; - } - onChanged(); - } else { - desiredLoggingConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The desired logging configuration.
-     * 
- * - * .google.container.v1beta1.LoggingConfig desired_logging_config = 64; - */ - public Builder clearDesiredLoggingConfig() { - if (desiredLoggingConfigBuilder_ == null) { - desiredLoggingConfig_ = null; - onChanged(); - } else { - desiredLoggingConfig_ = null; - desiredLoggingConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * The desired logging configuration.
-     * 
- * - * .google.container.v1beta1.LoggingConfig desired_logging_config = 64; - */ - public com.google.container.v1beta1.LoggingConfig.Builder getDesiredLoggingConfigBuilder() { - - 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 desiredMonitoringConfigBuilder_ != null || desiredMonitoringConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - desiredMonitoringConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - desiredMonitoringConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (desiredMonitoringConfig_ != null) { - desiredMonitoringConfig_ = - com.google.container.v1beta1.MonitoringConfig.newBuilder(desiredMonitoringConfig_).mergeFrom(value).buildPartial(); - } else { - desiredMonitoringConfig_ = value; - } - onChanged(); - } else { - desiredMonitoringConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The desired monitoring configuration.
-     * 
- * - * .google.container.v1beta1.MonitoringConfig desired_monitoring_config = 65; - */ - public Builder clearDesiredMonitoringConfig() { - if (desiredMonitoringConfigBuilder_ == null) { - desiredMonitoringConfig_ = null; - onChanged(); - } else { - desiredMonitoringConfig_ = null; - desiredMonitoringConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * The desired monitoring configuration.
-     * 
- * - * .google.container.v1beta1.MonitoringConfig desired_monitoring_config = 65; - */ - public com.google.container.v1beta1.MonitoringConfig.Builder getDesiredMonitoringConfigBuilder() { - - 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 desiredIdentityServiceConfigBuilder_ != null || desiredIdentityServiceConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - desiredIdentityServiceConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - desiredIdentityServiceConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (desiredIdentityServiceConfig_ != null) { - desiredIdentityServiceConfig_ = - com.google.container.v1beta1.IdentityServiceConfig.newBuilder(desiredIdentityServiceConfig_).mergeFrom(value).buildPartial(); - } else { - desiredIdentityServiceConfig_ = value; - } - onChanged(); - } else { - desiredIdentityServiceConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The desired Identity Service component configuration.
-     * 
- * - * .google.container.v1beta1.IdentityServiceConfig desired_identity_service_config = 66; - */ - public Builder clearDesiredIdentityServiceConfig() { - if (desiredIdentityServiceConfigBuilder_ == null) { - desiredIdentityServiceConfig_ = null; - onChanged(); - } else { - desiredIdentityServiceConfig_ = null; - desiredIdentityServiceConfigBuilder_ = null; - } - - 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() { - - 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 ((bitField0_ & 0x00000002) != 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) { - bitField0_ |= 0x00000002; - desiredEnablePrivateEndpoint_ = value; - 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() { - bitField0_ = (bitField0_ & ~0x00000002); - 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 desiredNodePoolAutoConfigNetworkTagsBuilder_ != null || desiredNodePoolAutoConfigNetworkTags_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - desiredNodePoolAutoConfigNetworkTagsBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - desiredNodePoolAutoConfigNetworkTagsBuilder_.setMessage(builderForValue.build()); - } - - 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 (desiredNodePoolAutoConfigNetworkTags_ != null) { - desiredNodePoolAutoConfigNetworkTags_ = - com.google.container.v1beta1.NetworkTags.newBuilder(desiredNodePoolAutoConfigNetworkTags_).mergeFrom(value).buildPartial(); - } else { - desiredNodePoolAutoConfigNetworkTags_ = value; - } - onChanged(); - } else { - desiredNodePoolAutoConfigNetworkTagsBuilder_.mergeFrom(value); - } - - 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() { - if (desiredNodePoolAutoConfigNetworkTagsBuilder_ == null) { - desiredNodePoolAutoConfigNetworkTags_ = null; - onChanged(); - } else { - desiredNodePoolAutoConfigNetworkTags_ = null; - desiredNodePoolAutoConfigNetworkTagsBuilder_ = null; - } - - 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() { - - 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_; - /** - *
-     * Enable/Disable Protect API features for the cluster.
-     * 
- * - * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112; - * @return Whether the desiredProtectConfig field is set. - */ - public boolean hasDesiredProtectConfig() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * Enable/Disable Protect API features for the cluster.
-     * 
- * - * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112; - * @return The desiredProtectConfig. - */ - public com.google.container.v1beta1.ProtectConfig getDesiredProtectConfig() { - if (desiredProtectConfigBuilder_ == null) { - return desiredProtectConfig_ == null ? com.google.container.v1beta1.ProtectConfig.getDefaultInstance() : desiredProtectConfig_; - } else { - return desiredProtectConfigBuilder_.getMessage(); - } - } - /** - *
-     * Enable/Disable Protect API features for the cluster.
-     * 
- * - * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112; - */ - public Builder setDesiredProtectConfig(com.google.container.v1beta1.ProtectConfig value) { - if (desiredProtectConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredProtectConfig_ = value; - onChanged(); - } else { - desiredProtectConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - return this; - } - /** - *
-     * Enable/Disable Protect API features for the cluster.
-     * 
- * - * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112; - */ - public Builder setDesiredProtectConfig( - com.google.container.v1beta1.ProtectConfig.Builder builderForValue) { - if (desiredProtectConfigBuilder_ == null) { - desiredProtectConfig_ = builderForValue.build(); - onChanged(); - } else { - desiredProtectConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - return this; - } - /** - *
-     * Enable/Disable Protect API features for the cluster.
-     * 
- * - * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112; - */ - public Builder mergeDesiredProtectConfig(com.google.container.v1beta1.ProtectConfig value) { - if (desiredProtectConfigBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - desiredProtectConfig_ != null && - desiredProtectConfig_ != com.google.container.v1beta1.ProtectConfig.getDefaultInstance()) { - desiredProtectConfig_ = - com.google.container.v1beta1.ProtectConfig.newBuilder(desiredProtectConfig_).mergeFrom(value).buildPartial(); - } else { - desiredProtectConfig_ = value; - } - onChanged(); - } else { - desiredProtectConfigBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - return this; - } - /** - *
-     * Enable/Disable Protect API features for the cluster.
-     * 
- * - * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112; - */ - public Builder clearDesiredProtectConfig() { - if (desiredProtectConfigBuilder_ == null) { - desiredProtectConfig_ = null; - onChanged(); - } else { - desiredProtectConfigBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - /** - *
-     * Enable/Disable Protect API features for the cluster.
-     * 
- * - * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112; - */ - public com.google.container.v1beta1.ProtectConfig.Builder getDesiredProtectConfigBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getDesiredProtectConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Enable/Disable Protect API features for the cluster.
-     * 
- * - * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112; - */ - public com.google.container.v1beta1.ProtectConfigOrBuilder getDesiredProtectConfigOrBuilder() { - if (desiredProtectConfigBuilder_ != null) { - return desiredProtectConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredProtectConfig_ == null ? - com.google.container.v1beta1.ProtectConfig.getDefaultInstance() : desiredProtectConfig_; - } - } - /** - *
-     * Enable/Disable Protect API features for the cluster.
-     * 
- * - * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112; - */ - 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 desiredGatewayApiConfigBuilder_ != null || desiredGatewayApiConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - desiredGatewayApiConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - desiredGatewayApiConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (desiredGatewayApiConfig_ != null) { - desiredGatewayApiConfig_ = - com.google.container.v1beta1.GatewayAPIConfig.newBuilder(desiredGatewayApiConfig_).mergeFrom(value).buildPartial(); - } else { - desiredGatewayApiConfig_ = value; - } - onChanged(); - } else { - desiredGatewayApiConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The desired config of Gateway API on this cluster.
-     * 
- * - * .google.container.v1beta1.GatewayAPIConfig desired_gateway_api_config = 114; - */ - public Builder clearDesiredGatewayApiConfig() { - if (desiredGatewayApiConfigBuilder_ == null) { - desiredGatewayApiConfig_ = null; - onChanged(); - } else { - desiredGatewayApiConfig_ = null; - desiredGatewayApiConfigBuilder_ = null; - } - - 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() { - - 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 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 desiredNodePoolLoggingConfigBuilder_ != null || desiredNodePoolLoggingConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - desiredNodePoolLoggingConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - desiredNodePoolLoggingConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (desiredNodePoolLoggingConfig_ != null) { - desiredNodePoolLoggingConfig_ = - com.google.container.v1beta1.NodePoolLoggingConfig.newBuilder(desiredNodePoolLoggingConfig_).mergeFrom(value).buildPartial(); - } else { - desiredNodePoolLoggingConfig_ = value; - } - onChanged(); - } else { - desiredNodePoolLoggingConfigBuilder_.mergeFrom(value); - } - - 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() { - if (desiredNodePoolLoggingConfigBuilder_ == null) { - desiredNodePoolLoggingConfig_ = null; - onChanged(); - } else { - desiredNodePoolLoggingConfig_ = null; - desiredNodePoolLoggingConfigBuilder_ = null; - } - - 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() { - - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 5e299779d076..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdateOrBuilder.java +++ /dev/null @@ -1,1288 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface ClusterUpdateOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ClusterUpdate) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The Kubernetes version to change the nodes to (typically an
-   * upgrade).
-   * Users may specify either explicit versions offered by
-   * Kubernetes Engine or version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the Kubernetes master version
-   * 
- * - * string desired_node_version = 4; - * @return The desiredNodeVersion. - */ - java.lang.String getDesiredNodeVersion(); - /** - *
-   * The Kubernetes version to change the nodes to (typically an
-   * upgrade).
-   * Users may specify either explicit versions offered by
-   * Kubernetes Engine or version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the Kubernetes master version
-   * 
- * - * string desired_node_version = 4; - * @return The bytes for desiredNodeVersion. - */ - com.google.protobuf.ByteString - getDesiredNodeVersionBytes(); - - /** - *
-   * The monitoring service the cluster should use to write metrics.
-   * Currently available options:
-   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-   * service with a Kubernetes-native resource model
-   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-   *   longer available as of GKE 1.15).
-   * * `none` - No metrics will be exported from the cluster.
-   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-   * 
- * - * string desired_monitoring_service = 5; - * @return The desiredMonitoringService. - */ - java.lang.String getDesiredMonitoringService(); - /** - *
-   * The monitoring service the cluster should use to write metrics.
-   * Currently available options:
-   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-   * service with a Kubernetes-native resource model
-   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-   *   longer available as of GKE 1.15).
-   * * `none` - No metrics will be exported from the cluster.
-   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-   * 
- * - * string desired_monitoring_service = 5; - * @return The bytes for desiredMonitoringService. - */ - com.google.protobuf.ByteString - getDesiredMonitoringServiceBytes(); - - /** - *
-   * Configurations for the various addons available to run in the cluster.
-   * 
- * - * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; - * @return Whether the desiredAddonsConfig field is set. - */ - boolean hasDesiredAddonsConfig(); - /** - *
-   * Configurations for the various addons available to run in the cluster.
-   * 
- * - * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; - * @return The desiredAddonsConfig. - */ - com.google.container.v1beta1.AddonsConfig getDesiredAddonsConfig(); - /** - *
-   * Configurations for the various addons available to run in the cluster.
-   * 
- * - * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; - */ - com.google.container.v1beta1.AddonsConfigOrBuilder getDesiredAddonsConfigOrBuilder(); - - /** - *
-   * The node pool to be upgraded. This field is mandatory if
-   * "desired_node_version", "desired_image_family",
-   * "desired_node_pool_autoscaling", or "desired_workload_metadata_config"
-   * is specified and there is more than one node pool on the cluster.
-   * 
- * - * string desired_node_pool_id = 7; - * @return The desiredNodePoolId. - */ - java.lang.String getDesiredNodePoolId(); - /** - *
-   * The node pool to be upgraded. This field is mandatory if
-   * "desired_node_version", "desired_image_family",
-   * "desired_node_pool_autoscaling", or "desired_workload_metadata_config"
-   * is specified and there is more than one node pool on the cluster.
-   * 
- * - * string desired_node_pool_id = 7; - * @return The bytes for desiredNodePoolId. - */ - com.google.protobuf.ByteString - getDesiredNodePoolIdBytes(); - - /** - *
-   * The desired image type for the node pool.
-   * NOTE: Set the "desired_node_pool" field as well.
-   * 
- * - * string desired_image_type = 8; - * @return The desiredImageType. - */ - java.lang.String getDesiredImageType(); - /** - *
-   * The desired image type for the node pool.
-   * NOTE: Set the "desired_node_pool" field as well.
-   * 
- * - * string desired_image_type = 8; - * @return The bytes for desiredImageType. - */ - com.google.protobuf.ByteString - getDesiredImageTypeBytes(); - - /** - *
-   * Autoscaler configuration for the node pool specified in
-   * desired_node_pool_id. If there is only one pool in the
-   * cluster and desired_node_pool_id is not provided then
-   * the change applies to that single node pool.
-   * 
- * - * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - * @return Whether the desiredNodePoolAutoscaling field is set. - */ - boolean hasDesiredNodePoolAutoscaling(); - /** - *
-   * Autoscaler configuration for the node pool specified in
-   * desired_node_pool_id. If there is only one pool in the
-   * cluster and desired_node_pool_id is not provided then
-   * the change applies to that single node pool.
-   * 
- * - * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - * @return The desiredNodePoolAutoscaling. - */ - com.google.container.v1beta1.NodePoolAutoscaling getDesiredNodePoolAutoscaling(); - /** - *
-   * Autoscaler configuration for the node pool specified in
-   * desired_node_pool_id. If there is only one pool in the
-   * cluster and desired_node_pool_id is not provided then
-   * the change applies to that single node pool.
-   * 
- * - * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - */ - com.google.container.v1beta1.NodePoolAutoscalingOrBuilder getDesiredNodePoolAutoscalingOrBuilder(); - - /** - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This list must always include the cluster's primary zone.
-   * Warning: changing cluster locations will update the locations of all node
-   * pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string desired_locations = 10; - * @return A list containing the desiredLocations. - */ - java.util.List - getDesiredLocationsList(); - /** - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This list must always include the cluster's primary zone.
-   * Warning: changing cluster locations will update the locations of all node
-   * pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string desired_locations = 10; - * @return The count of desiredLocations. - */ - int getDesiredLocationsCount(); - /** - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This list must always include the cluster's primary zone.
-   * Warning: changing cluster locations will update the locations of all node
-   * pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string desired_locations = 10; - * @param index The index of the element to return. - * @return The desiredLocations at the given index. - */ - java.lang.String getDesiredLocations(int index); - /** - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This list must always include the cluster's primary zone.
-   * Warning: changing cluster locations will update the locations of all node
-   * pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string desired_locations = 10; - * @param index The index of the value to return. - * @return The bytes of the desiredLocations at the given index. - */ - com.google.protobuf.ByteString - getDesiredLocationsBytes(int index); - - /** - *
-   * The desired configuration options for master authorized networks feature.
-   * 
- * - * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * @return Whether the desiredMasterAuthorizedNetworksConfig field is set. - */ - boolean hasDesiredMasterAuthorizedNetworksConfig(); - /** - *
-   * The desired configuration options for master authorized networks feature.
-   * 
- * - * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * @return The desiredMasterAuthorizedNetworksConfig. - */ - com.google.container.v1beta1.MasterAuthorizedNetworksConfig getDesiredMasterAuthorizedNetworksConfig(); - /** - *
-   * The desired configuration options for master authorized networks feature.
-   * 
- * - * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - */ - com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder getDesiredMasterAuthorizedNetworksConfigOrBuilder(); - - /** - *
-   * The desired configuration options for the PodSecurityPolicy feature.
-   * 
- * - * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; - * @return Whether the desiredPodSecurityPolicyConfig field is set. - */ - boolean hasDesiredPodSecurityPolicyConfig(); - /** - *
-   * The desired configuration options for the PodSecurityPolicy feature.
-   * 
- * - * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; - * @return The desiredPodSecurityPolicyConfig. - */ - com.google.container.v1beta1.PodSecurityPolicyConfig getDesiredPodSecurityPolicyConfig(); - /** - *
-   * The desired configuration options for the PodSecurityPolicy feature.
-   * 
- * - * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; - */ - com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder getDesiredPodSecurityPolicyConfigOrBuilder(); - - /** - *
-   * Cluster-level autoscaling configuration.
-   * 
- * - * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; - * @return Whether the desiredClusterAutoscaling field is set. - */ - boolean hasDesiredClusterAutoscaling(); - /** - *
-   * Cluster-level autoscaling configuration.
-   * 
- * - * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; - * @return The desiredClusterAutoscaling. - */ - com.google.container.v1beta1.ClusterAutoscaling getDesiredClusterAutoscaling(); - /** - *
-   * Cluster-level autoscaling configuration.
-   * 
- * - * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; - */ - com.google.container.v1beta1.ClusterAutoscalingOrBuilder getDesiredClusterAutoscalingOrBuilder(); - - /** - *
-   * The desired configuration options for the Binary Authorization feature.
-   * 
- * - * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; - * @return Whether the desiredBinaryAuthorization field is set. - */ - boolean hasDesiredBinaryAuthorization(); - /** - *
-   * The desired configuration options for the Binary Authorization feature.
-   * 
- * - * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; - * @return The desiredBinaryAuthorization. - */ - com.google.container.v1beta1.BinaryAuthorization getDesiredBinaryAuthorization(); - /** - *
-   * The desired configuration options for the Binary Authorization feature.
-   * 
- * - * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; - */ - com.google.container.v1beta1.BinaryAuthorizationOrBuilder getDesiredBinaryAuthorizationOrBuilder(); - - /** - *
-   * The logging service the cluster should use to write logs.
-   * Currently available options:
-   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-   * service with a Kubernetes-native resource model
-   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-   *   available as of GKE 1.15).
-   * * `none` - no logs will be exported from the cluster.
-   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-   * 
- * - * string desired_logging_service = 19; - * @return The desiredLoggingService. - */ - java.lang.String getDesiredLoggingService(); - /** - *
-   * The logging service the cluster should use to write logs.
-   * Currently available options:
-   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-   * service with a Kubernetes-native resource model
-   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-   *   available as of GKE 1.15).
-   * * `none` - no logs will be exported from the cluster.
-   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-   * 
- * - * string desired_logging_service = 19; - * @return The bytes for desiredLoggingService. - */ - com.google.protobuf.ByteString - getDesiredLoggingServiceBytes(); - - /** - *
-   * The desired configuration for exporting resource usage.
-   * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * @return Whether the desiredResourceUsageExportConfig field is set. - */ - boolean hasDesiredResourceUsageExportConfig(); - /** - *
-   * The desired configuration for exporting resource usage.
-   * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * @return The desiredResourceUsageExportConfig. - */ - com.google.container.v1beta1.ResourceUsageExportConfig getDesiredResourceUsageExportConfig(); - /** - *
-   * The desired configuration for exporting resource usage.
-   * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - */ - com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder getDesiredResourceUsageExportConfigOrBuilder(); - - /** - *
-   * Cluster-level Vertical Pod Autoscaling configuration.
-   * 
- * - * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * @return Whether the desiredVerticalPodAutoscaling field is set. - */ - boolean hasDesiredVerticalPodAutoscaling(); - /** - *
-   * Cluster-level Vertical Pod Autoscaling configuration.
-   * 
- * - * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * @return The desiredVerticalPodAutoscaling. - */ - com.google.container.v1beta1.VerticalPodAutoscaling getDesiredVerticalPodAutoscaling(); - /** - *
-   * Cluster-level Vertical Pod Autoscaling configuration.
-   * 
- * - * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - */ - com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder getDesiredVerticalPodAutoscalingOrBuilder(); - - /** - *
-   * The desired private cluster configuration.
-   * 
- * - * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; - * @return Whether the desiredPrivateClusterConfig field is set. - */ - boolean hasDesiredPrivateClusterConfig(); - /** - *
-   * The desired private cluster configuration.
-   * 
- * - * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; - * @return The desiredPrivateClusterConfig. - */ - com.google.container.v1beta1.PrivateClusterConfig getDesiredPrivateClusterConfig(); - /** - *
-   * The desired private cluster configuration.
-   * 
- * - * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - com.google.container.v1beta1.PrivateClusterConfigOrBuilder getDesiredPrivateClusterConfigOrBuilder(); - - /** - *
-   * The desired config of Intra-node visibility.
-   * 
- * - * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * @return Whether the desiredIntraNodeVisibilityConfig field is set. - */ - boolean hasDesiredIntraNodeVisibilityConfig(); - /** - *
-   * The desired config of Intra-node visibility.
-   * 
- * - * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * @return The desiredIntraNodeVisibilityConfig. - */ - com.google.container.v1beta1.IntraNodeVisibilityConfig getDesiredIntraNodeVisibilityConfig(); - /** - *
-   * The desired config of Intra-node visibility.
-   * 
- * - * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - */ - com.google.container.v1beta1.IntraNodeVisibilityConfigOrBuilder getDesiredIntraNodeVisibilityConfigOrBuilder(); - - /** - *
-   * The desired status of whether to disable default sNAT for this cluster.
-   * 
- * - * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; - * @return Whether the desiredDefaultSnatStatus field is set. - */ - boolean hasDesiredDefaultSnatStatus(); - /** - *
-   * The desired status of whether to disable default sNAT for this cluster.
-   * 
- * - * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; - * @return The desiredDefaultSnatStatus. - */ - com.google.container.v1beta1.DefaultSnatStatus getDesiredDefaultSnatStatus(); - /** - *
-   * The desired status of whether to disable default sNAT for this cluster.
-   * 
- * - * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; - */ - com.google.container.v1beta1.DefaultSnatStatusOrBuilder getDesiredDefaultSnatStatusOrBuilder(); - - /** - *
-   * The desired telemetry integration for the cluster.
-   * 
- * - * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; - * @return Whether the desiredClusterTelemetry field is set. - */ - boolean hasDesiredClusterTelemetry(); - /** - *
-   * The desired telemetry integration for the cluster.
-   * 
- * - * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; - * @return The desiredClusterTelemetry. - */ - com.google.container.v1beta1.ClusterTelemetry getDesiredClusterTelemetry(); - /** - *
-   * The desired telemetry integration for the cluster.
-   * 
- * - * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; - */ - com.google.container.v1beta1.ClusterTelemetryOrBuilder getDesiredClusterTelemetryOrBuilder(); - - /** - *
-   * The desired release channel configuration.
-   * 
- * - * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; - * @return Whether the desiredReleaseChannel field is set. - */ - boolean hasDesiredReleaseChannel(); - /** - *
-   * The desired release channel configuration.
-   * 
- * - * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; - * @return The desiredReleaseChannel. - */ - com.google.container.v1beta1.ReleaseChannel getDesiredReleaseChannel(); - /** - *
-   * The desired release channel configuration.
-   * 
- * - * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; - */ - com.google.container.v1beta1.ReleaseChannelOrBuilder getDesiredReleaseChannelOrBuilder(); - - /** - *
-   * The desired Cloud TPU configuration.
-   * 
- * - * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; - * @return Whether the desiredTpuConfig field is set. - */ - boolean hasDesiredTpuConfig(); - /** - *
-   * The desired Cloud TPU configuration.
-   * 
- * - * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; - * @return The desiredTpuConfig. - */ - com.google.container.v1beta1.TpuConfig getDesiredTpuConfig(); - /** - *
-   * The desired Cloud TPU configuration.
-   * 
- * - * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; - */ - com.google.container.v1beta1.TpuConfigOrBuilder getDesiredTpuConfigOrBuilder(); - - /** - *
-   * The desired 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(); - - /** - *
-   * Enable/Disable Protect API features for the cluster.
-   * 
- * - * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112; - * @return Whether the desiredProtectConfig field is set. - */ - boolean hasDesiredProtectConfig(); - /** - *
-   * Enable/Disable Protect API features for the cluster.
-   * 
- * - * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112; - * @return The desiredProtectConfig. - */ - com.google.container.v1beta1.ProtectConfig getDesiredProtectConfig(); - /** - *
-   * Enable/Disable Protect API features for the cluster.
-   * 
- * - * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112; - */ - 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 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(); -} 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 deleted file mode 100644 index 8aec437efd6a..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequest.java +++ /dev/null @@ -1,1160 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * CompleteIPRotationRequest moves the cluster master back into single-IP mode.
- * 
- * - * Protobuf type {@code google.container.v1beta1.CompleteIPRotationRequest} - */ -public final class CompleteIPRotationRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.CompleteIPRotationRequest) - CompleteIPRotationRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CompleteIPRotationRequest.newBuilder() to construct. - private CompleteIPRotationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CompleteIPRotationRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CompleteIPRotationRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CompleteIPRotationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CompleteIPRotationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.CompleteIPRotationRequest.class, com.google.container.v1beta1.CompleteIPRotationRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=4126 - * @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=4126 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Required. Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4135 - * @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=4135 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * Required. Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4142 - * @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=4142 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 7; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster 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(); - projectId_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CompleteIPRotationRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.CompleteIPRotationRequest getDefaultInstanceForType() { - return com.google.container.v1beta1.CompleteIPRotationRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.CompleteIPRotationRequest build() { - com.google.container.v1beta1.CompleteIPRotationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.CompleteIPRotationRequest buildPartial() { - com.google.container.v1beta1.CompleteIPRotationRequest result = new com.google.container.v1beta1.CompleteIPRotationRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.CompleteIPRotationRequest) { - return mergeFrom((com.google.container.v1beta1.CompleteIPRotationRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.CompleteIPRotationRequest other) { - if (other == com.google.container.v1beta1.CompleteIPRotationRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 58: { - name_ = input.readStringRequireUtf8(); - - 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 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=4126 - * @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=4126 - * @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=4126 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=4126 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=4126 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4135 - * @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=4135 - * @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=4135 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4135 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4135 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * Required. Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4142 - * @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=4142 - * @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=4142 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4142 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4142 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster 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; - 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(); - 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; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 523f6b05e067..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequestOrBuilder.java +++ /dev/null @@ -1,115 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface CompleteIPRotationRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.CompleteIPRotationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=4126 - * @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=4126 - * @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=4135 - * @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=4135 - * @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=4142 - * @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=4142 - * @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 deleted file mode 100644 index 7bf4e6943b9f..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteNodePoolUpgradeRequest.java +++ /dev/null @@ -1,590 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index bf2754a63d4f..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteNodePoolUpgradeRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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 deleted file mode 100644 index 90ad5cc17022..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfidentialNodes.java +++ /dev/null @@ -1,492 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * ConfidentialNodes is configuration for the confidential nodes feature, which
- * makes nodes run on confidential VMs.
- * 
- * - * Protobuf type {@code google.container.v1beta1.ConfidentialNodes} - */ -public final class ConfidentialNodes extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.ConfidentialNodes) - ConfidentialNodesOrBuilder { -private static final long serialVersionUID = 0L; - // Use ConfidentialNodes.newBuilder() to construct. - private ConfidentialNodes(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ConfidentialNodes() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ConfidentialNodes(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ConfidentialNodes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ConfidentialNodes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.ConfidentialNodes.class, com.google.container.v1beta1.ConfidentialNodes.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-   * Whether Confidential Nodes feature is enabled.
-   * 
- * - * 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(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ConfidentialNodes_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.ConfidentialNodes getDefaultInstanceForType() { - return com.google.container.v1beta1.ConfidentialNodes.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.ConfidentialNodes build() { - com.google.container.v1beta1.ConfidentialNodes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.ConfidentialNodes buildPartial() { - com.google.container.v1beta1.ConfidentialNodes result = new com.google.container.v1beta1.ConfidentialNodes(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.ConfidentialNodes) { - return mergeFrom((com.google.container.v1beta1.ConfidentialNodes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.ConfidentialNodes other) { - if (other == com.google.container.v1beta1.ConfidentialNodes.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - onChanged(); - return this; - } - /** - *
-     * Whether Confidential Nodes feature is enabled.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ConfidentialNodes) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.ConfidentialNodes) - private static final com.google.container.v1beta1.ConfidentialNodes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.ConfidentialNodes(); - } - - public static com.google.container.v1beta1.ConfidentialNodes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfidentialNodes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 0e919cb0e8ba..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfidentialNodesOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface ConfidentialNodesOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ConfidentialNodes) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether Confidential Nodes feature is enabled.
-   * 
- * - * 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 deleted file mode 100644 index 38c5468d62cc..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfigConnectorConfig.java +++ /dev/null @@ -1,490 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Configuration options for the Config Connector add-on.
- * 
- * - * Protobuf type {@code google.container.v1beta1.ConfigConnectorConfig} - */ -public final class ConfigConnectorConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.ConfigConnectorConfig) - ConfigConnectorConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use ConfigConnectorConfig.newBuilder() to construct. - private ConfigConnectorConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ConfigConnectorConfig() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ConfigConnectorConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ConfigConnectorConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ConfigConnectorConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.ConfigConnectorConfig.class, com.google.container.v1beta1.ConfigConnectorConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-   * Whether Cloud Connector is enabled for this cluster.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - 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(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ConfigConnectorConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.ConfigConnectorConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.ConfigConnectorConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.ConfigConnectorConfig build() { - com.google.container.v1beta1.ConfigConnectorConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.ConfigConnectorConfig buildPartial() { - com.google.container.v1beta1.ConfigConnectorConfig result = new com.google.container.v1beta1.ConfigConnectorConfig(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.ConfigConnectorConfig) { - return mergeFrom((com.google.container.v1beta1.ConfigConnectorConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.ConfigConnectorConfig other) { - if (other == com.google.container.v1beta1.ConfigConnectorConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 boolean enabled_ ; - /** - *
-     * Whether Cloud Connector is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Whether Cloud Connector is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether Cloud Connector is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ConfigConnectorConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.ConfigConnectorConfig) - private static final com.google.container.v1beta1.ConfigConnectorConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.ConfigConnectorConfig(); - } - - public static com.google.container.v1beta1.ConfigConnectorConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigConnectorConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index c731dede7cd0..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfigConnectorConfigOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface ConfigConnectorConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ConfigConnectorConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether Cloud Connector is enabled for this cluster.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/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 deleted file mode 100644 index 9e73e1928b63..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CostManagementConfig.java +++ /dev/null @@ -1,490 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * 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(); - 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); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.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(); - - 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 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; - onChanged(); - return this; - } - /** - *
-     * Whether the feature is enabled or not.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.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 deleted file mode 100644 index 3edefb9a590d..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CostManagementConfigOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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 deleted file mode 100644 index c4d27c97855a..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequest.java +++ /dev/null @@ -1,1216 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * CreateClusterRequest creates a cluster.
- * 
- * - * Protobuf type {@code google.container.v1beta1.CreateClusterRequest} - */ -public final class CreateClusterRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.CreateClusterRequest) - CreateClusterRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateClusterRequest.newBuilder() to construct. - private CreateClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateClusterRequest() { - projectId_ = ""; - zone_ = ""; - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateClusterRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CreateClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CreateClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.CreateClusterRequest.class, com.google.container.v1beta1.CreateClusterRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://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=2361 - * @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=2361 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Required. Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the parent
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2370 - * @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=2370 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_FIELD_NUMBER = 3; - private com.google.container.v1beta1.Cluster cluster_; - /** - *
-   * Required. A [cluster
-   * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
-   * 
- * - * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the cluster field is set. - */ - @java.lang.Override - public boolean hasCluster() { - return cluster_ != null; - } - /** - *
-   * Required. A [cluster
-   * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
-   * 
- * - * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The cluster. - */ - @java.lang.Override - public com.google.container.v1beta1.Cluster getCluster() { - return cluster_ == null ? com.google.container.v1beta1.Cluster.getDefaultInstance() : cluster_; - } - /** - *
-   * Required. A [cluster
-   * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
-   * 
- * - * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.container.v1beta1.ClusterOrBuilder getClusterOrBuilder() { - return getCluster(); - } - - public static final int PARENT_FIELD_NUMBER = 5; - private volatile java.lang.Object parent_; - /** - *
-   * The parent (project and location) where the cluster will be created.
-   * Specified in the format `projects/*/locations/*`.
-   * 
- * - * string parent = 5; - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * The parent (project and location) where the cluster will be created.
-   * Specified in the format `projects/*/locations/*`.
-   * 
- * - * string parent = 5; - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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 (cluster_ != null) { - 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 (cluster_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - zone_ = ""; - - if (clusterBuilder_ == null) { - cluster_ = null; - } else { - cluster_ = null; - clusterBuilder_ = null; - } - parent_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CreateClusterRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.CreateClusterRequest getDefaultInstanceForType() { - return com.google.container.v1beta1.CreateClusterRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.CreateClusterRequest build() { - com.google.container.v1beta1.CreateClusterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.CreateClusterRequest buildPartial() { - com.google.container.v1beta1.CreateClusterRequest result = new com.google.container.v1beta1.CreateClusterRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - if (clusterBuilder_ == null) { - result.cluster_ = cluster_; - } else { - result.cluster_ = clusterBuilder_.build(); - } - result.parent_ = parent_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.CreateClusterRequest) { - return mergeFrom((com.google.container.v1beta1.CreateClusterRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.CreateClusterRequest other) { - if (other == com.google.container.v1beta1.CreateClusterRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (other.hasCluster()) { - mergeCluster(other.getCluster()); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - input.readMessage( - getClusterFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 26 - case 42: { - parent_ = input.readStringRequireUtf8(); - - 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 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=2361 - * @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=2361 - * @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=2361 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://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=2361 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://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=2361 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the parent
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2370 - * @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=2370 - * @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=2370 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the parent
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2370 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the parent
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2370 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private com.google.container.v1beta1.Cluster cluster_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.Cluster, com.google.container.v1beta1.Cluster.Builder, com.google.container.v1beta1.ClusterOrBuilder> clusterBuilder_; - /** - *
-     * Required. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
-     * 
- * - * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the cluster field is set. - */ - public boolean hasCluster() { - return clusterBuilder_ != null || cluster_ != null; - } - /** - *
-     * Required. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
-     * 
- * - * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The cluster. - */ - public com.google.container.v1beta1.Cluster getCluster() { - if (clusterBuilder_ == null) { - return cluster_ == null ? com.google.container.v1beta1.Cluster.getDefaultInstance() : cluster_; - } else { - return clusterBuilder_.getMessage(); - } - } - /** - *
-     * Required. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
-     * 
- * - * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setCluster(com.google.container.v1beta1.Cluster value) { - if (clusterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - cluster_ = value; - onChanged(); - } else { - clusterBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Required. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
-     * 
- * - * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setCluster( - com.google.container.v1beta1.Cluster.Builder builderForValue) { - if (clusterBuilder_ == null) { - cluster_ = builderForValue.build(); - onChanged(); - } else { - clusterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Required. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
-     * 
- * - * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeCluster(com.google.container.v1beta1.Cluster value) { - if (clusterBuilder_ == null) { - if (cluster_ != null) { - cluster_ = - com.google.container.v1beta1.Cluster.newBuilder(cluster_).mergeFrom(value).buildPartial(); - } else { - cluster_ = value; - } - onChanged(); - } else { - clusterBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Required. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
-     * 
- * - * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearCluster() { - if (clusterBuilder_ == null) { - cluster_ = null; - onChanged(); - } else { - cluster_ = null; - clusterBuilder_ = null; - } - - return this; - } - /** - *
-     * Required. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
-     * 
- * - * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.container.v1beta1.Cluster.Builder getClusterBuilder() { - - onChanged(); - return getClusterFieldBuilder().getBuilder(); - } - /** - *
-     * Required. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
-     * 
- * - * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.container.v1beta1.ClusterOrBuilder getClusterOrBuilder() { - if (clusterBuilder_ != null) { - return clusterBuilder_.getMessageOrBuilder(); - } else { - return cluster_ == null ? - com.google.container.v1beta1.Cluster.getDefaultInstance() : cluster_; - } - } - /** - *
-     * Required. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
-     * 
- * - * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.Cluster, com.google.container.v1beta1.Cluster.Builder, com.google.container.v1beta1.ClusterOrBuilder> - getClusterFieldBuilder() { - if (clusterBuilder_ == null) { - clusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.Cluster, com.google.container.v1beta1.Cluster.Builder, com.google.container.v1beta1.ClusterOrBuilder>( - getCluster(), - getParentForChildren(), - isClean()); - cluster_ = null; - } - return clusterBuilder_; - } - - private java.lang.Object parent_ = ""; - /** - *
-     * The parent (project and location) where the cluster will be created.
-     * Specified in the format `projects/*/locations/*`.
-     * 
- * - * string parent = 5; - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The parent (project and location) where the cluster will be created.
-     * Specified in the format `projects/*/locations/*`.
-     * 
- * - * string parent = 5; - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The parent (project and location) where the cluster will be created.
-     * Specified in the format `projects/*/locations/*`.
-     * 
- * - * string parent = 5; - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - *
-     * The parent (project and location) where the cluster will be created.
-     * Specified in the format `projects/*/locations/*`.
-     * 
- * - * string parent = 5; - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - *
-     * The parent (project and location) where the cluster will be created.
-     * Specified in the format `projects/*/locations/*`.
-     * 
- * - * string parent = 5; - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.CreateClusterRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.CreateClusterRequest) - private static final com.google.container.v1beta1.CreateClusterRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.CreateClusterRequest(); - } - - public static com.google.container.v1beta1.CreateClusterRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 4e36d1cdbaba..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequestOrBuilder.java +++ /dev/null @@ -1,119 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface CreateClusterRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.CreateClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://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=2361 - * @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=2361 - * @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=2370 - * @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=2370 - * @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 deleted file mode 100644 index 03e0cdcb0dd4..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequest.java +++ /dev/null @@ -1,1397 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * CreateNodePoolRequest creates a node pool for a cluster.
- * 
- * - * Protobuf type {@code google.container.v1beta1.CreateNodePoolRequest} - */ -public final class CreateNodePoolRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.CreateNodePoolRequest) - CreateNodePoolRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateNodePoolRequest.newBuilder() to construct. - private CreateNodePoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateNodePoolRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateNodePoolRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CreateNodePoolRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CreateNodePoolRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.CreateNodePoolRequest.class, com.google.container.v1beta1.CreateNodePoolRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://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=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; - } - } - /** - *
-   * Required. Deprecated. The Google Developers Console [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=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; - 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=3133 - * @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=3133 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * Required. Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3140 - * @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=3140 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_POOL_FIELD_NUMBER = 4; - private com.google.container.v1beta1.NodePool nodePool_; - /** - *
-   * Required. The node pool to create.
-   * 
- * - * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the nodePool field is set. - */ - @java.lang.Override - public boolean hasNodePool() { - return nodePool_ != null; - } - /** - *
-   * Required. The node pool to create.
-   * 
- * - * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The nodePool. - */ - @java.lang.Override - public com.google.container.v1beta1.NodePool getNodePool() { - return nodePool_ == null ? com.google.container.v1beta1.NodePool.getDefaultInstance() : nodePool_; - } - /** - *
-   * Required. The node pool to create.
-   * 
- * - * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.container.v1beta1.NodePoolOrBuilder getNodePoolOrBuilder() { - return getNodePool(); - } - - public static final int PARENT_FIELD_NUMBER = 6; - private volatile java.lang.Object parent_; - /** - *
-   * The parent (project, location, cluster 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 (nodePool_ != null) { - 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 (nodePool_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - if (nodePoolBuilder_ == null) { - nodePool_ = null; - } else { - nodePool_ = null; - nodePoolBuilder_ = null; - } - parent_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CreateNodePoolRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.CreateNodePoolRequest getDefaultInstanceForType() { - return com.google.container.v1beta1.CreateNodePoolRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.CreateNodePoolRequest build() { - com.google.container.v1beta1.CreateNodePoolRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.CreateNodePoolRequest buildPartial() { - com.google.container.v1beta1.CreateNodePoolRequest result = new com.google.container.v1beta1.CreateNodePoolRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - if (nodePoolBuilder_ == null) { - result.nodePool_ = nodePool_; - } else { - result.nodePool_ = nodePoolBuilder_.build(); - } - result.parent_ = parent_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.CreateNodePoolRequest) { - return mergeFrom((com.google.container.v1beta1.CreateNodePoolRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.CreateNodePoolRequest other) { - if (other == com.google.container.v1beta1.CreateNodePoolRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (other.hasNodePool()) { - mergeNodePool(other.getNodePool()); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - input.readMessage( - getNodePoolFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 34 - case 50: { - parent_ = input.readStringRequireUtf8(); - - 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 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=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; - } - } - /** - *
-     * Required. Deprecated. The Google Developers Console [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=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; - } - } - /** - *
-     * Required. Deprecated. The Google Developers Console [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=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; - 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=3124 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://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=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; - 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=3133 - * @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=3133 - * @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=3133 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the parent
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3133 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the parent
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3133 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * Required. Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3140 - * @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=3140 - * @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=3140 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3140 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3140 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private com.google.container.v1beta1.NodePool nodePool_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePool, com.google.container.v1beta1.NodePool.Builder, com.google.container.v1beta1.NodePoolOrBuilder> nodePoolBuilder_; - /** - *
-     * Required. The node pool to create.
-     * 
- * - * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the nodePool field is set. - */ - public boolean hasNodePool() { - return nodePoolBuilder_ != null || nodePool_ != null; - } - /** - *
-     * Required. The node pool to create.
-     * 
- * - * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The nodePool. - */ - public com.google.container.v1beta1.NodePool getNodePool() { - if (nodePoolBuilder_ == null) { - return nodePool_ == null ? com.google.container.v1beta1.NodePool.getDefaultInstance() : nodePool_; - } else { - return nodePoolBuilder_.getMessage(); - } - } - /** - *
-     * Required. The node pool to create.
-     * 
- * - * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setNodePool(com.google.container.v1beta1.NodePool value) { - if (nodePoolBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nodePool_ = value; - onChanged(); - } else { - nodePoolBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Required. The node pool to create.
-     * 
- * - * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setNodePool( - com.google.container.v1beta1.NodePool.Builder builderForValue) { - if (nodePoolBuilder_ == null) { - nodePool_ = builderForValue.build(); - onChanged(); - } else { - nodePoolBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Required. The node pool to create.
-     * 
- * - * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeNodePool(com.google.container.v1beta1.NodePool value) { - if (nodePoolBuilder_ == null) { - if (nodePool_ != null) { - nodePool_ = - com.google.container.v1beta1.NodePool.newBuilder(nodePool_).mergeFrom(value).buildPartial(); - } else { - nodePool_ = value; - } - onChanged(); - } else { - nodePoolBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Required. The node pool to create.
-     * 
- * - * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearNodePool() { - if (nodePoolBuilder_ == null) { - nodePool_ = null; - onChanged(); - } else { - nodePool_ = null; - nodePoolBuilder_ = null; - } - - return this; - } - /** - *
-     * Required. The node pool to create.
-     * 
- * - * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.container.v1beta1.NodePool.Builder getNodePoolBuilder() { - - onChanged(); - return getNodePoolFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The node pool to create.
-     * 
- * - * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.container.v1beta1.NodePoolOrBuilder getNodePoolOrBuilder() { - if (nodePoolBuilder_ != null) { - return nodePoolBuilder_.getMessageOrBuilder(); - } else { - return nodePool_ == null ? - com.google.container.v1beta1.NodePool.getDefaultInstance() : nodePool_; - } - } - /** - *
-     * Required. The node pool to create.
-     * 
- * - * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePool, com.google.container.v1beta1.NodePool.Builder, com.google.container.v1beta1.NodePoolOrBuilder> - getNodePoolFieldBuilder() { - if (nodePoolBuilder_ == null) { - nodePoolBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePool, com.google.container.v1beta1.NodePool.Builder, com.google.container.v1beta1.NodePoolOrBuilder>( - getNodePool(), - getParentForChildren(), - isClean()); - nodePool_ = null; - } - return nodePoolBuilder_; - } - - private java.lang.Object parent_ = ""; - /** - *
-     * The parent (project, location, cluster 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; - 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(); - 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; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 3cad5a4d2e24..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequestOrBuilder.java +++ /dev/null @@ -1,144 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface CreateNodePoolRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.CreateNodePoolRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://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=3124 - * @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=3124 - * @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=3133 - * @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=3133 - * @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=3140 - * @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=3140 - * @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 deleted file mode 100644 index 610d3fd89979..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DNSConfig.java +++ /dev/null @@ -1,1110 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Default value
-     * 
- * - * PROVIDER_UNSPECIFIED = 0; - */ - public static final int PROVIDER_UNSPECIFIED_VALUE = 0; - /** - *
-     * Use GKE default DNS provider(kube-dns) for DNS resolution.
-     * 
- * - * PLATFORM_DEFAULT = 1; - */ - public static final int PLATFORM_DEFAULT_VALUE = 1; - /** - *
-     * Use CloudDNS for DNS resolution.
-     * 
- * - * CLOUD_DNS = 2; - */ - public static final int CLOUD_DNS_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Provider valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Provider forNumber(int value) { - switch (value) { - case 0: return PROVIDER_UNSPECIFIED; - case 1: return PLATFORM_DEFAULT; - case 2: return CLOUD_DNS; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - 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_; - /** - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.DNSConfig.Provider result = com.google.container.v1beta1.DNSConfig.Provider.valueOf(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_; - /** - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.DNSConfig.DNSScope result = com.google.container.v1beta1.DNSConfig.DNSScope.valueOf(clusterDnsScope_); - return result == null ? com.google.container.v1beta1.DNSConfig.DNSScope.UNRECOGNIZED : result; - } - - public static final int CLUSTER_DNS_DOMAIN_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterDnsDomain_; - /** - *
-   * cluster_dns_domain is the suffix used for all cluster service records.
-   * 
- * - * string cluster_dns_domain = 3; - * @return The clusterDnsDomain. - */ - @java.lang.Override - public java.lang.String getClusterDnsDomain() { - java.lang.Object ref = clusterDnsDomain_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterDnsDomain_ = s; - return s; - } - } - /** - *
-   * cluster_dns_domain is the suffix used for all cluster service records.
-   * 
- * - * string cluster_dns_domain = 3; - * @return The bytes for clusterDnsDomain. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getClusterDnsDomainBytes() { - java.lang.Object ref = clusterDnsDomain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterDnsDomain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (clusterDns_ != com.google.container.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(); - 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); - result.clusterDns_ = clusterDns_; - result.clusterDnsScope_ = clusterDnsScope_; - result.clusterDnsDomain_ = clusterDnsDomain_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 8 - case 16: { - clusterDnsScope_ = input.readEnum(); - - break; - } // case 16 - case 26: { - clusterDnsDomain_ = input.readStringRequireUtf8(); - - 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 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; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.DNSConfig.Provider result = com.google.container.v1beta1.DNSConfig.Provider.valueOf(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(); - } - - 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() { - - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.DNSConfig.DNSScope result = com.google.container.v1beta1.DNSConfig.DNSScope.valueOf(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(); - } - - 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() { - - clusterDnsScope_ = 0; - onChanged(); - return this; - } - - private java.lang.Object clusterDnsDomain_ = ""; - /** - *
-     * cluster_dns_domain is the suffix used for all cluster service records.
-     * 
- * - * string cluster_dns_domain = 3; - * @return The clusterDnsDomain. - */ - public java.lang.String getClusterDnsDomain() { - java.lang.Object ref = clusterDnsDomain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterDnsDomain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * cluster_dns_domain is the suffix used for all cluster service records.
-     * 
- * - * string cluster_dns_domain = 3; - * @return The bytes for clusterDnsDomain. - */ - public com.google.protobuf.ByteString - getClusterDnsDomainBytes() { - java.lang.Object ref = clusterDnsDomain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterDnsDomain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * cluster_dns_domain is the suffix used for all cluster service records.
-     * 
- * - * string cluster_dns_domain = 3; - * @param value The clusterDnsDomain to set. - * @return This builder for chaining. - */ - public Builder setClusterDnsDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterDnsDomain_ = value; - onChanged(); - return this; - } - /** - *
-     * cluster_dns_domain is the suffix used for all cluster service records.
-     * 
- * - * string cluster_dns_domain = 3; - * @return This builder for chaining. - */ - public Builder clearClusterDnsDomain() { - - clusterDnsDomain_ = getDefaultInstance().getClusterDnsDomain(); - onChanged(); - return this; - } - /** - *
-     * cluster_dns_domain is the suffix used for all cluster service records.
-     * 
- * - * string cluster_dns_domain = 3; - * @param value The bytes for clusterDnsDomain to set. - * @return This builder for chaining. - */ - public Builder setClusterDnsDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterDnsDomain_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index 990a3e6011e7..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DNSConfigOrBuilder.java +++ /dev/null @@ -1,67 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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 deleted file mode 100644 index f5ec0ec0b8bf..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindow.java +++ /dev/null @@ -1,753 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Time window specified for daily maintenance operations.
- * 
- * - * Protobuf type {@code google.container.v1beta1.DailyMaintenanceWindow} - */ -public final class DailyMaintenanceWindow extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.DailyMaintenanceWindow) - DailyMaintenanceWindowOrBuilder { -private static final long serialVersionUID = 0L; - // Use DailyMaintenanceWindow.newBuilder() to construct. - private DailyMaintenanceWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DailyMaintenanceWindow() { - startTime_ = ""; - duration_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DailyMaintenanceWindow(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_DailyMaintenanceWindow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_DailyMaintenanceWindow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.DailyMaintenanceWindow.class, com.google.container.v1beta1.DailyMaintenanceWindow.Builder.class); - } - - public static final int START_TIME_FIELD_NUMBER = 2; - private volatile java.lang.Object startTime_; - /** - *
-   * Time within the maintenance window to start the maintenance operations.
-   * It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
-   * 
- * - * string start_time = 2; - * @return The startTime. - */ - @java.lang.Override - public java.lang.String getStartTime() { - java.lang.Object ref = startTime_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - startTime_ = s; - return s; - } - } - /** - *
-   * Time within the maintenance window to start the maintenance operations.
-   * It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
-   * 
- * - * string start_time = 2; - * @return The bytes for startTime. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getStartTimeBytes() { - java.lang.Object ref = startTime_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - startTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DURATION_FIELD_NUMBER = 3; - private volatile java.lang.Object duration_; - /** - *
-   * [Output only] Duration of the time window, automatically chosen to be
-   * smallest possible in the given scenario.
-   * 
- * - * string duration = 3; - * @return The duration. - */ - @java.lang.Override - public java.lang.String getDuration() { - java.lang.Object ref = duration_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - duration_ = s; - return s; - } - } - /** - *
-   * [Output only] Duration of the time window, automatically chosen to be
-   * smallest possible in the given scenario.
-   * 
- * - * string duration = 3; - * @return The bytes for duration. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDurationBytes() { - java.lang.Object ref = duration_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - duration_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - startTime_ = ""; - - duration_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_DailyMaintenanceWindow_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.DailyMaintenanceWindow getDefaultInstanceForType() { - return com.google.container.v1beta1.DailyMaintenanceWindow.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.DailyMaintenanceWindow build() { - com.google.container.v1beta1.DailyMaintenanceWindow result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.DailyMaintenanceWindow buildPartial() { - com.google.container.v1beta1.DailyMaintenanceWindow result = new com.google.container.v1beta1.DailyMaintenanceWindow(this); - result.startTime_ = startTime_; - result.duration_ = duration_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.DailyMaintenanceWindow) { - return mergeFrom((com.google.container.v1beta1.DailyMaintenanceWindow)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.DailyMaintenanceWindow other) { - if (other == com.google.container.v1beta1.DailyMaintenanceWindow.getDefaultInstance()) return this; - if (!other.getStartTime().isEmpty()) { - startTime_ = other.startTime_; - onChanged(); - } - if (!other.getDuration().isEmpty()) { - duration_ = other.duration_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == 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(); - - break; - } // case 18 - case 26: { - duration_ = input.readStringRequireUtf8(); - - 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 java.lang.Object startTime_ = ""; - /** - *
-     * Time within the maintenance window to start the maintenance operations.
-     * It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
-     * 
- * - * string start_time = 2; - * @return The startTime. - */ - public java.lang.String getStartTime() { - java.lang.Object ref = startTime_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - startTime_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Time within the maintenance window to start the maintenance operations.
-     * It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
-     * 
- * - * string start_time = 2; - * @return The bytes for startTime. - */ - public com.google.protobuf.ByteString - getStartTimeBytes() { - java.lang.Object ref = startTime_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - startTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Time within the maintenance window to start the maintenance operations.
-     * It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
-     * 
- * - * string start_time = 2; - * @param value The startTime to set. - * @return This builder for chaining. - */ - public Builder setStartTime( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - startTime_ = value; - onChanged(); - return this; - } - /** - *
-     * Time within the maintenance window to start the maintenance operations.
-     * It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
-     * 
- * - * string start_time = 2; - * @return This builder for chaining. - */ - public Builder clearStartTime() { - - startTime_ = getDefaultInstance().getStartTime(); - onChanged(); - return this; - } - /** - *
-     * Time within the maintenance window to start the maintenance operations.
-     * It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
-     * 
- * - * string start_time = 2; - * @param value The bytes for startTime to set. - * @return This builder for chaining. - */ - public Builder setStartTimeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - startTime_ = value; - onChanged(); - return this; - } - - private java.lang.Object duration_ = ""; - /** - *
-     * [Output only] Duration of the time window, automatically chosen to be
-     * smallest possible in the given scenario.
-     * 
- * - * string duration = 3; - * @return The duration. - */ - public java.lang.String getDuration() { - java.lang.Object ref = duration_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - duration_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * [Output only] Duration of the time window, automatically chosen to be
-     * smallest possible in the given scenario.
-     * 
- * - * string duration = 3; - * @return The bytes for duration. - */ - public com.google.protobuf.ByteString - getDurationBytes() { - java.lang.Object ref = duration_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - duration_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * [Output only] Duration of the time window, automatically chosen to be
-     * smallest possible in the given scenario.
-     * 
- * - * string duration = 3; - * @param value The duration to set. - * @return This builder for chaining. - */ - public Builder setDuration( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - duration_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] Duration of the time window, automatically chosen to be
-     * smallest possible in the given scenario.
-     * 
- * - * string duration = 3; - * @return This builder for chaining. - */ - public Builder clearDuration() { - - duration_ = getDefaultInstance().getDuration(); - onChanged(); - return this; - } - /** - *
-     * [Output only] Duration of the time window, automatically chosen to be
-     * smallest possible in the given scenario.
-     * 
- * - * string duration = 3; - * @param value The bytes for duration to set. - * @return This builder for chaining. - */ - public Builder setDurationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - duration_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.DailyMaintenanceWindow) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.DailyMaintenanceWindow) - private static final com.google.container.v1beta1.DailyMaintenanceWindow DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.DailyMaintenanceWindow(); - } - - public static com.google.container.v1beta1.DailyMaintenanceWindow getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DailyMaintenanceWindow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 3adc0bef37d2..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindowOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface DailyMaintenanceWindowOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.DailyMaintenanceWindow) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Time within the maintenance window to start the maintenance operations.
-   * It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
-   * 
- * - * string start_time = 2; - * @return The startTime. - */ - java.lang.String getStartTime(); - /** - *
-   * Time within the maintenance window to start the maintenance operations.
-   * It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
-   * 
- * - * string start_time = 2; - * @return The bytes for startTime. - */ - com.google.protobuf.ByteString - getStartTimeBytes(); - - /** - *
-   * [Output only] Duration of the time window, automatically chosen to be
-   * smallest possible in the given scenario.
-   * 
- * - * string duration = 3; - * @return The duration. - */ - java.lang.String getDuration(); - /** - *
-   * [Output only] Duration of the time window, automatically chosen to be
-   * smallest possible in the given scenario.
-   * 
- * - * string duration = 3; - * @return The bytes for duration. - */ - com.google.protobuf.ByteString - getDurationBytes(); -} diff --git a/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 deleted file mode 100644 index 9d53524239e3..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DatabaseEncryption.java +++ /dev/null @@ -1,851 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Configuration of etcd encryption.
- * 
- * - * Protobuf type {@code google.container.v1beta1.DatabaseEncryption} - */ -public final class DatabaseEncryption extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.DatabaseEncryption) - DatabaseEncryptionOrBuilder { -private static final long serialVersionUID = 0L; - // Use DatabaseEncryption.newBuilder() to construct. - private DatabaseEncryption(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DatabaseEncryption() { - state_ = 0; - keyName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DatabaseEncryption(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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 STATE_FIELD_NUMBER = 2; - private int state_; - /** - *
-   * Denotes the state of etcd encryption.
-   * 
- * - * .google.container.v1beta1.DatabaseEncryption.State state = 2; - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override public int getStateValue() { - return state_; - } - /** - *
-   * Denotes the state of etcd encryption.
-   * 
- * - * .google.container.v1beta1.DatabaseEncryption.State state = 2; - * @return The state. - */ - @java.lang.Override public com.google.container.v1beta1.DatabaseEncryption.State getState() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.DatabaseEncryption.State result = com.google.container.v1beta1.DatabaseEncryption.State.valueOf(state_); - return result == null ? com.google.container.v1beta1.DatabaseEncryption.State.UNRECOGNIZED : result; - } - - public static final int KEY_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object keyName_; - /** - *
-   * Name of CloudKMS key to use for the encryption of secrets in etcd.
-   * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
-   * 
- * - * string key_name = 1; - * @return The keyName. - */ - @java.lang.Override - public java.lang.String getKeyName() { - java.lang.Object ref = keyName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - keyName_ = s; - return s; - } - } - /** - *
-   * Name of CloudKMS key to use for the encryption of secrets in etcd.
-   * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
-   * 
- * - * string key_name = 1; - * @return The bytes for keyName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getKeyNameBytes() { - java.lang.Object ref = keyName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - keyName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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 (state_ != other.state_) return false; - if (!getKeyName() - .equals(other.getKeyName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (37 * hash) + KEY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getKeyName().hashCode(); - hash = (29 * hash) + 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(); - state_ = 0; - - keyName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_DatabaseEncryption_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.DatabaseEncryption getDefaultInstanceForType() { - return com.google.container.v1beta1.DatabaseEncryption.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.DatabaseEncryption build() { - com.google.container.v1beta1.DatabaseEncryption result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.DatabaseEncryption buildPartial() { - com.google.container.v1beta1.DatabaseEncryption result = new com.google.container.v1beta1.DatabaseEncryption(this); - result.state_ = state_; - result.keyName_ = keyName_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.DatabaseEncryption) { - return mergeFrom((com.google.container.v1beta1.DatabaseEncryption)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.DatabaseEncryption other) { - if (other == com.google.container.v1beta1.DatabaseEncryption.getDefaultInstance()) return this; - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (!other.getKeyName().isEmpty()) { - keyName_ = other.keyName_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 16: { - state_ = input.readEnum(); - - 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 state_ = 0; - /** - *
-     * Denotes the state of etcd encryption.
-     * 
- * - * .google.container.v1beta1.DatabaseEncryption.State state = 2; - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override public int getStateValue() { - return state_; - } - /** - *
-     * Denotes the state of etcd encryption.
-     * 
- * - * .google.container.v1beta1.DatabaseEncryption.State state = 2; - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. - */ - public Builder setStateValue(int value) { - - state_ = value; - onChanged(); - return this; - } - /** - *
-     * Denotes the state of etcd encryption.
-     * 
- * - * .google.container.v1beta1.DatabaseEncryption.State state = 2; - * @return The state. - */ - @java.lang.Override - public com.google.container.v1beta1.DatabaseEncryption.State getState() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.DatabaseEncryption.State result = com.google.container.v1beta1.DatabaseEncryption.State.valueOf(state_); - return result == null ? com.google.container.v1beta1.DatabaseEncryption.State.UNRECOGNIZED : result; - } - /** - *
-     * Denotes the state of etcd encryption.
-     * 
- * - * .google.container.v1beta1.DatabaseEncryption.State state = 2; - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(com.google.container.v1beta1.DatabaseEncryption.State value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Denotes the state of etcd encryption.
-     * 
- * - * .google.container.v1beta1.DatabaseEncryption.State state = 2; - * @return This builder for chaining. - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private java.lang.Object keyName_ = ""; - /** - *
-     * Name of CloudKMS key to use for the encryption of secrets in etcd.
-     * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
-     * 
- * - * string key_name = 1; - * @return The keyName. - */ - public java.lang.String getKeyName() { - java.lang.Object ref = keyName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - keyName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Name of CloudKMS key to use for the encryption of secrets in etcd.
-     * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
-     * 
- * - * string key_name = 1; - * @return The bytes for keyName. - */ - public com.google.protobuf.ByteString - getKeyNameBytes() { - java.lang.Object ref = keyName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - keyName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Name of CloudKMS key to use for the encryption of secrets in etcd.
-     * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
-     * 
- * - * string key_name = 1; - * @param value The keyName to set. - * @return This builder for chaining. - */ - public Builder setKeyName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - keyName_ = value; - onChanged(); - return this; - } - /** - *
-     * Name of CloudKMS key to use for the encryption of secrets in etcd.
-     * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
-     * 
- * - * string key_name = 1; - * @return This builder for chaining. - */ - public Builder clearKeyName() { - - keyName_ = getDefaultInstance().getKeyName(); - onChanged(); - return this; - } - /** - *
-     * Name of CloudKMS key to use for the encryption of secrets in etcd.
-     * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
-     * 
- * - * string key_name = 1; - * @param value The bytes for keyName to set. - * @return This builder for chaining. - */ - public Builder setKeyNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - keyName_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.DatabaseEncryption) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.DatabaseEncryption) - private static final com.google.container.v1beta1.DatabaseEncryption DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.DatabaseEncryption(); - } - - public static com.google.container.v1beta1.DatabaseEncryption getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DatabaseEncryption parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index b4c39c07c742..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DatabaseEncryptionOrBuilder.java +++ /dev/null @@ -1,50 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface DatabaseEncryptionOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.DatabaseEncryption) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Denotes the state of etcd encryption.
-   * 
- * - * .google.container.v1beta1.DatabaseEncryption.State state = 2; - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - /** - *
-   * Denotes the state of etcd encryption.
-   * 
- * - * .google.container.v1beta1.DatabaseEncryption.State state = 2; - * @return The state. - */ - com.google.container.v1beta1.DatabaseEncryption.State getState(); - - /** - *
-   * Name of CloudKMS key to use for the encryption of secrets in etcd.
-   * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
-   * 
- * - * string key_name = 1; - * @return The keyName. - */ - java.lang.String getKeyName(); - /** - *
-   * Name of CloudKMS key to use for the encryption of secrets in etcd.
-   * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
-   * 
- * - * string key_name = 1; - * @return The bytes for keyName. - */ - com.google.protobuf.ByteString - getKeyNameBytes(); -} diff --git a/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 deleted file mode 100644 index 0b7c5601d720..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DatapathProvider.java +++ /dev/null @@ -1,157 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * The datapath provider selects the implementation of the Kubernetes networking
- * model for service resolution and network policy enforcement.
- * 
- * - * Protobuf enum {@code google.container.v1beta1.DatapathProvider} - */ -public enum DatapathProvider - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * Default value.
-   * 
- * - * DATAPATH_PROVIDER_UNSPECIFIED = 0; - */ - DATAPATH_PROVIDER_UNSPECIFIED(0), - /** - *
-   * Use the IPTables implementation based on kube-proxy.
-   * 
- * - * LEGACY_DATAPATH = 1; - */ - LEGACY_DATAPATH(1), - /** - *
-   * Use the eBPF based GKE Dataplane V2 with additional features. See the [GKE
-   * Dataplane V2
-   * documentation](https://cloud.google.com/kubernetes-engine/docs/how-to/dataplane-v2)
-   * for more.
-   * 
- * - * ADVANCED_DATAPATH = 2; - */ - ADVANCED_DATAPATH(2), - UNRECOGNIZED(-1), - ; - - /** - *
-   * Default value.
-   * 
- * - * DATAPATH_PROVIDER_UNSPECIFIED = 0; - */ - public static final int DATAPATH_PROVIDER_UNSPECIFIED_VALUE = 0; - /** - *
-   * Use the IPTables implementation based on kube-proxy.
-   * 
- * - * LEGACY_DATAPATH = 1; - */ - public static final int LEGACY_DATAPATH_VALUE = 1; - /** - *
-   * Use the eBPF based GKE Dataplane V2 with additional features. See the [GKE
-   * Dataplane V2
-   * documentation](https://cloud.google.com/kubernetes-engine/docs/how-to/dataplane-v2)
-   * for more.
-   * 
- * - * ADVANCED_DATAPATH = 2; - */ - public static final int ADVANCED_DATAPATH_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DatapathProvider valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static DatapathProvider forNumber(int value) { - switch (value) { - case 0: return DATAPATH_PROVIDER_UNSPECIFIED; - case 1: return LEGACY_DATAPATH; - case 2: return ADVANCED_DATAPATH; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - 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 deleted file mode 100644 index 2839f67b89e4..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DefaultSnatStatus.java +++ /dev/null @@ -1,492 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * DefaultSnatStatus contains the desired state of whether default sNAT should
- * be disabled on the cluster.
- * 
- * - * Protobuf type {@code google.container.v1beta1.DefaultSnatStatus} - */ -public final class DefaultSnatStatus extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.DefaultSnatStatus) - DefaultSnatStatusOrBuilder { -private static final long serialVersionUID = 0L; - // Use DefaultSnatStatus.newBuilder() to construct. - private DefaultSnatStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DefaultSnatStatus() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DefaultSnatStatus(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_DefaultSnatStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_DefaultSnatStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.DefaultSnatStatus.class, com.google.container.v1beta1.DefaultSnatStatus.Builder.class); - } - - public static final int DISABLED_FIELD_NUMBER = 1; - private boolean disabled_; - /** - *
-   * Disables cluster default sNAT rules.
-   * 
- * - * bool disabled = 1; - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (disabled_ != false) { - output.writeBool(1, disabled_); - } - 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(); - disabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_DefaultSnatStatus_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.DefaultSnatStatus getDefaultInstanceForType() { - return com.google.container.v1beta1.DefaultSnatStatus.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.DefaultSnatStatus build() { - com.google.container.v1beta1.DefaultSnatStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.DefaultSnatStatus buildPartial() { - com.google.container.v1beta1.DefaultSnatStatus result = new com.google.container.v1beta1.DefaultSnatStatus(this); - result.disabled_ = disabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.DefaultSnatStatus) { - return mergeFrom((com.google.container.v1beta1.DefaultSnatStatus)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.DefaultSnatStatus other) { - if (other == com.google.container.v1beta1.DefaultSnatStatus.getDefaultInstance()) return this; - if (other.getDisabled() != false) { - setDisabled(other.getDisabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 boolean disabled_ ; - /** - *
-     * Disables cluster default sNAT rules.
-     * 
- * - * bool disabled = 1; - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - /** - *
-     * Disables cluster default sNAT rules.
-     * 
- * - * bool disabled = 1; - * @param value The disabled to set. - * @return This builder for chaining. - */ - public Builder setDisabled(boolean value) { - - disabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Disables cluster default sNAT rules.
-     * 
- * - * bool disabled = 1; - * @return This builder for chaining. - */ - public Builder clearDisabled() { - - disabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.DefaultSnatStatus) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.DefaultSnatStatus) - private static final com.google.container.v1beta1.DefaultSnatStatus DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.DefaultSnatStatus(); - } - - public static com.google.container.v1beta1.DefaultSnatStatus getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DefaultSnatStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 80737b787dda..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DefaultSnatStatusOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface DefaultSnatStatusOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.DefaultSnatStatus) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Disables cluster default sNAT rules.
-   * 
- * - * bool disabled = 1; - * @return The disabled. - */ - boolean getDisabled(); -} diff --git a/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 deleted file mode 100644 index e5f43b335da4..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequest.java +++ /dev/null @@ -1,1160 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * DeleteClusterRequest deletes a cluster.
- * 
- * - * Protobuf type {@code google.container.v1beta1.DeleteClusterRequest} - */ -public final class DeleteClusterRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.DeleteClusterRequest) - DeleteClusterRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteClusterRequest.newBuilder() to construct. - private DeleteClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteClusterRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteClusterRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_DeleteClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_DeleteClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.DeleteClusterRequest.class, com.google.container.v1beta1.DeleteClusterRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=2866 - * @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=2866 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Required. Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2875 - * @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=2875 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * Required. Deprecated. The name of the cluster to delete.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. - * See google/container/v1beta1/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; - } - } - /** - *
-   * 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=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 NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster) of the cluster to delete.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 4; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project, location, cluster) of the cluster to delete.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 4; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - projectId_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_DeleteClusterRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.DeleteClusterRequest getDefaultInstanceForType() { - return com.google.container.v1beta1.DeleteClusterRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.DeleteClusterRequest build() { - com.google.container.v1beta1.DeleteClusterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.DeleteClusterRequest buildPartial() { - com.google.container.v1beta1.DeleteClusterRequest result = new com.google.container.v1beta1.DeleteClusterRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.DeleteClusterRequest) { - return mergeFrom((com.google.container.v1beta1.DeleteClusterRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.DeleteClusterRequest other) { - if (other == com.google.container.v1beta1.DeleteClusterRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - name_ = input.readStringRequireUtf8(); - - 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 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=2866 - * @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=2866 - * @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=2866 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=2866 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=2866 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2875 - * @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=2875 - * @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=2875 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2875 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2875 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * Required. Deprecated. The name of the cluster to delete.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. - * See google/container/v1beta1/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; - } - } - /** - *
-     * 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=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; - } - } - /** - *
-     * 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=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; - 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=2882 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster to delete.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. - * See google/container/v1beta1/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; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster) of the cluster to delete.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 4; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name (project, location, cluster) of the cluster to delete.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 4; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name (project, location, cluster) of the cluster to delete.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 4; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster) of the cluster to delete.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 4; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster) of the cluster to delete.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 4; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.DeleteClusterRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.DeleteClusterRequest) - private static final com.google.container.v1beta1.DeleteClusterRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.DeleteClusterRequest(); - } - - public static com.google.container.v1beta1.DeleteClusterRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index e79e0f92c3e0..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequestOrBuilder.java +++ /dev/null @@ -1,115 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface DeleteClusterRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.DeleteClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=2866 - * @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=2866 - * @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=2875 - * @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=2875 - * @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=2882 - * @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=2882 - * @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 deleted file mode 100644 index 834373c793b0..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequest.java +++ /dev/null @@ -1,1353 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * DeleteNodePoolRequest deletes a node pool for a cluster.
- * 
- * - * Protobuf type {@code google.container.v1beta1.DeleteNodePoolRequest} - */ -public final class DeleteNodePoolRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.DeleteNodePoolRequest) - DeleteNodePoolRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteNodePoolRequest.newBuilder() to construct. - private DeleteNodePoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteNodePoolRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - nodePoolId_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteNodePoolRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_DeleteNodePoolRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_DeleteNodePoolRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.DeleteNodePoolRequest.class, com.google.container.v1beta1.DeleteNodePoolRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=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.DeleteNodePoolRequest.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; - 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=3168 - * @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=3168 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * Required. Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3175 - * @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=3175 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_POOL_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object nodePoolId_; - /** - *
-   * Required. Deprecated. The name of the node pool to delete.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3182 - * @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=3182 - * @return The bytes for nodePoolId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getNodePoolIdBytes() { - java.lang.Object ref = nodePoolId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodePoolId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster, node pool id) of the node pool to
-   * delete. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 6; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project, location, cluster, node pool id) of the node pool to
-   * delete. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 6; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - projectId_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - nodePoolId_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_DeleteNodePoolRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.DeleteNodePoolRequest getDefaultInstanceForType() { - return com.google.container.v1beta1.DeleteNodePoolRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.DeleteNodePoolRequest build() { - com.google.container.v1beta1.DeleteNodePoolRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.DeleteNodePoolRequest buildPartial() { - com.google.container.v1beta1.DeleteNodePoolRequest result = new com.google.container.v1beta1.DeleteNodePoolRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.nodePoolId_ = nodePoolId_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.DeleteNodePoolRequest) { - return mergeFrom((com.google.container.v1beta1.DeleteNodePoolRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.DeleteNodePoolRequest other) { - if (other == com.google.container.v1beta1.DeleteNodePoolRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getNodePoolId().isEmpty()) { - nodePoolId_ = other.nodePoolId_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - nodePoolId_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 50: { - name_ = input.readStringRequireUtf8(); - - 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 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=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.DeleteNodePoolRequest.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.DeleteNodePoolRequest.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; - 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=3159 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=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; - 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=3168 - * @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=3168 - * @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=3168 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3168 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3168 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * Required. Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3175 - * @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=3175 - * @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=3175 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3175 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3175 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object nodePoolId_ = ""; - /** - *
-     * Required. Deprecated. The name of the node pool to delete.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3182 - * @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=3182 - * @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=3182 - * @param value The nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setNodePoolId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodePoolId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the node pool to delete.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3182 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearNodePoolId() { - - nodePoolId_ = getDefaultInstance().getNodePoolId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the node pool to delete.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3182 - * @param value The bytes for nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setNodePoolIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodePoolId_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to
-     * delete. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to
-     * delete. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to
-     * delete. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to
-     * delete. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to
-     * delete. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.DeleteNodePoolRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.DeleteNodePoolRequest) - private static final com.google.container.v1beta1.DeleteNodePoolRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.DeleteNodePoolRequest(); - } - - public static com.google.container.v1beta1.DeleteNodePoolRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteNodePoolRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index f95dbdb7de62..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequestOrBuilder.java +++ /dev/null @@ -1,143 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface DeleteNodePoolRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.DeleteNodePoolRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=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.DeleteNodePoolRequest.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.DeleteNodePoolRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3168 - * @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=3168 - * @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=3175 - * @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=3175 - * @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=3182 - * @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=3182 - * @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 deleted file mode 100644 index c4ea173af5ea..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DnsCacheConfig.java +++ /dev/null @@ -1,490 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Configuration for NodeLocal DNSCache
- * 
- * - * Protobuf type {@code google.container.v1beta1.DnsCacheConfig} - */ -public final class DnsCacheConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.DnsCacheConfig) - DnsCacheConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use DnsCacheConfig.newBuilder() to construct. - private DnsCacheConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DnsCacheConfig() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DnsCacheConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_DnsCacheConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_DnsCacheConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.DnsCacheConfig.class, com.google.container.v1beta1.DnsCacheConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-   * Whether NodeLocal DNSCache is enabled for this cluster.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - 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(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_DnsCacheConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.DnsCacheConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.DnsCacheConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.DnsCacheConfig build() { - com.google.container.v1beta1.DnsCacheConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.DnsCacheConfig buildPartial() { - com.google.container.v1beta1.DnsCacheConfig result = new com.google.container.v1beta1.DnsCacheConfig(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.DnsCacheConfig) { - return mergeFrom((com.google.container.v1beta1.DnsCacheConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.DnsCacheConfig other) { - if (other == com.google.container.v1beta1.DnsCacheConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 boolean enabled_ ; - /** - *
-     * Whether NodeLocal DNSCache is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Whether NodeLocal DNSCache is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether NodeLocal DNSCache is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.DnsCacheConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.DnsCacheConfig) - private static final com.google.container.v1beta1.DnsCacheConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.DnsCacheConfig(); - } - - public static com.google.container.v1beta1.DnsCacheConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DnsCacheConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 17c54b189158..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DnsCacheConfigOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface DnsCacheConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.DnsCacheConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether NodeLocal DNSCache is enabled for this cluster.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/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 deleted file mode 100644 index 6f3240bc4b3c..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EphemeralStorageConfig.java +++ /dev/null @@ -1,499 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * EphemeralStorageConfig contains configuration for the ephemeral storage
- * filesystem.
- * 
- * - * Protobuf type {@code google.container.v1beta1.EphemeralStorageConfig} - */ -public final class EphemeralStorageConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.EphemeralStorageConfig) - EphemeralStorageConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use EphemeralStorageConfig.newBuilder() to construct. - private EphemeralStorageConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EphemeralStorageConfig() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EphemeralStorageConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_EphemeralStorageConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_EphemeralStorageConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.EphemeralStorageConfig.class, com.google.container.v1beta1.EphemeralStorageConfig.Builder.class); - } - - public static final int LOCAL_SSD_COUNT_FIELD_NUMBER = 1; - private int localSsdCount_; - /** - *
-   * Number of local SSDs to use to back ephemeral storage. Uses NVMe
-   * interfaces. Each local SSD is 375 GB in size.
-   * If zero, it means to disable using local SSDs as ephemeral storage.
-   * 
- * - * int32 local_ssd_count = 1; - * @return The localSsdCount. - */ - @java.lang.Override - public int getLocalSsdCount() { - return localSsdCount_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (localSsdCount_ != 0) { - output.writeInt32(1, localSsdCount_); - } - 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(); - localSsdCount_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_EphemeralStorageConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.EphemeralStorageConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.EphemeralStorageConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.EphemeralStorageConfig build() { - com.google.container.v1beta1.EphemeralStorageConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.EphemeralStorageConfig buildPartial() { - com.google.container.v1beta1.EphemeralStorageConfig result = new com.google.container.v1beta1.EphemeralStorageConfig(this); - result.localSsdCount_ = localSsdCount_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.EphemeralStorageConfig) { - return mergeFrom((com.google.container.v1beta1.EphemeralStorageConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.EphemeralStorageConfig other) { - if (other == com.google.container.v1beta1.EphemeralStorageConfig.getDefaultInstance()) return this; - if (other.getLocalSsdCount() != 0) { - setLocalSsdCount(other.getLocalSsdCount()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 localSsdCount_ ; - /** - *
-     * Number of local SSDs to use to back ephemeral storage. Uses NVMe
-     * interfaces. Each local SSD is 375 GB in size.
-     * If zero, it means to disable using local SSDs as ephemeral storage.
-     * 
- * - * int32 local_ssd_count = 1; - * @return The localSsdCount. - */ - @java.lang.Override - public int getLocalSsdCount() { - return localSsdCount_; - } - /** - *
-     * Number of local SSDs to use to back ephemeral storage. Uses NVMe
-     * interfaces. Each local SSD is 375 GB in size.
-     * If zero, it means to disable using local SSDs as ephemeral storage.
-     * 
- * - * int32 local_ssd_count = 1; - * @param value The localSsdCount to set. - * @return This builder for chaining. - */ - public Builder setLocalSsdCount(int value) { - - localSsdCount_ = value; - onChanged(); - return this; - } - /** - *
-     * Number of local SSDs to use to back ephemeral storage. Uses NVMe
-     * interfaces. Each local SSD is 375 GB in size.
-     * If zero, it means to disable using local SSDs as ephemeral storage.
-     * 
- * - * int32 local_ssd_count = 1; - * @return This builder for chaining. - */ - public Builder clearLocalSsdCount() { - - localSsdCount_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.EphemeralStorageConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.EphemeralStorageConfig) - private static final com.google.container.v1beta1.EphemeralStorageConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.EphemeralStorageConfig(); - } - - public static com.google.container.v1beta1.EphemeralStorageConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EphemeralStorageConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 6f9d10a0d325..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EphemeralStorageConfigOrBuilder.java +++ /dev/null @@ -1,21 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface EphemeralStorageConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.EphemeralStorageConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Number of local SSDs to use to back ephemeral storage. Uses NVMe
-   * interfaces. Each local SSD is 375 GB in size.
-   * If zero, it means to disable using local SSDs as ephemeral storage.
-   * 
- * - * int32 local_ssd_count = 1; - * @return The localSsdCount. - */ - int getLocalSsdCount(); -} diff --git a/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 deleted file mode 100644 index 1f8effa9c147..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GPUSharingConfig.java +++ /dev/null @@ -1,778 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * 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_; - /** - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy result = com.google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy.valueOf(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(); - maxSharedClientsPerGpu_ = 0L; - - gpuSharingStrategy_ = 0; - 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_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); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.maxSharedClientsPerGpu_ = maxSharedClientsPerGpu_; - if (((from_bitField0_ & 0x00000001) != 0)) { - to_bitField0_ |= 0x00000001; - } - result.gpuSharingStrategy_ = gpuSharingStrategy_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.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(); - - break; - } // case 8 - case 16: { - gpuSharingStrategy_ = 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 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; - 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() { - - 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_ & 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; - * @param value The enum numeric value on the wire for gpuSharingStrategy to set. - * @return This builder for chaining. - */ - public Builder setGpuSharingStrategyValue(int value) { - bitField0_ |= 0x00000001; - gpuSharingStrategy_ = value; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy result = com.google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy.valueOf(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_ |= 0x00000001; - 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_ & ~0x00000001); - 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 deleted file mode 100644 index 0af7f88d28a5..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GPUSharingConfigOrBuilder.java +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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 deleted file mode 100644 index fc482b617fe1..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GatewayAPIConfig.java +++ /dev/null @@ -1,695 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.GatewayAPIConfig.Channel result = com.google.container.v1beta1.GatewayAPIConfig.Channel.valueOf(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(); - 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); - result.channel_ = channel_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.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(); - - 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 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; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.GatewayAPIConfig.Channel result = com.google.container.v1beta1.GatewayAPIConfig.Channel.valueOf(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(); - } - - 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() { - - 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 deleted file mode 100644 index 0611228cbbc8..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GatewayAPIConfigOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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 deleted file mode 100644 index e97bb746aab3..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcePersistentDiskCsiDriverConfig.java +++ /dev/null @@ -1,490 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Configuration for the Compute Engine PD CSI driver.
- * 
- * - * Protobuf type {@code google.container.v1beta1.GcePersistentDiskCsiDriverConfig} - */ -public final class GcePersistentDiskCsiDriverConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.GcePersistentDiskCsiDriverConfig) - GcePersistentDiskCsiDriverConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use GcePersistentDiskCsiDriverConfig.newBuilder() to construct. - private GcePersistentDiskCsiDriverConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GcePersistentDiskCsiDriverConfig() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GcePersistentDiskCsiDriverConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GcePersistentDiskCsiDriverConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GcePersistentDiskCsiDriverConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.class, com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-   * Whether the Compute Engine PD CSI driver is enabled for this cluster.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - 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(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GcePersistentDiskCsiDriverConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig build() { - com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig buildPartial() { - com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig result = new com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig) { - return mergeFrom((com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig other) { - if (other == com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 boolean enabled_ ; - /** - *
-     * Whether the Compute Engine PD CSI driver is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Whether the Compute Engine PD CSI driver is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether the Compute Engine PD CSI driver is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.GcePersistentDiskCsiDriverConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.GcePersistentDiskCsiDriverConfig) - private static final com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig(); - } - - public static com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcePersistentDiskCsiDriverConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 09297cae7f84..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcePersistentDiskCsiDriverConfigOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface GcePersistentDiskCsiDriverConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GcePersistentDiskCsiDriverConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether the Compute Engine PD CSI driver is enabled for this cluster.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/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 deleted file mode 100644 index 69c79095b327..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcfsConfig.java +++ /dev/null @@ -1,490 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * GcfsConfig contains configurations of Google Container File System.
- * 
- * - * Protobuf type {@code google.container.v1beta1.GcfsConfig} - */ -public final class GcfsConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.GcfsConfig) - GcfsConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use GcfsConfig.newBuilder() to construct. - private GcfsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GcfsConfig() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GcfsConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GcfsConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GcfsConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.GcfsConfig.class, com.google.container.v1beta1.GcfsConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-   * Whether to use GCFS.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - 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(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GcfsConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.GcfsConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.GcfsConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.GcfsConfig build() { - com.google.container.v1beta1.GcfsConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.GcfsConfig buildPartial() { - com.google.container.v1beta1.GcfsConfig result = new com.google.container.v1beta1.GcfsConfig(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.GcfsConfig) { - return mergeFrom((com.google.container.v1beta1.GcfsConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.GcfsConfig other) { - if (other == com.google.container.v1beta1.GcfsConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 boolean enabled_ ; - /** - *
-     * Whether to use GCFS.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Whether to use GCFS.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether to use GCFS.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.GcfsConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.GcfsConfig) - private static final com.google.container.v1beta1.GcfsConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.GcfsConfig(); - } - - public static com.google.container.v1beta1.GcfsConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcfsConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 89bd1c15ef8b..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcfsConfigOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface GcfsConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GcfsConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether to use GCFS.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/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 deleted file mode 100644 index c6437e5c57cb..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcpFilestoreCsiDriverConfig.java +++ /dev/null @@ -1,490 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Configuration for the GCP Filestore CSI driver.
- * 
- * - * Protobuf type {@code google.container.v1beta1.GcpFilestoreCsiDriverConfig} - */ -public final class GcpFilestoreCsiDriverConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.GcpFilestoreCsiDriverConfig) - GcpFilestoreCsiDriverConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use GcpFilestoreCsiDriverConfig.newBuilder() to construct. - private GcpFilestoreCsiDriverConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GcpFilestoreCsiDriverConfig() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GcpFilestoreCsiDriverConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GcpFilestoreCsiDriverConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GcpFilestoreCsiDriverConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.class, com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-   * Whether the GCP Filestore CSI driver is enabled for this cluster.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - 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(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GcpFilestoreCsiDriverConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.GcpFilestoreCsiDriverConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.GcpFilestoreCsiDriverConfig build() { - com.google.container.v1beta1.GcpFilestoreCsiDriverConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.GcpFilestoreCsiDriverConfig buildPartial() { - com.google.container.v1beta1.GcpFilestoreCsiDriverConfig result = new com.google.container.v1beta1.GcpFilestoreCsiDriverConfig(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.GcpFilestoreCsiDriverConfig) { - return mergeFrom((com.google.container.v1beta1.GcpFilestoreCsiDriverConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.GcpFilestoreCsiDriverConfig other) { - if (other == com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 boolean enabled_ ; - /** - *
-     * Whether the GCP Filestore CSI driver is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Whether the GCP Filestore CSI driver is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether the GCP Filestore CSI driver is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.GcpFilestoreCsiDriverConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.GcpFilestoreCsiDriverConfig) - private static final com.google.container.v1beta1.GcpFilestoreCsiDriverConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.GcpFilestoreCsiDriverConfig(); - } - - public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcpFilestoreCsiDriverConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index eb246b42e7f4..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcpFilestoreCsiDriverConfigOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface GcpFilestoreCsiDriverConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GcpFilestoreCsiDriverConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether the GCP Filestore CSI driver is enabled for this cluster.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/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 deleted file mode 100644 index 0af1805e3b07..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequest.java +++ /dev/null @@ -1,1160 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * GetClusterRequest gets the settings of a cluster.
- * 
- * - * Protobuf type {@code google.container.v1beta1.GetClusterRequest} - */ -public final class GetClusterRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.GetClusterRequest) - GetClusterRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetClusterRequest.newBuilder() to construct. - private GetClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetClusterRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetClusterRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.GetClusterRequest.class, com.google.container.v1beta1.GetClusterRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=2389 - * @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=2389 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Required. Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2398 - * @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=2398 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * Required. Deprecated. The name of the cluster to retrieve.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2405 - * @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=2405 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 5; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster) of the cluster to retrieve.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 5; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project, location, cluster) of the cluster to retrieve.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 5; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - projectId_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetClusterRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.GetClusterRequest getDefaultInstanceForType() { - return com.google.container.v1beta1.GetClusterRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.GetClusterRequest build() { - com.google.container.v1beta1.GetClusterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.GetClusterRequest buildPartial() { - com.google.container.v1beta1.GetClusterRequest result = new com.google.container.v1beta1.GetClusterRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.GetClusterRequest) { - return mergeFrom((com.google.container.v1beta1.GetClusterRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.GetClusterRequest other) { - if (other == com.google.container.v1beta1.GetClusterRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 42: { - name_ = input.readStringRequireUtf8(); - - 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 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=2389 - * @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=2389 - * @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=2389 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=2389 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=2389 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2398 - * @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=2398 - * @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=2398 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2398 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2398 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * Required. Deprecated. The name of the cluster to retrieve.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2405 - * @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=2405 - * @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=2405 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster to retrieve.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2405 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster to retrieve.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2405 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster) of the cluster to retrieve.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name (project, location, cluster) of the cluster to retrieve.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name (project, location, cluster) of the cluster to retrieve.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster) of the cluster to retrieve.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster) of the cluster to retrieve.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.GetClusterRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.GetClusterRequest) - private static final com.google.container.v1beta1.GetClusterRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.GetClusterRequest(); - } - - public static com.google.container.v1beta1.GetClusterRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index d7c2603f2b7c..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequestOrBuilder.java +++ /dev/null @@ -1,115 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface GetClusterRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GetClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=2389 - * @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=2389 - * @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=2398 - * @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=2398 - * @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=2405 - * @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=2405 - * @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 deleted file mode 100644 index 923c811d4c71..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysRequest.java +++ /dev/null @@ -1,587 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * GetJSONWebKeysRequest gets the public component of the keys used by the
- * cluster to sign token requests. This will be the jwks_uri for the discover
- * document returned by getOpenIDConfig. See the OpenID Connect
- * Discovery 1.0 specification for details.
- * 
- * - * Protobuf type {@code google.container.v1beta1.GetJSONWebKeysRequest} - */ -public final class GetJSONWebKeysRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.GetJSONWebKeysRequest) - GetJSONWebKeysRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetJSONWebKeysRequest.newBuilder() to construct. - private GetJSONWebKeysRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetJSONWebKeysRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetJSONWebKeysRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetJSONWebKeysRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetJSONWebKeysRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.GetJSONWebKeysRequest.class, com.google.container.v1beta1.GetJSONWebKeysRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - *
-   * The cluster (project, location, cluster 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(); - parent_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetJSONWebKeysRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.GetJSONWebKeysRequest getDefaultInstanceForType() { - return com.google.container.v1beta1.GetJSONWebKeysRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.GetJSONWebKeysRequest build() { - com.google.container.v1beta1.GetJSONWebKeysRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.GetJSONWebKeysRequest buildPartial() { - com.google.container.v1beta1.GetJSONWebKeysRequest result = new com.google.container.v1beta1.GetJSONWebKeysRequest(this); - result.parent_ = parent_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.GetJSONWebKeysRequest) { - return mergeFrom((com.google.container.v1beta1.GetJSONWebKeysRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.GetJSONWebKeysRequest other) { - if (other == com.google.container.v1beta1.GetJSONWebKeysRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 184db5ff192b..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface GetJSONWebKeysRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GetJSONWebKeysRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The cluster (project, location, cluster 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 deleted file mode 100644 index 2e54941d1b86..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysResponse.java +++ /dev/null @@ -1,875 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc 7517
- * 
- * - * Protobuf type {@code google.container.v1beta1.GetJSONWebKeysResponse} - */ -public final class GetJSONWebKeysResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.GetJSONWebKeysResponse) - GetJSONWebKeysResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetJSONWebKeysResponse.newBuilder() to construct. - private GetJSONWebKeysResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetJSONWebKeysResponse() { - keys_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetJSONWebKeysResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetJSONWebKeysResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetJSONWebKeysResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.GetJSONWebKeysResponse.class, com.google.container.v1beta1.GetJSONWebKeysResponse.Builder.class); - } - - public static final int KEYS_FIELD_NUMBER = 1; - private java.util.List keys_; - /** - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1beta1.Jwk keys = 1; - */ - @java.lang.Override - public java.util.List getKeysList() { - return keys_; - } - /** - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1beta1.Jwk keys = 1; - */ - @java.lang.Override - public java.util.List - getKeysOrBuilderList() { - return keys_; - } - /** - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1beta1.Jwk keys = 1; - */ - @java.lang.Override - public int getKeysCount() { - return keys_.size(); - } - /** - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1beta1.Jwk keys = 1; - */ - @java.lang.Override - public com.google.container.v1beta1.Jwk getKeys(int index) { - return keys_.get(index); - } - /** - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1beta1.Jwk keys = 1; - */ - @java.lang.Override - public com.google.container.v1beta1.JwkOrBuilder getKeysOrBuilder( - int index) { - return keys_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < keys_.size(); i++) { - output.writeMessage(1, keys_.get(i)); - } - 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(); - 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); - int from_bitField0_ = bitField0_; - if (keysBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - keys_ = java.util.Collections.unmodifiableList(keys_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.keys_ = keys_; - } else { - result.keys_ = keysBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.GetJSONWebKeysResponse) { - return mergeFrom((com.google.container.v1beta1.GetJSONWebKeysResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.GetJSONWebKeysResponse other) { - if (other == com.google.container.v1beta1.GetJSONWebKeysResponse.getDefaultInstance()) return this; - if (keysBuilder_ == null) { - if (!other.keys_.isEmpty()) { - if (keys_.isEmpty()) { - keys_ = other.keys_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureKeysIsMutable(); - keys_.addAll(other.keys_); - } - onChanged(); - } - } else { - if (!other.keys_.isEmpty()) { - if (keysBuilder_.isEmpty()) { - keysBuilder_.dispose(); - keysBuilder_ = null; - keys_ = other.keys_; - bitField0_ = (bitField0_ & ~0x00000001); - keysBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getKeysFieldBuilder() : null; - } else { - keysBuilder_.addAllMessages(other.keys_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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 deleted file mode 100644 index ff57f6495fe8..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysResponseOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface GetJSONWebKeysResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GetJSONWebKeysResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1beta1.Jwk keys = 1; - */ - java.util.List - getKeysList(); - /** - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1beta1.Jwk keys = 1; - */ - com.google.container.v1beta1.Jwk getKeys(int index); - /** - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1beta1.Jwk keys = 1; - */ - int getKeysCount(); - /** - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1beta1.Jwk keys = 1; - */ - java.util.List - getKeysOrBuilderList(); - /** - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1beta1.Jwk keys = 1; - */ - com.google.container.v1beta1.JwkOrBuilder getKeysOrBuilder( - int index); -} diff --git a/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 deleted file mode 100644 index 959dc12588f4..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequest.java +++ /dev/null @@ -1,1353 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * GetNodePoolRequest retrieves a node pool for a cluster.
- * 
- * - * Protobuf type {@code google.container.v1beta1.GetNodePoolRequest} - */ -public final class GetNodePoolRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.GetNodePoolRequest) - GetNodePoolRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetNodePoolRequest.newBuilder() to construct. - private GetNodePoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetNodePoolRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - nodePoolId_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetNodePoolRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetNodePoolRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetNodePoolRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.GetNodePoolRequest.class, com.google.container.v1beta1.GetNodePoolRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=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.GetNodePoolRequest.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; - 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=3238 - * @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=3238 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * Required. Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3245 - * @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=3245 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_POOL_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object nodePoolId_; - /** - *
-   * Required. Deprecated. The name of the node pool.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3252 - * @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=3252 - * @return The bytes for nodePoolId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getNodePoolIdBytes() { - java.lang.Object ref = nodePoolId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodePoolId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster, node pool id) of the node pool to
-   * get. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 6; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project, location, cluster, node pool id) of the node pool to
-   * get. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 6; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - projectId_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - nodePoolId_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetNodePoolRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.GetNodePoolRequest getDefaultInstanceForType() { - return com.google.container.v1beta1.GetNodePoolRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.GetNodePoolRequest build() { - com.google.container.v1beta1.GetNodePoolRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.GetNodePoolRequest buildPartial() { - com.google.container.v1beta1.GetNodePoolRequest result = new com.google.container.v1beta1.GetNodePoolRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.nodePoolId_ = nodePoolId_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.GetNodePoolRequest) { - return mergeFrom((com.google.container.v1beta1.GetNodePoolRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.GetNodePoolRequest other) { - if (other == com.google.container.v1beta1.GetNodePoolRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getNodePoolId().isEmpty()) { - nodePoolId_ = other.nodePoolId_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - nodePoolId_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 50: { - name_ = input.readStringRequireUtf8(); - - 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 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=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.GetNodePoolRequest.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.GetNodePoolRequest.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; - 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=3229 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=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; - 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=3238 - * @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=3238 - * @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=3238 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3238 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3238 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * Required. Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3245 - * @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=3245 - * @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=3245 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3245 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3245 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object nodePoolId_ = ""; - /** - *
-     * Required. Deprecated. The name of the node pool.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3252 - * @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=3252 - * @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=3252 - * @param value The nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setNodePoolId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodePoolId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the node pool.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3252 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearNodePoolId() { - - nodePoolId_ = getDefaultInstance().getNodePoolId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the node pool.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3252 - * @param value The bytes for nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setNodePoolIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodePoolId_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to
-     * get. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to
-     * get. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to
-     * get. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to
-     * get. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to
-     * get. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.GetNodePoolRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.GetNodePoolRequest) - private static final com.google.container.v1beta1.GetNodePoolRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.GetNodePoolRequest(); - } - - public static com.google.container.v1beta1.GetNodePoolRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNodePoolRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 211cb0f3b111..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequestOrBuilder.java +++ /dev/null @@ -1,143 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface GetNodePoolRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GetNodePoolRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=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.GetNodePoolRequest.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.GetNodePoolRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3238 - * @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=3238 - * @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=3245 - * @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=3245 - * @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=3252 - * @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=3252 - * @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 deleted file mode 100644 index 4426c5a8cbd7..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigRequest.java +++ /dev/null @@ -1,583 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * GetOpenIDConfigRequest gets the OIDC discovery document for the
- * cluster. See the OpenID Connect Discovery 1.0 specification for details.
- * 
- * - * Protobuf type {@code google.container.v1beta1.GetOpenIDConfigRequest} - */ -public final class GetOpenIDConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.GetOpenIDConfigRequest) - GetOpenIDConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetOpenIDConfigRequest.newBuilder() to construct. - private GetOpenIDConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetOpenIDConfigRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetOpenIDConfigRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetOpenIDConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetOpenIDConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.GetOpenIDConfigRequest.class, com.google.container.v1beta1.GetOpenIDConfigRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - *
-   * The cluster (project, location, cluster 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(); - parent_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetOpenIDConfigRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.GetOpenIDConfigRequest getDefaultInstanceForType() { - return com.google.container.v1beta1.GetOpenIDConfigRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.GetOpenIDConfigRequest build() { - com.google.container.v1beta1.GetOpenIDConfigRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.GetOpenIDConfigRequest buildPartial() { - com.google.container.v1beta1.GetOpenIDConfigRequest result = new com.google.container.v1beta1.GetOpenIDConfigRequest(this); - result.parent_ = parent_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.GetOpenIDConfigRequest) { - return mergeFrom((com.google.container.v1beta1.GetOpenIDConfigRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.GetOpenIDConfigRequest other) { - if (other == com.google.container.v1beta1.GetOpenIDConfigRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 905d93478a6a..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface GetOpenIDConfigRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GetOpenIDConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The cluster (project, location, cluster 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 deleted file mode 100644 index 71c0c8111c20..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigResponse.java +++ /dev/null @@ -1,1933 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * GetOpenIDConfigResponse is an OIDC discovery document for the cluster.
- * See the OpenID Connect Discovery 1.0 specification for details.
- * 
- * - * Protobuf type {@code google.container.v1beta1.GetOpenIDConfigResponse} - */ -public final class GetOpenIDConfigResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.GetOpenIDConfigResponse) - GetOpenIDConfigResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetOpenIDConfigResponse.newBuilder() to construct. - private GetOpenIDConfigResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetOpenIDConfigResponse() { - issuer_ = ""; - jwksUri_ = ""; - responseTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - subjectTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - idTokenSigningAlgValuesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - claimsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - grantTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetOpenIDConfigResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetOpenIDConfigResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetOpenIDConfigResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.GetOpenIDConfigResponse.class, com.google.container.v1beta1.GetOpenIDConfigResponse.Builder.class); - } - - public static final int ISSUER_FIELD_NUMBER = 1; - private volatile java.lang.Object issuer_; - /** - *
-   * OIDC Issuer.
-   * 
- * - * string issuer = 1; - * @return The issuer. - */ - @java.lang.Override - public java.lang.String getIssuer() { - java.lang.Object ref = issuer_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - issuer_ = s; - return s; - } - } - /** - *
-   * OIDC Issuer.
-   * 
- * - * string issuer = 1; - * @return The bytes for issuer. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIssuerBytes() { - java.lang.Object ref = issuer_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - issuer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int JWKS_URI_FIELD_NUMBER = 2; - private volatile java.lang.Object jwksUri_; - /** - *
-   * JSON Web Key uri.
-   * 
- * - * string jwks_uri = 2; - * @return The jwksUri. - */ - @java.lang.Override - public java.lang.String getJwksUri() { - java.lang.Object ref = jwksUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jwksUri_ = s; - return s; - } - } - /** - *
-   * JSON Web Key uri.
-   * 
- * - * string jwks_uri = 2; - * @return The bytes for jwksUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getJwksUriBytes() { - java.lang.Object ref = jwksUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - jwksUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESPONSE_TYPES_SUPPORTED_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList responseTypesSupported_; - /** - *
-   * Supported response types.
-   * 
- * - * repeated string response_types_supported = 3; - * @return A list containing the responseTypesSupported. - */ - public com.google.protobuf.ProtocolStringList - getResponseTypesSupportedList() { - return responseTypesSupported_; - } - /** - *
-   * Supported response types.
-   * 
- * - * repeated string response_types_supported = 3; - * @return The count of responseTypesSupported. - */ - public int getResponseTypesSupportedCount() { - return responseTypesSupported_.size(); - } - /** - *
-   * Supported response types.
-   * 
- * - * repeated string response_types_supported = 3; - * @param index The index of the element to return. - * @return The responseTypesSupported at the given index. - */ - public java.lang.String getResponseTypesSupported(int index) { - return responseTypesSupported_.get(index); - } - /** - *
-   * Supported response types.
-   * 
- * - * repeated string response_types_supported = 3; - * @param index The index of the value to return. - * @return The bytes of the responseTypesSupported at the given index. - */ - public com.google.protobuf.ByteString - getResponseTypesSupportedBytes(int index) { - return responseTypesSupported_.getByteString(index); - } - - public static final int SUBJECT_TYPES_SUPPORTED_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList subjectTypesSupported_; - /** - *
-   * Supported subject types.
-   * 
- * - * repeated string subject_types_supported = 4; - * @return A list containing the subjectTypesSupported. - */ - public com.google.protobuf.ProtocolStringList - getSubjectTypesSupportedList() { - return subjectTypesSupported_; - } - /** - *
-   * Supported subject types.
-   * 
- * - * repeated string subject_types_supported = 4; - * @return The count of subjectTypesSupported. - */ - public int getSubjectTypesSupportedCount() { - return subjectTypesSupported_.size(); - } - /** - *
-   * Supported subject types.
-   * 
- * - * repeated string subject_types_supported = 4; - * @param index The index of the element to return. - * @return The subjectTypesSupported at the given index. - */ - public java.lang.String getSubjectTypesSupported(int index) { - return subjectTypesSupported_.get(index); - } - /** - *
-   * Supported subject types.
-   * 
- * - * repeated string subject_types_supported = 4; - * @param index The index of the value to return. - * @return The bytes of the subjectTypesSupported at the given index. - */ - public com.google.protobuf.ByteString - getSubjectTypesSupportedBytes(int index) { - return subjectTypesSupported_.getByteString(index); - } - - public static final int ID_TOKEN_SIGNING_ALG_VALUES_SUPPORTED_FIELD_NUMBER = 5; - private com.google.protobuf.LazyStringList idTokenSigningAlgValuesSupported_; - /** - *
-   * supported ID Token signing Algorithms.
-   * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * @return A list containing the idTokenSigningAlgValuesSupported. - */ - public com.google.protobuf.ProtocolStringList - getIdTokenSigningAlgValuesSupportedList() { - return idTokenSigningAlgValuesSupported_; - } - /** - *
-   * supported ID Token signing Algorithms.
-   * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * @return The count of idTokenSigningAlgValuesSupported. - */ - public int getIdTokenSigningAlgValuesSupportedCount() { - return idTokenSigningAlgValuesSupported_.size(); - } - /** - *
-   * supported ID Token signing Algorithms.
-   * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * @param index The index of the element to return. - * @return The idTokenSigningAlgValuesSupported at the given index. - */ - public java.lang.String getIdTokenSigningAlgValuesSupported(int index) { - return idTokenSigningAlgValuesSupported_.get(index); - } - /** - *
-   * supported ID Token signing Algorithms.
-   * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * @param index The index of the value to return. - * @return The bytes of the idTokenSigningAlgValuesSupported at the given index. - */ - public com.google.protobuf.ByteString - getIdTokenSigningAlgValuesSupportedBytes(int index) { - return idTokenSigningAlgValuesSupported_.getByteString(index); - } - - public static final int CLAIMS_SUPPORTED_FIELD_NUMBER = 6; - private com.google.protobuf.LazyStringList claimsSupported_; - /** - *
-   * Supported claims.
-   * 
- * - * repeated string claims_supported = 6; - * @return A list containing the claimsSupported. - */ - public com.google.protobuf.ProtocolStringList - getClaimsSupportedList() { - return claimsSupported_; - } - /** - *
-   * Supported claims.
-   * 
- * - * repeated string claims_supported = 6; - * @return The count of claimsSupported. - */ - public int getClaimsSupportedCount() { - return claimsSupported_.size(); - } - /** - *
-   * Supported claims.
-   * 
- * - * repeated string claims_supported = 6; - * @param index The index of the element to return. - * @return The claimsSupported at the given index. - */ - public java.lang.String getClaimsSupported(int index) { - return claimsSupported_.get(index); - } - /** - *
-   * Supported claims.
-   * 
- * - * repeated string claims_supported = 6; - * @param index The index of the value to return. - * @return The bytes of the claimsSupported at the given index. - */ - public com.google.protobuf.ByteString - getClaimsSupportedBytes(int index) { - return claimsSupported_.getByteString(index); - } - - public static final int GRANT_TYPES_FIELD_NUMBER = 7; - private com.google.protobuf.LazyStringList grantTypes_; - /** - *
-   * Supported grant types.
-   * 
- * - * repeated string grant_types = 7; - * @return A list containing the grantTypes. - */ - public com.google.protobuf.ProtocolStringList - getGrantTypesList() { - return grantTypes_; - } - /** - *
-   * Supported grant types.
-   * 
- * - * repeated string grant_types = 7; - * @return The count of grantTypes. - */ - public int getGrantTypesCount() { - return grantTypes_.size(); - } - /** - *
-   * Supported grant types.
-   * 
- * - * repeated string grant_types = 7; - * @param index The index of the element to return. - * @return The grantTypes at the given index. - */ - public java.lang.String getGrantTypes(int index) { - return grantTypes_.get(index); - } - /** - *
-   * Supported grant types.
-   * 
- * - * repeated string grant_types = 7; - * @param index The index of the value to return. - * @return The bytes of the grantTypes at the given index. - */ - public com.google.protobuf.ByteString - getGrantTypesBytes(int index) { - return grantTypes_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - issuer_ = ""; - - jwksUri_ = ""; - - responseTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - subjectTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - idTokenSigningAlgValuesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - claimsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - grantTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetOpenIDConfigResponse_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.GetOpenIDConfigResponse getDefaultInstanceForType() { - return com.google.container.v1beta1.GetOpenIDConfigResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.GetOpenIDConfigResponse build() { - com.google.container.v1beta1.GetOpenIDConfigResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.GetOpenIDConfigResponse buildPartial() { - com.google.container.v1beta1.GetOpenIDConfigResponse result = new com.google.container.v1beta1.GetOpenIDConfigResponse(this); - int from_bitField0_ = bitField0_; - result.issuer_ = issuer_; - result.jwksUri_ = jwksUri_; - if (((bitField0_ & 0x00000001) != 0)) { - responseTypesSupported_ = responseTypesSupported_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.responseTypesSupported_ = responseTypesSupported_; - if (((bitField0_ & 0x00000002) != 0)) { - subjectTypesSupported_ = subjectTypesSupported_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.subjectTypesSupported_ = subjectTypesSupported_; - if (((bitField0_ & 0x00000004) != 0)) { - idTokenSigningAlgValuesSupported_ = idTokenSigningAlgValuesSupported_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.idTokenSigningAlgValuesSupported_ = idTokenSigningAlgValuesSupported_; - if (((bitField0_ & 0x00000008) != 0)) { - claimsSupported_ = claimsSupported_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.claimsSupported_ = claimsSupported_; - if (((bitField0_ & 0x00000010) != 0)) { - grantTypes_ = grantTypes_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.grantTypes_ = grantTypes_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.GetOpenIDConfigResponse) { - return mergeFrom((com.google.container.v1beta1.GetOpenIDConfigResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.GetOpenIDConfigResponse other) { - if (other == com.google.container.v1beta1.GetOpenIDConfigResponse.getDefaultInstance()) return this; - if (!other.getIssuer().isEmpty()) { - issuer_ = other.issuer_; - onChanged(); - } - if (!other.getJwksUri().isEmpty()) { - jwksUri_ = other.jwksUri_; - onChanged(); - } - if (!other.responseTypesSupported_.isEmpty()) { - if (responseTypesSupported_.isEmpty()) { - responseTypesSupported_ = other.responseTypesSupported_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureResponseTypesSupportedIsMutable(); - responseTypesSupported_.addAll(other.responseTypesSupported_); - } - onChanged(); - } - if (!other.subjectTypesSupported_.isEmpty()) { - if (subjectTypesSupported_.isEmpty()) { - subjectTypesSupported_ = other.subjectTypesSupported_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureSubjectTypesSupportedIsMutable(); - subjectTypesSupported_.addAll(other.subjectTypesSupported_); - } - onChanged(); - } - if (!other.idTokenSigningAlgValuesSupported_.isEmpty()) { - if (idTokenSigningAlgValuesSupported_.isEmpty()) { - idTokenSigningAlgValuesSupported_ = other.idTokenSigningAlgValuesSupported_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureIdTokenSigningAlgValuesSupportedIsMutable(); - idTokenSigningAlgValuesSupported_.addAll(other.idTokenSigningAlgValuesSupported_); - } - onChanged(); - } - if (!other.claimsSupported_.isEmpty()) { - if (claimsSupported_.isEmpty()) { - claimsSupported_ = other.claimsSupported_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureClaimsSupportedIsMutable(); - claimsSupported_.addAll(other.claimsSupported_); - } - onChanged(); - } - if (!other.grantTypes_.isEmpty()) { - if (grantTypes_.isEmpty()) { - grantTypes_ = other.grantTypes_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureGrantTypesIsMutable(); - grantTypes_.addAll(other.grantTypes_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - jwksUri_ = input.readStringRequireUtf8(); - - 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; - onChanged(); - return this; - } - /** - *
-     * OIDC Issuer.
-     * 
- * - * string issuer = 1; - * @return This builder for chaining. - */ - public Builder clearIssuer() { - - issuer_ = getDefaultInstance().getIssuer(); - onChanged(); - return this; - } - /** - *
-     * OIDC Issuer.
-     * 
- * - * string issuer = 1; - * @param value The bytes for issuer to set. - * @return This builder for chaining. - */ - public Builder setIssuerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - issuer_ = value; - onChanged(); - return this; - } - - private java.lang.Object jwksUri_ = ""; - /** - *
-     * JSON Web Key uri.
-     * 
- * - * string jwks_uri = 2; - * @return The jwksUri. - */ - public java.lang.String getJwksUri() { - java.lang.Object ref = jwksUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jwksUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * JSON Web Key uri.
-     * 
- * - * string jwks_uri = 2; - * @return The bytes for jwksUri. - */ - public com.google.protobuf.ByteString - getJwksUriBytes() { - java.lang.Object ref = jwksUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - jwksUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * JSON Web Key uri.
-     * 
- * - * string jwks_uri = 2; - * @param value The jwksUri to set. - * @return This builder for chaining. - */ - public Builder setJwksUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - jwksUri_ = value; - onChanged(); - return this; - } - /** - *
-     * JSON Web Key uri.
-     * 
- * - * string jwks_uri = 2; - * @return This builder for chaining. - */ - public Builder clearJwksUri() { - - jwksUri_ = getDefaultInstance().getJwksUri(); - onChanged(); - return this; - } - /** - *
-     * JSON Web Key uri.
-     * 
- * - * string jwks_uri = 2; - * @param value The bytes for jwksUri to set. - * @return This builder for chaining. - */ - public Builder setJwksUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - jwksUri_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList responseTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureResponseTypesSupportedIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - responseTypesSupported_ = new com.google.protobuf.LazyStringArrayList(responseTypesSupported_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * Supported response types.
-     * 
- * - * repeated string response_types_supported = 3; - * @return A list containing the responseTypesSupported. - */ - public com.google.protobuf.ProtocolStringList - getResponseTypesSupportedList() { - return responseTypesSupported_.getUnmodifiableView(); - } - /** - *
-     * Supported response types.
-     * 
- * - * repeated string response_types_supported = 3; - * @return The count of responseTypesSupported. - */ - public int getResponseTypesSupportedCount() { - return responseTypesSupported_.size(); - } - /** - *
-     * Supported response types.
-     * 
- * - * repeated string response_types_supported = 3; - * @param index The index of the element to return. - * @return The responseTypesSupported at the given index. - */ - public java.lang.String getResponseTypesSupported(int index) { - return responseTypesSupported_.get(index); - } - /** - *
-     * Supported response types.
-     * 
- * - * repeated string response_types_supported = 3; - * @param index The index of the value to return. - * @return The bytes of the responseTypesSupported at the given index. - */ - public com.google.protobuf.ByteString - getResponseTypesSupportedBytes(int index) { - return responseTypesSupported_.getByteString(index); - } - /** - *
-     * Supported response types.
-     * 
- * - * repeated string response_types_supported = 3; - * @param index The index to set the value at. - * @param value The responseTypesSupported to set. - * @return This builder for chaining. - */ - public Builder setResponseTypesSupported( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureResponseTypesSupportedIsMutable(); - responseTypesSupported_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * Supported response types.
-     * 
- * - * repeated string response_types_supported = 3; - * @param value The responseTypesSupported to add. - * @return This builder for chaining. - */ - public Builder addResponseTypesSupported( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureResponseTypesSupportedIsMutable(); - responseTypesSupported_.add(value); - onChanged(); - return this; - } - /** - *
-     * Supported response types.
-     * 
- * - * repeated string response_types_supported = 3; - * @param values The responseTypesSupported to add. - * @return This builder for chaining. - */ - public Builder addAllResponseTypesSupported( - java.lang.Iterable values) { - ensureResponseTypesSupportedIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, responseTypesSupported_); - onChanged(); - return this; - } - /** - *
-     * Supported response types.
-     * 
- * - * repeated string response_types_supported = 3; - * @return This builder for chaining. - */ - public Builder clearResponseTypesSupported() { - responseTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Supported response types.
-     * 
- * - * repeated string response_types_supported = 3; - * @param value The bytes of the responseTypesSupported to add. - * @return This builder for chaining. - */ - public Builder addResponseTypesSupportedBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureResponseTypesSupportedIsMutable(); - responseTypesSupported_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList subjectTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureSubjectTypesSupportedIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - subjectTypesSupported_ = new com.google.protobuf.LazyStringArrayList(subjectTypesSupported_); - bitField0_ |= 0x00000002; - } - } - /** - *
-     * Supported subject types.
-     * 
- * - * repeated string subject_types_supported = 4; - * @return A list containing the subjectTypesSupported. - */ - public com.google.protobuf.ProtocolStringList - getSubjectTypesSupportedList() { - return subjectTypesSupported_.getUnmodifiableView(); - } - /** - *
-     * Supported subject types.
-     * 
- * - * repeated string subject_types_supported = 4; - * @return The count of subjectTypesSupported. - */ - public int getSubjectTypesSupportedCount() { - return subjectTypesSupported_.size(); - } - /** - *
-     * Supported subject types.
-     * 
- * - * repeated string subject_types_supported = 4; - * @param index The index of the element to return. - * @return The subjectTypesSupported at the given index. - */ - public java.lang.String getSubjectTypesSupported(int index) { - return subjectTypesSupported_.get(index); - } - /** - *
-     * Supported subject types.
-     * 
- * - * repeated string subject_types_supported = 4; - * @param index The index of the value to return. - * @return The bytes of the subjectTypesSupported at the given index. - */ - public com.google.protobuf.ByteString - getSubjectTypesSupportedBytes(int index) { - return subjectTypesSupported_.getByteString(index); - } - /** - *
-     * Supported subject types.
-     * 
- * - * repeated string subject_types_supported = 4; - * @param index The index to set the value at. - * @param value The subjectTypesSupported to set. - * @return This builder for chaining. - */ - public Builder setSubjectTypesSupported( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubjectTypesSupportedIsMutable(); - subjectTypesSupported_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * Supported subject types.
-     * 
- * - * repeated string subject_types_supported = 4; - * @param value The subjectTypesSupported to add. - * @return This builder for chaining. - */ - public Builder addSubjectTypesSupported( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubjectTypesSupportedIsMutable(); - subjectTypesSupported_.add(value); - onChanged(); - return this; - } - /** - *
-     * Supported subject types.
-     * 
- * - * repeated string subject_types_supported = 4; - * @param values The subjectTypesSupported to add. - * @return This builder for chaining. - */ - public Builder addAllSubjectTypesSupported( - java.lang.Iterable values) { - ensureSubjectTypesSupportedIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, subjectTypesSupported_); - onChanged(); - return this; - } - /** - *
-     * Supported subject types.
-     * 
- * - * repeated string subject_types_supported = 4; - * @return This builder for chaining. - */ - public Builder clearSubjectTypesSupported() { - subjectTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Supported subject types.
-     * 
- * - * repeated string subject_types_supported = 4; - * @param value The bytes of the subjectTypesSupported to add. - * @return This builder for chaining. - */ - public Builder addSubjectTypesSupportedBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureSubjectTypesSupportedIsMutable(); - subjectTypesSupported_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList idTokenSigningAlgValuesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureIdTokenSigningAlgValuesSupportedIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - idTokenSigningAlgValuesSupported_ = new com.google.protobuf.LazyStringArrayList(idTokenSigningAlgValuesSupported_); - bitField0_ |= 0x00000004; - } - } - /** - *
-     * supported ID Token signing Algorithms.
-     * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * @return A list containing the idTokenSigningAlgValuesSupported. - */ - public com.google.protobuf.ProtocolStringList - getIdTokenSigningAlgValuesSupportedList() { - return idTokenSigningAlgValuesSupported_.getUnmodifiableView(); - } - /** - *
-     * supported ID Token signing Algorithms.
-     * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * @return The count of idTokenSigningAlgValuesSupported. - */ - public int getIdTokenSigningAlgValuesSupportedCount() { - return idTokenSigningAlgValuesSupported_.size(); - } - /** - *
-     * supported ID Token signing Algorithms.
-     * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * @param index The index of the element to return. - * @return The idTokenSigningAlgValuesSupported at the given index. - */ - public java.lang.String getIdTokenSigningAlgValuesSupported(int index) { - return idTokenSigningAlgValuesSupported_.get(index); - } - /** - *
-     * supported ID Token signing Algorithms.
-     * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * @param index The index of the value to return. - * @return The bytes of the idTokenSigningAlgValuesSupported at the given index. - */ - public com.google.protobuf.ByteString - getIdTokenSigningAlgValuesSupportedBytes(int index) { - return idTokenSigningAlgValuesSupported_.getByteString(index); - } - /** - *
-     * supported ID Token signing Algorithms.
-     * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * @param index The index to set the value at. - * @param value The idTokenSigningAlgValuesSupported to set. - * @return This builder for chaining. - */ - public Builder setIdTokenSigningAlgValuesSupported( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIdTokenSigningAlgValuesSupportedIsMutable(); - idTokenSigningAlgValuesSupported_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * supported ID Token signing Algorithms.
-     * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * @param value The idTokenSigningAlgValuesSupported to add. - * @return This builder for chaining. - */ - public Builder addIdTokenSigningAlgValuesSupported( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIdTokenSigningAlgValuesSupportedIsMutable(); - idTokenSigningAlgValuesSupported_.add(value); - onChanged(); - return this; - } - /** - *
-     * supported ID Token signing Algorithms.
-     * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * @param values The idTokenSigningAlgValuesSupported to add. - * @return This builder for chaining. - */ - public Builder addAllIdTokenSigningAlgValuesSupported( - java.lang.Iterable values) { - ensureIdTokenSigningAlgValuesSupportedIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, idTokenSigningAlgValuesSupported_); - onChanged(); - return this; - } - /** - *
-     * supported ID Token signing Algorithms.
-     * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * @return This builder for chaining. - */ - public Builder clearIdTokenSigningAlgValuesSupported() { - idTokenSigningAlgValuesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * supported ID Token signing Algorithms.
-     * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * @param value The bytes of the idTokenSigningAlgValuesSupported to add. - * @return This builder for chaining. - */ - public Builder addIdTokenSigningAlgValuesSupportedBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureIdTokenSigningAlgValuesSupportedIsMutable(); - idTokenSigningAlgValuesSupported_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList claimsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureClaimsSupportedIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - claimsSupported_ = new com.google.protobuf.LazyStringArrayList(claimsSupported_); - bitField0_ |= 0x00000008; - } - } - /** - *
-     * Supported claims.
-     * 
- * - * repeated string claims_supported = 6; - * @return A list containing the claimsSupported. - */ - public com.google.protobuf.ProtocolStringList - getClaimsSupportedList() { - return claimsSupported_.getUnmodifiableView(); - } - /** - *
-     * Supported claims.
-     * 
- * - * repeated string claims_supported = 6; - * @return The count of claimsSupported. - */ - public int getClaimsSupportedCount() { - return claimsSupported_.size(); - } - /** - *
-     * Supported claims.
-     * 
- * - * repeated string claims_supported = 6; - * @param index The index of the element to return. - * @return The claimsSupported at the given index. - */ - public java.lang.String getClaimsSupported(int index) { - return claimsSupported_.get(index); - } - /** - *
-     * Supported claims.
-     * 
- * - * repeated string claims_supported = 6; - * @param index The index of the value to return. - * @return The bytes of the claimsSupported at the given index. - */ - public com.google.protobuf.ByteString - getClaimsSupportedBytes(int index) { - return claimsSupported_.getByteString(index); - } - /** - *
-     * Supported claims.
-     * 
- * - * repeated string claims_supported = 6; - * @param index The index to set the value at. - * @param value The claimsSupported to set. - * @return This builder for chaining. - */ - public Builder setClaimsSupported( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureClaimsSupportedIsMutable(); - claimsSupported_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * Supported claims.
-     * 
- * - * repeated string claims_supported = 6; - * @param value The claimsSupported to add. - * @return This builder for chaining. - */ - public Builder addClaimsSupported( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureClaimsSupportedIsMutable(); - claimsSupported_.add(value); - onChanged(); - return this; - } - /** - *
-     * Supported claims.
-     * 
- * - * repeated string claims_supported = 6; - * @param values The claimsSupported to add. - * @return This builder for chaining. - */ - public Builder addAllClaimsSupported( - java.lang.Iterable values) { - ensureClaimsSupportedIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, claimsSupported_); - onChanged(); - return this; - } - /** - *
-     * Supported claims.
-     * 
- * - * repeated string claims_supported = 6; - * @return This builder for chaining. - */ - public Builder clearClaimsSupported() { - claimsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - *
-     * Supported claims.
-     * 
- * - * repeated string claims_supported = 6; - * @param value The bytes of the claimsSupported to add. - * @return This builder for chaining. - */ - public Builder addClaimsSupportedBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureClaimsSupportedIsMutable(); - claimsSupported_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList grantTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureGrantTypesIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - grantTypes_ = new com.google.protobuf.LazyStringArrayList(grantTypes_); - bitField0_ |= 0x00000010; - } - } - /** - *
-     * Supported grant types.
-     * 
- * - * repeated string grant_types = 7; - * @return A list containing the grantTypes. - */ - public com.google.protobuf.ProtocolStringList - getGrantTypesList() { - return grantTypes_.getUnmodifiableView(); - } - /** - *
-     * Supported grant types.
-     * 
- * - * repeated string grant_types = 7; - * @return The count of grantTypes. - */ - public int getGrantTypesCount() { - return grantTypes_.size(); - } - /** - *
-     * Supported grant types.
-     * 
- * - * repeated string grant_types = 7; - * @param index The index of the element to return. - * @return The grantTypes at the given index. - */ - public java.lang.String getGrantTypes(int index) { - return grantTypes_.get(index); - } - /** - *
-     * Supported grant types.
-     * 
- * - * repeated string grant_types = 7; - * @param index The index of the value to return. - * @return The bytes of the grantTypes at the given index. - */ - public com.google.protobuf.ByteString - getGrantTypesBytes(int index) { - return grantTypes_.getByteString(index); - } - /** - *
-     * Supported grant types.
-     * 
- * - * repeated string grant_types = 7; - * @param index The index to set the value at. - * @param value The grantTypes to set. - * @return This builder for chaining. - */ - public Builder setGrantTypes( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureGrantTypesIsMutable(); - grantTypes_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * Supported grant types.
-     * 
- * - * repeated string grant_types = 7; - * @param value The grantTypes to add. - * @return This builder for chaining. - */ - public Builder addGrantTypes( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureGrantTypesIsMutable(); - grantTypes_.add(value); - onChanged(); - return this; - } - /** - *
-     * Supported grant types.
-     * 
- * - * repeated string grant_types = 7; - * @param values The grantTypes to add. - * @return This builder for chaining. - */ - public Builder addAllGrantTypes( - java.lang.Iterable values) { - ensureGrantTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, grantTypes_); - onChanged(); - return this; - } - /** - *
-     * Supported grant types.
-     * 
- * - * repeated string grant_types = 7; - * @return This builder for chaining. - */ - public Builder clearGrantTypes() { - grantTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - *
-     * Supported grant types.
-     * 
- * - * repeated string grant_types = 7; - * @param value The bytes of the grantTypes to add. - * @return This builder for chaining. - */ - public Builder addGrantTypesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureGrantTypesIsMutable(); - grantTypes_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.GetOpenIDConfigResponse) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.GetOpenIDConfigResponse) - private static final com.google.container.v1beta1.GetOpenIDConfigResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.GetOpenIDConfigResponse(); - } - - public static com.google.container.v1beta1.GetOpenIDConfigResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetOpenIDConfigResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 28a5de38bd87..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigResponseOrBuilder.java +++ /dev/null @@ -1,254 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface GetOpenIDConfigResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GetOpenIDConfigResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * OIDC Issuer.
-   * 
- * - * string issuer = 1; - * @return The issuer. - */ - java.lang.String getIssuer(); - /** - *
-   * OIDC Issuer.
-   * 
- * - * string issuer = 1; - * @return The bytes for issuer. - */ - com.google.protobuf.ByteString - getIssuerBytes(); - - /** - *
-   * JSON Web Key uri.
-   * 
- * - * string jwks_uri = 2; - * @return The jwksUri. - */ - java.lang.String getJwksUri(); - /** - *
-   * JSON Web Key uri.
-   * 
- * - * string jwks_uri = 2; - * @return The bytes for jwksUri. - */ - com.google.protobuf.ByteString - getJwksUriBytes(); - - /** - *
-   * Supported response types.
-   * 
- * - * repeated string response_types_supported = 3; - * @return A list containing the responseTypesSupported. - */ - java.util.List - getResponseTypesSupportedList(); - /** - *
-   * Supported response types.
-   * 
- * - * repeated string response_types_supported = 3; - * @return The count of responseTypesSupported. - */ - int getResponseTypesSupportedCount(); - /** - *
-   * Supported response types.
-   * 
- * - * repeated string response_types_supported = 3; - * @param index The index of the element to return. - * @return The responseTypesSupported at the given index. - */ - java.lang.String getResponseTypesSupported(int index); - /** - *
-   * Supported response types.
-   * 
- * - * repeated string response_types_supported = 3; - * @param index The index of the value to return. - * @return The bytes of the responseTypesSupported at the given index. - */ - com.google.protobuf.ByteString - getResponseTypesSupportedBytes(int index); - - /** - *
-   * Supported subject types.
-   * 
- * - * repeated string subject_types_supported = 4; - * @return A list containing the subjectTypesSupported. - */ - java.util.List - getSubjectTypesSupportedList(); - /** - *
-   * Supported subject types.
-   * 
- * - * repeated string subject_types_supported = 4; - * @return The count of subjectTypesSupported. - */ - int getSubjectTypesSupportedCount(); - /** - *
-   * Supported subject types.
-   * 
- * - * repeated string subject_types_supported = 4; - * @param index The index of the element to return. - * @return The subjectTypesSupported at the given index. - */ - java.lang.String getSubjectTypesSupported(int index); - /** - *
-   * Supported subject types.
-   * 
- * - * repeated string subject_types_supported = 4; - * @param index The index of the value to return. - * @return The bytes of the subjectTypesSupported at the given index. - */ - com.google.protobuf.ByteString - getSubjectTypesSupportedBytes(int index); - - /** - *
-   * supported ID Token signing Algorithms.
-   * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * @return A list containing the idTokenSigningAlgValuesSupported. - */ - java.util.List - getIdTokenSigningAlgValuesSupportedList(); - /** - *
-   * supported ID Token signing Algorithms.
-   * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * @return The count of idTokenSigningAlgValuesSupported. - */ - int getIdTokenSigningAlgValuesSupportedCount(); - /** - *
-   * supported ID Token signing Algorithms.
-   * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * @param index The index of the element to return. - * @return The idTokenSigningAlgValuesSupported at the given index. - */ - java.lang.String getIdTokenSigningAlgValuesSupported(int index); - /** - *
-   * supported ID Token signing Algorithms.
-   * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * @param index The index of the value to return. - * @return The bytes of the idTokenSigningAlgValuesSupported at the given index. - */ - com.google.protobuf.ByteString - getIdTokenSigningAlgValuesSupportedBytes(int index); - - /** - *
-   * Supported claims.
-   * 
- * - * repeated string claims_supported = 6; - * @return A list containing the claimsSupported. - */ - java.util.List - getClaimsSupportedList(); - /** - *
-   * Supported claims.
-   * 
- * - * repeated string claims_supported = 6; - * @return The count of claimsSupported. - */ - int getClaimsSupportedCount(); - /** - *
-   * Supported claims.
-   * 
- * - * repeated string claims_supported = 6; - * @param index The index of the element to return. - * @return The claimsSupported at the given index. - */ - java.lang.String getClaimsSupported(int index); - /** - *
-   * Supported claims.
-   * 
- * - * repeated string claims_supported = 6; - * @param index The index of the value to return. - * @return The bytes of the claimsSupported at the given index. - */ - com.google.protobuf.ByteString - getClaimsSupportedBytes(int index); - - /** - *
-   * Supported grant types.
-   * 
- * - * repeated string grant_types = 7; - * @return A list containing the grantTypes. - */ - java.util.List - getGrantTypesList(); - /** - *
-   * Supported grant types.
-   * 
- * - * repeated string grant_types = 7; - * @return The count of grantTypes. - */ - int getGrantTypesCount(); - /** - *
-   * Supported grant types.
-   * 
- * - * repeated string grant_types = 7; - * @param index The index of the element to return. - * @return The grantTypes at the given index. - */ - java.lang.String getGrantTypes(int index); - /** - *
-   * Supported grant types.
-   * 
- * - * repeated string grant_types = 7; - * @param index The index of the value to return. - * @return The bytes of the grantTypes at the given index. - */ - com.google.protobuf.ByteString - getGrantTypesBytes(int index); -} diff --git a/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 deleted file mode 100644 index 1029d2c0ae94..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequest.java +++ /dev/null @@ -1,1160 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * GetOperationRequest gets a single operation.
- * 
- * - * Protobuf type {@code google.container.v1beta1.GetOperationRequest} - */ -public final class GetOperationRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.GetOperationRequest) - GetOperationRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetOperationRequest.newBuilder() to construct. - private GetOperationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetOperationRequest() { - projectId_ = ""; - zone_ = ""; - operationId_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetOperationRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetOperationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetOperationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.GetOperationRequest.class, com.google.container.v1beta1.GetOperationRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=2933 - * @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=2933 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Required. Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2942 - * @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=2942 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OPERATION_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object operationId_; - /** - *
-   * Required. Deprecated. The server-assigned `name` of the operation.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string operation_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2949 - * @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=2949 - * @return The bytes for operationId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getOperationIdBytes() { - java.lang.Object ref = operationId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - operationId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 5; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, operation id) of the operation to get.
-   * Specified in the format `projects/*/locations/*/operations/*`.
-   * 
- * - * string name = 5; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project, location, operation id) of the operation to get.
-   * Specified in the format `projects/*/locations/*/operations/*`.
-   * 
- * - * string name = 5; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - projectId_ = ""; - - zone_ = ""; - - operationId_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetOperationRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.GetOperationRequest getDefaultInstanceForType() { - return com.google.container.v1beta1.GetOperationRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.GetOperationRequest build() { - com.google.container.v1beta1.GetOperationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.GetOperationRequest buildPartial() { - com.google.container.v1beta1.GetOperationRequest result = new com.google.container.v1beta1.GetOperationRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.operationId_ = operationId_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.GetOperationRequest) { - return mergeFrom((com.google.container.v1beta1.GetOperationRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.GetOperationRequest other) { - if (other == com.google.container.v1beta1.GetOperationRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getOperationId().isEmpty()) { - operationId_ = other.operationId_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - operationId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 42: { - name_ = input.readStringRequireUtf8(); - - 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 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=2933 - * @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=2933 - * @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=2933 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=2933 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=2933 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2942 - * @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=2942 - * @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=2942 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2942 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2942 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object operationId_ = ""; - /** - *
-     * Required. Deprecated. The server-assigned `name` of the operation.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string operation_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2949 - * @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=2949 - * @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=2949 - * @param value The operationId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setOperationId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - operationId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The server-assigned `name` of the operation.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string operation_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2949 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearOperationId() { - - operationId_ = getDefaultInstance().getOperationId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The server-assigned `name` of the operation.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string operation_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2949 - * @param value The bytes for operationId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setOperationIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - operationId_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, operation id) of the operation to get.
-     * Specified in the format `projects/*/locations/*/operations/*`.
-     * 
- * - * string name = 5; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name (project, location, operation id) of the operation to get.
-     * Specified in the format `projects/*/locations/*/operations/*`.
-     * 
- * - * string name = 5; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name (project, location, operation id) of the operation to get.
-     * Specified in the format `projects/*/locations/*/operations/*`.
-     * 
- * - * string name = 5; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name (project, location, operation id) of the operation to get.
-     * Specified in the format `projects/*/locations/*/operations/*`.
-     * 
- * - * string name = 5; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project, location, operation id) of the operation to get.
-     * Specified in the format `projects/*/locations/*/operations/*`.
-     * 
- * - * string name = 5; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.GetOperationRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.GetOperationRequest) - private static final com.google.container.v1beta1.GetOperationRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.GetOperationRequest(); - } - - public static com.google.container.v1beta1.GetOperationRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetOperationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index e4de79821b45..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequestOrBuilder.java +++ /dev/null @@ -1,115 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface GetOperationRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GetOperationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=2933 - * @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=2933 - * @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=2942 - * @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=2942 - * @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=2949 - * @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=2949 - * @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 deleted file mode 100644 index 6ede8756a953..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequest.java +++ /dev/null @@ -1,974 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Gets the current Kubernetes Engine service configuration.
- * 
- * - * Protobuf type {@code google.container.v1beta1.GetServerConfigRequest} - */ -public final class GetServerConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.GetServerConfigRequest) - GetServerConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetServerConfigRequest.newBuilder() to construct. - private GetServerConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetServerConfigRequest() { - projectId_ = ""; - zone_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetServerConfigRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetServerConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetServerConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.GetServerConfigRequest.class, com.google.container.v1beta1.GetServerConfigRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=3030 - * @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=3030 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Required. Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) to return
-   * operations for. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3039 - * @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=3039 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object name_; - /** - *
-   * The name (project and location) of the server config to get,
-   * specified in the format `projects/*/locations/*`.
-   * 
- * - * string name = 4; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project and location) of the server config to get,
-   * specified in the format `projects/*/locations/*`.
-   * 
- * - * string name = 4; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - projectId_ = ""; - - zone_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GetServerConfigRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.GetServerConfigRequest getDefaultInstanceForType() { - return com.google.container.v1beta1.GetServerConfigRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.GetServerConfigRequest build() { - com.google.container.v1beta1.GetServerConfigRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.GetServerConfigRequest buildPartial() { - com.google.container.v1beta1.GetServerConfigRequest result = new com.google.container.v1beta1.GetServerConfigRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.GetServerConfigRequest) { - return mergeFrom((com.google.container.v1beta1.GetServerConfigRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.GetServerConfigRequest other) { - if (other == com.google.container.v1beta1.GetServerConfigRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 34: { - name_ = input.readStringRequireUtf8(); - - 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 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=3030 - * @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=3030 - * @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=3030 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=3030 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=3030 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) to return
-     * operations for. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3039 - * @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=3039 - * @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=3039 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) to return
-     * operations for. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3039 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) to return
-     * operations for. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3039 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project and location) of the server config to get,
-     * specified in the format `projects/*/locations/*`.
-     * 
- * - * string name = 4; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name (project and location) of the server config to get,
-     * specified in the format `projects/*/locations/*`.
-     * 
- * - * string name = 4; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name (project and location) of the server config to get,
-     * specified in the format `projects/*/locations/*`.
-     * 
- * - * string name = 4; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name (project and location) of the server config to get,
-     * specified in the format `projects/*/locations/*`.
-     * 
- * - * string name = 4; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project and location) of the server config to get,
-     * specified in the format `projects/*/locations/*`.
-     * 
- * - * string name = 4; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.GetServerConfigRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.GetServerConfigRequest) - private static final com.google.container.v1beta1.GetServerConfigRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.GetServerConfigRequest(); - } - - public static com.google.container.v1beta1.GetServerConfigRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetServerConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 47a14784c5d3..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequestOrBuilder.java +++ /dev/null @@ -1,89 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface GetServerConfigRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GetServerConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=3030 - * @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=3030 - * @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=3039 - * @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=3039 - * @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 deleted file mode 100644 index bebbbced1e7c..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GkeBackupAgentConfig.java +++ /dev/null @@ -1,490 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Configuration for the Backup for GKE Agent.
- * 
- * - * Protobuf type {@code google.container.v1beta1.GkeBackupAgentConfig} - */ -public final class GkeBackupAgentConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.GkeBackupAgentConfig) - GkeBackupAgentConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use GkeBackupAgentConfig.newBuilder() to construct. - private GkeBackupAgentConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GkeBackupAgentConfig() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GkeBackupAgentConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GkeBackupAgentConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GkeBackupAgentConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.GkeBackupAgentConfig.class, com.google.container.v1beta1.GkeBackupAgentConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-   * Whether the Backup for GKE agent is enabled for this cluster.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - 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(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GkeBackupAgentConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.GkeBackupAgentConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.GkeBackupAgentConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.GkeBackupAgentConfig build() { - com.google.container.v1beta1.GkeBackupAgentConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.GkeBackupAgentConfig buildPartial() { - com.google.container.v1beta1.GkeBackupAgentConfig result = new com.google.container.v1beta1.GkeBackupAgentConfig(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.GkeBackupAgentConfig) { - return mergeFrom((com.google.container.v1beta1.GkeBackupAgentConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.GkeBackupAgentConfig other) { - if (other == com.google.container.v1beta1.GkeBackupAgentConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 boolean enabled_ ; - /** - *
-     * Whether the Backup for GKE agent is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Whether the Backup for GKE agent is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether the Backup for GKE agent is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.GkeBackupAgentConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.GkeBackupAgentConfig) - private static final com.google.container.v1beta1.GkeBackupAgentConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.GkeBackupAgentConfig(); - } - - public static com.google.container.v1beta1.GkeBackupAgentConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GkeBackupAgentConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 60da35fabd9b..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GkeBackupAgentConfigOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface GkeBackupAgentConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GkeBackupAgentConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether the Backup for GKE agent is enabled for this cluster.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/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 deleted file mode 100644 index 21d0025b1e3d..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HorizontalPodAutoscaling.java +++ /dev/null @@ -1,502 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Configuration options for the horizontal pod autoscaling feature, which
- * increases or decreases the number of replica pods a replication controller
- * has based on the resource usage of the existing pods.
- * 
- * - * Protobuf type {@code google.container.v1beta1.HorizontalPodAutoscaling} - */ -public final class HorizontalPodAutoscaling extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.HorizontalPodAutoscaling) - HorizontalPodAutoscalingOrBuilder { -private static final long serialVersionUID = 0L; - // Use HorizontalPodAutoscaling.newBuilder() to construct. - private HorizontalPodAutoscaling(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HorizontalPodAutoscaling() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new HorizontalPodAutoscaling(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_HorizontalPodAutoscaling_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_HorizontalPodAutoscaling_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.HorizontalPodAutoscaling.class, com.google.container.v1beta1.HorizontalPodAutoscaling.Builder.class); - } - - public static final int DISABLED_FIELD_NUMBER = 1; - private boolean disabled_; - /** - *
-   * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
-   * When enabled, it ensures that metrics are collected into Stackdriver
-   * Monitoring.
-   * 
- * - * bool disabled = 1; - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (disabled_ != false) { - output.writeBool(1, disabled_); - } - 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(); - disabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_HorizontalPodAutoscaling_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.HorizontalPodAutoscaling getDefaultInstanceForType() { - return com.google.container.v1beta1.HorizontalPodAutoscaling.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.HorizontalPodAutoscaling build() { - com.google.container.v1beta1.HorizontalPodAutoscaling result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.HorizontalPodAutoscaling buildPartial() { - com.google.container.v1beta1.HorizontalPodAutoscaling result = new com.google.container.v1beta1.HorizontalPodAutoscaling(this); - result.disabled_ = disabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.HorizontalPodAutoscaling) { - return mergeFrom((com.google.container.v1beta1.HorizontalPodAutoscaling)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.HorizontalPodAutoscaling other) { - if (other == com.google.container.v1beta1.HorizontalPodAutoscaling.getDefaultInstance()) return this; - if (other.getDisabled() != false) { - setDisabled(other.getDisabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 boolean disabled_ ; - /** - *
-     * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
-     * When enabled, it ensures that metrics are collected into Stackdriver
-     * Monitoring.
-     * 
- * - * bool disabled = 1; - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - /** - *
-     * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
-     * When enabled, it ensures that metrics are collected into Stackdriver
-     * Monitoring.
-     * 
- * - * bool disabled = 1; - * @param value The disabled to set. - * @return This builder for chaining. - */ - public Builder setDisabled(boolean value) { - - disabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
-     * When enabled, it ensures that metrics are collected into Stackdriver
-     * Monitoring.
-     * 
- * - * bool disabled = 1; - * @return This builder for chaining. - */ - public Builder clearDisabled() { - - disabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.HorizontalPodAutoscaling) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.HorizontalPodAutoscaling) - private static final com.google.container.v1beta1.HorizontalPodAutoscaling DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.HorizontalPodAutoscaling(); - } - - public static com.google.container.v1beta1.HorizontalPodAutoscaling getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HorizontalPodAutoscaling parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 07be7fd0cafd..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HorizontalPodAutoscalingOrBuilder.java +++ /dev/null @@ -1,21 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface HorizontalPodAutoscalingOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.HorizontalPodAutoscaling) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
-   * When enabled, it ensures that metrics are collected into Stackdriver
-   * Monitoring.
-   * 
- * - * bool disabled = 1; - * @return The disabled. - */ - boolean getDisabled(); -} diff --git a/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 deleted file mode 100644 index b4920e0cb22a..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HttpLoadBalancing.java +++ /dev/null @@ -1,500 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Configuration options for the HTTP (L7) load balancing controller addon,
- * which makes it easy to set up HTTP load balancers for services in a cluster.
- * 
- * - * Protobuf type {@code google.container.v1beta1.HttpLoadBalancing} - */ -public final class HttpLoadBalancing extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.HttpLoadBalancing) - HttpLoadBalancingOrBuilder { -private static final long serialVersionUID = 0L; - // Use HttpLoadBalancing.newBuilder() to construct. - private HttpLoadBalancing(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HttpLoadBalancing() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new HttpLoadBalancing(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_HttpLoadBalancing_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_HttpLoadBalancing_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.HttpLoadBalancing.class, com.google.container.v1beta1.HttpLoadBalancing.Builder.class); - } - - public static final int DISABLED_FIELD_NUMBER = 1; - private boolean disabled_; - /** - *
-   * Whether the HTTP Load Balancing controller is enabled in the cluster.
-   * When enabled, it runs a small pod in the cluster that manages the load
-   * balancers.
-   * 
- * - * bool disabled = 1; - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (disabled_ != false) { - output.writeBool(1, disabled_); - } - 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(); - disabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_HttpLoadBalancing_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.HttpLoadBalancing getDefaultInstanceForType() { - return com.google.container.v1beta1.HttpLoadBalancing.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.HttpLoadBalancing build() { - com.google.container.v1beta1.HttpLoadBalancing result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.HttpLoadBalancing buildPartial() { - com.google.container.v1beta1.HttpLoadBalancing result = new com.google.container.v1beta1.HttpLoadBalancing(this); - result.disabled_ = disabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.HttpLoadBalancing) { - return mergeFrom((com.google.container.v1beta1.HttpLoadBalancing)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.HttpLoadBalancing other) { - if (other == com.google.container.v1beta1.HttpLoadBalancing.getDefaultInstance()) return this; - if (other.getDisabled() != false) { - setDisabled(other.getDisabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 boolean disabled_ ; - /** - *
-     * Whether the HTTP Load Balancing controller is enabled in the cluster.
-     * When enabled, it runs a small pod in the cluster that manages the load
-     * balancers.
-     * 
- * - * bool disabled = 1; - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - /** - *
-     * Whether the HTTP Load Balancing controller is enabled in the cluster.
-     * When enabled, it runs a small pod in the cluster that manages the load
-     * balancers.
-     * 
- * - * bool disabled = 1; - * @param value The disabled to set. - * @return This builder for chaining. - */ - public Builder setDisabled(boolean value) { - - disabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether the HTTP Load Balancing controller is enabled in the cluster.
-     * When enabled, it runs a small pod in the cluster that manages the load
-     * balancers.
-     * 
- * - * bool disabled = 1; - * @return This builder for chaining. - */ - public Builder clearDisabled() { - - disabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.HttpLoadBalancing) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.HttpLoadBalancing) - private static final com.google.container.v1beta1.HttpLoadBalancing DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.HttpLoadBalancing(); - } - - public static com.google.container.v1beta1.HttpLoadBalancing getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HttpLoadBalancing parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index ab941b3c7a59..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HttpLoadBalancingOrBuilder.java +++ /dev/null @@ -1,21 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface HttpLoadBalancingOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.HttpLoadBalancing) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether the HTTP Load Balancing controller is enabled in the cluster.
-   * When enabled, it runs a small pod in the cluster that manages the load
-   * balancers.
-   * 
- * - * bool disabled = 1; - * @return The disabled. - */ - boolean getDisabled(); -} diff --git a/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 deleted file mode 100644 index 6f3c8ab4e233..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ILBSubsettingConfig.java +++ /dev/null @@ -1,492 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * 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(); - 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); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.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(); - - 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 boolean enabled_ ; - /** - *
-     * Enables l4 ILB subsetting for this cluster
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Enables l4 ILB subsetting for this cluster
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Enables l4 ILB subsetting for this cluster
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index 2564abfed2d4..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ILBSubsettingConfigOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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 deleted file mode 100644 index 6e157e714348..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicy.java +++ /dev/null @@ -1,3723 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Configuration for controlling how IPs are allocated in the cluster.
- * 
- * - * Protobuf type {@code google.container.v1beta1.IPAllocationPolicy} - */ -public final class IPAllocationPolicy extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.IPAllocationPolicy) - IPAllocationPolicyOrBuilder { -private static final long serialVersionUID = 0L; - // Use IPAllocationPolicy.newBuilder() to construct. - private IPAllocationPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private IPAllocationPolicy() { - subnetworkName_ = ""; - clusterIpv4Cidr_ = ""; - nodeIpv4Cidr_ = ""; - servicesIpv4Cidr_ = ""; - clusterSecondaryRangeName_ = ""; - servicesSecondaryRangeName_ = ""; - clusterIpv4CidrBlock_ = ""; - nodeIpv4CidrBlock_ = ""; - servicesIpv4CidrBlock_ = ""; - tpuIpv4CidrBlock_ = ""; - stackType_ = 0; - ipv6AccessType_ = 0; - subnetIpv6CidrBlock_ = ""; - servicesIpv6CidrBlock_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new IPAllocationPolicy(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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) - } - - public static final int USE_IP_ALIASES_FIELD_NUMBER = 1; - private boolean useIpAliases_; - /** - *
-   * Whether alias IPs will be used for pod IPs in the cluster.
-   * This is used in conjunction with use_routes. It cannot
-   * be true if use_routes is true. If both use_ip_aliases and use_routes are
-   * false, then the server picks the default IP allocation mode
-   * 
- * - * bool use_ip_aliases = 1; - * @return The useIpAliases. - */ - @java.lang.Override - public boolean getUseIpAliases() { - return useIpAliases_; - } - - public static final int CREATE_SUBNETWORK_FIELD_NUMBER = 2; - private boolean createSubnetwork_; - /** - *
-   * Whether a new subnetwork will be created automatically for the cluster.
-   * This field is only applicable when `use_ip_aliases` is true.
-   * 
- * - * bool create_subnetwork = 2; - * @return The createSubnetwork. - */ - @java.lang.Override - public boolean getCreateSubnetwork() { - return createSubnetwork_; - } - - public static final int SUBNETWORK_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object subnetworkName_; - /** - *
-   * A custom subnetwork name to be used if `create_subnetwork` is true.  If
-   * this field is empty, then an automatic name will be chosen for the new
-   * subnetwork.
-   * 
- * - * string subnetwork_name = 3; - * @return The subnetworkName. - */ - @java.lang.Override - public java.lang.String getSubnetworkName() { - java.lang.Object ref = subnetworkName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subnetworkName_ = s; - return s; - } - } - /** - *
-   * A custom subnetwork name to be used if `create_subnetwork` is true.  If
-   * this field is empty, then an automatic name will be chosen for the new
-   * subnetwork.
-   * 
- * - * string subnetwork_name = 3; - * @return The bytes for subnetworkName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSubnetworkNameBytes() { - java.lang.Object ref = subnetworkName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - subnetworkName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_IPV4_CIDR_FIELD_NUMBER = 4; - private volatile java.lang.Object clusterIpv4Cidr_; - /** - *
-   * This field is deprecated, use cluster_ipv4_cidr_block.
-   * 
- * - * string cluster_ipv4_cidr = 4 [deprecated = true]; - * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1332 - * @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=1332 - * @return The bytes for clusterIpv4Cidr. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIpv4CidrBytes() { - java.lang.Object ref = clusterIpv4Cidr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterIpv4Cidr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_IPV4_CIDR_FIELD_NUMBER = 5; - private volatile java.lang.Object nodeIpv4Cidr_; - /** - *
-   * This field is deprecated, use node_ipv4_cidr_block.
-   * 
- * - * string node_ipv4_cidr = 5 [deprecated = true]; - * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1335 - * @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=1335 - * @return The bytes for nodeIpv4Cidr. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getNodeIpv4CidrBytes() { - java.lang.Object ref = nodeIpv4Cidr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodeIpv4Cidr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SERVICES_IPV4_CIDR_FIELD_NUMBER = 6; - private volatile java.lang.Object servicesIpv4Cidr_; - /** - *
-   * This field is deprecated, use services_ipv4_cidr_block.
-   * 
- * - * string services_ipv4_cidr = 6 [deprecated = true]; - * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1338 - * @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=1338 - * @return The bytes for servicesIpv4Cidr. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getServicesIpv4CidrBytes() { - java.lang.Object ref = servicesIpv4Cidr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - servicesIpv4Cidr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_SECONDARY_RANGE_NAME_FIELD_NUMBER = 7; - private volatile java.lang.Object clusterSecondaryRangeName_; - /** - *
-   * The name of the secondary range to be used for the cluster CIDR
-   * block.  The secondary range will be used for pod IP
-   * addresses. This must be an existing secondary range associated
-   * with the cluster subnetwork.
-   * This field is only applicable with use_ip_aliases and
-   * create_subnetwork is false.
-   * 
- * - * string cluster_secondary_range_name = 7; - * @return The clusterSecondaryRangeName. - */ - @java.lang.Override - public java.lang.String getClusterSecondaryRangeName() { - java.lang.Object ref = clusterSecondaryRangeName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterSecondaryRangeName_ = s; - return s; - } - } - /** - *
-   * The name of the secondary range to be used for the cluster CIDR
-   * block.  The secondary range will be used for pod IP
-   * addresses. This must be an existing secondary range associated
-   * with the cluster subnetwork.
-   * This field is only applicable with use_ip_aliases and
-   * create_subnetwork is false.
-   * 
- * - * string cluster_secondary_range_name = 7; - * @return The bytes for clusterSecondaryRangeName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getClusterSecondaryRangeNameBytes() { - java.lang.Object ref = clusterSecondaryRangeName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterSecondaryRangeName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SERVICES_SECONDARY_RANGE_NAME_FIELD_NUMBER = 8; - private volatile java.lang.Object servicesSecondaryRangeName_; - /** - *
-   * The name of the secondary range to be used as for the services
-   * CIDR block.  The secondary range will be used for service
-   * ClusterIPs. This must be an existing secondary range associated
-   * with the cluster subnetwork.
-   * This field is only applicable with use_ip_aliases and
-   * create_subnetwork is false.
-   * 
- * - * string services_secondary_range_name = 8; - * @return The servicesSecondaryRangeName. - */ - @java.lang.Override - public java.lang.String getServicesSecondaryRangeName() { - java.lang.Object ref = servicesSecondaryRangeName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - servicesSecondaryRangeName_ = s; - return s; - } - } - /** - *
-   * The name of the secondary range to be used as for the services
-   * CIDR block.  The secondary range will be used for service
-   * ClusterIPs. This must be an existing secondary range associated
-   * with the cluster subnetwork.
-   * This field is only applicable with use_ip_aliases and
-   * create_subnetwork is false.
-   * 
- * - * string services_secondary_range_name = 8; - * @return The bytes for servicesSecondaryRangeName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getServicesSecondaryRangeNameBytes() { - java.lang.Object ref = servicesSecondaryRangeName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - servicesSecondaryRangeName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_IPV4_CIDR_BLOCK_FIELD_NUMBER = 9; - private volatile java.lang.Object clusterIpv4CidrBlock_; - /** - *
-   * The IP address range for the cluster pod IPs. If this field is set, then
-   * `cluster.cluster_ipv4_cidr` must be left blank.
-   * This field is only applicable when `use_ip_aliases` is true.
-   * Set to blank to have a range chosen with the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-   * to use.
-   * 
- * - * string cluster_ipv4_cidr_block = 9; - * @return The clusterIpv4CidrBlock. - */ - @java.lang.Override - public java.lang.String getClusterIpv4CidrBlock() { - java.lang.Object ref = clusterIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterIpv4CidrBlock_ = s; - return s; - } - } - /** - *
-   * The IP address range for the cluster pod IPs. If this field is set, then
-   * `cluster.cluster_ipv4_cidr` must be left blank.
-   * This field is only applicable when `use_ip_aliases` is true.
-   * Set to blank to have a range chosen with the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-   * to use.
-   * 
- * - * string cluster_ipv4_cidr_block = 9; - * @return The bytes for clusterIpv4CidrBlock. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getClusterIpv4CidrBlockBytes() { - java.lang.Object ref = clusterIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_IPV4_CIDR_BLOCK_FIELD_NUMBER = 10; - private volatile java.lang.Object nodeIpv4CidrBlock_; - /** - *
-   * The IP address range of the instance IPs in this cluster.
-   * This is applicable only if `create_subnetwork` is true.
-   * Set to blank to have a range chosen with the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-   * to use.
-   * 
- * - * string node_ipv4_cidr_block = 10; - * @return The nodeIpv4CidrBlock. - */ - @java.lang.Override - public java.lang.String getNodeIpv4CidrBlock() { - java.lang.Object ref = nodeIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeIpv4CidrBlock_ = s; - return s; - } - } - /** - *
-   * The IP address range of the instance IPs in this cluster.
-   * This is applicable only if `create_subnetwork` is true.
-   * Set to blank to have a range chosen with the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-   * to use.
-   * 
- * - * string node_ipv4_cidr_block = 10; - * @return The bytes for nodeIpv4CidrBlock. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNodeIpv4CidrBlockBytes() { - java.lang.Object ref = nodeIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodeIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SERVICES_IPV4_CIDR_BLOCK_FIELD_NUMBER = 11; - private volatile java.lang.Object servicesIpv4CidrBlock_; - /** - *
-   * The IP address range of the services IPs in this cluster. If blank, a range
-   * will be automatically chosen with the default size.
-   * This field is only applicable when `use_ip_aliases` is true.
-   * Set to blank to have a range chosen with the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-   * to use.
-   * 
- * - * string services_ipv4_cidr_block = 11; - * @return The servicesIpv4CidrBlock. - */ - @java.lang.Override - public java.lang.String getServicesIpv4CidrBlock() { - java.lang.Object ref = servicesIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - servicesIpv4CidrBlock_ = s; - return s; - } - } - /** - *
-   * The IP address range of the services IPs in this cluster. If blank, a range
-   * will be automatically chosen with the default size.
-   * This field is only applicable when `use_ip_aliases` is true.
-   * Set to blank to have a range chosen with the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-   * to use.
-   * 
- * - * string services_ipv4_cidr_block = 11; - * @return The bytes for servicesIpv4CidrBlock. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getServicesIpv4CidrBlockBytes() { - java.lang.Object ref = servicesIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - servicesIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ALLOW_ROUTE_OVERLAP_FIELD_NUMBER = 12; - private boolean allowRouteOverlap_; - /** - *
-   * If true, allow allocation of cluster CIDR ranges that overlap with certain
-   * kinds of network routes. By default we do not allow cluster CIDR ranges to
-   * intersect with any user declared routes. With allow_route_overlap == true,
-   * we allow overlapping with CIDR ranges that are larger than the cluster CIDR
-   * range.
-   * If this field is set to true, then cluster and services CIDRs must be
-   * fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
-   * 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
-   *    `services_ipv4_cidr_block` must be fully-specified.
-   * 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be
-   *    fully-specified.
-   * 
- * - * bool allow_route_overlap = 12; - * @return The allowRouteOverlap. - */ - @java.lang.Override - public boolean getAllowRouteOverlap() { - return allowRouteOverlap_; - } - - public static final int TPU_IPV4_CIDR_BLOCK_FIELD_NUMBER = 13; - private volatile java.lang.Object tpuIpv4CidrBlock_; - /** - *
-   * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
-   * range will be automatically chosen with the default size.
-   * This field is only applicable when `use_ip_aliases` is true.
-   * If unspecified, the range will use the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-   * to use.
-   * This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
-   * 
- * - * string tpu_ipv4_cidr_block = 13; - * @return The tpuIpv4CidrBlock. - */ - @java.lang.Override - public java.lang.String getTpuIpv4CidrBlock() { - java.lang.Object ref = tpuIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tpuIpv4CidrBlock_ = s; - return s; - } - } - /** - *
-   * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
-   * range will be automatically chosen with the default size.
-   * This field is only applicable when `use_ip_aliases` is true.
-   * If unspecified, the range will use the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-   * to use.
-   * This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
-   * 
- * - * string tpu_ipv4_cidr_block = 13; - * @return The bytes for tpuIpv4CidrBlock. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTpuIpv4CidrBlockBytes() { - java.lang.Object ref = tpuIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tpuIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int USE_ROUTES_FIELD_NUMBER = 15; - private boolean useRoutes_; - /** - *
-   * Whether routes will be used for pod IPs in the cluster.
-   * This is used in conjunction with use_ip_aliases. It cannot be true if
-   * use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
-   * then the server picks the default IP allocation mode
-   * 
- * - * bool use_routes = 15; - * @return The useRoutes. - */ - @java.lang.Override - public boolean getUseRoutes() { - return useRoutes_; - } - - public static final int STACK_TYPE_FIELD_NUMBER = 16; - private int stackType_; - /** - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.IPAllocationPolicy.StackType result = com.google.container.v1beta1.IPAllocationPolicy.StackType.valueOf(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_; - /** - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.IPAllocationPolicy.IPv6AccessType result = com.google.container.v1beta1.IPAllocationPolicy.IPv6AccessType.valueOf(ipv6AccessType_); - return result == null ? com.google.container.v1beta1.IPAllocationPolicy.IPv6AccessType.UNRECOGNIZED : result; - } - - public static final int SUBNET_IPV6_CIDR_BLOCK_FIELD_NUMBER = 22; - 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; - 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; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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 (!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_); - } - 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 (!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_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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 (!getSubnetIpv6CidrBlock() - .equals(other.getSubnetIpv6CidrBlock())) return false; - if (!getServicesIpv6CidrBlock() - .equals(other.getServicesIpv6CidrBlock())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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_; - 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(); - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - useIpAliases_ = false; - - createSubnetwork_ = false; - - subnetworkName_ = ""; - - clusterIpv4Cidr_ = ""; - - nodeIpv4Cidr_ = ""; - - servicesIpv4Cidr_ = ""; - - clusterSecondaryRangeName_ = ""; - - servicesSecondaryRangeName_ = ""; - - clusterIpv4CidrBlock_ = ""; - - nodeIpv4CidrBlock_ = ""; - - servicesIpv4CidrBlock_ = ""; - - allowRouteOverlap_ = false; - - tpuIpv4CidrBlock_ = ""; - - useRoutes_ = false; - - stackType_ = 0; - - ipv6AccessType_ = 0; - - subnetIpv6CidrBlock_ = ""; - - servicesIpv6CidrBlock_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_IPAllocationPolicy_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.IPAllocationPolicy getDefaultInstanceForType() { - return com.google.container.v1beta1.IPAllocationPolicy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.IPAllocationPolicy build() { - com.google.container.v1beta1.IPAllocationPolicy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.IPAllocationPolicy buildPartial() { - com.google.container.v1beta1.IPAllocationPolicy result = new com.google.container.v1beta1.IPAllocationPolicy(this); - result.useIpAliases_ = useIpAliases_; - result.createSubnetwork_ = createSubnetwork_; - result.subnetworkName_ = subnetworkName_; - result.clusterIpv4Cidr_ = clusterIpv4Cidr_; - result.nodeIpv4Cidr_ = nodeIpv4Cidr_; - result.servicesIpv4Cidr_ = servicesIpv4Cidr_; - result.clusterSecondaryRangeName_ = clusterSecondaryRangeName_; - result.servicesSecondaryRangeName_ = servicesSecondaryRangeName_; - result.clusterIpv4CidrBlock_ = clusterIpv4CidrBlock_; - result.nodeIpv4CidrBlock_ = nodeIpv4CidrBlock_; - result.servicesIpv4CidrBlock_ = servicesIpv4CidrBlock_; - result.allowRouteOverlap_ = allowRouteOverlap_; - result.tpuIpv4CidrBlock_ = tpuIpv4CidrBlock_; - result.useRoutes_ = useRoutes_; - result.stackType_ = stackType_; - result.ipv6AccessType_ = ipv6AccessType_; - result.subnetIpv6CidrBlock_ = subnetIpv6CidrBlock_; - result.servicesIpv6CidrBlock_ = servicesIpv6CidrBlock_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.IPAllocationPolicy) { - return mergeFrom((com.google.container.v1beta1.IPAllocationPolicy)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.IPAllocationPolicy other) { - if (other == com.google.container.v1beta1.IPAllocationPolicy.getDefaultInstance()) return this; - if (other.getUseIpAliases() != false) { - setUseIpAliases(other.getUseIpAliases()); - } - if (other.getCreateSubnetwork() != false) { - setCreateSubnetwork(other.getCreateSubnetwork()); - } - if (!other.getSubnetworkName().isEmpty()) { - subnetworkName_ = other.subnetworkName_; - onChanged(); - } - if (!other.getClusterIpv4Cidr().isEmpty()) { - clusterIpv4Cidr_ = other.clusterIpv4Cidr_; - onChanged(); - } - if (!other.getNodeIpv4Cidr().isEmpty()) { - nodeIpv4Cidr_ = other.nodeIpv4Cidr_; - onChanged(); - } - if (!other.getServicesIpv4Cidr().isEmpty()) { - servicesIpv4Cidr_ = other.servicesIpv4Cidr_; - onChanged(); - } - if (!other.getClusterSecondaryRangeName().isEmpty()) { - clusterSecondaryRangeName_ = other.clusterSecondaryRangeName_; - onChanged(); - } - if (!other.getServicesSecondaryRangeName().isEmpty()) { - servicesSecondaryRangeName_ = other.servicesSecondaryRangeName_; - onChanged(); - } - if (!other.getClusterIpv4CidrBlock().isEmpty()) { - clusterIpv4CidrBlock_ = other.clusterIpv4CidrBlock_; - onChanged(); - } - if (!other.getNodeIpv4CidrBlock().isEmpty()) { - nodeIpv4CidrBlock_ = other.nodeIpv4CidrBlock_; - onChanged(); - } - if (!other.getServicesIpv4CidrBlock().isEmpty()) { - servicesIpv4CidrBlock_ = other.servicesIpv4CidrBlock_; - onChanged(); - } - if (other.getAllowRouteOverlap() != false) { - setAllowRouteOverlap(other.getAllowRouteOverlap()); - } - if (!other.getTpuIpv4CidrBlock().isEmpty()) { - tpuIpv4CidrBlock_ = other.tpuIpv4CidrBlock_; - onChanged(); - } - if (other.getUseRoutes() != false) { - setUseRoutes(other.getUseRoutes()); - } - if (other.stackType_ != 0) { - setStackTypeValue(other.getStackTypeValue()); - } - if (other.ipv6AccessType_ != 0) { - setIpv6AccessTypeValue(other.getIpv6AccessTypeValue()); - } - if (!other.getSubnetIpv6CidrBlock().isEmpty()) { - subnetIpv6CidrBlock_ = other.subnetIpv6CidrBlock_; - onChanged(); - } - if (!other.getServicesIpv6CidrBlock().isEmpty()) { - servicesIpv6CidrBlock_ = other.servicesIpv6CidrBlock_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 8 - case 16: { - createSubnetwork_ = input.readBool(); - - break; - } // case 16 - case 26: { - subnetworkName_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - clusterIpv4Cidr_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - nodeIpv4Cidr_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: { - servicesIpv4Cidr_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 58: { - clusterSecondaryRangeName_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 66: { - servicesSecondaryRangeName_ = input.readStringRequireUtf8(); - - break; - } // case 66 - case 74: { - clusterIpv4CidrBlock_ = input.readStringRequireUtf8(); - - break; - } // case 74 - case 82: { - nodeIpv4CidrBlock_ = input.readStringRequireUtf8(); - - break; - } // case 82 - case 90: { - servicesIpv4CidrBlock_ = input.readStringRequireUtf8(); - - break; - } // case 90 - case 96: { - allowRouteOverlap_ = input.readBool(); - - break; - } // case 96 - case 106: { - tpuIpv4CidrBlock_ = input.readStringRequireUtf8(); - - break; - } // case 106 - case 120: { - useRoutes_ = input.readBool(); - - break; - } // case 120 - case 128: { - stackType_ = input.readEnum(); - - break; - } // case 128 - case 136: { - ipv6AccessType_ = input.readEnum(); - - break; - } // case 136 - case 178: { - subnetIpv6CidrBlock_ = input.readStringRequireUtf8(); - - break; - } // case 178 - case 186: { - servicesIpv6CidrBlock_ = input.readStringRequireUtf8(); - - break; - } // case 186 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private boolean useIpAliases_ ; - /** - *
-     * Whether alias IPs will be used for pod IPs in the cluster.
-     * This is used in conjunction with use_routes. It cannot
-     * be true if use_routes is true. If both use_ip_aliases and use_routes are
-     * false, then the server picks the default IP allocation mode
-     * 
- * - * bool use_ip_aliases = 1; - * @return The useIpAliases. - */ - @java.lang.Override - public boolean getUseIpAliases() { - return useIpAliases_; - } - /** - *
-     * Whether alias IPs will be used for pod IPs in the cluster.
-     * This is used in conjunction with use_routes. It cannot
-     * be true if use_routes is true. If both use_ip_aliases and use_routes are
-     * false, then the server picks the default IP allocation mode
-     * 
- * - * bool use_ip_aliases = 1; - * @param value The useIpAliases to set. - * @return This builder for chaining. - */ - public Builder setUseIpAliases(boolean value) { - - useIpAliases_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether alias IPs will be used for pod IPs in the cluster.
-     * This is used in conjunction with use_routes. It cannot
-     * be true if use_routes is true. If both use_ip_aliases and use_routes are
-     * false, then the server picks the default IP allocation mode
-     * 
- * - * bool use_ip_aliases = 1; - * @return This builder for chaining. - */ - public Builder clearUseIpAliases() { - - useIpAliases_ = false; - onChanged(); - return this; - } - - private boolean createSubnetwork_ ; - /** - *
-     * Whether a new subnetwork will be created automatically for the cluster.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * 
- * - * bool create_subnetwork = 2; - * @return The createSubnetwork. - */ - @java.lang.Override - public boolean getCreateSubnetwork() { - return createSubnetwork_; - } - /** - *
-     * Whether a new subnetwork will be created automatically for the cluster.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * 
- * - * bool create_subnetwork = 2; - * @param value The createSubnetwork to set. - * @return This builder for chaining. - */ - public Builder setCreateSubnetwork(boolean value) { - - createSubnetwork_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether a new subnetwork will be created automatically for the cluster.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * 
- * - * bool create_subnetwork = 2; - * @return This builder for chaining. - */ - public Builder clearCreateSubnetwork() { - - createSubnetwork_ = false; - onChanged(); - return this; - } - - private java.lang.Object subnetworkName_ = ""; - /** - *
-     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
-     * this field is empty, then an automatic name will be chosen for the new
-     * subnetwork.
-     * 
- * - * string subnetwork_name = 3; - * @return The subnetworkName. - */ - public java.lang.String getSubnetworkName() { - java.lang.Object ref = subnetworkName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subnetworkName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
-     * this field is empty, then an automatic name will be chosen for the new
-     * subnetwork.
-     * 
- * - * string subnetwork_name = 3; - * @return The bytes for subnetworkName. - */ - public com.google.protobuf.ByteString - getSubnetworkNameBytes() { - java.lang.Object ref = subnetworkName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - subnetworkName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
-     * this field is empty, then an automatic name will be chosen for the new
-     * subnetwork.
-     * 
- * - * string subnetwork_name = 3; - * @param value The subnetworkName to set. - * @return This builder for chaining. - */ - public Builder setSubnetworkName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - subnetworkName_ = value; - onChanged(); - return this; - } - /** - *
-     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
-     * this field is empty, then an automatic name will be chosen for the new
-     * subnetwork.
-     * 
- * - * string subnetwork_name = 3; - * @return This builder for chaining. - */ - public Builder clearSubnetworkName() { - - subnetworkName_ = getDefaultInstance().getSubnetworkName(); - onChanged(); - return this; - } - /** - *
-     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
-     * this field is empty, then an automatic name will be chosen for the new
-     * subnetwork.
-     * 
- * - * string subnetwork_name = 3; - * @param value The bytes for subnetworkName to set. - * @return This builder for chaining. - */ - public Builder setSubnetworkNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - subnetworkName_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterIpv4Cidr_ = ""; - /** - *
-     * This field is deprecated, use cluster_ipv4_cidr_block.
-     * 
- * - * string cluster_ipv4_cidr = 4 [deprecated = true]; - * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1332 - * @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=1332 - * @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=1332 - * @param value The clusterIpv4Cidr to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIpv4Cidr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterIpv4Cidr_ = value; - onChanged(); - return this; - } - /** - *
-     * This field is deprecated, use cluster_ipv4_cidr_block.
-     * 
- * - * string cluster_ipv4_cidr = 4 [deprecated = true]; - * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1332 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterIpv4Cidr() { - - clusterIpv4Cidr_ = getDefaultInstance().getClusterIpv4Cidr(); - onChanged(); - return this; - } - /** - *
-     * This field is deprecated, use cluster_ipv4_cidr_block.
-     * 
- * - * string cluster_ipv4_cidr = 4 [deprecated = true]; - * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1332 - * @param value The bytes for clusterIpv4Cidr to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIpv4CidrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterIpv4Cidr_ = value; - onChanged(); - return this; - } - - private java.lang.Object nodeIpv4Cidr_ = ""; - /** - *
-     * This field is deprecated, use node_ipv4_cidr_block.
-     * 
- * - * string node_ipv4_cidr = 5 [deprecated = true]; - * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1335 - * @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=1335 - * @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=1335 - * @param value The nodeIpv4Cidr to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setNodeIpv4Cidr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodeIpv4Cidr_ = value; - onChanged(); - return this; - } - /** - *
-     * This field is deprecated, use node_ipv4_cidr_block.
-     * 
- * - * string node_ipv4_cidr = 5 [deprecated = true]; - * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1335 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearNodeIpv4Cidr() { - - nodeIpv4Cidr_ = getDefaultInstance().getNodeIpv4Cidr(); - onChanged(); - return this; - } - /** - *
-     * This field is deprecated, use node_ipv4_cidr_block.
-     * 
- * - * string node_ipv4_cidr = 5 [deprecated = true]; - * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1335 - * @param value The bytes for nodeIpv4Cidr to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setNodeIpv4CidrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodeIpv4Cidr_ = value; - onChanged(); - return this; - } - - private java.lang.Object servicesIpv4Cidr_ = ""; - /** - *
-     * This field is deprecated, use services_ipv4_cidr_block.
-     * 
- * - * string services_ipv4_cidr = 6 [deprecated = true]; - * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1338 - * @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=1338 - * @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=1338 - * @param value The servicesIpv4Cidr to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setServicesIpv4Cidr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - servicesIpv4Cidr_ = value; - onChanged(); - return this; - } - /** - *
-     * This field is deprecated, use services_ipv4_cidr_block.
-     * 
- * - * string services_ipv4_cidr = 6 [deprecated = true]; - * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1338 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearServicesIpv4Cidr() { - - servicesIpv4Cidr_ = getDefaultInstance().getServicesIpv4Cidr(); - onChanged(); - return this; - } - /** - *
-     * This field is deprecated, use services_ipv4_cidr_block.
-     * 
- * - * string services_ipv4_cidr = 6 [deprecated = true]; - * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1338 - * @param value The bytes for servicesIpv4Cidr to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setServicesIpv4CidrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - servicesIpv4Cidr_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterSecondaryRangeName_ = ""; - /** - *
-     * The name of the secondary range to be used for the cluster CIDR
-     * block.  The secondary range will be used for pod IP
-     * addresses. This must be an existing secondary range associated
-     * with the cluster subnetwork.
-     * This field is only applicable with use_ip_aliases and
-     * create_subnetwork is false.
-     * 
- * - * string cluster_secondary_range_name = 7; - * @return The clusterSecondaryRangeName. - */ - public java.lang.String getClusterSecondaryRangeName() { - java.lang.Object ref = clusterSecondaryRangeName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterSecondaryRangeName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name of the secondary range to be used for the cluster CIDR
-     * block.  The secondary range will be used for pod IP
-     * addresses. This must be an existing secondary range associated
-     * with the cluster subnetwork.
-     * This field is only applicable with use_ip_aliases and
-     * create_subnetwork is false.
-     * 
- * - * string cluster_secondary_range_name = 7; - * @return The bytes for clusterSecondaryRangeName. - */ - public com.google.protobuf.ByteString - getClusterSecondaryRangeNameBytes() { - java.lang.Object ref = clusterSecondaryRangeName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterSecondaryRangeName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name of the secondary range to be used for the cluster CIDR
-     * block.  The secondary range will be used for pod IP
-     * addresses. This must be an existing secondary range associated
-     * with the cluster subnetwork.
-     * This field is only applicable with use_ip_aliases and
-     * create_subnetwork is false.
-     * 
- * - * string cluster_secondary_range_name = 7; - * @param value The clusterSecondaryRangeName to set. - * @return This builder for chaining. - */ - public Builder setClusterSecondaryRangeName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterSecondaryRangeName_ = value; - onChanged(); - return this; - } - /** - *
-     * The name of the secondary range to be used for the cluster CIDR
-     * block.  The secondary range will be used for pod IP
-     * addresses. This must be an existing secondary range associated
-     * with the cluster subnetwork.
-     * This field is only applicable with use_ip_aliases and
-     * create_subnetwork is false.
-     * 
- * - * string cluster_secondary_range_name = 7; - * @return This builder for chaining. - */ - public Builder clearClusterSecondaryRangeName() { - - clusterSecondaryRangeName_ = getDefaultInstance().getClusterSecondaryRangeName(); - onChanged(); - return this; - } - /** - *
-     * The name of the secondary range to be used for the cluster CIDR
-     * block.  The secondary range will be used for pod IP
-     * addresses. This must be an existing secondary range associated
-     * with the cluster subnetwork.
-     * This field is only applicable with use_ip_aliases and
-     * create_subnetwork is false.
-     * 
- * - * string cluster_secondary_range_name = 7; - * @param value The bytes for clusterSecondaryRangeName to set. - * @return This builder for chaining. - */ - public Builder setClusterSecondaryRangeNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterSecondaryRangeName_ = value; - onChanged(); - return this; - } - - private java.lang.Object servicesSecondaryRangeName_ = ""; - /** - *
-     * The name of the secondary range to be used as for the services
-     * CIDR block.  The secondary range will be used for service
-     * ClusterIPs. This must be an existing secondary range associated
-     * with the cluster subnetwork.
-     * This field is only applicable with use_ip_aliases and
-     * create_subnetwork is false.
-     * 
- * - * string services_secondary_range_name = 8; - * @return The servicesSecondaryRangeName. - */ - public java.lang.String getServicesSecondaryRangeName() { - java.lang.Object ref = servicesSecondaryRangeName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - servicesSecondaryRangeName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name of the secondary range to be used as for the services
-     * CIDR block.  The secondary range will be used for service
-     * ClusterIPs. This must be an existing secondary range associated
-     * with the cluster subnetwork.
-     * This field is only applicable with use_ip_aliases and
-     * create_subnetwork is false.
-     * 
- * - * string services_secondary_range_name = 8; - * @return The bytes for servicesSecondaryRangeName. - */ - public com.google.protobuf.ByteString - getServicesSecondaryRangeNameBytes() { - java.lang.Object ref = servicesSecondaryRangeName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - servicesSecondaryRangeName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name of the secondary range to be used as for the services
-     * CIDR block.  The secondary range will be used for service
-     * ClusterIPs. This must be an existing secondary range associated
-     * with the cluster subnetwork.
-     * This field is only applicable with use_ip_aliases and
-     * create_subnetwork is false.
-     * 
- * - * string services_secondary_range_name = 8; - * @param value The servicesSecondaryRangeName to set. - * @return This builder for chaining. - */ - public Builder setServicesSecondaryRangeName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - servicesSecondaryRangeName_ = value; - onChanged(); - return this; - } - /** - *
-     * The name of the secondary range to be used as for the services
-     * CIDR block.  The secondary range will be used for service
-     * ClusterIPs. This must be an existing secondary range associated
-     * with the cluster subnetwork.
-     * This field is only applicable with use_ip_aliases and
-     * create_subnetwork is false.
-     * 
- * - * string services_secondary_range_name = 8; - * @return This builder for chaining. - */ - public Builder clearServicesSecondaryRangeName() { - - servicesSecondaryRangeName_ = getDefaultInstance().getServicesSecondaryRangeName(); - onChanged(); - return this; - } - /** - *
-     * The name of the secondary range to be used as for the services
-     * CIDR block.  The secondary range will be used for service
-     * ClusterIPs. This must be an existing secondary range associated
-     * with the cluster subnetwork.
-     * This field is only applicable with use_ip_aliases and
-     * create_subnetwork is false.
-     * 
- * - * string services_secondary_range_name = 8; - * @param value The bytes for servicesSecondaryRangeName to set. - * @return This builder for chaining. - */ - public Builder setServicesSecondaryRangeNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - servicesSecondaryRangeName_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterIpv4CidrBlock_ = ""; - /** - *
-     * The IP address range for the cluster pod IPs. If this field is set, then
-     * `cluster.cluster_ipv4_cidr` must be left blank.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string cluster_ipv4_cidr_block = 9; - * @return The clusterIpv4CidrBlock. - */ - public java.lang.String getClusterIpv4CidrBlock() { - java.lang.Object ref = clusterIpv4CidrBlock_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterIpv4CidrBlock_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The IP address range for the cluster pod IPs. If this field is set, then
-     * `cluster.cluster_ipv4_cidr` must be left blank.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string cluster_ipv4_cidr_block = 9; - * @return The bytes for clusterIpv4CidrBlock. - */ - public com.google.protobuf.ByteString - getClusterIpv4CidrBlockBytes() { - java.lang.Object ref = clusterIpv4CidrBlock_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The IP address range for the cluster pod IPs. If this field is set, then
-     * `cluster.cluster_ipv4_cidr` must be left blank.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string cluster_ipv4_cidr_block = 9; - * @param value The clusterIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setClusterIpv4CidrBlock( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterIpv4CidrBlock_ = value; - onChanged(); - return this; - } - /** - *
-     * The IP address range for the cluster pod IPs. If this field is set, then
-     * `cluster.cluster_ipv4_cidr` must be left blank.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string cluster_ipv4_cidr_block = 9; - * @return This builder for chaining. - */ - public Builder clearClusterIpv4CidrBlock() { - - clusterIpv4CidrBlock_ = getDefaultInstance().getClusterIpv4CidrBlock(); - onChanged(); - return this; - } - /** - *
-     * The IP address range for the cluster pod IPs. If this field is set, then
-     * `cluster.cluster_ipv4_cidr` must be left blank.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string cluster_ipv4_cidr_block = 9; - * @param value The bytes for clusterIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setClusterIpv4CidrBlockBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterIpv4CidrBlock_ = value; - onChanged(); - return this; - } - - private java.lang.Object nodeIpv4CidrBlock_ = ""; - /** - *
-     * The IP address range of the instance IPs in this cluster.
-     * This is applicable only if `create_subnetwork` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string node_ipv4_cidr_block = 10; - * @return The nodeIpv4CidrBlock. - */ - public java.lang.String getNodeIpv4CidrBlock() { - java.lang.Object ref = nodeIpv4CidrBlock_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeIpv4CidrBlock_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The IP address range of the instance IPs in this cluster.
-     * This is applicable only if `create_subnetwork` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string node_ipv4_cidr_block = 10; - * @return The bytes for nodeIpv4CidrBlock. - */ - public com.google.protobuf.ByteString - getNodeIpv4CidrBlockBytes() { - java.lang.Object ref = nodeIpv4CidrBlock_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodeIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The IP address range of the instance IPs in this cluster.
-     * This is applicable only if `create_subnetwork` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string node_ipv4_cidr_block = 10; - * @param value The nodeIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setNodeIpv4CidrBlock( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodeIpv4CidrBlock_ = value; - onChanged(); - return this; - } - /** - *
-     * The IP address range of the instance IPs in this cluster.
-     * This is applicable only if `create_subnetwork` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string node_ipv4_cidr_block = 10; - * @return This builder for chaining. - */ - public Builder clearNodeIpv4CidrBlock() { - - nodeIpv4CidrBlock_ = getDefaultInstance().getNodeIpv4CidrBlock(); - onChanged(); - return this; - } - /** - *
-     * The IP address range of the instance IPs in this cluster.
-     * This is applicable only if `create_subnetwork` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string node_ipv4_cidr_block = 10; - * @param value The bytes for nodeIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setNodeIpv4CidrBlockBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodeIpv4CidrBlock_ = value; - onChanged(); - return this; - } - - private java.lang.Object servicesIpv4CidrBlock_ = ""; - /** - *
-     * The IP address range of the services IPs in this cluster. If blank, a range
-     * will be automatically chosen with the default size.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string services_ipv4_cidr_block = 11; - * @return The servicesIpv4CidrBlock. - */ - public java.lang.String getServicesIpv4CidrBlock() { - java.lang.Object ref = servicesIpv4CidrBlock_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - servicesIpv4CidrBlock_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The IP address range of the services IPs in this cluster. If blank, a range
-     * will be automatically chosen with the default size.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string services_ipv4_cidr_block = 11; - * @return The bytes for servicesIpv4CidrBlock. - */ - public com.google.protobuf.ByteString - getServicesIpv4CidrBlockBytes() { - java.lang.Object ref = servicesIpv4CidrBlock_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - servicesIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The IP address range of the services IPs in this cluster. If blank, a range
-     * will be automatically chosen with the default size.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string services_ipv4_cidr_block = 11; - * @param value The servicesIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setServicesIpv4CidrBlock( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - servicesIpv4CidrBlock_ = value; - onChanged(); - return this; - } - /** - *
-     * The IP address range of the services IPs in this cluster. If blank, a range
-     * will be automatically chosen with the default size.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string services_ipv4_cidr_block = 11; - * @return This builder for chaining. - */ - public Builder clearServicesIpv4CidrBlock() { - - servicesIpv4CidrBlock_ = getDefaultInstance().getServicesIpv4CidrBlock(); - onChanged(); - return this; - } - /** - *
-     * The IP address range of the services IPs in this cluster. If blank, a range
-     * will be automatically chosen with the default size.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string services_ipv4_cidr_block = 11; - * @param value The bytes for servicesIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setServicesIpv4CidrBlockBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - servicesIpv4CidrBlock_ = value; - onChanged(); - return this; - } - - private boolean allowRouteOverlap_ ; - /** - *
-     * If true, allow allocation of cluster CIDR ranges that overlap with certain
-     * kinds of network routes. By default we do not allow cluster CIDR ranges to
-     * intersect with any user declared routes. With allow_route_overlap == true,
-     * we allow overlapping with CIDR ranges that are larger than the cluster CIDR
-     * range.
-     * If this field is set to true, then cluster and services CIDRs must be
-     * fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
-     * 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
-     *    `services_ipv4_cidr_block` must be fully-specified.
-     * 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be
-     *    fully-specified.
-     * 
- * - * bool allow_route_overlap = 12; - * @return The allowRouteOverlap. - */ - @java.lang.Override - public boolean getAllowRouteOverlap() { - return allowRouteOverlap_; - } - /** - *
-     * If true, allow allocation of cluster CIDR ranges that overlap with certain
-     * kinds of network routes. By default we do not allow cluster CIDR ranges to
-     * intersect with any user declared routes. With allow_route_overlap == true,
-     * we allow overlapping with CIDR ranges that are larger than the cluster CIDR
-     * range.
-     * If this field is set to true, then cluster and services CIDRs must be
-     * fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
-     * 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
-     *    `services_ipv4_cidr_block` must be fully-specified.
-     * 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be
-     *    fully-specified.
-     * 
- * - * bool allow_route_overlap = 12; - * @param value The allowRouteOverlap to set. - * @return This builder for chaining. - */ - public Builder setAllowRouteOverlap(boolean value) { - - allowRouteOverlap_ = value; - onChanged(); - return this; - } - /** - *
-     * If true, allow allocation of cluster CIDR ranges that overlap with certain
-     * kinds of network routes. By default we do not allow cluster CIDR ranges to
-     * intersect with any user declared routes. With allow_route_overlap == true,
-     * we allow overlapping with CIDR ranges that are larger than the cluster CIDR
-     * range.
-     * If this field is set to true, then cluster and services CIDRs must be
-     * fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
-     * 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
-     *    `services_ipv4_cidr_block` must be fully-specified.
-     * 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be
-     *    fully-specified.
-     * 
- * - * bool allow_route_overlap = 12; - * @return This builder for chaining. - */ - public Builder clearAllowRouteOverlap() { - - allowRouteOverlap_ = false; - onChanged(); - return this; - } - - private java.lang.Object tpuIpv4CidrBlock_ = ""; - /** - *
-     * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
-     * range will be automatically chosen with the default size.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * If unspecified, the range will use the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
-     * 
- * - * string tpu_ipv4_cidr_block = 13; - * @return The tpuIpv4CidrBlock. - */ - public java.lang.String getTpuIpv4CidrBlock() { - java.lang.Object ref = tpuIpv4CidrBlock_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tpuIpv4CidrBlock_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
-     * range will be automatically chosen with the default size.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * If unspecified, the range will use the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
-     * 
- * - * string tpu_ipv4_cidr_block = 13; - * @return The bytes for tpuIpv4CidrBlock. - */ - public com.google.protobuf.ByteString - getTpuIpv4CidrBlockBytes() { - java.lang.Object ref = tpuIpv4CidrBlock_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tpuIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
-     * range will be automatically chosen with the default size.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * If unspecified, the range will use the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
-     * 
- * - * string tpu_ipv4_cidr_block = 13; - * @param value The tpuIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setTpuIpv4CidrBlock( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - tpuIpv4CidrBlock_ = value; - onChanged(); - return this; - } - /** - *
-     * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
-     * range will be automatically chosen with the default size.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * If unspecified, the range will use the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
-     * 
- * - * string tpu_ipv4_cidr_block = 13; - * @return This builder for chaining. - */ - public Builder clearTpuIpv4CidrBlock() { - - tpuIpv4CidrBlock_ = getDefaultInstance().getTpuIpv4CidrBlock(); - onChanged(); - return this; - } - /** - *
-     * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
-     * range will be automatically chosen with the default size.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * If unspecified, the range will use the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
-     * 
- * - * string tpu_ipv4_cidr_block = 13; - * @param value The bytes for tpuIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setTpuIpv4CidrBlockBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - tpuIpv4CidrBlock_ = value; - onChanged(); - return this; - } - - private boolean useRoutes_ ; - /** - *
-     * Whether routes will be used for pod IPs in the cluster.
-     * This is used in conjunction with use_ip_aliases. It cannot be true if
-     * use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
-     * then the server picks the default IP allocation mode
-     * 
- * - * bool use_routes = 15; - * @return The useRoutes. - */ - @java.lang.Override - public boolean getUseRoutes() { - return useRoutes_; - } - /** - *
-     * Whether routes will be used for pod IPs in the cluster.
-     * This is used in conjunction with use_ip_aliases. It cannot be true if
-     * use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
-     * then the server picks the default IP allocation mode
-     * 
- * - * bool use_routes = 15; - * @param value The useRoutes to set. - * @return This builder for chaining. - */ - public Builder setUseRoutes(boolean value) { - - useRoutes_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether routes will be used for pod IPs in the cluster.
-     * This is used in conjunction with use_ip_aliases. It cannot be true if
-     * use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
-     * then the server picks the default IP allocation mode
-     * 
- * - * bool use_routes = 15; - * @return This builder for chaining. - */ - public Builder clearUseRoutes() { - - useRoutes_ = false; - onChanged(); - return this; - } - - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.IPAllocationPolicy.StackType result = com.google.container.v1beta1.IPAllocationPolicy.StackType.valueOf(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(); - } - - 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() { - - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.IPAllocationPolicy.IPv6AccessType result = com.google.container.v1beta1.IPAllocationPolicy.IPv6AccessType.valueOf(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(); - } - - 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() { - - ipv6AccessType_ = 0; - onChanged(); - return this; - } - - 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; - 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(); - 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; - 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; - 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(); - 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; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index fdd6f5171670..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicyOrBuilder.java +++ /dev/null @@ -1,460 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface IPAllocationPolicyOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.IPAllocationPolicy) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether alias IPs will be used for pod IPs in the cluster.
-   * This is used in conjunction with use_routes. It cannot
-   * be true if use_routes is true. If both use_ip_aliases and use_routes are
-   * false, then the server picks the default IP allocation mode
-   * 
- * - * bool use_ip_aliases = 1; - * @return The useIpAliases. - */ - boolean getUseIpAliases(); - - /** - *
-   * Whether a new subnetwork will be created automatically for the cluster.
-   * This field is only applicable when `use_ip_aliases` is true.
-   * 
- * - * bool create_subnetwork = 2; - * @return The createSubnetwork. - */ - boolean getCreateSubnetwork(); - - /** - *
-   * A custom subnetwork name to be used if `create_subnetwork` is true.  If
-   * this field is empty, then an automatic name will be chosen for the new
-   * subnetwork.
-   * 
- * - * string subnetwork_name = 3; - * @return The subnetworkName. - */ - java.lang.String getSubnetworkName(); - /** - *
-   * A custom subnetwork name to be used if `create_subnetwork` is true.  If
-   * this field is empty, then an automatic name will be chosen for the new
-   * subnetwork.
-   * 
- * - * string subnetwork_name = 3; - * @return The bytes for subnetworkName. - */ - com.google.protobuf.ByteString - getSubnetworkNameBytes(); - - /** - *
-   * This field is deprecated, use cluster_ipv4_cidr_block.
-   * 
- * - * string cluster_ipv4_cidr = 4 [deprecated = true]; - * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1332 - * @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=1332 - * @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=1335 - * @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=1335 - * @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=1338 - * @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=1338 - * @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(); - - /** - *
-   * 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(); -} 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 deleted file mode 100644 index 29479f3d3d2b..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IdentityServiceConfig.java +++ /dev/null @@ -1,492 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * 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(); - 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); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.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(); - - 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 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; - onChanged(); - return this; - } - /** - *
-     * Whether to enable the Identity Service component
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.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 deleted file mode 100644 index 65f8cf47c6f7..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IdentityServiceConfigOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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/IntraNodeVisibilityConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IntraNodeVisibilityConfig.java deleted file mode 100644 index bc352b7adccc..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IntraNodeVisibilityConfig.java +++ /dev/null @@ -1,492 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * IntraNodeVisibilityConfig contains the desired config of the intra-node
- * visibility on this cluster.
- * 
- * - * Protobuf type {@code google.container.v1beta1.IntraNodeVisibilityConfig} - */ -public final class IntraNodeVisibilityConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.IntraNodeVisibilityConfig) - IntraNodeVisibilityConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use IntraNodeVisibilityConfig.newBuilder() to construct. - private IntraNodeVisibilityConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private IntraNodeVisibilityConfig() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new IntraNodeVisibilityConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_IntraNodeVisibilityConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_IntraNodeVisibilityConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.IntraNodeVisibilityConfig.class, com.google.container.v1beta1.IntraNodeVisibilityConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-   * Enables intra node visibility for this cluster.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - 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(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_IntraNodeVisibilityConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.IntraNodeVisibilityConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.IntraNodeVisibilityConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.IntraNodeVisibilityConfig build() { - com.google.container.v1beta1.IntraNodeVisibilityConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.IntraNodeVisibilityConfig buildPartial() { - com.google.container.v1beta1.IntraNodeVisibilityConfig result = new com.google.container.v1beta1.IntraNodeVisibilityConfig(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.IntraNodeVisibilityConfig) { - return mergeFrom((com.google.container.v1beta1.IntraNodeVisibilityConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.IntraNodeVisibilityConfig other) { - if (other == com.google.container.v1beta1.IntraNodeVisibilityConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 boolean enabled_ ; - /** - *
-     * Enables intra node visibility for this cluster.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Enables intra node visibility for this cluster.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Enables intra node visibility for this cluster.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.IntraNodeVisibilityConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.IntraNodeVisibilityConfig) - private static final com.google.container.v1beta1.IntraNodeVisibilityConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.IntraNodeVisibilityConfig(); - } - - public static com.google.container.v1beta1.IntraNodeVisibilityConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IntraNodeVisibilityConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index ad14187eed67..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IntraNodeVisibilityConfigOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface IntraNodeVisibilityConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.IntraNodeVisibilityConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Enables intra node visibility for this cluster.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/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 deleted file mode 100644 index 63fe7ae40a2e..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfig.java +++ /dev/null @@ -1,763 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Configuration options for Istio addon.
- * 
- * - * Protobuf type {@code google.container.v1beta1.IstioConfig} - */ -public final class IstioConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.IstioConfig) - IstioConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use IstioConfig.newBuilder() to construct. - private IstioConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private IstioConfig() { - auth_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new IstioConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * 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=1208 - * @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_; - /** - *
-   * 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=1211 - * @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=1211 - * @return The auth. - */ - @java.lang.Override @java.lang.Deprecated public com.google.container.v1beta1.IstioConfig.IstioAuthMode getAuth() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.IstioConfig.IstioAuthMode result = com.google.container.v1beta1.IstioConfig.IstioAuthMode.valueOf(auth_); - return result == null ? com.google.container.v1beta1.IstioConfig.IstioAuthMode.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (disabled_ != false) { - output.writeBool(1, disabled_); - } - if (auth_ != com.google.container.v1beta1.IstioConfig.IstioAuthMode.AUTH_NONE.getNumber()) { - output.writeEnum(2, auth_); - } - 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(); - disabled_ = false; - - auth_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_IstioConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.IstioConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.IstioConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.IstioConfig build() { - com.google.container.v1beta1.IstioConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.IstioConfig buildPartial() { - com.google.container.v1beta1.IstioConfig result = new com.google.container.v1beta1.IstioConfig(this); - result.disabled_ = disabled_; - result.auth_ = auth_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.IstioConfig) { - return mergeFrom((com.google.container.v1beta1.IstioConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.IstioConfig other) { - if (other == com.google.container.v1beta1.IstioConfig.getDefaultInstance()) return this; - if (other.getDisabled() != false) { - setDisabled(other.getDisabled()); - } - if (other.auth_ != 0) { - setAuthValue(other.getAuthValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 8 - case 16: { - auth_ = input.readEnum(); - - 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 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=1208 - * @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=1208 - * @param value The disabled to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setDisabled(boolean value) { - - disabled_ = value; - 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=1208 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearDisabled() { - - disabled_ = false; - onChanged(); - return this; - } - - private int auth_ = 0; - /** - *
-     * The specified Istio auth mode, either none, or mutual TLS.
-     * 
- * - * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2 [deprecated = true]; - * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1211 - * @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=1211 - * @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; - 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=1211 - * @return The auth. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.container.v1beta1.IstioConfig.IstioAuthMode getAuth() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.IstioConfig.IstioAuthMode result = com.google.container.v1beta1.IstioConfig.IstioAuthMode.valueOf(auth_); - return result == null ? com.google.container.v1beta1.IstioConfig.IstioAuthMode.UNRECOGNIZED : result; - } - /** - *
-     * The specified Istio auth mode, either none, or mutual TLS.
-     * 
- * - * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2 [deprecated = true]; - * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1211 - * @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(); - } - - 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=1211 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearAuth() { - - auth_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.IstioConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.IstioConfig) - private static final com.google.container.v1beta1.IstioConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.IstioConfig(); - } - - public static com.google.container.v1beta1.IstioConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IstioConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 32c807c8b476..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfigOrBuilder.java +++ /dev/null @@ -1,44 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface IstioConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.IstioConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether Istio is enabled for this cluster.
-   * 
- * - * bool disabled = 1 [deprecated = true]; - * @deprecated google.container.v1beta1.IstioConfig.disabled is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1208 - * @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=1211 - * @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=1211 - * @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 deleted file mode 100644 index 74d7997755a5..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Jwk.java +++ /dev/null @@ -1,1894 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Jwk is a JSON Web Key as specified in RFC 7517
- * 
- * - * Protobuf type {@code google.container.v1beta1.Jwk} - */ -public final class Jwk extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.Jwk) - JwkOrBuilder { -private static final long serialVersionUID = 0L; - // Use Jwk.newBuilder() to construct. - private Jwk(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Jwk() { - kty_ = ""; - alg_ = ""; - use_ = ""; - kid_ = ""; - n_ = ""; - e_ = ""; - x_ = ""; - y_ = ""; - crv_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Jwk(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Jwk_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Jwk_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.Jwk.class, com.google.container.v1beta1.Jwk.Builder.class); - } - - public static final int KTY_FIELD_NUMBER = 1; - private volatile java.lang.Object kty_; - /** - *
-   * Key Type.
-   * 
- * - * string kty = 1; - * @return The kty. - */ - @java.lang.Override - public java.lang.String getKty() { - java.lang.Object ref = kty_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kty_ = s; - return s; - } - } - /** - *
-   * Key Type.
-   * 
- * - * string kty = 1; - * @return The bytes for kty. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getKtyBytes() { - java.lang.Object ref = kty_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - kty_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ALG_FIELD_NUMBER = 2; - private volatile java.lang.Object alg_; - /** - *
-   * Algorithm.
-   * 
- * - * string alg = 2; - * @return The alg. - */ - @java.lang.Override - public java.lang.String getAlg() { - java.lang.Object ref = alg_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - alg_ = s; - return s; - } - } - /** - *
-   * Algorithm.
-   * 
- * - * string alg = 2; - * @return The bytes for alg. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAlgBytes() { - java.lang.Object ref = alg_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - alg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int USE_FIELD_NUMBER = 3; - private volatile java.lang.Object use_; - /** - *
-   * Permitted uses for the public keys.
-   * 
- * - * string use = 3; - * @return The use. - */ - @java.lang.Override - public java.lang.String getUse() { - java.lang.Object ref = use_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - use_ = s; - return s; - } - } - /** - *
-   * Permitted uses for the public keys.
-   * 
- * - * string use = 3; - * @return The bytes for use. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getUseBytes() { - java.lang.Object ref = use_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - use_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KID_FIELD_NUMBER = 4; - private volatile java.lang.Object kid_; - /** - *
-   * Key ID.
-   * 
- * - * string kid = 4; - * @return The kid. - */ - @java.lang.Override - public java.lang.String getKid() { - java.lang.Object ref = kid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kid_ = s; - return s; - } - } - /** - *
-   * Key ID.
-   * 
- * - * string kid = 4; - * @return The bytes for kid. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getKidBytes() { - java.lang.Object ref = kid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - kid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int N_FIELD_NUMBER = 5; - private volatile java.lang.Object n_; - /** - *
-   * Used for RSA keys.
-   * 
- * - * string n = 5; - * @return The n. - */ - @java.lang.Override - public java.lang.String getN() { - java.lang.Object ref = n_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - n_ = s; - return s; - } - } - /** - *
-   * Used for RSA keys.
-   * 
- * - * string n = 5; - * @return The bytes for n. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNBytes() { - java.lang.Object ref = n_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - n_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int E_FIELD_NUMBER = 6; - private volatile java.lang.Object e_; - /** - *
-   * Used for RSA keys.
-   * 
- * - * string e = 6; - * @return The e. - */ - @java.lang.Override - public java.lang.String getE() { - java.lang.Object ref = e_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - e_ = s; - return s; - } - } - /** - *
-   * Used for RSA keys.
-   * 
- * - * string e = 6; - * @return The bytes for e. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getEBytes() { - java.lang.Object ref = e_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - e_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int X_FIELD_NUMBER = 7; - private volatile java.lang.Object x_; - /** - *
-   * Used for ECDSA keys.
-   * 
- * - * string x = 7; - * @return The x. - */ - @java.lang.Override - public java.lang.String getX() { - java.lang.Object ref = x_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - x_ = s; - return s; - } - } - /** - *
-   * Used for ECDSA keys.
-   * 
- * - * string x = 7; - * @return The bytes for x. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getXBytes() { - java.lang.Object ref = x_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - x_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int Y_FIELD_NUMBER = 8; - private volatile java.lang.Object y_; - /** - *
-   * Used for ECDSA keys.
-   * 
- * - * string y = 8; - * @return The y. - */ - @java.lang.Override - public java.lang.String getY() { - java.lang.Object ref = y_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - y_ = s; - return s; - } - } - /** - *
-   * Used for ECDSA keys.
-   * 
- * - * string y = 8; - * @return The bytes for y. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getYBytes() { - java.lang.Object ref = y_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - y_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CRV_FIELD_NUMBER = 9; - private volatile java.lang.Object crv_; - /** - *
-   * Used for ECDSA keys.
-   * 
- * - * string crv = 9; - * @return The crv. - */ - @java.lang.Override - public java.lang.String getCrv() { - java.lang.Object ref = crv_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crv_ = s; - return s; - } - } - /** - *
-   * Used for ECDSA keys.
-   * 
- * - * string crv = 9; - * @return The bytes for crv. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCrvBytes() { - java.lang.Object ref = crv_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - crv_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - kty_ = ""; - - alg_ = ""; - - use_ = ""; - - kid_ = ""; - - n_ = ""; - - e_ = ""; - - x_ = ""; - - y_ = ""; - - crv_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Jwk_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.Jwk getDefaultInstanceForType() { - return com.google.container.v1beta1.Jwk.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.Jwk build() { - com.google.container.v1beta1.Jwk result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.Jwk buildPartial() { - com.google.container.v1beta1.Jwk result = new com.google.container.v1beta1.Jwk(this); - result.kty_ = kty_; - result.alg_ = alg_; - result.use_ = use_; - result.kid_ = kid_; - result.n_ = n_; - result.e_ = e_; - result.x_ = x_; - result.y_ = y_; - result.crv_ = crv_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.Jwk) { - return mergeFrom((com.google.container.v1beta1.Jwk)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.Jwk other) { - if (other == com.google.container.v1beta1.Jwk.getDefaultInstance()) return this; - if (!other.getKty().isEmpty()) { - kty_ = other.kty_; - onChanged(); - } - if (!other.getAlg().isEmpty()) { - alg_ = other.alg_; - onChanged(); - } - if (!other.getUse().isEmpty()) { - use_ = other.use_; - onChanged(); - } - if (!other.getKid().isEmpty()) { - kid_ = other.kid_; - onChanged(); - } - if (!other.getN().isEmpty()) { - n_ = other.n_; - onChanged(); - } - if (!other.getE().isEmpty()) { - e_ = other.e_; - onChanged(); - } - if (!other.getX().isEmpty()) { - x_ = other.x_; - onChanged(); - } - if (!other.getY().isEmpty()) { - y_ = other.y_; - onChanged(); - } - if (!other.getCrv().isEmpty()) { - crv_ = other.crv_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - alg_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - use_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - kid_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - n_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: { - e_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 58: { - x_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 66: { - y_ = input.readStringRequireUtf8(); - - break; - } // case 66 - case 74: { - crv_ = input.readStringRequireUtf8(); - - 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 java.lang.Object kty_ = ""; - /** - *
-     * Key Type.
-     * 
- * - * string kty = 1; - * @return The kty. - */ - public java.lang.String getKty() { - java.lang.Object ref = kty_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kty_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Key Type.
-     * 
- * - * string kty = 1; - * @return The bytes for kty. - */ - public com.google.protobuf.ByteString - getKtyBytes() { - java.lang.Object ref = kty_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - kty_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Key Type.
-     * 
- * - * string kty = 1; - * @param value The kty to set. - * @return This builder for chaining. - */ - public Builder setKty( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - kty_ = value; - onChanged(); - return this; - } - /** - *
-     * Key Type.
-     * 
- * - * string kty = 1; - * @return This builder for chaining. - */ - public Builder clearKty() { - - kty_ = getDefaultInstance().getKty(); - onChanged(); - return this; - } - /** - *
-     * Key Type.
-     * 
- * - * string kty = 1; - * @param value The bytes for kty to set. - * @return This builder for chaining. - */ - public Builder setKtyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - kty_ = value; - onChanged(); - return this; - } - - private java.lang.Object alg_ = ""; - /** - *
-     * Algorithm.
-     * 
- * - * string alg = 2; - * @return The alg. - */ - public java.lang.String getAlg() { - java.lang.Object ref = alg_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - alg_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Algorithm.
-     * 
- * - * string alg = 2; - * @return The bytes for alg. - */ - public com.google.protobuf.ByteString - getAlgBytes() { - java.lang.Object ref = alg_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - alg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Algorithm.
-     * 
- * - * string alg = 2; - * @param value The alg to set. - * @return This builder for chaining. - */ - public Builder setAlg( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - alg_ = value; - onChanged(); - return this; - } - /** - *
-     * Algorithm.
-     * 
- * - * string alg = 2; - * @return This builder for chaining. - */ - public Builder clearAlg() { - - alg_ = getDefaultInstance().getAlg(); - onChanged(); - return this; - } - /** - *
-     * Algorithm.
-     * 
- * - * string alg = 2; - * @param value The bytes for alg to set. - * @return This builder for chaining. - */ - public Builder setAlgBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - alg_ = value; - onChanged(); - return this; - } - - private java.lang.Object use_ = ""; - /** - *
-     * Permitted uses for the public keys.
-     * 
- * - * string use = 3; - * @return The use. - */ - public java.lang.String getUse() { - java.lang.Object ref = use_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - use_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Permitted uses for the public keys.
-     * 
- * - * string use = 3; - * @return The bytes for use. - */ - public com.google.protobuf.ByteString - getUseBytes() { - java.lang.Object ref = use_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - use_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Permitted uses for the public keys.
-     * 
- * - * string use = 3; - * @param value The use to set. - * @return This builder for chaining. - */ - public Builder setUse( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - use_ = value; - onChanged(); - return this; - } - /** - *
-     * Permitted uses for the public keys.
-     * 
- * - * string use = 3; - * @return This builder for chaining. - */ - public Builder clearUse() { - - use_ = getDefaultInstance().getUse(); - onChanged(); - return this; - } - /** - *
-     * Permitted uses for the public keys.
-     * 
- * - * string use = 3; - * @param value The bytes for use to set. - * @return This builder for chaining. - */ - public Builder setUseBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - use_ = value; - onChanged(); - return this; - } - - private java.lang.Object kid_ = ""; - /** - *
-     * Key ID.
-     * 
- * - * string kid = 4; - * @return The kid. - */ - public java.lang.String getKid() { - java.lang.Object ref = kid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Key ID.
-     * 
- * - * string kid = 4; - * @return The bytes for kid. - */ - public com.google.protobuf.ByteString - getKidBytes() { - java.lang.Object ref = kid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - kid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Key ID.
-     * 
- * - * string kid = 4; - * @param value The kid to set. - * @return This builder for chaining. - */ - public Builder setKid( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - kid_ = value; - onChanged(); - return this; - } - /** - *
-     * Key ID.
-     * 
- * - * string kid = 4; - * @return This builder for chaining. - */ - public Builder clearKid() { - - kid_ = getDefaultInstance().getKid(); - onChanged(); - return this; - } - /** - *
-     * Key ID.
-     * 
- * - * string kid = 4; - * @param value The bytes for kid to set. - * @return This builder for chaining. - */ - public Builder setKidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - kid_ = value; - onChanged(); - return this; - } - - private java.lang.Object n_ = ""; - /** - *
-     * Used for RSA keys.
-     * 
- * - * string n = 5; - * @return The n. - */ - public java.lang.String getN() { - java.lang.Object ref = n_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - n_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Used for RSA keys.
-     * 
- * - * string n = 5; - * @return The bytes for n. - */ - public com.google.protobuf.ByteString - getNBytes() { - java.lang.Object ref = n_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - n_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Used for RSA keys.
-     * 
- * - * string n = 5; - * @param value The n to set. - * @return This builder for chaining. - */ - public Builder setN( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - n_ = value; - onChanged(); - return this; - } - /** - *
-     * Used for RSA keys.
-     * 
- * - * string n = 5; - * @return This builder for chaining. - */ - public Builder clearN() { - - n_ = getDefaultInstance().getN(); - onChanged(); - return this; - } - /** - *
-     * Used for RSA keys.
-     * 
- * - * string n = 5; - * @param value The bytes for n to set. - * @return This builder for chaining. - */ - public Builder setNBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - n_ = value; - onChanged(); - return this; - } - - private java.lang.Object e_ = ""; - /** - *
-     * Used for RSA keys.
-     * 
- * - * string e = 6; - * @return The e. - */ - public java.lang.String getE() { - java.lang.Object ref = e_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - e_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Used for RSA keys.
-     * 
- * - * string e = 6; - * @return The bytes for e. - */ - public com.google.protobuf.ByteString - getEBytes() { - java.lang.Object ref = e_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - e_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Used for RSA keys.
-     * 
- * - * string e = 6; - * @param value The e to set. - * @return This builder for chaining. - */ - public Builder setE( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - e_ = value; - onChanged(); - return this; - } - /** - *
-     * Used for RSA keys.
-     * 
- * - * string e = 6; - * @return This builder for chaining. - */ - public Builder clearE() { - - e_ = getDefaultInstance().getE(); - onChanged(); - return this; - } - /** - *
-     * Used for RSA keys.
-     * 
- * - * string e = 6; - * @param value The bytes for e to set. - * @return This builder for chaining. - */ - public Builder setEBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - e_ = value; - onChanged(); - return this; - } - - private java.lang.Object x_ = ""; - /** - *
-     * Used for ECDSA keys.
-     * 
- * - * string x = 7; - * @return The x. - */ - public java.lang.String getX() { - java.lang.Object ref = x_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - x_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Used for ECDSA keys.
-     * 
- * - * string x = 7; - * @return The bytes for x. - */ - public com.google.protobuf.ByteString - getXBytes() { - java.lang.Object ref = x_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - x_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Used for ECDSA keys.
-     * 
- * - * string x = 7; - * @param value The x to set. - * @return This builder for chaining. - */ - public Builder setX( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - x_ = value; - onChanged(); - return this; - } - /** - *
-     * Used for ECDSA keys.
-     * 
- * - * string x = 7; - * @return This builder for chaining. - */ - public Builder clearX() { - - x_ = getDefaultInstance().getX(); - onChanged(); - return this; - } - /** - *
-     * Used for ECDSA keys.
-     * 
- * - * string x = 7; - * @param value The bytes for x to set. - * @return This builder for chaining. - */ - public Builder setXBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - x_ = value; - onChanged(); - return this; - } - - private java.lang.Object y_ = ""; - /** - *
-     * Used for ECDSA keys.
-     * 
- * - * string y = 8; - * @return The y. - */ - public java.lang.String getY() { - java.lang.Object ref = y_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - y_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Used for ECDSA keys.
-     * 
- * - * string y = 8; - * @return The bytes for y. - */ - public com.google.protobuf.ByteString - getYBytes() { - java.lang.Object ref = y_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - y_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Used for ECDSA keys.
-     * 
- * - * string y = 8; - * @param value The y to set. - * @return This builder for chaining. - */ - public Builder setY( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - y_ = value; - onChanged(); - return this; - } - /** - *
-     * Used for ECDSA keys.
-     * 
- * - * string y = 8; - * @return This builder for chaining. - */ - public Builder clearY() { - - y_ = getDefaultInstance().getY(); - onChanged(); - return this; - } - /** - *
-     * Used for ECDSA keys.
-     * 
- * - * string y = 8; - * @param value The bytes for y to set. - * @return This builder for chaining. - */ - public Builder setYBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - y_ = value; - onChanged(); - return this; - } - - private java.lang.Object crv_ = ""; - /** - *
-     * Used for ECDSA keys.
-     * 
- * - * string crv = 9; - * @return The crv. - */ - public java.lang.String getCrv() { - java.lang.Object ref = crv_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crv_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Used for ECDSA keys.
-     * 
- * - * string crv = 9; - * @return The bytes for crv. - */ - public com.google.protobuf.ByteString - getCrvBytes() { - java.lang.Object ref = crv_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - crv_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Used for ECDSA keys.
-     * 
- * - * string crv = 9; - * @param value The crv to set. - * @return This builder for chaining. - */ - public Builder setCrv( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - crv_ = value; - onChanged(); - return this; - } - /** - *
-     * Used for ECDSA keys.
-     * 
- * - * string crv = 9; - * @return This builder for chaining. - */ - public Builder clearCrv() { - - crv_ = getDefaultInstance().getCrv(); - onChanged(); - return this; - } - /** - *
-     * Used for ECDSA keys.
-     * 
- * - * string crv = 9; - * @param value The bytes for crv to set. - * @return This builder for chaining. - */ - public Builder setCrvBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - crv_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.Jwk) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.Jwk) - private static final com.google.container.v1beta1.Jwk DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.Jwk(); - } - - public static com.google.container.v1beta1.Jwk getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Jwk parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 63bd6fe278ad..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/JwkOrBuilder.java +++ /dev/null @@ -1,189 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface JwkOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.Jwk) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Key Type.
-   * 
- * - * string kty = 1; - * @return The kty. - */ - java.lang.String getKty(); - /** - *
-   * Key Type.
-   * 
- * - * string kty = 1; - * @return The bytes for kty. - */ - com.google.protobuf.ByteString - getKtyBytes(); - - /** - *
-   * Algorithm.
-   * 
- * - * string alg = 2; - * @return The alg. - */ - java.lang.String getAlg(); - /** - *
-   * Algorithm.
-   * 
- * - * string alg = 2; - * @return The bytes for alg. - */ - com.google.protobuf.ByteString - getAlgBytes(); - - /** - *
-   * Permitted uses for the public keys.
-   * 
- * - * string use = 3; - * @return The use. - */ - java.lang.String getUse(); - /** - *
-   * Permitted uses for the public keys.
-   * 
- * - * string use = 3; - * @return The bytes for use. - */ - com.google.protobuf.ByteString - getUseBytes(); - - /** - *
-   * Key ID.
-   * 
- * - * string kid = 4; - * @return The kid. - */ - java.lang.String getKid(); - /** - *
-   * Key ID.
-   * 
- * - * string kid = 4; - * @return The bytes for kid. - */ - com.google.protobuf.ByteString - getKidBytes(); - - /** - *
-   * Used for RSA keys.
-   * 
- * - * string n = 5; - * @return The n. - */ - java.lang.String getN(); - /** - *
-   * Used for RSA keys.
-   * 
- * - * string n = 5; - * @return The bytes for n. - */ - com.google.protobuf.ByteString - getNBytes(); - - /** - *
-   * Used for RSA keys.
-   * 
- * - * string e = 6; - * @return The e. - */ - java.lang.String getE(); - /** - *
-   * Used for RSA keys.
-   * 
- * - * string e = 6; - * @return The bytes for e. - */ - com.google.protobuf.ByteString - getEBytes(); - - /** - *
-   * Used for ECDSA keys.
-   * 
- * - * string x = 7; - * @return The x. - */ - java.lang.String getX(); - /** - *
-   * Used for ECDSA keys.
-   * 
- * - * string x = 7; - * @return The bytes for x. - */ - com.google.protobuf.ByteString - getXBytes(); - - /** - *
-   * Used for ECDSA keys.
-   * 
- * - * string y = 8; - * @return The y. - */ - java.lang.String getY(); - /** - *
-   * Used for ECDSA keys.
-   * 
- * - * string y = 8; - * @return The bytes for y. - */ - com.google.protobuf.ByteString - getYBytes(); - - /** - *
-   * Used for ECDSA keys.
-   * 
- * - * string crv = 9; - * @return The crv. - */ - java.lang.String getCrv(); - /** - *
-   * Used for ECDSA keys.
-   * 
- * - * string crv = 9; - * @return The bytes for crv. - */ - com.google.protobuf.ByteString - getCrvBytes(); -} diff --git a/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 deleted file mode 100644 index 16519b7d7e1e..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfig.java +++ /dev/null @@ -1,498 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Configuration options for the KALM addon.
- * 
- * - * Protobuf type {@code google.container.v1beta1.KalmConfig} - */ -public final class KalmConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.KalmConfig) - KalmConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use KalmConfig.newBuilder() to construct. - private KalmConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private KalmConfig() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new KalmConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_KalmConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_KalmConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.KalmConfig.class, com.google.container.v1beta1.KalmConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-   * Whether KALM is enabled for this cluster.
-   * 
- * - * bool enabled = 1 [deprecated = true]; - * @deprecated google.container.v1beta1.KalmConfig.enabled is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1130 - * @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(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_KalmConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.KalmConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.KalmConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.KalmConfig build() { - com.google.container.v1beta1.KalmConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.KalmConfig buildPartial() { - com.google.container.v1beta1.KalmConfig result = new com.google.container.v1beta1.KalmConfig(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.KalmConfig) { - return mergeFrom((com.google.container.v1beta1.KalmConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.KalmConfig other) { - if (other == com.google.container.v1beta1.KalmConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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=1130 - * @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=1130 - * @param value The enabled to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setEnabled(boolean value) { - - enabled_ = value; - 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=1130 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.KalmConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.KalmConfig) - private static final com.google.container.v1beta1.KalmConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.KalmConfig(); - } - - public static com.google.container.v1beta1.KalmConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KalmConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 110ea8956d9d..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfigOrBuilder.java +++ /dev/null @@ -1,21 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface KalmConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.KalmConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether KALM is enabled for this cluster.
-   * 
- * - * bool enabled = 1 [deprecated = true]; - * @deprecated google.container.v1beta1.KalmConfig.enabled is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1130 - * @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 deleted file mode 100644 index 7cd83e37c9fd..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KubernetesDashboard.java +++ /dev/null @@ -1,490 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Configuration for the Kubernetes Dashboard.
- * 
- * - * Protobuf type {@code google.container.v1beta1.KubernetesDashboard} - */ -public final class KubernetesDashboard extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.KubernetesDashboard) - KubernetesDashboardOrBuilder { -private static final long serialVersionUID = 0L; - // Use KubernetesDashboard.newBuilder() to construct. - private KubernetesDashboard(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private KubernetesDashboard() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new KubernetesDashboard(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_KubernetesDashboard_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_KubernetesDashboard_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.KubernetesDashboard.class, com.google.container.v1beta1.KubernetesDashboard.Builder.class); - } - - public static final int DISABLED_FIELD_NUMBER = 1; - private boolean disabled_; - /** - *
-   * Whether the Kubernetes Dashboard is enabled for this cluster.
-   * 
- * - * bool disabled = 1; - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (disabled_ != false) { - output.writeBool(1, disabled_); - } - 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(); - disabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_KubernetesDashboard_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.KubernetesDashboard getDefaultInstanceForType() { - return com.google.container.v1beta1.KubernetesDashboard.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.KubernetesDashboard build() { - com.google.container.v1beta1.KubernetesDashboard result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.KubernetesDashboard buildPartial() { - com.google.container.v1beta1.KubernetesDashboard result = new com.google.container.v1beta1.KubernetesDashboard(this); - result.disabled_ = disabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.KubernetesDashboard) { - return mergeFrom((com.google.container.v1beta1.KubernetesDashboard)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.KubernetesDashboard other) { - if (other == com.google.container.v1beta1.KubernetesDashboard.getDefaultInstance()) return this; - if (other.getDisabled() != false) { - setDisabled(other.getDisabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 boolean disabled_ ; - /** - *
-     * Whether the Kubernetes Dashboard is enabled for this cluster.
-     * 
- * - * bool disabled = 1; - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - /** - *
-     * Whether the Kubernetes Dashboard is enabled for this cluster.
-     * 
- * - * bool disabled = 1; - * @param value The disabled to set. - * @return This builder for chaining. - */ - public Builder setDisabled(boolean value) { - - disabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether the Kubernetes Dashboard is enabled for this cluster.
-     * 
- * - * bool disabled = 1; - * @return This builder for chaining. - */ - public Builder clearDisabled() { - - disabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.KubernetesDashboard) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.KubernetesDashboard) - private static final com.google.container.v1beta1.KubernetesDashboard DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.KubernetesDashboard(); - } - - public static com.google.container.v1beta1.KubernetesDashboard getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KubernetesDashboard parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 119fb93516bf..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KubernetesDashboardOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface KubernetesDashboardOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.KubernetesDashboard) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether the Kubernetes Dashboard is enabled for this cluster.
-   * 
- * - * bool disabled = 1; - * @return The disabled. - */ - boolean getDisabled(); -} diff --git a/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 deleted file mode 100644 index 44d2f2828d12..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LegacyAbac.java +++ /dev/null @@ -1,504 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Configuration for the legacy Attribute Based Access Control authorization
- * mode.
- * 
- * - * Protobuf type {@code google.container.v1beta1.LegacyAbac} - */ -public final class LegacyAbac extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.LegacyAbac) - LegacyAbacOrBuilder { -private static final long serialVersionUID = 0L; - // Use LegacyAbac.newBuilder() to construct. - private LegacyAbac(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LegacyAbac() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LegacyAbac(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_LegacyAbac_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_LegacyAbac_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.LegacyAbac.class, com.google.container.v1beta1.LegacyAbac.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-   * Whether the ABAC authorizer is enabled for this cluster. When enabled,
-   * identities in the system, including service accounts, nodes, and
-   * controllers, will have statically granted permissions beyond those
-   * provided by the RBAC configuration or IAM.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - 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(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_LegacyAbac_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.LegacyAbac getDefaultInstanceForType() { - return com.google.container.v1beta1.LegacyAbac.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.LegacyAbac build() { - com.google.container.v1beta1.LegacyAbac result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.LegacyAbac buildPartial() { - com.google.container.v1beta1.LegacyAbac result = new com.google.container.v1beta1.LegacyAbac(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.LegacyAbac) { - return mergeFrom((com.google.container.v1beta1.LegacyAbac)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.LegacyAbac other) { - if (other == com.google.container.v1beta1.LegacyAbac.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 boolean enabled_ ; - /** - *
-     * Whether the ABAC authorizer is enabled for this cluster. When enabled,
-     * identities in the system, including service accounts, nodes, and
-     * controllers, will have statically granted permissions beyond those
-     * provided by the RBAC configuration or IAM.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Whether the ABAC authorizer is enabled for this cluster. When enabled,
-     * identities in the system, including service accounts, nodes, and
-     * controllers, will have statically granted permissions beyond those
-     * provided by the RBAC configuration or IAM.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether the ABAC authorizer is enabled for this cluster. When enabled,
-     * identities in the system, including service accounts, nodes, and
-     * controllers, will have statically granted permissions beyond those
-     * provided by the RBAC configuration or IAM.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.LegacyAbac) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.LegacyAbac) - private static final com.google.container.v1beta1.LegacyAbac DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.LegacyAbac(); - } - - public static com.google.container.v1beta1.LegacyAbac getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LegacyAbac parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 50ccd1db723b..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LegacyAbacOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface LegacyAbacOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.LegacyAbac) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether the ABAC authorizer is enabled for this cluster. When enabled,
-   * identities in the system, including service accounts, nodes, and
-   * controllers, will have statically granted permissions beyond those
-   * provided by the RBAC configuration or IAM.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/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 deleted file mode 100644 index aa5ead7c3239..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LinuxNodeConfig.java +++ /dev/null @@ -1,1153 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Parameters that can be configured on Linux nodes.
- * 
- * - * Protobuf type {@code google.container.v1beta1.LinuxNodeConfig} - */ -public final class LinuxNodeConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.LinuxNodeConfig) - LinuxNodeConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use LinuxNodeConfig.newBuilder() to construct. - private LinuxNodeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LinuxNodeConfig() { - cgroupMode_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LinuxNodeConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_LinuxNodeConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetSysctls(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_LinuxNodeConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.LinuxNodeConfig.class, com.google.container.v1beta1.LinuxNodeConfig.Builder.class); - } - - /** - *
-   * 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, - ""); - } - 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 java.lang.String getSysctlsOrDefault( - java.lang.String key, - 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_; - /** - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.LinuxNodeConfig.CgroupMode result = com.google.container.v1beta1.LinuxNodeConfig.CgroupMode.valueOf(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.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetSysctls(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableSysctls(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_LinuxNodeConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.LinuxNodeConfig.class, com.google.container.v1beta1.LinuxNodeConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.LinuxNodeConfig.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - 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); - int from_bitField0_ = bitField0_; - result.sysctls_ = internalGetSysctls(); - result.sysctls_.makeImmutable(); - result.cgroupMode_ = cgroupMode_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.LinuxNodeConfig) { - return mergeFrom((com.google.container.v1beta1.LinuxNodeConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.LinuxNodeConfig other) { - if (other == com.google.container.v1beta1.LinuxNodeConfig.getDefaultInstance()) return this; - internalGetMutableSysctls().mergeFrom( - other.internalGetSysctls()); - 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()); - break; - } // case 10 - case 16: { - cgroupMode_ = input.readEnum(); - - 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() { - onChanged();; - if (sysctls_ == null) { - sysctls_ = com.google.protobuf.MapField.newMapField( - SysctlsDefaultEntryHolder.defaultEntry); - } - if (!sysctls_.isMutable()) { - sysctls_ = sysctls_.copy(); - } - return sysctls_; - } - - public int getSysctlsCount() { - return internalGetSysctls().getMap().size(); - } - /** - *
-     * The Linux kernel parameters to be applied to the nodes and all pods running
-     * on the nodes.
-     * The following parameters are supported.
-     * net.core.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 java.lang.String getSysctlsOrDefault( - java.lang.String key, - 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() { - 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() { - 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); - 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); - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.LinuxNodeConfig.CgroupMode result = com.google.container.v1beta1.LinuxNodeConfig.CgroupMode.valueOf(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(); - } - - 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() { - - 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 deleted file mode 100644 index b05daec9df6e..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LinuxNodeConfigOrBuilder.java +++ /dev/null @@ -1,149 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface LinuxNodeConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.LinuxNodeConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The Linux kernel parameters to be applied to the nodes and all pods running
-   * on the nodes.
-   * The following parameters are supported.
-   * net.core.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 deleted file mode 100644 index 6faa587db803..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequest.java +++ /dev/null @@ -1,981 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * ListClustersRequest lists clusters.
- * 
- * - * Protobuf type {@code google.container.v1beta1.ListClustersRequest} - */ -public final class ListClustersRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListClustersRequest) - ListClustersRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListClustersRequest.newBuilder() to construct. - private ListClustersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListClustersRequest() { - projectId_ = ""; - zone_ = ""; - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListClustersRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListClustersRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListClustersRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.ListClustersRequest.class, com.google.container.v1beta1.ListClustersRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://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=2897 - * @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=2897 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Required. Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides, or "-" for all zones. This field has been deprecated and
-   * replaced by the parent field.
-   * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2906 - * @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=2906 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARENT_FIELD_NUMBER = 4; - private volatile java.lang.Object parent_; - /** - *
-   * The parent (project and location) where the clusters will be listed.
-   * Specified in the format `projects/*/locations/*`.
-   * Location "-" matches all zones and all regions.
-   * 
- * - * string parent = 4; - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * The parent (project and location) where the clusters will be listed.
-   * Specified in the format `projects/*/locations/*`.
-   * Location "-" matches all zones and all regions.
-   * 
- * - * string parent = 4; - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - projectId_ = ""; - - zone_ = ""; - - parent_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListClustersRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.ListClustersRequest getDefaultInstanceForType() { - return com.google.container.v1beta1.ListClustersRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.ListClustersRequest build() { - com.google.container.v1beta1.ListClustersRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.ListClustersRequest buildPartial() { - com.google.container.v1beta1.ListClustersRequest result = new com.google.container.v1beta1.ListClustersRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.parent_ = parent_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.ListClustersRequest) { - return mergeFrom((com.google.container.v1beta1.ListClustersRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.ListClustersRequest other) { - if (other == com.google.container.v1beta1.ListClustersRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 34: { - parent_ = input.readStringRequireUtf8(); - - 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 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=2897 - * @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=2897 - * @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=2897 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://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=2897 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://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=2897 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides, or "-" for all zones. This field has been deprecated and
-     * replaced by the parent field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2906 - * @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=2906 - * @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=2906 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides, or "-" for all zones. This field has been deprecated and
-     * replaced by the parent field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2906 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides, or "-" for all zones. This field has been deprecated and
-     * replaced by the parent field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2906 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object parent_ = ""; - /** - *
-     * The parent (project and location) where the clusters will be listed.
-     * Specified in the format `projects/*/locations/*`.
-     * Location "-" matches all zones and all regions.
-     * 
- * - * string parent = 4; - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The parent (project and location) where the clusters will be listed.
-     * Specified in the format `projects/*/locations/*`.
-     * Location "-" matches all zones and all regions.
-     * 
- * - * string parent = 4; - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The parent (project and location) where the clusters will be listed.
-     * Specified in the format `projects/*/locations/*`.
-     * Location "-" matches all zones and all regions.
-     * 
- * - * string parent = 4; - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - *
-     * The parent (project and location) where the clusters will be listed.
-     * Specified in the format `projects/*/locations/*`.
-     * Location "-" matches all zones and all regions.
-     * 
- * - * string parent = 4; - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - *
-     * The parent (project and location) where the clusters will be listed.
-     * Specified in the format `projects/*/locations/*`.
-     * Location "-" matches all zones and all regions.
-     * 
- * - * string parent = 4; - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ListClustersRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.ListClustersRequest) - private static final com.google.container.v1beta1.ListClustersRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.ListClustersRequest(); - } - - public static com.google.container.v1beta1.ListClustersRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListClustersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 48e13e28ef45..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequestOrBuilder.java +++ /dev/null @@ -1,91 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface ListClustersRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListClustersRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://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=2897 - * @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=2897 - * @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=2906 - * @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=2906 - * @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 deleted file mode 100644 index a4455b1ae62c..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersResponse.java +++ /dev/null @@ -1,1126 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * ListClustersResponse is the result of ListClustersRequest.
- * 
- * - * Protobuf type {@code google.container.v1beta1.ListClustersResponse} - */ -public final class ListClustersResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListClustersResponse) - ListClustersResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListClustersResponse.newBuilder() to construct. - private ListClustersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListClustersResponse() { - clusters_ = java.util.Collections.emptyList(); - missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListClustersResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListClustersResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListClustersResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.ListClustersResponse.class, com.google.container.v1beta1.ListClustersResponse.Builder.class); - } - - public static final int CLUSTERS_FIELD_NUMBER = 1; - private java.util.List clusters_; - /** - *
-   * A list of clusters in the project in the specified zone, or
-   * across all ones.
-   * 
- * - * repeated .google.container.v1beta1.Cluster clusters = 1; - */ - @java.lang.Override - public java.util.List getClustersList() { - return clusters_; - } - /** - *
-   * A list of clusters in the project in the specified zone, or
-   * across all ones.
-   * 
- * - * repeated .google.container.v1beta1.Cluster clusters = 1; - */ - @java.lang.Override - public java.util.List - getClustersOrBuilderList() { - return clusters_; - } - /** - *
-   * A list of clusters in the project in the specified zone, or
-   * across all ones.
-   * 
- * - * repeated .google.container.v1beta1.Cluster clusters = 1; - */ - @java.lang.Override - public int getClustersCount() { - return clusters_.size(); - } - /** - *
-   * A list of clusters in the project in the specified zone, or
-   * across all ones.
-   * 
- * - * repeated .google.container.v1beta1.Cluster clusters = 1; - */ - @java.lang.Override - public com.google.container.v1beta1.Cluster getClusters(int index) { - return clusters_.get(index); - } - /** - *
-   * A list of clusters in the project in the specified zone, or
-   * across all ones.
-   * 
- * - * repeated .google.container.v1beta1.Cluster clusters = 1; - */ - @java.lang.Override - public com.google.container.v1beta1.ClusterOrBuilder getClustersOrBuilder( - int index) { - return clusters_.get(index); - } - - public static final int MISSING_ZONES_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList missingZones_; - /** - *
-   * If any zones are listed here, the list of clusters returned
-   * may be missing those zones.
-   * 
- * - * repeated string missing_zones = 2; - * @return A list containing the missingZones. - */ - public com.google.protobuf.ProtocolStringList - getMissingZonesList() { - return missingZones_; - } - /** - *
-   * If any zones are listed here, the list of clusters returned
-   * may be missing those zones.
-   * 
- * - * repeated string missing_zones = 2; - * @return The count of missingZones. - */ - public int getMissingZonesCount() { - return missingZones_.size(); - } - /** - *
-   * If any zones are listed here, the list of clusters returned
-   * may be missing those zones.
-   * 
- * - * repeated string missing_zones = 2; - * @param index The index of the element to return. - * @return The missingZones at the given index. - */ - public java.lang.String getMissingZones(int index) { - return missingZones_.get(index); - } - /** - *
-   * If any zones are listed here, the list of clusters returned
-   * may be missing those zones.
-   * 
- * - * repeated string missing_zones = 2; - * @param index The index of the value to return. - * @return The bytes of the missingZones at the given index. - */ - public com.google.protobuf.ByteString - getMissingZonesBytes(int index) { - return missingZones_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < clusters_.size(); i++) { - output.writeMessage(1, clusters_.get(i)); - } - for (int i = 0; i < missingZones_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, missingZones_.getRaw(i)); - } - 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(); - if (clustersBuilder_ == null) { - clusters_ = java.util.Collections.emptyList(); - } else { - clusters_ = null; - clustersBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListClustersResponse_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.ListClustersResponse getDefaultInstanceForType() { - return com.google.container.v1beta1.ListClustersResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.ListClustersResponse build() { - com.google.container.v1beta1.ListClustersResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.ListClustersResponse buildPartial() { - com.google.container.v1beta1.ListClustersResponse result = new com.google.container.v1beta1.ListClustersResponse(this); - int from_bitField0_ = bitField0_; - if (clustersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - clusters_ = java.util.Collections.unmodifiableList(clusters_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.clusters_ = clusters_; - } else { - result.clusters_ = clustersBuilder_.build(); - } - if (((bitField0_ & 0x00000002) != 0)) { - missingZones_ = missingZones_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.missingZones_ = missingZones_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.ListClustersResponse) { - return mergeFrom((com.google.container.v1beta1.ListClustersResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.ListClustersResponse other) { - if (other == com.google.container.v1beta1.ListClustersResponse.getDefaultInstance()) return this; - if (clustersBuilder_ == null) { - if (!other.clusters_.isEmpty()) { - if (clusters_.isEmpty()) { - clusters_ = other.clusters_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureClustersIsMutable(); - clusters_.addAll(other.clusters_); - } - onChanged(); - } - } else { - if (!other.clusters_.isEmpty()) { - if (clustersBuilder_.isEmpty()) { - clustersBuilder_.dispose(); - clustersBuilder_ = null; - clusters_ = other.clusters_; - bitField0_ = (bitField0_ & ~0x00000001); - clustersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getClustersFieldBuilder() : null; - } else { - clustersBuilder_.addAllMessages(other.clusters_); - } - } - } - if (!other.missingZones_.isEmpty()) { - if (missingZones_.isEmpty()) { - missingZones_ = other.missingZones_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureMissingZonesIsMutable(); - missingZones_.addAll(other.missingZones_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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.LazyStringList missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureMissingZonesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - missingZones_ = new com.google.protobuf.LazyStringArrayList(missingZones_); - bitField0_ |= 0x00000002; - } - } - /** - *
-     * If any zones are listed here, the list of clusters returned
-     * may be missing those zones.
-     * 
- * - * repeated string missing_zones = 2; - * @return A list containing the missingZones. - */ - public com.google.protobuf.ProtocolStringList - getMissingZonesList() { - return missingZones_.getUnmodifiableView(); - } - /** - *
-     * If any zones are listed here, the list of clusters returned
-     * may be missing those zones.
-     * 
- * - * repeated string missing_zones = 2; - * @return The count of missingZones. - */ - public int getMissingZonesCount() { - return missingZones_.size(); - } - /** - *
-     * If any zones are listed here, the list of clusters returned
-     * may be missing those zones.
-     * 
- * - * repeated string missing_zones = 2; - * @param index The index of the element to return. - * @return The missingZones at the given index. - */ - public java.lang.String getMissingZones(int index) { - return missingZones_.get(index); - } - /** - *
-     * If any zones are listed here, the list of clusters returned
-     * may be missing those zones.
-     * 
- * - * repeated string missing_zones = 2; - * @param index The index of the value to return. - * @return The bytes of the missingZones at the given index. - */ - public com.google.protobuf.ByteString - getMissingZonesBytes(int index) { - return missingZones_.getByteString(index); - } - /** - *
-     * If any zones are listed here, the list of clusters returned
-     * may be missing those zones.
-     * 
- * - * repeated string missing_zones = 2; - * @param index The index to set the value at. - * @param value The missingZones to set. - * @return This builder for chaining. - */ - public Builder setMissingZones( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMissingZonesIsMutable(); - missingZones_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * If any zones are listed here, the list of clusters returned
-     * may be missing those zones.
-     * 
- * - * repeated string missing_zones = 2; - * @param value The missingZones to add. - * @return This builder for chaining. - */ - public Builder addMissingZones( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMissingZonesIsMutable(); - missingZones_.add(value); - onChanged(); - return this; - } - /** - *
-     * If any zones are listed here, the list of clusters returned
-     * may be missing those zones.
-     * 
- * - * repeated string missing_zones = 2; - * @param values The missingZones to add. - * @return This builder for chaining. - */ - public Builder addAllMissingZones( - java.lang.Iterable values) { - ensureMissingZonesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, missingZones_); - onChanged(); - return this; - } - /** - *
-     * If any zones are listed here, the list of clusters returned
-     * may be missing those zones.
-     * 
- * - * repeated string missing_zones = 2; - * @return This builder for chaining. - */ - public Builder clearMissingZones() { - missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * If any zones are listed here, the list of clusters returned
-     * may be missing those zones.
-     * 
- * - * repeated string missing_zones = 2; - * @param value The bytes of the missingZones to add. - * @return This builder for chaining. - */ - public Builder addMissingZonesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureMissingZonesIsMutable(); - missingZones_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ListClustersResponse) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.ListClustersResponse) - private static final com.google.container.v1beta1.ListClustersResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.ListClustersResponse(); - } - - public static com.google.container.v1beta1.ListClustersResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListClustersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 9d49676a2b65..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersResponseOrBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface ListClustersResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListClustersResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * A list of clusters in the project in the specified zone, or
-   * across all ones.
-   * 
- * - * repeated .google.container.v1beta1.Cluster clusters = 1; - */ - java.util.List - getClustersList(); - /** - *
-   * A list of clusters in the project in the specified zone, or
-   * across all ones.
-   * 
- * - * repeated .google.container.v1beta1.Cluster clusters = 1; - */ - com.google.container.v1beta1.Cluster getClusters(int index); - /** - *
-   * A list of clusters in the project in the specified zone, or
-   * across all ones.
-   * 
- * - * repeated .google.container.v1beta1.Cluster clusters = 1; - */ - int getClustersCount(); - /** - *
-   * A list of clusters in the project in the specified zone, or
-   * across all ones.
-   * 
- * - * repeated .google.container.v1beta1.Cluster clusters = 1; - */ - java.util.List - getClustersOrBuilderList(); - /** - *
-   * A list of clusters in the project in the specified zone, or
-   * across all ones.
-   * 
- * - * repeated .google.container.v1beta1.Cluster clusters = 1; - */ - com.google.container.v1beta1.ClusterOrBuilder getClustersOrBuilder( - int index); - - /** - *
-   * If any zones are listed here, the list of clusters returned
-   * may be missing those zones.
-   * 
- * - * repeated string missing_zones = 2; - * @return A list containing the missingZones. - */ - java.util.List - getMissingZonesList(); - /** - *
-   * If any zones are listed here, the list of clusters returned
-   * may be missing those zones.
-   * 
- * - * repeated string missing_zones = 2; - * @return The count of missingZones. - */ - int getMissingZonesCount(); - /** - *
-   * If any zones are listed here, the list of clusters returned
-   * may be missing those zones.
-   * 
- * - * repeated string missing_zones = 2; - * @param index The index of the element to return. - * @return The missingZones at the given index. - */ - java.lang.String getMissingZones(int index); - /** - *
-   * If any zones are listed here, the list of clusters returned
-   * may be missing those zones.
-   * 
- * - * repeated string missing_zones = 2; - * @param index The index of the value to return. - * @return The bytes of the missingZones at the given index. - */ - com.google.protobuf.ByteString - getMissingZonesBytes(int index); -} diff --git a/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 deleted file mode 100644 index 1655f5e99c8e..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsRequest.java +++ /dev/null @@ -1,581 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * ListLocationsRequest is used to request the locations that offer GKE.
- * 
- * - * Protobuf type {@code google.container.v1beta1.ListLocationsRequest} - */ -public final class ListLocationsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListLocationsRequest) - ListLocationsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListLocationsRequest.newBuilder() to construct. - private ListLocationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListLocationsRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListLocationsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListLocationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListLocationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.ListLocationsRequest.class, com.google.container.v1beta1.ListLocationsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - *
-   * Required. Contains the name of the resource requested.
-   * Specified in the format `projects/*`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Contains the name of the resource requested.
-   * Specified in the format `projects/*`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - parent_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListLocationsRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.ListLocationsRequest getDefaultInstanceForType() { - return com.google.container.v1beta1.ListLocationsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.ListLocationsRequest build() { - com.google.container.v1beta1.ListLocationsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.ListLocationsRequest buildPartial() { - com.google.container.v1beta1.ListLocationsRequest result = new com.google.container.v1beta1.ListLocationsRequest(this); - result.parent_ = parent_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.ListLocationsRequest) { - return mergeFrom((com.google.container.v1beta1.ListLocationsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.ListLocationsRequest other) { - if (other == com.google.container.v1beta1.ListLocationsRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 java.lang.Object parent_ = ""; - /** - *
-     * Required. Contains the name of the resource requested.
-     * Specified in the format `projects/*`.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Contains the name of the resource requested.
-     * Specified in the format `projects/*`.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Contains the name of the resource requested.
-     * Specified in the format `projects/*`.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Contains the name of the resource requested.
-     * Specified in the format `projects/*`.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - *
-     * Required. Contains the name of the resource requested.
-     * Specified in the format `projects/*`.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ListLocationsRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.ListLocationsRequest) - private static final com.google.container.v1beta1.ListLocationsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.ListLocationsRequest(); - } - - public static com.google.container.v1beta1.ListLocationsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLocationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 6c85e2a75b77..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface ListLocationsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListLocationsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Contains the name of the resource requested.
-   * Specified in the format `projects/*`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Contains the name of the resource requested.
-   * Specified in the format `projects/*`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); -} diff --git a/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 deleted file mode 100644 index 03e4a610c304..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsResponse.java +++ /dev/null @@ -1,1040 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * ListLocationsResponse returns the list of all GKE locations and their
- * recommendation state.
- * 
- * - * Protobuf type {@code google.container.v1beta1.ListLocationsResponse} - */ -public final class ListLocationsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListLocationsResponse) - ListLocationsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListLocationsResponse.newBuilder() to construct. - private ListLocationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListLocationsResponse() { - locations_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListLocationsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListLocationsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListLocationsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.ListLocationsResponse.class, com.google.container.v1beta1.ListLocationsResponse.Builder.class); - } - - public static final int LOCATIONS_FIELD_NUMBER = 1; - private java.util.List locations_; - /** - *
-   * A full list of GKE locations.
-   * 
- * - * repeated .google.container.v1beta1.Location locations = 1; - */ - @java.lang.Override - public java.util.List getLocationsList() { - return locations_; - } - /** - *
-   * A full list of GKE locations.
-   * 
- * - * repeated .google.container.v1beta1.Location locations = 1; - */ - @java.lang.Override - public java.util.List - getLocationsOrBuilderList() { - return locations_; - } - /** - *
-   * A full list of GKE locations.
-   * 
- * - * repeated .google.container.v1beta1.Location locations = 1; - */ - @java.lang.Override - public int getLocationsCount() { - return locations_.size(); - } - /** - *
-   * A full list of GKE locations.
-   * 
- * - * repeated .google.container.v1beta1.Location locations = 1; - */ - @java.lang.Override - public com.google.container.v1beta1.Location getLocations(int index) { - return locations_.get(index); - } - /** - *
-   * A full list of GKE locations.
-   * 
- * - * repeated .google.container.v1beta1.Location locations = 1; - */ - @java.lang.Override - public com.google.container.v1beta1.LocationOrBuilder getLocationsOrBuilder( - int index) { - return locations_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - *
-   * Only return ListLocationsResponse that occur after the page_token. This
-   * value should be populated from the ListLocationsResponse.next_page_token if
-   * that response token was set (which happens when listing more Locations than
-   * fit in a single ListLocationsResponse).
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * Only return ListLocationsResponse that occur after the page_token. This
-   * value should be populated from the ListLocationsResponse.next_page_token if
-   * that response token was set (which happens when listing more Locations than
-   * fit in a single ListLocationsResponse).
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < locations_.size(); i++) { - output.writeMessage(1, locations_.get(i)); - } - if (!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(); - 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); - int from_bitField0_ = bitField0_; - if (locationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - locations_ = java.util.Collections.unmodifiableList(locations_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.locations_ = locations_; - } else { - result.locations_ = locationsBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.ListLocationsResponse) { - return mergeFrom((com.google.container.v1beta1.ListLocationsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.ListLocationsResponse other) { - if (other == com.google.container.v1beta1.ListLocationsResponse.getDefaultInstance()) return this; - if (locationsBuilder_ == null) { - if (!other.locations_.isEmpty()) { - if (locations_.isEmpty()) { - locations_ = other.locations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLocationsIsMutable(); - locations_.addAll(other.locations_); - } - onChanged(); - } - } else { - if (!other.locations_.isEmpty()) { - if (locationsBuilder_.isEmpty()) { - locationsBuilder_.dispose(); - locationsBuilder_ = null; - locations_ = other.locations_; - bitField0_ = (bitField0_ & ~0x00000001); - locationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLocationsFieldBuilder() : null; - } else { - locationsBuilder_.addAllMessages(other.locations_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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; - onChanged(); - return this; - } - /** - *
-     * Only return ListLocationsResponse that occur after the page_token. This
-     * value should be populated from the ListLocationsResponse.next_page_token if
-     * that response token was set (which happens when listing more Locations than
-     * fit in a single ListLocationsResponse).
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - *
-     * Only return ListLocationsResponse that occur after the page_token. This
-     * value should be populated from the ListLocationsResponse.next_page_token if
-     * that response token was set (which happens when listing more Locations than
-     * fit in a single ListLocationsResponse).
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ListLocationsResponse) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.ListLocationsResponse) - private static final com.google.container.v1beta1.ListLocationsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.ListLocationsResponse(); - } - - public static com.google.container.v1beta1.ListLocationsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLocationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 19ad53a31a40..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsResponseOrBuilder.java +++ /dev/null @@ -1,79 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface ListLocationsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListLocationsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * A full list of GKE locations.
-   * 
- * - * repeated .google.container.v1beta1.Location locations = 1; - */ - java.util.List - getLocationsList(); - /** - *
-   * A full list of GKE locations.
-   * 
- * - * repeated .google.container.v1beta1.Location locations = 1; - */ - com.google.container.v1beta1.Location getLocations(int index); - /** - *
-   * A full list of GKE locations.
-   * 
- * - * repeated .google.container.v1beta1.Location locations = 1; - */ - int getLocationsCount(); - /** - *
-   * A full list of GKE locations.
-   * 
- * - * repeated .google.container.v1beta1.Location locations = 1; - */ - java.util.List - getLocationsOrBuilderList(); - /** - *
-   * A full list of GKE locations.
-   * 
- * - * repeated .google.container.v1beta1.Location locations = 1; - */ - com.google.container.v1beta1.LocationOrBuilder getLocationsOrBuilder( - int index); - - /** - *
-   * Only return ListLocationsResponse that occur after the page_token. This
-   * value should be populated from the ListLocationsResponse.next_page_token if
-   * that response token was set (which happens when listing more Locations than
-   * fit in a single ListLocationsResponse).
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * Only return ListLocationsResponse that occur after the page_token. This
-   * value should be populated from the ListLocationsResponse.next_page_token if
-   * that response token was set (which happens when listing more Locations than
-   * fit in a single ListLocationsResponse).
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/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 deleted file mode 100644 index 7d3378871160..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequest.java +++ /dev/null @@ -1,1160 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * ListNodePoolsRequest lists the node pool(s) for a cluster.
- * 
- * - * Protobuf type {@code google.container.v1beta1.ListNodePoolsRequest} - */ -public final class ListNodePoolsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListNodePoolsRequest) - ListNodePoolsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListNodePoolsRequest.newBuilder() to construct. - private ListNodePoolsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListNodePoolsRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListNodePoolsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListNodePoolsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListNodePoolsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.ListNodePoolsRequest.class, com.google.container.v1beta1.ListNodePoolsRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://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=3198 - * @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=3198 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Required. Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the parent
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. - * See google/container/v1beta1/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; - } - } - /** - *
-   * Required. Deprecated. The name of the Google Compute 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=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; - 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=3214 - * @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=3214 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARENT_FIELD_NUMBER = 5; - private volatile java.lang.Object parent_; - /** - *
-   * The parent (project, location, cluster 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(); - projectId_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - parent_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListNodePoolsRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.ListNodePoolsRequest getDefaultInstanceForType() { - return com.google.container.v1beta1.ListNodePoolsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.ListNodePoolsRequest build() { - com.google.container.v1beta1.ListNodePoolsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.ListNodePoolsRequest buildPartial() { - com.google.container.v1beta1.ListNodePoolsRequest result = new com.google.container.v1beta1.ListNodePoolsRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.parent_ = parent_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.ListNodePoolsRequest) { - return mergeFrom((com.google.container.v1beta1.ListNodePoolsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.ListNodePoolsRequest other) { - if (other == com.google.container.v1beta1.ListNodePoolsRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 42: { - parent_ = input.readStringRequireUtf8(); - - 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 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=3198 - * @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=3198 - * @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=3198 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://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=3198 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://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=3198 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the parent
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. - * See google/container/v1beta1/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; - } - } - /** - *
-     * Required. Deprecated. The name of the Google Compute 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=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; - } - } - /** - *
-     * Required. Deprecated. The name of the Google Compute 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=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; - 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=3207 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the parent
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. - * See google/container/v1beta1/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; - 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=3214 - * @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=3214 - * @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=3214 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3214 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3214 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object parent_ = ""; - /** - *
-     * The parent (project, location, cluster 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; - 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(); - 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; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 97c2edd95887..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequestOrBuilder.java +++ /dev/null @@ -1,115 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface ListNodePoolsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListNodePoolsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://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=3198 - * @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=3198 - * @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=3207 - * @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=3207 - * @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=3214 - * @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=3214 - * @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 deleted file mode 100644 index 19a14771ee4b..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsResponse.java +++ /dev/null @@ -1,852 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * ListNodePoolsResponse is the result of ListNodePoolsRequest.
- * 
- * - * Protobuf type {@code google.container.v1beta1.ListNodePoolsResponse} - */ -public final class ListNodePoolsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListNodePoolsResponse) - ListNodePoolsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListNodePoolsResponse.newBuilder() to construct. - private ListNodePoolsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListNodePoolsResponse() { - nodePools_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListNodePoolsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListNodePoolsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListNodePoolsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.ListNodePoolsResponse.class, com.google.container.v1beta1.ListNodePoolsResponse.Builder.class); - } - - public static final int NODE_POOLS_FIELD_NUMBER = 1; - private java.util.List nodePools_; - /** - *
-   * A list of node pools for a cluster.
-   * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 1; - */ - @java.lang.Override - public java.util.List getNodePoolsList() { - return nodePools_; - } - /** - *
-   * A list of node pools for a cluster.
-   * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 1; - */ - @java.lang.Override - public java.util.List - getNodePoolsOrBuilderList() { - return nodePools_; - } - /** - *
-   * A list of node pools for a cluster.
-   * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 1; - */ - @java.lang.Override - public int getNodePoolsCount() { - return nodePools_.size(); - } - /** - *
-   * A list of node pools for a cluster.
-   * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 1; - */ - @java.lang.Override - public com.google.container.v1beta1.NodePool getNodePools(int index) { - return nodePools_.get(index); - } - /** - *
-   * A list of node pools for a cluster.
-   * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 1; - */ - @java.lang.Override - public com.google.container.v1beta1.NodePoolOrBuilder getNodePoolsOrBuilder( - int index) { - return nodePools_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < nodePools_.size(); i++) { - output.writeMessage(1, nodePools_.get(i)); - } - 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(); - 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); - int from_bitField0_ = bitField0_; - if (nodePoolsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - nodePools_ = java.util.Collections.unmodifiableList(nodePools_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.nodePools_ = nodePools_; - } else { - result.nodePools_ = nodePoolsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.ListNodePoolsResponse) { - return mergeFrom((com.google.container.v1beta1.ListNodePoolsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.ListNodePoolsResponse other) { - if (other == com.google.container.v1beta1.ListNodePoolsResponse.getDefaultInstance()) return this; - if (nodePoolsBuilder_ == null) { - if (!other.nodePools_.isEmpty()) { - if (nodePools_.isEmpty()) { - nodePools_ = other.nodePools_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNodePoolsIsMutable(); - nodePools_.addAll(other.nodePools_); - } - onChanged(); - } - } else { - if (!other.nodePools_.isEmpty()) { - if (nodePoolsBuilder_.isEmpty()) { - nodePoolsBuilder_.dispose(); - nodePoolsBuilder_ = null; - nodePools_ = other.nodePools_; - bitField0_ = (bitField0_ & ~0x00000001); - nodePoolsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNodePoolsFieldBuilder() : null; - } else { - nodePoolsBuilder_.addAllMessages(other.nodePools_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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 deleted file mode 100644 index 078b7bc6740e..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsResponseOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface ListNodePoolsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListNodePoolsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * A list of node pools for a cluster.
-   * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 1; - */ - java.util.List - getNodePoolsList(); - /** - *
-   * A list of node pools for a cluster.
-   * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 1; - */ - com.google.container.v1beta1.NodePool getNodePools(int index); - /** - *
-   * A list of node pools for a cluster.
-   * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 1; - */ - int getNodePoolsCount(); - /** - *
-   * A list of node pools for a cluster.
-   * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 1; - */ - java.util.List - getNodePoolsOrBuilderList(); - /** - *
-   * A list of node pools for a cluster.
-   * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 1; - */ - com.google.container.v1beta1.NodePoolOrBuilder getNodePoolsOrBuilder( - int index); -} diff --git a/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 deleted file mode 100644 index 617e8366b5f3..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequest.java +++ /dev/null @@ -1,981 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * ListOperationsRequest lists operations.
- * 
- * - * Protobuf type {@code google.container.v1beta1.ListOperationsRequest} - */ -public final class ListOperationsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListOperationsRequest) - ListOperationsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListOperationsRequest.newBuilder() to construct. - private ListOperationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListOperationsRequest() { - projectId_ = ""; - zone_ = ""; - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListOperationsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListOperationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListOperationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.ListOperationsRequest.class, com.google.container.v1beta1.ListOperationsRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://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=2964 - * @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=2964 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Required. Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) to return
-   * operations for, or `-` for all zones. This field has been deprecated and
-   * replaced by the parent field.
-   * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2973 - * @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=2973 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARENT_FIELD_NUMBER = 4; - private volatile java.lang.Object parent_; - /** - *
-   * The parent (project and location) where the operations will be listed.
-   * Specified in the format `projects/*/locations/*`.
-   * Location "-" matches all zones and all regions.
-   * 
- * - * string parent = 4; - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * The parent (project and location) where the operations will be listed.
-   * Specified in the format `projects/*/locations/*`.
-   * Location "-" matches all zones and all regions.
-   * 
- * - * string parent = 4; - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - projectId_ = ""; - - zone_ = ""; - - parent_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListOperationsRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.ListOperationsRequest getDefaultInstanceForType() { - return com.google.container.v1beta1.ListOperationsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.ListOperationsRequest build() { - com.google.container.v1beta1.ListOperationsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.ListOperationsRequest buildPartial() { - com.google.container.v1beta1.ListOperationsRequest result = new com.google.container.v1beta1.ListOperationsRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.parent_ = parent_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.ListOperationsRequest) { - return mergeFrom((com.google.container.v1beta1.ListOperationsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.ListOperationsRequest other) { - if (other == com.google.container.v1beta1.ListOperationsRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 34: { - parent_ = input.readStringRequireUtf8(); - - 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 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=2964 - * @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=2964 - * @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=2964 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://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=2964 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://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=2964 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) to return
-     * operations for, or `-` for all zones. This field has been deprecated and
-     * replaced by the parent field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2973 - * @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=2973 - * @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=2973 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) to return
-     * operations for, or `-` for all zones. This field has been deprecated and
-     * replaced by the parent field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2973 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) to return
-     * operations for, or `-` for all zones. This field has been deprecated and
-     * replaced by the parent field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2973 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object parent_ = ""; - /** - *
-     * The parent (project and location) where the operations will be listed.
-     * Specified in the format `projects/*/locations/*`.
-     * Location "-" matches all zones and all regions.
-     * 
- * - * string parent = 4; - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The parent (project and location) where the operations will be listed.
-     * Specified in the format `projects/*/locations/*`.
-     * Location "-" matches all zones and all regions.
-     * 
- * - * string parent = 4; - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The parent (project and location) where the operations will be listed.
-     * Specified in the format `projects/*/locations/*`.
-     * Location "-" matches all zones and all regions.
-     * 
- * - * string parent = 4; - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - *
-     * The parent (project and location) where the operations will be listed.
-     * Specified in the format `projects/*/locations/*`.
-     * Location "-" matches all zones and all regions.
-     * 
- * - * string parent = 4; - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - *
-     * The parent (project and location) where the operations will be listed.
-     * Specified in the format `projects/*/locations/*`.
-     * Location "-" matches all zones and all regions.
-     * 
- * - * string parent = 4; - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ListOperationsRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.ListOperationsRequest) - private static final com.google.container.v1beta1.ListOperationsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.ListOperationsRequest(); - } - - public static com.google.container.v1beta1.ListOperationsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListOperationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 4b5bef5e7af4..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequestOrBuilder.java +++ /dev/null @@ -1,91 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface ListOperationsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListOperationsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://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=2964 - * @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=2964 - * @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=2973 - * @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=2973 - * @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 deleted file mode 100644 index 84015a201cf2..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsResponse.java +++ /dev/null @@ -1,1103 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * ListOperationsResponse is the result of ListOperationsRequest.
- * 
- * - * Protobuf type {@code google.container.v1beta1.ListOperationsResponse} - */ -public final class ListOperationsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListOperationsResponse) - ListOperationsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListOperationsResponse.newBuilder() to construct. - private ListOperationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListOperationsResponse() { - operations_ = java.util.Collections.emptyList(); - missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListOperationsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListOperationsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListOperationsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.ListOperationsResponse.class, com.google.container.v1beta1.ListOperationsResponse.Builder.class); - } - - public static final int OPERATIONS_FIELD_NUMBER = 1; - private java.util.List operations_; - /** - *
-   * A list of operations in the project in the specified zone.
-   * 
- * - * repeated .google.container.v1beta1.Operation operations = 1; - */ - @java.lang.Override - public java.util.List getOperationsList() { - return operations_; - } - /** - *
-   * A list of operations in the project in the specified zone.
-   * 
- * - * repeated .google.container.v1beta1.Operation operations = 1; - */ - @java.lang.Override - public java.util.List - getOperationsOrBuilderList() { - return operations_; - } - /** - *
-   * A list of operations in the project in the specified zone.
-   * 
- * - * repeated .google.container.v1beta1.Operation operations = 1; - */ - @java.lang.Override - public int getOperationsCount() { - return operations_.size(); - } - /** - *
-   * A list of operations in the project in the specified zone.
-   * 
- * - * repeated .google.container.v1beta1.Operation operations = 1; - */ - @java.lang.Override - public com.google.container.v1beta1.Operation getOperations(int index) { - return operations_.get(index); - } - /** - *
-   * A list of operations in the project in the specified zone.
-   * 
- * - * repeated .google.container.v1beta1.Operation operations = 1; - */ - @java.lang.Override - public com.google.container.v1beta1.OperationOrBuilder getOperationsOrBuilder( - int index) { - return operations_.get(index); - } - - public static final int MISSING_ZONES_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList missingZones_; - /** - *
-   * If any zones are listed here, the list of operations returned
-   * may be missing the operations from those zones.
-   * 
- * - * repeated string missing_zones = 2; - * @return A list containing the missingZones. - */ - public com.google.protobuf.ProtocolStringList - getMissingZonesList() { - return missingZones_; - } - /** - *
-   * If any zones are listed here, the list of operations returned
-   * may be missing the operations from those zones.
-   * 
- * - * repeated string missing_zones = 2; - * @return The count of missingZones. - */ - public int getMissingZonesCount() { - return missingZones_.size(); - } - /** - *
-   * If any zones are listed here, the list of operations returned
-   * may be missing the operations from those zones.
-   * 
- * - * repeated string missing_zones = 2; - * @param index The index of the element to return. - * @return The missingZones at the given index. - */ - public java.lang.String getMissingZones(int index) { - return missingZones_.get(index); - } - /** - *
-   * If any zones are listed here, the list of operations returned
-   * may be missing the operations from those zones.
-   * 
- * - * repeated string missing_zones = 2; - * @param index The index of the value to return. - * @return The bytes of the missingZones at the given index. - */ - public com.google.protobuf.ByteString - getMissingZonesBytes(int index) { - return missingZones_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < operations_.size(); i++) { - output.writeMessage(1, operations_.get(i)); - } - for (int i = 0; i < missingZones_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, missingZones_.getRaw(i)); - } - 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(); - if (operationsBuilder_ == null) { - operations_ = java.util.Collections.emptyList(); - } else { - operations_ = null; - operationsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListOperationsResponse_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.ListOperationsResponse getDefaultInstanceForType() { - return com.google.container.v1beta1.ListOperationsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.ListOperationsResponse build() { - com.google.container.v1beta1.ListOperationsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.ListOperationsResponse buildPartial() { - com.google.container.v1beta1.ListOperationsResponse result = new com.google.container.v1beta1.ListOperationsResponse(this); - int from_bitField0_ = bitField0_; - if (operationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - operations_ = java.util.Collections.unmodifiableList(operations_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.operations_ = operations_; - } else { - result.operations_ = operationsBuilder_.build(); - } - if (((bitField0_ & 0x00000002) != 0)) { - missingZones_ = missingZones_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.missingZones_ = missingZones_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.ListOperationsResponse) { - return mergeFrom((com.google.container.v1beta1.ListOperationsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.ListOperationsResponse other) { - if (other == com.google.container.v1beta1.ListOperationsResponse.getDefaultInstance()) return this; - if (operationsBuilder_ == null) { - if (!other.operations_.isEmpty()) { - if (operations_.isEmpty()) { - operations_ = other.operations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureOperationsIsMutable(); - operations_.addAll(other.operations_); - } - onChanged(); - } - } else { - if (!other.operations_.isEmpty()) { - if (operationsBuilder_.isEmpty()) { - operationsBuilder_.dispose(); - operationsBuilder_ = null; - operations_ = other.operations_; - bitField0_ = (bitField0_ & ~0x00000001); - operationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOperationsFieldBuilder() : null; - } else { - operationsBuilder_.addAllMessages(other.operations_); - } - } - } - if (!other.missingZones_.isEmpty()) { - if (missingZones_.isEmpty()) { - missingZones_ = other.missingZones_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureMissingZonesIsMutable(); - missingZones_.addAll(other.missingZones_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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.LazyStringList missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureMissingZonesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - missingZones_ = new com.google.protobuf.LazyStringArrayList(missingZones_); - bitField0_ |= 0x00000002; - } - } - /** - *
-     * If any zones are listed here, the list of operations returned
-     * may be missing the operations from those zones.
-     * 
- * - * repeated string missing_zones = 2; - * @return A list containing the missingZones. - */ - public com.google.protobuf.ProtocolStringList - getMissingZonesList() { - return missingZones_.getUnmodifiableView(); - } - /** - *
-     * If any zones are listed here, the list of operations returned
-     * may be missing the operations from those zones.
-     * 
- * - * repeated string missing_zones = 2; - * @return The count of missingZones. - */ - public int getMissingZonesCount() { - return missingZones_.size(); - } - /** - *
-     * If any zones are listed here, the list of operations returned
-     * may be missing the operations from those zones.
-     * 
- * - * repeated string missing_zones = 2; - * @param index The index of the element to return. - * @return The missingZones at the given index. - */ - public java.lang.String getMissingZones(int index) { - return missingZones_.get(index); - } - /** - *
-     * If any zones are listed here, the list of operations returned
-     * may be missing the operations from those zones.
-     * 
- * - * repeated string missing_zones = 2; - * @param index The index of the value to return. - * @return The bytes of the missingZones at the given index. - */ - public com.google.protobuf.ByteString - getMissingZonesBytes(int index) { - return missingZones_.getByteString(index); - } - /** - *
-     * If any zones are listed here, the list of operations returned
-     * may be missing the operations from those zones.
-     * 
- * - * repeated string missing_zones = 2; - * @param index The index to set the value at. - * @param value The missingZones to set. - * @return This builder for chaining. - */ - public Builder setMissingZones( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMissingZonesIsMutable(); - missingZones_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * If any zones are listed here, the list of operations returned
-     * may be missing the operations from those zones.
-     * 
- * - * repeated string missing_zones = 2; - * @param value The missingZones to add. - * @return This builder for chaining. - */ - public Builder addMissingZones( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMissingZonesIsMutable(); - missingZones_.add(value); - onChanged(); - return this; - } - /** - *
-     * If any zones are listed here, the list of operations returned
-     * may be missing the operations from those zones.
-     * 
- * - * repeated string missing_zones = 2; - * @param values The missingZones to add. - * @return This builder for chaining. - */ - public Builder addAllMissingZones( - java.lang.Iterable values) { - ensureMissingZonesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, missingZones_); - onChanged(); - return this; - } - /** - *
-     * If any zones are listed here, the list of operations returned
-     * may be missing the operations from those zones.
-     * 
- * - * repeated string missing_zones = 2; - * @return This builder for chaining. - */ - public Builder clearMissingZones() { - missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * If any zones are listed here, the list of operations returned
-     * may be missing the operations from those zones.
-     * 
- * - * repeated string missing_zones = 2; - * @param value The bytes of the missingZones to add. - * @return This builder for chaining. - */ - public Builder addMissingZonesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureMissingZonesIsMutable(); - missingZones_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ListOperationsResponse) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.ListOperationsResponse) - private static final com.google.container.v1beta1.ListOperationsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.ListOperationsResponse(); - } - - public static com.google.container.v1beta1.ListOperationsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListOperationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 7342190e7727..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsResponseOrBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface ListOperationsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListOperationsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * A list of operations in the project in the specified zone.
-   * 
- * - * repeated .google.container.v1beta1.Operation operations = 1; - */ - java.util.List - getOperationsList(); - /** - *
-   * A list of operations in the project in the specified zone.
-   * 
- * - * repeated .google.container.v1beta1.Operation operations = 1; - */ - com.google.container.v1beta1.Operation getOperations(int index); - /** - *
-   * A list of operations in the project in the specified zone.
-   * 
- * - * repeated .google.container.v1beta1.Operation operations = 1; - */ - int getOperationsCount(); - /** - *
-   * A list of operations in the project in the specified zone.
-   * 
- * - * repeated .google.container.v1beta1.Operation operations = 1; - */ - java.util.List - getOperationsOrBuilderList(); - /** - *
-   * A list of operations in the project in the specified zone.
-   * 
- * - * repeated .google.container.v1beta1.Operation operations = 1; - */ - com.google.container.v1beta1.OperationOrBuilder getOperationsOrBuilder( - int index); - - /** - *
-   * If any zones are listed here, the list of operations returned
-   * may be missing the operations from those zones.
-   * 
- * - * repeated string missing_zones = 2; - * @return A list containing the missingZones. - */ - java.util.List - getMissingZonesList(); - /** - *
-   * If any zones are listed here, the list of operations returned
-   * may be missing the operations from those zones.
-   * 
- * - * repeated string missing_zones = 2; - * @return The count of missingZones. - */ - int getMissingZonesCount(); - /** - *
-   * If any zones are listed here, the list of operations returned
-   * may be missing the operations from those zones.
-   * 
- * - * repeated string missing_zones = 2; - * @param index The index of the element to return. - * @return The missingZones at the given index. - */ - java.lang.String getMissingZones(int index); - /** - *
-   * If any zones are listed here, the list of operations returned
-   * may be missing the operations from those zones.
-   * 
- * - * repeated string missing_zones = 2; - * @param index The index of the value to return. - * @return The bytes of the missingZones at the given index. - */ - com.google.protobuf.ByteString - getMissingZonesBytes(int index); -} diff --git a/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 deleted file mode 100644 index 091ca55ee26b..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksRequest.java +++ /dev/null @@ -1,1033 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * ListUsableSubnetworksRequest requests the list of usable subnetworks.
- * available to a user for creating clusters.
- * 
- * - * Protobuf type {@code google.container.v1beta1.ListUsableSubnetworksRequest} - */ -public final class ListUsableSubnetworksRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListUsableSubnetworksRequest) - ListUsableSubnetworksRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListUsableSubnetworksRequest.newBuilder() to construct. - private ListUsableSubnetworksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListUsableSubnetworksRequest() { - parent_ = ""; - filter_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListUsableSubnetworksRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListUsableSubnetworksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListUsableSubnetworksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.ListUsableSubnetworksRequest.class, com.google.container.v1beta1.ListUsableSubnetworksRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - *
-   * Required. The parent project where subnetworks are usable.
-   * Specified in the format `projects/*`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. The parent project where subnetworks are usable.
-   * Specified in the format `projects/*`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; - /** - *
-   * Filtering currently only supports equality on the networkProjectId and must
-   * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
-   * is the project which owns the listed subnetworks. This defaults to the
-   * parent project ID.
-   * 
- * - * string filter = 2; - * @return The filter. - */ - @java.lang.Override - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } - } - /** - *
-   * Filtering currently only supports equality on the networkProjectId and must
-   * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
-   * is the project which owns the listed subnetworks. This defaults to the
-   * parent project ID.
-   * 
- * - * string filter = 2; - * @return The bytes for filter. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; - /** - *
-   * The max number of results per page that should be returned. If the number
-   * of available results is larger than `page_size`, a `next_page_token` is
-   * returned which can be used to get the next page of results in subsequent
-   * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
-   * 
- * - * int32 page_size = 3; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; - /** - *
-   * Specifies a page token to use. Set this to the nextPageToken returned by
-   * previous list requests to get the next page of results.
-   * 
- * - * string page_token = 4; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * Specifies a page token to use. Set this to the nextPageToken returned by
-   * previous list requests to get the next page of results.
-   * 
- * - * string page_token = 4; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - parent_ = ""; - - filter_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListUsableSubnetworksRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.ListUsableSubnetworksRequest getDefaultInstanceForType() { - return com.google.container.v1beta1.ListUsableSubnetworksRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.ListUsableSubnetworksRequest build() { - com.google.container.v1beta1.ListUsableSubnetworksRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.ListUsableSubnetworksRequest buildPartial() { - com.google.container.v1beta1.ListUsableSubnetworksRequest result = new com.google.container.v1beta1.ListUsableSubnetworksRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.ListUsableSubnetworksRequest) { - return mergeFrom((com.google.container.v1beta1.ListUsableSubnetworksRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.ListUsableSubnetworksRequest other) { - if (other == com.google.container.v1beta1.ListUsableSubnetworksRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - filter_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: { - pageSize_ = input.readInt32(); - - break; - } // case 24 - case 34: { - pageToken_ = input.readStringRequireUtf8(); - - 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 java.lang.Object parent_ = ""; - /** - *
-     * Required. The parent project where subnetworks are usable.
-     * Specified in the format `projects/*`.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The parent project where subnetworks are usable.
-     * Specified in the format `projects/*`.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The parent project where subnetworks are usable.
-     * Specified in the format `projects/*`.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. The parent project where subnetworks are usable.
-     * Specified in the format `projects/*`.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - *
-     * Required. The parent project where subnetworks are usable.
-     * Specified in the format `projects/*`.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private java.lang.Object filter_ = ""; - /** - *
-     * Filtering currently only supports equality on the networkProjectId and must
-     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
-     * is the project which owns the listed subnetworks. This defaults to the
-     * parent project ID.
-     * 
- * - * string filter = 2; - * @return The filter. - */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Filtering currently only supports equality on the networkProjectId and must
-     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
-     * is the project which owns the listed subnetworks. This defaults to the
-     * parent project ID.
-     * 
- * - * string filter = 2; - * @return The bytes for filter. - */ - public com.google.protobuf.ByteString - getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Filtering currently only supports equality on the networkProjectId and must
-     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
-     * is the project which owns the listed subnetworks. This defaults to the
-     * parent project ID.
-     * 
- * - * string filter = 2; - * @param value The filter to set. - * @return This builder for chaining. - */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filter_ = value; - onChanged(); - return this; - } - /** - *
-     * Filtering currently only supports equality on the networkProjectId and must
-     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
-     * is the project which owns the listed subnetworks. This defaults to the
-     * parent project ID.
-     * 
- * - * string filter = 2; - * @return This builder for chaining. - */ - public Builder clearFilter() { - - filter_ = getDefaultInstance().getFilter(); - onChanged(); - return this; - } - /** - *
-     * Filtering currently only supports equality on the networkProjectId and must
-     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
-     * is the project which owns the listed subnetworks. This defaults to the
-     * parent project ID.
-     * 
- * - * string filter = 2; - * @param value The bytes for filter to set. - * @return This builder for chaining. - */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filter_ = value; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
-     * The max number of results per page that should be returned. If the number
-     * of available results is larger than `page_size`, a `next_page_token` is
-     * returned which can be used to get the next page of results in subsequent
-     * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
-     * 
- * - * int32 page_size = 3; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * The max number of results per page that should be returned. If the number
-     * of available results is larger than `page_size`, a `next_page_token` is
-     * returned which can be used to get the next page of results in subsequent
-     * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
-     * 
- * - * int32 page_size = 3; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - *
-     * The max number of results per page that should be returned. If the number
-     * of available results is larger than `page_size`, a `next_page_token` is
-     * returned which can be used to get the next page of results in subsequent
-     * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
-     * 
- * - * int32 page_size = 3; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * Specifies a page token to use. Set this to the nextPageToken returned by
-     * previous list requests to get the next page of results.
-     * 
- * - * string page_token = 4; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Specifies a page token to use. Set this to the nextPageToken returned by
-     * previous list requests to get the next page of results.
-     * 
- * - * string page_token = 4; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Specifies a page token to use. Set this to the nextPageToken returned by
-     * previous list requests to get the next page of results.
-     * 
- * - * string page_token = 4; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - *
-     * Specifies a page token to use. Set this to the nextPageToken returned by
-     * previous list requests to get the next page of results.
-     * 
- * - * string page_token = 4; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - *
-     * Specifies a page token to use. Set this to the nextPageToken returned by
-     * previous list requests to get the next page of results.
-     * 
- * - * string page_token = 4; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ListUsableSubnetworksRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.ListUsableSubnetworksRequest) - private static final com.google.container.v1beta1.ListUsableSubnetworksRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.ListUsableSubnetworksRequest(); - } - - public static com.google.container.v1beta1.ListUsableSubnetworksRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUsableSubnetworksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index e70c9a24d1e6..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksRequestOrBuilder.java +++ /dev/null @@ -1,92 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface ListUsableSubnetworksRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListUsableSubnetworksRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The parent project where subnetworks are usable.
-   * Specified in the format `projects/*`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The parent project where subnetworks are usable.
-   * Specified in the format `projects/*`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Filtering currently only supports equality on the networkProjectId and must
-   * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
-   * is the project which owns the listed subnetworks. This defaults to the
-   * parent project ID.
-   * 
- * - * string filter = 2; - * @return The filter. - */ - java.lang.String getFilter(); - /** - *
-   * Filtering currently only supports equality on the networkProjectId and must
-   * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
-   * is the project which owns the listed subnetworks. This defaults to the
-   * parent project ID.
-   * 
- * - * string filter = 2; - * @return The bytes for filter. - */ - com.google.protobuf.ByteString - getFilterBytes(); - - /** - *
-   * The max number of results per page that should be returned. If the number
-   * of available results is larger than `page_size`, a `next_page_token` is
-   * returned which can be used to get the next page of results in subsequent
-   * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
-   * 
- * - * int32 page_size = 3; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * Specifies a page token to use. Set this to the nextPageToken returned by
-   * previous list requests to get the next page of results.
-   * 
- * - * string page_token = 4; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * Specifies a page token to use. Set this to the nextPageToken returned by
-   * previous list requests to get the next page of results.
-   * 
- * - * string page_token = 4; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); -} diff --git a/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 deleted file mode 100644 index 45ebc22d8eff..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksResponse.java +++ /dev/null @@ -1,1040 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * ListUsableSubnetworksResponse is the response of
- * ListUsableSubnetworksRequest.
- * 
- * - * Protobuf type {@code google.container.v1beta1.ListUsableSubnetworksResponse} - */ -public final class ListUsableSubnetworksResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListUsableSubnetworksResponse) - ListUsableSubnetworksResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListUsableSubnetworksResponse.newBuilder() to construct. - private ListUsableSubnetworksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListUsableSubnetworksResponse() { - subnetworks_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListUsableSubnetworksResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListUsableSubnetworksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ListUsableSubnetworksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.ListUsableSubnetworksResponse.class, com.google.container.v1beta1.ListUsableSubnetworksResponse.Builder.class); - } - - public static final int SUBNETWORKS_FIELD_NUMBER = 1; - private java.util.List subnetworks_; - /** - *
-   * A list of usable subnetworks in the specified network project.
-   * 
- * - * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; - */ - @java.lang.Override - public java.util.List getSubnetworksList() { - return subnetworks_; - } - /** - *
-   * A list of usable subnetworks in the specified network project.
-   * 
- * - * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; - */ - @java.lang.Override - public java.util.List - getSubnetworksOrBuilderList() { - return subnetworks_; - } - /** - *
-   * A list of usable subnetworks in the specified network project.
-   * 
- * - * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; - */ - @java.lang.Override - public int getSubnetworksCount() { - return subnetworks_.size(); - } - /** - *
-   * A list of usable subnetworks in the specified network project.
-   * 
- * - * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; - */ - @java.lang.Override - public com.google.container.v1beta1.UsableSubnetwork getSubnetworks(int index) { - return subnetworks_.get(index); - } - /** - *
-   * A list of usable subnetworks in the specified network project.
-   * 
- * - * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; - */ - @java.lang.Override - public com.google.container.v1beta1.UsableSubnetworkOrBuilder getSubnetworksOrBuilder( - int index) { - return subnetworks_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - *
-   * This token allows you to get the next page of results for list requests.
-   * If the number of results is larger than `page_size`, use the
-   * `next_page_token` as a value for the query parameter `page_token` in the
-   * next request. The value will become empty when there are no more pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * This token allows you to get the next page of results for list requests.
-   * If the number of results is larger than `page_size`, use the
-   * `next_page_token` as a value for the query parameter `page_token` in the
-   * next request. The value will become empty when there are no more pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < subnetworks_.size(); i++) { - output.writeMessage(1, subnetworks_.get(i)); - } - if (!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(); - 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); - int from_bitField0_ = bitField0_; - if (subnetworksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - subnetworks_ = java.util.Collections.unmodifiableList(subnetworks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.subnetworks_ = subnetworks_; - } else { - result.subnetworks_ = subnetworksBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.ListUsableSubnetworksResponse) { - return mergeFrom((com.google.container.v1beta1.ListUsableSubnetworksResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.ListUsableSubnetworksResponse other) { - if (other == com.google.container.v1beta1.ListUsableSubnetworksResponse.getDefaultInstance()) return this; - if (subnetworksBuilder_ == null) { - if (!other.subnetworks_.isEmpty()) { - if (subnetworks_.isEmpty()) { - subnetworks_ = other.subnetworks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSubnetworksIsMutable(); - subnetworks_.addAll(other.subnetworks_); - } - onChanged(); - } - } else { - if (!other.subnetworks_.isEmpty()) { - if (subnetworksBuilder_.isEmpty()) { - subnetworksBuilder_.dispose(); - subnetworksBuilder_ = null; - subnetworks_ = other.subnetworks_; - bitField0_ = (bitField0_ & ~0x00000001); - subnetworksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSubnetworksFieldBuilder() : null; - } else { - subnetworksBuilder_.addAllMessages(other.subnetworks_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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; - onChanged(); - return this; - } - /** - *
-     * This token allows you to get the next page of results for list requests.
-     * If the number of results is larger than `page_size`, use the
-     * `next_page_token` as a value for the query parameter `page_token` in the
-     * next request. The value will become empty when there are no more pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - *
-     * This token allows you to get the next page of results for list requests.
-     * If the number of results is larger than `page_size`, use the
-     * `next_page_token` as a value for the query parameter `page_token` in the
-     * next request. The value will become empty when there are no more pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ListUsableSubnetworksResponse) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.ListUsableSubnetworksResponse) - private static final com.google.container.v1beta1.ListUsableSubnetworksResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.ListUsableSubnetworksResponse(); - } - - public static com.google.container.v1beta1.ListUsableSubnetworksResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUsableSubnetworksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 84c687e44edf..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksResponseOrBuilder.java +++ /dev/null @@ -1,79 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface ListUsableSubnetworksResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListUsableSubnetworksResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * A list of usable subnetworks in the specified network project.
-   * 
- * - * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; - */ - java.util.List - getSubnetworksList(); - /** - *
-   * A list of usable subnetworks in the specified network project.
-   * 
- * - * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; - */ - com.google.container.v1beta1.UsableSubnetwork getSubnetworks(int index); - /** - *
-   * A list of usable subnetworks in the specified network project.
-   * 
- * - * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; - */ - int getSubnetworksCount(); - /** - *
-   * A list of usable subnetworks in the specified network project.
-   * 
- * - * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; - */ - java.util.List - getSubnetworksOrBuilderList(); - /** - *
-   * A list of usable subnetworks in the specified network project.
-   * 
- * - * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; - */ - com.google.container.v1beta1.UsableSubnetworkOrBuilder getSubnetworksOrBuilder( - int index); - - /** - *
-   * This token allows you to get the next page of results for list requests.
-   * If the number of results is larger than `page_size`, use the
-   * `next_page_token` as a value for the query parameter `page_token` in the
-   * next request. The value will become empty when there are no more pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * This token allows you to get the next page of results for list requests.
-   * If the number of results is larger than `page_size`, use the
-   * `next_page_token` as a value for the query parameter `page_token` in the
-   * next request. The value will become empty when there are no more pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/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 deleted file mode 100644 index de1d010b376d..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Location.java +++ /dev/null @@ -1,939 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Location returns the location name, and if the location is recommended
- * for GKE cluster scheduling.
- * 
- * - * Protobuf type {@code google.container.v1beta1.Location} - */ -public final class Location extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.Location) - LocationOrBuilder { -private static final long serialVersionUID = 0L; - // Use Location.newBuilder() to construct. - private Location(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Location() { - type_ = 0; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Location(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * Contains the type of location this Location is for.
-   * Regional or Zonal.
-   * 
- * - * .google.container.v1beta1.Location.LocationType type = 1; - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } - /** - *
-   * Contains the type of location this Location is for.
-   * Regional or Zonal.
-   * 
- * - * .google.container.v1beta1.Location.LocationType type = 1; - * @return The type. - */ - @java.lang.Override public com.google.container.v1beta1.Location.LocationType getType() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.Location.LocationType result = com.google.container.v1beta1.Location.LocationType.valueOf(type_); - return result == null ? com.google.container.v1beta1.Location.LocationType.UNRECOGNIZED : result; - } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - *
-   * Contains the name of the resource requested.
-   * Specified in the format `projects/*/locations/*`.
-   * 
- * - * string name = 2; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Contains the name of the resource requested.
-   * Specified in the format `projects/*/locations/*`.
-   * 
- * - * string name = 2; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RECOMMENDED_FIELD_NUMBER = 3; - private boolean recommended_; - /** - *
-   * Whether the location is 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(); - type_ = 0; - - name_ = ""; - - recommended_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Location_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.Location getDefaultInstanceForType() { - return com.google.container.v1beta1.Location.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.Location build() { - com.google.container.v1beta1.Location result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.Location buildPartial() { - com.google.container.v1beta1.Location result = new com.google.container.v1beta1.Location(this); - result.type_ = type_; - result.name_ = name_; - result.recommended_ = recommended_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.Location) { - return mergeFrom((com.google.container.v1beta1.Location)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.Location other) { - if (other == com.google.container.v1beta1.Location.getDefaultInstance()) return this; - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.getRecommended() != false) { - setRecommended(other.getRecommended()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 8 - case 18: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: { - recommended_ = input.readBool(); - - 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 type_ = 0; - /** - *
-     * Contains the type of location this Location is for.
-     * Regional or Zonal.
-     * 
- * - * .google.container.v1beta1.Location.LocationType type = 1; - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } - /** - *
-     * Contains the type of location this Location is for.
-     * Regional or Zonal.
-     * 
- * - * .google.container.v1beta1.Location.LocationType type = 1; - * @param value The enum numeric value on the wire for type to set. - * @return This builder for chaining. - */ - public Builder setTypeValue(int value) { - - type_ = value; - onChanged(); - return this; - } - /** - *
-     * Contains the type of location this Location is for.
-     * Regional or Zonal.
-     * 
- * - * .google.container.v1beta1.Location.LocationType type = 1; - * @return The type. - */ - @java.lang.Override - public com.google.container.v1beta1.Location.LocationType getType() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.Location.LocationType result = com.google.container.v1beta1.Location.LocationType.valueOf(type_); - return result == null ? com.google.container.v1beta1.Location.LocationType.UNRECOGNIZED : result; - } - /** - *
-     * Contains the type of location this Location is for.
-     * Regional or Zonal.
-     * 
- * - * .google.container.v1beta1.Location.LocationType type = 1; - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(com.google.container.v1beta1.Location.LocationType value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Contains the type of location this Location is for.
-     * Regional or Zonal.
-     * 
- * - * .google.container.v1beta1.Location.LocationType type = 1; - * @return This builder for chaining. - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * Contains the name of the resource requested.
-     * Specified in the format `projects/*/locations/*`.
-     * 
- * - * string name = 2; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Contains the name of the resource requested.
-     * Specified in the format `projects/*/locations/*`.
-     * 
- * - * string name = 2; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Contains the name of the resource requested.
-     * Specified in the format `projects/*/locations/*`.
-     * 
- * - * string name = 2; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * Contains the name of the resource requested.
-     * Specified in the format `projects/*/locations/*`.
-     * 
- * - * string name = 2; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * Contains the name of the resource requested.
-     * Specified in the format `projects/*/locations/*`.
-     * 
- * - * string name = 2; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private boolean recommended_ ; - /** - *
-     * Whether the location is 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; - onChanged(); - return this; - } - /** - *
-     * Whether the location is recommended for GKE cluster scheduling.
-     * 
- * - * bool recommended = 3; - * @return This builder for chaining. - */ - public Builder clearRecommended() { - - recommended_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.Location) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.Location) - private static final com.google.container.v1beta1.Location DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.Location(); - } - - public static com.google.container.v1beta1.Location getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Location parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 395535a4278f..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LocationOrBuilder.java +++ /dev/null @@ -1,62 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface LocationOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.Location) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Contains the type of location this Location is for.
-   * Regional or Zonal.
-   * 
- * - * .google.container.v1beta1.Location.LocationType type = 1; - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - /** - *
-   * Contains the type of location this Location is for.
-   * Regional or Zonal.
-   * 
- * - * .google.container.v1beta1.Location.LocationType type = 1; - * @return The type. - */ - com.google.container.v1beta1.Location.LocationType getType(); - - /** - *
-   * Contains the name of the resource requested.
-   * Specified in the format `projects/*/locations/*`.
-   * 
- * - * string name = 2; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Contains the name of the resource requested.
-   * Specified in the format `projects/*/locations/*`.
-   * 
- * - * string name = 2; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Whether the location is 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 deleted file mode 100644 index 09760dba38c7..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingComponentConfig.java +++ /dev/null @@ -1,933 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - 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) { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.LoggingComponentConfig.Component result = com.google.container.v1beta1.LoggingComponentConfig.Component.valueOf(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(); - 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); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - enableComponents_ = java.util.Collections.unmodifiableList(enableComponents_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.enableComponents_ = enableComponents_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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 deleted file mode 100644 index b2618bb4700e..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingComponentConfigOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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 deleted file mode 100644 index b9300b5fa2a9..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingConfig.java +++ /dev/null @@ -1,639 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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); - } - - 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 componentConfig_ != null; - } - /** - *
-   * 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 getComponentConfig(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (componentConfig_ != null) { - output.writeMessage(1, getComponentConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (componentConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getComponentConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (componentConfigBuilder_ == null) { - componentConfig_ = null; - } else { - componentConfig_ = null; - componentConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.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 (componentConfigBuilder_ == null) { - result.componentConfig_ = componentConfig_; - } else { - result.componentConfig_ = componentConfigBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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); - - 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 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 componentConfigBuilder_ != null || componentConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - componentConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - componentConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (componentConfig_ != null) { - componentConfig_ = - com.google.container.v1beta1.LoggingComponentConfig.newBuilder(componentConfig_).mergeFrom(value).buildPartial(); - } else { - componentConfig_ = value; - } - onChanged(); - } else { - componentConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Logging components configuration
-     * 
- * - * .google.container.v1beta1.LoggingComponentConfig component_config = 1; - */ - public Builder clearComponentConfig() { - if (componentConfigBuilder_ == null) { - componentConfig_ = null; - onChanged(); - } else { - componentConfig_ = null; - componentConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Logging components configuration
-     * 
- * - * .google.container.v1beta1.LoggingComponentConfig component_config = 1; - */ - public com.google.container.v1beta1.LoggingComponentConfig.Builder getComponentConfigBuilder() { - - 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 deleted file mode 100644 index 614482cc4b5c..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingConfigOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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 deleted file mode 100644 index 85e6df627fff..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingVariantConfig.java +++ /dev/null @@ -1,677 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.LoggingVariantConfig.Variant result = com.google.container.v1beta1.LoggingVariantConfig.Variant.valueOf(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(); - 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); - result.variant_ = variant_; - 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.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(); - - 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 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; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.LoggingVariantConfig.Variant result = com.google.container.v1beta1.LoggingVariantConfig.Variant.valueOf(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(); - } - - 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() { - - 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 deleted file mode 100644 index 5e3024e3e7a5..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingVariantConfigOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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 deleted file mode 100644 index c85a8c942f37..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceExclusionOptions.java +++ /dev/null @@ -1,694 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Represents the Maintenance exclusion option.
- * 
- * - * Protobuf type {@code google.container.v1beta1.MaintenanceExclusionOptions} - */ -public final class MaintenanceExclusionOptions extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.MaintenanceExclusionOptions) - MaintenanceExclusionOptionsOrBuilder { -private static final long serialVersionUID = 0L; - // Use MaintenanceExclusionOptions.newBuilder() to construct. - private MaintenanceExclusionOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MaintenanceExclusionOptions() { - scope_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MaintenanceExclusionOptions(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * Scope specifies the upgrade scope which upgrades are blocked by the
-   * exclusion.
-   * 
- * - * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; - * @return The enum numeric value on the wire for scope. - */ - @java.lang.Override public int getScopeValue() { - return scope_; - } - /** - *
-   * Scope specifies the upgrade scope which upgrades are blocked by the
-   * exclusion.
-   * 
- * - * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; - * @return The scope. - */ - @java.lang.Override public com.google.container.v1beta1.MaintenanceExclusionOptions.Scope getScope() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.MaintenanceExclusionOptions.Scope result = com.google.container.v1beta1.MaintenanceExclusionOptions.Scope.valueOf(scope_); - return result == null ? com.google.container.v1beta1.MaintenanceExclusionOptions.Scope.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (scope_ != com.google.container.v1beta1.MaintenanceExclusionOptions.Scope.NO_UPGRADES.getNumber()) { - output.writeEnum(1, scope_); - } - 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(); - scope_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MaintenanceExclusionOptions_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.MaintenanceExclusionOptions getDefaultInstanceForType() { - return com.google.container.v1beta1.MaintenanceExclusionOptions.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.MaintenanceExclusionOptions build() { - com.google.container.v1beta1.MaintenanceExclusionOptions result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.MaintenanceExclusionOptions buildPartial() { - com.google.container.v1beta1.MaintenanceExclusionOptions result = new com.google.container.v1beta1.MaintenanceExclusionOptions(this); - result.scope_ = scope_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.MaintenanceExclusionOptions) { - return mergeFrom((com.google.container.v1beta1.MaintenanceExclusionOptions)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.MaintenanceExclusionOptions other) { - if (other == com.google.container.v1beta1.MaintenanceExclusionOptions.getDefaultInstance()) return this; - if (other.scope_ != 0) { - setScopeValue(other.getScopeValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 scope_ = 0; - /** - *
-     * Scope specifies the upgrade scope which upgrades are blocked by the
-     * exclusion.
-     * 
- * - * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; - * @return The enum numeric value on the wire for scope. - */ - @java.lang.Override public int getScopeValue() { - return scope_; - } - /** - *
-     * Scope specifies the upgrade scope which upgrades are blocked by the
-     * exclusion.
-     * 
- * - * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; - * @param value The enum numeric value on the wire for scope to set. - * @return This builder for chaining. - */ - public Builder setScopeValue(int value) { - - scope_ = value; - onChanged(); - return this; - } - /** - *
-     * Scope specifies the upgrade scope which upgrades are blocked by the
-     * exclusion.
-     * 
- * - * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; - * @return The scope. - */ - @java.lang.Override - public com.google.container.v1beta1.MaintenanceExclusionOptions.Scope getScope() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.MaintenanceExclusionOptions.Scope result = com.google.container.v1beta1.MaintenanceExclusionOptions.Scope.valueOf(scope_); - return result == null ? com.google.container.v1beta1.MaintenanceExclusionOptions.Scope.UNRECOGNIZED : result; - } - /** - *
-     * Scope specifies the upgrade scope which upgrades are blocked by the
-     * exclusion.
-     * 
- * - * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; - * @param value The scope to set. - * @return This builder for chaining. - */ - public Builder setScope(com.google.container.v1beta1.MaintenanceExclusionOptions.Scope value) { - if (value == null) { - throw new NullPointerException(); - } - - scope_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Scope specifies the upgrade scope which upgrades are blocked by the
-     * exclusion.
-     * 
- * - * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; - * @return This builder for chaining. - */ - public Builder clearScope() { - - scope_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.MaintenanceExclusionOptions) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.MaintenanceExclusionOptions) - private static final com.google.container.v1beta1.MaintenanceExclusionOptions DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.MaintenanceExclusionOptions(); - } - - public static com.google.container.v1beta1.MaintenanceExclusionOptions getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MaintenanceExclusionOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index e06968dd9317..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceExclusionOptionsOrBuilder.java +++ /dev/null @@ -1,30 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface MaintenanceExclusionOptionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MaintenanceExclusionOptions) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Scope specifies the upgrade scope which upgrades are blocked by the
-   * exclusion.
-   * 
- * - * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; - * @return The enum numeric value on the wire for scope. - */ - int getScopeValue(); - /** - *
-   * Scope specifies the upgrade scope which upgrades are blocked by the
-   * exclusion.
-   * 
- * - * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; - * @return The scope. - */ - com.google.container.v1beta1.MaintenanceExclusionOptions.Scope getScope(); -} diff --git a/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 deleted file mode 100644 index 1b16fb7471c2..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenancePolicy.java +++ /dev/null @@ -1,832 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * MaintenancePolicy defines the maintenance policy to be used for the cluster.
- * 
- * - * Protobuf type {@code google.container.v1beta1.MaintenancePolicy} - */ -public final class MaintenancePolicy extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.MaintenancePolicy) - MaintenancePolicyOrBuilder { -private static final long serialVersionUID = 0L; - // Use MaintenancePolicy.newBuilder() to construct. - private MaintenancePolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MaintenancePolicy() { - resourceVersion_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MaintenancePolicy(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MaintenancePolicy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MaintenancePolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.MaintenancePolicy.class, com.google.container.v1beta1.MaintenancePolicy.Builder.class); - } - - public static final int WINDOW_FIELD_NUMBER = 1; - private com.google.container.v1beta1.MaintenanceWindow window_; - /** - *
-   * Specifies the maintenance window in which maintenance may be performed.
-   * 
- * - * .google.container.v1beta1.MaintenanceWindow window = 1; - * @return Whether the window field is set. - */ - @java.lang.Override - public boolean hasWindow() { - return window_ != null; - } - /** - *
-   * Specifies the maintenance window in which maintenance may be performed.
-   * 
- * - * .google.container.v1beta1.MaintenanceWindow window = 1; - * @return The window. - */ - @java.lang.Override - public com.google.container.v1beta1.MaintenanceWindow getWindow() { - return window_ == null ? com.google.container.v1beta1.MaintenanceWindow.getDefaultInstance() : window_; - } - /** - *
-   * Specifies the maintenance window in which maintenance may be performed.
-   * 
- * - * .google.container.v1beta1.MaintenanceWindow window = 1; - */ - @java.lang.Override - public com.google.container.v1beta1.MaintenanceWindowOrBuilder getWindowOrBuilder() { - return getWindow(); - } - - public static final int RESOURCE_VERSION_FIELD_NUMBER = 3; - private volatile java.lang.Object resourceVersion_; - /** - *
-   * A hash identifying the version of this policy, so that updates to fields of
-   * the policy won't accidentally undo intermediate changes (and so that users
-   * of the API unaware of some fields won't accidentally remove other fields).
-   * Make a `get()` request to the cluster to get the current
-   * resource version and include it with requests to set the policy.
-   * 
- * - * string resource_version = 3; - * @return The resourceVersion. - */ - @java.lang.Override - public java.lang.String getResourceVersion() { - java.lang.Object ref = resourceVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resourceVersion_ = s; - return s; - } - } - /** - *
-   * A hash identifying the version of this policy, so that updates to fields of
-   * the policy won't accidentally undo intermediate changes (and so that users
-   * of the API unaware of some fields won't accidentally remove other fields).
-   * Make a `get()` request to the cluster to get the current
-   * resource version and include it with requests to set the policy.
-   * 
- * - * string resource_version = 3; - * @return The bytes for resourceVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getResourceVersionBytes() { - java.lang.Object ref = resourceVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resourceVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (window_ != null) { - output.writeMessage(1, getWindow()); - } - if (!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 (window_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (windowBuilder_ == null) { - window_ = null; - } else { - window_ = null; - windowBuilder_ = null; - } - resourceVersion_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MaintenancePolicy_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.MaintenancePolicy getDefaultInstanceForType() { - return com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.MaintenancePolicy build() { - com.google.container.v1beta1.MaintenancePolicy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.MaintenancePolicy buildPartial() { - com.google.container.v1beta1.MaintenancePolicy result = new com.google.container.v1beta1.MaintenancePolicy(this); - if (windowBuilder_ == null) { - result.window_ = window_; - } else { - result.window_ = windowBuilder_.build(); - } - result.resourceVersion_ = resourceVersion_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.MaintenancePolicy) { - return mergeFrom((com.google.container.v1beta1.MaintenancePolicy)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.MaintenancePolicy other) { - if (other == com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance()) return this; - if (other.hasWindow()) { - mergeWindow(other.getWindow()); - } - if (!other.getResourceVersion().isEmpty()) { - resourceVersion_ = other.resourceVersion_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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); - - break; - } // case 10 - case 26: { - resourceVersion_ = input.readStringRequireUtf8(); - - 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 com.google.container.v1beta1.MaintenanceWindow window_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MaintenanceWindow, com.google.container.v1beta1.MaintenanceWindow.Builder, com.google.container.v1beta1.MaintenanceWindowOrBuilder> windowBuilder_; - /** - *
-     * Specifies the maintenance window in which maintenance may be performed.
-     * 
- * - * .google.container.v1beta1.MaintenanceWindow window = 1; - * @return Whether the window field is set. - */ - public boolean hasWindow() { - return windowBuilder_ != null || window_ != null; - } - /** - *
-     * Specifies the maintenance window in which maintenance may be performed.
-     * 
- * - * .google.container.v1beta1.MaintenanceWindow window = 1; - * @return The window. - */ - public com.google.container.v1beta1.MaintenanceWindow getWindow() { - if (windowBuilder_ == null) { - return window_ == null ? com.google.container.v1beta1.MaintenanceWindow.getDefaultInstance() : window_; - } else { - return windowBuilder_.getMessage(); - } - } - /** - *
-     * Specifies the maintenance window in which maintenance may be performed.
-     * 
- * - * .google.container.v1beta1.MaintenanceWindow window = 1; - */ - public Builder setWindow(com.google.container.v1beta1.MaintenanceWindow value) { - if (windowBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - window_ = value; - onChanged(); - } else { - windowBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Specifies the maintenance window in which maintenance may be performed.
-     * 
- * - * .google.container.v1beta1.MaintenanceWindow window = 1; - */ - public Builder setWindow( - com.google.container.v1beta1.MaintenanceWindow.Builder builderForValue) { - if (windowBuilder_ == null) { - window_ = builderForValue.build(); - onChanged(); - } else { - windowBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Specifies the maintenance window in which maintenance may be performed.
-     * 
- * - * .google.container.v1beta1.MaintenanceWindow window = 1; - */ - public Builder mergeWindow(com.google.container.v1beta1.MaintenanceWindow value) { - if (windowBuilder_ == null) { - if (window_ != null) { - window_ = - com.google.container.v1beta1.MaintenanceWindow.newBuilder(window_).mergeFrom(value).buildPartial(); - } else { - window_ = value; - } - onChanged(); - } else { - windowBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Specifies the maintenance window in which maintenance may be performed.
-     * 
- * - * .google.container.v1beta1.MaintenanceWindow window = 1; - */ - public Builder clearWindow() { - if (windowBuilder_ == null) { - window_ = null; - onChanged(); - } else { - window_ = null; - windowBuilder_ = null; - } - - return this; - } - /** - *
-     * Specifies the maintenance window in which maintenance may be performed.
-     * 
- * - * .google.container.v1beta1.MaintenanceWindow window = 1; - */ - public com.google.container.v1beta1.MaintenanceWindow.Builder getWindowBuilder() { - - onChanged(); - return getWindowFieldBuilder().getBuilder(); - } - /** - *
-     * Specifies the maintenance window in which maintenance may be performed.
-     * 
- * - * .google.container.v1beta1.MaintenanceWindow window = 1; - */ - public com.google.container.v1beta1.MaintenanceWindowOrBuilder getWindowOrBuilder() { - if (windowBuilder_ != null) { - return windowBuilder_.getMessageOrBuilder(); - } else { - return window_ == null ? - com.google.container.v1beta1.MaintenanceWindow.getDefaultInstance() : window_; - } - } - /** - *
-     * Specifies the maintenance window in which maintenance may be performed.
-     * 
- * - * .google.container.v1beta1.MaintenanceWindow window = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MaintenanceWindow, com.google.container.v1beta1.MaintenanceWindow.Builder, com.google.container.v1beta1.MaintenanceWindowOrBuilder> - getWindowFieldBuilder() { - if (windowBuilder_ == null) { - windowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MaintenanceWindow, com.google.container.v1beta1.MaintenanceWindow.Builder, com.google.container.v1beta1.MaintenanceWindowOrBuilder>( - getWindow(), - getParentForChildren(), - isClean()); - window_ = null; - } - return windowBuilder_; - } - - private java.lang.Object resourceVersion_ = ""; - /** - *
-     * A hash identifying the version of this policy, so that updates to fields of
-     * the policy won't accidentally undo intermediate changes (and so that users
-     * of the API unaware of some fields won't accidentally remove other fields).
-     * Make a `get()` request to the cluster to get the current
-     * resource version and include it with requests to set the policy.
-     * 
- * - * string resource_version = 3; - * @return The resourceVersion. - */ - public java.lang.String getResourceVersion() { - java.lang.Object ref = resourceVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resourceVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A hash identifying the version of this policy, so that updates to fields of
-     * the policy won't accidentally undo intermediate changes (and so that users
-     * of the API unaware of some fields won't accidentally remove other fields).
-     * Make a `get()` request to the cluster to get the current
-     * resource version and include it with requests to set the policy.
-     * 
- * - * string resource_version = 3; - * @return The bytes for resourceVersion. - */ - public com.google.protobuf.ByteString - getResourceVersionBytes() { - java.lang.Object ref = resourceVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resourceVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A hash identifying the version of this policy, so that updates to fields of
-     * the policy won't accidentally undo intermediate changes (and so that users
-     * of the API unaware of some fields won't accidentally remove other fields).
-     * Make a `get()` request to the cluster to get the current
-     * resource version and include it with requests to set the policy.
-     * 
- * - * string resource_version = 3; - * @param value The resourceVersion to set. - * @return This builder for chaining. - */ - public Builder setResourceVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceVersion_ = value; - onChanged(); - return this; - } - /** - *
-     * A hash identifying the version of this policy, so that updates to fields of
-     * the policy won't accidentally undo intermediate changes (and so that users
-     * of the API unaware of some fields won't accidentally remove other fields).
-     * Make a `get()` request to the cluster to get the current
-     * resource version and include it with requests to set the policy.
-     * 
- * - * string resource_version = 3; - * @return This builder for chaining. - */ - public Builder clearResourceVersion() { - - resourceVersion_ = getDefaultInstance().getResourceVersion(); - onChanged(); - return this; - } - /** - *
-     * A hash identifying the version of this policy, so that updates to fields of
-     * the policy won't accidentally undo intermediate changes (and so that users
-     * of the API unaware of some fields won't accidentally remove other fields).
-     * Make a `get()` request to the cluster to get the current
-     * resource version and include it with requests to set the policy.
-     * 
- * - * string resource_version = 3; - * @param value The bytes for resourceVersion to set. - * @return This builder for chaining. - */ - public Builder setResourceVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - resourceVersion_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.MaintenancePolicy) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.MaintenancePolicy) - private static final com.google.container.v1beta1.MaintenancePolicy DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.MaintenancePolicy(); - } - - public static com.google.container.v1beta1.MaintenancePolicy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MaintenancePolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 1ddaac379c23..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenancePolicyOrBuilder.java +++ /dev/null @@ -1,64 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface MaintenancePolicyOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MaintenancePolicy) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Specifies the maintenance window in which maintenance may be performed.
-   * 
- * - * .google.container.v1beta1.MaintenanceWindow window = 1; - * @return Whether the window field is set. - */ - boolean hasWindow(); - /** - *
-   * Specifies the maintenance window in which maintenance may be performed.
-   * 
- * - * .google.container.v1beta1.MaintenanceWindow window = 1; - * @return The window. - */ - com.google.container.v1beta1.MaintenanceWindow getWindow(); - /** - *
-   * Specifies the maintenance window in which maintenance may be performed.
-   * 
- * - * .google.container.v1beta1.MaintenanceWindow window = 1; - */ - com.google.container.v1beta1.MaintenanceWindowOrBuilder getWindowOrBuilder(); - - /** - *
-   * A hash identifying the version of this policy, so that updates to fields of
-   * the policy won't accidentally undo intermediate changes (and so that users
-   * of the API unaware of some fields won't accidentally remove other fields).
-   * Make a `get()` request to the cluster to get the current
-   * resource version and include it with requests to set the policy.
-   * 
- * - * string resource_version = 3; - * @return The resourceVersion. - */ - java.lang.String getResourceVersion(); - /** - *
-   * A hash identifying the version of this policy, so that updates to fields of
-   * the policy won't accidentally undo intermediate changes (and so that users
-   * of the API unaware of some fields won't accidentally remove other fields).
-   * Make a `get()` request to the cluster to get the current
-   * resource version and include it with requests to set the policy.
-   * 
- * - * string resource_version = 3; - * @return The bytes for resourceVersion. - */ - com.google.protobuf.ByteString - getResourceVersionBytes(); -} diff --git a/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 deleted file mode 100644 index 56c4db9bfd14..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceWindow.java +++ /dev/null @@ -1,1358 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * MaintenanceWindow defines the maintenance window to be used for the cluster.
- * 
- * - * Protobuf type {@code google.container.v1beta1.MaintenanceWindow} - */ -public final class MaintenanceWindow extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.MaintenanceWindow) - MaintenanceWindowOrBuilder { -private static final long serialVersionUID = 0L; - // Use MaintenanceWindow.newBuilder() to construct. - private MaintenanceWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MaintenanceWindow() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MaintenanceWindow(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MaintenanceWindow_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 4: - return internalGetMaintenanceExclusions(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MaintenanceWindow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.MaintenanceWindow.class, com.google.container.v1beta1.MaintenanceWindow.Builder.class); - } - - private int policyCase_ = 0; - private java.lang.Object policy_; - public enum PolicyCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - DAILY_MAINTENANCE_WINDOW(2), - RECURRING_WINDOW(3), - POLICY_NOT_SET(0); - private final int value; - private PolicyCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PolicyCase valueOf(int value) { - return forNumber(value); - } - - public static PolicyCase forNumber(int value) { - switch (value) { - case 2: return DAILY_MAINTENANCE_WINDOW; - case 3: return RECURRING_WINDOW; - case 0: return POLICY_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public PolicyCase - getPolicyCase() { - return PolicyCase.forNumber( - policyCase_); - } - - public static final int DAILY_MAINTENANCE_WINDOW_FIELD_NUMBER = 2; - /** - *
-   * DailyMaintenanceWindow specifies a daily maintenance operation window.
-   * 
- * - * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; - * @return Whether the dailyMaintenanceWindow field is set. - */ - @java.lang.Override - public boolean hasDailyMaintenanceWindow() { - return policyCase_ == 2; - } - /** - *
-   * DailyMaintenanceWindow specifies a daily maintenance operation window.
-   * 
- * - * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; - * @return The dailyMaintenanceWindow. - */ - @java.lang.Override - public com.google.container.v1beta1.DailyMaintenanceWindow getDailyMaintenanceWindow() { - if (policyCase_ == 2) { - return (com.google.container.v1beta1.DailyMaintenanceWindow) policy_; - } - return com.google.container.v1beta1.DailyMaintenanceWindow.getDefaultInstance(); - } - /** - *
-   * DailyMaintenanceWindow specifies a daily maintenance operation window.
-   * 
- * - * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; - */ - @java.lang.Override - public com.google.container.v1beta1.DailyMaintenanceWindowOrBuilder getDailyMaintenanceWindowOrBuilder() { - if (policyCase_ == 2) { - return (com.google.container.v1beta1.DailyMaintenanceWindow) policy_; - } - return com.google.container.v1beta1.DailyMaintenanceWindow.getDefaultInstance(); - } - - public static final int RECURRING_WINDOW_FIELD_NUMBER = 3; - /** - *
-   * RecurringWindow specifies some number of recurring time periods for
-   * maintenance to occur. The time windows may be overlapping. If no
-   * maintenance windows are set, maintenance can occur at any time.
-   * 
- * - * .google.container.v1beta1.RecurringTimeWindow recurring_window = 3; - * @return Whether the recurringWindow field is set. - */ - @java.lang.Override - public boolean hasRecurringWindow() { - return policyCase_ == 3; - } - /** - *
-   * RecurringWindow specifies some number of recurring time periods for
-   * maintenance to occur. The time windows may be overlapping. If no
-   * maintenance windows are set, maintenance can occur at any time.
-   * 
- * - * .google.container.v1beta1.RecurringTimeWindow recurring_window = 3; - * @return The recurringWindow. - */ - @java.lang.Override - public com.google.container.v1beta1.RecurringTimeWindow getRecurringWindow() { - if (policyCase_ == 3) { - return (com.google.container.v1beta1.RecurringTimeWindow) policy_; - } - return com.google.container.v1beta1.RecurringTimeWindow.getDefaultInstance(); - } - /** - *
-   * RecurringWindow specifies some number of recurring time periods for
-   * maintenance to occur. The time windows may be overlapping. If no
-   * maintenance windows are set, maintenance can occur at any time.
-   * 
- * - * .google.container.v1beta1.RecurringTimeWindow recurring_window = 3; - */ - @java.lang.Override - public com.google.container.v1beta1.RecurringTimeWindowOrBuilder getRecurringWindowOrBuilder() { - if (policyCase_ == 3) { - return (com.google.container.v1beta1.RecurringTimeWindow) policy_; - } - return com.google.container.v1beta1.RecurringTimeWindow.getDefaultInstance(); - } - - public static final int MAINTENANCE_EXCLUSIONS_FIELD_NUMBER = 4; - private static final class MaintenanceExclusionsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.container.v1beta1.TimeWindow> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MaintenanceWindow_MaintenanceExclusionsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.container.v1beta1.TimeWindow.getDefaultInstance()); - } - private com.google.protobuf.MapField< - 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 com.google.container.v1beta1.TimeWindow getMaintenanceExclusionsOrDefault( - java.lang.String key, - 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.MapField internalGetMapField( - int number) { - switch (number) { - case 4: - return internalGetMaintenanceExclusions(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 4: - return internalGetMutableMaintenanceExclusions(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MaintenanceWindow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.MaintenanceWindow.class, com.google.container.v1beta1.MaintenanceWindow.Builder.class); - } - - // Construct using com.google.container.v1beta1.MaintenanceWindow.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - 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); - int from_bitField0_ = bitField0_; - if (policyCase_ == 2) { - if (dailyMaintenanceWindowBuilder_ == null) { - result.policy_ = policy_; - } else { - result.policy_ = dailyMaintenanceWindowBuilder_.build(); - } - } - if (policyCase_ == 3) { - if (recurringWindowBuilder_ == null) { - result.policy_ = policy_; - } else { - result.policy_ = recurringWindowBuilder_.build(); - } - } - result.maintenanceExclusions_ = internalGetMaintenanceExclusions(); - result.maintenanceExclusions_.makeImmutable(); - result.policyCase_ = policyCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.MaintenanceWindow) { - return mergeFrom((com.google.container.v1beta1.MaintenanceWindow)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.MaintenanceWindow other) { - if (other == com.google.container.v1beta1.MaintenanceWindow.getDefaultInstance()) return this; - internalGetMutableMaintenanceExclusions().mergeFrom( - other.internalGetMaintenanceExclusions()); - switch (other.getPolicyCase()) { - case DAILY_MAINTENANCE_WINDOW: { - mergeDailyMaintenanceWindow(other.getDailyMaintenanceWindow()); - break; - } - case RECURRING_WINDOW: { - mergeRecurringWindow(other.getRecurringWindow()); - break; - } - case POLICY_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == 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().getMutableMap().put( - maintenanceExclusions__.getKey(), maintenanceExclusions__.getValue()); - 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 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_; - } - private com.google.protobuf.MapField - internalGetMutableMaintenanceExclusions() { - onChanged();; - if (maintenanceExclusions_ == null) { - maintenanceExclusions_ = com.google.protobuf.MapField.newMapField( - MaintenanceExclusionsDefaultEntryHolder.defaultEntry); - } - if (!maintenanceExclusions_.isMutable()) { - maintenanceExclusions_ = maintenanceExclusions_.copy(); - } - return maintenanceExclusions_; - } - - public int getMaintenanceExclusionsCount() { - return internalGetMaintenanceExclusions().getMap().size(); - } - /** - *
-     * Exceptions to maintenance window. Non-emergency maintenance should not
-     * occur in these windows.
-     * 
- * - * map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4; - */ - - @java.lang.Override - public boolean containsMaintenanceExclusions( - java.lang.String key) { - if (key == null) { throw new 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 com.google.container.v1beta1.TimeWindow getMaintenanceExclusionsOrDefault( - java.lang.String key, - 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); - } - - public Builder clearMaintenanceExclusions() { - internalGetMutableMaintenanceExclusions().getMutableMap() - .clear(); - return this; - } - /** - *
-     * Exceptions to maintenance window. Non-emergency maintenance should not
-     * occur in these windows.
-     * 
- * - * map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4; - */ - - public Builder removeMaintenanceExclusions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableMaintenanceExclusions().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableMaintenanceExclusions() { - return internalGetMutableMaintenanceExclusions().getMutableMap(); - } - /** - *
-     * Exceptions to maintenance window. Non-emergency maintenance should not
-     * occur in these windows.
-     * 
- * - * map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4; - */ - public Builder putMaintenanceExclusions( - java.lang.String key, - com.google.container.v1beta1.TimeWindow value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { - throw new NullPointerException("map value"); -} - - internalGetMutableMaintenanceExclusions().getMutableMap() - .put(key, value); - return this; - } - /** - *
-     * Exceptions to maintenance window. Non-emergency maintenance should not
-     * occur in these windows.
-     * 
- * - * map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4; - */ - - public Builder putAllMaintenanceExclusions( - java.util.Map values) { - internalGetMutableMaintenanceExclusions().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.MaintenanceWindow) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.MaintenanceWindow) - private static final com.google.container.v1beta1.MaintenanceWindow DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.MaintenanceWindow(); - } - - public static com.google.container.v1beta1.MaintenanceWindow getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MaintenanceWindow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 604b6abb571b..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceWindowOrBuilder.java +++ /dev/null @@ -1,132 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface MaintenanceWindowOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MaintenanceWindow) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * DailyMaintenanceWindow specifies a daily maintenance operation window.
-   * 
- * - * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; - * @return Whether the dailyMaintenanceWindow field is set. - */ - boolean hasDailyMaintenanceWindow(); - /** - *
-   * DailyMaintenanceWindow specifies a daily maintenance operation window.
-   * 
- * - * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; - * @return The dailyMaintenanceWindow. - */ - com.google.container.v1beta1.DailyMaintenanceWindow getDailyMaintenanceWindow(); - /** - *
-   * DailyMaintenanceWindow specifies a daily maintenance operation window.
-   * 
- * - * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; - */ - com.google.container.v1beta1.DailyMaintenanceWindowOrBuilder getDailyMaintenanceWindowOrBuilder(); - - /** - *
-   * RecurringWindow specifies some number of recurring time periods for
-   * maintenance to occur. The time windows may be overlapping. If no
-   * maintenance windows are set, maintenance can occur at any time.
-   * 
- * - * .google.container.v1beta1.RecurringTimeWindow recurring_window = 3; - * @return Whether the recurringWindow field is set. - */ - boolean hasRecurringWindow(); - /** - *
-   * RecurringWindow specifies some number of recurring time periods for
-   * maintenance to occur. The time windows may be overlapping. If no
-   * maintenance windows are set, maintenance can occur at any time.
-   * 
- * - * .google.container.v1beta1.RecurringTimeWindow recurring_window = 3; - * @return The recurringWindow. - */ - com.google.container.v1beta1.RecurringTimeWindow getRecurringWindow(); - /** - *
-   * RecurringWindow specifies some number of recurring time periods for
-   * maintenance to occur. The time windows may be overlapping. If no
-   * maintenance windows are set, maintenance can occur at any time.
-   * 
- * - * .google.container.v1beta1.RecurringTimeWindow recurring_window = 3; - */ - com.google.container.v1beta1.RecurringTimeWindowOrBuilder getRecurringWindowOrBuilder(); - - /** - *
-   * Exceptions to maintenance window. Non-emergency maintenance should not
-   * occur in these windows.
-   * 
- * - * map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4; - */ - int getMaintenanceExclusionsCount(); - /** - *
-   * Exceptions to maintenance window. Non-emergency maintenance should not
-   * occur in these windows.
-   * 
- * - * map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4; - */ - boolean containsMaintenanceExclusions( - java.lang.String key); - /** - * Use {@link #getMaintenanceExclusionsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getMaintenanceExclusions(); - /** - *
-   * Exceptions to maintenance window. Non-emergency maintenance should not
-   * occur in these windows.
-   * 
- * - * map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4; - */ - java.util.Map - getMaintenanceExclusionsMap(); - /** - *
-   * Exceptions to maintenance window. Non-emergency maintenance should not
-   * occur in these windows.
-   * 
- * - * map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4; - */ - - /* 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); - - public 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 deleted file mode 100644 index fa3bc51e6acc..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ManagedPrometheusConfig.java +++ /dev/null @@ -1,492 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * ManagedPrometheusConfig defines the configuration for
- * Google Cloud Managed Service for Prometheus.
- * 
- * - * Protobuf type {@code google.container.v1beta1.ManagedPrometheusConfig} - */ -public final class ManagedPrometheusConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.ManagedPrometheusConfig) - ManagedPrometheusConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use ManagedPrometheusConfig.newBuilder() to construct. - private ManagedPrometheusConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ManagedPrometheusConfig() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ManagedPrometheusConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ManagedPrometheusConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ManagedPrometheusConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.ManagedPrometheusConfig.class, com.google.container.v1beta1.ManagedPrometheusConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-   * Enable Managed Collection.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - 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(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ManagedPrometheusConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.ManagedPrometheusConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.ManagedPrometheusConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.ManagedPrometheusConfig build() { - com.google.container.v1beta1.ManagedPrometheusConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.ManagedPrometheusConfig buildPartial() { - com.google.container.v1beta1.ManagedPrometheusConfig result = new com.google.container.v1beta1.ManagedPrometheusConfig(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.ManagedPrometheusConfig) { - return mergeFrom((com.google.container.v1beta1.ManagedPrometheusConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.ManagedPrometheusConfig other) { - if (other == com.google.container.v1beta1.ManagedPrometheusConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 boolean enabled_ ; - /** - *
-     * Enable Managed Collection.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Enable Managed Collection.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Enable Managed Collection.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ManagedPrometheusConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.ManagedPrometheusConfig) - private static final com.google.container.v1beta1.ManagedPrometheusConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.ManagedPrometheusConfig(); - } - - public static com.google.container.v1beta1.ManagedPrometheusConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ManagedPrometheusConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 3145ed29cbde..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ManagedPrometheusConfigOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface ManagedPrometheusConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ManagedPrometheusConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Enable Managed Collection.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/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 deleted file mode 100644 index ed5ffb90f601..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Master.java +++ /dev/null @@ -1,409 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Master is the configuration for components on master.
- * 
- * - * Protobuf type {@code google.container.v1beta1.Master} - */ -public final class Master extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.Master) - MasterOrBuilder { -private static final long serialVersionUID = 0L; - // Use Master.newBuilder() to construct. - private Master(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Master() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Master(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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 deleted file mode 100644 index 83e176e16813..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuth.java +++ /dev/null @@ -1,1597 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * The authentication information for accessing the master endpoint.
- * Authentication can be done using HTTP basic auth or using client
- * certificates.
- * 
- * - * Protobuf type {@code google.container.v1beta1.MasterAuth} - */ -public final class MasterAuth extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.MasterAuth) - MasterAuthOrBuilder { -private static final long serialVersionUID = 0L; - // Use MasterAuth.newBuilder() to construct. - private MasterAuth(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MasterAuth() { - username_ = ""; - password_ = ""; - clusterCaCertificate_ = ""; - clientCertificate_ = ""; - clientKey_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MasterAuth(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MasterAuth_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MasterAuth_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.MasterAuth.class, com.google.container.v1beta1.MasterAuth.Builder.class); - } - - public static final int USERNAME_FIELD_NUMBER = 1; - private volatile java.lang.Object username_; - /** - *
-   * The username to use for HTTP basic authentication to the master endpoint.
-   * For clusters v1.6.0 and later, basic authentication can be disabled by
-   * leaving username unspecified (or setting it to the empty string).
-   * Warning: basic authentication is deprecated, and will be removed in GKE
-   * control plane versions 1.19 and newer. For a list of recommended
-   * authentication methods, see:
-   * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
-   * 
- * - * string username = 1 [deprecated = true]; - * @deprecated google.container.v1beta1.MasterAuth.username is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=999 - * @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=999 - * @return The bytes for username. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getUsernameBytes() { - java.lang.Object ref = username_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - username_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PASSWORD_FIELD_NUMBER = 2; - private volatile java.lang.Object password_; - /** - *
-   * The password to use for HTTP basic authentication to the master endpoint.
-   * Because the master endpoint is open to the Internet, you should create a
-   * strong password.  If a password is provided for cluster creation, username
-   * must be non-empty.
-   * Warning: basic authentication is deprecated, and will be removed in GKE
-   * control plane versions 1.19 and newer. For a list of recommended
-   * authentication methods, see:
-   * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
-   * 
- * - * string password = 2 [deprecated = true]; - * @deprecated google.container.v1beta1.MasterAuth.password is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1010 - * @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=1010 - * @return The bytes for password. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getPasswordBytes() { - java.lang.Object ref = password_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - password_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLIENT_CERTIFICATE_CONFIG_FIELD_NUMBER = 3; - private com.google.container.v1beta1.ClientCertificateConfig clientCertificateConfig_; - /** - *
-   * Configuration for client certificate authentication on the cluster. For
-   * clusters before v1.12, if no configuration is specified, a client
-   * certificate is issued.
-   * 
- * - * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; - * @return Whether the clientCertificateConfig field is set. - */ - @java.lang.Override - public boolean hasClientCertificateConfig() { - return clientCertificateConfig_ != null; - } - /** - *
-   * Configuration for client certificate authentication on the cluster. For
-   * clusters before v1.12, if no configuration is specified, a client
-   * certificate is issued.
-   * 
- * - * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; - * @return The clientCertificateConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.ClientCertificateConfig getClientCertificateConfig() { - return clientCertificateConfig_ == null ? com.google.container.v1beta1.ClientCertificateConfig.getDefaultInstance() : clientCertificateConfig_; - } - /** - *
-   * Configuration for client certificate authentication on the cluster. For
-   * clusters before v1.12, if no configuration is specified, a client
-   * certificate is issued.
-   * 
- * - * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; - */ - @java.lang.Override - public com.google.container.v1beta1.ClientCertificateConfigOrBuilder getClientCertificateConfigOrBuilder() { - return getClientCertificateConfig(); - } - - public static final int CLUSTER_CA_CERTIFICATE_FIELD_NUMBER = 100; - private volatile java.lang.Object clusterCaCertificate_; - /** - * string cluster_ca_certificate = 100; - * @return The clusterCaCertificate. - */ - @java.lang.Override - public java.lang.String getClusterCaCertificate() { - java.lang.Object ref = clusterCaCertificate_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterCaCertificate_ = s; - return s; - } - } - /** - * string cluster_ca_certificate = 100; - * @return The bytes for clusterCaCertificate. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getClusterCaCertificateBytes() { - java.lang.Object ref = clusterCaCertificate_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterCaCertificate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLIENT_CERTIFICATE_FIELD_NUMBER = 101; - private volatile java.lang.Object clientCertificate_; - /** - *
-   * [Output only] Base64-encoded public certificate used by clients to
-   * authenticate to the cluster endpoint.
-   * 
- * - * string client_certificate = 101; - * @return The clientCertificate. - */ - @java.lang.Override - public java.lang.String getClientCertificate() { - java.lang.Object ref = clientCertificate_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientCertificate_ = s; - return s; - } - } - /** - *
-   * [Output only] Base64-encoded public certificate used by clients to
-   * authenticate to the cluster endpoint.
-   * 
- * - * string client_certificate = 101; - * @return The bytes for clientCertificate. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getClientCertificateBytes() { - java.lang.Object ref = clientCertificate_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientCertificate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLIENT_KEY_FIELD_NUMBER = 102; - private volatile java.lang.Object clientKey_; - /** - *
-   * [Output only] Base64-encoded private key used by clients to authenticate
-   * to the cluster endpoint.
-   * 
- * - * string client_key = 102; - * @return The clientKey. - */ - @java.lang.Override - public java.lang.String getClientKey() { - java.lang.Object ref = clientKey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientKey_ = s; - return s; - } - } - /** - *
-   * [Output only] Base64-encoded private key used by clients to authenticate
-   * to the cluster endpoint.
-   * 
- * - * string client_key = 102; - * @return The bytes for clientKey. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getClientKeyBytes() { - java.lang.Object ref = clientKey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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 (clientCertificateConfig_ != null) { - 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 (clientCertificateConfig_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - username_ = ""; - - password_ = ""; - - if (clientCertificateConfigBuilder_ == null) { - clientCertificateConfig_ = null; - } else { - clientCertificateConfig_ = null; - clientCertificateConfigBuilder_ = null; - } - clusterCaCertificate_ = ""; - - clientCertificate_ = ""; - - clientKey_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MasterAuth_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.MasterAuth getDefaultInstanceForType() { - return com.google.container.v1beta1.MasterAuth.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.MasterAuth build() { - com.google.container.v1beta1.MasterAuth result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.MasterAuth buildPartial() { - com.google.container.v1beta1.MasterAuth result = new com.google.container.v1beta1.MasterAuth(this); - result.username_ = username_; - result.password_ = password_; - if (clientCertificateConfigBuilder_ == null) { - result.clientCertificateConfig_ = clientCertificateConfig_; - } else { - result.clientCertificateConfig_ = clientCertificateConfigBuilder_.build(); - } - result.clusterCaCertificate_ = clusterCaCertificate_; - result.clientCertificate_ = clientCertificate_; - result.clientKey_ = clientKey_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.MasterAuth) { - return mergeFrom((com.google.container.v1beta1.MasterAuth)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.MasterAuth other) { - if (other == com.google.container.v1beta1.MasterAuth.getDefaultInstance()) return this; - if (!other.getUsername().isEmpty()) { - username_ = other.username_; - onChanged(); - } - if (!other.getPassword().isEmpty()) { - password_ = other.password_; - onChanged(); - } - if (other.hasClientCertificateConfig()) { - mergeClientCertificateConfig(other.getClientCertificateConfig()); - } - if (!other.getClusterCaCertificate().isEmpty()) { - clusterCaCertificate_ = other.clusterCaCertificate_; - onChanged(); - } - if (!other.getClientCertificate().isEmpty()) { - clientCertificate_ = other.clientCertificate_; - onChanged(); - } - if (!other.getClientKey().isEmpty()) { - clientKey_ = other.clientKey_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - password_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - input.readMessage( - getClientCertificateConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 26 - case 802: { - clusterCaCertificate_ = input.readStringRequireUtf8(); - - break; - } // case 802 - case 810: { - clientCertificate_ = input.readStringRequireUtf8(); - - break; - } // case 810 - case 818: { - clientKey_ = input.readStringRequireUtf8(); - - 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 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=999 - * @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=999 - * @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=999 - * @param value The username to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setUsername( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - username_ = value; - onChanged(); - return this; - } - /** - *
-     * The username to use for HTTP basic authentication to the master endpoint.
-     * For clusters v1.6.0 and later, basic authentication can be disabled by
-     * leaving username unspecified (or setting it to the empty string).
-     * Warning: basic authentication is deprecated, and will be removed in GKE
-     * control plane versions 1.19 and newer. For a list of recommended
-     * authentication methods, see:
-     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
-     * 
- * - * string username = 1 [deprecated = true]; - * @deprecated google.container.v1beta1.MasterAuth.username is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=999 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearUsername() { - - username_ = getDefaultInstance().getUsername(); - onChanged(); - return this; - } - /** - *
-     * The username to use for HTTP basic authentication to the master endpoint.
-     * For clusters v1.6.0 and later, basic authentication can be disabled by
-     * leaving username unspecified (or setting it to the empty string).
-     * Warning: basic authentication is deprecated, and will be removed in GKE
-     * control plane versions 1.19 and newer. For a list of recommended
-     * authentication methods, see:
-     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
-     * 
- * - * string username = 1 [deprecated = true]; - * @deprecated google.container.v1beta1.MasterAuth.username is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=999 - * @param value The bytes for username to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - username_ = value; - onChanged(); - return this; - } - - private java.lang.Object password_ = ""; - /** - *
-     * The password to use for HTTP basic authentication to the master endpoint.
-     * Because the master endpoint is open to the Internet, you should create a
-     * strong password.  If a password is provided for cluster creation, username
-     * must be non-empty.
-     * Warning: basic authentication is deprecated, and will be removed in GKE
-     * control plane versions 1.19 and newer. For a list of recommended
-     * authentication methods, see:
-     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
-     * 
- * - * string password = 2 [deprecated = true]; - * @deprecated google.container.v1beta1.MasterAuth.password is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1010 - * @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=1010 - * @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=1010 - * @param value The password to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setPassword( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - password_ = value; - onChanged(); - return this; - } - /** - *
-     * The password to use for HTTP basic authentication to the master endpoint.
-     * Because the master endpoint is open to the Internet, you should create a
-     * strong password.  If a password is provided for cluster creation, username
-     * must be non-empty.
-     * Warning: basic authentication is deprecated, and will be removed in GKE
-     * control plane versions 1.19 and newer. For a list of recommended
-     * authentication methods, see:
-     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
-     * 
- * - * string password = 2 [deprecated = true]; - * @deprecated google.container.v1beta1.MasterAuth.password is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1010 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearPassword() { - - password_ = getDefaultInstance().getPassword(); - onChanged(); - return this; - } - /** - *
-     * The password to use for HTTP basic authentication to the master endpoint.
-     * Because the master endpoint is open to the Internet, you should create a
-     * strong password.  If a password is provided for cluster creation, username
-     * must be non-empty.
-     * Warning: basic authentication is deprecated, and will be removed in GKE
-     * control plane versions 1.19 and newer. For a list of recommended
-     * authentication methods, see:
-     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
-     * 
- * - * string password = 2 [deprecated = true]; - * @deprecated google.container.v1beta1.MasterAuth.password is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=1010 - * @param value The bytes for password to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setPasswordBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - password_ = value; - onChanged(); - return this; - } - - private com.google.container.v1beta1.ClientCertificateConfig clientCertificateConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ClientCertificateConfig, com.google.container.v1beta1.ClientCertificateConfig.Builder, com.google.container.v1beta1.ClientCertificateConfigOrBuilder> clientCertificateConfigBuilder_; - /** - *
-     * Configuration for client certificate authentication on the cluster. For
-     * clusters before v1.12, if no configuration is specified, a client
-     * certificate is issued.
-     * 
- * - * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; - * @return Whether the clientCertificateConfig field is set. - */ - public boolean hasClientCertificateConfig() { - return clientCertificateConfigBuilder_ != null || clientCertificateConfig_ != null; - } - /** - *
-     * Configuration for client certificate authentication on the cluster. For
-     * clusters before v1.12, if no configuration is specified, a client
-     * certificate is issued.
-     * 
- * - * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; - * @return The clientCertificateConfig. - */ - public com.google.container.v1beta1.ClientCertificateConfig getClientCertificateConfig() { - if (clientCertificateConfigBuilder_ == null) { - return clientCertificateConfig_ == null ? com.google.container.v1beta1.ClientCertificateConfig.getDefaultInstance() : clientCertificateConfig_; - } else { - return clientCertificateConfigBuilder_.getMessage(); - } - } - /** - *
-     * Configuration for client certificate authentication on the cluster. For
-     * clusters before v1.12, if no configuration is specified, a client
-     * certificate is issued.
-     * 
- * - * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; - */ - public Builder setClientCertificateConfig(com.google.container.v1beta1.ClientCertificateConfig value) { - if (clientCertificateConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - clientCertificateConfig_ = value; - onChanged(); - } else { - clientCertificateConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration for client certificate authentication on the cluster. For
-     * clusters before v1.12, if no configuration is specified, a client
-     * certificate is issued.
-     * 
- * - * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; - */ - public Builder setClientCertificateConfig( - com.google.container.v1beta1.ClientCertificateConfig.Builder builderForValue) { - if (clientCertificateConfigBuilder_ == null) { - clientCertificateConfig_ = builderForValue.build(); - onChanged(); - } else { - clientCertificateConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration for client certificate authentication on the cluster. For
-     * clusters before v1.12, if no configuration is specified, a client
-     * certificate is issued.
-     * 
- * - * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; - */ - public Builder mergeClientCertificateConfig(com.google.container.v1beta1.ClientCertificateConfig value) { - if (clientCertificateConfigBuilder_ == null) { - if (clientCertificateConfig_ != null) { - clientCertificateConfig_ = - com.google.container.v1beta1.ClientCertificateConfig.newBuilder(clientCertificateConfig_).mergeFrom(value).buildPartial(); - } else { - clientCertificateConfig_ = value; - } - onChanged(); - } else { - clientCertificateConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration for client certificate authentication on the cluster. For
-     * clusters before v1.12, if no configuration is specified, a client
-     * certificate is issued.
-     * 
- * - * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; - */ - public Builder clearClientCertificateConfig() { - if (clientCertificateConfigBuilder_ == null) { - clientCertificateConfig_ = null; - onChanged(); - } else { - clientCertificateConfig_ = null; - clientCertificateConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration for client certificate authentication on the cluster. For
-     * clusters before v1.12, if no configuration is specified, a client
-     * certificate is issued.
-     * 
- * - * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; - */ - public com.google.container.v1beta1.ClientCertificateConfig.Builder getClientCertificateConfigBuilder() { - - onChanged(); - return getClientCertificateConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration for client certificate authentication on the cluster. For
-     * clusters before v1.12, if no configuration is specified, a client
-     * certificate is issued.
-     * 
- * - * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; - */ - public com.google.container.v1beta1.ClientCertificateConfigOrBuilder getClientCertificateConfigOrBuilder() { - if (clientCertificateConfigBuilder_ != null) { - return clientCertificateConfigBuilder_.getMessageOrBuilder(); - } else { - return clientCertificateConfig_ == null ? - com.google.container.v1beta1.ClientCertificateConfig.getDefaultInstance() : clientCertificateConfig_; - } - } - /** - *
-     * Configuration for client certificate authentication on the cluster. For
-     * clusters before v1.12, if no configuration is specified, a client
-     * certificate is issued.
-     * 
- * - * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ClientCertificateConfig, com.google.container.v1beta1.ClientCertificateConfig.Builder, com.google.container.v1beta1.ClientCertificateConfigOrBuilder> - getClientCertificateConfigFieldBuilder() { - if (clientCertificateConfigBuilder_ == null) { - clientCertificateConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ClientCertificateConfig, com.google.container.v1beta1.ClientCertificateConfig.Builder, com.google.container.v1beta1.ClientCertificateConfigOrBuilder>( - getClientCertificateConfig(), - getParentForChildren(), - isClean()); - clientCertificateConfig_ = null; - } - return clientCertificateConfigBuilder_; - } - - private java.lang.Object clusterCaCertificate_ = ""; - /** - * string cluster_ca_certificate = 100; - * @return The clusterCaCertificate. - */ - public java.lang.String getClusterCaCertificate() { - java.lang.Object ref = clusterCaCertificate_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterCaCertificate_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string cluster_ca_certificate = 100; - * @return The bytes for clusterCaCertificate. - */ - public com.google.protobuf.ByteString - getClusterCaCertificateBytes() { - java.lang.Object ref = clusterCaCertificate_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterCaCertificate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string cluster_ca_certificate = 100; - * @param value The clusterCaCertificate to set. - * @return This builder for chaining. - */ - public Builder setClusterCaCertificate( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterCaCertificate_ = value; - onChanged(); - return this; - } - /** - * string cluster_ca_certificate = 100; - * @return This builder for chaining. - */ - public Builder clearClusterCaCertificate() { - - clusterCaCertificate_ = getDefaultInstance().getClusterCaCertificate(); - onChanged(); - return this; - } - /** - * string cluster_ca_certificate = 100; - * @param value The bytes for clusterCaCertificate to set. - * @return This builder for chaining. - */ - public Builder setClusterCaCertificateBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterCaCertificate_ = value; - onChanged(); - return this; - } - - private java.lang.Object clientCertificate_ = ""; - /** - *
-     * [Output only] Base64-encoded public certificate used by clients to
-     * authenticate to the cluster endpoint.
-     * 
- * - * string client_certificate = 101; - * @return The clientCertificate. - */ - public java.lang.String getClientCertificate() { - java.lang.Object ref = clientCertificate_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientCertificate_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * [Output only] Base64-encoded public certificate used by clients to
-     * authenticate to the cluster endpoint.
-     * 
- * - * string client_certificate = 101; - * @return The bytes for clientCertificate. - */ - public com.google.protobuf.ByteString - getClientCertificateBytes() { - java.lang.Object ref = clientCertificate_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientCertificate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * [Output only] Base64-encoded public certificate used by clients to
-     * authenticate to the cluster endpoint.
-     * 
- * - * string client_certificate = 101; - * @param value The clientCertificate to set. - * @return This builder for chaining. - */ - public Builder setClientCertificate( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientCertificate_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] Base64-encoded public certificate used by clients to
-     * authenticate to the cluster endpoint.
-     * 
- * - * string client_certificate = 101; - * @return This builder for chaining. - */ - public Builder clearClientCertificate() { - - clientCertificate_ = getDefaultInstance().getClientCertificate(); - onChanged(); - return this; - } - /** - *
-     * [Output only] Base64-encoded public certificate used by clients to
-     * authenticate to the cluster endpoint.
-     * 
- * - * string client_certificate = 101; - * @param value The bytes for clientCertificate to set. - * @return This builder for chaining. - */ - public Builder setClientCertificateBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientCertificate_ = value; - onChanged(); - return this; - } - - private java.lang.Object clientKey_ = ""; - /** - *
-     * [Output only] Base64-encoded private key used by clients to authenticate
-     * to the cluster endpoint.
-     * 
- * - * string client_key = 102; - * @return The clientKey. - */ - public java.lang.String getClientKey() { - java.lang.Object ref = clientKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientKey_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * [Output only] Base64-encoded private key used by clients to authenticate
-     * to the cluster endpoint.
-     * 
- * - * string client_key = 102; - * @return The bytes for clientKey. - */ - public com.google.protobuf.ByteString - getClientKeyBytes() { - java.lang.Object ref = clientKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * [Output only] Base64-encoded private key used by clients to authenticate
-     * to the cluster endpoint.
-     * 
- * - * string client_key = 102; - * @param value The clientKey to set. - * @return This builder for chaining. - */ - public Builder setClientKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientKey_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] Base64-encoded private key used by clients to authenticate
-     * to the cluster endpoint.
-     * 
- * - * string client_key = 102; - * @return This builder for chaining. - */ - public Builder clearClientKey() { - - clientKey_ = getDefaultInstance().getClientKey(); - onChanged(); - return this; - } - /** - *
-     * [Output only] Base64-encoded private key used by clients to authenticate
-     * to the cluster endpoint.
-     * 
- * - * string client_key = 102; - * @param value The bytes for clientKey to set. - * @return This builder for chaining. - */ - public Builder setClientKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientKey_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.MasterAuth) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.MasterAuth) - private static final com.google.container.v1beta1.MasterAuth DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.MasterAuth(); - } - - public static com.google.container.v1beta1.MasterAuth getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MasterAuth parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index dc5233ea2242..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthOrBuilder.java +++ /dev/null @@ -1,172 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface MasterAuthOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MasterAuth) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The username to use for HTTP basic authentication to the master endpoint.
-   * For clusters v1.6.0 and later, basic authentication can be disabled by
-   * leaving username unspecified (or setting it to the empty string).
-   * Warning: basic authentication is deprecated, and will be removed in GKE
-   * control plane versions 1.19 and newer. For a list of recommended
-   * authentication methods, see:
-   * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
-   * 
- * - * string username = 1 [deprecated = true]; - * @deprecated google.container.v1beta1.MasterAuth.username is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=999 - * @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=999 - * @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=1010 - * @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=1010 - * @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 deleted file mode 100644 index b360c81dccc0..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthorizedNetworksConfig.java +++ /dev/null @@ -1,1856 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Configuration options for the master authorized networks feature. Enabled
- * master authorized networks will disallow all external traffic to access
- * Kubernetes master through HTTPS except traffic from the given CIDR blocks,
- * Google Compute Engine Public IPs and Google Prod IPs.
- * 
- * - * Protobuf type {@code google.container.v1beta1.MasterAuthorizedNetworksConfig} - */ -public final class MasterAuthorizedNetworksConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.MasterAuthorizedNetworksConfig) - MasterAuthorizedNetworksConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use MasterAuthorizedNetworksConfig.newBuilder() to construct. - private MasterAuthorizedNetworksConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MasterAuthorizedNetworksConfig() { - cidrBlocks_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MasterAuthorizedNetworksConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.MasterAuthorizedNetworksConfig.class, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder.class); - } - - public interface CidrBlockOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * display_name is an optional field for users to identify CIDR blocks.
-     * 
- * - * string display_name = 1; - * @return The displayName. - */ - java.lang.String getDisplayName(); - /** - *
-     * display_name is an optional field for users to identify CIDR blocks.
-     * 
- * - * string display_name = 1; - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString - getDisplayNameBytes(); - - /** - *
-     * cidr_block must be specified in CIDR notation.
-     * 
- * - * string cidr_block = 2; - * @return The cidrBlock. - */ - java.lang.String getCidrBlock(); - /** - *
-     * cidr_block must be specified in CIDR notation.
-     * 
- * - * string cidr_block = 2; - * @return The bytes for cidrBlock. - */ - com.google.protobuf.ByteString - getCidrBlockBytes(); - } - /** - *
-   * CidrBlock contains an optional name and one CIDR block.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock} - */ - public static final class CidrBlock extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock) - CidrBlockOrBuilder { - private static final long serialVersionUID = 0L; - // Use CidrBlock.newBuilder() to construct. - private CidrBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CidrBlock() { - displayName_ = ""; - cidrBlock_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CidrBlock(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_CidrBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.class, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder.class); - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object displayName_; - /** - *
-     * display_name is an optional field for users to identify CIDR blocks.
-     * 
- * - * string display_name = 1; - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - *
-     * display_name is an optional field for users to identify CIDR blocks.
-     * 
- * - * string display_name = 1; - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CIDR_BLOCK_FIELD_NUMBER = 2; - private volatile java.lang.Object cidrBlock_; - /** - *
-     * cidr_block must be specified in CIDR notation.
-     * 
- * - * string cidr_block = 2; - * @return The cidrBlock. - */ - @java.lang.Override - public java.lang.String getCidrBlock() { - java.lang.Object ref = cidrBlock_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cidrBlock_ = s; - return s; - } - } - /** - *
-     * cidr_block must be specified in CIDR notation.
-     * 
- * - * string cidr_block = 2; - * @return The bytes for cidrBlock. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCidrBlockBytes() { - java.lang.Object ref = cidrBlock_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - displayName_ = ""; - - cidrBlock_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock getDefaultInstanceForType() { - return com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock build() { - com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock buildPartial() { - com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock result = new com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock(this); - result.displayName_ = displayName_; - result.cidrBlock_ = cidrBlock_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock) { - return mergeFrom((com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock other) { - if (other == com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.getDefaultInstance()) return this; - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - onChanged(); - } - if (!other.getCidrBlock().isEmpty()) { - cidrBlock_ = other.cidrBlock_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - cidrBlock_ = input.readStringRequireUtf8(); - - 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 java.lang.Object displayName_ = ""; - /** - *
-       * display_name is an optional field for users to identify CIDR blocks.
-       * 
- * - * string display_name = 1; - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * display_name is an optional field for users to identify CIDR blocks.
-       * 
- * - * string display_name = 1; - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * display_name is an optional field for users to identify CIDR blocks.
-       * 
- * - * string display_name = 1; - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - displayName_ = value; - onChanged(); - return this; - } - /** - *
-       * display_name is an optional field for users to identify CIDR blocks.
-       * 
- * - * string display_name = 1; - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - - displayName_ = getDefaultInstance().getDisplayName(); - onChanged(); - return this; - } - /** - *
-       * display_name is an optional field for users to identify CIDR blocks.
-       * 
- * - * string display_name = 1; - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - displayName_ = value; - onChanged(); - return this; - } - - private java.lang.Object cidrBlock_ = ""; - /** - *
-       * cidr_block must be specified in CIDR notation.
-       * 
- * - * string cidr_block = 2; - * @return The cidrBlock. - */ - public java.lang.String getCidrBlock() { - java.lang.Object ref = cidrBlock_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cidrBlock_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * cidr_block must be specified in CIDR notation.
-       * 
- * - * string cidr_block = 2; - * @return The bytes for cidrBlock. - */ - public com.google.protobuf.ByteString - getCidrBlockBytes() { - java.lang.Object ref = cidrBlock_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * cidr_block must be specified in CIDR notation.
-       * 
- * - * string cidr_block = 2; - * @param value The cidrBlock to set. - * @return This builder for chaining. - */ - public Builder setCidrBlock( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cidrBlock_ = value; - onChanged(); - return this; - } - /** - *
-       * cidr_block must be specified in CIDR notation.
-       * 
- * - * string cidr_block = 2; - * @return This builder for chaining. - */ - public Builder clearCidrBlock() { - - cidrBlock_ = getDefaultInstance().getCidrBlock(); - onChanged(); - return this; - } - /** - *
-       * cidr_block must be specified in CIDR notation.
-       * 
- * - * string cidr_block = 2; - * @param value The bytes for cidrBlock to set. - * @return This builder for chaining. - */ - public Builder setCidrBlockBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cidrBlock_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock) - private static final com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock(); - } - - public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CidrBlock parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-   * Whether or not master authorized networks is enabled.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - public static final int CIDR_BLOCKS_FIELD_NUMBER = 2; - private java.util.List cidrBlocks_; - /** - *
-   * cidr_blocks define up to 10 external networks that could access
-   * Kubernetes master through HTTPS.
-   * 
- * - * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - */ - @java.lang.Override - public java.util.List getCidrBlocksList() { - return cidrBlocks_; - } - /** - *
-   * cidr_blocks define up to 10 external networks that could access
-   * Kubernetes master through HTTPS.
-   * 
- * - * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - */ - @java.lang.Override - public java.util.List - 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_; - /** - *
-   * 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(); - enabled_ = false; - - if (cidrBlocksBuilder_ == null) { - cidrBlocks_ = java.util.Collections.emptyList(); - } else { - cidrBlocks_ = null; - cidrBlocksBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - gcpPublicCidrsAccessEnabled_ = false; - 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_MasterAuthorizedNetworksConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.MasterAuthorizedNetworksConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.MasterAuthorizedNetworksConfig build() { - com.google.container.v1beta1.MasterAuthorizedNetworksConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.MasterAuthorizedNetworksConfig buildPartial() { - com.google.container.v1beta1.MasterAuthorizedNetworksConfig result = new com.google.container.v1beta1.MasterAuthorizedNetworksConfig(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.enabled_ = enabled_; - if (cidrBlocksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - cidrBlocks_ = java.util.Collections.unmodifiableList(cidrBlocks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.cidrBlocks_ = cidrBlocks_; - } else { - result.cidrBlocks_ = cidrBlocksBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.gcpPublicCidrsAccessEnabled_ = gcpPublicCidrsAccessEnabled_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.MasterAuthorizedNetworksConfig) { - return mergeFrom((com.google.container.v1beta1.MasterAuthorizedNetworksConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.MasterAuthorizedNetworksConfig other) { - if (other == com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - if (cidrBlocksBuilder_ == null) { - if (!other.cidrBlocks_.isEmpty()) { - if (cidrBlocks_.isEmpty()) { - cidrBlocks_ = other.cidrBlocks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureCidrBlocksIsMutable(); - cidrBlocks_.addAll(other.cidrBlocks_); - } - onChanged(); - } - } else { - if (!other.cidrBlocks_.isEmpty()) { - if (cidrBlocksBuilder_.isEmpty()) { - cidrBlocksBuilder_.dispose(); - cidrBlocksBuilder_ = null; - cidrBlocks_ = other.cidrBlocks_; - bitField0_ = (bitField0_ & ~0x00000001); - cidrBlocksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCidrBlocksFieldBuilder() : null; - } else { - cidrBlocksBuilder_.addAllMessages(other.cidrBlocks_); - } - } - } - 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(); - - 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_ |= 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 enabled_ ; - /** - *
-     * Whether or not master authorized networks is enabled.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Whether or not master authorized networks is enabled.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether or not master authorized networks is enabled.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - - private java.util.List cidrBlocks_ = - java.util.Collections.emptyList(); - private void ensureCidrBlocksIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - cidrBlocks_ = new java.util.ArrayList(cidrBlocks_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> cidrBlocksBuilder_; - - /** - *
-     * cidr_blocks define up to 10 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - */ - public java.util.List getCidrBlocksList() { - if (cidrBlocksBuilder_ == null) { - return java.util.Collections.unmodifiableList(cidrBlocks_); - } else { - return cidrBlocksBuilder_.getMessageList(); - } - } - /** - *
-     * cidr_blocks define up to 10 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - */ - public int getCidrBlocksCount() { - if (cidrBlocksBuilder_ == null) { - return cidrBlocks_.size(); - } else { - return cidrBlocksBuilder_.getCount(); - } - } - /** - *
-     * cidr_blocks define up to 10 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - */ - public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock getCidrBlocks(int index) { - if (cidrBlocksBuilder_ == null) { - return cidrBlocks_.get(index); - } else { - return cidrBlocksBuilder_.getMessage(index); - } - } - /** - *
-     * cidr_blocks define up to 10 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - */ - public Builder setCidrBlocks( - int index, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock value) { - if (cidrBlocksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCidrBlocksIsMutable(); - cidrBlocks_.set(index, value); - onChanged(); - } else { - cidrBlocksBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * cidr_blocks define up to 10 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - */ - public Builder setCidrBlocks( - int index, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder builderForValue) { - if (cidrBlocksBuilder_ == null) { - ensureCidrBlocksIsMutable(); - cidrBlocks_.set(index, builderForValue.build()); - onChanged(); - } else { - cidrBlocksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * cidr_blocks define up to 10 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - */ - public Builder addCidrBlocks(com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock value) { - if (cidrBlocksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCidrBlocksIsMutable(); - cidrBlocks_.add(value); - onChanged(); - } else { - cidrBlocksBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * cidr_blocks define up to 10 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - */ - public Builder addCidrBlocks( - int index, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock value) { - if (cidrBlocksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCidrBlocksIsMutable(); - cidrBlocks_.add(index, value); - onChanged(); - } else { - cidrBlocksBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * cidr_blocks define up to 10 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - */ - public Builder addCidrBlocks( - com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder builderForValue) { - if (cidrBlocksBuilder_ == null) { - ensureCidrBlocksIsMutable(); - cidrBlocks_.add(builderForValue.build()); - onChanged(); - } else { - cidrBlocksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * cidr_blocks define up to 10 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - */ - public Builder addCidrBlocks( - int index, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder builderForValue) { - if (cidrBlocksBuilder_ == null) { - ensureCidrBlocksIsMutable(); - cidrBlocks_.add(index, builderForValue.build()); - onChanged(); - } else { - cidrBlocksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * cidr_blocks define up to 10 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - */ - public Builder addAllCidrBlocks( - java.lang.Iterable values) { - if (cidrBlocksBuilder_ == null) { - ensureCidrBlocksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, cidrBlocks_); - onChanged(); - } else { - cidrBlocksBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * cidr_blocks define up to 10 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - */ - public Builder clearCidrBlocks() { - if (cidrBlocksBuilder_ == null) { - cidrBlocks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - cidrBlocksBuilder_.clear(); - } - return this; - } - /** - *
-     * cidr_blocks define up to 10 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - */ - public Builder removeCidrBlocks(int index) { - if (cidrBlocksBuilder_ == null) { - ensureCidrBlocksIsMutable(); - cidrBlocks_.remove(index); - onChanged(); - } else { - cidrBlocksBuilder_.remove(index); - } - return this; - } - /** - *
-     * cidr_blocks define up to 10 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - */ - public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder getCidrBlocksBuilder( - int index) { - return getCidrBlocksFieldBuilder().getBuilder(index); - } - /** - *
-     * cidr_blocks define up to 10 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - */ - public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder getCidrBlocksOrBuilder( - int index) { - if (cidrBlocksBuilder_ == null) { - return cidrBlocks_.get(index); } else { - return cidrBlocksBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * cidr_blocks define up to 10 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - */ - public java.util.List - 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_ & 0x00000001) != 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_ & 0x00000002) != 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) { - bitField0_ |= 0x00000002; - gcpPublicCidrsAccessEnabled_ = value; - 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_ & ~0x00000002); - 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 deleted file mode 100644 index fcef0f91293e..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthorizedNetworksConfigOrBuilder.java +++ /dev/null @@ -1,87 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface MasterAuthorizedNetworksConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MasterAuthorizedNetworksConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether or not master authorized networks is enabled.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - boolean getEnabled(); - - /** - *
-   * cidr_blocks define up to 10 external networks that could access
-   * Kubernetes master through HTTPS.
-   * 
- * - * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - */ - java.util.List - getCidrBlocksList(); - /** - *
-   * cidr_blocks define up to 10 external networks that could access
-   * Kubernetes master through HTTPS.
-   * 
- * - * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - */ - com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock getCidrBlocks(int index); - /** - *
-   * cidr_blocks define up to 10 external networks that could access
-   * Kubernetes master through HTTPS.
-   * 
- * - * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - */ - int getCidrBlocksCount(); - /** - *
-   * cidr_blocks define up to 10 external networks that could access
-   * Kubernetes master through HTTPS.
-   * 
- * - * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - */ - java.util.List - 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 deleted file mode 100644 index 3f0b2a408ab9..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface MasterOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.Master) - com.google.protobuf.MessageOrBuilder { -} diff --git a/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 deleted file mode 100644 index 25f0068b49a5..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaxPodsConstraint.java +++ /dev/null @@ -1,490 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Constraints applied to pods.
- * 
- * - * Protobuf type {@code google.container.v1beta1.MaxPodsConstraint} - */ -public final class MaxPodsConstraint extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.MaxPodsConstraint) - MaxPodsConstraintOrBuilder { -private static final long serialVersionUID = 0L; - // Use MaxPodsConstraint.newBuilder() to construct. - private MaxPodsConstraint(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MaxPodsConstraint() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MaxPodsConstraint(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MaxPodsConstraint_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MaxPodsConstraint_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.MaxPodsConstraint.class, com.google.container.v1beta1.MaxPodsConstraint.Builder.class); - } - - public static final int MAX_PODS_PER_NODE_FIELD_NUMBER = 1; - private long maxPodsPerNode_; - /** - *
-   * Constraint enforced on the max num of pods per node.
-   * 
- * - * int64 max_pods_per_node = 1; - * @return The maxPodsPerNode. - */ - @java.lang.Override - public long getMaxPodsPerNode() { - return maxPodsPerNode_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (maxPodsPerNode_ != 0L) { - output.writeInt64(1, maxPodsPerNode_); - } - 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(); - maxPodsPerNode_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MaxPodsConstraint_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.MaxPodsConstraint getDefaultInstanceForType() { - return com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.MaxPodsConstraint build() { - com.google.container.v1beta1.MaxPodsConstraint result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.MaxPodsConstraint buildPartial() { - com.google.container.v1beta1.MaxPodsConstraint result = new com.google.container.v1beta1.MaxPodsConstraint(this); - result.maxPodsPerNode_ = maxPodsPerNode_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.MaxPodsConstraint) { - return mergeFrom((com.google.container.v1beta1.MaxPodsConstraint)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.MaxPodsConstraint other) { - if (other == com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance()) return this; - if (other.getMaxPodsPerNode() != 0L) { - setMaxPodsPerNode(other.getMaxPodsPerNode()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 long maxPodsPerNode_ ; - /** - *
-     * Constraint enforced on the max num of pods per node.
-     * 
- * - * int64 max_pods_per_node = 1; - * @return The maxPodsPerNode. - */ - @java.lang.Override - public long getMaxPodsPerNode() { - return maxPodsPerNode_; - } - /** - *
-     * Constraint enforced on the max num of pods per node.
-     * 
- * - * int64 max_pods_per_node = 1; - * @param value The maxPodsPerNode to set. - * @return This builder for chaining. - */ - public Builder setMaxPodsPerNode(long value) { - - maxPodsPerNode_ = value; - onChanged(); - return this; - } - /** - *
-     * Constraint enforced on the max num of pods per node.
-     * 
- * - * int64 max_pods_per_node = 1; - * @return This builder for chaining. - */ - public Builder clearMaxPodsPerNode() { - - maxPodsPerNode_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.MaxPodsConstraint) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.MaxPodsConstraint) - private static final com.google.container.v1beta1.MaxPodsConstraint DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.MaxPodsConstraint(); - } - - public static com.google.container.v1beta1.MaxPodsConstraint getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MaxPodsConstraint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index e0c933709000..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaxPodsConstraintOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface MaxPodsConstraintOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MaxPodsConstraint) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Constraint enforced on the max num of pods per node.
-   * 
- * - * int64 max_pods_per_node = 1; - * @return The maxPodsPerNode. - */ - long getMaxPodsPerNode(); -} diff --git a/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 deleted file mode 100644 index f2dd7bbb0d6d..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MeshCertificates.java +++ /dev/null @@ -1,711 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Configuration for issuance of mTLS keys and certificates to Kubernetes pods.
- * 
- * - * Protobuf type {@code google.container.v1beta1.MeshCertificates} - */ -public final class MeshCertificates extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.MeshCertificates) - MeshCertificatesOrBuilder { -private static final long serialVersionUID = 0L; - // Use MeshCertificates.newBuilder() to construct. - private MeshCertificates(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MeshCertificates() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MeshCertificates(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MeshCertificates_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MeshCertificates_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.MeshCertificates.class, com.google.container.v1beta1.MeshCertificates.Builder.class); - } - - public static final int ENABLE_CERTIFICATES_FIELD_NUMBER = 1; - private com.google.protobuf.BoolValue enableCertificates_; - /** - *
-   * enable_certificates controls issuance of workload mTLS certificates.
-   * If set, the GKE Workload Identity Certificates controller and node agent
-   * will be deployed in the cluster, which can then be configured by creating a
-   * WorkloadCertificateConfig Custom Resource.
-   * Requires Workload Identity
-   * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
-   * must be non-empty).
-   * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - * @return Whether the enableCertificates field is set. - */ - @java.lang.Override - public boolean hasEnableCertificates() { - return enableCertificates_ != null; - } - /** - *
-   * enable_certificates controls issuance of workload mTLS certificates.
-   * If set, the GKE Workload Identity Certificates controller and node agent
-   * will be deployed in the cluster, which can then be configured by creating a
-   * WorkloadCertificateConfig Custom Resource.
-   * Requires Workload Identity
-   * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
-   * must be non-empty).
-   * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - * @return The enableCertificates. - */ - @java.lang.Override - public com.google.protobuf.BoolValue getEnableCertificates() { - return enableCertificates_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableCertificates_; - } - /** - *
-   * enable_certificates controls issuance of workload mTLS certificates.
-   * If set, the GKE Workload Identity Certificates controller and node agent
-   * will be deployed in the cluster, which can then be configured by creating a
-   * WorkloadCertificateConfig Custom Resource.
-   * Requires Workload Identity
-   * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
-   * must be non-empty).
-   * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - @java.lang.Override - public com.google.protobuf.BoolValueOrBuilder getEnableCertificatesOrBuilder() { - return getEnableCertificates(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enableCertificates_ != null) { - output.writeMessage(1, getEnableCertificates()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (enableCertificates_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getEnableCertificates()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (enableCertificatesBuilder_ == null) { - enableCertificates_ = null; - } else { - enableCertificates_ = null; - enableCertificatesBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MeshCertificates_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.MeshCertificates getDefaultInstanceForType() { - return com.google.container.v1beta1.MeshCertificates.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.MeshCertificates build() { - com.google.container.v1beta1.MeshCertificates result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.MeshCertificates buildPartial() { - com.google.container.v1beta1.MeshCertificates result = new com.google.container.v1beta1.MeshCertificates(this); - if (enableCertificatesBuilder_ == null) { - result.enableCertificates_ = enableCertificates_; - } else { - result.enableCertificates_ = enableCertificatesBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.MeshCertificates) { - return mergeFrom((com.google.container.v1beta1.MeshCertificates)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.MeshCertificates other) { - if (other == com.google.container.v1beta1.MeshCertificates.getDefaultInstance()) return this; - if (other.hasEnableCertificates()) { - mergeEnableCertificates(other.getEnableCertificates()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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); - - 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 com.google.protobuf.BoolValue enableCertificates_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> enableCertificatesBuilder_; - /** - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - * @return Whether the enableCertificates field is set. - */ - public boolean hasEnableCertificates() { - return enableCertificatesBuilder_ != null || enableCertificates_ != null; - } - /** - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - * @return The enableCertificates. - */ - public com.google.protobuf.BoolValue getEnableCertificates() { - if (enableCertificatesBuilder_ == null) { - return enableCertificates_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableCertificates_; - } else { - return enableCertificatesBuilder_.getMessage(); - } - } - /** - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - public Builder setEnableCertificates(com.google.protobuf.BoolValue value) { - if (enableCertificatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - enableCertificates_ = value; - onChanged(); - } else { - enableCertificatesBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - public Builder setEnableCertificates( - com.google.protobuf.BoolValue.Builder builderForValue) { - if (enableCertificatesBuilder_ == null) { - enableCertificates_ = builderForValue.build(); - onChanged(); - } else { - enableCertificatesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - public Builder mergeEnableCertificates(com.google.protobuf.BoolValue value) { - if (enableCertificatesBuilder_ == null) { - if (enableCertificates_ != null) { - enableCertificates_ = - com.google.protobuf.BoolValue.newBuilder(enableCertificates_).mergeFrom(value).buildPartial(); - } else { - enableCertificates_ = value; - } - onChanged(); - } else { - enableCertificatesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - public Builder clearEnableCertificates() { - if (enableCertificatesBuilder_ == null) { - enableCertificates_ = null; - onChanged(); - } else { - enableCertificates_ = null; - enableCertificatesBuilder_ = null; - } - - return this; - } - /** - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - public com.google.protobuf.BoolValue.Builder getEnableCertificatesBuilder() { - - onChanged(); - return getEnableCertificatesFieldBuilder().getBuilder(); - } - /** - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - public com.google.protobuf.BoolValueOrBuilder getEnableCertificatesOrBuilder() { - if (enableCertificatesBuilder_ != null) { - return enableCertificatesBuilder_.getMessageOrBuilder(); - } else { - return enableCertificates_ == null ? - com.google.protobuf.BoolValue.getDefaultInstance() : enableCertificates_; - } - } - /** - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> - getEnableCertificatesFieldBuilder() { - if (enableCertificatesBuilder_ == null) { - enableCertificatesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( - getEnableCertificates(), - getParentForChildren(), - isClean()); - enableCertificates_ = null; - } - return enableCertificatesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.MeshCertificates) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.MeshCertificates) - private static final com.google.container.v1beta1.MeshCertificates DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.MeshCertificates(); - } - - public static com.google.container.v1beta1.MeshCertificates getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MeshCertificates parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index d4063c2d5cb7..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MeshCertificatesOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface MeshCertificatesOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MeshCertificates) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * enable_certificates controls issuance of workload mTLS certificates.
-   * If set, the GKE Workload Identity Certificates controller and node agent
-   * will be deployed in the cluster, which can then be configured by creating a
-   * WorkloadCertificateConfig Custom Resource.
-   * Requires Workload Identity
-   * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
-   * must be non-empty).
-   * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - * @return Whether the enableCertificates field is set. - */ - boolean hasEnableCertificates(); - /** - *
-   * enable_certificates controls issuance of workload mTLS certificates.
-   * If set, the GKE Workload Identity Certificates controller and node agent
-   * will be deployed in the cluster, which can then be configured by creating a
-   * WorkloadCertificateConfig Custom Resource.
-   * Requires Workload Identity
-   * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
-   * must be non-empty).
-   * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - * @return The enableCertificates. - */ - com.google.protobuf.BoolValue getEnableCertificates(); - /** - *
-   * enable_certificates controls issuance of workload mTLS certificates.
-   * If set, the GKE Workload Identity Certificates controller and node agent
-   * will be deployed in the cluster, which can then be configured by creating a
-   * WorkloadCertificateConfig Custom Resource.
-   * Requires Workload Identity
-   * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
-   * must be non-empty).
-   * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - com.google.protobuf.BoolValueOrBuilder getEnableCertificatesOrBuilder(); -} diff --git a/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 deleted file mode 100644 index e91d0ad1ab7c..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringComponentConfig.java +++ /dev/null @@ -1,951 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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), - 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; - - - 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.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; - 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) { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.MonitoringComponentConfig.Component result = com.google.container.v1beta1.MonitoringComponentConfig.Component.valueOf(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(); - 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); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - enableComponents_ = java.util.Collections.unmodifiableList(enableComponents_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.enableComponents_ = enableComponents_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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 deleted file mode 100644 index bd013f0cdf91..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringComponentConfigOrBuilder.java +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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 deleted file mode 100644 index bedf4ffeaa27..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringConfig.java +++ /dev/null @@ -1,881 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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); - } - - 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 componentConfig_ != null; - } - /** - *
-   * 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 getComponentConfig(); - } - - public static final int MANAGED_PROMETHEUS_CONFIG_FIELD_NUMBER = 2; - private com.google.container.v1beta1.ManagedPrometheusConfig managedPrometheusConfig_; - /** - *
-   * Enable Google Cloud Managed Service for Prometheus
-   * in the cluster.
-   * 
- * - * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; - * @return Whether the managedPrometheusConfig field is set. - */ - @java.lang.Override - public boolean hasManagedPrometheusConfig() { - return managedPrometheusConfig_ != null; - } - /** - *
-   * Enable Google Cloud Managed Service for Prometheus
-   * in the cluster.
-   * 
- * - * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; - * @return The managedPrometheusConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.ManagedPrometheusConfig getManagedPrometheusConfig() { - return managedPrometheusConfig_ == null ? com.google.container.v1beta1.ManagedPrometheusConfig.getDefaultInstance() : managedPrometheusConfig_; - } - /** - *
-   * Enable Google Cloud Managed Service for Prometheus
-   * in the cluster.
-   * 
- * - * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; - */ - @java.lang.Override - public com.google.container.v1beta1.ManagedPrometheusConfigOrBuilder getManagedPrometheusConfigOrBuilder() { - return getManagedPrometheusConfig(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (componentConfig_ != null) { - output.writeMessage(1, getComponentConfig()); - } - if (managedPrometheusConfig_ != null) { - output.writeMessage(2, getManagedPrometheusConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (componentConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getComponentConfig()); - } - if (managedPrometheusConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getManagedPrometheusConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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 (!getUnknownFields().equals(other.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(); - } - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (componentConfigBuilder_ == null) { - componentConfig_ = null; - } else { - componentConfig_ = null; - componentConfigBuilder_ = null; - } - if (managedPrometheusConfigBuilder_ == null) { - managedPrometheusConfig_ = null; - } else { - managedPrometheusConfig_ = null; - managedPrometheusConfigBuilder_ = 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 (componentConfigBuilder_ == null) { - result.componentConfig_ = componentConfig_; - } else { - result.componentConfig_ = componentConfigBuilder_.build(); - } - if (managedPrometheusConfigBuilder_ == null) { - result.managedPrometheusConfig_ = managedPrometheusConfig_; - } else { - result.managedPrometheusConfig_ = managedPrometheusConfigBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.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()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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); - - break; - } // case 10 - case 18: { - input.readMessage( - getManagedPrometheusConfigFieldBuilder().getBuilder(), - extensionRegistry); - - 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 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 componentConfigBuilder_ != null || componentConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - componentConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - componentConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (componentConfig_ != null) { - componentConfig_ = - com.google.container.v1beta1.MonitoringComponentConfig.newBuilder(componentConfig_).mergeFrom(value).buildPartial(); - } else { - componentConfig_ = value; - } - onChanged(); - } else { - componentConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Monitoring components configuration
-     * 
- * - * .google.container.v1beta1.MonitoringComponentConfig component_config = 1; - */ - public Builder clearComponentConfig() { - if (componentConfigBuilder_ == null) { - componentConfig_ = null; - onChanged(); - } else { - componentConfig_ = null; - componentConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Monitoring components configuration
-     * 
- * - * .google.container.v1beta1.MonitoringComponentConfig component_config = 1; - */ - public com.google.container.v1beta1.MonitoringComponentConfig.Builder getComponentConfigBuilder() { - - 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 managedPrometheusConfigBuilder_ != null || managedPrometheusConfig_ != null; - } - /** - *
-     * Enable Google Cloud Managed Service for Prometheus
-     * in the cluster.
-     * 
- * - * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; - * @return The managedPrometheusConfig. - */ - public com.google.container.v1beta1.ManagedPrometheusConfig getManagedPrometheusConfig() { - if (managedPrometheusConfigBuilder_ == null) { - return managedPrometheusConfig_ == null ? com.google.container.v1beta1.ManagedPrometheusConfig.getDefaultInstance() : managedPrometheusConfig_; - } else { - return managedPrometheusConfigBuilder_.getMessage(); - } - } - /** - *
-     * Enable Google Cloud Managed Service for Prometheus
-     * in the cluster.
-     * 
- * - * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; - */ - public Builder setManagedPrometheusConfig(com.google.container.v1beta1.ManagedPrometheusConfig value) { - if (managedPrometheusConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - managedPrometheusConfig_ = value; - onChanged(); - } else { - managedPrometheusConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Enable Google Cloud Managed Service for Prometheus
-     * in the cluster.
-     * 
- * - * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; - */ - public Builder setManagedPrometheusConfig( - com.google.container.v1beta1.ManagedPrometheusConfig.Builder builderForValue) { - if (managedPrometheusConfigBuilder_ == null) { - managedPrometheusConfig_ = builderForValue.build(); - onChanged(); - } else { - managedPrometheusConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Enable Google Cloud Managed Service for Prometheus
-     * in the cluster.
-     * 
- * - * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; - */ - public Builder mergeManagedPrometheusConfig(com.google.container.v1beta1.ManagedPrometheusConfig value) { - if (managedPrometheusConfigBuilder_ == null) { - if (managedPrometheusConfig_ != null) { - managedPrometheusConfig_ = - com.google.container.v1beta1.ManagedPrometheusConfig.newBuilder(managedPrometheusConfig_).mergeFrom(value).buildPartial(); - } else { - managedPrometheusConfig_ = value; - } - onChanged(); - } else { - managedPrometheusConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Enable Google Cloud Managed Service for Prometheus
-     * in the cluster.
-     * 
- * - * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; - */ - public Builder clearManagedPrometheusConfig() { - if (managedPrometheusConfigBuilder_ == null) { - managedPrometheusConfig_ = null; - onChanged(); - } else { - managedPrometheusConfig_ = null; - managedPrometheusConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Enable Google Cloud Managed Service for Prometheus
-     * in the cluster.
-     * 
- * - * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; - */ - public com.google.container.v1beta1.ManagedPrometheusConfig.Builder getManagedPrometheusConfigBuilder() { - - onChanged(); - return getManagedPrometheusConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Enable Google Cloud Managed Service for Prometheus
-     * in the cluster.
-     * 
- * - * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; - */ - public com.google.container.v1beta1.ManagedPrometheusConfigOrBuilder getManagedPrometheusConfigOrBuilder() { - if (managedPrometheusConfigBuilder_ != null) { - return managedPrometheusConfigBuilder_.getMessageOrBuilder(); - } else { - return managedPrometheusConfig_ == null ? - com.google.container.v1beta1.ManagedPrometheusConfig.getDefaultInstance() : managedPrometheusConfig_; - } - } - /** - *
-     * Enable Google Cloud Managed Service for Prometheus
-     * in the cluster.
-     * 
- * - * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ManagedPrometheusConfig, com.google.container.v1beta1.ManagedPrometheusConfig.Builder, com.google.container.v1beta1.ManagedPrometheusConfigOrBuilder> - getManagedPrometheusConfigFieldBuilder() { - if (managedPrometheusConfigBuilder_ == null) { - managedPrometheusConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ManagedPrometheusConfig, com.google.container.v1beta1.ManagedPrometheusConfig.Builder, com.google.container.v1beta1.ManagedPrometheusConfigOrBuilder>( - getManagedPrometheusConfig(), - getParentForChildren(), - isClean()); - managedPrometheusConfig_ = null; - } - return managedPrometheusConfigBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index e574a19af194..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringConfigOrBuilder.java +++ /dev/null @@ -1,66 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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(); -} 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 deleted file mode 100644 index 3eb834d6ff17..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfig.java +++ /dev/null @@ -1,2194 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * NetworkConfig reports the relative names of network & subnetwork.
- * 
- * - * Protobuf type {@code google.container.v1beta1.NetworkConfig} - */ -public final class NetworkConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.NetworkConfig) - NetworkConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use NetworkConfig.newBuilder() to construct. - private NetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NetworkConfig() { - network_ = ""; - subnetwork_ = ""; - datapathProvider_ = 0; - privateIpv6GoogleAccess_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NetworkConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NetworkConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NetworkConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NetworkConfig.class, com.google.container.v1beta1.NetworkConfig.Builder.class); - } - - public static final int NETWORK_FIELD_NUMBER = 1; - private volatile java.lang.Object network_; - /** - *
-   * Output only. The relative name of the Google Compute Engine
-   * [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-   * to which the cluster is connected. Example:
-   * projects/my-project/global/networks/my-network
-   * 
- * - * string network = 1; - * @return The network. - */ - @java.lang.Override - public java.lang.String getNetwork() { - java.lang.Object ref = network_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - network_ = s; - return s; - } - } - /** - *
-   * Output only. The relative name of the Google Compute Engine
-   * [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-   * to which the cluster is connected. Example:
-   * projects/my-project/global/networks/my-network
-   * 
- * - * string network = 1; - * @return The bytes for network. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNetworkBytes() { - java.lang.Object ref = network_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - network_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SUBNETWORK_FIELD_NUMBER = 2; - private volatile java.lang.Object subnetwork_; - /** - *
-   * Output only. The relative name of the Google Compute Engine
-   * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
-   * cluster is connected. Example:
-   * projects/my-project/regions/us-central1/subnetworks/my-subnet
-   * 
- * - * string subnetwork = 2; - * @return The subnetwork. - */ - @java.lang.Override - public java.lang.String getSubnetwork() { - java.lang.Object ref = subnetwork_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subnetwork_ = s; - return s; - } - } - /** - *
-   * Output only. The relative name of the Google Compute Engine
-   * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
-   * cluster is connected. Example:
-   * projects/my-project/regions/us-central1/subnetworks/my-subnet
-   * 
- * - * string subnetwork = 2; - * @return The bytes for subnetwork. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSubnetworkBytes() { - java.lang.Object ref = subnetwork_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - subnetwork_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ENABLE_INTRA_NODE_VISIBILITY_FIELD_NUMBER = 5; - private boolean enableIntraNodeVisibility_; - /** - *
-   * Whether Intra-node visibility is enabled for this cluster.
-   * This makes same node pod to pod traffic visible for VPC network.
-   * 
- * - * bool enable_intra_node_visibility = 5; - * @return The enableIntraNodeVisibility. - */ - @java.lang.Override - public boolean getEnableIntraNodeVisibility() { - return enableIntraNodeVisibility_; - } - - public static final int DEFAULT_SNAT_STATUS_FIELD_NUMBER = 7; - private com.google.container.v1beta1.DefaultSnatStatus defaultSnatStatus_; - /** - *
-   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-   * will be disabled when default_snat_status is disabled. When disabled is set
-   * to false, default IP masquerade rules will be applied to the nodes to
-   * prevent sNAT on cluster internal traffic.
-   * 
- * - * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; - * @return Whether the defaultSnatStatus field is set. - */ - @java.lang.Override - public boolean hasDefaultSnatStatus() { - return defaultSnatStatus_ != null; - } - /** - *
-   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-   * will be disabled when default_snat_status is disabled. When disabled is set
-   * to false, default IP masquerade rules will be applied to the nodes to
-   * prevent sNAT on cluster internal traffic.
-   * 
- * - * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; - * @return The defaultSnatStatus. - */ - @java.lang.Override - public com.google.container.v1beta1.DefaultSnatStatus getDefaultSnatStatus() { - return defaultSnatStatus_ == null ? com.google.container.v1beta1.DefaultSnatStatus.getDefaultInstance() : defaultSnatStatus_; - } - /** - *
-   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-   * will be disabled when default_snat_status is disabled. When disabled is set
-   * to false, default IP masquerade rules will be applied to the nodes to
-   * prevent sNAT on cluster internal traffic.
-   * 
- * - * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; - */ - @java.lang.Override - public com.google.container.v1beta1.DefaultSnatStatusOrBuilder getDefaultSnatStatusOrBuilder() { - return getDefaultSnatStatus(); - } - - public static final int ENABLE_L4ILB_SUBSETTING_FIELD_NUMBER = 10; - private boolean enableL4IlbSubsetting_; - /** - *
-   * Whether L4ILB Subsetting is enabled for this cluster.
-   * 
- * - * bool enable_l4ilb_subsetting = 10; - * @return The enableL4ilbSubsetting. - */ - @java.lang.Override - public boolean getEnableL4IlbSubsetting() { - return enableL4IlbSubsetting_; - } - - public static final int DATAPATH_PROVIDER_FIELD_NUMBER = 11; - private int datapathProvider_; - /** - *
-   * The desired datapath provider for this cluster. By default, uses the
-   * IPTables-based kube-proxy implementation.
-   * 
- * - * .google.container.v1beta1.DatapathProvider datapath_provider = 11; - * @return The enum numeric value on the wire for datapathProvider. - */ - @java.lang.Override public int getDatapathProviderValue() { - return datapathProvider_; - } - /** - *
-   * The desired datapath provider for this cluster. By default, uses the
-   * IPTables-based kube-proxy implementation.
-   * 
- * - * .google.container.v1beta1.DatapathProvider datapath_provider = 11; - * @return The datapathProvider. - */ - @java.lang.Override public com.google.container.v1beta1.DatapathProvider getDatapathProvider() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.DatapathProvider result = com.google.container.v1beta1.DatapathProvider.valueOf(datapathProvider_); - return result == null ? com.google.container.v1beta1.DatapathProvider.UNRECOGNIZED : result; - } - - public static final int PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER = 12; - private int privateIpv6GoogleAccess_; - /** - *
-   * The desired state of IPv6 connectivity to Google Services.
-   * By default, no private IPv6 access to or from Google Services (all access
-   * will be via IPv4)
-   * 
- * - * .google.container.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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.PrivateIPv6GoogleAccess result = com.google.container.v1beta1.PrivateIPv6GoogleAccess.valueOf(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 dnsConfig_ != null; - } - /** - *
-   * 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 getDnsConfig(); - } - - 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 serviceExternalIpsConfig_ != null; - } - /** - *
-   * 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 getServiceExternalIpsConfig(); - } - - 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 gatewayApiConfig_ != null; - } - /** - *
-   * 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 getGatewayApiConfig(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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 (defaultSnatStatus_ != null) { - 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 (dnsConfig_ != null) { - output.writeMessage(13, getDnsConfig()); - } - if (serviceExternalIpsConfig_ != null) { - output.writeMessage(15, getServiceExternalIpsConfig()); - } - if (gatewayApiConfig_ != null) { - output.writeMessage(16, getGatewayApiConfig()); - } - getUnknownFields().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 (defaultSnatStatus_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getDefaultSnatStatus()); - } - if (enableL4IlbSubsetting_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(10, enableL4IlbSubsetting_); - } - if (datapathProvider_ != com.google.container.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 (dnsConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getDnsConfig()); - } - if (serviceExternalIpsConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, getServiceExternalIpsConfig()); - } - if (gatewayApiConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getGatewayApiConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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 = (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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - network_ = ""; - - subnetwork_ = ""; - - enableIntraNodeVisibility_ = false; - - if (defaultSnatStatusBuilder_ == null) { - defaultSnatStatus_ = null; - } else { - defaultSnatStatus_ = null; - defaultSnatStatusBuilder_ = null; - } - enableL4IlbSubsetting_ = false; - - datapathProvider_ = 0; - - privateIpv6GoogleAccess_ = 0; - - if (dnsConfigBuilder_ == null) { - dnsConfig_ = null; - } else { - dnsConfig_ = null; - dnsConfigBuilder_ = null; - } - if (serviceExternalIpsConfigBuilder_ == null) { - serviceExternalIpsConfig_ = null; - } else { - serviceExternalIpsConfig_ = null; - serviceExternalIpsConfigBuilder_ = null; - } - if (gatewayApiConfigBuilder_ == null) { - gatewayApiConfig_ = null; - } else { - gatewayApiConfig_ = null; - gatewayApiConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NetworkConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.NetworkConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.NetworkConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.NetworkConfig build() { - com.google.container.v1beta1.NetworkConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.NetworkConfig buildPartial() { - com.google.container.v1beta1.NetworkConfig result = new com.google.container.v1beta1.NetworkConfig(this); - result.network_ = network_; - result.subnetwork_ = subnetwork_; - result.enableIntraNodeVisibility_ = enableIntraNodeVisibility_; - if (defaultSnatStatusBuilder_ == null) { - result.defaultSnatStatus_ = defaultSnatStatus_; - } else { - result.defaultSnatStatus_ = defaultSnatStatusBuilder_.build(); - } - result.enableL4IlbSubsetting_ = enableL4IlbSubsetting_; - result.datapathProvider_ = datapathProvider_; - result.privateIpv6GoogleAccess_ = privateIpv6GoogleAccess_; - if (dnsConfigBuilder_ == null) { - result.dnsConfig_ = dnsConfig_; - } else { - result.dnsConfig_ = dnsConfigBuilder_.build(); - } - if (serviceExternalIpsConfigBuilder_ == null) { - result.serviceExternalIpsConfig_ = serviceExternalIpsConfig_; - } else { - result.serviceExternalIpsConfig_ = serviceExternalIpsConfigBuilder_.build(); - } - if (gatewayApiConfigBuilder_ == null) { - result.gatewayApiConfig_ = gatewayApiConfig_; - } else { - result.gatewayApiConfig_ = gatewayApiConfigBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.NetworkConfig) { - return mergeFrom((com.google.container.v1beta1.NetworkConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.NetworkConfig other) { - if (other == com.google.container.v1beta1.NetworkConfig.getDefaultInstance()) return this; - if (!other.getNetwork().isEmpty()) { - network_ = other.network_; - onChanged(); - } - if (!other.getSubnetwork().isEmpty()) { - subnetwork_ = other.subnetwork_; - onChanged(); - } - if (other.getEnableIntraNodeVisibility() != false) { - setEnableIntraNodeVisibility(other.getEnableIntraNodeVisibility()); - } - if (other.hasDefaultSnatStatus()) { - mergeDefaultSnatStatus(other.getDefaultSnatStatus()); - } - if (other.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()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - subnetwork_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 40: { - enableIntraNodeVisibility_ = input.readBool(); - - break; - } // case 40 - case 58: { - input.readMessage( - getDefaultSnatStatusFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 58 - case 80: { - enableL4IlbSubsetting_ = input.readBool(); - - break; - } // case 80 - case 88: { - datapathProvider_ = input.readEnum(); - - break; - } // case 88 - case 96: { - privateIpv6GoogleAccess_ = input.readEnum(); - - break; - } // case 96 - case 106: { - input.readMessage( - getDnsConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 106 - case 122: { - input.readMessage( - getServiceExternalIpsConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 122 - case 130: { - input.readMessage( - getGatewayApiConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 130 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object network_ = ""; - /** - *
-     * Output only. The relative name of the Google Compute Engine
-     * [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-     * to which the cluster is connected. Example:
-     * projects/my-project/global/networks/my-network
-     * 
- * - * string network = 1; - * @return The network. - */ - public java.lang.String getNetwork() { - java.lang.Object ref = network_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - network_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. The relative name of the Google Compute Engine
-     * [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-     * to which the cluster is connected. Example:
-     * projects/my-project/global/networks/my-network
-     * 
- * - * string network = 1; - * @return The bytes for network. - */ - public com.google.protobuf.ByteString - getNetworkBytes() { - java.lang.Object ref = network_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - network_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. The relative name of the Google Compute Engine
-     * [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-     * to which the cluster is connected. Example:
-     * projects/my-project/global/networks/my-network
-     * 
- * - * string network = 1; - * @param value The network to set. - * @return This builder for chaining. - */ - public Builder setNetwork( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - network_ = value; - onChanged(); - return this; - } - /** - *
-     * Output only. The relative name of the Google Compute Engine
-     * [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-     * to which the cluster is connected. Example:
-     * projects/my-project/global/networks/my-network
-     * 
- * - * string network = 1; - * @return This builder for chaining. - */ - public Builder clearNetwork() { - - network_ = getDefaultInstance().getNetwork(); - onChanged(); - return this; - } - /** - *
-     * Output only. The relative name of the Google Compute Engine
-     * [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-     * to which the cluster is connected. Example:
-     * projects/my-project/global/networks/my-network
-     * 
- * - * string network = 1; - * @param value The bytes for network to set. - * @return This builder for chaining. - */ - public Builder setNetworkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - network_ = value; - onChanged(); - return this; - } - - private java.lang.Object subnetwork_ = ""; - /** - *
-     * Output only. The relative name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
-     * cluster is connected. Example:
-     * projects/my-project/regions/us-central1/subnetworks/my-subnet
-     * 
- * - * string subnetwork = 2; - * @return The subnetwork. - */ - public java.lang.String getSubnetwork() { - java.lang.Object ref = subnetwork_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subnetwork_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. The relative name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
-     * cluster is connected. Example:
-     * projects/my-project/regions/us-central1/subnetworks/my-subnet
-     * 
- * - * string subnetwork = 2; - * @return The bytes for subnetwork. - */ - public com.google.protobuf.ByteString - getSubnetworkBytes() { - java.lang.Object ref = subnetwork_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - subnetwork_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. The relative name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
-     * cluster is connected. Example:
-     * projects/my-project/regions/us-central1/subnetworks/my-subnet
-     * 
- * - * string subnetwork = 2; - * @param value The subnetwork to set. - * @return This builder for chaining. - */ - public Builder setSubnetwork( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - subnetwork_ = value; - onChanged(); - return this; - } - /** - *
-     * Output only. The relative name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
-     * cluster is connected. Example:
-     * projects/my-project/regions/us-central1/subnetworks/my-subnet
-     * 
- * - * string subnetwork = 2; - * @return This builder for chaining. - */ - public Builder clearSubnetwork() { - - subnetwork_ = getDefaultInstance().getSubnetwork(); - onChanged(); - return this; - } - /** - *
-     * Output only. The relative name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
-     * cluster is connected. Example:
-     * projects/my-project/regions/us-central1/subnetworks/my-subnet
-     * 
- * - * string subnetwork = 2; - * @param value The bytes for subnetwork to set. - * @return This builder for chaining. - */ - public Builder setSubnetworkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - subnetwork_ = value; - onChanged(); - return this; - } - - private boolean enableIntraNodeVisibility_ ; - /** - *
-     * Whether Intra-node visibility is enabled for this cluster.
-     * This makes same node pod to pod traffic visible for VPC network.
-     * 
- * - * bool enable_intra_node_visibility = 5; - * @return The enableIntraNodeVisibility. - */ - @java.lang.Override - public boolean getEnableIntraNodeVisibility() { - return enableIntraNodeVisibility_; - } - /** - *
-     * Whether Intra-node visibility is enabled for this cluster.
-     * This makes same node pod to pod traffic visible for VPC network.
-     * 
- * - * bool enable_intra_node_visibility = 5; - * @param value The enableIntraNodeVisibility to set. - * @return This builder for chaining. - */ - public Builder setEnableIntraNodeVisibility(boolean value) { - - enableIntraNodeVisibility_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether Intra-node visibility is enabled for this cluster.
-     * This makes same node pod to pod traffic visible for VPC network.
-     * 
- * - * bool enable_intra_node_visibility = 5; - * @return This builder for chaining. - */ - public Builder clearEnableIntraNodeVisibility() { - - enableIntraNodeVisibility_ = false; - onChanged(); - return this; - } - - private com.google.container.v1beta1.DefaultSnatStatus defaultSnatStatus_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.DefaultSnatStatus, com.google.container.v1beta1.DefaultSnatStatus.Builder, com.google.container.v1beta1.DefaultSnatStatusOrBuilder> defaultSnatStatusBuilder_; - /** - *
-     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-     * will be disabled when default_snat_status is disabled. When disabled is set
-     * to false, default IP masquerade rules will be applied to the nodes to
-     * prevent sNAT on cluster internal traffic.
-     * 
- * - * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; - * @return Whether the defaultSnatStatus field is set. - */ - public boolean hasDefaultSnatStatus() { - return defaultSnatStatusBuilder_ != null || defaultSnatStatus_ != null; - } - /** - *
-     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-     * will be disabled when default_snat_status is disabled. When disabled is set
-     * to false, default IP masquerade rules will be applied to the nodes to
-     * prevent sNAT on cluster internal traffic.
-     * 
- * - * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; - * @return The defaultSnatStatus. - */ - public com.google.container.v1beta1.DefaultSnatStatus getDefaultSnatStatus() { - if (defaultSnatStatusBuilder_ == null) { - return defaultSnatStatus_ == null ? com.google.container.v1beta1.DefaultSnatStatus.getDefaultInstance() : defaultSnatStatus_; - } else { - return defaultSnatStatusBuilder_.getMessage(); - } - } - /** - *
-     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-     * will be disabled when default_snat_status is disabled. When disabled is set
-     * to false, default IP masquerade rules will be applied to the nodes to
-     * prevent sNAT on cluster internal traffic.
-     * 
- * - * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; - */ - public Builder setDefaultSnatStatus(com.google.container.v1beta1.DefaultSnatStatus value) { - if (defaultSnatStatusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - defaultSnatStatus_ = value; - onChanged(); - } else { - defaultSnatStatusBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-     * will be disabled when default_snat_status is disabled. When disabled is set
-     * to false, default IP masquerade rules will be applied to the nodes to
-     * prevent sNAT on cluster internal traffic.
-     * 
- * - * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; - */ - public Builder setDefaultSnatStatus( - com.google.container.v1beta1.DefaultSnatStatus.Builder builderForValue) { - if (defaultSnatStatusBuilder_ == null) { - defaultSnatStatus_ = builderForValue.build(); - onChanged(); - } else { - defaultSnatStatusBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-     * will be disabled when default_snat_status is disabled. When disabled is set
-     * to false, default IP masquerade rules will be applied to the nodes to
-     * prevent sNAT on cluster internal traffic.
-     * 
- * - * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; - */ - public Builder mergeDefaultSnatStatus(com.google.container.v1beta1.DefaultSnatStatus value) { - if (defaultSnatStatusBuilder_ == null) { - if (defaultSnatStatus_ != null) { - defaultSnatStatus_ = - com.google.container.v1beta1.DefaultSnatStatus.newBuilder(defaultSnatStatus_).mergeFrom(value).buildPartial(); - } else { - defaultSnatStatus_ = value; - } - onChanged(); - } else { - defaultSnatStatusBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-     * will be disabled when default_snat_status is disabled. When disabled is set
-     * to false, default IP masquerade rules will be applied to the nodes to
-     * prevent sNAT on cluster internal traffic.
-     * 
- * - * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; - */ - public Builder clearDefaultSnatStatus() { - if (defaultSnatStatusBuilder_ == null) { - defaultSnatStatus_ = null; - onChanged(); - } else { - defaultSnatStatus_ = null; - defaultSnatStatusBuilder_ = null; - } - - return this; - } - /** - *
-     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-     * will be disabled when default_snat_status is disabled. When disabled is set
-     * to false, default IP masquerade rules will be applied to the nodes to
-     * prevent sNAT on cluster internal traffic.
-     * 
- * - * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; - */ - public com.google.container.v1beta1.DefaultSnatStatus.Builder getDefaultSnatStatusBuilder() { - - onChanged(); - return getDefaultSnatStatusFieldBuilder().getBuilder(); - } - /** - *
-     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-     * will be disabled when default_snat_status is disabled. When disabled is set
-     * to false, default IP masquerade rules will be applied to the nodes to
-     * prevent sNAT on cluster internal traffic.
-     * 
- * - * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; - */ - public com.google.container.v1beta1.DefaultSnatStatusOrBuilder getDefaultSnatStatusOrBuilder() { - if (defaultSnatStatusBuilder_ != null) { - return defaultSnatStatusBuilder_.getMessageOrBuilder(); - } else { - return defaultSnatStatus_ == null ? - com.google.container.v1beta1.DefaultSnatStatus.getDefaultInstance() : defaultSnatStatus_; - } - } - /** - *
-     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-     * will be disabled when default_snat_status is disabled. When disabled is set
-     * to false, default IP masquerade rules will be applied to the nodes to
-     * prevent sNAT on cluster internal traffic.
-     * 
- * - * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.DefaultSnatStatus, com.google.container.v1beta1.DefaultSnatStatus.Builder, com.google.container.v1beta1.DefaultSnatStatusOrBuilder> - getDefaultSnatStatusFieldBuilder() { - if (defaultSnatStatusBuilder_ == null) { - defaultSnatStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.DefaultSnatStatus, com.google.container.v1beta1.DefaultSnatStatus.Builder, com.google.container.v1beta1.DefaultSnatStatusOrBuilder>( - getDefaultSnatStatus(), - getParentForChildren(), - isClean()); - defaultSnatStatus_ = null; - } - return defaultSnatStatusBuilder_; - } - - private boolean enableL4IlbSubsetting_ ; - /** - *
-     * Whether L4ILB Subsetting is enabled for this cluster.
-     * 
- * - * bool enable_l4ilb_subsetting = 10; - * @return The enableL4ilbSubsetting. - */ - @java.lang.Override - public boolean getEnableL4IlbSubsetting() { - return enableL4IlbSubsetting_; - } - /** - *
-     * Whether L4ILB Subsetting is enabled for this cluster.
-     * 
- * - * bool enable_l4ilb_subsetting = 10; - * @param value The enableL4ilbSubsetting to set. - * @return This builder for chaining. - */ - public Builder setEnableL4IlbSubsetting(boolean value) { - - enableL4IlbSubsetting_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether L4ILB Subsetting is enabled for this cluster.
-     * 
- * - * bool enable_l4ilb_subsetting = 10; - * @return This builder for chaining. - */ - public Builder clearEnableL4IlbSubsetting() { - - enableL4IlbSubsetting_ = false; - onChanged(); - return this; - } - - private int datapathProvider_ = 0; - /** - *
-     * The desired datapath provider for this cluster. By default, uses the
-     * IPTables-based kube-proxy implementation.
-     * 
- * - * .google.container.v1beta1.DatapathProvider datapath_provider = 11; - * @return The enum numeric value on the wire for datapathProvider. - */ - @java.lang.Override public int getDatapathProviderValue() { - return datapathProvider_; - } - /** - *
-     * The desired datapath provider for this cluster. By default, uses the
-     * IPTables-based kube-proxy implementation.
-     * 
- * - * .google.container.v1beta1.DatapathProvider datapath_provider = 11; - * @param value The enum numeric value on the wire for datapathProvider to set. - * @return This builder for chaining. - */ - public Builder setDatapathProviderValue(int value) { - - datapathProvider_ = value; - onChanged(); - return this; - } - /** - *
-     * The desired datapath provider for this cluster. By default, uses the
-     * IPTables-based kube-proxy implementation.
-     * 
- * - * .google.container.v1beta1.DatapathProvider datapath_provider = 11; - * @return The datapathProvider. - */ - @java.lang.Override - public com.google.container.v1beta1.DatapathProvider getDatapathProvider() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.DatapathProvider result = com.google.container.v1beta1.DatapathProvider.valueOf(datapathProvider_); - return result == null ? com.google.container.v1beta1.DatapathProvider.UNRECOGNIZED : result; - } - /** - *
-     * The desired datapath provider for this cluster. By default, uses the
-     * IPTables-based kube-proxy implementation.
-     * 
- * - * .google.container.v1beta1.DatapathProvider datapath_provider = 11; - * @param value The datapathProvider to set. - * @return This builder for chaining. - */ - public Builder setDatapathProvider(com.google.container.v1beta1.DatapathProvider value) { - if (value == null) { - throw new NullPointerException(); - } - - datapathProvider_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * The desired datapath provider for this cluster. By default, uses the
-     * IPTables-based kube-proxy implementation.
-     * 
- * - * .google.container.v1beta1.DatapathProvider datapath_provider = 11; - * @return This builder for chaining. - */ - public Builder clearDatapathProvider() { - - datapathProvider_ = 0; - onChanged(); - return this; - } - - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.PrivateIPv6GoogleAccess result = com.google.container.v1beta1.PrivateIPv6GoogleAccess.valueOf(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(); - } - - 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() { - - 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 dnsConfigBuilder_ != null || dnsConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - dnsConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - dnsConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (dnsConfig_ != null) { - dnsConfig_ = - com.google.container.v1beta1.DNSConfig.newBuilder(dnsConfig_).mergeFrom(value).buildPartial(); - } else { - dnsConfig_ = value; - } - onChanged(); - } else { - dnsConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1beta1.DNSConfig dns_config = 13; - */ - public Builder clearDnsConfig() { - if (dnsConfigBuilder_ == null) { - dnsConfig_ = null; - onChanged(); - } else { - dnsConfig_ = null; - dnsConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1beta1.DNSConfig dns_config = 13; - */ - public com.google.container.v1beta1.DNSConfig.Builder getDnsConfigBuilder() { - - 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 serviceExternalIpsConfigBuilder_ != null || serviceExternalIpsConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - serviceExternalIpsConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - serviceExternalIpsConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (serviceExternalIpsConfig_ != null) { - serviceExternalIpsConfig_ = - com.google.container.v1beta1.ServiceExternalIPsConfig.newBuilder(serviceExternalIpsConfig_).mergeFrom(value).buildPartial(); - } else { - serviceExternalIpsConfig_ = value; - } - onChanged(); - } else { - serviceExternalIpsConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * ServiceExternalIPsConfig specifies if services with externalIPs field are
-     * blocked or not.
-     * 
- * - * .google.container.v1beta1.ServiceExternalIPsConfig service_external_ips_config = 15; - */ - public Builder clearServiceExternalIpsConfig() { - if (serviceExternalIpsConfigBuilder_ == null) { - serviceExternalIpsConfig_ = null; - onChanged(); - } else { - serviceExternalIpsConfig_ = null; - serviceExternalIpsConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * ServiceExternalIPsConfig specifies if services with externalIPs field are
-     * blocked or not.
-     * 
- * - * .google.container.v1beta1.ServiceExternalIPsConfig service_external_ips_config = 15; - */ - public com.google.container.v1beta1.ServiceExternalIPsConfig.Builder getServiceExternalIpsConfigBuilder() { - - 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 gatewayApiConfigBuilder_ != null || gatewayApiConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - gatewayApiConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - gatewayApiConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (gatewayApiConfig_ != null) { - gatewayApiConfig_ = - com.google.container.v1beta1.GatewayAPIConfig.newBuilder(gatewayApiConfig_).mergeFrom(value).buildPartial(); - } else { - gatewayApiConfig_ = value; - } - onChanged(); - } else { - gatewayApiConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * GatewayAPIConfig contains the desired config of Gateway API on this
-     * cluster.
-     * 
- * - * .google.container.v1beta1.GatewayAPIConfig gateway_api_config = 16; - */ - public Builder clearGatewayApiConfig() { - if (gatewayApiConfigBuilder_ == null) { - gatewayApiConfig_ = null; - onChanged(); - } else { - gatewayApiConfig_ = null; - gatewayApiConfigBuilder_ = null; - } - - 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() { - - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 4e2bd833920d..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfigOrBuilder.java +++ /dev/null @@ -1,249 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface NetworkConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NetworkConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. The relative name of the Google Compute Engine
-   * [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-   * to which the cluster is connected. Example:
-   * projects/my-project/global/networks/my-network
-   * 
- * - * string network = 1; - * @return The network. - */ - java.lang.String getNetwork(); - /** - *
-   * Output only. The relative name of the Google Compute Engine
-   * [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-   * to which the cluster is connected. Example:
-   * projects/my-project/global/networks/my-network
-   * 
- * - * string network = 1; - * @return The bytes for network. - */ - com.google.protobuf.ByteString - getNetworkBytes(); - - /** - *
-   * Output only. The relative name of the Google Compute Engine
-   * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
-   * cluster is connected. Example:
-   * projects/my-project/regions/us-central1/subnetworks/my-subnet
-   * 
- * - * string subnetwork = 2; - * @return The subnetwork. - */ - java.lang.String getSubnetwork(); - /** - *
-   * Output only. The relative name of the Google Compute Engine
-   * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
-   * cluster is connected. Example:
-   * projects/my-project/regions/us-central1/subnetworks/my-subnet
-   * 
- * - * string subnetwork = 2; - * @return The bytes for subnetwork. - */ - com.google.protobuf.ByteString - getSubnetworkBytes(); - - /** - *
-   * Whether Intra-node visibility is enabled for this cluster.
-   * This makes same node pod to pod traffic visible for VPC network.
-   * 
- * - * bool enable_intra_node_visibility = 5; - * @return The enableIntraNodeVisibility. - */ - boolean getEnableIntraNodeVisibility(); - - /** - *
-   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-   * will be disabled when default_snat_status is disabled. When disabled is set
-   * to false, default IP masquerade rules will be applied to the nodes to
-   * prevent sNAT on cluster internal traffic.
-   * 
- * - * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; - * @return Whether the defaultSnatStatus field is set. - */ - boolean hasDefaultSnatStatus(); - /** - *
-   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-   * will be disabled when default_snat_status is disabled. When disabled is set
-   * to false, default IP masquerade rules will be applied to the nodes to
-   * prevent sNAT on cluster internal traffic.
-   * 
- * - * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; - * @return The defaultSnatStatus. - */ - com.google.container.v1beta1.DefaultSnatStatus getDefaultSnatStatus(); - /** - *
-   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-   * will be disabled when default_snat_status is disabled. When disabled is set
-   * to false, default IP masquerade rules will be applied to the nodes to
-   * prevent sNAT on cluster internal traffic.
-   * 
- * - * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; - */ - com.google.container.v1beta1.DefaultSnatStatusOrBuilder getDefaultSnatStatusOrBuilder(); - - /** - *
-   * 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(); -} 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 deleted file mode 100644 index b74707279f86..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicy.java +++ /dev/null @@ -1,743 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Configuration options for the NetworkPolicy feature.
- * https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
- * 
- * - * Protobuf type {@code google.container.v1beta1.NetworkPolicy} - */ -public final class NetworkPolicy extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.NetworkPolicy) - NetworkPolicyOrBuilder { -private static final long serialVersionUID = 0L; - // Use NetworkPolicy.newBuilder() to construct. - private NetworkPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NetworkPolicy() { - provider_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NetworkPolicy(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * The selected network policy provider.
-   * 
- * - * .google.container.v1beta1.NetworkPolicy.Provider provider = 1; - * @return The enum numeric value on the wire for provider. - */ - @java.lang.Override public int getProviderValue() { - return provider_; - } - /** - *
-   * The selected network policy provider.
-   * 
- * - * .google.container.v1beta1.NetworkPolicy.Provider provider = 1; - * @return The provider. - */ - @java.lang.Override public com.google.container.v1beta1.NetworkPolicy.Provider getProvider() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.NetworkPolicy.Provider result = com.google.container.v1beta1.NetworkPolicy.Provider.valueOf(provider_); - return result == null ? com.google.container.v1beta1.NetworkPolicy.Provider.UNRECOGNIZED : result; - } - - public static final int ENABLED_FIELD_NUMBER = 2; - private boolean enabled_; - /** - *
-   * Whether network policy is enabled on the cluster.
-   * 
- * - * bool enabled = 2; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (provider_ != com.google.container.v1beta1.NetworkPolicy.Provider.PROVIDER_UNSPECIFIED.getNumber()) { - output.writeEnum(1, provider_); - } - if (enabled_ != false) { - output.writeBool(2, enabled_); - } - 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(); - provider_ = 0; - - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NetworkPolicy_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.NetworkPolicy getDefaultInstanceForType() { - return com.google.container.v1beta1.NetworkPolicy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.NetworkPolicy build() { - com.google.container.v1beta1.NetworkPolicy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.NetworkPolicy buildPartial() { - com.google.container.v1beta1.NetworkPolicy result = new com.google.container.v1beta1.NetworkPolicy(this); - result.provider_ = provider_; - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.NetworkPolicy) { - return mergeFrom((com.google.container.v1beta1.NetworkPolicy)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.NetworkPolicy other) { - if (other == com.google.container.v1beta1.NetworkPolicy.getDefaultInstance()) return this; - if (other.provider_ != 0) { - setProviderValue(other.getProviderValue()); - } - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 8 - case 16: { - enabled_ = input.readBool(); - - 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 provider_ = 0; - /** - *
-     * The selected network policy provider.
-     * 
- * - * .google.container.v1beta1.NetworkPolicy.Provider provider = 1; - * @return The enum numeric value on the wire for provider. - */ - @java.lang.Override public int getProviderValue() { - return provider_; - } - /** - *
-     * The selected network policy provider.
-     * 
- * - * .google.container.v1beta1.NetworkPolicy.Provider provider = 1; - * @param value The enum numeric value on the wire for provider to set. - * @return This builder for chaining. - */ - public Builder setProviderValue(int value) { - - provider_ = value; - onChanged(); - return this; - } - /** - *
-     * The selected network policy provider.
-     * 
- * - * .google.container.v1beta1.NetworkPolicy.Provider provider = 1; - * @return The provider. - */ - @java.lang.Override - public com.google.container.v1beta1.NetworkPolicy.Provider getProvider() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.NetworkPolicy.Provider result = com.google.container.v1beta1.NetworkPolicy.Provider.valueOf(provider_); - return result == null ? com.google.container.v1beta1.NetworkPolicy.Provider.UNRECOGNIZED : result; - } - /** - *
-     * The selected network policy provider.
-     * 
- * - * .google.container.v1beta1.NetworkPolicy.Provider provider = 1; - * @param value The provider to set. - * @return This builder for chaining. - */ - public Builder setProvider(com.google.container.v1beta1.NetworkPolicy.Provider value) { - if (value == null) { - throw new NullPointerException(); - } - - provider_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * The selected network policy provider.
-     * 
- * - * .google.container.v1beta1.NetworkPolicy.Provider provider = 1; - * @return This builder for chaining. - */ - public Builder clearProvider() { - - provider_ = 0; - onChanged(); - return this; - } - - private boolean enabled_ ; - /** - *
-     * Whether network policy is enabled on the cluster.
-     * 
- * - * bool enabled = 2; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Whether network policy is enabled on the cluster.
-     * 
- * - * bool enabled = 2; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether network policy is enabled on the cluster.
-     * 
- * - * bool enabled = 2; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.NetworkPolicy) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.NetworkPolicy) - private static final com.google.container.v1beta1.NetworkPolicy DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.NetworkPolicy(); - } - - public static com.google.container.v1beta1.NetworkPolicy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetworkPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 28b0920472ee..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicyConfig.java +++ /dev/null @@ -1,494 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Configuration for NetworkPolicy. This only tracks whether the addon
- * is enabled or not on the Master, it does not track whether network policy
- * is enabled for the nodes.
- * 
- * - * Protobuf type {@code google.container.v1beta1.NetworkPolicyConfig} - */ -public final class NetworkPolicyConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.NetworkPolicyConfig) - NetworkPolicyConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use NetworkPolicyConfig.newBuilder() to construct. - private NetworkPolicyConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NetworkPolicyConfig() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NetworkPolicyConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NetworkPolicyConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NetworkPolicyConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NetworkPolicyConfig.class, com.google.container.v1beta1.NetworkPolicyConfig.Builder.class); - } - - public static final int DISABLED_FIELD_NUMBER = 1; - private boolean disabled_; - /** - *
-   * Whether NetworkPolicy is enabled for this cluster.
-   * 
- * - * bool disabled = 1; - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (disabled_ != false) { - output.writeBool(1, disabled_); - } - 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(); - disabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NetworkPolicyConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.NetworkPolicyConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.NetworkPolicyConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.NetworkPolicyConfig build() { - com.google.container.v1beta1.NetworkPolicyConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.NetworkPolicyConfig buildPartial() { - com.google.container.v1beta1.NetworkPolicyConfig result = new com.google.container.v1beta1.NetworkPolicyConfig(this); - result.disabled_ = disabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.NetworkPolicyConfig) { - return mergeFrom((com.google.container.v1beta1.NetworkPolicyConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.NetworkPolicyConfig other) { - if (other == com.google.container.v1beta1.NetworkPolicyConfig.getDefaultInstance()) return this; - if (other.getDisabled() != false) { - setDisabled(other.getDisabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 boolean disabled_ ; - /** - *
-     * Whether NetworkPolicy is enabled for this cluster.
-     * 
- * - * bool disabled = 1; - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - /** - *
-     * Whether NetworkPolicy is enabled for this cluster.
-     * 
- * - * bool disabled = 1; - * @param value The disabled to set. - * @return This builder for chaining. - */ - public Builder setDisabled(boolean value) { - - disabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether NetworkPolicy is enabled for this cluster.
-     * 
- * - * bool disabled = 1; - * @return This builder for chaining. - */ - public Builder clearDisabled() { - - disabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.NetworkPolicyConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.NetworkPolicyConfig) - private static final com.google.container.v1beta1.NetworkPolicyConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.NetworkPolicyConfig(); - } - - public static com.google.container.v1beta1.NetworkPolicyConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetworkPolicyConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 1dc4722cf9a1..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicyConfigOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface NetworkPolicyConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NetworkPolicyConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether NetworkPolicy is enabled for this cluster.
-   * 
- * - * bool disabled = 1; - * @return The disabled. - */ - boolean getDisabled(); -} diff --git a/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 deleted file mode 100644 index 4403349733ad..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicyOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface NetworkPolicyOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NetworkPolicy) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The selected network policy provider.
-   * 
- * - * .google.container.v1beta1.NetworkPolicy.Provider provider = 1; - * @return The enum numeric value on the wire for provider. - */ - int getProviderValue(); - /** - *
-   * The selected network policy provider.
-   * 
- * - * .google.container.v1beta1.NetworkPolicy.Provider provider = 1; - * @return The provider. - */ - com.google.container.v1beta1.NetworkPolicy.Provider getProvider(); - - /** - *
-   * Whether network policy is enabled on the cluster.
-   * 
- * - * bool enabled = 2; - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/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 deleted file mode 100644 index f7f3e29ce6f7..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkTags.java +++ /dev/null @@ -1,653 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NetworkTags(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - private com.google.protobuf.LazyStringList tags_; - /** - *
-   * 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(); - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_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); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - tags_ = tags_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.tags_ = tags_; - 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.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_ = (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.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTagsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - 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() { - return tags_.getUnmodifiableView(); - } - /** - *
-     * 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); - 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); - 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_); - onChanged(); - return this; - } - /** - *
-     * List of network tags.
-     * 
- * - * repeated string tags = 1; - * @return This builder for chaining. - */ - public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - 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); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index cc99ed99b6bb..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkTagsOrBuilder.java +++ /dev/null @@ -1,50 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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 deleted file mode 100644 index 8354bc5a6b9b..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfig.java +++ /dev/null @@ -1,7842 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Parameters that describe the nodes in a cluster.
- * 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.EMPTY; - serviceAccount_ = ""; - imageType_ = ""; - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - accelerators_ = java.util.Collections.emptyList(); - nodeGroup_ = ""; - diskType_ = ""; - minCpuPlatform_ = ""; - taints_ = java.util.Collections.emptyList(); - bootDiskKmsKey_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NodeConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 4: - return internalGetMetadata(); - case 6: - return internalGetLabels(); - 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); - } - - public static final int MACHINE_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object machineType_; - /** - *
-   * The name of a Google Compute Engine [machine
-   * type](https://cloud.google.com/compute/docs/machine-types).
-   * If unspecified, the default machine type is
-   * `e2-medium`.
-   * 
- * - * string machine_type = 1; - * @return The machineType. - */ - @java.lang.Override - public java.lang.String getMachineType() { - java.lang.Object ref = machineType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - machineType_ = s; - return s; - } - } - /** - *
-   * The name of a Google Compute Engine [machine
-   * type](https://cloud.google.com/compute/docs/machine-types).
-   * If unspecified, the default machine type is
-   * `e2-medium`.
-   * 
- * - * string machine_type = 1; - * @return The bytes for machineType. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMachineTypeBytes() { - java.lang.Object ref = machineType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - machineType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISK_SIZE_GB_FIELD_NUMBER = 2; - private int diskSizeGb_; - /** - *
-   * Size of the disk attached to each node, specified in GB.
-   * The smallest allowed disk size is 10GB.
-   * If unspecified, the default disk size is 100GB.
-   * 
- * - * int32 disk_size_gb = 2; - * @return The diskSizeGb. - */ - @java.lang.Override - public int getDiskSizeGb() { - return diskSizeGb_; - } - - public static final int OAUTH_SCOPES_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList oauthScopes_; - /** - *
-   * The set of Google API scopes to be made available on all of the
-   * node VMs under the "default" service account.
-   * The following scopes are recommended, but not required, and by default are
-   * not included:
-   * * `https://www.googleapis.com/auth/compute` is required for mounting
-   * persistent storage on your nodes.
-   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-   * communicating with **gcr.io**
-   * (the [Google Container
-   * Registry](https://cloud.google.com/container-registry/)).
-   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-   * Monitoring are enabled, in which case their required scopes will be added.
-   * 
- * - * repeated string oauth_scopes = 3; - * @return A list containing the oauthScopes. - */ - public com.google.protobuf.ProtocolStringList - getOauthScopesList() { - return oauthScopes_; - } - /** - *
-   * The set of Google API scopes to be made available on all of the
-   * node VMs under the "default" service account.
-   * The following scopes are recommended, but not required, and by default are
-   * not included:
-   * * `https://www.googleapis.com/auth/compute` is required for mounting
-   * persistent storage on your nodes.
-   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-   * communicating with **gcr.io**
-   * (the [Google Container
-   * Registry](https://cloud.google.com/container-registry/)).
-   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-   * Monitoring are enabled, in which case their required scopes will be added.
-   * 
- * - * repeated string oauth_scopes = 3; - * @return The count of oauthScopes. - */ - public int getOauthScopesCount() { - return oauthScopes_.size(); - } - /** - *
-   * The set of Google API scopes to be made available on all of the
-   * node VMs under the "default" service account.
-   * The following scopes are recommended, but not required, and by default are
-   * not included:
-   * * `https://www.googleapis.com/auth/compute` is required for mounting
-   * persistent storage on your nodes.
-   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-   * communicating with **gcr.io**
-   * (the [Google Container
-   * Registry](https://cloud.google.com/container-registry/)).
-   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-   * Monitoring are enabled, in which case their required scopes will be added.
-   * 
- * - * repeated string oauth_scopes = 3; - * @param index The index of the element to return. - * @return The oauthScopes at the given index. - */ - public java.lang.String getOauthScopes(int index) { - return oauthScopes_.get(index); - } - /** - *
-   * The set of Google API scopes to be made available on all of the
-   * node VMs under the "default" service account.
-   * The following scopes are recommended, but not required, and by default are
-   * not included:
-   * * `https://www.googleapis.com/auth/compute` is required for mounting
-   * persistent storage on your nodes.
-   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-   * communicating with **gcr.io**
-   * (the [Google Container
-   * Registry](https://cloud.google.com/container-registry/)).
-   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-   * Monitoring are enabled, in which case their required scopes will be added.
-   * 
- * - * repeated string oauth_scopes = 3; - * @param index The index of the value to return. - * @return The bytes of the oauthScopes at the given index. - */ - public com.google.protobuf.ByteString - getOauthScopesBytes(int index) { - return oauthScopes_.getByteString(index); - } - - public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 9; - private volatile java.lang.Object serviceAccount_; - /** - *
-   * The Google Cloud Platform Service Account to be used by the node VMs.
-   * Specify the email address of the Service Account; otherwise, if no Service
-   * Account is specified, the "default" service account is used.
-   * 
- * - * string service_account = 9; - * @return The serviceAccount. - */ - @java.lang.Override - public java.lang.String getServiceAccount() { - java.lang.Object ref = serviceAccount_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceAccount_ = s; - return s; - } - } - /** - *
-   * The Google Cloud Platform Service Account to be used by the node VMs.
-   * Specify the email address of the Service Account; otherwise, if no Service
-   * Account is specified, the "default" service account is used.
-   * 
- * - * string service_account = 9; - * @return The bytes for serviceAccount. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountBytes() { - java.lang.Object ref = serviceAccount_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serviceAccount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int METADATA_FIELD_NUMBER = 4; - private static final class MetadataDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeConfig_MetadataEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> metadata_; - private com.google.protobuf.MapField - internalGetMetadata() { - if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MetadataDefaultEntryHolder.defaultEntry); - } - return metadata_; - } - - public int getMetadataCount() { - return internalGetMetadata().getMap().size(); - } - /** - *
-   * The metadata key/value pairs assigned to instances in the cluster.
-   * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
-   * in length. These are reflected as part of a URL in the metadata server.
-   * Additionally, to avoid ambiguity, keys must not conflict with any other
-   * metadata keys for the project or be one of the reserved keys:
-   *  - "cluster-location"
-   *  - "cluster-name"
-   *  - "cluster-uid"
-   *  - "configure-sh"
-   *  - "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 java.lang.String getMetadataOrDefault( - java.lang.String key, - 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; - private volatile java.lang.Object imageType_; - /** - *
-   * The image type to use for this node. Note that for a given image type,
-   * the latest version of it will be used.
-   * 
- * - * string image_type = 5; - * @return The imageType. - */ - @java.lang.Override - public java.lang.String getImageType() { - java.lang.Object ref = imageType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - imageType_ = s; - return s; - } - } - /** - *
-   * The image type to use for this node. Note that for a given image type,
-   * the latest version of it will be used.
-   * 
- * - * string image_type = 5; - * @return The bytes for imageType. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getImageTypeBytes() { - java.lang.Object ref = imageType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - imageType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LABELS_FIELD_NUMBER = 6; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeConfig_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - *
-   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
-   * These will added in addition to any default label(s) that
-   * Kubernetes may apply to the node.
-   * In case of conflict in label keys, the applied set may differ depending on
-   * the Kubernetes version -- it's best to assume the behavior is undefined
-   * and conflicts should be avoided.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-   * 
- * - * map<string, string> labels = 6; - */ - - @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 java.lang.String getLabelsOrDefault( - java.lang.String key, - 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_; - /** - *
-   * The number of local SSD disks to be attached to the node.
-   * The limit for this value is dependent upon the maximum number of
-   * disks available on a machine per zone. See:
-   * https://cloud.google.com/compute/docs/disks/local-ssd
-   * for more information.
-   * 
- * - * int32 local_ssd_count = 7; - * @return The localSsdCount. - */ - @java.lang.Override - public int getLocalSsdCount() { - return localSsdCount_; - } - - public static final int TAGS_FIELD_NUMBER = 8; - private com.google.protobuf.LazyStringList tags_; - /** - *
-   * The list of instance tags applied to all nodes. Tags are used to identify
-   * valid sources or targets for network firewalls and are specified by
-   * the client during cluster or node pool creation. Each tag within the list
-   * must comply with RFC1035.
-   * 
- * - * repeated string tags = 8; - * @return A list containing the tags. - */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_; - } - /** - *
-   * The list of instance tags applied to all nodes. Tags are used to identify
-   * valid sources or targets for network firewalls and are specified by
-   * the client during cluster or node pool creation. Each tag within the list
-   * must comply with RFC1035.
-   * 
- * - * repeated string tags = 8; - * @return The count of tags. - */ - public int getTagsCount() { - return tags_.size(); - } - /** - *
-   * The list of instance tags applied to all nodes. Tags are used to identify
-   * valid sources or targets for network firewalls and are specified by
-   * the client during cluster or node pool creation. Each tag within the list
-   * must comply with RFC1035.
-   * 
- * - * repeated string tags = 8; - * @param index The index of the element to return. - * @return The tags at the given index. - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - *
-   * The list of instance tags applied to all nodes. Tags are used to identify
-   * valid sources or targets for network firewalls and are specified by
-   * the client during cluster or node pool creation. Each tag within the list
-   * must comply with RFC1035.
-   * 
- * - * repeated string tags = 8; - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(index); - } - - public static final int PREEMPTIBLE_FIELD_NUMBER = 10; - private boolean preemptible_; - /** - *
-   * Whether the nodes are created as preemptible VM instances. See:
-   * https://cloud.google.com/compute/docs/instances/preemptible for more
-   * inforamtion about preemptible VM instances.
-   * 
- * - * bool preemptible = 10; - * @return The preemptible. - */ - @java.lang.Override - public boolean getPreemptible() { - return preemptible_; - } - - public static final int ACCELERATORS_FIELD_NUMBER = 11; - private java.util.List accelerators_; - /** - *
-   * A list of hardware accelerators to be attached to each node.
-   * See https://cloud.google.com/compute/docs/gpus for more information about
-   * support for GPUs.
-   * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - @java.lang.Override - public java.util.List getAcceleratorsList() { - return accelerators_; - } - /** - *
-   * A list of hardware accelerators to be attached to each node.
-   * See https://cloud.google.com/compute/docs/gpus for more information about
-   * support for GPUs.
-   * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - @java.lang.Override - public java.util.List - getAcceleratorsOrBuilderList() { - return accelerators_; - } - /** - *
-   * A list of hardware accelerators to be attached to each node.
-   * See https://cloud.google.com/compute/docs/gpus for more information about
-   * support for GPUs.
-   * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - @java.lang.Override - public int getAcceleratorsCount() { - return accelerators_.size(); - } - /** - *
-   * A list of hardware accelerators to be attached to each node.
-   * See https://cloud.google.com/compute/docs/gpus for more information about
-   * support for GPUs.
-   * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - @java.lang.Override - public com.google.container.v1beta1.AcceleratorConfig getAccelerators(int index) { - return accelerators_.get(index); - } - /** - *
-   * A list of hardware accelerators to be attached to each node.
-   * See https://cloud.google.com/compute/docs/gpus for more information about
-   * support for GPUs.
-   * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - @java.lang.Override - public com.google.container.v1beta1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder( - int index) { - return accelerators_.get(index); - } - - public static final int SANDBOX_CONFIG_FIELD_NUMBER = 17; - private com.google.container.v1beta1.SandboxConfig sandboxConfig_; - /** - *
-   * Sandbox configuration for this node.
-   * 
- * - * .google.container.v1beta1.SandboxConfig sandbox_config = 17; - * @return Whether the sandboxConfig field is set. - */ - @java.lang.Override - public boolean hasSandboxConfig() { - return sandboxConfig_ != null; - } - /** - *
-   * Sandbox configuration for this node.
-   * 
- * - * .google.container.v1beta1.SandboxConfig sandbox_config = 17; - * @return The sandboxConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.SandboxConfig getSandboxConfig() { - return sandboxConfig_ == null ? com.google.container.v1beta1.SandboxConfig.getDefaultInstance() : sandboxConfig_; - } - /** - *
-   * Sandbox configuration for this node.
-   * 
- * - * .google.container.v1beta1.SandboxConfig sandbox_config = 17; - */ - @java.lang.Override - public com.google.container.v1beta1.SandboxConfigOrBuilder getSandboxConfigOrBuilder() { - return getSandboxConfig(); - } - - public static final int NODE_GROUP_FIELD_NUMBER = 18; - private volatile java.lang.Object nodeGroup_; - /** - *
-   * Setting this field will assign instances of this
-   * pool to run on the specified node group. This is useful for running
-   * workloads on [sole tenant
-   * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
-   * 
- * - * string node_group = 18; - * @return The nodeGroup. - */ - @java.lang.Override - public java.lang.String getNodeGroup() { - java.lang.Object ref = nodeGroup_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeGroup_ = s; - return s; - } - } - /** - *
-   * Setting this field will assign instances of this
-   * pool to run on the specified node group. This is useful for running
-   * workloads on [sole tenant
-   * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
-   * 
- * - * string node_group = 18; - * @return The bytes for nodeGroup. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNodeGroupBytes() { - java.lang.Object ref = nodeGroup_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodeGroup_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESERVATION_AFFINITY_FIELD_NUMBER = 19; - private com.google.container.v1beta1.ReservationAffinity reservationAffinity_; - /** - *
-   * The optional reservation affinity. Setting this field will apply
-   * the specified [Zonal Compute
-   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-   * to this node pool.
-   * 
- * - * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; - * @return Whether the reservationAffinity field is set. - */ - @java.lang.Override - public boolean hasReservationAffinity() { - return reservationAffinity_ != null; - } - /** - *
-   * The optional reservation affinity. Setting this field will apply
-   * the specified [Zonal Compute
-   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-   * to this node pool.
-   * 
- * - * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; - * @return The reservationAffinity. - */ - @java.lang.Override - public com.google.container.v1beta1.ReservationAffinity getReservationAffinity() { - return reservationAffinity_ == null ? com.google.container.v1beta1.ReservationAffinity.getDefaultInstance() : reservationAffinity_; - } - /** - *
-   * The optional reservation affinity. Setting this field will apply
-   * the specified [Zonal Compute
-   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-   * to this node pool.
-   * 
- * - * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; - */ - @java.lang.Override - public com.google.container.v1beta1.ReservationAffinityOrBuilder getReservationAffinityOrBuilder() { - return getReservationAffinity(); - } - - public static final int DISK_TYPE_FIELD_NUMBER = 12; - private volatile java.lang.Object diskType_; - /** - *
-   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-   * 'pd-balanced')
-   * If unspecified, the default disk type is 'pd-standard'
-   * 
- * - * string disk_type = 12; - * @return The diskType. - */ - @java.lang.Override - public java.lang.String getDiskType() { - java.lang.Object ref = diskType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - diskType_ = s; - return s; - } - } - /** - *
-   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-   * 'pd-balanced')
-   * If unspecified, the default disk type is 'pd-standard'
-   * 
- * - * string disk_type = 12; - * @return The bytes for diskType. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDiskTypeBytes() { - java.lang.Object ref = diskType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - diskType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MIN_CPU_PLATFORM_FIELD_NUMBER = 13; - private volatile java.lang.Object minCpuPlatform_; - /** - *
-   * Minimum CPU platform to be used by this instance. The instance may be
-   * scheduled on the specified or newer CPU platform. Applicable values are the
-   * friendly names of CPU platforms, such as
-   * `minCpuPlatform: "Intel Haswell"` or
-   * `minCpuPlatform: "Intel Sandy Bridge"`. For more
-   * information, read [how to specify min CPU
-   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
-   * 
- * - * string min_cpu_platform = 13; - * @return The minCpuPlatform. - */ - @java.lang.Override - public java.lang.String getMinCpuPlatform() { - java.lang.Object ref = minCpuPlatform_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - minCpuPlatform_ = s; - return s; - } - } - /** - *
-   * Minimum CPU platform to be used by this instance. The instance may be
-   * scheduled on the specified or newer CPU platform. Applicable values are the
-   * friendly names of CPU platforms, such as
-   * `minCpuPlatform: "Intel Haswell"` or
-   * `minCpuPlatform: "Intel Sandy Bridge"`. For more
-   * information, read [how to specify min CPU
-   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
-   * 
- * - * string min_cpu_platform = 13; - * @return The bytes for minCpuPlatform. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMinCpuPlatformBytes() { - java.lang.Object ref = minCpuPlatform_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - minCpuPlatform_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int WORKLOAD_METADATA_CONFIG_FIELD_NUMBER = 14; - private com.google.container.v1beta1.WorkloadMetadataConfig workloadMetadataConfig_; - /** - *
-   * The workload metadata configuration for this node.
-   * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; - * @return Whether the workloadMetadataConfig field is set. - */ - @java.lang.Override - public boolean hasWorkloadMetadataConfig() { - return workloadMetadataConfig_ != null; - } - /** - *
-   * The workload metadata configuration for this node.
-   * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; - * @return The workloadMetadataConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.WorkloadMetadataConfig getWorkloadMetadataConfig() { - return workloadMetadataConfig_ == null ? com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance() : workloadMetadataConfig_; - } - /** - *
-   * The workload metadata configuration for this node.
-   * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - @java.lang.Override - public com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder getWorkloadMetadataConfigOrBuilder() { - return getWorkloadMetadataConfig(); - } - - public static final int TAINTS_FIELD_NUMBER = 15; - private java.util.List taints_; - /** - *
-   * List of kubernetes taints to be applied to each node.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-   * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 15; - */ - @java.lang.Override - public java.util.List getTaintsList() { - return taints_; - } - /** - *
-   * List of kubernetes taints to be applied to each node.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-   * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 15; - */ - @java.lang.Override - public java.util.List - getTaintsOrBuilderList() { - return taints_; - } - /** - *
-   * List of kubernetes taints to be applied to each node.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-   * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 15; - */ - @java.lang.Override - public int getTaintsCount() { - return taints_.size(); - } - /** - *
-   * List of kubernetes taints to be applied to each node.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-   * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 15; - */ - @java.lang.Override - public com.google.container.v1beta1.NodeTaint getTaints(int index) { - return taints_.get(index); - } - /** - *
-   * List of kubernetes taints to be applied to each node.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-   * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 15; - */ - @java.lang.Override - public com.google.container.v1beta1.NodeTaintOrBuilder getTaintsOrBuilder( - int index) { - return taints_.get(index); - } - - public static final int BOOT_DISK_KMS_KEY_FIELD_NUMBER = 23; - private volatile java.lang.Object bootDiskKmsKey_; - /** - *
-   * The Customer Managed Encryption Key used to encrypt the boot disk attached
-   * to each node in the node pool. This should be of the form
-   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-   * For more information about protecting resources with Cloud KMS Keys please
-   * see:
-   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-   * 
- * - * string boot_disk_kms_key = 23; - * @return The bootDiskKmsKey. - */ - @java.lang.Override - public java.lang.String getBootDiskKmsKey() { - java.lang.Object ref = bootDiskKmsKey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bootDiskKmsKey_ = s; - return s; - } - } - /** - *
-   * The Customer Managed Encryption Key used to encrypt the boot disk attached
-   * to each node in the node pool. This should be of the form
-   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-   * For more information about protecting resources with Cloud KMS Keys please
-   * see:
-   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-   * 
- * - * string boot_disk_kms_key = 23; - * @return The bytes for bootDiskKmsKey. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBootDiskKmsKeyBytes() { - java.lang.Object ref = bootDiskKmsKey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bootDiskKmsKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 20; - private com.google.container.v1beta1.ShieldedInstanceConfig shieldedInstanceConfig_; - /** - *
-   * Shielded Instance options.
-   * 
- * - * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; - * @return Whether the shieldedInstanceConfig field is set. - */ - @java.lang.Override - public boolean hasShieldedInstanceConfig() { - return shieldedInstanceConfig_ != null; - } - /** - *
-   * Shielded Instance options.
-   * 
- * - * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; - * @return The shieldedInstanceConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.ShieldedInstanceConfig getShieldedInstanceConfig() { - return shieldedInstanceConfig_ == null ? com.google.container.v1beta1.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; - } - /** - *
-   * Shielded Instance options.
-   * 
- * - * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - @java.lang.Override - public com.google.container.v1beta1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { - return getShieldedInstanceConfig(); - } - - public static final int LINUX_NODE_CONFIG_FIELD_NUMBER = 21; - private com.google.container.v1beta1.LinuxNodeConfig linuxNodeConfig_; - /** - *
-   * Parameters that can be configured on Linux nodes.
-   * 
- * - * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; - * @return Whether the linuxNodeConfig field is set. - */ - @java.lang.Override - public boolean hasLinuxNodeConfig() { - return linuxNodeConfig_ != null; - } - /** - *
-   * Parameters that can be configured on Linux nodes.
-   * 
- * - * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; - * @return The linuxNodeConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.LinuxNodeConfig getLinuxNodeConfig() { - return linuxNodeConfig_ == null ? com.google.container.v1beta1.LinuxNodeConfig.getDefaultInstance() : linuxNodeConfig_; - } - /** - *
-   * Parameters that can be configured on Linux nodes.
-   * 
- * - * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; - */ - @java.lang.Override - public com.google.container.v1beta1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder() { - return getLinuxNodeConfig(); - } - - public static final int KUBELET_CONFIG_FIELD_NUMBER = 22; - private com.google.container.v1beta1.NodeKubeletConfig kubeletConfig_; - /** - *
-   * Node kubelet configs.
-   * 
- * - * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; - * @return Whether the kubeletConfig field is set. - */ - @java.lang.Override - public boolean hasKubeletConfig() { - return kubeletConfig_ != null; - } - /** - *
-   * Node kubelet configs.
-   * 
- * - * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; - * @return The kubeletConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.NodeKubeletConfig getKubeletConfig() { - return kubeletConfig_ == null ? com.google.container.v1beta1.NodeKubeletConfig.getDefaultInstance() : kubeletConfig_; - } - /** - *
-   * Node kubelet configs.
-   * 
- * - * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; - */ - @java.lang.Override - public com.google.container.v1beta1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder() { - return getKubeletConfig(); - } - - public static final int EPHEMERAL_STORAGE_CONFIG_FIELD_NUMBER = 24; - private com.google.container.v1beta1.EphemeralStorageConfig ephemeralStorageConfig_; - /** - *
-   * Parameters for the ephemeral storage filesystem.
-   * If unspecified, ephemeral storage is backed by the boot disk.
-   * 
- * - * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; - * @return Whether the ephemeralStorageConfig field is set. - */ - @java.lang.Override - public boolean hasEphemeralStorageConfig() { - return ephemeralStorageConfig_ != null; - } - /** - *
-   * Parameters for the ephemeral storage filesystem.
-   * If unspecified, ephemeral storage is backed by the boot disk.
-   * 
- * - * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; - * @return The ephemeralStorageConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.EphemeralStorageConfig getEphemeralStorageConfig() { - return ephemeralStorageConfig_ == null ? com.google.container.v1beta1.EphemeralStorageConfig.getDefaultInstance() : ephemeralStorageConfig_; - } - /** - *
-   * Parameters for the ephemeral storage filesystem.
-   * If unspecified, ephemeral storage is backed by the boot disk.
-   * 
- * - * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; - */ - @java.lang.Override - public com.google.container.v1beta1.EphemeralStorageConfigOrBuilder getEphemeralStorageConfigOrBuilder() { - return getEphemeralStorageConfig(); - } - - public static final int GCFS_CONFIG_FIELD_NUMBER = 25; - private com.google.container.v1beta1.GcfsConfig gcfsConfig_; - /** - *
-   * GCFS (Google Container File System) configs.
-   * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 25; - * @return Whether the gcfsConfig field is set. - */ - @java.lang.Override - public boolean hasGcfsConfig() { - return gcfsConfig_ != null; - } - /** - *
-   * GCFS (Google Container File System) configs.
-   * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 25; - * @return The gcfsConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.GcfsConfig getGcfsConfig() { - return gcfsConfig_ == null ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() : gcfsConfig_; - } - /** - *
-   * GCFS (Google Container File System) configs.
-   * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 25; - */ - @java.lang.Override - public com.google.container.v1beta1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { - return getGcfsConfig(); - } - - public static final int ADVANCED_MACHINE_FEATURES_FIELD_NUMBER = 26; - private com.google.container.v1beta1.AdvancedMachineFeatures advancedMachineFeatures_; - /** - *
-   * Advanced features for the Compute Engine VM.
-   * 
- * - * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; - * @return Whether the advancedMachineFeatures field is set. - */ - @java.lang.Override - public boolean hasAdvancedMachineFeatures() { - return advancedMachineFeatures_ != null; - } - /** - *
-   * Advanced features for the Compute Engine VM.
-   * 
- * - * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; - * @return The advancedMachineFeatures. - */ - @java.lang.Override - public com.google.container.v1beta1.AdvancedMachineFeatures getAdvancedMachineFeatures() { - return advancedMachineFeatures_ == null ? com.google.container.v1beta1.AdvancedMachineFeatures.getDefaultInstance() : advancedMachineFeatures_; - } - /** - *
-   * Advanced features for the Compute Engine VM.
-   * 
- * - * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; - */ - @java.lang.Override - public com.google.container.v1beta1.AdvancedMachineFeaturesOrBuilder getAdvancedMachineFeaturesOrBuilder() { - return getAdvancedMachineFeatures(); - } - - public static final int GVNIC_FIELD_NUMBER = 29; - private com.google.container.v1beta1.VirtualNIC gvnic_; - /** - *
-   * 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 gvnic_ != null; - } - /** - *
-   * 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 getGvnic(); - } - - public static final int SPOT_FIELD_NUMBER = 32; - private boolean spot_; - /** - *
-   * Spot flag for enabling Spot VM, which is a rebrand of
-   * the existing preemptible flag.
-   * 
- * - * bool spot = 32; - * @return The spot. - */ - @java.lang.Override - public boolean getSpot() { - return spot_; - } - - 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 confidentialNodes_ != null; - } - /** - *
-   * 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 getConfidentialNodes(); - } - - 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, - ""); - } - 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 java.lang.String getResourceLabelsOrDefault( - java.lang.String key, - 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 loggingConfig_ != null; - } - /** - *
-   * 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 getLoggingConfig(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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 (workloadMetadataConfig_ != null) { - output.writeMessage(14, getWorkloadMetadataConfig()); - } - for (int i = 0; i < taints_.size(); i++) { - output.writeMessage(15, taints_.get(i)); - } - if (sandboxConfig_ != null) { - output.writeMessage(17, getSandboxConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeGroup_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 18, nodeGroup_); - } - if (reservationAffinity_ != null) { - output.writeMessage(19, getReservationAffinity()); - } - if (shieldedInstanceConfig_ != null) { - output.writeMessage(20, getShieldedInstanceConfig()); - } - if (linuxNodeConfig_ != null) { - output.writeMessage(21, getLinuxNodeConfig()); - } - if (kubeletConfig_ != null) { - output.writeMessage(22, getKubeletConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootDiskKmsKey_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 23, bootDiskKmsKey_); - } - if (ephemeralStorageConfig_ != null) { - output.writeMessage(24, getEphemeralStorageConfig()); - } - if (gcfsConfig_ != null) { - output.writeMessage(25, getGcfsConfig()); - } - if (advancedMachineFeatures_ != null) { - output.writeMessage(26, getAdvancedMachineFeatures()); - } - if (gvnic_ != null) { - output.writeMessage(29, getGvnic()); - } - if (spot_ != false) { - output.writeBool(32, spot_); - } - if (confidentialNodes_ != null) { - output.writeMessage(35, getConfidentialNodes()); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetResourceLabels(), - ResourceLabelsDefaultEntryHolder.defaultEntry, - 37); - if (loggingConfig_ != null) { - output.writeMessage(38, getLoggingConfig()); - } - getUnknownFields().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 (workloadMetadataConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getWorkloadMetadataConfig()); - } - for (int i = 0; i < taints_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, taints_.get(i)); - } - if (sandboxConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getSandboxConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeGroup_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, nodeGroup_); - } - if (reservationAffinity_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, getReservationAffinity()); - } - if (shieldedInstanceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, getShieldedInstanceConfig()); - } - if (linuxNodeConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, getLinuxNodeConfig()); - } - if (kubeletConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, getKubeletConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootDiskKmsKey_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, bootDiskKmsKey_); - } - if (ephemeralStorageConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(24, getEphemeralStorageConfig()); - } - if (gcfsConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(25, getGcfsConfig()); - } - if (advancedMachineFeatures_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(26, getAdvancedMachineFeatures()); - } - if (gvnic_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(29, getGvnic()); - } - if (spot_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(32, spot_); - } - if (confidentialNodes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(35, getConfidentialNodes()); - } - 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 (loggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(38, 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.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 (!internalGetResourceLabels().equals( - other.internalGetResourceLabels())) 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(); - 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 (!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(); - } - 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.MapField internalGetMapField( - 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.MapField internalGetMutableMapField( - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - machineType_ = ""; - - diskSizeGb_ = 0; - - oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - serviceAccount_ = ""; - - internalGetMutableMetadata().clear(); - imageType_ = ""; - - internalGetMutableLabels().clear(); - localSsdCount_ = 0; - - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - preemptible_ = false; - - if (acceleratorsBuilder_ == null) { - accelerators_ = java.util.Collections.emptyList(); - } else { - accelerators_ = null; - acceleratorsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - if (sandboxConfigBuilder_ == null) { - sandboxConfig_ = null; - } else { - sandboxConfig_ = null; - sandboxConfigBuilder_ = null; - } - nodeGroup_ = ""; - - if (reservationAffinityBuilder_ == null) { - reservationAffinity_ = null; - } else { - reservationAffinity_ = null; - reservationAffinityBuilder_ = null; - } - diskType_ = ""; - - minCpuPlatform_ = ""; - - if (workloadMetadataConfigBuilder_ == null) { - workloadMetadataConfig_ = null; - } else { - workloadMetadataConfig_ = null; - workloadMetadataConfigBuilder_ = null; - } - if (taintsBuilder_ == null) { - taints_ = java.util.Collections.emptyList(); - } else { - taints_ = null; - taintsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - bootDiskKmsKey_ = ""; - - if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfig_ = null; - } else { - shieldedInstanceConfig_ = null; - shieldedInstanceConfigBuilder_ = null; - } - if (linuxNodeConfigBuilder_ == null) { - linuxNodeConfig_ = null; - } else { - linuxNodeConfig_ = null; - linuxNodeConfigBuilder_ = null; - } - if (kubeletConfigBuilder_ == null) { - kubeletConfig_ = null; - } else { - kubeletConfig_ = null; - kubeletConfigBuilder_ = null; - } - if (ephemeralStorageConfigBuilder_ == null) { - ephemeralStorageConfig_ = null; - } else { - ephemeralStorageConfig_ = null; - ephemeralStorageConfigBuilder_ = null; - } - if (gcfsConfigBuilder_ == null) { - gcfsConfig_ = null; - } else { - gcfsConfig_ = null; - gcfsConfigBuilder_ = null; - } - if (advancedMachineFeaturesBuilder_ == null) { - advancedMachineFeatures_ = null; - } else { - advancedMachineFeatures_ = null; - advancedMachineFeaturesBuilder_ = null; - } - if (gvnicBuilder_ == null) { - gvnic_ = null; - } else { - gvnic_ = null; - gvnicBuilder_ = null; - } - spot_ = false; - - if (confidentialNodesBuilder_ == null) { - confidentialNodes_ = null; - } else { - confidentialNodes_ = null; - confidentialNodesBuilder_ = null; - } - internalGetMutableResourceLabels().clear(); - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.NodeConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.NodeConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.NodeConfig build() { - com.google.container.v1beta1.NodeConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.NodeConfig buildPartial() { - com.google.container.v1beta1.NodeConfig result = new com.google.container.v1beta1.NodeConfig(this); - int from_bitField0_ = bitField0_; - result.machineType_ = machineType_; - result.diskSizeGb_ = diskSizeGb_; - if (((bitField0_ & 0x00000001) != 0)) { - oauthScopes_ = oauthScopes_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.oauthScopes_ = oauthScopes_; - result.serviceAccount_ = serviceAccount_; - result.metadata_ = internalGetMetadata(); - result.metadata_.makeImmutable(); - result.imageType_ = imageType_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - result.localSsdCount_ = localSsdCount_; - if (((bitField0_ & 0x00000008) != 0)) { - tags_ = tags_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.tags_ = tags_; - result.preemptible_ = preemptible_; - if (acceleratorsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - accelerators_ = java.util.Collections.unmodifiableList(accelerators_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.accelerators_ = accelerators_; - } else { - result.accelerators_ = acceleratorsBuilder_.build(); - } - if (sandboxConfigBuilder_ == null) { - result.sandboxConfig_ = sandboxConfig_; - } else { - result.sandboxConfig_ = sandboxConfigBuilder_.build(); - } - result.nodeGroup_ = nodeGroup_; - if (reservationAffinityBuilder_ == null) { - result.reservationAffinity_ = reservationAffinity_; - } else { - result.reservationAffinity_ = reservationAffinityBuilder_.build(); - } - result.diskType_ = diskType_; - result.minCpuPlatform_ = minCpuPlatform_; - if (workloadMetadataConfigBuilder_ == null) { - result.workloadMetadataConfig_ = workloadMetadataConfig_; - } else { - result.workloadMetadataConfig_ = workloadMetadataConfigBuilder_.build(); - } - if (taintsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - taints_ = java.util.Collections.unmodifiableList(taints_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.taints_ = taints_; - } else { - result.taints_ = taintsBuilder_.build(); - } - result.bootDiskKmsKey_ = bootDiskKmsKey_; - if (shieldedInstanceConfigBuilder_ == null) { - result.shieldedInstanceConfig_ = shieldedInstanceConfig_; - } else { - result.shieldedInstanceConfig_ = shieldedInstanceConfigBuilder_.build(); - } - if (linuxNodeConfigBuilder_ == null) { - result.linuxNodeConfig_ = linuxNodeConfig_; - } else { - result.linuxNodeConfig_ = linuxNodeConfigBuilder_.build(); - } - if (kubeletConfigBuilder_ == null) { - result.kubeletConfig_ = kubeletConfig_; - } else { - result.kubeletConfig_ = kubeletConfigBuilder_.build(); - } - if (ephemeralStorageConfigBuilder_ == null) { - result.ephemeralStorageConfig_ = ephemeralStorageConfig_; - } else { - result.ephemeralStorageConfig_ = ephemeralStorageConfigBuilder_.build(); - } - if (gcfsConfigBuilder_ == null) { - result.gcfsConfig_ = gcfsConfig_; - } else { - result.gcfsConfig_ = gcfsConfigBuilder_.build(); - } - if (advancedMachineFeaturesBuilder_ == null) { - result.advancedMachineFeatures_ = advancedMachineFeatures_; - } else { - result.advancedMachineFeatures_ = advancedMachineFeaturesBuilder_.build(); - } - if (gvnicBuilder_ == null) { - result.gvnic_ = gvnic_; - } else { - result.gvnic_ = gvnicBuilder_.build(); - } - result.spot_ = spot_; - if (confidentialNodesBuilder_ == null) { - result.confidentialNodes_ = confidentialNodes_; - } else { - result.confidentialNodes_ = confidentialNodesBuilder_.build(); - } - result.resourceLabels_ = internalGetResourceLabels(); - result.resourceLabels_.makeImmutable(); - if (loggingConfigBuilder_ == null) { - result.loggingConfig_ = loggingConfig_; - } else { - result.loggingConfig_ = loggingConfigBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.NodeConfig) { - return mergeFrom((com.google.container.v1beta1.NodeConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.NodeConfig other) { - if (other == com.google.container.v1beta1.NodeConfig.getDefaultInstance()) return this; - if (!other.getMachineType().isEmpty()) { - machineType_ = other.machineType_; - onChanged(); - } - if (other.getDiskSizeGb() != 0) { - setDiskSizeGb(other.getDiskSizeGb()); - } - if (!other.oauthScopes_.isEmpty()) { - if (oauthScopes_.isEmpty()) { - oauthScopes_ = other.oauthScopes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureOauthScopesIsMutable(); - oauthScopes_.addAll(other.oauthScopes_); - } - onChanged(); - } - if (!other.getServiceAccount().isEmpty()) { - serviceAccount_ = other.serviceAccount_; - onChanged(); - } - internalGetMutableMetadata().mergeFrom( - other.internalGetMetadata()); - if (!other.getImageType().isEmpty()) { - imageType_ = other.imageType_; - onChanged(); - } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); - if (other.getLocalSsdCount() != 0) { - setLocalSsdCount(other.getLocalSsdCount()); - } - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); - } - onChanged(); - } - if (other.getPreemptible() != false) { - setPreemptible(other.getPreemptible()); - } - if (acceleratorsBuilder_ == null) { - if (!other.accelerators_.isEmpty()) { - if (accelerators_.isEmpty()) { - accelerators_ = other.accelerators_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureAcceleratorsIsMutable(); - accelerators_.addAll(other.accelerators_); - } - onChanged(); - } - } else { - if (!other.accelerators_.isEmpty()) { - if (acceleratorsBuilder_.isEmpty()) { - acceleratorsBuilder_.dispose(); - acceleratorsBuilder_ = null; - accelerators_ = other.accelerators_; - bitField0_ = (bitField0_ & ~0x00000010); - acceleratorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAcceleratorsFieldBuilder() : null; - } else { - acceleratorsBuilder_.addAllMessages(other.accelerators_); - } - } - } - if (other.hasSandboxConfig()) { - mergeSandboxConfig(other.getSandboxConfig()); - } - if (!other.getNodeGroup().isEmpty()) { - nodeGroup_ = other.nodeGroup_; - onChanged(); - } - if (other.hasReservationAffinity()) { - mergeReservationAffinity(other.getReservationAffinity()); - } - if (!other.getDiskType().isEmpty()) { - diskType_ = other.diskType_; - onChanged(); - } - if (!other.getMinCpuPlatform().isEmpty()) { - minCpuPlatform_ = other.minCpuPlatform_; - onChanged(); - } - if (other.hasWorkloadMetadataConfig()) { - mergeWorkloadMetadataConfig(other.getWorkloadMetadataConfig()); - } - if (taintsBuilder_ == null) { - if (!other.taints_.isEmpty()) { - if (taints_.isEmpty()) { - taints_ = other.taints_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureTaintsIsMutable(); - taints_.addAll(other.taints_); - } - onChanged(); - } - } else { - if (!other.taints_.isEmpty()) { - if (taintsBuilder_.isEmpty()) { - taintsBuilder_.dispose(); - taintsBuilder_ = null; - taints_ = other.taints_; - bitField0_ = (bitField0_ & ~0x00000020); - taintsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTaintsFieldBuilder() : null; - } else { - taintsBuilder_.addAllMessages(other.taints_); - } - } - } - if (!other.getBootDiskKmsKey().isEmpty()) { - bootDiskKmsKey_ = other.bootDiskKmsKey_; - onChanged(); - } - if (other.hasShieldedInstanceConfig()) { - mergeShieldedInstanceConfig(other.getShieldedInstanceConfig()); - } - if (other.hasLinuxNodeConfig()) { - mergeLinuxNodeConfig(other.getLinuxNodeConfig()); - } - if (other.hasKubeletConfig()) { - mergeKubeletConfig(other.getKubeletConfig()); - } - if (other.hasEphemeralStorageConfig()) { - mergeEphemeralStorageConfig(other.getEphemeralStorageConfig()); - } - 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()); - } - internalGetMutableResourceLabels().mergeFrom( - other.internalGetResourceLabels()); - 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: { - machineType_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - diskSizeGb_ = input.readInt32(); - - 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()); - break; - } // case 34 - case 42: { - imageType_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } // case 50 - case 56: { - localSsdCount_ = input.readInt32(); - - break; - } // case 56 - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - ensureTagsIsMutable(); - tags_.add(s); - break; - } // case 66 - case 74: { - serviceAccount_ = input.readStringRequireUtf8(); - - break; - } // case 74 - case 80: { - preemptible_ = input.readBool(); - - 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(); - - break; - } // case 98 - case 106: { - minCpuPlatform_ = input.readStringRequireUtf8(); - - break; - } // case 106 - case 114: { - input.readMessage( - getWorkloadMetadataConfigFieldBuilder().getBuilder(), - extensionRegistry); - - 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); - - break; - } // case 138 - case 146: { - nodeGroup_ = input.readStringRequireUtf8(); - - break; - } // case 146 - case 154: { - input.readMessage( - getReservationAffinityFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 154 - case 162: { - input.readMessage( - getShieldedInstanceConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 162 - case 170: { - input.readMessage( - getLinuxNodeConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 170 - case 178: { - input.readMessage( - getKubeletConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 178 - case 186: { - bootDiskKmsKey_ = input.readStringRequireUtf8(); - - break; - } // case 186 - case 194: { - input.readMessage( - getEphemeralStorageConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 194 - case 202: { - input.readMessage( - getGcfsConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 202 - case 210: { - input.readMessage( - getAdvancedMachineFeaturesFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 210 - case 234: { - input.readMessage( - getGvnicFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 234 - case 256: { - spot_ = input.readBool(); - - break; - } // case 256 - case 282: { - input.readMessage( - getConfidentialNodesFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 282 - case 298: { - com.google.protobuf.MapEntry - resourceLabels__ = input.readMessage( - ResourceLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableResourceLabels().getMutableMap().put( - resourceLabels__.getKey(), resourceLabels__.getValue()); - break; - } // case 298 - case 306: { - input.readMessage( - getLoggingConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 306 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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 machineType_ = ""; - /** - *
-     * The name of a Google Compute Engine [machine
-     * type](https://cloud.google.com/compute/docs/machine-types).
-     * If unspecified, the default machine type is
-     * `e2-medium`.
-     * 
- * - * string machine_type = 1; - * @return The machineType. - */ - public java.lang.String getMachineType() { - java.lang.Object ref = machineType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - machineType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name of a Google Compute Engine [machine
-     * type](https://cloud.google.com/compute/docs/machine-types).
-     * If unspecified, the default machine type is
-     * `e2-medium`.
-     * 
- * - * string machine_type = 1; - * @return The bytes for machineType. - */ - public com.google.protobuf.ByteString - getMachineTypeBytes() { - java.lang.Object ref = machineType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - machineType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name of a Google Compute Engine [machine
-     * type](https://cloud.google.com/compute/docs/machine-types).
-     * If unspecified, the default machine type is
-     * `e2-medium`.
-     * 
- * - * string machine_type = 1; - * @param value The machineType to set. - * @return This builder for chaining. - */ - public Builder setMachineType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - machineType_ = value; - onChanged(); - return this; - } - /** - *
-     * The name of a Google Compute Engine [machine
-     * type](https://cloud.google.com/compute/docs/machine-types).
-     * If unspecified, the default machine type is
-     * `e2-medium`.
-     * 
- * - * string machine_type = 1; - * @return This builder for chaining. - */ - public Builder clearMachineType() { - - machineType_ = getDefaultInstance().getMachineType(); - onChanged(); - return this; - } - /** - *
-     * The name of a Google Compute Engine [machine
-     * type](https://cloud.google.com/compute/docs/machine-types).
-     * If unspecified, the default machine type is
-     * `e2-medium`.
-     * 
- * - * string machine_type = 1; - * @param value The bytes for machineType to set. - * @return This builder for chaining. - */ - public Builder setMachineTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - machineType_ = value; - onChanged(); - return this; - } - - private int diskSizeGb_ ; - /** - *
-     * Size of the disk attached to each node, specified in GB.
-     * The smallest allowed disk size is 10GB.
-     * If unspecified, the default disk size is 100GB.
-     * 
- * - * int32 disk_size_gb = 2; - * @return The diskSizeGb. - */ - @java.lang.Override - public int getDiskSizeGb() { - return diskSizeGb_; - } - /** - *
-     * Size of the disk attached to each node, specified in GB.
-     * The smallest allowed disk size is 10GB.
-     * If unspecified, the default disk size is 100GB.
-     * 
- * - * int32 disk_size_gb = 2; - * @param value The diskSizeGb to set. - * @return This builder for chaining. - */ - public Builder setDiskSizeGb(int value) { - - diskSizeGb_ = value; - onChanged(); - return this; - } - /** - *
-     * Size of the disk attached to each node, specified in GB.
-     * The smallest allowed disk size is 10GB.
-     * If unspecified, the default disk size is 100GB.
-     * 
- * - * int32 disk_size_gb = 2; - * @return This builder for chaining. - */ - public Builder clearDiskSizeGb() { - - diskSizeGb_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureOauthScopesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - oauthScopes_ = new com.google.protobuf.LazyStringArrayList(oauthScopes_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](https://cloud.google.com/container-registry/)).
-     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-     * Monitoring are enabled, in which case their required scopes will be added.
-     * 
- * - * repeated string oauth_scopes = 3; - * @return A list containing the oauthScopes. - */ - public com.google.protobuf.ProtocolStringList - getOauthScopesList() { - return oauthScopes_.getUnmodifiableView(); - } - /** - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](https://cloud.google.com/container-registry/)).
-     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-     * Monitoring are enabled, in which case their required scopes will be added.
-     * 
- * - * repeated string oauth_scopes = 3; - * @return The count of oauthScopes. - */ - public int getOauthScopesCount() { - return oauthScopes_.size(); - } - /** - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](https://cloud.google.com/container-registry/)).
-     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-     * Monitoring are enabled, in which case their required scopes will be added.
-     * 
- * - * repeated string oauth_scopes = 3; - * @param index The index of the element to return. - * @return The oauthScopes at the given index. - */ - public java.lang.String getOauthScopes(int index) { - return oauthScopes_.get(index); - } - /** - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](https://cloud.google.com/container-registry/)).
-     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-     * Monitoring are enabled, in which case their required scopes will be added.
-     * 
- * - * repeated string oauth_scopes = 3; - * @param index The index of the value to return. - * @return The bytes of the oauthScopes at the given index. - */ - public com.google.protobuf.ByteString - getOauthScopesBytes(int index) { - return oauthScopes_.getByteString(index); - } - /** - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](https://cloud.google.com/container-registry/)).
-     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-     * Monitoring are enabled, in which case their required scopes will be added.
-     * 
- * - * repeated string oauth_scopes = 3; - * @param index The index to set the value at. - * @param value The oauthScopes to set. - * @return This builder for chaining. - */ - public Builder setOauthScopes( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureOauthScopesIsMutable(); - oauthScopes_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](https://cloud.google.com/container-registry/)).
-     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-     * Monitoring are enabled, in which case their required scopes will be added.
-     * 
- * - * repeated string oauth_scopes = 3; - * @param value The oauthScopes to add. - * @return This builder for chaining. - */ - public Builder addOauthScopes( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureOauthScopesIsMutable(); - oauthScopes_.add(value); - onChanged(); - return this; - } - /** - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](https://cloud.google.com/container-registry/)).
-     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-     * Monitoring are enabled, in which case their required scopes will be added.
-     * 
- * - * repeated string oauth_scopes = 3; - * @param values The oauthScopes to add. - * @return This builder for chaining. - */ - public Builder addAllOauthScopes( - java.lang.Iterable values) { - ensureOauthScopesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, oauthScopes_); - onChanged(); - return this; - } - /** - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](https://cloud.google.com/container-registry/)).
-     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-     * Monitoring are enabled, in which case their required scopes will be added.
-     * 
- * - * repeated string oauth_scopes = 3; - * @return This builder for chaining. - */ - public Builder clearOauthScopes() { - oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](https://cloud.google.com/container-registry/)).
-     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-     * Monitoring are enabled, in which case their required scopes will be added.
-     * 
- * - * repeated string oauth_scopes = 3; - * @param value The bytes of the oauthScopes to add. - * @return This builder for chaining. - */ - public Builder addOauthScopesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureOauthScopesIsMutable(); - oauthScopes_.add(value); - onChanged(); - return this; - } - - private java.lang.Object serviceAccount_ = ""; - /** - *
-     * The Google Cloud Platform Service Account to be used by the node VMs.
-     * Specify the email address of the Service Account; otherwise, if no Service
-     * Account is specified, the "default" service account is used.
-     * 
- * - * string service_account = 9; - * @return The serviceAccount. - */ - public java.lang.String getServiceAccount() { - java.lang.Object ref = serviceAccount_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceAccount_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The Google Cloud Platform Service Account to be used by the node VMs.
-     * Specify the email address of the Service Account; otherwise, if no Service
-     * Account is specified, the "default" service account is used.
-     * 
- * - * string service_account = 9; - * @return The bytes for serviceAccount. - */ - public com.google.protobuf.ByteString - getServiceAccountBytes() { - java.lang.Object ref = serviceAccount_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serviceAccount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The Google Cloud Platform Service Account to be used by the node VMs.
-     * Specify the email address of the Service Account; otherwise, if no Service
-     * Account is specified, the "default" service account is used.
-     * 
- * - * string service_account = 9; - * @param value The serviceAccount to set. - * @return This builder for chaining. - */ - public Builder setServiceAccount( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - serviceAccount_ = value; - onChanged(); - return this; - } - /** - *
-     * The Google Cloud Platform Service Account to be used by the node VMs.
-     * Specify the email address of the Service Account; otherwise, if no Service
-     * Account is specified, the "default" service account is used.
-     * 
- * - * string service_account = 9; - * @return This builder for chaining. - */ - public Builder clearServiceAccount() { - - serviceAccount_ = getDefaultInstance().getServiceAccount(); - onChanged(); - return this; - } - /** - *
-     * The Google Cloud Platform Service Account to be used by the node VMs.
-     * Specify the email address of the Service Account; otherwise, if no Service
-     * Account is specified, the "default" service account is used.
-     * 
- * - * string service_account = 9; - * @param value The bytes for serviceAccount to set. - * @return This builder for chaining. - */ - public Builder setServiceAccountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - serviceAccount_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> metadata_; - private com.google.protobuf.MapField - internalGetMetadata() { - if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MetadataDefaultEntryHolder.defaultEntry); - } - return metadata_; - } - private com.google.protobuf.MapField - internalGetMutableMetadata() { - onChanged();; - if (metadata_ == null) { - metadata_ = com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); - } - if (!metadata_.isMutable()) { - metadata_ = metadata_.copy(); - } - return metadata_; - } - - public int getMetadataCount() { - return internalGetMetadata().getMap().size(); - } - /** - *
-     * The metadata key/value pairs assigned to instances in the cluster.
-     * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
-     * in length. These are reflected as part of a URL in the metadata server.
-     * Additionally, to avoid ambiguity, keys must not conflict with any other
-     * metadata keys for the project or be one of the reserved keys:
-     *  - "cluster-location"
-     *  - "cluster-name"
-     *  - "cluster-uid"
-     *  - "configure-sh"
-     *  - "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 java.lang.String getMetadataOrDefault( - java.lang.String key, - 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() { - 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() { - 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); - 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); - return this; - } - - private java.lang.Object imageType_ = ""; - /** - *
-     * The image type to use for this node. Note that for a given image type,
-     * the latest version of it will be used.
-     * 
- * - * string image_type = 5; - * @return The imageType. - */ - public java.lang.String getImageType() { - java.lang.Object ref = imageType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - imageType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The image type to use for this node. Note that for a given image type,
-     * the latest version of it will be used.
-     * 
- * - * string image_type = 5; - * @return The bytes for imageType. - */ - public com.google.protobuf.ByteString - getImageTypeBytes() { - java.lang.Object ref = imageType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - imageType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The image type to use for this node. Note that for a given image type,
-     * the latest version of it will be used.
-     * 
- * - * string image_type = 5; - * @param value The imageType to set. - * @return This builder for chaining. - */ - public Builder setImageType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - imageType_ = value; - onChanged(); - return this; - } - /** - *
-     * The image type to use for this node. Note that for a given image type,
-     * the latest version of it will be used.
-     * 
- * - * string image_type = 5; - * @return This builder for chaining. - */ - public Builder clearImageType() { - - imageType_ = getDefaultInstance().getImageType(); - onChanged(); - return this; - } - /** - *
-     * The image type to use for this node. Note that for a given image type,
-     * the latest version of it will be used.
-     * 
- * - * string image_type = 5; - * @param value The bytes for imageType to set. - * @return This builder for chaining. - */ - public Builder setImageTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - imageType_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - *
-     * The map of Kubernetes labels (key/value pairs) to be applied to each node.
-     * These will added in addition to any default label(s) that
-     * Kubernetes may apply to the node.
-     * In case of conflict in label keys, the applied set may differ depending on
-     * the Kubernetes version -- it's best to assume the behavior is undefined
-     * and conflicts should be avoided.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-     * 
- * - * map<string, string> labels = 6; - */ - - @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 java.lang.String getLabelsOrDefault( - java.lang.String key, - 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() { - 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() { - 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); - return this; - } - /** - *
-     * The map of Kubernetes labels (key/value pairs) to be applied to each node.
-     * These will added in addition to any default label(s) that
-     * Kubernetes may apply to the node.
-     * In case of conflict in label keys, the applied set may differ depending on
-     * the Kubernetes version -- it's best to assume the behavior is undefined
-     * and conflicts should be avoided.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-     * 
- * - * map<string, string> labels = 6; - */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); - return this; - } - - private int localSsdCount_ ; - /** - *
-     * The number of local SSD disks to be attached to the node.
-     * The limit for this value is dependent upon the maximum number of
-     * disks available on a machine per zone. See:
-     * https://cloud.google.com/compute/docs/disks/local-ssd
-     * for more information.
-     * 
- * - * int32 local_ssd_count = 7; - * @return The localSsdCount. - */ - @java.lang.Override - public int getLocalSsdCount() { - return localSsdCount_; - } - /** - *
-     * The number of local SSD disks to be attached to the node.
-     * The limit for this value is dependent upon the maximum number of
-     * disks available on a machine per zone. See:
-     * https://cloud.google.com/compute/docs/disks/local-ssd
-     * for more information.
-     * 
- * - * int32 local_ssd_count = 7; - * @param value The localSsdCount to set. - * @return This builder for chaining. - */ - public Builder setLocalSsdCount(int value) { - - localSsdCount_ = value; - onChanged(); - return this; - } - /** - *
-     * The number of local SSD disks to be attached to the node.
-     * The limit for this value is dependent upon the maximum number of
-     * disks available on a machine per zone. See:
-     * https://cloud.google.com/compute/docs/disks/local-ssd
-     * for more information.
-     * 
- * - * int32 local_ssd_count = 7; - * @return This builder for chaining. - */ - public Builder clearLocalSsdCount() { - - localSsdCount_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTagsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - tags_ = new com.google.protobuf.LazyStringArrayList(tags_); - bitField0_ |= 0x00000008; - } - } - /** - *
-     * The list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * @return A list containing the tags. - */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_.getUnmodifiableView(); - } - /** - *
-     * The list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * @return The count of tags. - */ - public int getTagsCount() { - return tags_.size(); - } - /** - *
-     * The list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * @param index The index of the element to return. - * @return The tags at the given index. - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - *
-     * The list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(index); - } - /** - *
-     * The list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * @param index The index to set the value at. - * @param value The tags to set. - * @return This builder for chaining. - */ - public Builder setTags( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * The list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * @param value The tags to add. - * @return This builder for chaining. - */ - public Builder addTags( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; - } - /** - *
-     * The list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * @param values The tags to add. - * @return This builder for chaining. - */ - public Builder addAllTags( - java.lang.Iterable values) { - ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tags_); - onChanged(); - return this; - } - /** - *
-     * The list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * @return This builder for chaining. - */ - public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - *
-     * The list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * @param value The bytes of the tags to add. - * @return This builder for chaining. - */ - public Builder addTagsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; - } - - private boolean preemptible_ ; - /** - *
-     * Whether the nodes are created as preemptible VM instances. See:
-     * https://cloud.google.com/compute/docs/instances/preemptible for more
-     * inforamtion about preemptible VM instances.
-     * 
- * - * bool preemptible = 10; - * @return The preemptible. - */ - @java.lang.Override - public boolean getPreemptible() { - return preemptible_; - } - /** - *
-     * Whether the nodes are created as preemptible VM instances. See:
-     * https://cloud.google.com/compute/docs/instances/preemptible for more
-     * inforamtion about preemptible VM instances.
-     * 
- * - * bool preemptible = 10; - * @param value The preemptible to set. - * @return This builder for chaining. - */ - public Builder setPreemptible(boolean value) { - - preemptible_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether the nodes are created as preemptible VM instances. See:
-     * https://cloud.google.com/compute/docs/instances/preemptible for more
-     * inforamtion about preemptible VM instances.
-     * 
- * - * bool preemptible = 10; - * @return This builder for chaining. - */ - public Builder clearPreemptible() { - - preemptible_ = false; - onChanged(); - return this; - } - - private java.util.List accelerators_ = - java.util.Collections.emptyList(); - private void ensureAcceleratorsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - accelerators_ = new java.util.ArrayList(accelerators_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.AcceleratorConfig, com.google.container.v1beta1.AcceleratorConfig.Builder, com.google.container.v1beta1.AcceleratorConfigOrBuilder> acceleratorsBuilder_; - - /** - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - public java.util.List getAcceleratorsList() { - if (acceleratorsBuilder_ == null) { - return java.util.Collections.unmodifiableList(accelerators_); - } else { - return acceleratorsBuilder_.getMessageList(); - } - } - /** - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - public int getAcceleratorsCount() { - if (acceleratorsBuilder_ == null) { - return accelerators_.size(); - } else { - return acceleratorsBuilder_.getCount(); - } - } - /** - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - public com.google.container.v1beta1.AcceleratorConfig getAccelerators(int index) { - if (acceleratorsBuilder_ == null) { - return accelerators_.get(index); - } else { - return acceleratorsBuilder_.getMessage(index); - } - } - /** - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - public Builder setAccelerators( - int index, com.google.container.v1beta1.AcceleratorConfig value) { - if (acceleratorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAcceleratorsIsMutable(); - accelerators_.set(index, value); - onChanged(); - } else { - acceleratorsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - public Builder setAccelerators( - int index, com.google.container.v1beta1.AcceleratorConfig.Builder builderForValue) { - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - accelerators_.set(index, builderForValue.build()); - onChanged(); - } else { - acceleratorsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - public Builder addAccelerators(com.google.container.v1beta1.AcceleratorConfig value) { - if (acceleratorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAcceleratorsIsMutable(); - accelerators_.add(value); - onChanged(); - } else { - acceleratorsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - public Builder addAccelerators( - int index, com.google.container.v1beta1.AcceleratorConfig value) { - if (acceleratorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAcceleratorsIsMutable(); - accelerators_.add(index, value); - onChanged(); - } else { - acceleratorsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - public Builder addAccelerators( - com.google.container.v1beta1.AcceleratorConfig.Builder builderForValue) { - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - accelerators_.add(builderForValue.build()); - onChanged(); - } else { - acceleratorsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - public Builder addAccelerators( - int index, com.google.container.v1beta1.AcceleratorConfig.Builder builderForValue) { - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - accelerators_.add(index, builderForValue.build()); - onChanged(); - } else { - acceleratorsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - public Builder addAllAccelerators( - java.lang.Iterable values) { - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, accelerators_); - onChanged(); - } else { - acceleratorsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - public Builder clearAccelerators() { - if (acceleratorsBuilder_ == null) { - accelerators_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - acceleratorsBuilder_.clear(); - } - return this; - } - /** - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - public Builder removeAccelerators(int index) { - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - accelerators_.remove(index); - onChanged(); - } else { - acceleratorsBuilder_.remove(index); - } - return this; - } - /** - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - public com.google.container.v1beta1.AcceleratorConfig.Builder getAcceleratorsBuilder( - int index) { - return getAcceleratorsFieldBuilder().getBuilder(index); - } - /** - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - public com.google.container.v1beta1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder( - int index) { - if (acceleratorsBuilder_ == null) { - return accelerators_.get(index); } else { - return acceleratorsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - public java.util.List - getAcceleratorsOrBuilderList() { - if (acceleratorsBuilder_ != null) { - return acceleratorsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(accelerators_); - } - } - /** - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - public com.google.container.v1beta1.AcceleratorConfig.Builder addAcceleratorsBuilder() { - return getAcceleratorsFieldBuilder().addBuilder( - com.google.container.v1beta1.AcceleratorConfig.getDefaultInstance()); - } - /** - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - public com.google.container.v1beta1.AcceleratorConfig.Builder addAcceleratorsBuilder( - int index) { - return getAcceleratorsFieldBuilder().addBuilder( - index, com.google.container.v1beta1.AcceleratorConfig.getDefaultInstance()); - } - /** - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - public java.util.List - getAcceleratorsBuilderList() { - return getAcceleratorsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.AcceleratorConfig, com.google.container.v1beta1.AcceleratorConfig.Builder, com.google.container.v1beta1.AcceleratorConfigOrBuilder> - getAcceleratorsFieldBuilder() { - if (acceleratorsBuilder_ == null) { - acceleratorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.AcceleratorConfig, com.google.container.v1beta1.AcceleratorConfig.Builder, com.google.container.v1beta1.AcceleratorConfigOrBuilder>( - accelerators_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - accelerators_ = null; - } - return acceleratorsBuilder_; - } - - private com.google.container.v1beta1.SandboxConfig sandboxConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.SandboxConfig, com.google.container.v1beta1.SandboxConfig.Builder, com.google.container.v1beta1.SandboxConfigOrBuilder> sandboxConfigBuilder_; - /** - *
-     * Sandbox configuration for this node.
-     * 
- * - * .google.container.v1beta1.SandboxConfig sandbox_config = 17; - * @return Whether the sandboxConfig field is set. - */ - public boolean hasSandboxConfig() { - return sandboxConfigBuilder_ != null || sandboxConfig_ != null; - } - /** - *
-     * Sandbox configuration for this node.
-     * 
- * - * .google.container.v1beta1.SandboxConfig sandbox_config = 17; - * @return The sandboxConfig. - */ - public com.google.container.v1beta1.SandboxConfig getSandboxConfig() { - if (sandboxConfigBuilder_ == null) { - return sandboxConfig_ == null ? com.google.container.v1beta1.SandboxConfig.getDefaultInstance() : sandboxConfig_; - } else { - return sandboxConfigBuilder_.getMessage(); - } - } - /** - *
-     * Sandbox configuration for this node.
-     * 
- * - * .google.container.v1beta1.SandboxConfig sandbox_config = 17; - */ - public Builder setSandboxConfig(com.google.container.v1beta1.SandboxConfig value) { - if (sandboxConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sandboxConfig_ = value; - onChanged(); - } else { - sandboxConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Sandbox configuration for this node.
-     * 
- * - * .google.container.v1beta1.SandboxConfig sandbox_config = 17; - */ - public Builder setSandboxConfig( - com.google.container.v1beta1.SandboxConfig.Builder builderForValue) { - if (sandboxConfigBuilder_ == null) { - sandboxConfig_ = builderForValue.build(); - onChanged(); - } else { - sandboxConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Sandbox configuration for this node.
-     * 
- * - * .google.container.v1beta1.SandboxConfig sandbox_config = 17; - */ - public Builder mergeSandboxConfig(com.google.container.v1beta1.SandboxConfig value) { - if (sandboxConfigBuilder_ == null) { - if (sandboxConfig_ != null) { - sandboxConfig_ = - com.google.container.v1beta1.SandboxConfig.newBuilder(sandboxConfig_).mergeFrom(value).buildPartial(); - } else { - sandboxConfig_ = value; - } - onChanged(); - } else { - sandboxConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Sandbox configuration for this node.
-     * 
- * - * .google.container.v1beta1.SandboxConfig sandbox_config = 17; - */ - public Builder clearSandboxConfig() { - if (sandboxConfigBuilder_ == null) { - sandboxConfig_ = null; - onChanged(); - } else { - sandboxConfig_ = null; - sandboxConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Sandbox configuration for this node.
-     * 
- * - * .google.container.v1beta1.SandboxConfig sandbox_config = 17; - */ - public com.google.container.v1beta1.SandboxConfig.Builder getSandboxConfigBuilder() { - - onChanged(); - return getSandboxConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Sandbox configuration for this node.
-     * 
- * - * .google.container.v1beta1.SandboxConfig sandbox_config = 17; - */ - public com.google.container.v1beta1.SandboxConfigOrBuilder getSandboxConfigOrBuilder() { - if (sandboxConfigBuilder_ != null) { - return sandboxConfigBuilder_.getMessageOrBuilder(); - } else { - return sandboxConfig_ == null ? - com.google.container.v1beta1.SandboxConfig.getDefaultInstance() : sandboxConfig_; - } - } - /** - *
-     * Sandbox configuration for this node.
-     * 
- * - * .google.container.v1beta1.SandboxConfig sandbox_config = 17; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.SandboxConfig, com.google.container.v1beta1.SandboxConfig.Builder, com.google.container.v1beta1.SandboxConfigOrBuilder> - getSandboxConfigFieldBuilder() { - if (sandboxConfigBuilder_ == null) { - sandboxConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.SandboxConfig, com.google.container.v1beta1.SandboxConfig.Builder, com.google.container.v1beta1.SandboxConfigOrBuilder>( - getSandboxConfig(), - getParentForChildren(), - isClean()); - sandboxConfig_ = null; - } - return sandboxConfigBuilder_; - } - - private java.lang.Object nodeGroup_ = ""; - /** - *
-     * Setting this field will assign instances of this
-     * pool to run on the specified node group. This is useful for running
-     * workloads on [sole tenant
-     * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
-     * 
- * - * string node_group = 18; - * @return The nodeGroup. - */ - public java.lang.String getNodeGroup() { - java.lang.Object ref = nodeGroup_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeGroup_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Setting this field will assign instances of this
-     * pool to run on the specified node group. This is useful for running
-     * workloads on [sole tenant
-     * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
-     * 
- * - * string node_group = 18; - * @return The bytes for nodeGroup. - */ - public com.google.protobuf.ByteString - getNodeGroupBytes() { - java.lang.Object ref = nodeGroup_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodeGroup_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Setting this field will assign instances of this
-     * pool to run on the specified node group. This is useful for running
-     * workloads on [sole tenant
-     * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
-     * 
- * - * string node_group = 18; - * @param value The nodeGroup to set. - * @return This builder for chaining. - */ - public Builder setNodeGroup( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodeGroup_ = value; - onChanged(); - return this; - } - /** - *
-     * Setting this field will assign instances of this
-     * pool to run on the specified node group. This is useful for running
-     * workloads on [sole tenant
-     * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
-     * 
- * - * string node_group = 18; - * @return This builder for chaining. - */ - public Builder clearNodeGroup() { - - nodeGroup_ = getDefaultInstance().getNodeGroup(); - onChanged(); - return this; - } - /** - *
-     * Setting this field will assign instances of this
-     * pool to run on the specified node group. This is useful for running
-     * workloads on [sole tenant
-     * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
-     * 
- * - * string node_group = 18; - * @param value The bytes for nodeGroup to set. - * @return This builder for chaining. - */ - public Builder setNodeGroupBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodeGroup_ = value; - onChanged(); - return this; - } - - private com.google.container.v1beta1.ReservationAffinity reservationAffinity_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ReservationAffinity, com.google.container.v1beta1.ReservationAffinity.Builder, com.google.container.v1beta1.ReservationAffinityOrBuilder> reservationAffinityBuilder_; - /** - *
-     * The optional reservation affinity. Setting this field will apply
-     * the specified [Zonal Compute
-     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-     * to this node pool.
-     * 
- * - * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; - * @return Whether the reservationAffinity field is set. - */ - public boolean hasReservationAffinity() { - return reservationAffinityBuilder_ != null || reservationAffinity_ != null; - } - /** - *
-     * The optional reservation affinity. Setting this field will apply
-     * the specified [Zonal Compute
-     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-     * to this node pool.
-     * 
- * - * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; - * @return The reservationAffinity. - */ - public com.google.container.v1beta1.ReservationAffinity getReservationAffinity() { - if (reservationAffinityBuilder_ == null) { - return reservationAffinity_ == null ? com.google.container.v1beta1.ReservationAffinity.getDefaultInstance() : reservationAffinity_; - } else { - return reservationAffinityBuilder_.getMessage(); - } - } - /** - *
-     * The optional reservation affinity. Setting this field will apply
-     * the specified [Zonal Compute
-     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-     * to this node pool.
-     * 
- * - * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; - */ - public Builder setReservationAffinity(com.google.container.v1beta1.ReservationAffinity value) { - if (reservationAffinityBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - reservationAffinity_ = value; - onChanged(); - } else { - reservationAffinityBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The optional reservation affinity. Setting this field will apply
-     * the specified [Zonal Compute
-     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-     * to this node pool.
-     * 
- * - * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; - */ - public Builder setReservationAffinity( - com.google.container.v1beta1.ReservationAffinity.Builder builderForValue) { - if (reservationAffinityBuilder_ == null) { - reservationAffinity_ = builderForValue.build(); - onChanged(); - } else { - reservationAffinityBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The optional reservation affinity. Setting this field will apply
-     * the specified [Zonal Compute
-     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-     * to this node pool.
-     * 
- * - * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; - */ - public Builder mergeReservationAffinity(com.google.container.v1beta1.ReservationAffinity value) { - if (reservationAffinityBuilder_ == null) { - if (reservationAffinity_ != null) { - reservationAffinity_ = - com.google.container.v1beta1.ReservationAffinity.newBuilder(reservationAffinity_).mergeFrom(value).buildPartial(); - } else { - reservationAffinity_ = value; - } - onChanged(); - } else { - reservationAffinityBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The optional reservation affinity. Setting this field will apply
-     * the specified [Zonal Compute
-     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-     * to this node pool.
-     * 
- * - * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; - */ - public Builder clearReservationAffinity() { - if (reservationAffinityBuilder_ == null) { - reservationAffinity_ = null; - onChanged(); - } else { - reservationAffinity_ = null; - reservationAffinityBuilder_ = null; - } - - return this; - } - /** - *
-     * The optional reservation affinity. Setting this field will apply
-     * the specified [Zonal Compute
-     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-     * to this node pool.
-     * 
- * - * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; - */ - public com.google.container.v1beta1.ReservationAffinity.Builder getReservationAffinityBuilder() { - - onChanged(); - return getReservationAffinityFieldBuilder().getBuilder(); - } - /** - *
-     * The optional reservation affinity. Setting this field will apply
-     * the specified [Zonal Compute
-     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-     * to this node pool.
-     * 
- * - * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; - */ - public com.google.container.v1beta1.ReservationAffinityOrBuilder getReservationAffinityOrBuilder() { - if (reservationAffinityBuilder_ != null) { - return reservationAffinityBuilder_.getMessageOrBuilder(); - } else { - return reservationAffinity_ == null ? - com.google.container.v1beta1.ReservationAffinity.getDefaultInstance() : reservationAffinity_; - } - } - /** - *
-     * The optional reservation affinity. Setting this field will apply
-     * the specified [Zonal Compute
-     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-     * to this node pool.
-     * 
- * - * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ReservationAffinity, com.google.container.v1beta1.ReservationAffinity.Builder, com.google.container.v1beta1.ReservationAffinityOrBuilder> - getReservationAffinityFieldBuilder() { - if (reservationAffinityBuilder_ == null) { - reservationAffinityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ReservationAffinity, com.google.container.v1beta1.ReservationAffinity.Builder, com.google.container.v1beta1.ReservationAffinityOrBuilder>( - getReservationAffinity(), - getParentForChildren(), - isClean()); - reservationAffinity_ = null; - } - return reservationAffinityBuilder_; - } - - private java.lang.Object diskType_ = ""; - /** - *
-     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-     * 'pd-balanced')
-     * If unspecified, the default disk type is 'pd-standard'
-     * 
- * - * string disk_type = 12; - * @return The diskType. - */ - public java.lang.String getDiskType() { - java.lang.Object ref = diskType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - diskType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-     * 'pd-balanced')
-     * If unspecified, the default disk type is 'pd-standard'
-     * 
- * - * string disk_type = 12; - * @return The bytes for diskType. - */ - public com.google.protobuf.ByteString - getDiskTypeBytes() { - java.lang.Object ref = diskType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - diskType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-     * 'pd-balanced')
-     * If unspecified, the default disk type is 'pd-standard'
-     * 
- * - * string disk_type = 12; - * @param value The diskType to set. - * @return This builder for chaining. - */ - public Builder setDiskType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - diskType_ = value; - onChanged(); - return this; - } - /** - *
-     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-     * 'pd-balanced')
-     * If unspecified, the default disk type is 'pd-standard'
-     * 
- * - * string disk_type = 12; - * @return This builder for chaining. - */ - public Builder clearDiskType() { - - diskType_ = getDefaultInstance().getDiskType(); - onChanged(); - return this; - } - /** - *
-     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-     * 'pd-balanced')
-     * If unspecified, the default disk type is 'pd-standard'
-     * 
- * - * string disk_type = 12; - * @param value The bytes for diskType to set. - * @return This builder for chaining. - */ - public Builder setDiskTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - diskType_ = value; - onChanged(); - return this; - } - - private java.lang.Object minCpuPlatform_ = ""; - /** - *
-     * Minimum CPU platform to be used by this instance. The instance may be
-     * scheduled on the specified or newer CPU platform. Applicable values are the
-     * friendly names of CPU platforms, such as
-     * `minCpuPlatform: "Intel Haswell"` or
-     * `minCpuPlatform: "Intel Sandy Bridge"`. For more
-     * information, read [how to specify min CPU
-     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
-     * 
- * - * string min_cpu_platform = 13; - * @return The minCpuPlatform. - */ - public java.lang.String getMinCpuPlatform() { - java.lang.Object ref = minCpuPlatform_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - minCpuPlatform_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Minimum CPU platform to be used by this instance. The instance may be
-     * scheduled on the specified or newer CPU platform. Applicable values are the
-     * friendly names of CPU platforms, such as
-     * `minCpuPlatform: "Intel Haswell"` or
-     * `minCpuPlatform: "Intel Sandy Bridge"`. For more
-     * information, read [how to specify min CPU
-     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
-     * 
- * - * string min_cpu_platform = 13; - * @return The bytes for minCpuPlatform. - */ - public com.google.protobuf.ByteString - getMinCpuPlatformBytes() { - java.lang.Object ref = minCpuPlatform_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - minCpuPlatform_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Minimum CPU platform to be used by this instance. The instance may be
-     * scheduled on the specified or newer CPU platform. Applicable values are the
-     * friendly names of CPU platforms, such as
-     * `minCpuPlatform: "Intel Haswell"` or
-     * `minCpuPlatform: "Intel Sandy Bridge"`. For more
-     * information, read [how to specify min CPU
-     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
-     * 
- * - * string min_cpu_platform = 13; - * @param value The minCpuPlatform to set. - * @return This builder for chaining. - */ - public Builder setMinCpuPlatform( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - minCpuPlatform_ = value; - onChanged(); - return this; - } - /** - *
-     * Minimum CPU platform to be used by this instance. The instance may be
-     * scheduled on the specified or newer CPU platform. Applicable values are the
-     * friendly names of CPU platforms, such as
-     * `minCpuPlatform: "Intel Haswell"` or
-     * `minCpuPlatform: "Intel Sandy Bridge"`. For more
-     * information, read [how to specify min CPU
-     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
-     * 
- * - * string min_cpu_platform = 13; - * @return This builder for chaining. - */ - public Builder clearMinCpuPlatform() { - - minCpuPlatform_ = getDefaultInstance().getMinCpuPlatform(); - onChanged(); - return this; - } - /** - *
-     * Minimum CPU platform to be used by this instance. The instance may be
-     * scheduled on the specified or newer CPU platform. Applicable values are the
-     * friendly names of CPU platforms, such as
-     * `minCpuPlatform: "Intel Haswell"` or
-     * `minCpuPlatform: "Intel Sandy Bridge"`. For more
-     * information, read [how to specify min CPU
-     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
-     * 
- * - * string min_cpu_platform = 13; - * @param value The bytes for minCpuPlatform to set. - * @return This builder for chaining. - */ - public Builder setMinCpuPlatformBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - minCpuPlatform_ = value; - onChanged(); - return this; - } - - private com.google.container.v1beta1.WorkloadMetadataConfig workloadMetadataConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WorkloadMetadataConfig, com.google.container.v1beta1.WorkloadMetadataConfig.Builder, com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder> workloadMetadataConfigBuilder_; - /** - *
-     * The workload metadata configuration for this node.
-     * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; - * @return Whether the workloadMetadataConfig field is set. - */ - public boolean hasWorkloadMetadataConfig() { - return workloadMetadataConfigBuilder_ != null || workloadMetadataConfig_ != null; - } - /** - *
-     * The workload metadata configuration for this node.
-     * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; - * @return The workloadMetadataConfig. - */ - public com.google.container.v1beta1.WorkloadMetadataConfig getWorkloadMetadataConfig() { - if (workloadMetadataConfigBuilder_ == null) { - return workloadMetadataConfig_ == null ? com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance() : workloadMetadataConfig_; - } else { - return workloadMetadataConfigBuilder_.getMessage(); - } - } - /** - *
-     * The workload metadata configuration for this node.
-     * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public Builder setWorkloadMetadataConfig(com.google.container.v1beta1.WorkloadMetadataConfig value) { - if (workloadMetadataConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workloadMetadataConfig_ = value; - onChanged(); - } else { - workloadMetadataConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The workload metadata configuration for this node.
-     * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public Builder setWorkloadMetadataConfig( - com.google.container.v1beta1.WorkloadMetadataConfig.Builder builderForValue) { - if (workloadMetadataConfigBuilder_ == null) { - workloadMetadataConfig_ = builderForValue.build(); - onChanged(); - } else { - workloadMetadataConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The workload metadata configuration for this node.
-     * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public Builder mergeWorkloadMetadataConfig(com.google.container.v1beta1.WorkloadMetadataConfig value) { - if (workloadMetadataConfigBuilder_ == null) { - if (workloadMetadataConfig_ != null) { - workloadMetadataConfig_ = - com.google.container.v1beta1.WorkloadMetadataConfig.newBuilder(workloadMetadataConfig_).mergeFrom(value).buildPartial(); - } else { - workloadMetadataConfig_ = value; - } - onChanged(); - } else { - workloadMetadataConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The workload metadata configuration for this node.
-     * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public Builder clearWorkloadMetadataConfig() { - if (workloadMetadataConfigBuilder_ == null) { - workloadMetadataConfig_ = null; - onChanged(); - } else { - workloadMetadataConfig_ = null; - workloadMetadataConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * The workload metadata configuration for this node.
-     * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public com.google.container.v1beta1.WorkloadMetadataConfig.Builder getWorkloadMetadataConfigBuilder() { - - onChanged(); - return getWorkloadMetadataConfigFieldBuilder().getBuilder(); - } - /** - *
-     * The workload metadata configuration for this node.
-     * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder getWorkloadMetadataConfigOrBuilder() { - if (workloadMetadataConfigBuilder_ != null) { - return workloadMetadataConfigBuilder_.getMessageOrBuilder(); - } else { - return workloadMetadataConfig_ == null ? - com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance() : workloadMetadataConfig_; - } - } - /** - *
-     * The workload metadata configuration for this node.
-     * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WorkloadMetadataConfig, com.google.container.v1beta1.WorkloadMetadataConfig.Builder, com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder> - getWorkloadMetadataConfigFieldBuilder() { - if (workloadMetadataConfigBuilder_ == null) { - workloadMetadataConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WorkloadMetadataConfig, com.google.container.v1beta1.WorkloadMetadataConfig.Builder, com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder>( - getWorkloadMetadataConfig(), - getParentForChildren(), - isClean()); - workloadMetadataConfig_ = null; - } - return workloadMetadataConfigBuilder_; - } - - private java.util.List taints_ = - java.util.Collections.emptyList(); - private void ensureTaintsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - taints_ = new java.util.ArrayList(taints_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.NodeTaint, com.google.container.v1beta1.NodeTaint.Builder, com.google.container.v1beta1.NodeTaintOrBuilder> taintsBuilder_; - - /** - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 15; - */ - public java.util.List getTaintsList() { - if (taintsBuilder_ == null) { - return java.util.Collections.unmodifiableList(taints_); - } else { - return taintsBuilder_.getMessageList(); - } - } - /** - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 15; - */ - public int getTaintsCount() { - if (taintsBuilder_ == null) { - return taints_.size(); - } else { - return taintsBuilder_.getCount(); - } - } - /** - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 15; - */ - public com.google.container.v1beta1.NodeTaint getTaints(int index) { - if (taintsBuilder_ == null) { - return taints_.get(index); - } else { - return taintsBuilder_.getMessage(index); - } - } - /** - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 15; - */ - public Builder setTaints( - int index, com.google.container.v1beta1.NodeTaint value) { - if (taintsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaintsIsMutable(); - taints_.set(index, value); - onChanged(); - } else { - taintsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 15; - */ - public Builder setTaints( - int index, com.google.container.v1beta1.NodeTaint.Builder builderForValue) { - if (taintsBuilder_ == null) { - ensureTaintsIsMutable(); - taints_.set(index, builderForValue.build()); - onChanged(); - } else { - taintsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 15; - */ - public Builder addTaints(com.google.container.v1beta1.NodeTaint value) { - if (taintsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaintsIsMutable(); - taints_.add(value); - onChanged(); - } else { - taintsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 15; - */ - public Builder addTaints( - int index, com.google.container.v1beta1.NodeTaint value) { - if (taintsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaintsIsMutable(); - taints_.add(index, value); - onChanged(); - } else { - taintsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 15; - */ - public Builder addTaints( - com.google.container.v1beta1.NodeTaint.Builder builderForValue) { - if (taintsBuilder_ == null) { - ensureTaintsIsMutable(); - taints_.add(builderForValue.build()); - onChanged(); - } else { - taintsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 15; - */ - public Builder addTaints( - int index, com.google.container.v1beta1.NodeTaint.Builder builderForValue) { - if (taintsBuilder_ == null) { - ensureTaintsIsMutable(); - taints_.add(index, builderForValue.build()); - onChanged(); - } else { - taintsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 15; - */ - public Builder addAllTaints( - java.lang.Iterable values) { - if (taintsBuilder_ == null) { - ensureTaintsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, taints_); - onChanged(); - } else { - taintsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 15; - */ - public Builder clearTaints() { - if (taintsBuilder_ == null) { - taints_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - taintsBuilder_.clear(); - } - return this; - } - /** - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 15; - */ - public Builder removeTaints(int index) { - if (taintsBuilder_ == null) { - ensureTaintsIsMutable(); - taints_.remove(index); - onChanged(); - } else { - taintsBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 15; - */ - public com.google.container.v1beta1.NodeTaint.Builder getTaintsBuilder( - int index) { - return getTaintsFieldBuilder().getBuilder(index); - } - /** - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 15; - */ - public com.google.container.v1beta1.NodeTaintOrBuilder getTaintsOrBuilder( - int index) { - if (taintsBuilder_ == null) { - return taints_.get(index); } else { - return taintsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 15; - */ - public java.util.List - getTaintsOrBuilderList() { - if (taintsBuilder_ != null) { - return taintsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(taints_); - } - } - /** - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 15; - */ - public com.google.container.v1beta1.NodeTaint.Builder addTaintsBuilder() { - return getTaintsFieldBuilder().addBuilder( - com.google.container.v1beta1.NodeTaint.getDefaultInstance()); - } - /** - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 15; - */ - public com.google.container.v1beta1.NodeTaint.Builder addTaintsBuilder( - int index) { - return getTaintsFieldBuilder().addBuilder( - index, com.google.container.v1beta1.NodeTaint.getDefaultInstance()); - } - /** - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 15; - */ - public java.util.List - getTaintsBuilderList() { - return getTaintsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.NodeTaint, com.google.container.v1beta1.NodeTaint.Builder, com.google.container.v1beta1.NodeTaintOrBuilder> - getTaintsFieldBuilder() { - if (taintsBuilder_ == null) { - taintsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.NodeTaint, com.google.container.v1beta1.NodeTaint.Builder, com.google.container.v1beta1.NodeTaintOrBuilder>( - taints_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); - taints_ = null; - } - return taintsBuilder_; - } - - private java.lang.Object bootDiskKmsKey_ = ""; - /** - *
-     * The Customer Managed Encryption Key used to encrypt the boot disk attached
-     * to each node in the node pool. This should be of the form
-     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-     * For more information about protecting resources with Cloud KMS Keys please
-     * see:
-     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-     * 
- * - * string boot_disk_kms_key = 23; - * @return The bootDiskKmsKey. - */ - public java.lang.String getBootDiskKmsKey() { - java.lang.Object ref = bootDiskKmsKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bootDiskKmsKey_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The Customer Managed Encryption Key used to encrypt the boot disk attached
-     * to each node in the node pool. This should be of the form
-     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-     * For more information about protecting resources with Cloud KMS Keys please
-     * see:
-     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-     * 
- * - * string boot_disk_kms_key = 23; - * @return The bytes for bootDiskKmsKey. - */ - public com.google.protobuf.ByteString - getBootDiskKmsKeyBytes() { - java.lang.Object ref = bootDiskKmsKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bootDiskKmsKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The Customer Managed Encryption Key used to encrypt the boot disk attached
-     * to each node in the node pool. This should be of the form
-     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-     * For more information about protecting resources with Cloud KMS Keys please
-     * see:
-     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-     * 
- * - * string boot_disk_kms_key = 23; - * @param value The bootDiskKmsKey to set. - * @return This builder for chaining. - */ - public Builder setBootDiskKmsKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - bootDiskKmsKey_ = value; - onChanged(); - return this; - } - /** - *
-     * The Customer Managed Encryption Key used to encrypt the boot disk attached
-     * to each node in the node pool. This should be of the form
-     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-     * For more information about protecting resources with Cloud KMS Keys please
-     * see:
-     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-     * 
- * - * string boot_disk_kms_key = 23; - * @return This builder for chaining. - */ - public Builder clearBootDiskKmsKey() { - - bootDiskKmsKey_ = getDefaultInstance().getBootDiskKmsKey(); - onChanged(); - return this; - } - /** - *
-     * The Customer Managed Encryption Key used to encrypt the boot disk attached
-     * to each node in the node pool. This should be of the form
-     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-     * For more information about protecting resources with Cloud KMS Keys please
-     * see:
-     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-     * 
- * - * string boot_disk_kms_key = 23; - * @param value The bytes for bootDiskKmsKey to set. - * @return This builder for chaining. - */ - public Builder setBootDiskKmsKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - bootDiskKmsKey_ = value; - onChanged(); - return this; - } - - private com.google.container.v1beta1.ShieldedInstanceConfig shieldedInstanceConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ShieldedInstanceConfig, com.google.container.v1beta1.ShieldedInstanceConfig.Builder, com.google.container.v1beta1.ShieldedInstanceConfigOrBuilder> shieldedInstanceConfigBuilder_; - /** - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; - * @return Whether the shieldedInstanceConfig field is set. - */ - public boolean hasShieldedInstanceConfig() { - return shieldedInstanceConfigBuilder_ != null || shieldedInstanceConfig_ != null; - } - /** - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; - * @return The shieldedInstanceConfig. - */ - public com.google.container.v1beta1.ShieldedInstanceConfig getShieldedInstanceConfig() { - if (shieldedInstanceConfigBuilder_ == null) { - return shieldedInstanceConfig_ == null ? com.google.container.v1beta1.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; - } else { - return shieldedInstanceConfigBuilder_.getMessage(); - } - } - /** - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - public Builder setShieldedInstanceConfig(com.google.container.v1beta1.ShieldedInstanceConfig value) { - if (shieldedInstanceConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - shieldedInstanceConfig_ = value; - onChanged(); - } else { - shieldedInstanceConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - public Builder setShieldedInstanceConfig( - com.google.container.v1beta1.ShieldedInstanceConfig.Builder builderForValue) { - if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfig_ = builderForValue.build(); - onChanged(); - } else { - shieldedInstanceConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - public Builder mergeShieldedInstanceConfig(com.google.container.v1beta1.ShieldedInstanceConfig value) { - if (shieldedInstanceConfigBuilder_ == null) { - if (shieldedInstanceConfig_ != null) { - shieldedInstanceConfig_ = - com.google.container.v1beta1.ShieldedInstanceConfig.newBuilder(shieldedInstanceConfig_).mergeFrom(value).buildPartial(); - } else { - shieldedInstanceConfig_ = value; - } - onChanged(); - } else { - shieldedInstanceConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - public Builder clearShieldedInstanceConfig() { - if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfig_ = null; - onChanged(); - } else { - shieldedInstanceConfig_ = null; - shieldedInstanceConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - public com.google.container.v1beta1.ShieldedInstanceConfig.Builder getShieldedInstanceConfigBuilder() { - - onChanged(); - return getShieldedInstanceConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - public com.google.container.v1beta1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { - if (shieldedInstanceConfigBuilder_ != null) { - return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); - } else { - return shieldedInstanceConfig_ == null ? - com.google.container.v1beta1.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; - } - } - /** - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ShieldedInstanceConfig, com.google.container.v1beta1.ShieldedInstanceConfig.Builder, com.google.container.v1beta1.ShieldedInstanceConfigOrBuilder> - getShieldedInstanceConfigFieldBuilder() { - if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ShieldedInstanceConfig, com.google.container.v1beta1.ShieldedInstanceConfig.Builder, com.google.container.v1beta1.ShieldedInstanceConfigOrBuilder>( - getShieldedInstanceConfig(), - getParentForChildren(), - isClean()); - shieldedInstanceConfig_ = null; - } - return shieldedInstanceConfigBuilder_; - } - - private com.google.container.v1beta1.LinuxNodeConfig linuxNodeConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.LinuxNodeConfig, com.google.container.v1beta1.LinuxNodeConfig.Builder, com.google.container.v1beta1.LinuxNodeConfigOrBuilder> linuxNodeConfigBuilder_; - /** - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; - * @return Whether the linuxNodeConfig field is set. - */ - public boolean hasLinuxNodeConfig() { - return linuxNodeConfigBuilder_ != null || linuxNodeConfig_ != null; - } - /** - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; - * @return The linuxNodeConfig. - */ - public com.google.container.v1beta1.LinuxNodeConfig getLinuxNodeConfig() { - if (linuxNodeConfigBuilder_ == null) { - return linuxNodeConfig_ == null ? com.google.container.v1beta1.LinuxNodeConfig.getDefaultInstance() : linuxNodeConfig_; - } else { - return linuxNodeConfigBuilder_.getMessage(); - } - } - /** - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; - */ - public Builder setLinuxNodeConfig(com.google.container.v1beta1.LinuxNodeConfig value) { - if (linuxNodeConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - linuxNodeConfig_ = value; - onChanged(); - } else { - linuxNodeConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; - */ - public Builder setLinuxNodeConfig( - com.google.container.v1beta1.LinuxNodeConfig.Builder builderForValue) { - if (linuxNodeConfigBuilder_ == null) { - linuxNodeConfig_ = builderForValue.build(); - onChanged(); - } else { - linuxNodeConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; - */ - public Builder mergeLinuxNodeConfig(com.google.container.v1beta1.LinuxNodeConfig value) { - if (linuxNodeConfigBuilder_ == null) { - if (linuxNodeConfig_ != null) { - linuxNodeConfig_ = - com.google.container.v1beta1.LinuxNodeConfig.newBuilder(linuxNodeConfig_).mergeFrom(value).buildPartial(); - } else { - linuxNodeConfig_ = value; - } - onChanged(); - } else { - linuxNodeConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; - */ - public Builder clearLinuxNodeConfig() { - if (linuxNodeConfigBuilder_ == null) { - linuxNodeConfig_ = null; - onChanged(); - } else { - linuxNodeConfig_ = null; - linuxNodeConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; - */ - public com.google.container.v1beta1.LinuxNodeConfig.Builder getLinuxNodeConfigBuilder() { - - onChanged(); - return getLinuxNodeConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; - */ - public com.google.container.v1beta1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder() { - if (linuxNodeConfigBuilder_ != null) { - return linuxNodeConfigBuilder_.getMessageOrBuilder(); - } else { - return linuxNodeConfig_ == null ? - com.google.container.v1beta1.LinuxNodeConfig.getDefaultInstance() : linuxNodeConfig_; - } - } - /** - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.LinuxNodeConfig, com.google.container.v1beta1.LinuxNodeConfig.Builder, com.google.container.v1beta1.LinuxNodeConfigOrBuilder> - getLinuxNodeConfigFieldBuilder() { - if (linuxNodeConfigBuilder_ == null) { - linuxNodeConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.LinuxNodeConfig, com.google.container.v1beta1.LinuxNodeConfig.Builder, com.google.container.v1beta1.LinuxNodeConfigOrBuilder>( - getLinuxNodeConfig(), - getParentForChildren(), - isClean()); - linuxNodeConfig_ = null; - } - return linuxNodeConfigBuilder_; - } - - private com.google.container.v1beta1.NodeKubeletConfig kubeletConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeKubeletConfig, com.google.container.v1beta1.NodeKubeletConfig.Builder, com.google.container.v1beta1.NodeKubeletConfigOrBuilder> kubeletConfigBuilder_; - /** - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; - * @return Whether the kubeletConfig field is set. - */ - public boolean hasKubeletConfig() { - return kubeletConfigBuilder_ != null || kubeletConfig_ != null; - } - /** - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; - * @return The kubeletConfig. - */ - public com.google.container.v1beta1.NodeKubeletConfig getKubeletConfig() { - if (kubeletConfigBuilder_ == null) { - return kubeletConfig_ == null ? com.google.container.v1beta1.NodeKubeletConfig.getDefaultInstance() : kubeletConfig_; - } else { - return kubeletConfigBuilder_.getMessage(); - } - } - /** - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; - */ - public Builder setKubeletConfig(com.google.container.v1beta1.NodeKubeletConfig value) { - if (kubeletConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kubeletConfig_ = value; - onChanged(); - } else { - kubeletConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; - */ - public Builder setKubeletConfig( - com.google.container.v1beta1.NodeKubeletConfig.Builder builderForValue) { - if (kubeletConfigBuilder_ == null) { - kubeletConfig_ = builderForValue.build(); - onChanged(); - } else { - kubeletConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; - */ - public Builder mergeKubeletConfig(com.google.container.v1beta1.NodeKubeletConfig value) { - if (kubeletConfigBuilder_ == null) { - if (kubeletConfig_ != null) { - kubeletConfig_ = - com.google.container.v1beta1.NodeKubeletConfig.newBuilder(kubeletConfig_).mergeFrom(value).buildPartial(); - } else { - kubeletConfig_ = value; - } - onChanged(); - } else { - kubeletConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; - */ - public Builder clearKubeletConfig() { - if (kubeletConfigBuilder_ == null) { - kubeletConfig_ = null; - onChanged(); - } else { - kubeletConfig_ = null; - kubeletConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; - */ - public com.google.container.v1beta1.NodeKubeletConfig.Builder getKubeletConfigBuilder() { - - onChanged(); - return getKubeletConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; - */ - public com.google.container.v1beta1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder() { - if (kubeletConfigBuilder_ != null) { - return kubeletConfigBuilder_.getMessageOrBuilder(); - } else { - return kubeletConfig_ == null ? - com.google.container.v1beta1.NodeKubeletConfig.getDefaultInstance() : kubeletConfig_; - } - } - /** - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeKubeletConfig, com.google.container.v1beta1.NodeKubeletConfig.Builder, com.google.container.v1beta1.NodeKubeletConfigOrBuilder> - getKubeletConfigFieldBuilder() { - if (kubeletConfigBuilder_ == null) { - kubeletConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeKubeletConfig, com.google.container.v1beta1.NodeKubeletConfig.Builder, com.google.container.v1beta1.NodeKubeletConfigOrBuilder>( - getKubeletConfig(), - getParentForChildren(), - isClean()); - kubeletConfig_ = null; - } - return kubeletConfigBuilder_; - } - - private com.google.container.v1beta1.EphemeralStorageConfig ephemeralStorageConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.EphemeralStorageConfig, com.google.container.v1beta1.EphemeralStorageConfig.Builder, com.google.container.v1beta1.EphemeralStorageConfigOrBuilder> ephemeralStorageConfigBuilder_; - /** - *
-     * Parameters for the ephemeral storage filesystem.
-     * If unspecified, ephemeral storage is backed by the boot disk.
-     * 
- * - * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; - * @return Whether the ephemeralStorageConfig field is set. - */ - public boolean hasEphemeralStorageConfig() { - return ephemeralStorageConfigBuilder_ != null || ephemeralStorageConfig_ != null; - } - /** - *
-     * Parameters for the ephemeral storage filesystem.
-     * If unspecified, ephemeral storage is backed by the boot disk.
-     * 
- * - * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; - * @return The ephemeralStorageConfig. - */ - public com.google.container.v1beta1.EphemeralStorageConfig getEphemeralStorageConfig() { - if (ephemeralStorageConfigBuilder_ == null) { - return ephemeralStorageConfig_ == null ? com.google.container.v1beta1.EphemeralStorageConfig.getDefaultInstance() : ephemeralStorageConfig_; - } else { - return ephemeralStorageConfigBuilder_.getMessage(); - } - } - /** - *
-     * Parameters for the ephemeral storage filesystem.
-     * If unspecified, ephemeral storage is backed by the boot disk.
-     * 
- * - * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; - */ - public Builder setEphemeralStorageConfig(com.google.container.v1beta1.EphemeralStorageConfig value) { - if (ephemeralStorageConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ephemeralStorageConfig_ = value; - onChanged(); - } else { - ephemeralStorageConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Parameters for the ephemeral storage filesystem.
-     * If unspecified, ephemeral storage is backed by the boot disk.
-     * 
- * - * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; - */ - public Builder setEphemeralStorageConfig( - com.google.container.v1beta1.EphemeralStorageConfig.Builder builderForValue) { - if (ephemeralStorageConfigBuilder_ == null) { - ephemeralStorageConfig_ = builderForValue.build(); - onChanged(); - } else { - ephemeralStorageConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Parameters for the ephemeral storage filesystem.
-     * If unspecified, ephemeral storage is backed by the boot disk.
-     * 
- * - * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; - */ - public Builder mergeEphemeralStorageConfig(com.google.container.v1beta1.EphemeralStorageConfig value) { - if (ephemeralStorageConfigBuilder_ == null) { - if (ephemeralStorageConfig_ != null) { - ephemeralStorageConfig_ = - com.google.container.v1beta1.EphemeralStorageConfig.newBuilder(ephemeralStorageConfig_).mergeFrom(value).buildPartial(); - } else { - ephemeralStorageConfig_ = value; - } - onChanged(); - } else { - ephemeralStorageConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Parameters for the ephemeral storage filesystem.
-     * If unspecified, ephemeral storage is backed by the boot disk.
-     * 
- * - * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; - */ - public Builder clearEphemeralStorageConfig() { - if (ephemeralStorageConfigBuilder_ == null) { - ephemeralStorageConfig_ = null; - onChanged(); - } else { - ephemeralStorageConfig_ = null; - ephemeralStorageConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Parameters for the ephemeral storage filesystem.
-     * If unspecified, ephemeral storage is backed by the boot disk.
-     * 
- * - * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; - */ - public com.google.container.v1beta1.EphemeralStorageConfig.Builder getEphemeralStorageConfigBuilder() { - - onChanged(); - return getEphemeralStorageConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Parameters for the ephemeral storage filesystem.
-     * If unspecified, ephemeral storage is backed by the boot disk.
-     * 
- * - * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; - */ - public com.google.container.v1beta1.EphemeralStorageConfigOrBuilder getEphemeralStorageConfigOrBuilder() { - if (ephemeralStorageConfigBuilder_ != null) { - return ephemeralStorageConfigBuilder_.getMessageOrBuilder(); - } else { - return ephemeralStorageConfig_ == null ? - com.google.container.v1beta1.EphemeralStorageConfig.getDefaultInstance() : ephemeralStorageConfig_; - } - } - /** - *
-     * Parameters for the ephemeral storage filesystem.
-     * If unspecified, ephemeral storage is backed by the boot disk.
-     * 
- * - * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.EphemeralStorageConfig, com.google.container.v1beta1.EphemeralStorageConfig.Builder, com.google.container.v1beta1.EphemeralStorageConfigOrBuilder> - getEphemeralStorageConfigFieldBuilder() { - if (ephemeralStorageConfigBuilder_ == null) { - ephemeralStorageConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.EphemeralStorageConfig, com.google.container.v1beta1.EphemeralStorageConfig.Builder, com.google.container.v1beta1.EphemeralStorageConfigOrBuilder>( - getEphemeralStorageConfig(), - getParentForChildren(), - isClean()); - ephemeralStorageConfig_ = null; - } - return ephemeralStorageConfigBuilder_; - } - - private com.google.container.v1beta1.GcfsConfig gcfsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GcfsConfig, com.google.container.v1beta1.GcfsConfig.Builder, com.google.container.v1beta1.GcfsConfigOrBuilder> gcfsConfigBuilder_; - /** - *
-     * GCFS (Google Container File System) configs.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 25; - * @return Whether the gcfsConfig field is set. - */ - public boolean hasGcfsConfig() { - return gcfsConfigBuilder_ != null || gcfsConfig_ != null; - } - /** - *
-     * GCFS (Google Container File System) configs.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 25; - * @return The gcfsConfig. - */ - public com.google.container.v1beta1.GcfsConfig getGcfsConfig() { - if (gcfsConfigBuilder_ == null) { - return gcfsConfig_ == null ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() : gcfsConfig_; - } else { - return gcfsConfigBuilder_.getMessage(); - } - } - /** - *
-     * GCFS (Google Container File System) configs.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 25; - */ - public Builder setGcfsConfig(com.google.container.v1beta1.GcfsConfig value) { - if (gcfsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gcfsConfig_ = value; - onChanged(); - } else { - gcfsConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * GCFS (Google Container File System) configs.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 25; - */ - public Builder setGcfsConfig( - com.google.container.v1beta1.GcfsConfig.Builder builderForValue) { - if (gcfsConfigBuilder_ == null) { - gcfsConfig_ = builderForValue.build(); - onChanged(); - } else { - gcfsConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * GCFS (Google Container File System) configs.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 25; - */ - public Builder mergeGcfsConfig(com.google.container.v1beta1.GcfsConfig value) { - if (gcfsConfigBuilder_ == null) { - if (gcfsConfig_ != null) { - gcfsConfig_ = - com.google.container.v1beta1.GcfsConfig.newBuilder(gcfsConfig_).mergeFrom(value).buildPartial(); - } else { - gcfsConfig_ = value; - } - onChanged(); - } else { - gcfsConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * GCFS (Google Container File System) configs.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 25; - */ - public Builder clearGcfsConfig() { - if (gcfsConfigBuilder_ == null) { - gcfsConfig_ = null; - onChanged(); - } else { - gcfsConfig_ = null; - gcfsConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * GCFS (Google Container File System) configs.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 25; - */ - public com.google.container.v1beta1.GcfsConfig.Builder getGcfsConfigBuilder() { - - onChanged(); - return getGcfsConfigFieldBuilder().getBuilder(); - } - /** - *
-     * GCFS (Google Container File System) configs.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 25; - */ - public com.google.container.v1beta1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { - if (gcfsConfigBuilder_ != null) { - return gcfsConfigBuilder_.getMessageOrBuilder(); - } else { - return gcfsConfig_ == null ? - com.google.container.v1beta1.GcfsConfig.getDefaultInstance() : gcfsConfig_; - } - } - /** - *
-     * GCFS (Google Container File System) configs.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 25; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GcfsConfig, com.google.container.v1beta1.GcfsConfig.Builder, com.google.container.v1beta1.GcfsConfigOrBuilder> - getGcfsConfigFieldBuilder() { - if (gcfsConfigBuilder_ == null) { - gcfsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GcfsConfig, com.google.container.v1beta1.GcfsConfig.Builder, com.google.container.v1beta1.GcfsConfigOrBuilder>( - getGcfsConfig(), - getParentForChildren(), - isClean()); - gcfsConfig_ = null; - } - return gcfsConfigBuilder_; - } - - private com.google.container.v1beta1.AdvancedMachineFeatures advancedMachineFeatures_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AdvancedMachineFeatures, com.google.container.v1beta1.AdvancedMachineFeatures.Builder, com.google.container.v1beta1.AdvancedMachineFeaturesOrBuilder> advancedMachineFeaturesBuilder_; - /** - *
-     * Advanced features for the Compute Engine VM.
-     * 
- * - * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; - * @return Whether the advancedMachineFeatures field is set. - */ - public boolean hasAdvancedMachineFeatures() { - return advancedMachineFeaturesBuilder_ != null || advancedMachineFeatures_ != null; - } - /** - *
-     * Advanced features for the Compute Engine VM.
-     * 
- * - * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; - * @return The advancedMachineFeatures. - */ - public com.google.container.v1beta1.AdvancedMachineFeatures getAdvancedMachineFeatures() { - if (advancedMachineFeaturesBuilder_ == null) { - return advancedMachineFeatures_ == null ? com.google.container.v1beta1.AdvancedMachineFeatures.getDefaultInstance() : advancedMachineFeatures_; - } else { - return advancedMachineFeaturesBuilder_.getMessage(); - } - } - /** - *
-     * Advanced features for the Compute Engine VM.
-     * 
- * - * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; - */ - public Builder setAdvancedMachineFeatures(com.google.container.v1beta1.AdvancedMachineFeatures value) { - if (advancedMachineFeaturesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - advancedMachineFeatures_ = value; - onChanged(); - } else { - advancedMachineFeaturesBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Advanced features for the Compute Engine VM.
-     * 
- * - * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; - */ - public Builder setAdvancedMachineFeatures( - com.google.container.v1beta1.AdvancedMachineFeatures.Builder builderForValue) { - if (advancedMachineFeaturesBuilder_ == null) { - advancedMachineFeatures_ = builderForValue.build(); - onChanged(); - } else { - advancedMachineFeaturesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Advanced features for the Compute Engine VM.
-     * 
- * - * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; - */ - public Builder mergeAdvancedMachineFeatures(com.google.container.v1beta1.AdvancedMachineFeatures value) { - if (advancedMachineFeaturesBuilder_ == null) { - if (advancedMachineFeatures_ != null) { - advancedMachineFeatures_ = - com.google.container.v1beta1.AdvancedMachineFeatures.newBuilder(advancedMachineFeatures_).mergeFrom(value).buildPartial(); - } else { - advancedMachineFeatures_ = value; - } - onChanged(); - } else { - advancedMachineFeaturesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Advanced features for the Compute Engine VM.
-     * 
- * - * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; - */ - public Builder clearAdvancedMachineFeatures() { - if (advancedMachineFeaturesBuilder_ == null) { - advancedMachineFeatures_ = null; - onChanged(); - } else { - advancedMachineFeatures_ = null; - advancedMachineFeaturesBuilder_ = null; - } - - return this; - } - /** - *
-     * Advanced features for the Compute Engine VM.
-     * 
- * - * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; - */ - public com.google.container.v1beta1.AdvancedMachineFeatures.Builder getAdvancedMachineFeaturesBuilder() { - - onChanged(); - return getAdvancedMachineFeaturesFieldBuilder().getBuilder(); - } - /** - *
-     * Advanced features for the Compute Engine VM.
-     * 
- * - * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; - */ - public com.google.container.v1beta1.AdvancedMachineFeaturesOrBuilder getAdvancedMachineFeaturesOrBuilder() { - if (advancedMachineFeaturesBuilder_ != null) { - return advancedMachineFeaturesBuilder_.getMessageOrBuilder(); - } else { - return advancedMachineFeatures_ == null ? - com.google.container.v1beta1.AdvancedMachineFeatures.getDefaultInstance() : advancedMachineFeatures_; - } - } - /** - *
-     * Advanced features for the Compute Engine VM.
-     * 
- * - * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AdvancedMachineFeatures, com.google.container.v1beta1.AdvancedMachineFeatures.Builder, com.google.container.v1beta1.AdvancedMachineFeaturesOrBuilder> - getAdvancedMachineFeaturesFieldBuilder() { - if (advancedMachineFeaturesBuilder_ == null) { - advancedMachineFeaturesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AdvancedMachineFeatures, com.google.container.v1beta1.AdvancedMachineFeatures.Builder, com.google.container.v1beta1.AdvancedMachineFeaturesOrBuilder>( - getAdvancedMachineFeatures(), - getParentForChildren(), - isClean()); - advancedMachineFeatures_ = null; - } - return advancedMachineFeaturesBuilder_; - } - - private com.google.container.v1beta1.VirtualNIC gvnic_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.VirtualNIC, 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 gvnicBuilder_ != null || gvnic_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - gvnicBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - gvnicBuilder_.setMessage(builderForValue.build()); - } - - 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 (gvnic_ != null) { - gvnic_ = - com.google.container.v1beta1.VirtualNIC.newBuilder(gvnic_).mergeFrom(value).buildPartial(); - } else { - gvnic_ = value; - } - onChanged(); - } else { - gvnicBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1beta1.VirtualNIC gvnic = 29; - */ - public Builder clearGvnic() { - if (gvnicBuilder_ == null) { - gvnic_ = null; - onChanged(); - } else { - gvnic_ = null; - gvnicBuilder_ = null; - } - - return this; - } - /** - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1beta1.VirtualNIC gvnic = 29; - */ - public com.google.container.v1beta1.VirtualNIC.Builder getGvnicBuilder() { - - 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; - onChanged(); - return this; - } - /** - *
-     * Spot flag for enabling Spot VM, which is a rebrand of
-     * the existing preemptible flag.
-     * 
- * - * bool spot = 32; - * @return This builder for chaining. - */ - public Builder clearSpot() { - - spot_ = false; - onChanged(); - return this; - } - - 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 confidentialNodesBuilder_ != null || confidentialNodes_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - confidentialNodesBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - confidentialNodesBuilder_.setMessage(builderForValue.build()); - } - - 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 (confidentialNodes_ != null) { - confidentialNodes_ = - com.google.container.v1beta1.ConfidentialNodes.newBuilder(confidentialNodes_).mergeFrom(value).buildPartial(); - } else { - confidentialNodes_ = value; - } - onChanged(); - } else { - confidentialNodesBuilder_.mergeFrom(value); - } - - 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() { - if (confidentialNodesBuilder_ == null) { - confidentialNodes_ = null; - onChanged(); - } else { - confidentialNodes_ = null; - confidentialNodesBuilder_ = null; - } - - 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() { - - 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.protobuf.MapField< - java.lang.String, java.lang.String> resourceLabels_; - private com.google.protobuf.MapField - internalGetResourceLabels() { - if (resourceLabels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ResourceLabelsDefaultEntryHolder.defaultEntry); - } - return resourceLabels_; - } - private com.google.protobuf.MapField - internalGetMutableResourceLabels() { - onChanged();; - if (resourceLabels_ == null) { - resourceLabels_ = com.google.protobuf.MapField.newMapField( - ResourceLabelsDefaultEntryHolder.defaultEntry); - } - if (!resourceLabels_.isMutable()) { - resourceLabels_ = resourceLabels_.copy(); - } - return resourceLabels_; - } - - public int getResourceLabelsCount() { - return internalGetResourceLabels().getMap().size(); - } - /** - *
-     * The resource labels for the 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 java.lang.String getResourceLabelsOrDefault( - java.lang.String key, - 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() { - 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() { - 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); - 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); - 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 loggingConfigBuilder_ != null || loggingConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - loggingConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - loggingConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 38; - */ - public Builder mergeLoggingConfig(com.google.container.v1beta1.NodePoolLoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (loggingConfig_ != null) { - loggingConfig_ = - com.google.container.v1beta1.NodePoolLoggingConfig.newBuilder(loggingConfig_).mergeFrom(value).buildPartial(); - } else { - loggingConfig_ = value; - } - onChanged(); - } else { - loggingConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 38; - */ - public Builder clearLoggingConfig() { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - onChanged(); - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 38; - */ - public com.google.container.v1beta1.NodePoolLoggingConfig.Builder getLoggingConfigBuilder() { - - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 577da2522e27..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigDefaults.java +++ /dev/null @@ -1,869 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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); - } - - 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 gcfsConfig_ != null; - } - /** - *
-   * 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 getGcfsConfig(); - } - - 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 loggingConfig_ != null; - } - /** - *
-   * 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 getLoggingConfig(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (gcfsConfig_ != null) { - output.writeMessage(1, getGcfsConfig()); - } - if (loggingConfig_ != null) { - output.writeMessage(3, getLoggingConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (gcfsConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getGcfsConfig()); - } - if (loggingConfig_ != null) { - 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.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 (!getUnknownFields().equals(other.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.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (gcfsConfigBuilder_ == null) { - gcfsConfig_ = null; - } else { - gcfsConfig_ = null; - gcfsConfigBuilder_ = null; - } - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = 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 (gcfsConfigBuilder_ == null) { - result.gcfsConfig_ = gcfsConfig_; - } else { - result.gcfsConfig_ = gcfsConfigBuilder_.build(); - } - if (loggingConfigBuilder_ == null) { - result.loggingConfig_ = loggingConfig_; - } else { - result.loggingConfig_ = loggingConfigBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.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()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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); - - break; - } // case 10 - case 26: { - input.readMessage( - getLoggingConfigFieldBuilder().getBuilder(), - extensionRegistry); - - 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 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 gcfsConfigBuilder_ != null || gcfsConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - gcfsConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - gcfsConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (gcfsConfig_ != null) { - gcfsConfig_ = - com.google.container.v1beta1.GcfsConfig.newBuilder(gcfsConfig_).mergeFrom(value).buildPartial(); - } else { - gcfsConfig_ = value; - } - onChanged(); - } else { - gcfsConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * GCFS (Google Container File System, also known as Riptide) options.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 1; - */ - public Builder clearGcfsConfig() { - if (gcfsConfigBuilder_ == null) { - gcfsConfig_ = null; - onChanged(); - } else { - gcfsConfig_ = null; - gcfsConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * GCFS (Google Container File System, also known as Riptide) options.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 1; - */ - public com.google.container.v1beta1.GcfsConfig.Builder getGcfsConfigBuilder() { - - onChanged(); - return getGcfsConfigFieldBuilder().getBuilder(); - } - /** - *
-     * GCFS (Google Container File System, 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 loggingConfigBuilder_ != null || loggingConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - loggingConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - loggingConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (loggingConfig_ != null) { - loggingConfig_ = - com.google.container.v1beta1.NodePoolLoggingConfig.newBuilder(loggingConfig_).mergeFrom(value).buildPartial(); - } else { - loggingConfig_ = value; - } - onChanged(); - } else { - loggingConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Logging configuration for node pools.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 3; - */ - public Builder clearLoggingConfig() { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - onChanged(); - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Logging configuration for node pools.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 3; - */ - public com.google.container.v1beta1.NodePoolLoggingConfig.Builder getLoggingConfigBuilder() { - - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 79b83d3f81b7..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigDefaultsOrBuilder.java +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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(); -} 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 deleted file mode 100644 index 2d450e0d66a1..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigOrBuilder.java +++ /dev/null @@ -1,1170 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface NodeConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodeConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The name of a Google Compute Engine [machine
-   * type](https://cloud.google.com/compute/docs/machine-types).
-   * If unspecified, the default machine type is
-   * `e2-medium`.
-   * 
- * - * string machine_type = 1; - * @return The machineType. - */ - java.lang.String getMachineType(); - /** - *
-   * The name of a Google Compute Engine [machine
-   * type](https://cloud.google.com/compute/docs/machine-types).
-   * If unspecified, the default machine type is
-   * `e2-medium`.
-   * 
- * - * string machine_type = 1; - * @return The bytes for machineType. - */ - com.google.protobuf.ByteString - getMachineTypeBytes(); - - /** - *
-   * Size of the disk attached to each node, specified in GB.
-   * The smallest allowed disk size is 10GB.
-   * If unspecified, the default disk size is 100GB.
-   * 
- * - * int32 disk_size_gb = 2; - * @return The diskSizeGb. - */ - int getDiskSizeGb(); - - /** - *
-   * The set of Google API scopes to be made available on all of the
-   * node VMs under the "default" service account.
-   * The following scopes are recommended, but not required, and by default are
-   * not included:
-   * * `https://www.googleapis.com/auth/compute` is required for mounting
-   * persistent storage on your nodes.
-   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-   * communicating with **gcr.io**
-   * (the [Google Container
-   * Registry](https://cloud.google.com/container-registry/)).
-   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-   * Monitoring are enabled, in which case their required scopes will be added.
-   * 
- * - * repeated string oauth_scopes = 3; - * @return A list containing the oauthScopes. - */ - java.util.List - getOauthScopesList(); - /** - *
-   * The set of Google API scopes to be made available on all of the
-   * node VMs under the "default" service account.
-   * The following scopes are recommended, but not required, and by default are
-   * not included:
-   * * `https://www.googleapis.com/auth/compute` is required for mounting
-   * persistent storage on your nodes.
-   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-   * communicating with **gcr.io**
-   * (the [Google Container
-   * Registry](https://cloud.google.com/container-registry/)).
-   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-   * Monitoring are enabled, in which case their required scopes will be added.
-   * 
- * - * repeated string oauth_scopes = 3; - * @return The count of oauthScopes. - */ - int getOauthScopesCount(); - /** - *
-   * The set of Google API scopes to be made available on all of the
-   * node VMs under the "default" service account.
-   * The following scopes are recommended, but not required, and by default are
-   * not included:
-   * * `https://www.googleapis.com/auth/compute` is required for mounting
-   * persistent storage on your nodes.
-   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-   * communicating with **gcr.io**
-   * (the [Google Container
-   * Registry](https://cloud.google.com/container-registry/)).
-   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-   * Monitoring are enabled, in which case their required scopes will be added.
-   * 
- * - * repeated string oauth_scopes = 3; - * @param index The index of the element to return. - * @return The oauthScopes at the given index. - */ - java.lang.String getOauthScopes(int index); - /** - *
-   * The set of Google API scopes to be made available on all of the
-   * node VMs under the "default" service account.
-   * The following scopes are recommended, but not required, and by default are
-   * not included:
-   * * `https://www.googleapis.com/auth/compute` is required for mounting
-   * persistent storage on your nodes.
-   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-   * communicating with **gcr.io**
-   * (the [Google Container
-   * Registry](https://cloud.google.com/container-registry/)).
-   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-   * Monitoring are enabled, in which case their required scopes will be added.
-   * 
- * - * repeated string oauth_scopes = 3; - * @param index The index of the value to return. - * @return The bytes of the oauthScopes at the given index. - */ - com.google.protobuf.ByteString - getOauthScopesBytes(int index); - - /** - *
-   * The Google Cloud Platform Service Account to be used by the node VMs.
-   * Specify the email address of the Service Account; otherwise, if no Service
-   * Account is specified, the "default" service account is used.
-   * 
- * - * string service_account = 9; - * @return The serviceAccount. - */ - java.lang.String getServiceAccount(); - /** - *
-   * The Google Cloud Platform Service Account to be used by the node VMs.
-   * Specify the email address of the Service Account; otherwise, if no Service
-   * Account is specified, the "default" service account is used.
-   * 
- * - * string service_account = 9; - * @return The bytes for serviceAccount. - */ - com.google.protobuf.ByteString - getServiceAccountBytes(); - - /** - *
-   * The metadata key/value pairs assigned to instances in the cluster.
-   * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
-   * in length. These are reflected as part of a URL in the metadata server.
-   * Additionally, to avoid ambiguity, keys must not conflict with any other
-   * metadata keys for the project or be one of the reserved keys:
-   *  - "cluster-location"
-   *  - "cluster-name"
-   *  - "cluster-uid"
-   *  - "configure-sh"
-   *  - "containerd-configure-sh"
-   *  - "enable-oslogin"
-   *  - "gci-ensure-gke-docker"
-   *  - "gci-metrics-enabled"
-   *  - "gci-update-strategy"
-   *  - "instance-template"
-   *  - "kube-env"
-   *  - "startup-script"
-   *  - "user-data"
-   *  - "disable-address-manager"
-   *  - "windows-startup-script-ps1"
-   *  - "common-psm1"
-   *  - "k8s-node-setup-psm1"
-   *  - "install-ssh-psm1"
-   *  - "user-profile-psm1"
-   * 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.
-   * 
- * - * string image_type = 5; - * @return The imageType. - */ - java.lang.String getImageType(); - /** - *
-   * The image type to use for this node. Note that for a given image type,
-   * the latest version of it will be used.
-   * 
- * - * string image_type = 5; - * @return The bytes for imageType. - */ - com.google.protobuf.ByteString - getImageTypeBytes(); - - /** - *
-   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
-   * These will added in addition to any default label(s) that
-   * Kubernetes may apply to the node.
-   * In case of conflict in label keys, the applied set may differ depending on
-   * the Kubernetes version -- it's best to assume the behavior is undefined
-   * and conflicts should be avoided.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-   * 
- * - * map<string, string> labels = 6; - */ - int getLabelsCount(); - /** - *
-   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
-   * These will added in addition to any default label(s) that
-   * Kubernetes may apply to the node.
-   * In case of conflict in label keys, the applied set may differ depending on
-   * the Kubernetes version -- it's best to assume the behavior is undefined
-   * and conflicts should be avoided.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-   * 
- * - * map<string, string> labels = 6; - */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getLabels(); - /** - *
-   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
-   * These will added in addition to any default label(s) that
-   * Kubernetes may apply to the node.
-   * In case of conflict in label keys, the applied set may differ depending on
-   * the Kubernetes version -- it's best to assume the behavior is undefined
-   * and conflicts should be avoided.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-   * 
- * - * map<string, string> labels = 6; - */ - java.util.Map - getLabelsMap(); - /** - *
-   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
-   * These will added in addition to any default label(s) that
-   * Kubernetes may apply to the node.
-   * In case of conflict in label keys, the applied set may differ depending on
-   * the Kubernetes version -- it's best to assume the behavior is undefined
-   * and conflicts should be avoided.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-   * 
- * - * map<string, string> labels = 6; - */ - - /* 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
-   * inforamtion about preemptible VM instances.
-   * 
- * - * bool preemptible = 10; - * @return The preemptible. - */ - boolean getPreemptible(); - - /** - *
-   * A list of hardware accelerators to be attached to each node.
-   * See https://cloud.google.com/compute/docs/gpus for more information about
-   * support for GPUs.
-   * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - java.util.List - getAcceleratorsList(); - /** - *
-   * A list of hardware accelerators to be attached to each node.
-   * See https://cloud.google.com/compute/docs/gpus for more information about
-   * support for GPUs.
-   * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - com.google.container.v1beta1.AcceleratorConfig getAccelerators(int index); - /** - *
-   * A list of hardware accelerators to be attached to each node.
-   * See https://cloud.google.com/compute/docs/gpus for more information about
-   * support for GPUs.
-   * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - int getAcceleratorsCount(); - /** - *
-   * A list of hardware accelerators to be attached to each node.
-   * See https://cloud.google.com/compute/docs/gpus for more information about
-   * support for GPUs.
-   * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - java.util.List - getAcceleratorsOrBuilderList(); - /** - *
-   * A list of hardware accelerators to be attached to each node.
-   * See https://cloud.google.com/compute/docs/gpus for more information about
-   * support for GPUs.
-   * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - com.google.container.v1beta1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder( - int index); - - /** - *
-   * Sandbox configuration for this node.
-   * 
- * - * .google.container.v1beta1.SandboxConfig sandbox_config = 17; - * @return Whether the sandboxConfig field is set. - */ - boolean hasSandboxConfig(); - /** - *
-   * Sandbox configuration for this node.
-   * 
- * - * .google.container.v1beta1.SandboxConfig sandbox_config = 17; - * @return The sandboxConfig. - */ - com.google.container.v1beta1.SandboxConfig getSandboxConfig(); - /** - *
-   * Sandbox configuration for this node.
-   * 
- * - * .google.container.v1beta1.SandboxConfig sandbox_config = 17; - */ - com.google.container.v1beta1.SandboxConfigOrBuilder getSandboxConfigOrBuilder(); - - /** - *
-   * Setting this field will assign instances of this
-   * pool to run on the specified node group. This is useful for running
-   * workloads on [sole tenant
-   * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
-   * 
- * - * string node_group = 18; - * @return The nodeGroup. - */ - java.lang.String getNodeGroup(); - /** - *
-   * Setting this field will assign instances of this
-   * pool to run on the specified node group. This is useful for running
-   * workloads on [sole tenant
-   * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
-   * 
- * - * string node_group = 18; - * @return The bytes for nodeGroup. - */ - com.google.protobuf.ByteString - getNodeGroupBytes(); - - /** - *
-   * The optional reservation affinity. Setting this field will apply
-   * the specified [Zonal Compute
-   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-   * to this node pool.
-   * 
- * - * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; - * @return Whether the reservationAffinity field is set. - */ - boolean hasReservationAffinity(); - /** - *
-   * The optional reservation affinity. Setting this field will apply
-   * the specified [Zonal Compute
-   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-   * to this node pool.
-   * 
- * - * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; - * @return The reservationAffinity. - */ - com.google.container.v1beta1.ReservationAffinity getReservationAffinity(); - /** - *
-   * The optional reservation affinity. Setting this field will apply
-   * the specified [Zonal Compute
-   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-   * to this node pool.
-   * 
- * - * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; - */ - com.google.container.v1beta1.ReservationAffinityOrBuilder getReservationAffinityOrBuilder(); - - /** - *
-   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-   * 'pd-balanced')
-   * If unspecified, the default disk type is 'pd-standard'
-   * 
- * - * string disk_type = 12; - * @return The diskType. - */ - java.lang.String getDiskType(); - /** - *
-   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-   * 'pd-balanced')
-   * If unspecified, the default disk type is 'pd-standard'
-   * 
- * - * string disk_type = 12; - * @return The bytes for diskType. - */ - com.google.protobuf.ByteString - getDiskTypeBytes(); - - /** - *
-   * Minimum CPU platform to be used by this instance. The instance may be
-   * scheduled on the specified or newer CPU platform. Applicable values are the
-   * friendly names of CPU platforms, such as
-   * `minCpuPlatform: "Intel Haswell"` or
-   * `minCpuPlatform: "Intel Sandy Bridge"`. For more
-   * information, read [how to specify min CPU
-   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
-   * 
- * - * string min_cpu_platform = 13; - * @return The minCpuPlatform. - */ - java.lang.String getMinCpuPlatform(); - /** - *
-   * Minimum CPU platform to be used by this instance. The instance may be
-   * scheduled on the specified or newer CPU platform. Applicable values are the
-   * friendly names of CPU platforms, such as
-   * `minCpuPlatform: "Intel Haswell"` or
-   * `minCpuPlatform: "Intel Sandy Bridge"`. For more
-   * information, read [how to specify min CPU
-   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
-   * 
- * - * string min_cpu_platform = 13; - * @return The bytes for minCpuPlatform. - */ - com.google.protobuf.ByteString - getMinCpuPlatformBytes(); - - /** - *
-   * The workload metadata configuration for this node.
-   * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; - * @return Whether the workloadMetadataConfig field is set. - */ - boolean hasWorkloadMetadataConfig(); - /** - *
-   * The workload metadata configuration for this node.
-   * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; - * @return The workloadMetadataConfig. - */ - com.google.container.v1beta1.WorkloadMetadataConfig getWorkloadMetadataConfig(); - /** - *
-   * The workload metadata configuration for this node.
-   * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder getWorkloadMetadataConfigOrBuilder(); - - /** - *
-   * List of kubernetes taints to be applied to each node.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-   * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 15; - */ - java.util.List - getTaintsList(); - /** - *
-   * List of kubernetes taints to be applied to each node.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-   * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 15; - */ - com.google.container.v1beta1.NodeTaint getTaints(int index); - /** - *
-   * List of kubernetes taints to be applied to each node.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-   * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 15; - */ - int getTaintsCount(); - /** - *
-   * List of kubernetes taints to be applied to each node.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-   * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 15; - */ - java.util.List - getTaintsOrBuilderList(); - /** - *
-   * List of kubernetes taints to be applied to each node.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-   * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 15; - */ - com.google.container.v1beta1.NodeTaintOrBuilder getTaintsOrBuilder( - int index); - - /** - *
-   * The Customer Managed Encryption Key used to encrypt the boot disk attached
-   * to each node in the node pool. This should be of the form
-   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-   * For more information about protecting resources with Cloud KMS Keys please
-   * see:
-   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-   * 
- * - * string boot_disk_kms_key = 23; - * @return The bootDiskKmsKey. - */ - java.lang.String getBootDiskKmsKey(); - /** - *
-   * The Customer Managed Encryption Key used to encrypt the boot disk attached
-   * to each node in the node pool. This should be of the form
-   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-   * For more information about protecting resources with Cloud KMS Keys please
-   * see:
-   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-   * 
- * - * string boot_disk_kms_key = 23; - * @return The bytes for bootDiskKmsKey. - */ - com.google.protobuf.ByteString - getBootDiskKmsKeyBytes(); - - /** - *
-   * Shielded Instance options.
-   * 
- * - * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; - * @return Whether the shieldedInstanceConfig field is set. - */ - boolean hasShieldedInstanceConfig(); - /** - *
-   * Shielded Instance options.
-   * 
- * - * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; - * @return The shieldedInstanceConfig. - */ - com.google.container.v1beta1.ShieldedInstanceConfig getShieldedInstanceConfig(); - /** - *
-   * Shielded Instance options.
-   * 
- * - * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - com.google.container.v1beta1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder(); - - /** - *
-   * Parameters that can be configured on Linux nodes.
-   * 
- * - * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; - * @return Whether the linuxNodeConfig field is set. - */ - boolean hasLinuxNodeConfig(); - /** - *
-   * Parameters that can be configured on Linux nodes.
-   * 
- * - * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; - * @return The linuxNodeConfig. - */ - com.google.container.v1beta1.LinuxNodeConfig getLinuxNodeConfig(); - /** - *
-   * Parameters that can be configured on Linux nodes.
-   * 
- * - * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; - */ - com.google.container.v1beta1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder(); - - /** - *
-   * Node kubelet configs.
-   * 
- * - * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; - * @return Whether the kubeletConfig field is set. - */ - boolean hasKubeletConfig(); - /** - *
-   * Node kubelet configs.
-   * 
- * - * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; - * @return The kubeletConfig. - */ - com.google.container.v1beta1.NodeKubeletConfig getKubeletConfig(); - /** - *
-   * Node kubelet configs.
-   * 
- * - * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; - */ - com.google.container.v1beta1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder(); - - /** - *
-   * Parameters for the ephemeral storage filesystem.
-   * If unspecified, ephemeral storage is backed by the boot disk.
-   * 
- * - * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; - * @return Whether the ephemeralStorageConfig field is set. - */ - boolean hasEphemeralStorageConfig(); - /** - *
-   * Parameters for the ephemeral storage filesystem.
-   * If unspecified, ephemeral storage is backed by the boot disk.
-   * 
- * - * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; - * @return The ephemeralStorageConfig. - */ - com.google.container.v1beta1.EphemeralStorageConfig getEphemeralStorageConfig(); - /** - *
-   * Parameters for the ephemeral storage filesystem.
-   * If unspecified, ephemeral storage is backed by the boot disk.
-   * 
- * - * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; - */ - com.google.container.v1beta1.EphemeralStorageConfigOrBuilder getEphemeralStorageConfigOrBuilder(); - - /** - *
-   * 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(); - - /** - *
-   * 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(); -} 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 deleted file mode 100644 index ca41ef97f2ba..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeKubeletConfig.java +++ /dev/null @@ -1,1223 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Node kubelet configs.
- * 
- * - * Protobuf type {@code google.container.v1beta1.NodeKubeletConfig} - */ -public final class NodeKubeletConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodeKubeletConfig) - NodeKubeletConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use NodeKubeletConfig.newBuilder() to construct. - private NodeKubeletConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeKubeletConfig() { - cpuManagerPolicy_ = ""; - cpuCfsQuotaPeriod_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NodeKubeletConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeKubeletConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeKubeletConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NodeKubeletConfig.class, com.google.container.v1beta1.NodeKubeletConfig.Builder.class); - } - - public static final int CPU_MANAGER_POLICY_FIELD_NUMBER = 1; - private volatile java.lang.Object cpuManagerPolicy_; - /** - *
-   * Control the CPU management policy on the node.
-   * See
-   * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
-   * The following values are allowed.
-   * * "none": the default, which represents the existing scheduling behavior.
-   * * "static": allows pods with certain resource characteristics to be granted
-   * increased CPU affinity and exclusivity on the node.
-   * The default value is 'none' if unspecified.
-   * 
- * - * string cpu_manager_policy = 1; - * @return The cpuManagerPolicy. - */ - @java.lang.Override - public java.lang.String getCpuManagerPolicy() { - java.lang.Object ref = cpuManagerPolicy_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cpuManagerPolicy_ = s; - return s; - } - } - /** - *
-   * Control the CPU management policy on the node.
-   * See
-   * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
-   * The following values are allowed.
-   * * "none": the default, which represents the existing scheduling behavior.
-   * * "static": allows pods with certain resource characteristics to be granted
-   * increased CPU affinity and exclusivity on the node.
-   * The default value is 'none' if unspecified.
-   * 
- * - * string cpu_manager_policy = 1; - * @return The bytes for cpuManagerPolicy. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCpuManagerPolicyBytes() { - java.lang.Object ref = cpuManagerPolicy_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cpuManagerPolicy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CPU_CFS_QUOTA_FIELD_NUMBER = 2; - private com.google.protobuf.BoolValue cpuCfsQuota_; - /** - *
-   * Enable CPU CFS quota enforcement for containers that specify CPU limits.
-   * This option is enabled by default which makes kubelet use CFS quota
-   * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
-   * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
-   * all.
-   * Disable this option to mitigate CPU throttling problems while still having
-   * your pods to be in Guaranteed QoS class by specifying the CPU limits.
-   * The default value is 'true' if unspecified.
-   * 
- * - * .google.protobuf.BoolValue cpu_cfs_quota = 2; - * @return Whether the cpuCfsQuota field is set. - */ - @java.lang.Override - public boolean hasCpuCfsQuota() { - return cpuCfsQuota_ != null; - } - /** - *
-   * Enable CPU CFS quota enforcement for containers that specify CPU limits.
-   * This option is enabled by default which makes kubelet use CFS quota
-   * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
-   * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
-   * all.
-   * Disable this option to mitigate CPU throttling problems while still having
-   * your pods to be in Guaranteed QoS class by specifying the CPU limits.
-   * The default value is 'true' if unspecified.
-   * 
- * - * .google.protobuf.BoolValue cpu_cfs_quota = 2; - * @return The cpuCfsQuota. - */ - @java.lang.Override - public com.google.protobuf.BoolValue getCpuCfsQuota() { - return cpuCfsQuota_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : cpuCfsQuota_; - } - /** - *
-   * Enable CPU CFS quota enforcement for containers that specify CPU limits.
-   * This option is enabled by default which makes kubelet use CFS quota
-   * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
-   * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
-   * all.
-   * Disable this option to mitigate CPU throttling problems while still having
-   * your pods to be in Guaranteed QoS class by specifying the CPU limits.
-   * The default value is 'true' if unspecified.
-   * 
- * - * .google.protobuf.BoolValue cpu_cfs_quota = 2; - */ - @java.lang.Override - public com.google.protobuf.BoolValueOrBuilder getCpuCfsQuotaOrBuilder() { - return getCpuCfsQuota(); - } - - public static final int CPU_CFS_QUOTA_PERIOD_FIELD_NUMBER = 3; - private volatile java.lang.Object cpuCfsQuotaPeriod_; - /** - *
-   * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
-   * The string must be a sequence of decimal numbers, each with optional
-   * fraction and a unit suffix, such as "300ms".
-   * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
-   * The value must be a positive duration.
-   * 
- * - * string cpu_cfs_quota_period = 3; - * @return The cpuCfsQuotaPeriod. - */ - @java.lang.Override - public java.lang.String getCpuCfsQuotaPeriod() { - java.lang.Object ref = cpuCfsQuotaPeriod_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cpuCfsQuotaPeriod_ = s; - return s; - } - } - /** - *
-   * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
-   * The string must be a sequence of decimal numbers, each with optional
-   * fraction and a unit suffix, such as "300ms".
-   * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
-   * The value must be a positive duration.
-   * 
- * - * string cpu_cfs_quota_period = 3; - * @return The bytes for cpuCfsQuotaPeriod. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCpuCfsQuotaPeriodBytes() { - java.lang.Object ref = cpuCfsQuotaPeriod_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cpuCfsQuotaPeriod_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int POD_PIDS_LIMIT_FIELD_NUMBER = 4; - 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_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuManagerPolicy_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cpuManagerPolicy_); - } - if (cpuCfsQuota_ != null) { - output.writeMessage(2, getCpuCfsQuota()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuCfsQuotaPeriod_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cpuCfsQuotaPeriod_); - } - if (podPidsLimit_ != 0L) { - output.writeInt64(4, podPidsLimit_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuManagerPolicy_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cpuManagerPolicy_); - } - if (cpuCfsQuota_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCpuCfsQuota()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuCfsQuotaPeriod_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, cpuCfsQuotaPeriod_); - } - if (podPidsLimit_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, podPidsLimit_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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()); - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - cpuManagerPolicy_ = ""; - - if (cpuCfsQuotaBuilder_ == null) { - cpuCfsQuota_ = null; - } else { - cpuCfsQuota_ = null; - cpuCfsQuotaBuilder_ = null; - } - cpuCfsQuotaPeriod_ = ""; - - podPidsLimit_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeKubeletConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.NodeKubeletConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.NodeKubeletConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.NodeKubeletConfig build() { - com.google.container.v1beta1.NodeKubeletConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.NodeKubeletConfig buildPartial() { - com.google.container.v1beta1.NodeKubeletConfig result = new com.google.container.v1beta1.NodeKubeletConfig(this); - result.cpuManagerPolicy_ = cpuManagerPolicy_; - if (cpuCfsQuotaBuilder_ == null) { - result.cpuCfsQuota_ = cpuCfsQuota_; - } else { - result.cpuCfsQuota_ = cpuCfsQuotaBuilder_.build(); - } - result.cpuCfsQuotaPeriod_ = cpuCfsQuotaPeriod_; - result.podPidsLimit_ = podPidsLimit_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.NodeKubeletConfig) { - return mergeFrom((com.google.container.v1beta1.NodeKubeletConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.NodeKubeletConfig other) { - if (other == com.google.container.v1beta1.NodeKubeletConfig.getDefaultInstance()) return this; - if (!other.getCpuManagerPolicy().isEmpty()) { - cpuManagerPolicy_ = other.cpuManagerPolicy_; - onChanged(); - } - if (other.hasCpuCfsQuota()) { - mergeCpuCfsQuota(other.getCpuCfsQuota()); - } - if (!other.getCpuCfsQuotaPeriod().isEmpty()) { - cpuCfsQuotaPeriod_ = other.cpuCfsQuotaPeriod_; - onChanged(); - } - if (other.getPodPidsLimit() != 0L) { - setPodPidsLimit(other.getPodPidsLimit()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - input.readMessage( - getCpuCfsQuotaFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - case 26: { - cpuCfsQuotaPeriod_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 32: { - podPidsLimit_ = input.readInt64(); - - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object cpuManagerPolicy_ = ""; - /** - *
-     * Control the CPU management policy on the node.
-     * See
-     * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
-     * The following values are allowed.
-     * * "none": the default, which represents the existing scheduling behavior.
-     * * "static": allows pods with certain resource characteristics to be granted
-     * increased CPU affinity and exclusivity on the node.
-     * The default value is 'none' if unspecified.
-     * 
- * - * string cpu_manager_policy = 1; - * @return The cpuManagerPolicy. - */ - public java.lang.String getCpuManagerPolicy() { - java.lang.Object ref = cpuManagerPolicy_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cpuManagerPolicy_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Control the CPU management policy on the node.
-     * See
-     * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
-     * The following values are allowed.
-     * * "none": the default, which represents the existing scheduling behavior.
-     * * "static": allows pods with certain resource characteristics to be granted
-     * increased CPU affinity and exclusivity on the node.
-     * The default value is 'none' if unspecified.
-     * 
- * - * string cpu_manager_policy = 1; - * @return The bytes for cpuManagerPolicy. - */ - public com.google.protobuf.ByteString - getCpuManagerPolicyBytes() { - java.lang.Object ref = cpuManagerPolicy_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cpuManagerPolicy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Control the CPU management policy on the node.
-     * See
-     * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
-     * The following values are allowed.
-     * * "none": the default, which represents the existing scheduling behavior.
-     * * "static": allows pods with certain resource characteristics to be granted
-     * increased CPU affinity and exclusivity on the node.
-     * The default value is 'none' if unspecified.
-     * 
- * - * string cpu_manager_policy = 1; - * @param value The cpuManagerPolicy to set. - * @return This builder for chaining. - */ - public Builder setCpuManagerPolicy( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cpuManagerPolicy_ = value; - onChanged(); - return this; - } - /** - *
-     * Control the CPU management policy on the node.
-     * See
-     * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
-     * The following values are allowed.
-     * * "none": the default, which represents the existing scheduling behavior.
-     * * "static": allows pods with certain resource characteristics to be granted
-     * increased CPU affinity and exclusivity on the node.
-     * The default value is 'none' if unspecified.
-     * 
- * - * string cpu_manager_policy = 1; - * @return This builder for chaining. - */ - public Builder clearCpuManagerPolicy() { - - cpuManagerPolicy_ = getDefaultInstance().getCpuManagerPolicy(); - onChanged(); - return this; - } - /** - *
-     * Control the CPU management policy on the node.
-     * See
-     * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
-     * The following values are allowed.
-     * * "none": the default, which represents the existing scheduling behavior.
-     * * "static": allows pods with certain resource characteristics to be granted
-     * increased CPU affinity and exclusivity on the node.
-     * The default value is 'none' if unspecified.
-     * 
- * - * string cpu_manager_policy = 1; - * @param value The bytes for cpuManagerPolicy to set. - * @return This builder for chaining. - */ - public Builder setCpuManagerPolicyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cpuManagerPolicy_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.BoolValue cpuCfsQuota_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> cpuCfsQuotaBuilder_; - /** - *
-     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
-     * This option is enabled by default which makes kubelet use CFS quota
-     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
-     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
-     * all.
-     * Disable this option to mitigate CPU throttling problems while still having
-     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
-     * The default value is 'true' if unspecified.
-     * 
- * - * .google.protobuf.BoolValue cpu_cfs_quota = 2; - * @return Whether the cpuCfsQuota field is set. - */ - public boolean hasCpuCfsQuota() { - return cpuCfsQuotaBuilder_ != null || cpuCfsQuota_ != null; - } - /** - *
-     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
-     * This option is enabled by default which makes kubelet use CFS quota
-     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
-     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
-     * all.
-     * Disable this option to mitigate CPU throttling problems while still having
-     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
-     * The default value is 'true' if unspecified.
-     * 
- * - * .google.protobuf.BoolValue cpu_cfs_quota = 2; - * @return The cpuCfsQuota. - */ - public com.google.protobuf.BoolValue getCpuCfsQuota() { - if (cpuCfsQuotaBuilder_ == null) { - return cpuCfsQuota_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : cpuCfsQuota_; - } else { - return cpuCfsQuotaBuilder_.getMessage(); - } - } - /** - *
-     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
-     * This option is enabled by default which makes kubelet use CFS quota
-     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
-     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
-     * all.
-     * Disable this option to mitigate CPU throttling problems while still having
-     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
-     * The default value is 'true' if unspecified.
-     * 
- * - * .google.protobuf.BoolValue cpu_cfs_quota = 2; - */ - public Builder setCpuCfsQuota(com.google.protobuf.BoolValue value) { - if (cpuCfsQuotaBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - cpuCfsQuota_ = value; - onChanged(); - } else { - cpuCfsQuotaBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
-     * This option is enabled by default which makes kubelet use CFS quota
-     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
-     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
-     * all.
-     * Disable this option to mitigate CPU throttling problems while still having
-     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
-     * The default value is 'true' if unspecified.
-     * 
- * - * .google.protobuf.BoolValue cpu_cfs_quota = 2; - */ - public Builder setCpuCfsQuota( - com.google.protobuf.BoolValue.Builder builderForValue) { - if (cpuCfsQuotaBuilder_ == null) { - cpuCfsQuota_ = builderForValue.build(); - onChanged(); - } else { - cpuCfsQuotaBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
-     * This option is enabled by default which makes kubelet use CFS quota
-     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
-     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
-     * all.
-     * Disable this option to mitigate CPU throttling problems while still having
-     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
-     * The default value is 'true' if unspecified.
-     * 
- * - * .google.protobuf.BoolValue cpu_cfs_quota = 2; - */ - public Builder mergeCpuCfsQuota(com.google.protobuf.BoolValue value) { - if (cpuCfsQuotaBuilder_ == null) { - if (cpuCfsQuota_ != null) { - cpuCfsQuota_ = - com.google.protobuf.BoolValue.newBuilder(cpuCfsQuota_).mergeFrom(value).buildPartial(); - } else { - cpuCfsQuota_ = value; - } - onChanged(); - } else { - cpuCfsQuotaBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
-     * This option is enabled by default which makes kubelet use CFS quota
-     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
-     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
-     * all.
-     * Disable this option to mitigate CPU throttling problems while still having
-     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
-     * The default value is 'true' if unspecified.
-     * 
- * - * .google.protobuf.BoolValue cpu_cfs_quota = 2; - */ - public Builder clearCpuCfsQuota() { - if (cpuCfsQuotaBuilder_ == null) { - cpuCfsQuota_ = null; - onChanged(); - } else { - cpuCfsQuota_ = null; - cpuCfsQuotaBuilder_ = null; - } - - return this; - } - /** - *
-     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
-     * This option is enabled by default which makes kubelet use CFS quota
-     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
-     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
-     * all.
-     * Disable this option to mitigate CPU throttling problems while still having
-     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
-     * The default value is 'true' if unspecified.
-     * 
- * - * .google.protobuf.BoolValue cpu_cfs_quota = 2; - */ - public com.google.protobuf.BoolValue.Builder getCpuCfsQuotaBuilder() { - - onChanged(); - return getCpuCfsQuotaFieldBuilder().getBuilder(); - } - /** - *
-     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
-     * This option is enabled by default which makes kubelet use CFS quota
-     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
-     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
-     * all.
-     * Disable this option to mitigate CPU throttling problems while still having
-     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
-     * The default value is 'true' if unspecified.
-     * 
- * - * .google.protobuf.BoolValue cpu_cfs_quota = 2; - */ - public com.google.protobuf.BoolValueOrBuilder getCpuCfsQuotaOrBuilder() { - if (cpuCfsQuotaBuilder_ != null) { - return cpuCfsQuotaBuilder_.getMessageOrBuilder(); - } else { - return cpuCfsQuota_ == null ? - com.google.protobuf.BoolValue.getDefaultInstance() : cpuCfsQuota_; - } - } - /** - *
-     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
-     * This option is enabled by default which makes kubelet use CFS quota
-     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
-     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
-     * all.
-     * Disable this option to mitigate CPU throttling problems while still having
-     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
-     * The default value is 'true' if unspecified.
-     * 
- * - * .google.protobuf.BoolValue cpu_cfs_quota = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> - getCpuCfsQuotaFieldBuilder() { - if (cpuCfsQuotaBuilder_ == null) { - cpuCfsQuotaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( - getCpuCfsQuota(), - getParentForChildren(), - isClean()); - cpuCfsQuota_ = null; - } - return cpuCfsQuotaBuilder_; - } - - private java.lang.Object cpuCfsQuotaPeriod_ = ""; - /** - *
-     * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
-     * The string must be a sequence of decimal numbers, each with optional
-     * fraction and a unit suffix, such as "300ms".
-     * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
-     * The value must be a positive duration.
-     * 
- * - * string cpu_cfs_quota_period = 3; - * @return The cpuCfsQuotaPeriod. - */ - public java.lang.String getCpuCfsQuotaPeriod() { - java.lang.Object ref = cpuCfsQuotaPeriod_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cpuCfsQuotaPeriod_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
-     * The string must be a sequence of decimal numbers, each with optional
-     * fraction and a unit suffix, such as "300ms".
-     * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
-     * The value must be a positive duration.
-     * 
- * - * string cpu_cfs_quota_period = 3; - * @return The bytes for cpuCfsQuotaPeriod. - */ - public com.google.protobuf.ByteString - getCpuCfsQuotaPeriodBytes() { - java.lang.Object ref = cpuCfsQuotaPeriod_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cpuCfsQuotaPeriod_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
-     * The string must be a sequence of decimal numbers, each with optional
-     * fraction and a unit suffix, such as "300ms".
-     * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
-     * The value must be a positive duration.
-     * 
- * - * string cpu_cfs_quota_period = 3; - * @param value The cpuCfsQuotaPeriod to set. - * @return This builder for chaining. - */ - public Builder setCpuCfsQuotaPeriod( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cpuCfsQuotaPeriod_ = value; - onChanged(); - return this; - } - /** - *
-     * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
-     * The string must be a sequence of decimal numbers, each with optional
-     * fraction and a unit suffix, such as "300ms".
-     * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
-     * The value must be a positive duration.
-     * 
- * - * string cpu_cfs_quota_period = 3; - * @return This builder for chaining. - */ - public Builder clearCpuCfsQuotaPeriod() { - - cpuCfsQuotaPeriod_ = getDefaultInstance().getCpuCfsQuotaPeriod(); - onChanged(); - return this; - } - /** - *
-     * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
-     * The string must be a sequence of decimal numbers, each with optional
-     * fraction and a unit suffix, such as "300ms".
-     * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
-     * The value must be a positive duration.
-     * 
- * - * string cpu_cfs_quota_period = 3; - * @param value The bytes for cpuCfsQuotaPeriod to set. - * @return This builder for chaining. - */ - public Builder setCpuCfsQuotaPeriodBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cpuCfsQuotaPeriod_ = value; - onChanged(); - return this; - } - - 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; - 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() { - - podPidsLimit_ = 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.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 deleted file mode 100644 index 3d337ba52b6e..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeKubeletConfigOrBuilder.java +++ /dev/null @@ -1,132 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface NodeKubeletConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodeKubeletConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Control the CPU management policy on the node.
-   * See
-   * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
-   * The following values are allowed.
-   * * "none": the default, which represents the existing scheduling behavior.
-   * * "static": allows pods with certain resource characteristics to be granted
-   * increased CPU affinity and exclusivity on the node.
-   * The default value is 'none' if unspecified.
-   * 
- * - * string cpu_manager_policy = 1; - * @return The cpuManagerPolicy. - */ - java.lang.String getCpuManagerPolicy(); - /** - *
-   * Control the CPU management policy on the node.
-   * See
-   * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
-   * The following values are allowed.
-   * * "none": the default, which represents the existing scheduling behavior.
-   * * "static": allows pods with certain resource characteristics to be granted
-   * increased CPU affinity and exclusivity on the node.
-   * The default value is 'none' if unspecified.
-   * 
- * - * string cpu_manager_policy = 1; - * @return The bytes for cpuManagerPolicy. - */ - com.google.protobuf.ByteString - getCpuManagerPolicyBytes(); - - /** - *
-   * Enable CPU CFS quota enforcement for containers that specify CPU limits.
-   * This option is enabled by default which makes kubelet use CFS quota
-   * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
-   * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
-   * all.
-   * Disable this option to mitigate CPU throttling problems while still having
-   * your pods to be in Guaranteed QoS class by specifying the CPU limits.
-   * The default value is 'true' if unspecified.
-   * 
- * - * .google.protobuf.BoolValue cpu_cfs_quota = 2; - * @return Whether the cpuCfsQuota field is set. - */ - boolean hasCpuCfsQuota(); - /** - *
-   * Enable CPU CFS quota enforcement for containers that specify CPU limits.
-   * This option is enabled by default which makes kubelet use CFS quota
-   * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
-   * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
-   * all.
-   * Disable this option to mitigate CPU throttling problems while still having
-   * your pods to be in Guaranteed QoS class by specifying the CPU limits.
-   * The default value is 'true' if unspecified.
-   * 
- * - * .google.protobuf.BoolValue cpu_cfs_quota = 2; - * @return The cpuCfsQuota. - */ - com.google.protobuf.BoolValue getCpuCfsQuota(); - /** - *
-   * Enable CPU CFS quota enforcement for containers that specify CPU limits.
-   * This option is enabled by default which makes kubelet use CFS quota
-   * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
-   * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
-   * all.
-   * Disable this option to mitigate CPU throttling problems while still having
-   * your pods to be in Guaranteed QoS class by specifying the CPU limits.
-   * The default value is 'true' if unspecified.
-   * 
- * - * .google.protobuf.BoolValue cpu_cfs_quota = 2; - */ - com.google.protobuf.BoolValueOrBuilder getCpuCfsQuotaOrBuilder(); - - /** - *
-   * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
-   * The string must be a sequence of decimal numbers, each with optional
-   * fraction and a unit suffix, such as "300ms".
-   * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
-   * The value must be a positive duration.
-   * 
- * - * string cpu_cfs_quota_period = 3; - * @return The cpuCfsQuotaPeriod. - */ - java.lang.String getCpuCfsQuotaPeriod(); - /** - *
-   * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
-   * The string must be a sequence of decimal numbers, each with optional
-   * fraction and a unit suffix, such as "300ms".
-   * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
-   * The value must be a positive duration.
-   * 
- * - * string cpu_cfs_quota_period = 3; - * @return The bytes for cpuCfsQuotaPeriod. - */ - com.google.protobuf.ByteString - getCpuCfsQuotaPeriodBytes(); - - /** - *
-   * 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(); -} 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 deleted file mode 100644 index 2bd69fccd534..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeLabels.java +++ /dev/null @@ -1,738 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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.MapField internalGetMapField( - 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, - ""); - } - 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 java.lang.String getLabelsOrDefault( - java.lang.String key, - 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.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetLabels(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - 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(); - 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); - int from_bitField0_ = bitField0_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.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()); - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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()); - 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() { - onChanged();; - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - *
-     * 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 java.lang.String getLabelsOrDefault( - java.lang.String key, - 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() { - 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() { - 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); - 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); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 8b1e3ff18a50..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeLabelsOrBuilder.java +++ /dev/null @@ -1,65 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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 deleted file mode 100644 index bd805b621dfd..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeManagement.java +++ /dev/null @@ -1,803 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * NodeManagement defines the set of node management services turned on for the
- * node pool.
- * 
- * - * Protobuf type {@code google.container.v1beta1.NodeManagement} - */ -public final class NodeManagement extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodeManagement) - NodeManagementOrBuilder { -private static final long serialVersionUID = 0L; - // Use NodeManagement.newBuilder() to construct. - private NodeManagement(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeManagement() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NodeManagement(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeManagement_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeManagement_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NodeManagement.class, com.google.container.v1beta1.NodeManagement.Builder.class); - } - - public static final int AUTO_UPGRADE_FIELD_NUMBER = 1; - private boolean autoUpgrade_; - /** - *
-   * Whether the nodes will be automatically upgraded.
-   * 
- * - * bool auto_upgrade = 1; - * @return The autoUpgrade. - */ - @java.lang.Override - public boolean getAutoUpgrade() { - return autoUpgrade_; - } - - public static final int AUTO_REPAIR_FIELD_NUMBER = 2; - private boolean autoRepair_; - /** - *
-   * Whether the nodes will be automatically repaired.
-   * 
- * - * bool auto_repair = 2; - * @return The autoRepair. - */ - @java.lang.Override - public boolean getAutoRepair() { - return autoRepair_; - } - - public static final int UPGRADE_OPTIONS_FIELD_NUMBER = 10; - private com.google.container.v1beta1.AutoUpgradeOptions upgradeOptions_; - /** - *
-   * Specifies the Auto Upgrade knobs for the node pool.
-   * 
- * - * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; - * @return Whether the upgradeOptions field is set. - */ - @java.lang.Override - public boolean hasUpgradeOptions() { - return upgradeOptions_ != null; - } - /** - *
-   * Specifies the Auto Upgrade knobs for the node pool.
-   * 
- * - * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; - * @return The upgradeOptions. - */ - @java.lang.Override - public com.google.container.v1beta1.AutoUpgradeOptions getUpgradeOptions() { - return upgradeOptions_ == null ? com.google.container.v1beta1.AutoUpgradeOptions.getDefaultInstance() : upgradeOptions_; - } - /** - *
-   * Specifies the Auto Upgrade knobs for the node pool.
-   * 
- * - * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; - */ - @java.lang.Override - public com.google.container.v1beta1.AutoUpgradeOptionsOrBuilder getUpgradeOptionsOrBuilder() { - return getUpgradeOptions(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (autoUpgrade_ != false) { - output.writeBool(1, autoUpgrade_); - } - if (autoRepair_ != false) { - output.writeBool(2, autoRepair_); - } - if (upgradeOptions_ != null) { - output.writeMessage(10, getUpgradeOptions()); - } - 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 (upgradeOptions_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - autoUpgrade_ = false; - - autoRepair_ = false; - - if (upgradeOptionsBuilder_ == null) { - upgradeOptions_ = null; - } else { - upgradeOptions_ = null; - upgradeOptionsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeManagement_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.NodeManagement getDefaultInstanceForType() { - return com.google.container.v1beta1.NodeManagement.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.NodeManagement build() { - com.google.container.v1beta1.NodeManagement result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.NodeManagement buildPartial() { - com.google.container.v1beta1.NodeManagement result = new com.google.container.v1beta1.NodeManagement(this); - result.autoUpgrade_ = autoUpgrade_; - result.autoRepair_ = autoRepair_; - if (upgradeOptionsBuilder_ == null) { - result.upgradeOptions_ = upgradeOptions_; - } else { - result.upgradeOptions_ = upgradeOptionsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.NodeManagement) { - return mergeFrom((com.google.container.v1beta1.NodeManagement)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.NodeManagement other) { - if (other == com.google.container.v1beta1.NodeManagement.getDefaultInstance()) return this; - if (other.getAutoUpgrade() != false) { - setAutoUpgrade(other.getAutoUpgrade()); - } - if (other.getAutoRepair() != false) { - setAutoRepair(other.getAutoRepair()); - } - if (other.hasUpgradeOptions()) { - mergeUpgradeOptions(other.getUpgradeOptions()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 8 - case 16: { - autoRepair_ = input.readBool(); - - break; - } // case 16 - case 82: { - input.readMessage( - getUpgradeOptionsFieldBuilder().getBuilder(), - extensionRegistry); - - 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 boolean autoUpgrade_ ; - /** - *
-     * Whether the nodes will be automatically upgraded.
-     * 
- * - * bool auto_upgrade = 1; - * @return The autoUpgrade. - */ - @java.lang.Override - public boolean getAutoUpgrade() { - return autoUpgrade_; - } - /** - *
-     * Whether the nodes will be automatically upgraded.
-     * 
- * - * bool auto_upgrade = 1; - * @param value The autoUpgrade to set. - * @return This builder for chaining. - */ - public Builder setAutoUpgrade(boolean value) { - - autoUpgrade_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether the nodes will be automatically upgraded.
-     * 
- * - * bool auto_upgrade = 1; - * @return This builder for chaining. - */ - public Builder clearAutoUpgrade() { - - autoUpgrade_ = false; - onChanged(); - return this; - } - - private boolean autoRepair_ ; - /** - *
-     * Whether the nodes will be automatically repaired.
-     * 
- * - * bool auto_repair = 2; - * @return The autoRepair. - */ - @java.lang.Override - public boolean getAutoRepair() { - return autoRepair_; - } - /** - *
-     * Whether the nodes will be automatically repaired.
-     * 
- * - * bool auto_repair = 2; - * @param value The autoRepair to set. - * @return This builder for chaining. - */ - public Builder setAutoRepair(boolean value) { - - autoRepair_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether the nodes will be automatically repaired.
-     * 
- * - * bool auto_repair = 2; - * @return This builder for chaining. - */ - public Builder clearAutoRepair() { - - autoRepair_ = false; - onChanged(); - return this; - } - - private com.google.container.v1beta1.AutoUpgradeOptions upgradeOptions_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AutoUpgradeOptions, com.google.container.v1beta1.AutoUpgradeOptions.Builder, com.google.container.v1beta1.AutoUpgradeOptionsOrBuilder> upgradeOptionsBuilder_; - /** - *
-     * Specifies the Auto Upgrade knobs for the node pool.
-     * 
- * - * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; - * @return Whether the upgradeOptions field is set. - */ - public boolean hasUpgradeOptions() { - return upgradeOptionsBuilder_ != null || upgradeOptions_ != null; - } - /** - *
-     * Specifies the Auto Upgrade knobs for the node pool.
-     * 
- * - * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; - * @return The upgradeOptions. - */ - public com.google.container.v1beta1.AutoUpgradeOptions getUpgradeOptions() { - if (upgradeOptionsBuilder_ == null) { - return upgradeOptions_ == null ? com.google.container.v1beta1.AutoUpgradeOptions.getDefaultInstance() : upgradeOptions_; - } else { - return upgradeOptionsBuilder_.getMessage(); - } - } - /** - *
-     * Specifies the Auto Upgrade knobs for the node pool.
-     * 
- * - * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; - */ - public Builder setUpgradeOptions(com.google.container.v1beta1.AutoUpgradeOptions value) { - if (upgradeOptionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - upgradeOptions_ = value; - onChanged(); - } else { - upgradeOptionsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Specifies the Auto Upgrade knobs for the node pool.
-     * 
- * - * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; - */ - public Builder setUpgradeOptions( - com.google.container.v1beta1.AutoUpgradeOptions.Builder builderForValue) { - if (upgradeOptionsBuilder_ == null) { - upgradeOptions_ = builderForValue.build(); - onChanged(); - } else { - upgradeOptionsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Specifies the Auto Upgrade knobs for the node pool.
-     * 
- * - * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; - */ - public Builder mergeUpgradeOptions(com.google.container.v1beta1.AutoUpgradeOptions value) { - if (upgradeOptionsBuilder_ == null) { - if (upgradeOptions_ != null) { - upgradeOptions_ = - com.google.container.v1beta1.AutoUpgradeOptions.newBuilder(upgradeOptions_).mergeFrom(value).buildPartial(); - } else { - upgradeOptions_ = value; - } - onChanged(); - } else { - upgradeOptionsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Specifies the Auto Upgrade knobs for the node pool.
-     * 
- * - * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; - */ - public Builder clearUpgradeOptions() { - if (upgradeOptionsBuilder_ == null) { - upgradeOptions_ = null; - onChanged(); - } else { - upgradeOptions_ = null; - upgradeOptionsBuilder_ = null; - } - - return this; - } - /** - *
-     * Specifies the Auto Upgrade knobs for the node pool.
-     * 
- * - * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; - */ - public com.google.container.v1beta1.AutoUpgradeOptions.Builder getUpgradeOptionsBuilder() { - - onChanged(); - return getUpgradeOptionsFieldBuilder().getBuilder(); - } - /** - *
-     * Specifies the Auto Upgrade knobs for the node pool.
-     * 
- * - * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; - */ - public com.google.container.v1beta1.AutoUpgradeOptionsOrBuilder getUpgradeOptionsOrBuilder() { - if (upgradeOptionsBuilder_ != null) { - return upgradeOptionsBuilder_.getMessageOrBuilder(); - } else { - return upgradeOptions_ == null ? - com.google.container.v1beta1.AutoUpgradeOptions.getDefaultInstance() : upgradeOptions_; - } - } - /** - *
-     * Specifies the Auto Upgrade knobs for the node pool.
-     * 
- * - * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AutoUpgradeOptions, com.google.container.v1beta1.AutoUpgradeOptions.Builder, com.google.container.v1beta1.AutoUpgradeOptionsOrBuilder> - getUpgradeOptionsFieldBuilder() { - if (upgradeOptionsBuilder_ == null) { - upgradeOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AutoUpgradeOptions, com.google.container.v1beta1.AutoUpgradeOptions.Builder, com.google.container.v1beta1.AutoUpgradeOptionsOrBuilder>( - getUpgradeOptions(), - getParentForChildren(), - isClean()); - upgradeOptions_ = null; - } - return upgradeOptionsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.NodeManagement) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodeManagement) - private static final com.google.container.v1beta1.NodeManagement DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.NodeManagement(); - } - - public static com.google.container.v1beta1.NodeManagement getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeManagement parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index e5dd0b1646d2..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeManagementOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface NodeManagementOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodeManagement) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether the nodes will be automatically upgraded.
-   * 
- * - * bool auto_upgrade = 1; - * @return The autoUpgrade. - */ - boolean getAutoUpgrade(); - - /** - *
-   * Whether the nodes will be automatically repaired.
-   * 
- * - * bool auto_repair = 2; - * @return The autoRepair. - */ - boolean getAutoRepair(); - - /** - *
-   * Specifies the Auto Upgrade knobs for the node pool.
-   * 
- * - * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; - * @return Whether the upgradeOptions field is set. - */ - boolean hasUpgradeOptions(); - /** - *
-   * Specifies the Auto Upgrade knobs for the node pool.
-   * 
- * - * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; - * @return The upgradeOptions. - */ - com.google.container.v1beta1.AutoUpgradeOptions getUpgradeOptions(); - /** - *
-   * Specifies the Auto Upgrade knobs for the node pool.
-   * 
- * - * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; - */ - com.google.container.v1beta1.AutoUpgradeOptionsOrBuilder getUpgradeOptionsOrBuilder(); -} diff --git a/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 deleted file mode 100644 index 91ecb3a81c4e..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeNetworkConfig.java +++ /dev/null @@ -1,2231 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NodeNetworkConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-     * 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier result = com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier.valueOf(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_; - /** - *
-     * 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier result = com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier.valueOf(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(); - totalEgressBandwidthTier_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - externalIpEgressBandwidthTier_ = 0; - 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_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); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - to_bitField0_ |= 0x00000001; - } - result.totalEgressBandwidthTier_ = totalEgressBandwidthTier_; - if (((from_bitField0_ & 0x00000002) != 0)) { - to_bitField0_ |= 0x00000002; - } - result.externalIpEgressBandwidthTier_ = externalIpEgressBandwidthTier_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.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) { - bitField0_ |= 0x00000001; - totalEgressBandwidthTier_ = value; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier result = com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier.valueOf(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) { - bitField0_ |= 0x00000002; - externalIpEgressBandwidthTier_ = value; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier result = com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier.valueOf(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_; - /** - *
-   * Input only. Whether to create a new range for pod IPs in this node pool.
-   * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
-   * are not specified.
-   * If neither `create_pod_range` or `pod_range` are specified, the
-   * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
-   * used.
-   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-   * This field cannot be changed after the node pool has been created.
-   * 
- * - * bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return The createPodRange. - */ - @java.lang.Override - public boolean getCreatePodRange() { - return createPodRange_; - } - - public static final int POD_RANGE_FIELD_NUMBER = 5; - private volatile java.lang.Object podRange_; - /** - *
-   * The ID of the secondary range for pod IPs.
-   * If `create_pod_range` is true, this ID is used for the new range.
-   * If `create_pod_range` is false, uses an existing secondary range with this
-   * ID.
-   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-   * This field cannot be changed after the node pool has been created.
-   * 
- * - * string pod_range = 5; - * @return The podRange. - */ - @java.lang.Override - public java.lang.String getPodRange() { - java.lang.Object ref = podRange_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - podRange_ = s; - return s; - } - } - /** - *
-   * The ID of the secondary range for pod IPs.
-   * If `create_pod_range` is true, this ID is used for the new range.
-   * If `create_pod_range` is false, uses an existing secondary range with this
-   * ID.
-   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-   * This field cannot be changed after the node pool has been created.
-   * 
- * - * string pod_range = 5; - * @return The bytes for podRange. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPodRangeBytes() { - java.lang.Object ref = podRange_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - podRange_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int POD_IPV4_CIDR_BLOCK_FIELD_NUMBER = 6; - private volatile java.lang.Object podIpv4CidrBlock_; - /** - *
-   * The IP address range for pod IPs in this node pool.
-   * Only applicable if `create_pod_range` is true.
-   * Set to blank to have a range chosen with the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
-   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-   * This field cannot be changed after the node pool has been created.
-   * 
- * - * string pod_ipv4_cidr_block = 6; - * @return The podIpv4CidrBlock. - */ - @java.lang.Override - public java.lang.String getPodIpv4CidrBlock() { - java.lang.Object ref = podIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - podIpv4CidrBlock_ = s; - return s; - } - } - /** - *
-   * The IP address range for pod IPs in this node pool.
-   * Only applicable if `create_pod_range` is true.
-   * Set to blank to have a range chosen with the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
-   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-   * This field cannot be changed after the node pool has been created.
-   * 
- * - * string pod_ipv4_cidr_block = 6; - * @return The bytes for podIpv4CidrBlock. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPodIpv4CidrBlockBytes() { - java.lang.Object ref = podIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - podIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ENABLE_PRIVATE_NODES_FIELD_NUMBER = 9; - 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_ & 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_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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()); - } - 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()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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(); - } - 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(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - createPodRange_ = false; - - podRange_ = ""; - - podIpv4CidrBlock_ = ""; - - enablePrivateNodes_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - if (networkPerformanceConfigBuilder_ == null) { - networkPerformanceConfig_ = null; - } else { - networkPerformanceConfigBuilder_.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_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); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.createPodRange_ = createPodRange_; - result.podRange_ = podRange_; - result.podIpv4CidrBlock_ = podIpv4CidrBlock_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enablePrivateNodes_ = enablePrivateNodes_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - if (networkPerformanceConfigBuilder_ == null) { - result.networkPerformanceConfig_ = networkPerformanceConfig_; - } else { - result.networkPerformanceConfig_ = networkPerformanceConfigBuilder_.build(); - } - to_bitField0_ |= 0x00000002; - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.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_; - onChanged(); - } - if (!other.getPodIpv4CidrBlock().isEmpty()) { - podIpv4CidrBlock_ = other.podIpv4CidrBlock_; - onChanged(); - } - if (other.hasEnablePrivateNodes()) { - setEnablePrivateNodes(other.getEnablePrivateNodes()); - } - if (other.hasNetworkPerformanceConfig()) { - mergeNetworkPerformanceConfig(other.getNetworkPerformanceConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == 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(); - - break; - } // case 32 - case 42: { - podRange_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: { - podIpv4CidrBlock_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 72: { - enablePrivateNodes_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 72 - case 90: { - input.readMessage( - getNetworkPerformanceConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 90 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - 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; - onChanged(); - return this; - } - /** - *
-     * Input only. Whether to create a new range for pod IPs in this node pool.
-     * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
-     * are not specified.
-     * If neither `create_pod_range` or `pod_range` are specified, the
-     * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
-     * used.
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearCreatePodRange() { - - createPodRange_ = false; - onChanged(); - return this; - } - - private java.lang.Object podRange_ = ""; - /** - *
-     * The ID of the secondary range for pod IPs.
-     * If `create_pod_range` is true, this ID is used for the new range.
-     * If `create_pod_range` is false, uses an existing secondary range with this
-     * ID.
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_range = 5; - * @return The podRange. - */ - public java.lang.String getPodRange() { - java.lang.Object ref = podRange_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - podRange_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The ID of the secondary range for pod IPs.
-     * If `create_pod_range` is true, this ID is used for the new range.
-     * If `create_pod_range` is false, uses an existing secondary range with this
-     * ID.
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_range = 5; - * @return The bytes for podRange. - */ - public com.google.protobuf.ByteString - getPodRangeBytes() { - java.lang.Object ref = podRange_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - podRange_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The ID of the secondary range for pod IPs.
-     * If `create_pod_range` is true, this ID is used for the new range.
-     * If `create_pod_range` is false, uses an existing secondary range with this
-     * ID.
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_range = 5; - * @param value The podRange to set. - * @return This builder for chaining. - */ - public Builder setPodRange( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - podRange_ = value; - onChanged(); - return this; - } - /** - *
-     * The ID of the secondary range for pod IPs.
-     * If `create_pod_range` is true, this ID is used for the new range.
-     * If `create_pod_range` is false, uses an existing secondary range with this
-     * ID.
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_range = 5; - * @return This builder for chaining. - */ - public Builder clearPodRange() { - - podRange_ = getDefaultInstance().getPodRange(); - onChanged(); - return this; - } - /** - *
-     * The ID of the secondary range for pod IPs.
-     * If `create_pod_range` is true, this ID is used for the new range.
-     * If `create_pod_range` is false, uses an existing secondary range with this
-     * ID.
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_range = 5; - * @param value The bytes for podRange to set. - * @return This builder for chaining. - */ - public Builder setPodRangeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - podRange_ = value; - onChanged(); - return this; - } - - private java.lang.Object podIpv4CidrBlock_ = ""; - /** - *
-     * The IP address range for pod IPs in this node pool.
-     * Only applicable if `create_pod_range` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_ipv4_cidr_block = 6; - * @return The podIpv4CidrBlock. - */ - public java.lang.String getPodIpv4CidrBlock() { - java.lang.Object ref = podIpv4CidrBlock_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - podIpv4CidrBlock_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The IP address range for pod IPs in this node pool.
-     * Only applicable if `create_pod_range` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_ipv4_cidr_block = 6; - * @return The bytes for podIpv4CidrBlock. - */ - public com.google.protobuf.ByteString - getPodIpv4CidrBlockBytes() { - java.lang.Object ref = podIpv4CidrBlock_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - podIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The IP address range for pod IPs in this node pool.
-     * Only applicable if `create_pod_range` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_ipv4_cidr_block = 6; - * @param value The podIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setPodIpv4CidrBlock( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - podIpv4CidrBlock_ = value; - onChanged(); - return this; - } - /** - *
-     * The IP address range for pod IPs in this node pool.
-     * Only applicable if `create_pod_range` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_ipv4_cidr_block = 6; - * @return This builder for chaining. - */ - public Builder clearPodIpv4CidrBlock() { - - podIpv4CidrBlock_ = getDefaultInstance().getPodIpv4CidrBlock(); - onChanged(); - return this; - } - /** - *
-     * The IP address range for pod IPs in this node pool.
-     * Only applicable if `create_pod_range` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_ipv4_cidr_block = 6; - * @param value The bytes for podIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setPodIpv4CidrBlockBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - podIpv4CidrBlock_ = value; - onChanged(); - return this; - } - - 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_ & 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_; - } - /** - *
-     * 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) { - bitField0_ |= 0x00000001; - enablePrivateNodes_ = value; - 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_ & ~0x00000001); - 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_ & 0x00000002) != 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; - onChanged(); - } else { - networkPerformanceConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - 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(); - onChanged(); - } else { - networkPerformanceConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - 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_ & 0x00000002) != 0) && - networkPerformanceConfig_ != null && - networkPerformanceConfig_ != com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.getDefaultInstance()) { - networkPerformanceConfig_ = - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.newBuilder(networkPerformanceConfig_).mergeFrom(value).buildPartial(); - } else { - networkPerformanceConfig_ = value; - } - onChanged(); - } else { - networkPerformanceConfigBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - *
-     * Network bandwidth tier configuration.
-     * 
- * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - */ - public Builder clearNetworkPerformanceConfig() { - if (networkPerformanceConfigBuilder_ == null) { - networkPerformanceConfig_ = null; - onChanged(); - } else { - networkPerformanceConfigBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - 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_ |= 0x00000002; - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 061bb7d223a0..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeNetworkConfigOrBuilder.java +++ /dev/null @@ -1,144 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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(); -} 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 deleted file mode 100644 index 9e3f20587bd7..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePool.java +++ /dev/null @@ -1,8845 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * NodePool contains the name and configuration for a cluster's node pool.
- * Node pools are a set of nodes (i.e. VM's), with a common configuration and
- * specification, under the control of the cluster master. They may have a set
- * of Kubernetes labels applied to them, which may be used to reference them
- * during pod scheduling. They may also be resized up or down, to accommodate
- * the workload.
- * These upgrade settings control the level of parallelism and the level of
- * disruption caused by an upgrade.
- * maxUnavailable controls the number of nodes that can be simultaneously
- * unavailable.
- * maxSurge controls the number of additional nodes that can be added to the
- * node pool temporarily for the time of the upgrade to increase the number of
- * available nodes.
- * (maxUnavailable + maxSurge) determines the level of parallelism (how many
- * nodes are being upgraded at the same time).
- * Note: upgrades inevitably introduce some disruption since workloads need to
- * be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
- * this holds true. (Disruption stays within the limits of
- * PodDisruptionBudget, if it is configured.)
- * Consider a hypothetical node pool with 5 nodes having maxSurge=2,
- * maxUnavailable=1. This means the upgrade process upgrades 3 nodes
- * simultaneously. It creates 2 additional (upgraded) nodes, then it brings
- * down 3 old (not yet upgraded) nodes at the same time. This ensures that
- * there are always at least 4 nodes available.
- * 
- * - * Protobuf type {@code google.container.v1beta1.NodePool} - */ -public final class NodePool extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodePool) - NodePoolOrBuilder { -private static final long serialVersionUID = 0L; - // Use NodePool.newBuilder() to construct. - private NodePool(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodePool() { - name_ = ""; - locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - selfLink_ = ""; - version_ = ""; - instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - status_ = 0; - statusMessage_ = ""; - conditions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NodePool(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-     * The maximum number of nodes that can be created beyond the current size
-     * of the node pool during the upgrade process.
-     * 
- * - * int32 max_surge = 1; - * @return The maxSurge. - */ - @java.lang.Override - public int getMaxSurge() { - return maxSurge_; - } - - public static final int MAX_UNAVAILABLE_FIELD_NUMBER = 2; - private int maxUnavailable_; - /** - *
-     * The maximum number of nodes that can be simultaneously unavailable during
-     * the upgrade process. A node is considered available if its status is
-     * Ready.
-     * 
- * - * int32 max_unavailable = 2; - * @return The maxUnavailable. - */ - @java.lang.Override - public int getMaxUnavailable() { - return maxUnavailable_; - } - - public static final int STRATEGY_FIELD_NUMBER = 3; - private int strategy_; - /** - *
-     * 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.NodePoolUpdateStrategy result = com.google.container.v1beta1.NodePoolUpdateStrategy.valueOf(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 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(); - maxSurge_ = 0; - - maxUnavailable_ = 0; - - strategy_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - if (blueGreenSettingsBuilder_ == null) { - blueGreenSettings_ = null; - } else { - blueGreenSettingsBuilder_.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_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); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.maxSurge_ = maxSurge_; - result.maxUnavailable_ = maxUnavailable_; - if (((from_bitField0_ & 0x00000001) != 0)) { - to_bitField0_ |= 0x00000001; - } - result.strategy_ = strategy_; - if (((from_bitField0_ & 0x00000002) != 0)) { - if (blueGreenSettingsBuilder_ == null) { - result.blueGreenSettings_ = blueGreenSettings_; - } else { - result.blueGreenSettings_ = blueGreenSettingsBuilder_.build(); - } - to_bitField0_ |= 0x00000002; - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.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(); - - break; - } // case 8 - case 16: { - maxUnavailable_ = input.readInt32(); - - break; - } // case 16 - case 24: { - strategy_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 24 - case 34: { - input.readMessage( - getBlueGreenSettingsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - 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; - onChanged(); - return this; - } - /** - *
-       * The maximum number of nodes that can be created beyond the current size
-       * of the node pool during the upgrade process.
-       * 
- * - * int32 max_surge = 1; - * @return This builder for chaining. - */ - public Builder clearMaxSurge() { - - maxSurge_ = 0; - onChanged(); - return this; - } - - private int maxUnavailable_ ; - /** - *
-       * The maximum number of nodes that can be simultaneously unavailable during
-       * the upgrade process. A node is considered available if its status is
-       * Ready.
-       * 
- * - * int32 max_unavailable = 2; - * @return The maxUnavailable. - */ - @java.lang.Override - public int getMaxUnavailable() { - return maxUnavailable_; - } - /** - *
-       * The maximum number of nodes that can be simultaneously unavailable during
-       * the upgrade process. A node is considered available if its status is
-       * Ready.
-       * 
- * - * int32 max_unavailable = 2; - * @param value The maxUnavailable to set. - * @return This builder for chaining. - */ - public Builder setMaxUnavailable(int value) { - - maxUnavailable_ = value; - onChanged(); - return this; - } - /** - *
-       * The maximum number of nodes that can be simultaneously unavailable during
-       * the upgrade process. A node is considered available if its status is
-       * Ready.
-       * 
- * - * int32 max_unavailable = 2; - * @return This builder for chaining. - */ - public Builder clearMaxUnavailable() { - - maxUnavailable_ = 0; - onChanged(); - return this; - } - - 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; - * @param value The enum numeric value on the wire for strategy to set. - * @return This builder for chaining. - */ - public Builder setStrategyValue(int value) { - bitField0_ |= 0x00000001; - strategy_ = value; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.NodePoolUpdateStrategy result = com.google.container.v1beta1.NodePoolUpdateStrategy.valueOf(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_ |= 0x00000001; - 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_ & ~0x00000001); - 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_ & 0x00000002) != 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; - onChanged(); - } else { - blueGreenSettingsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - 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(); - onChanged(); - } else { - blueGreenSettingsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - 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_ & 0x00000002) != 0) && - blueGreenSettings_ != null && - blueGreenSettings_ != com.google.container.v1beta1.BlueGreenSettings.getDefaultInstance()) { - blueGreenSettings_ = - com.google.container.v1beta1.BlueGreenSettings.newBuilder(blueGreenSettings_).mergeFrom(value).buildPartial(); - } else { - blueGreenSettings_ = value; - } - onChanged(); - } else { - blueGreenSettingsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - *
-       * Settings for blue-green upgrade strategy.
-       * 
- * - * optional .google.container.v1beta1.BlueGreenSettings blue_green_settings = 4; - */ - public Builder clearBlueGreenSettings() { - if (blueGreenSettingsBuilder_ == null) { - blueGreenSettings_ = null; - onChanged(); - } else { - blueGreenSettingsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - 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_ |= 0x00000002; - 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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.EMPTY; - greenInstanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bluePoolDeletionStartTime_ = ""; - greenPoolVersion_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BlueGreenInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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 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.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_; - /** - *
-       * 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase result = com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase.valueOf(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; - private com.google.protobuf.LazyStringList 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 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; - private com.google.protobuf.LazyStringList 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 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; - 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; - 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(); - phase_ = 0; - - blueInstanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - greenInstanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - 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); - int from_bitField0_ = bitField0_; - result.phase_ = phase_; - if (((bitField0_ & 0x00000001) != 0)) { - blueInstanceGroupUrls_ = blueInstanceGroupUrls_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.blueInstanceGroupUrls_ = blueInstanceGroupUrls_; - if (((bitField0_ & 0x00000002) != 0)) { - greenInstanceGroupUrls_ = greenInstanceGroupUrls_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.greenInstanceGroupUrls_ = greenInstanceGroupUrls_; - result.bluePoolDeletionStartTime_ = bluePoolDeletionStartTime_; - result.greenPoolVersion_ = greenPoolVersion_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.NodePool.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_ = (bitField0_ & ~0x00000001); - } else { - ensureBlueInstanceGroupUrlsIsMutable(); - blueInstanceGroupUrls_.addAll(other.blueInstanceGroupUrls_); - } - onChanged(); - } - if (!other.greenInstanceGroupUrls_.isEmpty()) { - if (greenInstanceGroupUrls_.isEmpty()) { - greenInstanceGroupUrls_ = other.greenInstanceGroupUrls_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureGreenInstanceGroupUrlsIsMutable(); - greenInstanceGroupUrls_.addAll(other.greenInstanceGroupUrls_); - } - onChanged(); - } - if (!other.getBluePoolDeletionStartTime().isEmpty()) { - bluePoolDeletionStartTime_ = other.bluePoolDeletionStartTime_; - onChanged(); - } - if (!other.getGreenPoolVersion().isEmpty()) { - greenPoolVersion_ = other.greenPoolVersion_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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(); - - break; - } // case 34 - case 42: { - greenPoolVersion_ = input.readStringRequireUtf8(); - - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase result = com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase.valueOf(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(); - } - - 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() { - - phase_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList blueInstanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureBlueInstanceGroupUrlsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - blueInstanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(blueInstanceGroupUrls_); - bitField0_ |= 0x00000001; - } - } - /** - *
-         * 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_.getUnmodifiableView(); - } - /** - *
-         * 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); - 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); - 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_); - 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.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - 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); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList greenInstanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureGreenInstanceGroupUrlsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - greenInstanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(greenInstanceGroupUrls_); - bitField0_ |= 0x00000002; - } - } - /** - *
-         * 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_.getUnmodifiableView(); - } - /** - *
-         * 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); - 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); - 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_); - 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.EMPTY; - 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 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); - 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; - 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(); - 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; - 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; - onChanged(); - return this; - } - /** - *
-         * Version of green pool.
-         * 
- * - * string green_pool_version = 5; - * @return This builder for chaining. - */ - public Builder clearGreenPoolVersion() { - - greenPoolVersion_ = getDefaultInstance().getGreenPoolVersion(); - 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; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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; - } - - } - - 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 blueGreenInfo_ != null; - } - /** - *
-     * 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 getBlueGreenInfo(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blueGreenInfo_ != null) { - output.writeMessage(1, getBlueGreenInfo()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (blueGreenInfo_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (blueGreenInfoBuilder_ == null) { - blueGreenInfo_ = null; - } else { - blueGreenInfo_ = null; - 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 (blueGreenInfoBuilder_ == null) { - result.blueGreenInfo_ = blueGreenInfo_; - } else { - result.blueGreenInfo_ = blueGreenInfoBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.NodePool.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); - - 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 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 blueGreenInfoBuilder_ != null || blueGreenInfo_ != null; - } - /** - *
-       * 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; - onChanged(); - } else { - blueGreenInfoBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - blueGreenInfoBuilder_.setMessage(builderForValue.build()); - } - - 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 (blueGreenInfo_ != null) { - blueGreenInfo_ = - com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.newBuilder(blueGreenInfo_).mergeFrom(value).buildPartial(); - } else { - blueGreenInfo_ = value; - } - onChanged(); - } else { - blueGreenInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Information of a blue-green upgrade.
-       * 
- * - * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - */ - public Builder clearBlueGreenInfo() { - if (blueGreenInfoBuilder_ == null) { - blueGreenInfo_ = null; - onChanged(); - } else { - blueGreenInfo_ = null; - blueGreenInfoBuilder_ = null; - } - - 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() { - - 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(); - } - /** - *
-   * PlacementPolicy defines the placement policy used by the node pool.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.NodePool.PlacementPolicy} - */ - public static final class PlacementPolicy extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodePool.PlacementPolicy) - PlacementPolicyOrBuilder { - private static final long serialVersionUID = 0L; - // Use PlacementPolicy.newBuilder() to construct. - private PlacementPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PlacementPolicy() { - type_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PlacementPolicy(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-     * The type of placement.
-     * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy.Type type = 1; - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } - /** - *
-     * The type of placement.
-     * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy.Type type = 1; - * @return The type. - */ - @java.lang.Override public com.google.container.v1beta1.NodePool.PlacementPolicy.Type getType() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.NodePool.PlacementPolicy.Type result = com.google.container.v1beta1.NodePool.PlacementPolicy.Type.valueOf(type_); - return result == null ? com.google.container.v1beta1.NodePool.PlacementPolicy.Type.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != com.google.container.v1beta1.NodePool.PlacementPolicy.Type.TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(1, type_); - } - 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_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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.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(); - 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_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); - result.type_ = type_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.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()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.NodePool.PlacementPolicy.Type result = com.google.container.v1beta1.NodePool.PlacementPolicy.Type.valueOf(type_); - return result == null ? com.google.container.v1beta1.NodePool.PlacementPolicy.Type.UNRECOGNIZED : result; - } - /** - *
-       * The 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(); - } - - 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() { - - 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.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 static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-   * The name of the node pool.
-   * 
- * - * string name = 1; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name of the node pool.
-   * 
- * - * string name = 1; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONFIG_FIELD_NUMBER = 2; - private com.google.container.v1beta1.NodeConfig config_; - /** - *
-   * The node configuration of the pool.
-   * 
- * - * .google.container.v1beta1.NodeConfig config = 2; - * @return Whether the config field is set. - */ - @java.lang.Override - public boolean hasConfig() { - return config_ != null; - } - /** - *
-   * The node configuration of the pool.
-   * 
- * - * .google.container.v1beta1.NodeConfig config = 2; - * @return The config. - */ - @java.lang.Override - public com.google.container.v1beta1.NodeConfig getConfig() { - return config_ == null ? com.google.container.v1beta1.NodeConfig.getDefaultInstance() : config_; - } - /** - *
-   * The node configuration of the pool.
-   * 
- * - * .google.container.v1beta1.NodeConfig config = 2; - */ - @java.lang.Override - public com.google.container.v1beta1.NodeConfigOrBuilder getConfigOrBuilder() { - return getConfig(); - } - - public static final int INITIAL_NODE_COUNT_FIELD_NUMBER = 3; - private int initialNodeCount_; - /** - *
-   * The initial node count for the pool. You must ensure that your
-   * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
-   * is sufficient for this number of instances. You must also have available
-   * firewall and routes quota.
-   * 
- * - * int32 initial_node_count = 3; - * @return The initialNodeCount. - */ - @java.lang.Override - public int getInitialNodeCount() { - return initialNodeCount_; - } - - public static final int LOCATIONS_FIELD_NUMBER = 13; - private com.google.protobuf.LazyStringList locations_; - /** - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes should be located.
-   * If this value is unspecified during node pool creation, the
-   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-   * value will be used, instead.
-   * Warning: changing node pool locations will result in nodes being added
-   * and/or removed.
-   * 
- * - * repeated string locations = 13; - * @return A list containing the locations. - */ - public com.google.protobuf.ProtocolStringList - getLocationsList() { - return locations_; - } - /** - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes should be located.
-   * If this value is unspecified during node pool creation, the
-   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-   * value will be used, instead.
-   * Warning: changing node pool locations will result in nodes being added
-   * and/or removed.
-   * 
- * - * repeated string locations = 13; - * @return The count of locations. - */ - public int getLocationsCount() { - return locations_.size(); - } - /** - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes should be located.
-   * If this value is unspecified during node pool creation, the
-   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-   * value will be used, instead.
-   * Warning: changing node pool locations will result in nodes being added
-   * and/or removed.
-   * 
- * - * repeated string locations = 13; - * @param index The index of the element to return. - * @return The locations at the given index. - */ - public java.lang.String getLocations(int index) { - return locations_.get(index); - } - /** - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes should be located.
-   * If this value is unspecified during node pool creation, the
-   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-   * value will be used, instead.
-   * Warning: changing node pool locations will result in nodes being added
-   * and/or removed.
-   * 
- * - * repeated string locations = 13; - * @param index The index of the value to return. - * @return The bytes of the locations at the given index. - */ - public com.google.protobuf.ByteString - getLocationsBytes(int index) { - return locations_.getByteString(index); - } - - public static final int 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 networkConfig_ != null; - } - /** - *
-   * 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 getNetworkConfig(); - } - - public static final int SELF_LINK_FIELD_NUMBER = 100; - private volatile java.lang.Object selfLink_; - /** - *
-   * [Output only] Server-defined URL for the resource.
-   * 
- * - * string self_link = 100; - * @return The selfLink. - */ - @java.lang.Override - public java.lang.String getSelfLink() { - java.lang.Object ref = selfLink_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - selfLink_ = s; - return s; - } - } - /** - *
-   * [Output only] Server-defined URL for the resource.
-   * 
- * - * string self_link = 100; - * @return The bytes for selfLink. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSelfLinkBytes() { - java.lang.Object ref = selfLink_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - selfLink_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERSION_FIELD_NUMBER = 101; - private volatile java.lang.Object version_; - /** - *
-   * The version of the Kubernetes of this node.
-   * 
- * - * string version = 101; - * @return The version. - */ - @java.lang.Override - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } - } - /** - *
-   * The version of the Kubernetes of this node.
-   * 
- * - * string version = 101; - * @return The bytes for version. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INSTANCE_GROUP_URLS_FIELD_NUMBER = 102; - private com.google.protobuf.LazyStringList instanceGroupUrls_; - /** - *
-   * [Output only] The resource URLs of the [managed instance
-   * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
-   * associated with this node pool.
-   * 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_; - /** - *
-   * [Output only] The status of the nodes in this pool instance.
-   * 
- * - * .google.container.v1beta1.NodePool.Status status = 103; - * @return The enum numeric value on the wire for status. - */ - @java.lang.Override public int getStatusValue() { - return status_; - } - /** - *
-   * [Output only] The status of the nodes in this pool instance.
-   * 
- * - * .google.container.v1beta1.NodePool.Status status = 103; - * @return The status. - */ - @java.lang.Override public com.google.container.v1beta1.NodePool.Status getStatus() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.NodePool.Status result = com.google.container.v1beta1.NodePool.Status.valueOf(status_); - return result == null ? com.google.container.v1beta1.NodePool.Status.UNRECOGNIZED : result; - } - - public static final int STATUS_MESSAGE_FIELD_NUMBER = 104; - private volatile java.lang.Object statusMessage_; - /** - *
-   * [Output only] Deprecated. Use conditions instead.
-   * Additional information about the current status of this
-   * node pool instance, if available.
-   * 
- * - * string status_message = 104 [deprecated = true]; - * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3513 - * @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=3513 - * @return The bytes for statusMessage. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getStatusMessageBytes() { - java.lang.Object ref = statusMessage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - statusMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AUTOSCALING_FIELD_NUMBER = 4; - private com.google.container.v1beta1.NodePoolAutoscaling autoscaling_; - /** - *
-   * Autoscaler configuration for this NodePool. Autoscaler is enabled
-   * only if a valid configuration is present.
-   * 
- * - * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; - * @return Whether the autoscaling field is set. - */ - @java.lang.Override - public boolean hasAutoscaling() { - return autoscaling_ != null; - } - /** - *
-   * Autoscaler configuration for this NodePool. Autoscaler is enabled
-   * only if a valid configuration is present.
-   * 
- * - * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; - * @return The autoscaling. - */ - @java.lang.Override - public com.google.container.v1beta1.NodePoolAutoscaling getAutoscaling() { - return autoscaling_ == null ? com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() : autoscaling_; - } - /** - *
-   * Autoscaler configuration for this NodePool. Autoscaler is enabled
-   * only if a valid configuration is present.
-   * 
- * - * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; - */ - @java.lang.Override - public com.google.container.v1beta1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder() { - return getAutoscaling(); - } - - public static final int MANAGEMENT_FIELD_NUMBER = 5; - private com.google.container.v1beta1.NodeManagement management_; - /** - *
-   * NodeManagement configuration for this NodePool.
-   * 
- * - * .google.container.v1beta1.NodeManagement management = 5; - * @return Whether the management field is set. - */ - @java.lang.Override - public boolean hasManagement() { - return management_ != null; - } - /** - *
-   * NodeManagement configuration for this NodePool.
-   * 
- * - * .google.container.v1beta1.NodeManagement management = 5; - * @return The management. - */ - @java.lang.Override - public com.google.container.v1beta1.NodeManagement getManagement() { - return management_ == null ? com.google.container.v1beta1.NodeManagement.getDefaultInstance() : management_; - } - /** - *
-   * NodeManagement configuration for this NodePool.
-   * 
- * - * .google.container.v1beta1.NodeManagement management = 5; - */ - @java.lang.Override - public com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuilder() { - return getManagement(); - } - - public static final int MAX_PODS_CONSTRAINT_FIELD_NUMBER = 6; - private com.google.container.v1beta1.MaxPodsConstraint maxPodsConstraint_; - /** - *
-   * The constraint on the maximum number of pods that can be run
-   * simultaneously on a node in the node pool.
-   * 
- * - * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; - * @return Whether the maxPodsConstraint field is set. - */ - @java.lang.Override - public boolean hasMaxPodsConstraint() { - return maxPodsConstraint_ != null; - } - /** - *
-   * The constraint on the maximum number of pods that can be run
-   * simultaneously on a node in the node pool.
-   * 
- * - * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; - * @return The maxPodsConstraint. - */ - @java.lang.Override - public com.google.container.v1beta1.MaxPodsConstraint getMaxPodsConstraint() { - return maxPodsConstraint_ == null ? com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance() : maxPodsConstraint_; - } - /** - *
-   * The constraint on the maximum number of pods that can be run
-   * simultaneously on a node in the node pool.
-   * 
- * - * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; - */ - @java.lang.Override - public com.google.container.v1beta1.MaxPodsConstraintOrBuilder getMaxPodsConstraintOrBuilder() { - return getMaxPodsConstraint(); - } - - public static final int CONDITIONS_FIELD_NUMBER = 105; - private java.util.List conditions_; - /** - *
-   * Which conditions caused the current node pool state.
-   * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 105; - */ - @java.lang.Override - public java.util.List getConditionsList() { - return conditions_; - } - /** - *
-   * Which conditions caused the current node pool state.
-   * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 105; - */ - @java.lang.Override - public java.util.List - getConditionsOrBuilderList() { - return conditions_; - } - /** - *
-   * Which conditions caused the current node pool state.
-   * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 105; - */ - @java.lang.Override - public int getConditionsCount() { - return conditions_.size(); - } - /** - *
-   * Which conditions caused the current node pool state.
-   * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 105; - */ - @java.lang.Override - public com.google.container.v1beta1.StatusCondition getConditions(int index) { - return conditions_.get(index); - } - /** - *
-   * Which conditions caused the current node pool state.
-   * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 105; - */ - @java.lang.Override - public com.google.container.v1beta1.StatusConditionOrBuilder getConditionsOrBuilder( - int index) { - return conditions_.get(index); - } - - public static final int POD_IPV4_CIDR_SIZE_FIELD_NUMBER = 7; - private int podIpv4CidrSize_; - /** - *
-   * [Output only] The pod CIDR block size per node in this node pool.
-   * 
- * - * int32 pod_ipv4_cidr_size = 7; - * @return The podIpv4CidrSize. - */ - @java.lang.Override - public int getPodIpv4CidrSize() { - return podIpv4CidrSize_; - } - - public static final int UPGRADE_SETTINGS_FIELD_NUMBER = 107; - private com.google.container.v1beta1.NodePool.UpgradeSettings upgradeSettings_; - /** - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; - * @return Whether the upgradeSettings field is set. - */ - @java.lang.Override - public boolean hasUpgradeSettings() { - return upgradeSettings_ != null; - } - /** - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; - * @return The upgradeSettings. - */ - @java.lang.Override - public com.google.container.v1beta1.NodePool.UpgradeSettings getUpgradeSettings() { - return upgradeSettings_ == null ? com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance() : upgradeSettings_; - } - /** - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - @java.lang.Override - public com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { - return getUpgradeSettings(); - } - - public static final int PLACEMENT_POLICY_FIELD_NUMBER = 108; - private com.google.container.v1beta1.NodePool.PlacementPolicy placementPolicy_; - /** - *
-   * Specifies the node placement policy.
-   * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; - * @return Whether the placementPolicy field is set. - */ - @java.lang.Override - public boolean hasPlacementPolicy() { - return placementPolicy_ != null; - } - /** - *
-   * Specifies the node placement policy.
-   * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; - * @return The placementPolicy. - */ - @java.lang.Override - public com.google.container.v1beta1.NodePool.PlacementPolicy getPlacementPolicy() { - return placementPolicy_ == null ? com.google.container.v1beta1.NodePool.PlacementPolicy.getDefaultInstance() : placementPolicy_; - } - /** - *
-   * Specifies the node placement policy.
-   * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; - */ - @java.lang.Override - public com.google.container.v1beta1.NodePool.PlacementPolicyOrBuilder getPlacementPolicyOrBuilder() { - return getPlacementPolicy(); - } - - 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 updateInfo_ != null; - } - /** - *
-   * 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 getUpdateInfo(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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 (config_ != null) { - output.writeMessage(2, getConfig()); - } - if (initialNodeCount_ != 0) { - output.writeInt32(3, initialNodeCount_); - } - if (autoscaling_ != null) { - output.writeMessage(4, getAutoscaling()); - } - if (management_ != null) { - output.writeMessage(5, getManagement()); - } - if (maxPodsConstraint_ != null) { - output.writeMessage(6, getMaxPodsConstraint()); - } - if (podIpv4CidrSize_ != 0) { - output.writeInt32(7, podIpv4CidrSize_); - } - for (int i = 0; i < locations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, locations_.getRaw(i)); - } - if (networkConfig_ != null) { - 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 (upgradeSettings_ != null) { - output.writeMessage(107, getUpgradeSettings()); - } - if (placementPolicy_ != null) { - output.writeMessage(108, getPlacementPolicy()); - } - if (updateInfo_ != null) { - output.writeMessage(109, getUpdateInfo()); - } - getUnknownFields().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 (config_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConfig()); - } - if (initialNodeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, initialNodeCount_); - } - if (autoscaling_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getAutoscaling()); - } - if (management_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getManagement()); - } - if (maxPodsConstraint_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getMaxPodsConstraint()); - } - if (podIpv4CidrSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, podIpv4CidrSize_); - } - { - int dataSize = 0; - for (int i = 0; i < locations_.size(); i++) { - dataSize += computeStringSizeNoTag(locations_.getRaw(i)); - } - size += dataSize; - size += 1 * getLocationsList().size(); - } - if (networkConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getNetworkConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, selfLink_); - } - 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 (upgradeSettings_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(107, getUpgradeSettings()); - } - if (placementPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(108, getPlacementPolicy()); - } - if (updateInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(109, getUpdateInfo()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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 = (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.
-   * These upgrade settings control the level of parallelism and the level of
-   * disruption caused by an upgrade.
-   * maxUnavailable controls the number of nodes that can be simultaneously
-   * unavailable.
-   * maxSurge controls the number of additional nodes that can be added to the
-   * node pool temporarily for the time of the upgrade to increase the number of
-   * available nodes.
-   * (maxUnavailable + maxSurge) determines the level of parallelism (how many
-   * nodes are being upgraded at the same time).
-   * Note: upgrades inevitably introduce some disruption since workloads need to
-   * be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
-   * this holds true. (Disruption stays within the limits of
-   * PodDisruptionBudget, if it is configured.)
-   * Consider a hypothetical node pool with 5 nodes having maxSurge=2,
-   * maxUnavailable=1. This means the upgrade process upgrades 3 nodes
-   * simultaneously. It creates 2 additional (upgraded) nodes, then it brings
-   * down 3 old (not yet upgraded) nodes at the same time. This ensures that
-   * there are always at least 4 nodes available.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.NodePool} - */ - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (configBuilder_ == null) { - config_ = null; - } else { - config_ = null; - configBuilder_ = null; - } - initialNodeCount_ = 0; - - locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (networkConfigBuilder_ == null) { - networkConfig_ = null; - } else { - networkConfig_ = null; - networkConfigBuilder_ = null; - } - selfLink_ = ""; - - version_ = ""; - - instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - status_ = 0; - - statusMessage_ = ""; - - if (autoscalingBuilder_ == null) { - autoscaling_ = null; - } else { - autoscaling_ = null; - autoscalingBuilder_ = null; - } - if (managementBuilder_ == null) { - management_ = null; - } else { - management_ = null; - managementBuilder_ = null; - } - if (maxPodsConstraintBuilder_ == null) { - maxPodsConstraint_ = null; - } else { - maxPodsConstraint_ = null; - maxPodsConstraintBuilder_ = null; - } - if (conditionsBuilder_ == null) { - conditions_ = java.util.Collections.emptyList(); - } else { - conditions_ = null; - conditionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - podIpv4CidrSize_ = 0; - - if (upgradeSettingsBuilder_ == null) { - upgradeSettings_ = null; - } else { - upgradeSettings_ = null; - upgradeSettingsBuilder_ = null; - } - if (placementPolicyBuilder_ == null) { - placementPolicy_ = null; - } else { - placementPolicy_ = null; - placementPolicyBuilder_ = null; - } - if (updateInfoBuilder_ == null) { - updateInfo_ = null; - } else { - updateInfo_ = null; - updateInfoBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePool_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.NodePool getDefaultInstanceForType() { - return com.google.container.v1beta1.NodePool.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.NodePool build() { - com.google.container.v1beta1.NodePool result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.NodePool buildPartial() { - com.google.container.v1beta1.NodePool result = new com.google.container.v1beta1.NodePool(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - if (configBuilder_ == null) { - result.config_ = config_; - } else { - result.config_ = configBuilder_.build(); - } - result.initialNodeCount_ = initialNodeCount_; - if (((bitField0_ & 0x00000001) != 0)) { - locations_ = locations_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.locations_ = locations_; - if (networkConfigBuilder_ == null) { - result.networkConfig_ = networkConfig_; - } else { - result.networkConfig_ = networkConfigBuilder_.build(); - } - result.selfLink_ = selfLink_; - result.version_ = version_; - if (((bitField0_ & 0x00000002) != 0)) { - instanceGroupUrls_ = instanceGroupUrls_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.instanceGroupUrls_ = instanceGroupUrls_; - result.status_ = status_; - result.statusMessage_ = statusMessage_; - if (autoscalingBuilder_ == null) { - result.autoscaling_ = autoscaling_; - } else { - result.autoscaling_ = autoscalingBuilder_.build(); - } - if (managementBuilder_ == null) { - result.management_ = management_; - } else { - result.management_ = managementBuilder_.build(); - } - if (maxPodsConstraintBuilder_ == null) { - result.maxPodsConstraint_ = maxPodsConstraint_; - } else { - result.maxPodsConstraint_ = maxPodsConstraintBuilder_.build(); - } - if (conditionsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - conditions_ = java.util.Collections.unmodifiableList(conditions_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.conditions_ = conditions_; - } else { - result.conditions_ = conditionsBuilder_.build(); - } - result.podIpv4CidrSize_ = podIpv4CidrSize_; - if (upgradeSettingsBuilder_ == null) { - result.upgradeSettings_ = upgradeSettings_; - } else { - result.upgradeSettings_ = upgradeSettingsBuilder_.build(); - } - if (placementPolicyBuilder_ == null) { - result.placementPolicy_ = placementPolicy_; - } else { - result.placementPolicy_ = placementPolicyBuilder_.build(); - } - if (updateInfoBuilder_ == null) { - result.updateInfo_ = updateInfo_; - } else { - result.updateInfo_ = updateInfoBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.NodePool) { - return mergeFrom((com.google.container.v1beta1.NodePool)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.NodePool other) { - if (other == com.google.container.v1beta1.NodePool.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasConfig()) { - mergeConfig(other.getConfig()); - } - if (other.getInitialNodeCount() != 0) { - setInitialNodeCount(other.getInitialNodeCount()); - } - if (!other.locations_.isEmpty()) { - if (locations_.isEmpty()) { - locations_ = other.locations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLocationsIsMutable(); - locations_.addAll(other.locations_); - } - onChanged(); - } - if (other.hasNetworkConfig()) { - mergeNetworkConfig(other.getNetworkConfig()); - } - if (!other.getSelfLink().isEmpty()) { - selfLink_ = other.selfLink_; - onChanged(); - } - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - onChanged(); - } - if (!other.instanceGroupUrls_.isEmpty()) { - if (instanceGroupUrls_.isEmpty()) { - instanceGroupUrls_ = other.instanceGroupUrls_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureInstanceGroupUrlsIsMutable(); - instanceGroupUrls_.addAll(other.instanceGroupUrls_); - } - onChanged(); - } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); - } - if (!other.getStatusMessage().isEmpty()) { - statusMessage_ = other.statusMessage_; - onChanged(); - } - if (other.hasAutoscaling()) { - mergeAutoscaling(other.getAutoscaling()); - } - if (other.hasManagement()) { - mergeManagement(other.getManagement()); - } - if (other.hasMaxPodsConstraint()) { - mergeMaxPodsConstraint(other.getMaxPodsConstraint()); - } - if (conditionsBuilder_ == null) { - if (!other.conditions_.isEmpty()) { - if (conditions_.isEmpty()) { - conditions_ = other.conditions_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureConditionsIsMutable(); - conditions_.addAll(other.conditions_); - } - onChanged(); - } - } else { - if (!other.conditions_.isEmpty()) { - if (conditionsBuilder_.isEmpty()) { - conditionsBuilder_.dispose(); - conditionsBuilder_ = null; - conditions_ = other.conditions_; - bitField0_ = (bitField0_ & ~0x00000004); - conditionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getConditionsFieldBuilder() : null; - } else { - conditionsBuilder_.addAllMessages(other.conditions_); - } - } - } - if (other.getPodIpv4CidrSize() != 0) { - setPodIpv4CidrSize(other.getPodIpv4CidrSize()); - } - if (other.hasUpgradeSettings()) { - mergeUpgradeSettings(other.getUpgradeSettings()); - } - if (other.hasPlacementPolicy()) { - mergePlacementPolicy(other.getPlacementPolicy()); - } - if (other.hasUpdateInfo()) { - mergeUpdateInfo(other.getUpdateInfo()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - input.readMessage( - getConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - case 24: { - initialNodeCount_ = input.readInt32(); - - break; - } // case 24 - case 34: { - input.readMessage( - getAutoscalingFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 34 - case 42: { - input.readMessage( - getManagementFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 42 - case 50: { - input.readMessage( - getMaxPodsConstraintFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 50 - case 56: { - podIpv4CidrSize_ = input.readInt32(); - - 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); - - break; - } // case 114 - case 802: { - selfLink_ = input.readStringRequireUtf8(); - - break; - } // case 802 - case 810: { - version_ = input.readStringRequireUtf8(); - - break; - } // case 810 - case 818: { - java.lang.String s = input.readStringRequireUtf8(); - ensureInstanceGroupUrlsIsMutable(); - instanceGroupUrls_.add(s); - break; - } // case 818 - case 824: { - status_ = input.readEnum(); - - break; - } // case 824 - case 834: { - statusMessage_ = input.readStringRequireUtf8(); - - 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); - - break; - } // case 858 - case 866: { - input.readMessage( - getPlacementPolicyFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 866 - case 874: { - input.readMessage( - getUpdateInfoFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 874 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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; - onChanged(); - return this; - } - /** - *
-     * The name of the node pool.
-     * 
- * - * string name = 1; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name of the node pool.
-     * 
- * - * string name = 1; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.container.v1beta1.NodeConfig config_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeConfig, com.google.container.v1beta1.NodeConfig.Builder, com.google.container.v1beta1.NodeConfigOrBuilder> configBuilder_; - /** - *
-     * The node configuration of the pool.
-     * 
- * - * .google.container.v1beta1.NodeConfig config = 2; - * @return Whether the config field is set. - */ - public boolean hasConfig() { - return configBuilder_ != null || config_ != null; - } - /** - *
-     * The node configuration of the pool.
-     * 
- * - * .google.container.v1beta1.NodeConfig config = 2; - * @return The config. - */ - public com.google.container.v1beta1.NodeConfig getConfig() { - if (configBuilder_ == null) { - return config_ == null ? com.google.container.v1beta1.NodeConfig.getDefaultInstance() : config_; - } else { - return configBuilder_.getMessage(); - } - } - /** - *
-     * The node configuration of the pool.
-     * 
- * - * .google.container.v1beta1.NodeConfig config = 2; - */ - public Builder setConfig(com.google.container.v1beta1.NodeConfig value) { - if (configBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - config_ = value; - onChanged(); - } else { - configBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The node configuration of the pool.
-     * 
- * - * .google.container.v1beta1.NodeConfig config = 2; - */ - public Builder setConfig( - com.google.container.v1beta1.NodeConfig.Builder builderForValue) { - if (configBuilder_ == null) { - config_ = builderForValue.build(); - onChanged(); - } else { - configBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The node configuration of the pool.
-     * 
- * - * .google.container.v1beta1.NodeConfig config = 2; - */ - public Builder mergeConfig(com.google.container.v1beta1.NodeConfig value) { - if (configBuilder_ == null) { - if (config_ != null) { - config_ = - com.google.container.v1beta1.NodeConfig.newBuilder(config_).mergeFrom(value).buildPartial(); - } else { - config_ = value; - } - onChanged(); - } else { - configBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The node configuration of the pool.
-     * 
- * - * .google.container.v1beta1.NodeConfig config = 2; - */ - public Builder clearConfig() { - if (configBuilder_ == null) { - config_ = null; - onChanged(); - } else { - config_ = null; - configBuilder_ = null; - } - - return this; - } - /** - *
-     * The node configuration of the pool.
-     * 
- * - * .google.container.v1beta1.NodeConfig config = 2; - */ - public com.google.container.v1beta1.NodeConfig.Builder getConfigBuilder() { - - onChanged(); - return getConfigFieldBuilder().getBuilder(); - } - /** - *
-     * The node configuration of the pool.
-     * 
- * - * .google.container.v1beta1.NodeConfig config = 2; - */ - public com.google.container.v1beta1.NodeConfigOrBuilder getConfigOrBuilder() { - if (configBuilder_ != null) { - return configBuilder_.getMessageOrBuilder(); - } else { - return config_ == null ? - com.google.container.v1beta1.NodeConfig.getDefaultInstance() : config_; - } - } - /** - *
-     * The node configuration of the pool.
-     * 
- * - * .google.container.v1beta1.NodeConfig config = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeConfig, com.google.container.v1beta1.NodeConfig.Builder, com.google.container.v1beta1.NodeConfigOrBuilder> - getConfigFieldBuilder() { - if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeConfig, com.google.container.v1beta1.NodeConfig.Builder, com.google.container.v1beta1.NodeConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); - config_ = null; - } - return configBuilder_; - } - - private int initialNodeCount_ ; - /** - *
-     * The initial node count for the pool. You must ensure that your
-     * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
-     * is sufficient for this number of instances. You must also have available
-     * firewall and routes quota.
-     * 
- * - * int32 initial_node_count = 3; - * @return The initialNodeCount. - */ - @java.lang.Override - public int getInitialNodeCount() { - return initialNodeCount_; - } - /** - *
-     * The initial node count for the pool. You must ensure that your
-     * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
-     * is sufficient for this number of instances. You must also have available
-     * firewall and routes quota.
-     * 
- * - * int32 initial_node_count = 3; - * @param value The initialNodeCount to set. - * @return This builder for chaining. - */ - public Builder setInitialNodeCount(int value) { - - initialNodeCount_ = value; - onChanged(); - return this; - } - /** - *
-     * The initial node count for the pool. You must ensure that your
-     * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
-     * is sufficient for this number of instances. You must also have available
-     * firewall and routes quota.
-     * 
- * - * int32 initial_node_count = 3; - * @return This builder for chaining. - */ - public Builder clearInitialNodeCount() { - - initialNodeCount_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureLocationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - locations_ = new com.google.protobuf.LazyStringArrayList(locations_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes should be located.
-     * If this value is unspecified during node pool creation, the
-     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-     * value will be used, instead.
-     * Warning: changing node pool locations will result in nodes being added
-     * and/or removed.
-     * 
- * - * repeated string locations = 13; - * @return A list containing the locations. - */ - public com.google.protobuf.ProtocolStringList - getLocationsList() { - return locations_.getUnmodifiableView(); - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes should be located.
-     * If this value is unspecified during node pool creation, the
-     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-     * value will be used, instead.
-     * Warning: changing node pool locations will result in nodes being added
-     * and/or removed.
-     * 
- * - * repeated string locations = 13; - * @return The count of locations. - */ - public int getLocationsCount() { - return locations_.size(); - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes should be located.
-     * If this value is unspecified during node pool creation, the
-     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-     * value will be used, instead.
-     * Warning: changing node pool locations will result in nodes being added
-     * and/or removed.
-     * 
- * - * repeated string locations = 13; - * @param index The index of the element to return. - * @return The locations at the given index. - */ - public java.lang.String getLocations(int index) { - return locations_.get(index); - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes should be located.
-     * If this value is unspecified during node pool creation, the
-     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-     * value will be used, instead.
-     * Warning: changing node pool locations will result in nodes being added
-     * and/or removed.
-     * 
- * - * repeated string locations = 13; - * @param index The index of the value to return. - * @return The bytes of the locations at the given index. - */ - public com.google.protobuf.ByteString - getLocationsBytes(int index) { - return locations_.getByteString(index); - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes should be located.
-     * If this value is unspecified during node pool creation, the
-     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-     * value will be used, instead.
-     * Warning: changing node pool locations will result in nodes being added
-     * and/or removed.
-     * 
- * - * repeated string locations = 13; - * @param index The index to set the value at. - * @param value The locations to set. - * @return This builder for chaining. - */ - public Builder setLocations( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); - locations_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes should be located.
-     * If this value is unspecified during node pool creation, the
-     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-     * value will be used, instead.
-     * Warning: changing node pool locations will result in nodes being added
-     * and/or removed.
-     * 
- * - * repeated string locations = 13; - * @param value The locations to add. - * @return This builder for chaining. - */ - public Builder addLocations( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); - locations_.add(value); - onChanged(); - return this; - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes should be located.
-     * If this value is unspecified during node pool creation, the
-     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-     * value will be used, instead.
-     * Warning: changing node pool locations will result in nodes being added
-     * and/or removed.
-     * 
- * - * repeated string locations = 13; - * @param values The locations to add. - * @return This builder for chaining. - */ - public Builder addAllLocations( - java.lang.Iterable values) { - ensureLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, locations_); - onChanged(); - return this; - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes should be located.
-     * If this value is unspecified during node pool creation, the
-     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-     * value will be used, instead.
-     * Warning: changing node pool locations will result in nodes being added
-     * and/or removed.
-     * 
- * - * repeated string locations = 13; - * @return This builder for chaining. - */ - public Builder clearLocations() { - locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes should be located.
-     * If this value is unspecified during node pool creation, the
-     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-     * value will be used, instead.
-     * Warning: changing node pool locations will result in nodes being added
-     * and/or removed.
-     * 
- * - * repeated string locations = 13; - * @param value The bytes of the locations to add. - * @return This builder for chaining. - */ - public Builder addLocationsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureLocationsIsMutable(); - locations_.add(value); - onChanged(); - return this; - } - - private 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 networkConfigBuilder_ != null || networkConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - networkConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - networkConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (networkConfig_ != null) { - networkConfig_ = - com.google.container.v1beta1.NodeNetworkConfig.newBuilder(networkConfig_).mergeFrom(value).buildPartial(); - } else { - networkConfig_ = value; - } - onChanged(); - } else { - networkConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Networking configuration for this NodePool. If specified, it overrides the
-     * cluster-level defaults.
-     * 
- * - * .google.container.v1beta1.NodeNetworkConfig network_config = 14; - */ - public Builder clearNetworkConfig() { - if (networkConfigBuilder_ == null) { - networkConfig_ = null; - onChanged(); - } else { - networkConfig_ = null; - networkConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Networking configuration for this NodePool. If specified, it overrides the
-     * cluster-level defaults.
-     * 
- * - * .google.container.v1beta1.NodeNetworkConfig network_config = 14; - */ - public com.google.container.v1beta1.NodeNetworkConfig.Builder getNetworkConfigBuilder() { - - 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; - onChanged(); - return this; - } - /** - *
-     * [Output only] Server-defined URL for the resource.
-     * 
- * - * string self_link = 100; - * @return This builder for chaining. - */ - public Builder clearSelfLink() { - - selfLink_ = getDefaultInstance().getSelfLink(); - onChanged(); - return this; - } - /** - *
-     * [Output only] Server-defined URL for the resource.
-     * 
- * - * string self_link = 100; - * @param value The bytes for selfLink to set. - * @return This builder for chaining. - */ - public Builder setSelfLinkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - selfLink_ = value; - onChanged(); - return this; - } - - private java.lang.Object version_ = ""; - /** - *
-     * The version of the Kubernetes of this node.
-     * 
- * - * string version = 101; - * @return The version. - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The version of the Kubernetes of this node.
-     * 
- * - * string version = 101; - * @return The bytes for version. - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The version of the Kubernetes of this node.
-     * 
- * - * string version = 101; - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - version_ = value; - onChanged(); - return this; - } - /** - *
-     * The version of the Kubernetes of this node.
-     * 
- * - * string version = 101; - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - *
-     * The version of the Kubernetes of this node.
-     * 
- * - * string version = 101; - * @param value The bytes for version to set. - * @return This builder for chaining. - */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - version_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureInstanceGroupUrlsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(instanceGroupUrls_); - bitField0_ |= 0x00000002; - } - } - /** - *
-     * [Output only] The resource URLs of the [managed instance
-     * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
-     * associated with this node pool.
-     * 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_.getUnmodifiableView(); - } - /** - *
-     * [Output only] The resource URLs of the [managed instance
-     * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
-     * associated with this node pool.
-     * 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); - 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); - 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_); - 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.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * [Output only] The resource URLs of the [managed instance
-     * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
-     * associated with this node pool.
-     * 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); - onChanged(); - return this; - } - - private int status_ = 0; - /** - *
-     * [Output only] The status of the nodes in this pool instance.
-     * 
- * - * .google.container.v1beta1.NodePool.Status status = 103; - * @return The enum numeric value on the wire for status. - */ - @java.lang.Override public int getStatusValue() { - return status_; - } - /** - *
-     * [Output only] The status of the nodes in this pool instance.
-     * 
- * - * .google.container.v1beta1.NodePool.Status status = 103; - * @param value The enum numeric value on the wire for status to set. - * @return This builder for chaining. - */ - public Builder setStatusValue(int value) { - - status_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] The status of the nodes in this pool instance.
-     * 
- * - * .google.container.v1beta1.NodePool.Status status = 103; - * @return The status. - */ - @java.lang.Override - public com.google.container.v1beta1.NodePool.Status getStatus() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.NodePool.Status result = com.google.container.v1beta1.NodePool.Status.valueOf(status_); - return result == null ? com.google.container.v1beta1.NodePool.Status.UNRECOGNIZED : result; - } - /** - *
-     * [Output only] The status of the nodes in this pool instance.
-     * 
- * - * .google.container.v1beta1.NodePool.Status status = 103; - * @param value The status to set. - * @return This builder for chaining. - */ - public Builder setStatus(com.google.container.v1beta1.NodePool.Status value) { - if (value == null) { - throw new NullPointerException(); - } - - status_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * [Output only] The status of the nodes in this pool instance.
-     * 
- * - * .google.container.v1beta1.NodePool.Status status = 103; - * @return This builder for chaining. - */ - public Builder clearStatus() { - - status_ = 0; - onChanged(); - return this; - } - - private java.lang.Object statusMessage_ = ""; - /** - *
-     * [Output only] Deprecated. Use conditions instead.
-     * Additional information about the current status of this
-     * node pool instance, if available.
-     * 
- * - * string status_message = 104 [deprecated = true]; - * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3513 - * @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=3513 - * @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=3513 - * @param value The statusMessage to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setStatusMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - statusMessage_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] Deprecated. Use conditions instead.
-     * Additional information about the current status of this
-     * node pool instance, if available.
-     * 
- * - * string status_message = 104 [deprecated = true]; - * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3513 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearStatusMessage() { - - statusMessage_ = getDefaultInstance().getStatusMessage(); - onChanged(); - return this; - } - /** - *
-     * [Output only] Deprecated. Use conditions instead.
-     * Additional information about the current status of this
-     * node pool instance, if available.
-     * 
- * - * string status_message = 104 [deprecated = true]; - * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3513 - * @param value The bytes for statusMessage to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setStatusMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - statusMessage_ = value; - onChanged(); - return this; - } - - private com.google.container.v1beta1.NodePoolAutoscaling autoscaling_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePoolAutoscaling, com.google.container.v1beta1.NodePoolAutoscaling.Builder, com.google.container.v1beta1.NodePoolAutoscalingOrBuilder> autoscalingBuilder_; - /** - *
-     * Autoscaler configuration for this NodePool. Autoscaler is enabled
-     * only if a valid configuration is present.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; - * @return Whether the autoscaling field is set. - */ - public boolean hasAutoscaling() { - return autoscalingBuilder_ != null || autoscaling_ != null; - } - /** - *
-     * Autoscaler configuration for this NodePool. Autoscaler is enabled
-     * only if a valid configuration is present.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; - * @return The autoscaling. - */ - public com.google.container.v1beta1.NodePoolAutoscaling getAutoscaling() { - if (autoscalingBuilder_ == null) { - return autoscaling_ == null ? com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() : autoscaling_; - } else { - return autoscalingBuilder_.getMessage(); - } - } - /** - *
-     * Autoscaler configuration for this NodePool. Autoscaler is enabled
-     * only if a valid configuration is present.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; - */ - public Builder setAutoscaling(com.google.container.v1beta1.NodePoolAutoscaling value) { - if (autoscalingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - autoscaling_ = value; - onChanged(); - } else { - autoscalingBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Autoscaler configuration for this NodePool. Autoscaler is enabled
-     * only if a valid configuration is present.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; - */ - public Builder setAutoscaling( - com.google.container.v1beta1.NodePoolAutoscaling.Builder builderForValue) { - if (autoscalingBuilder_ == null) { - autoscaling_ = builderForValue.build(); - onChanged(); - } else { - autoscalingBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Autoscaler configuration for this NodePool. Autoscaler is enabled
-     * only if a valid configuration is present.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; - */ - public Builder mergeAutoscaling(com.google.container.v1beta1.NodePoolAutoscaling value) { - if (autoscalingBuilder_ == null) { - if (autoscaling_ != null) { - autoscaling_ = - com.google.container.v1beta1.NodePoolAutoscaling.newBuilder(autoscaling_).mergeFrom(value).buildPartial(); - } else { - autoscaling_ = value; - } - onChanged(); - } else { - autoscalingBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Autoscaler configuration for this NodePool. Autoscaler is enabled
-     * only if a valid configuration is present.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; - */ - public Builder clearAutoscaling() { - if (autoscalingBuilder_ == null) { - autoscaling_ = null; - onChanged(); - } else { - autoscaling_ = null; - autoscalingBuilder_ = null; - } - - return this; - } - /** - *
-     * Autoscaler configuration for this NodePool. Autoscaler is enabled
-     * only if a valid configuration is present.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; - */ - public com.google.container.v1beta1.NodePoolAutoscaling.Builder getAutoscalingBuilder() { - - onChanged(); - return getAutoscalingFieldBuilder().getBuilder(); - } - /** - *
-     * Autoscaler configuration for this NodePool. Autoscaler is enabled
-     * only if a valid configuration is present.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; - */ - public com.google.container.v1beta1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder() { - if (autoscalingBuilder_ != null) { - return autoscalingBuilder_.getMessageOrBuilder(); - } else { - return autoscaling_ == null ? - com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() : autoscaling_; - } - } - /** - *
-     * Autoscaler configuration for this NodePool. Autoscaler is enabled
-     * only if a valid configuration is present.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePoolAutoscaling, com.google.container.v1beta1.NodePoolAutoscaling.Builder, com.google.container.v1beta1.NodePoolAutoscalingOrBuilder> - getAutoscalingFieldBuilder() { - if (autoscalingBuilder_ == null) { - autoscalingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePoolAutoscaling, com.google.container.v1beta1.NodePoolAutoscaling.Builder, com.google.container.v1beta1.NodePoolAutoscalingOrBuilder>( - getAutoscaling(), - getParentForChildren(), - isClean()); - autoscaling_ = null; - } - return autoscalingBuilder_; - } - - private com.google.container.v1beta1.NodeManagement management_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeManagement, com.google.container.v1beta1.NodeManagement.Builder, com.google.container.v1beta1.NodeManagementOrBuilder> managementBuilder_; - /** - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1beta1.NodeManagement management = 5; - * @return Whether the management field is set. - */ - public boolean hasManagement() { - return managementBuilder_ != null || management_ != null; - } - /** - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1beta1.NodeManagement management = 5; - * @return The management. - */ - public com.google.container.v1beta1.NodeManagement getManagement() { - if (managementBuilder_ == null) { - return management_ == null ? com.google.container.v1beta1.NodeManagement.getDefaultInstance() : management_; - } else { - return managementBuilder_.getMessage(); - } - } - /** - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1beta1.NodeManagement management = 5; - */ - public Builder setManagement(com.google.container.v1beta1.NodeManagement value) { - if (managementBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - management_ = value; - onChanged(); - } else { - managementBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1beta1.NodeManagement management = 5; - */ - public Builder setManagement( - com.google.container.v1beta1.NodeManagement.Builder builderForValue) { - if (managementBuilder_ == null) { - management_ = builderForValue.build(); - onChanged(); - } else { - managementBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1beta1.NodeManagement management = 5; - */ - public Builder mergeManagement(com.google.container.v1beta1.NodeManagement value) { - if (managementBuilder_ == null) { - if (management_ != null) { - management_ = - com.google.container.v1beta1.NodeManagement.newBuilder(management_).mergeFrom(value).buildPartial(); - } else { - management_ = value; - } - onChanged(); - } else { - managementBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1beta1.NodeManagement management = 5; - */ - public Builder clearManagement() { - if (managementBuilder_ == null) { - management_ = null; - onChanged(); - } else { - management_ = null; - managementBuilder_ = null; - } - - return this; - } - /** - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1beta1.NodeManagement management = 5; - */ - public com.google.container.v1beta1.NodeManagement.Builder getManagementBuilder() { - - onChanged(); - return getManagementFieldBuilder().getBuilder(); - } - /** - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1beta1.NodeManagement management = 5; - */ - public com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuilder() { - if (managementBuilder_ != null) { - return managementBuilder_.getMessageOrBuilder(); - } else { - return management_ == null ? - com.google.container.v1beta1.NodeManagement.getDefaultInstance() : management_; - } - } - /** - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1beta1.NodeManagement management = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeManagement, com.google.container.v1beta1.NodeManagement.Builder, com.google.container.v1beta1.NodeManagementOrBuilder> - getManagementFieldBuilder() { - if (managementBuilder_ == null) { - managementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeManagement, com.google.container.v1beta1.NodeManagement.Builder, com.google.container.v1beta1.NodeManagementOrBuilder>( - getManagement(), - getParentForChildren(), - isClean()); - management_ = null; - } - return managementBuilder_; - } - - private com.google.container.v1beta1.MaxPodsConstraint maxPodsConstraint_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MaxPodsConstraint, com.google.container.v1beta1.MaxPodsConstraint.Builder, com.google.container.v1beta1.MaxPodsConstraintOrBuilder> maxPodsConstraintBuilder_; - /** - *
-     * The constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool.
-     * 
- * - * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; - * @return Whether the maxPodsConstraint field is set. - */ - public boolean hasMaxPodsConstraint() { - return maxPodsConstraintBuilder_ != null || maxPodsConstraint_ != null; - } - /** - *
-     * The constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool.
-     * 
- * - * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; - * @return The maxPodsConstraint. - */ - public com.google.container.v1beta1.MaxPodsConstraint getMaxPodsConstraint() { - if (maxPodsConstraintBuilder_ == null) { - return maxPodsConstraint_ == null ? com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance() : maxPodsConstraint_; - } else { - return maxPodsConstraintBuilder_.getMessage(); - } - } - /** - *
-     * The constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool.
-     * 
- * - * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; - */ - public Builder setMaxPodsConstraint(com.google.container.v1beta1.MaxPodsConstraint value) { - if (maxPodsConstraintBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - maxPodsConstraint_ = value; - onChanged(); - } else { - maxPodsConstraintBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool.
-     * 
- * - * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; - */ - public Builder setMaxPodsConstraint( - com.google.container.v1beta1.MaxPodsConstraint.Builder builderForValue) { - if (maxPodsConstraintBuilder_ == null) { - maxPodsConstraint_ = builderForValue.build(); - onChanged(); - } else { - maxPodsConstraintBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool.
-     * 
- * - * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; - */ - public Builder mergeMaxPodsConstraint(com.google.container.v1beta1.MaxPodsConstraint value) { - if (maxPodsConstraintBuilder_ == null) { - if (maxPodsConstraint_ != null) { - maxPodsConstraint_ = - com.google.container.v1beta1.MaxPodsConstraint.newBuilder(maxPodsConstraint_).mergeFrom(value).buildPartial(); - } else { - maxPodsConstraint_ = value; - } - onChanged(); - } else { - maxPodsConstraintBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool.
-     * 
- * - * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; - */ - public Builder clearMaxPodsConstraint() { - if (maxPodsConstraintBuilder_ == null) { - maxPodsConstraint_ = null; - onChanged(); - } else { - maxPodsConstraint_ = null; - maxPodsConstraintBuilder_ = null; - } - - return this; - } - /** - *
-     * The constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool.
-     * 
- * - * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; - */ - public com.google.container.v1beta1.MaxPodsConstraint.Builder getMaxPodsConstraintBuilder() { - - onChanged(); - return getMaxPodsConstraintFieldBuilder().getBuilder(); - } - /** - *
-     * The constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool.
-     * 
- * - * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; - */ - public com.google.container.v1beta1.MaxPodsConstraintOrBuilder getMaxPodsConstraintOrBuilder() { - if (maxPodsConstraintBuilder_ != null) { - return maxPodsConstraintBuilder_.getMessageOrBuilder(); - } else { - return maxPodsConstraint_ == null ? - com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance() : maxPodsConstraint_; - } - } - /** - *
-     * The constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool.
-     * 
- * - * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MaxPodsConstraint, com.google.container.v1beta1.MaxPodsConstraint.Builder, com.google.container.v1beta1.MaxPodsConstraintOrBuilder> - getMaxPodsConstraintFieldBuilder() { - if (maxPodsConstraintBuilder_ == null) { - maxPodsConstraintBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MaxPodsConstraint, com.google.container.v1beta1.MaxPodsConstraint.Builder, com.google.container.v1beta1.MaxPodsConstraintOrBuilder>( - getMaxPodsConstraint(), - getParentForChildren(), - isClean()); - maxPodsConstraint_ = null; - } - return maxPodsConstraintBuilder_; - } - - private java.util.List conditions_ = - java.util.Collections.emptyList(); - private void ensureConditionsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - conditions_ = new java.util.ArrayList(conditions_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.StatusCondition, com.google.container.v1beta1.StatusCondition.Builder, com.google.container.v1beta1.StatusConditionOrBuilder> conditionsBuilder_; - - /** - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 105; - */ - public java.util.List getConditionsList() { - if (conditionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(conditions_); - } else { - return conditionsBuilder_.getMessageList(); - } - } - /** - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 105; - */ - public int getConditionsCount() { - if (conditionsBuilder_ == null) { - return conditions_.size(); - } else { - return conditionsBuilder_.getCount(); - } - } - /** - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 105; - */ - public com.google.container.v1beta1.StatusCondition getConditions(int index) { - if (conditionsBuilder_ == null) { - return conditions_.get(index); - } else { - return conditionsBuilder_.getMessage(index); - } - } - /** - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 105; - */ - public Builder setConditions( - int index, com.google.container.v1beta1.StatusCondition value) { - if (conditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConditionsIsMutable(); - conditions_.set(index, value); - onChanged(); - } else { - conditionsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 105; - */ - public Builder setConditions( - int index, com.google.container.v1beta1.StatusCondition.Builder builderForValue) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.set(index, builderForValue.build()); - onChanged(); - } else { - conditionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 105; - */ - public Builder addConditions(com.google.container.v1beta1.StatusCondition value) { - if (conditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConditionsIsMutable(); - conditions_.add(value); - onChanged(); - } else { - conditionsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 105; - */ - public Builder addConditions( - int index, com.google.container.v1beta1.StatusCondition value) { - if (conditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConditionsIsMutable(); - conditions_.add(index, value); - onChanged(); - } else { - conditionsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 105; - */ - public Builder addConditions( - com.google.container.v1beta1.StatusCondition.Builder builderForValue) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.add(builderForValue.build()); - onChanged(); - } else { - conditionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 105; - */ - public Builder addConditions( - int index, com.google.container.v1beta1.StatusCondition.Builder builderForValue) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.add(index, builderForValue.build()); - onChanged(); - } else { - conditionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 105; - */ - public Builder addAllConditions( - java.lang.Iterable values) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, conditions_); - onChanged(); - } else { - conditionsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 105; - */ - public Builder clearConditions() { - if (conditionsBuilder_ == null) { - conditions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - conditionsBuilder_.clear(); - } - return this; - } - /** - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 105; - */ - public Builder removeConditions(int index) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.remove(index); - onChanged(); - } else { - conditionsBuilder_.remove(index); - } - return this; - } - /** - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 105; - */ - public com.google.container.v1beta1.StatusCondition.Builder getConditionsBuilder( - int index) { - return getConditionsFieldBuilder().getBuilder(index); - } - /** - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 105; - */ - public com.google.container.v1beta1.StatusConditionOrBuilder getConditionsOrBuilder( - int index) { - if (conditionsBuilder_ == null) { - return conditions_.get(index); } else { - return conditionsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 105; - */ - public java.util.List - getConditionsOrBuilderList() { - if (conditionsBuilder_ != null) { - return conditionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(conditions_); - } - } - /** - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 105; - */ - public com.google.container.v1beta1.StatusCondition.Builder addConditionsBuilder() { - return getConditionsFieldBuilder().addBuilder( - com.google.container.v1beta1.StatusCondition.getDefaultInstance()); - } - /** - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 105; - */ - public com.google.container.v1beta1.StatusCondition.Builder addConditionsBuilder( - int index) { - return getConditionsFieldBuilder().addBuilder( - index, com.google.container.v1beta1.StatusCondition.getDefaultInstance()); - } - /** - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 105; - */ - public java.util.List - getConditionsBuilderList() { - return getConditionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.StatusCondition, com.google.container.v1beta1.StatusCondition.Builder, com.google.container.v1beta1.StatusConditionOrBuilder> - getConditionsFieldBuilder() { - if (conditionsBuilder_ == null) { - conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.StatusCondition, com.google.container.v1beta1.StatusCondition.Builder, com.google.container.v1beta1.StatusConditionOrBuilder>( - conditions_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - conditions_ = null; - } - return conditionsBuilder_; - } - - private int podIpv4CidrSize_ ; - /** - *
-     * [Output only] The pod CIDR block size per node in this node pool.
-     * 
- * - * int32 pod_ipv4_cidr_size = 7; - * @return The podIpv4CidrSize. - */ - @java.lang.Override - public int getPodIpv4CidrSize() { - return podIpv4CidrSize_; - } - /** - *
-     * [Output only] The pod CIDR block size per node in this node pool.
-     * 
- * - * int32 pod_ipv4_cidr_size = 7; - * @param value The podIpv4CidrSize to set. - * @return This builder for chaining. - */ - public Builder setPodIpv4CidrSize(int value) { - - podIpv4CidrSize_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] The pod CIDR block size per node in this node pool.
-     * 
- * - * int32 pod_ipv4_cidr_size = 7; - * @return This builder for chaining. - */ - public Builder clearPodIpv4CidrSize() { - - podIpv4CidrSize_ = 0; - onChanged(); - return this; - } - - private com.google.container.v1beta1.NodePool.UpgradeSettings upgradeSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePool.UpgradeSettings, com.google.container.v1beta1.NodePool.UpgradeSettings.Builder, com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder> upgradeSettingsBuilder_; - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; - * @return Whether the upgradeSettings field is set. - */ - public boolean hasUpgradeSettings() { - return upgradeSettingsBuilder_ != null || upgradeSettings_ != null; - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; - * @return The upgradeSettings. - */ - public com.google.container.v1beta1.NodePool.UpgradeSettings getUpgradeSettings() { - if (upgradeSettingsBuilder_ == null) { - return upgradeSettings_ == null ? com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance() : upgradeSettings_; - } else { - return upgradeSettingsBuilder_.getMessage(); - } - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - public Builder setUpgradeSettings(com.google.container.v1beta1.NodePool.UpgradeSettings value) { - if (upgradeSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - upgradeSettings_ = value; - onChanged(); - } else { - upgradeSettingsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - public Builder setUpgradeSettings( - com.google.container.v1beta1.NodePool.UpgradeSettings.Builder builderForValue) { - if (upgradeSettingsBuilder_ == null) { - upgradeSettings_ = builderForValue.build(); - onChanged(); - } else { - upgradeSettingsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - public Builder mergeUpgradeSettings(com.google.container.v1beta1.NodePool.UpgradeSettings value) { - if (upgradeSettingsBuilder_ == null) { - if (upgradeSettings_ != null) { - upgradeSettings_ = - com.google.container.v1beta1.NodePool.UpgradeSettings.newBuilder(upgradeSettings_).mergeFrom(value).buildPartial(); - } else { - upgradeSettings_ = value; - } - onChanged(); - } else { - upgradeSettingsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - public Builder clearUpgradeSettings() { - if (upgradeSettingsBuilder_ == null) { - upgradeSettings_ = null; - onChanged(); - } else { - upgradeSettings_ = null; - upgradeSettingsBuilder_ = null; - } - - return this; - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - public com.google.container.v1beta1.NodePool.UpgradeSettings.Builder getUpgradeSettingsBuilder() { - - onChanged(); - return getUpgradeSettingsFieldBuilder().getBuilder(); - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - public com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { - if (upgradeSettingsBuilder_ != null) { - return upgradeSettingsBuilder_.getMessageOrBuilder(); - } else { - return upgradeSettings_ == null ? - com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance() : upgradeSettings_; - } - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePool.UpgradeSettings, com.google.container.v1beta1.NodePool.UpgradeSettings.Builder, com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder> - getUpgradeSettingsFieldBuilder() { - if (upgradeSettingsBuilder_ == null) { - upgradeSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePool.UpgradeSettings, com.google.container.v1beta1.NodePool.UpgradeSettings.Builder, com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder>( - getUpgradeSettings(), - getParentForChildren(), - isClean()); - upgradeSettings_ = null; - } - return upgradeSettingsBuilder_; - } - - private com.google.container.v1beta1.NodePool.PlacementPolicy placementPolicy_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePool.PlacementPolicy, com.google.container.v1beta1.NodePool.PlacementPolicy.Builder, com.google.container.v1beta1.NodePool.PlacementPolicyOrBuilder> placementPolicyBuilder_; - /** - *
-     * Specifies the node placement policy.
-     * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; - * @return Whether the placementPolicy field is set. - */ - public boolean hasPlacementPolicy() { - return placementPolicyBuilder_ != null || placementPolicy_ != null; - } - /** - *
-     * Specifies the node placement policy.
-     * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; - * @return The placementPolicy. - */ - public com.google.container.v1beta1.NodePool.PlacementPolicy getPlacementPolicy() { - if (placementPolicyBuilder_ == null) { - return placementPolicy_ == null ? com.google.container.v1beta1.NodePool.PlacementPolicy.getDefaultInstance() : placementPolicy_; - } else { - return placementPolicyBuilder_.getMessage(); - } - } - /** - *
-     * Specifies the node placement policy.
-     * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; - */ - public Builder setPlacementPolicy(com.google.container.v1beta1.NodePool.PlacementPolicy value) { - if (placementPolicyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - placementPolicy_ = value; - onChanged(); - } else { - placementPolicyBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Specifies the node placement policy.
-     * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; - */ - public Builder setPlacementPolicy( - com.google.container.v1beta1.NodePool.PlacementPolicy.Builder builderForValue) { - if (placementPolicyBuilder_ == null) { - placementPolicy_ = builderForValue.build(); - onChanged(); - } else { - placementPolicyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Specifies the node placement policy.
-     * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; - */ - public Builder mergePlacementPolicy(com.google.container.v1beta1.NodePool.PlacementPolicy value) { - if (placementPolicyBuilder_ == null) { - if (placementPolicy_ != null) { - placementPolicy_ = - com.google.container.v1beta1.NodePool.PlacementPolicy.newBuilder(placementPolicy_).mergeFrom(value).buildPartial(); - } else { - placementPolicy_ = value; - } - onChanged(); - } else { - placementPolicyBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Specifies the node placement policy.
-     * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; - */ - public Builder clearPlacementPolicy() { - if (placementPolicyBuilder_ == null) { - placementPolicy_ = null; - onChanged(); - } else { - placementPolicy_ = null; - placementPolicyBuilder_ = null; - } - - return this; - } - /** - *
-     * Specifies the node placement policy.
-     * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; - */ - public com.google.container.v1beta1.NodePool.PlacementPolicy.Builder getPlacementPolicyBuilder() { - - onChanged(); - return getPlacementPolicyFieldBuilder().getBuilder(); - } - /** - *
-     * Specifies the node placement policy.
-     * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; - */ - public com.google.container.v1beta1.NodePool.PlacementPolicyOrBuilder getPlacementPolicyOrBuilder() { - if (placementPolicyBuilder_ != null) { - return placementPolicyBuilder_.getMessageOrBuilder(); - } else { - return placementPolicy_ == null ? - com.google.container.v1beta1.NodePool.PlacementPolicy.getDefaultInstance() : placementPolicy_; - } - } - /** - *
-     * Specifies the node placement policy.
-     * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePool.PlacementPolicy, com.google.container.v1beta1.NodePool.PlacementPolicy.Builder, com.google.container.v1beta1.NodePool.PlacementPolicyOrBuilder> - getPlacementPolicyFieldBuilder() { - if (placementPolicyBuilder_ == null) { - placementPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePool.PlacementPolicy, com.google.container.v1beta1.NodePool.PlacementPolicy.Builder, com.google.container.v1beta1.NodePool.PlacementPolicyOrBuilder>( - getPlacementPolicy(), - getParentForChildren(), - isClean()); - placementPolicy_ = null; - } - return placementPolicyBuilder_; - } - - 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 updateInfoBuilder_ != null || updateInfo_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - updateInfoBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - updateInfoBuilder_.setMessage(builderForValue.build()); - } - - 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 (updateInfo_ != null) { - updateInfo_ = - com.google.container.v1beta1.NodePool.UpdateInfo.newBuilder(updateInfo_).mergeFrom(value).buildPartial(); - } else { - updateInfo_ = value; - } - onChanged(); - } else { - updateInfoBuilder_.mergeFrom(value); - } - - 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() { - if (updateInfoBuilder_ == null) { - updateInfo_ = null; - onChanged(); - } else { - updateInfo_ = null; - updateInfoBuilder_ = null; - } - - 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() { - - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 56f7d4aac23a..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoConfig.java +++ /dev/null @@ -1,677 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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); - } - - 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 networkTags_ != null; - } - /** - *
-   * 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 getNetworkTags(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (networkTags_ != null) { - output.writeMessage(1, getNetworkTags()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (networkTags_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getNetworkTags()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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 (!getUnknownFields().equals(other.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(); - } - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (networkTagsBuilder_ == null) { - networkTags_ = null; - } else { - networkTags_ = null; - networkTagsBuilder_ = 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 (networkTagsBuilder_ == null) { - result.networkTags_ = networkTags_; - } else { - result.networkTags_ = networkTagsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.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()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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); - - 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 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 networkTagsBuilder_ != null || networkTags_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - networkTagsBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - networkTagsBuilder_.setMessage(builderForValue.build()); - } - - 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 (networkTags_ != null) { - networkTags_ = - com.google.container.v1beta1.NetworkTags.newBuilder(networkTags_).mergeFrom(value).buildPartial(); - } else { - networkTags_ = value; - } - onChanged(); - } else { - networkTagsBuilder_.mergeFrom(value); - } - - 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() { - if (networkTagsBuilder_ == null) { - networkTags_ = null; - onChanged(); - } else { - networkTags_ = null; - networkTagsBuilder_ = null; - } - - 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() { - - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 6e1dab9fb036..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoConfigOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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(); -} 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 deleted file mode 100644 index 674a1a7b3b22..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoscaling.java +++ /dev/null @@ -1,1196 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * NodePoolAutoscaling contains information required by cluster autoscaler to
- * adjust the size of the node pool to the current cluster usage.
- * 
- * - * Protobuf type {@code google.container.v1beta1.NodePoolAutoscaling} - */ -public final class NodePoolAutoscaling extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodePoolAutoscaling) - NodePoolAutoscalingOrBuilder { -private static final long serialVersionUID = 0L; - // Use NodePoolAutoscaling.newBuilder() to construct. - private NodePoolAutoscaling(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodePoolAutoscaling() { - locationPolicy_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NodePoolAutoscaling(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * Is autoscaling enabled for this node pool.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - public static final int MIN_NODE_COUNT_FIELD_NUMBER = 2; - private int minNodeCount_; - /** - *
-   * Minimum number of nodes 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_; - /** - *
-   * 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_; - /** - *
-   * 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_; - /** - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.NodePoolAutoscaling.LocationPolicy result = com.google.container.v1beta1.NodePoolAutoscaling.LocationPolicy.valueOf(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_; - /** - *
-   * 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_; - /** - *
-   * 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(); - 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); - result.enabled_ = enabled_; - result.minNodeCount_ = minNodeCount_; - result.maxNodeCount_ = maxNodeCount_; - result.autoprovisioned_ = autoprovisioned_; - result.locationPolicy_ = locationPolicy_; - result.totalMinNodeCount_ = totalMinNodeCount_; - result.totalMaxNodeCount_ = totalMaxNodeCount_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.NodePoolAutoscaling) { - return mergeFrom((com.google.container.v1beta1.NodePoolAutoscaling)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.NodePoolAutoscaling other) { - if (other == com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - if (other.getMinNodeCount() != 0) { - setMinNodeCount(other.getMinNodeCount()); - } - if (other.getMaxNodeCount() != 0) { - setMaxNodeCount(other.getMaxNodeCount()); - } - if (other.getAutoprovisioned() != false) { - setAutoprovisioned(other.getAutoprovisioned()); - } - 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(); - - break; - } // case 8 - case 16: { - minNodeCount_ = input.readInt32(); - - break; - } // case 16 - case 24: { - maxNodeCount_ = input.readInt32(); - - break; - } // case 24 - case 32: { - autoprovisioned_ = input.readBool(); - - break; - } // case 32 - case 40: { - locationPolicy_ = input.readEnum(); - - break; - } // case 40 - case 48: { - totalMinNodeCount_ = input.readInt32(); - - break; - } // case 48 - case 56: { - totalMaxNodeCount_ = input.readInt32(); - - 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 boolean enabled_ ; - /** - *
-     * Is autoscaling enabled for this node pool.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Is autoscaling enabled for this node pool.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Is autoscaling enabled for this node pool.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - - private int minNodeCount_ ; - /** - *
-     * Minimum number of nodes 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; - 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() { - - 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; - 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() { - - maxNodeCount_ = 0; - onChanged(); - return this; - } - - private boolean autoprovisioned_ ; - /** - *
-     * Can this node pool be deleted automatically.
-     * 
- * - * bool autoprovisioned = 4; - * @return The autoprovisioned. - */ - @java.lang.Override - public boolean getAutoprovisioned() { - return autoprovisioned_; - } - /** - *
-     * Can this node pool be deleted automatically.
-     * 
- * - * bool autoprovisioned = 4; - * @param value The autoprovisioned to set. - * @return This builder for chaining. - */ - public Builder setAutoprovisioned(boolean value) { - - autoprovisioned_ = value; - onChanged(); - return this; - } - /** - *
-     * Can this node pool be deleted automatically.
-     * 
- * - * bool autoprovisioned = 4; - * @return This builder for chaining. - */ - public Builder clearAutoprovisioned() { - - autoprovisioned_ = false; - onChanged(); - return this; - } - - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.NodePoolAutoscaling.LocationPolicy result = com.google.container.v1beta1.NodePoolAutoscaling.LocationPolicy.valueOf(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(); - } - - 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() { - - 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; - 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() { - - 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; - 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() { - - 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 deleted file mode 100644 index 4bdce9c96fbf..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoscalingOrBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface NodePoolAutoscalingOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodePoolAutoscaling) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Is autoscaling enabled for this node pool.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - boolean getEnabled(); - - /** - *
-   * Minimum number of nodes 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 deleted file mode 100644 index 2d3b08d047cf..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolDefaults.java +++ /dev/null @@ -1,639 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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); - } - - 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 nodeConfigDefaults_ != null; - } - /** - *
-   * 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 getNodeConfigDefaults(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (nodeConfigDefaults_ != null) { - output.writeMessage(1, getNodeConfigDefaults()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (nodeConfigDefaults_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getNodeConfigDefaults()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (nodeConfigDefaultsBuilder_ == null) { - nodeConfigDefaults_ = null; - } else { - nodeConfigDefaults_ = null; - nodeConfigDefaultsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.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 (nodeConfigDefaultsBuilder_ == null) { - result.nodeConfigDefaults_ = nodeConfigDefaults_; - } else { - result.nodeConfigDefaults_ = nodeConfigDefaultsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.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); - - 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 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 nodeConfigDefaultsBuilder_ != null || nodeConfigDefaults_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - nodeConfigDefaultsBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - nodeConfigDefaultsBuilder_.setMessage(builderForValue.build()); - } - - 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 (nodeConfigDefaults_ != null) { - nodeConfigDefaults_ = - com.google.container.v1beta1.NodeConfigDefaults.newBuilder(nodeConfigDefaults_).mergeFrom(value).buildPartial(); - } else { - nodeConfigDefaults_ = value; - } - onChanged(); - } else { - nodeConfigDefaultsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Subset of NodeConfig message that has defaults.
-     * 
- * - * .google.container.v1beta1.NodeConfigDefaults node_config_defaults = 1; - */ - public Builder clearNodeConfigDefaults() { - if (nodeConfigDefaultsBuilder_ == null) { - nodeConfigDefaults_ = null; - onChanged(); - } else { - nodeConfigDefaults_ = null; - nodeConfigDefaultsBuilder_ = null; - } - - return this; - } - /** - *
-     * Subset of NodeConfig message that has defaults.
-     * 
- * - * .google.container.v1beta1.NodeConfigDefaults node_config_defaults = 1; - */ - public com.google.container.v1beta1.NodeConfigDefaults.Builder getNodeConfigDefaultsBuilder() { - - 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 deleted file mode 100644 index 058db95510b9..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolDefaultsOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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 deleted file mode 100644 index 96024aa2dd0a..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolLoggingConfig.java +++ /dev/null @@ -1,639 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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); - } - - 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 variantConfig_ != null; - } - /** - *
-   * 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 getVariantConfig(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (variantConfig_ != null) { - output.writeMessage(1, getVariantConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (variantConfig_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (variantConfigBuilder_ == null) { - variantConfig_ = null; - } else { - variantConfig_ = null; - 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 (variantConfigBuilder_ == null) { - result.variantConfig_ = variantConfig_; - } else { - result.variantConfig_ = variantConfigBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.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); - - 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 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 variantConfigBuilder_ != null || variantConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - variantConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - variantConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (variantConfig_ != null) { - variantConfig_ = - com.google.container.v1beta1.LoggingVariantConfig.newBuilder(variantConfig_).mergeFrom(value).buildPartial(); - } else { - variantConfig_ = value; - } - onChanged(); - } else { - variantConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Logging variant configuration.
-     * 
- * - * .google.container.v1beta1.LoggingVariantConfig variant_config = 1; - */ - public Builder clearVariantConfig() { - if (variantConfigBuilder_ == null) { - variantConfig_ = null; - onChanged(); - } else { - variantConfig_ = null; - variantConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Logging variant configuration.
-     * 
- * - * .google.container.v1beta1.LoggingVariantConfig variant_config = 1; - */ - public com.google.container.v1beta1.LoggingVariantConfig.Builder getVariantConfigBuilder() { - - 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 deleted file mode 100644 index 60250065e218..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolLoggingConfigOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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 deleted file mode 100644 index 0f3ca368780b..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolOrBuilder.java +++ /dev/null @@ -1,537 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface NodePoolOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodePool) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The name of the node pool.
-   * 
- * - * string name = 1; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * The name of the node pool.
-   * 
- * - * string name = 1; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * The node configuration of the pool.
-   * 
- * - * .google.container.v1beta1.NodeConfig config = 2; - * @return Whether the config field is set. - */ - boolean hasConfig(); - /** - *
-   * The node configuration of the pool.
-   * 
- * - * .google.container.v1beta1.NodeConfig config = 2; - * @return The config. - */ - com.google.container.v1beta1.NodeConfig getConfig(); - /** - *
-   * The node configuration of the pool.
-   * 
- * - * .google.container.v1beta1.NodeConfig config = 2; - */ - com.google.container.v1beta1.NodeConfigOrBuilder getConfigOrBuilder(); - - /** - *
-   * The initial node count for the pool. You must ensure that your
-   * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
-   * is sufficient for this number of instances. You must also have available
-   * firewall and routes quota.
-   * 
- * - * int32 initial_node_count = 3; - * @return The initialNodeCount. - */ - int getInitialNodeCount(); - - /** - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes should be located.
-   * If this value is unspecified during node pool creation, the
-   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-   * value will be used, instead.
-   * Warning: changing node pool locations will result in nodes being added
-   * and/or removed.
-   * 
- * - * repeated string locations = 13; - * @return A list containing the locations. - */ - java.util.List - getLocationsList(); - /** - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes should be located.
-   * If this value is unspecified during node pool creation, the
-   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-   * value will be used, instead.
-   * Warning: changing node pool locations will result in nodes being added
-   * and/or removed.
-   * 
- * - * repeated string locations = 13; - * @return The count of locations. - */ - int getLocationsCount(); - /** - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes should be located.
-   * If this value is unspecified during node pool creation, the
-   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-   * value will be used, instead.
-   * Warning: changing node pool locations will result in nodes being added
-   * and/or removed.
-   * 
- * - * repeated string locations = 13; - * @param index The index of the element to return. - * @return The locations at the given index. - */ - java.lang.String getLocations(int index); - /** - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes should be located.
-   * If this value is unspecified during node pool creation, the
-   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-   * value will be used, instead.
-   * Warning: changing node pool locations will result in nodes being added
-   * and/or removed.
-   * 
- * - * repeated string locations = 13; - * @param index The index of the value to return. - * @return The bytes of the locations at the given index. - */ - com.google.protobuf.ByteString - getLocationsBytes(int index); - - /** - *
-   * 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 the Kubernetes of this node.
-   * 
- * - * string version = 101; - * @return The version. - */ - java.lang.String getVersion(); - /** - *
-   * The version of the Kubernetes of this node.
-   * 
- * - * string version = 101; - * @return The bytes for version. - */ - com.google.protobuf.ByteString - getVersionBytes(); - - /** - *
-   * [Output only] The resource URLs of the [managed instance
-   * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
-   * associated with this node pool.
-   * 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=3513 - * @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=3513 - * @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(); -} 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 deleted file mode 100644 index ddacd10949bc..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolUpdateStrategy.java +++ /dev/null @@ -1,152 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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.
-   * 
- * - * 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.
-   * 
- * - * 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 deleted file mode 100644 index 27d898a8fc38..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaint.java +++ /dev/null @@ -1,1032 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Kubernetes taint is comprised of three fields: key, value, and effect. Effect
- * can only be one of three types:  NoSchedule, PreferNoSchedule or NoExecute.
- * See
- * [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
- * for more information, including usage and the valid values.
- * 
- * - * Protobuf type {@code google.container.v1beta1.NodeTaint} - */ -public final class NodeTaint extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodeTaint) - NodeTaintOrBuilder { -private static final long serialVersionUID = 0L; - // Use NodeTaint.newBuilder() to construct. - private NodeTaint(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeTaint() { - key_ = ""; - value_ = ""; - effect_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NodeTaint(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - private volatile java.lang.Object key_; - /** - *
-   * Key for taint.
-   * 
- * - * string key = 1; - * @return The key. - */ - @java.lang.Override - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - *
-   * Key for taint.
-   * 
- * - * string key = 1; - * @return The bytes for key. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALUE_FIELD_NUMBER = 2; - private volatile java.lang.Object value_; - /** - *
-   * Value for taint.
-   * 
- * - * string value = 2; - * @return The value. - */ - @java.lang.Override - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - *
-   * Value for taint.
-   * 
- * - * string value = 2; - * @return The bytes for value. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EFFECT_FIELD_NUMBER = 3; - private int effect_; - /** - *
-   * Effect for taint.
-   * 
- * - * .google.container.v1beta1.NodeTaint.Effect effect = 3; - * @return The enum numeric value on the wire for effect. - */ - @java.lang.Override public int getEffectValue() { - return effect_; - } - /** - *
-   * Effect for taint.
-   * 
- * - * .google.container.v1beta1.NodeTaint.Effect effect = 3; - * @return The effect. - */ - @java.lang.Override public com.google.container.v1beta1.NodeTaint.Effect getEffect() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.NodeTaint.Effect result = com.google.container.v1beta1.NodeTaint.Effect.valueOf(effect_); - return result == null ? com.google.container.v1beta1.NodeTaint.Effect.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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 comprised of three fields: key, value, and effect. Effect
-   * can only be one of three types:  NoSchedule, PreferNoSchedule or NoExecute.
-   * See
-   * [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
-   * for more information, including usage and the valid values.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.NodeTaint} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodeTaint) - com.google.container.v1beta1.NodeTaintOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeTaint_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeTaint_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NodeTaint.class, com.google.container.v1beta1.NodeTaint.Builder.class); - } - - // Construct using com.google.container.v1beta1.NodeTaint.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = ""; - - value_ = ""; - - effect_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeTaint_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.NodeTaint getDefaultInstanceForType() { - return com.google.container.v1beta1.NodeTaint.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.NodeTaint build() { - com.google.container.v1beta1.NodeTaint result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.NodeTaint buildPartial() { - com.google.container.v1beta1.NodeTaint result = new com.google.container.v1beta1.NodeTaint(this); - result.key_ = key_; - result.value_ = value_; - result.effect_ = effect_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.NodeTaint) { - return mergeFrom((com.google.container.v1beta1.NodeTaint)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.NodeTaint other) { - if (other == com.google.container.v1beta1.NodeTaint.getDefaultInstance()) return this; - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (!other.getValue().isEmpty()) { - value_ = other.value_; - onChanged(); - } - if (other.effect_ != 0) { - setEffectValue(other.getEffectValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - value_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: { - effect_ = input.readEnum(); - - 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 java.lang.Object key_ = ""; - /** - *
-     * Key for taint.
-     * 
- * - * string key = 1; - * @return The key. - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Key for taint.
-     * 
- * - * string key = 1; - * @return The bytes for key. - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Key for taint.
-     * 
- * - * string key = 1; - * @param value The key to set. - * @return This builder for chaining. - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - *
-     * Key for taint.
-     * 
- * - * string key = 1; - * @return This builder for chaining. - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - *
-     * Key for taint.
-     * 
- * - * string key = 1; - * @param value The bytes for key to set. - * @return This builder for chaining. - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object value_ = ""; - /** - *
-     * Value for taint.
-     * 
- * - * string value = 2; - * @return The value. - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Value for taint.
-     * 
- * - * string value = 2; - * @return The bytes for value. - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Value for taint.
-     * 
- * - * string value = 2; - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - *
-     * Value for taint.
-     * 
- * - * string value = 2; - * @return This builder for chaining. - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - *
-     * Value for taint.
-     * 
- * - * string value = 2; - * @param value The bytes for value to set. - * @return This builder for chaining. - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - value_ = value; - onChanged(); - return this; - } - - private int effect_ = 0; - /** - *
-     * Effect for taint.
-     * 
- * - * .google.container.v1beta1.NodeTaint.Effect effect = 3; - * @return The enum numeric value on the wire for effect. - */ - @java.lang.Override public int getEffectValue() { - return effect_; - } - /** - *
-     * Effect for taint.
-     * 
- * - * .google.container.v1beta1.NodeTaint.Effect effect = 3; - * @param value The enum numeric value on the wire for effect to set. - * @return This builder for chaining. - */ - public Builder setEffectValue(int value) { - - effect_ = value; - onChanged(); - return this; - } - /** - *
-     * Effect for taint.
-     * 
- * - * .google.container.v1beta1.NodeTaint.Effect effect = 3; - * @return The effect. - */ - @java.lang.Override - public com.google.container.v1beta1.NodeTaint.Effect getEffect() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.NodeTaint.Effect result = com.google.container.v1beta1.NodeTaint.Effect.valueOf(effect_); - return result == null ? com.google.container.v1beta1.NodeTaint.Effect.UNRECOGNIZED : result; - } - /** - *
-     * Effect for taint.
-     * 
- * - * .google.container.v1beta1.NodeTaint.Effect effect = 3; - * @param value The effect to set. - * @return This builder for chaining. - */ - public Builder setEffect(com.google.container.v1beta1.NodeTaint.Effect value) { - if (value == null) { - throw new NullPointerException(); - } - - effect_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Effect for taint.
-     * 
- * - * .google.container.v1beta1.NodeTaint.Effect effect = 3; - * @return This builder for chaining. - */ - public Builder clearEffect() { - - effect_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.NodeTaint) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodeTaint) - private static final com.google.container.v1beta1.NodeTaint DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.NodeTaint(); - } - - public static com.google.container.v1beta1.NodeTaint getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeTaint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index bd45ff102c10..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaintOrBuilder.java +++ /dev/null @@ -1,68 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface NodeTaintOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodeTaint) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Key for taint.
-   * 
- * - * string key = 1; - * @return The key. - */ - java.lang.String getKey(); - /** - *
-   * Key for taint.
-   * 
- * - * string key = 1; - * @return The bytes for key. - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - *
-   * Value for taint.
-   * 
- * - * string value = 2; - * @return The value. - */ - java.lang.String getValue(); - /** - *
-   * Value for taint.
-   * 
- * - * string value = 2; - * @return The bytes for value. - */ - com.google.protobuf.ByteString - getValueBytes(); - - /** - *
-   * Effect for taint.
-   * 
- * - * .google.container.v1beta1.NodeTaint.Effect effect = 3; - * @return The enum numeric value on the wire for effect. - */ - int getEffectValue(); - /** - *
-   * Effect for taint.
-   * 
- * - * .google.container.v1beta1.NodeTaint.Effect effect = 3; - * @return The effect. - */ - com.google.container.v1beta1.NodeTaint.Effect getEffect(); -} diff --git a/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 deleted file mode 100644 index 40c5abbf8f56..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaints.java +++ /dev/null @@ -1,854 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - 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(); - 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); - int from_bitField0_ = bitField0_; - if (taintsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - taints_ = java.util.Collections.unmodifiableList(taints_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.taints_ = taints_; - } else { - result.taints_ = taintsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.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 deleted file mode 100644 index ada0c3ba4710..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaintsOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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 deleted file mode 100644 index b067d4639677..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NotificationConfig.java +++ /dev/null @@ -1,2573 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * NotificationConfig is the configuration of notifications.
- * 
- * - * Protobuf type {@code google.container.v1beta1.NotificationConfig} - */ -public final class NotificationConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.NotificationConfig) - NotificationConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use NotificationConfig.newBuilder() to construct. - private NotificationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NotificationConfig() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NotificationConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NotificationConfig_PubSub_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NotificationConfig_PubSub_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NotificationConfig.PubSub.class, com.google.container.v1beta1.NotificationConfig.PubSub.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-     * Enable notifications for Pub/Sub.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - public static final int TOPIC_FIELD_NUMBER = 2; - private volatile java.lang.Object topic_; - /** - *
-     * The desired Pub/Sub topic to which notifications will be
-     * sent by GKE. Format is `projects/{project}/topics/{topic}`.
-     * 
- * - * string topic = 2 [(.google.api.resource_reference) = { ... } - * @return The topic. - */ - @java.lang.Override - public java.lang.String getTopic() { - java.lang.Object ref = topic_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - topic_ = s; - return s; - } - } - /** - *
-     * The desired Pub/Sub topic to which notifications will be
-     * sent by GKE. Format is `projects/{project}/topics/{topic}`.
-     * 
- * - * string topic = 2 [(.google.api.resource_reference) = { ... } - * @return The bytes for topic. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTopicBytes() { - java.lang.Object ref = topic_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topic_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTER_FIELD_NUMBER = 3; - private com.google.container.v1beta1.NotificationConfig.Filter filter_; - /** - *
-     * Allows filtering to one or more specific event types. If no filter is
-     * specified, or if a filter is specified with no event types, all event
-     * types will be sent
-     * 
- * - * .google.container.v1beta1.NotificationConfig.Filter filter = 3; - * @return Whether the filter field is set. - */ - @java.lang.Override - public boolean hasFilter() { - return filter_ != null; - } - /** - *
-     * Allows filtering to one or more specific event types. If no filter is
-     * specified, or if a filter is specified with no event types, all event
-     * types will be sent
-     * 
- * - * .google.container.v1beta1.NotificationConfig.Filter filter = 3; - * @return The filter. - */ - @java.lang.Override - public com.google.container.v1beta1.NotificationConfig.Filter getFilter() { - return filter_ == null ? com.google.container.v1beta1.NotificationConfig.Filter.getDefaultInstance() : filter_; - } - /** - *
-     * Allows filtering to one or more specific event types. If no filter is
-     * specified, or if a filter is specified with no event types, all event
-     * types will be sent
-     * 
- * - * .google.container.v1beta1.NotificationConfig.Filter filter = 3; - */ - @java.lang.Override - public com.google.container.v1beta1.NotificationConfig.FilterOrBuilder getFilterOrBuilder() { - return getFilter(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, topic_); - } - if (filter_ != null) { - output.writeMessage(3, getFilter()); - } - 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 (filter_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - enabled_ = false; - - topic_ = ""; - - if (filterBuilder_ == null) { - filter_ = null; - } else { - filter_ = null; - filterBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NotificationConfig_PubSub_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.NotificationConfig.PubSub getDefaultInstanceForType() { - return com.google.container.v1beta1.NotificationConfig.PubSub.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.NotificationConfig.PubSub build() { - com.google.container.v1beta1.NotificationConfig.PubSub result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.NotificationConfig.PubSub buildPartial() { - com.google.container.v1beta1.NotificationConfig.PubSub result = new com.google.container.v1beta1.NotificationConfig.PubSub(this); - result.enabled_ = enabled_; - result.topic_ = topic_; - if (filterBuilder_ == null) { - result.filter_ = filter_; - } else { - result.filter_ = filterBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.NotificationConfig.PubSub) { - return mergeFrom((com.google.container.v1beta1.NotificationConfig.PubSub)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.NotificationConfig.PubSub other) { - if (other == com.google.container.v1beta1.NotificationConfig.PubSub.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - if (!other.getTopic().isEmpty()) { - topic_ = other.topic_; - onChanged(); - } - 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(); - - break; - } // case 8 - case 18: { - topic_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - input.readMessage( - getFilterFieldBuilder().getBuilder(), - extensionRegistry); - - 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 boolean enabled_ ; - /** - *
-       * Enable notifications for Pub/Sub.
-       * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-       * Enable notifications for Pub/Sub.
-       * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-       * Enable notifications for Pub/Sub.
-       * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - - private java.lang.Object topic_ = ""; - /** - *
-       * The desired Pub/Sub topic to which notifications will be
-       * sent by GKE. Format is `projects/{project}/topics/{topic}`.
-       * 
- * - * string topic = 2 [(.google.api.resource_reference) = { ... } - * @return The topic. - */ - public java.lang.String getTopic() { - java.lang.Object ref = topic_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - topic_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The desired Pub/Sub topic to which notifications will be
-       * sent by GKE. Format is `projects/{project}/topics/{topic}`.
-       * 
- * - * string topic = 2 [(.google.api.resource_reference) = { ... } - * @return The bytes for topic. - */ - public com.google.protobuf.ByteString - getTopicBytes() { - java.lang.Object ref = topic_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topic_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The desired Pub/Sub topic to which notifications will be
-       * sent by GKE. Format is `projects/{project}/topics/{topic}`.
-       * 
- * - * string topic = 2 [(.google.api.resource_reference) = { ... } - * @param value The topic to set. - * @return This builder for chaining. - */ - public Builder setTopic( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - topic_ = value; - onChanged(); - return this; - } - /** - *
-       * The desired Pub/Sub topic to which notifications will be
-       * sent by GKE. Format is `projects/{project}/topics/{topic}`.
-       * 
- * - * string topic = 2 [(.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearTopic() { - - topic_ = getDefaultInstance().getTopic(); - onChanged(); - return this; - } - /** - *
-       * The desired Pub/Sub topic to which notifications will be
-       * sent by GKE. Format is `projects/{project}/topics/{topic}`.
-       * 
- * - * string topic = 2 [(.google.api.resource_reference) = { ... } - * @param value The bytes for topic to set. - * @return This builder for chaining. - */ - public Builder setTopicBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - topic_ = value; - onChanged(); - return this; - } - - private com.google.container.v1beta1.NotificationConfig.Filter filter_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NotificationConfig.Filter, com.google.container.v1beta1.NotificationConfig.Filter.Builder, com.google.container.v1beta1.NotificationConfig.FilterOrBuilder> filterBuilder_; - /** - *
-       * Allows filtering to one or more specific event types. If no filter is
-       * specified, or if a filter is specified with no event types, all event
-       * types will be sent
-       * 
- * - * .google.container.v1beta1.NotificationConfig.Filter filter = 3; - * @return Whether the filter field is set. - */ - public boolean hasFilter() { - return filterBuilder_ != null || filter_ != null; - } - /** - *
-       * Allows filtering to one or more specific event types. If no filter is
-       * specified, or if a filter is specified with no event types, all event
-       * types will be sent
-       * 
- * - * .google.container.v1beta1.NotificationConfig.Filter filter = 3; - * @return The filter. - */ - public com.google.container.v1beta1.NotificationConfig.Filter getFilter() { - if (filterBuilder_ == null) { - return filter_ == null ? com.google.container.v1beta1.NotificationConfig.Filter.getDefaultInstance() : filter_; - } else { - return filterBuilder_.getMessage(); - } - } - /** - *
-       * Allows filtering to one or more specific event types. If no filter is
-       * specified, or if a filter is specified with no event types, all event
-       * types will be sent
-       * 
- * - * .google.container.v1beta1.NotificationConfig.Filter filter = 3; - */ - public Builder setFilter(com.google.container.v1beta1.NotificationConfig.Filter value) { - if (filterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - filter_ = value; - onChanged(); - } else { - filterBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Allows filtering to one or more specific event types. If no filter is
-       * specified, or if a filter is specified with no event types, all event
-       * types will be sent
-       * 
- * - * .google.container.v1beta1.NotificationConfig.Filter filter = 3; - */ - public Builder setFilter( - com.google.container.v1beta1.NotificationConfig.Filter.Builder builderForValue) { - if (filterBuilder_ == null) { - filter_ = builderForValue.build(); - onChanged(); - } else { - filterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Allows filtering to one or more specific event types. If no filter is
-       * specified, or if a filter is specified with no event types, all event
-       * types will be sent
-       * 
- * - * .google.container.v1beta1.NotificationConfig.Filter filter = 3; - */ - public Builder mergeFilter(com.google.container.v1beta1.NotificationConfig.Filter value) { - if (filterBuilder_ == null) { - if (filter_ != null) { - filter_ = - com.google.container.v1beta1.NotificationConfig.Filter.newBuilder(filter_).mergeFrom(value).buildPartial(); - } else { - filter_ = value; - } - onChanged(); - } else { - filterBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Allows filtering to one or more specific event types. If no filter is
-       * specified, or if a filter is specified with no event types, all event
-       * types will be sent
-       * 
- * - * .google.container.v1beta1.NotificationConfig.Filter filter = 3; - */ - public Builder clearFilter() { - if (filterBuilder_ == null) { - filter_ = null; - onChanged(); - } else { - filter_ = null; - filterBuilder_ = null; - } - - return this; - } - /** - *
-       * Allows filtering to one or more specific event types. If no filter is
-       * specified, or if a filter is specified with no event types, all event
-       * types will be sent
-       * 
- * - * .google.container.v1beta1.NotificationConfig.Filter filter = 3; - */ - public com.google.container.v1beta1.NotificationConfig.Filter.Builder getFilterBuilder() { - - onChanged(); - return getFilterFieldBuilder().getBuilder(); - } - /** - *
-       * Allows filtering to one or more specific event types. If no filter is
-       * specified, or if a filter is specified with no event types, all event
-       * types will be sent
-       * 
- * - * .google.container.v1beta1.NotificationConfig.Filter filter = 3; - */ - public com.google.container.v1beta1.NotificationConfig.FilterOrBuilder getFilterOrBuilder() { - if (filterBuilder_ != null) { - return filterBuilder_.getMessageOrBuilder(); - } else { - return filter_ == null ? - com.google.container.v1beta1.NotificationConfig.Filter.getDefaultInstance() : filter_; - } - } - /** - *
-       * Allows filtering to one or more specific event types. If no filter is
-       * specified, or if a filter is specified with no event types, all event
-       * types will be sent
-       * 
- * - * .google.container.v1beta1.NotificationConfig.Filter filter = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NotificationConfig.Filter, com.google.container.v1beta1.NotificationConfig.Filter.Builder, com.google.container.v1beta1.NotificationConfig.FilterOrBuilder> - getFilterFieldBuilder() { - if (filterBuilder_ == null) { - filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NotificationConfig.Filter, com.google.container.v1beta1.NotificationConfig.Filter.Builder, com.google.container.v1beta1.NotificationConfig.FilterOrBuilder>( - getFilter(), - getParentForChildren(), - isClean()); - filter_ = null; - } - return filterBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.NotificationConfig.PubSub) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.NotificationConfig.PubSub) - private static final com.google.container.v1beta1.NotificationConfig.PubSub DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.NotificationConfig.PubSub(); - } - - public static com.google.container.v1beta1.NotificationConfig.PubSub getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PubSub parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NotificationConfig_Filter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NotificationConfig_Filter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NotificationConfig.Filter.class, com.google.container.v1beta1.NotificationConfig.Filter.Builder.class); - } - - public static final int EVENT_TYPE_FIELD_NUMBER = 1; - private java.util.List eventType_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.container.v1beta1.NotificationConfig.EventType> eventType_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.container.v1beta1.NotificationConfig.EventType>() { - public com.google.container.v1beta1.NotificationConfig.EventType convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.NotificationConfig.EventType result = com.google.container.v1beta1.NotificationConfig.EventType.valueOf(from); - return result == null ? com.google.container.v1beta1.NotificationConfig.EventType.UNRECOGNIZED : result; - } - }; - /** - *
-     * Event types to allowlist.
-     * 
- * - * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; - * @return A list containing the eventType. - */ - @java.lang.Override - public java.util.List getEventTypeList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.container.v1beta1.NotificationConfig.EventType>(eventType_, eventType_converter_); - } - /** - *
-     * Event types to allowlist.
-     * 
- * - * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; - * @return The count of eventType. - */ - @java.lang.Override - public int getEventTypeCount() { - return eventType_.size(); - } - /** - *
-     * Event types to allowlist.
-     * 
- * - * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; - * @param index The index of the element to return. - * @return The eventType at the given index. - */ - @java.lang.Override - public com.google.container.v1beta1.NotificationConfig.EventType getEventType(int index) { - return eventType_converter_.convert(eventType_.get(index)); - } - /** - *
-     * Event types to allowlist.
-     * 
- * - * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; - * @return A list containing the enum numeric values on the wire for eventType. - */ - @java.lang.Override - public java.util.List - getEventTypeValueList() { - return eventType_; - } - /** - *
-     * Event types to allowlist.
-     * 
- * - * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of eventType at the given index. - */ - @java.lang.Override - public int getEventTypeValue(int index) { - return eventType_.get(index); - } - private int eventTypeMemoizedSerializedSize; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (getEventTypeList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(eventTypeMemoizedSerializedSize); - } - for (int i = 0; i < eventType_.size(); i++) { - output.writeEnumNoTag(eventType_.get(i)); - } - 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(); - eventType_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NotificationConfig_Filter_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.NotificationConfig.Filter getDefaultInstanceForType() { - return com.google.container.v1beta1.NotificationConfig.Filter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.NotificationConfig.Filter build() { - com.google.container.v1beta1.NotificationConfig.Filter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.NotificationConfig.Filter buildPartial() { - com.google.container.v1beta1.NotificationConfig.Filter result = new com.google.container.v1beta1.NotificationConfig.Filter(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - eventType_ = java.util.Collections.unmodifiableList(eventType_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.eventType_ = eventType_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.NotificationConfig.Filter) { - return mergeFrom((com.google.container.v1beta1.NotificationConfig.Filter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.NotificationConfig.Filter other) { - if (other == com.google.container.v1beta1.NotificationConfig.Filter.getDefaultInstance()) return this; - if (!other.eventType_.isEmpty()) { - if (eventType_.isEmpty()) { - eventType_ = other.eventType_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEventTypeIsMutable(); - eventType_.addAll(other.eventType_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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; - } - - } - - public static final int PUBSUB_FIELD_NUMBER = 1; - private com.google.container.v1beta1.NotificationConfig.PubSub pubsub_; - /** - *
-   * Notification config for Pub/Sub.
-   * 
- * - * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; - * @return Whether the pubsub field is set. - */ - @java.lang.Override - public boolean hasPubsub() { - return pubsub_ != null; - } - /** - *
-   * Notification config for Pub/Sub.
-   * 
- * - * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; - * @return The pubsub. - */ - @java.lang.Override - public com.google.container.v1beta1.NotificationConfig.PubSub getPubsub() { - return pubsub_ == null ? com.google.container.v1beta1.NotificationConfig.PubSub.getDefaultInstance() : pubsub_; - } - /** - *
-   * Notification config for Pub/Sub.
-   * 
- * - * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; - */ - @java.lang.Override - public com.google.container.v1beta1.NotificationConfig.PubSubOrBuilder getPubsubOrBuilder() { - return getPubsub(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (pubsub_ != null) { - output.writeMessage(1, getPubsub()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (pubsub_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPubsub()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (pubsubBuilder_ == null) { - pubsub_ = null; - } else { - pubsub_ = null; - pubsubBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NotificationConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.NotificationConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.NotificationConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.NotificationConfig build() { - com.google.container.v1beta1.NotificationConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.NotificationConfig buildPartial() { - com.google.container.v1beta1.NotificationConfig result = new com.google.container.v1beta1.NotificationConfig(this); - if (pubsubBuilder_ == null) { - result.pubsub_ = pubsub_; - } else { - result.pubsub_ = pubsubBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.NotificationConfig) { - return mergeFrom((com.google.container.v1beta1.NotificationConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.NotificationConfig other) { - if (other == com.google.container.v1beta1.NotificationConfig.getDefaultInstance()) return this; - if (other.hasPubsub()) { - mergePubsub(other.getPubsub()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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); - - 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 com.google.container.v1beta1.NotificationConfig.PubSub pubsub_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NotificationConfig.PubSub, com.google.container.v1beta1.NotificationConfig.PubSub.Builder, com.google.container.v1beta1.NotificationConfig.PubSubOrBuilder> pubsubBuilder_; - /** - *
-     * Notification config for Pub/Sub.
-     * 
- * - * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; - * @return Whether the pubsub field is set. - */ - public boolean hasPubsub() { - return pubsubBuilder_ != null || pubsub_ != null; - } - /** - *
-     * Notification config for Pub/Sub.
-     * 
- * - * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; - * @return The pubsub. - */ - public com.google.container.v1beta1.NotificationConfig.PubSub getPubsub() { - if (pubsubBuilder_ == null) { - return pubsub_ == null ? com.google.container.v1beta1.NotificationConfig.PubSub.getDefaultInstance() : pubsub_; - } else { - return pubsubBuilder_.getMessage(); - } - } - /** - *
-     * Notification config for Pub/Sub.
-     * 
- * - * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; - */ - public Builder setPubsub(com.google.container.v1beta1.NotificationConfig.PubSub value) { - if (pubsubBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pubsub_ = value; - onChanged(); - } else { - pubsubBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Notification config for Pub/Sub.
-     * 
- * - * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; - */ - public Builder setPubsub( - com.google.container.v1beta1.NotificationConfig.PubSub.Builder builderForValue) { - if (pubsubBuilder_ == null) { - pubsub_ = builderForValue.build(); - onChanged(); - } else { - pubsubBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Notification config for Pub/Sub.
-     * 
- * - * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; - */ - public Builder mergePubsub(com.google.container.v1beta1.NotificationConfig.PubSub value) { - if (pubsubBuilder_ == null) { - if (pubsub_ != null) { - pubsub_ = - com.google.container.v1beta1.NotificationConfig.PubSub.newBuilder(pubsub_).mergeFrom(value).buildPartial(); - } else { - pubsub_ = value; - } - onChanged(); - } else { - pubsubBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Notification config for Pub/Sub.
-     * 
- * - * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; - */ - public Builder clearPubsub() { - if (pubsubBuilder_ == null) { - pubsub_ = null; - onChanged(); - } else { - pubsub_ = null; - pubsubBuilder_ = null; - } - - return this; - } - /** - *
-     * Notification config for Pub/Sub.
-     * 
- * - * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; - */ - public com.google.container.v1beta1.NotificationConfig.PubSub.Builder getPubsubBuilder() { - - onChanged(); - return getPubsubFieldBuilder().getBuilder(); - } - /** - *
-     * Notification config for Pub/Sub.
-     * 
- * - * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; - */ - public com.google.container.v1beta1.NotificationConfig.PubSubOrBuilder getPubsubOrBuilder() { - if (pubsubBuilder_ != null) { - return pubsubBuilder_.getMessageOrBuilder(); - } else { - return pubsub_ == null ? - com.google.container.v1beta1.NotificationConfig.PubSub.getDefaultInstance() : pubsub_; - } - } - /** - *
-     * Notification config for Pub/Sub.
-     * 
- * - * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NotificationConfig.PubSub, com.google.container.v1beta1.NotificationConfig.PubSub.Builder, com.google.container.v1beta1.NotificationConfig.PubSubOrBuilder> - getPubsubFieldBuilder() { - if (pubsubBuilder_ == null) { - pubsubBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NotificationConfig.PubSub, com.google.container.v1beta1.NotificationConfig.PubSub.Builder, com.google.container.v1beta1.NotificationConfig.PubSubOrBuilder>( - getPubsub(), - getParentForChildren(), - isClean()); - pubsub_ = null; - } - return pubsubBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.NotificationConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.NotificationConfig) - private static final com.google.container.v1beta1.NotificationConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.NotificationConfig(); - } - - public static com.google.container.v1beta1.NotificationConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NotificationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 79525d8c78b9..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NotificationConfigOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface NotificationConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NotificationConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Notification config for Pub/Sub.
-   * 
- * - * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; - * @return Whether the pubsub field is set. - */ - boolean hasPubsub(); - /** - *
-   * Notification config for Pub/Sub.
-   * 
- * - * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; - * @return The pubsub. - */ - com.google.container.v1beta1.NotificationConfig.PubSub getPubsub(); - /** - *
-   * Notification config for Pub/Sub.
-   * 
- * - * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; - */ - com.google.container.v1beta1.NotificationConfig.PubSubOrBuilder getPubsubOrBuilder(); -} diff --git a/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 deleted file mode 100644 index c92bd3c1ec16..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Operation.java +++ /dev/null @@ -1,4185 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * This operation resource represents operations that may have happened or are
- * happening on the cluster. All fields are output only.
- * 
- * - * Protobuf type {@code google.container.v1beta1.Operation} - */ -public final class Operation extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.Operation) - OperationOrBuilder { -private static final long serialVersionUID = 0L; - // Use Operation.newBuilder() to construct. - private Operation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Operation() { - name_ = ""; - zone_ = ""; - operationType_ = 0; - status_ = 0; - detail_ = ""; - statusMessage_ = ""; - selfLink_ = ""; - targetLink_ = ""; - location_ = ""; - startTime_ = ""; - endTime_ = ""; - clusterConditions_ = java.util.Collections.emptyList(); - nodepoolConditions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Operation(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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.
-   * 
- * - * Protobuf enum {@code google.container.v1beta1.Operation.Type} - */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Not set.
-     * 
- * - * TYPE_UNSPECIFIED = 0; - */ - TYPE_UNSPECIFIED(0), - /** - *
-     * Cluster create.
-     * 
- * - * CREATE_CLUSTER = 1; - */ - CREATE_CLUSTER(1), - /** - *
-     * Cluster delete.
-     * 
- * - * DELETE_CLUSTER = 2; - */ - DELETE_CLUSTER(2), - /** - *
-     * A master upgrade.
-     * 
- * - * UPGRADE_MASTER = 3; - */ - UPGRADE_MASTER(3), - /** - *
-     * A node upgrade.
-     * 
- * - * UPGRADE_NODES = 4; - */ - UPGRADE_NODES(4), - /** - *
-     * Cluster repair.
-     * 
- * - * REPAIR_CLUSTER = 5; - */ - REPAIR_CLUSTER(5), - /** - *
-     * Cluster update.
-     * 
- * - * UPDATE_CLUSTER = 6; - */ - UPDATE_CLUSTER(6), - /** - *
-     * Node pool create.
-     * 
- * - * CREATE_NODE_POOL = 7; - */ - CREATE_NODE_POOL(7), - /** - *
-     * Node pool delete.
-     * 
- * - * DELETE_NODE_POOL = 8; - */ - DELETE_NODE_POOL(8), - /** - *
-     * Set node pool management.
-     * 
- * - * SET_NODE_POOL_MANAGEMENT = 9; - */ - SET_NODE_POOL_MANAGEMENT(9), - /** - *
-     * Automatic node pool repair.
-     * 
- * - * AUTO_REPAIR_NODES = 10; - */ - AUTO_REPAIR_NODES(10), - /** - *
-     * Automatic node upgrade.
-     * 
- * - * AUTO_UPGRADE_NODES = 11; - */ - AUTO_UPGRADE_NODES(11), - /** - *
-     * Set labels.
-     * 
- * - * SET_LABELS = 12; - */ - SET_LABELS(12), - /** - *
-     * Set/generate master auth materials
-     * 
- * - * SET_MASTER_AUTH = 13; - */ - SET_MASTER_AUTH(13), - /** - *
-     * Set node pool size.
-     * 
- * - * SET_NODE_POOL_SIZE = 14; - */ - SET_NODE_POOL_SIZE(14), - /** - *
-     * Updates network policy for a cluster.
-     * 
- * - * SET_NETWORK_POLICY = 15; - */ - SET_NETWORK_POLICY(15), - /** - *
-     * Set the maintenance policy.
-     * 
- * - * SET_MAINTENANCE_POLICY = 16; - */ - SET_MAINTENANCE_POLICY(16), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Not set.
-     * 
- * - * TYPE_UNSPECIFIED = 0; - */ - public static final int TYPE_UNSPECIFIED_VALUE = 0; - /** - *
-     * Cluster create.
-     * 
- * - * CREATE_CLUSTER = 1; - */ - public static final int CREATE_CLUSTER_VALUE = 1; - /** - *
-     * Cluster delete.
-     * 
- * - * DELETE_CLUSTER = 2; - */ - public static final int DELETE_CLUSTER_VALUE = 2; - /** - *
-     * A master upgrade.
-     * 
- * - * UPGRADE_MASTER = 3; - */ - public static final int UPGRADE_MASTER_VALUE = 3; - /** - *
-     * A node upgrade.
-     * 
- * - * UPGRADE_NODES = 4; - */ - public static final int UPGRADE_NODES_VALUE = 4; - /** - *
-     * Cluster repair.
-     * 
- * - * REPAIR_CLUSTER = 5; - */ - public static final int REPAIR_CLUSTER_VALUE = 5; - /** - *
-     * Cluster update.
-     * 
- * - * UPDATE_CLUSTER = 6; - */ - public static final int UPDATE_CLUSTER_VALUE = 6; - /** - *
-     * Node pool create.
-     * 
- * - * CREATE_NODE_POOL = 7; - */ - public static final int CREATE_NODE_POOL_VALUE = 7; - /** - *
-     * Node pool delete.
-     * 
- * - * DELETE_NODE_POOL = 8; - */ - public static final int DELETE_NODE_POOL_VALUE = 8; - /** - *
-     * Set node pool management.
-     * 
- * - * SET_NODE_POOL_MANAGEMENT = 9; - */ - public static final int SET_NODE_POOL_MANAGEMENT_VALUE = 9; - /** - *
-     * Automatic node pool repair.
-     * 
- * - * AUTO_REPAIR_NODES = 10; - */ - public static final int AUTO_REPAIR_NODES_VALUE = 10; - /** - *
-     * Automatic node upgrade.
-     * 
- * - * AUTO_UPGRADE_NODES = 11; - */ - public static final int AUTO_UPGRADE_NODES_VALUE = 11; - /** - *
-     * Set labels.
-     * 
- * - * SET_LABELS = 12; - */ - public static final int SET_LABELS_VALUE = 12; - /** - *
-     * Set/generate master auth materials
-     * 
- * - * SET_MASTER_AUTH = 13; - */ - public static final int SET_MASTER_AUTH_VALUE = 13; - /** - *
-     * Set node pool size.
-     * 
- * - * SET_NODE_POOL_SIZE = 14; - */ - public static final int SET_NODE_POOL_SIZE_VALUE = 14; - /** - *
-     * Updates network policy for a cluster.
-     * 
- * - * SET_NETWORK_POLICY = 15; - */ - public static final int SET_NETWORK_POLICY_VALUE = 15; - /** - *
-     * Set the maintenance policy.
-     * 
- * - * SET_MAINTENANCE_POLICY = 16; - */ - public static final int SET_MAINTENANCE_POLICY_VALUE = 16; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Type valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Type forNumber(int value) { - switch (value) { - case 0: return TYPE_UNSPECIFIED; - case 1: return CREATE_CLUSTER; - case 2: return DELETE_CLUSTER; - case 3: return UPGRADE_MASTER; - case 4: return UPGRADE_NODES; - case 5: return REPAIR_CLUSTER; - case 6: return UPDATE_CLUSTER; - case 7: return CREATE_NODE_POOL; - case 8: return DELETE_NODE_POOL; - case 9: return SET_NODE_POOL_MANAGEMENT; - case 10: return AUTO_REPAIR_NODES; - case 11: return AUTO_UPGRADE_NODES; - case 12: return SET_LABELS; - case 13: return SET_MASTER_AUTH; - case 14: return SET_NODE_POOL_SIZE; - case 15: return SET_NETWORK_POLICY; - case 16: return SET_MAINTENANCE_POLICY; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - 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) - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-   * The server-assigned ID for the operation.
-   * 
- * - * string name = 1; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The server-assigned ID for the operation.
-   * 
- * - * string name = 1; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * operation is taking place. This field is deprecated, use location instead.
-   * 
- * - * string zone = 2 [deprecated = true]; - * @deprecated google.container.v1beta1.Operation.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2262 - * @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=2262 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OPERATION_TYPE_FIELD_NUMBER = 3; - private int operationType_; - /** - *
-   * The operation type.
-   * 
- * - * .google.container.v1beta1.Operation.Type operation_type = 3; - * @return The enum numeric value on the wire for operationType. - */ - @java.lang.Override public int getOperationTypeValue() { - return operationType_; - } - /** - *
-   * The operation type.
-   * 
- * - * .google.container.v1beta1.Operation.Type operation_type = 3; - * @return The operationType. - */ - @java.lang.Override public com.google.container.v1beta1.Operation.Type getOperationType() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.Operation.Type result = com.google.container.v1beta1.Operation.Type.valueOf(operationType_); - return result == null ? com.google.container.v1beta1.Operation.Type.UNRECOGNIZED : result; - } - - public static final int STATUS_FIELD_NUMBER = 4; - private int status_; - /** - *
-   * The current status of the operation.
-   * 
- * - * .google.container.v1beta1.Operation.Status status = 4; - * @return The enum numeric value on the wire for status. - */ - @java.lang.Override public int getStatusValue() { - return status_; - } - /** - *
-   * The current status of the operation.
-   * 
- * - * .google.container.v1beta1.Operation.Status status = 4; - * @return The status. - */ - @java.lang.Override public com.google.container.v1beta1.Operation.Status getStatus() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.Operation.Status result = com.google.container.v1beta1.Operation.Status.valueOf(status_); - return result == null ? com.google.container.v1beta1.Operation.Status.UNRECOGNIZED : result; - } - - public static final int DETAIL_FIELD_NUMBER = 8; - private volatile java.lang.Object detail_; - /** - *
-   * Detailed operation progress, if available.
-   * 
- * - * string detail = 8; - * @return The detail. - */ - @java.lang.Override - public java.lang.String getDetail() { - java.lang.Object ref = detail_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - detail_ = s; - return s; - } - } - /** - *
-   * Detailed operation progress, if available.
-   * 
- * - * string detail = 8; - * @return The bytes for detail. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDetailBytes() { - java.lang.Object ref = detail_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - detail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; - private volatile java.lang.Object statusMessage_; - /** - *
-   * Output only. If an error has occurred, a textual description of the error.
-   * Deprecated. Use field error instead.
-   * 
- * - * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @deprecated google.container.v1beta1.Operation.status_message is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2275 - * @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=2275 - * @return The bytes for statusMessage. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getStatusMessageBytes() { - java.lang.Object ref = statusMessage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - statusMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SELF_LINK_FIELD_NUMBER = 6; - private volatile java.lang.Object selfLink_; - /** - *
-   * Server-defined URL for the resource.
-   * 
- * - * string self_link = 6; - * @return The selfLink. - */ - @java.lang.Override - public java.lang.String getSelfLink() { - java.lang.Object ref = selfLink_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - selfLink_ = s; - return s; - } - } - /** - *
-   * Server-defined URL for the resource.
-   * 
- * - * string self_link = 6; - * @return The bytes for selfLink. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSelfLinkBytes() { - java.lang.Object ref = selfLink_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - selfLink_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TARGET_LINK_FIELD_NUMBER = 7; - private volatile java.lang.Object targetLink_; - /** - *
-   * Server-defined URL for the target of the operation.
-   * 
- * - * string target_link = 7; - * @return The targetLink. - */ - @java.lang.Override - public java.lang.String getTargetLink() { - java.lang.Object ref = targetLink_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetLink_ = s; - return s; - } - } - /** - *
-   * Server-defined URL for the target of the operation.
-   * 
- * - * string target_link = 7; - * @return The bytes for targetLink. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTargetLinkBytes() { - java.lang.Object ref = targetLink_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - targetLink_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOCATION_FIELD_NUMBER = 9; - private volatile java.lang.Object location_; - /** - *
-   * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * or
-   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * in which the cluster resides.
-   * 
- * - * string location = 9; - * @return The location. - */ - @java.lang.Override - public java.lang.String getLocation() { - java.lang.Object ref = location_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - location_ = s; - return s; - } - } - /** - *
-   * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * or
-   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * in which the cluster resides.
-   * 
- * - * string location = 9; - * @return The bytes for location. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getLocationBytes() { - java.lang.Object ref = location_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - location_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int START_TIME_FIELD_NUMBER = 10; - private volatile java.lang.Object startTime_; - /** - *
-   * [Output only] The time the operation started, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string start_time = 10; - * @return The startTime. - */ - @java.lang.Override - public java.lang.String getStartTime() { - java.lang.Object ref = startTime_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - startTime_ = s; - return s; - } - } - /** - *
-   * [Output only] The time the operation started, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string start_time = 10; - * @return The bytes for startTime. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getStartTimeBytes() { - java.lang.Object ref = startTime_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - startTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int END_TIME_FIELD_NUMBER = 11; - private volatile java.lang.Object endTime_; - /** - *
-   * [Output only] The time the operation completed, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string end_time = 11; - * @return The endTime. - */ - @java.lang.Override - public java.lang.String getEndTime() { - java.lang.Object ref = endTime_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - endTime_ = s; - return s; - } - } - /** - *
-   * [Output only] The time the operation completed, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string end_time = 11; - * @return The bytes for endTime. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getEndTimeBytes() { - java.lang.Object ref = endTime_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - endTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROGRESS_FIELD_NUMBER = 12; - private com.google.container.v1beta1.OperationProgress progress_; - /** - *
-   * Output only. [Output only] Progress information for an operation.
-   * 
- * - * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the progress field is set. - */ - @java.lang.Override - public boolean hasProgress() { - return progress_ != null; - } - /** - *
-   * Output only. [Output only] Progress information for an operation.
-   * 
- * - * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The progress. - */ - @java.lang.Override - public com.google.container.v1beta1.OperationProgress getProgress() { - return progress_ == null ? com.google.container.v1beta1.OperationProgress.getDefaultInstance() : progress_; - } - /** - *
-   * Output only. [Output only] Progress information for an operation.
-   * 
- * - * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.container.v1beta1.OperationProgressOrBuilder getProgressOrBuilder() { - return getProgress(); - } - - public static final int CLUSTER_CONDITIONS_FIELD_NUMBER = 13; - private java.util.List clusterConditions_; - /** - *
-   * Which conditions caused the current cluster state.
-   * Deprecated. Use field error instead.
-   * 
- * - * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; - */ - @java.lang.Override - @java.lang.Deprecated public java.util.List getClusterConditionsList() { - return clusterConditions_; - } - /** - *
-   * Which conditions caused the current cluster state.
-   * Deprecated. Use field error instead.
-   * 
- * - * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; - */ - @java.lang.Override - @java.lang.Deprecated public java.util.List - getClusterConditionsOrBuilderList() { - return clusterConditions_; - } - /** - *
-   * Which conditions caused the current cluster state.
-   * Deprecated. Use field error instead.
-   * 
- * - * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; - */ - @java.lang.Override - @java.lang.Deprecated public int getClusterConditionsCount() { - return clusterConditions_.size(); - } - /** - *
-   * Which conditions caused the current cluster state.
-   * Deprecated. Use field error instead.
-   * 
- * - * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; - */ - @java.lang.Override - @java.lang.Deprecated public com.google.container.v1beta1.StatusCondition getClusterConditions(int index) { - return clusterConditions_.get(index); - } - /** - *
-   * Which conditions caused the current cluster state.
-   * Deprecated. Use field error instead.
-   * 
- * - * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; - */ - @java.lang.Override - @java.lang.Deprecated public com.google.container.v1beta1.StatusConditionOrBuilder getClusterConditionsOrBuilder( - int index) { - return clusterConditions_.get(index); - } - - public static final int NODEPOOL_CONDITIONS_FIELD_NUMBER = 14; - private java.util.List nodepoolConditions_; - /** - *
-   * Which conditions caused the current node pool state.
-   * Deprecated. Use field error instead.
-   * 
- * - * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - */ - @java.lang.Override - @java.lang.Deprecated public java.util.List getNodepoolConditionsList() { - return nodepoolConditions_; - } - /** - *
-   * Which conditions caused the current node pool state.
-   * Deprecated. Use field error instead.
-   * 
- * - * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - */ - @java.lang.Override - @java.lang.Deprecated public java.util.List - getNodepoolConditionsOrBuilderList() { - return nodepoolConditions_; - } - /** - *
-   * Which conditions caused the current node pool state.
-   * Deprecated. Use field error instead.
-   * 
- * - * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - */ - @java.lang.Override - @java.lang.Deprecated public int getNodepoolConditionsCount() { - return nodepoolConditions_.size(); - } - /** - *
-   * Which conditions caused the current node pool state.
-   * Deprecated. Use field error instead.
-   * 
- * - * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - */ - @java.lang.Override - @java.lang.Deprecated public com.google.container.v1beta1.StatusCondition getNodepoolConditions(int index) { - return nodepoolConditions_.get(index); - } - /** - *
-   * Which conditions caused the current node pool state.
-   * Deprecated. Use field error instead.
-   * 
- * - * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - */ - @java.lang.Override - @java.lang.Deprecated public com.google.container.v1beta1.StatusConditionOrBuilder getNodepoolConditionsOrBuilder( - int index) { - return nodepoolConditions_.get(index); - } - - public static final int ERROR_FIELD_NUMBER = 15; - private com.google.rpc.Status error_; - /** - *
-   * The error result of the operation in case of failure.
-   * 
- * - * .google.rpc.Status error = 15; - * @return Whether the error field is set. - */ - @java.lang.Override - public boolean hasError() { - return error_ != null; - } - /** - *
-   * The error result of the operation in case of failure.
-   * 
- * - * .google.rpc.Status error = 15; - * @return The error. - */ - @java.lang.Override - public com.google.rpc.Status getError() { - return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; - } - /** - *
-   * The error result of the operation in case of failure.
-   * 
- * - * .google.rpc.Status error = 15; - */ - @java.lang.Override - public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { - return getError(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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 (progress_ != null) { - output.writeMessage(12, getProgress()); - } - for (int i = 0; i < clusterConditions_.size(); i++) { - output.writeMessage(13, clusterConditions_.get(i)); - } - for (int i = 0; i < nodepoolConditions_.size(); i++) { - output.writeMessage(14, nodepoolConditions_.get(i)); - } - if (error_ != null) { - output.writeMessage(15, getError()); - } - getUnknownFields().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 (progress_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getProgress()); - } - for (int i = 0; i < clusterConditions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, clusterConditions_.get(i)); - } - for (int i = 0; i < nodepoolConditions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, nodepoolConditions_.get(i)); - } - if (error_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, getError()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - zone_ = ""; - - operationType_ = 0; - - status_ = 0; - - detail_ = ""; - - statusMessage_ = ""; - - selfLink_ = ""; - - targetLink_ = ""; - - location_ = ""; - - startTime_ = ""; - - endTime_ = ""; - - if (progressBuilder_ == null) { - progress_ = null; - } else { - progress_ = null; - progressBuilder_ = null; - } - if (clusterConditionsBuilder_ == null) { - clusterConditions_ = java.util.Collections.emptyList(); - } else { - clusterConditions_ = null; - clusterConditionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (nodepoolConditionsBuilder_ == null) { - nodepoolConditions_ = java.util.Collections.emptyList(); - } else { - nodepoolConditions_ = null; - nodepoolConditionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - if (errorBuilder_ == null) { - error_ = null; - } else { - error_ = null; - errorBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Operation_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.Operation getDefaultInstanceForType() { - return com.google.container.v1beta1.Operation.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.Operation build() { - com.google.container.v1beta1.Operation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.Operation buildPartial() { - com.google.container.v1beta1.Operation result = new com.google.container.v1beta1.Operation(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.zone_ = zone_; - result.operationType_ = operationType_; - result.status_ = status_; - result.detail_ = detail_; - result.statusMessage_ = statusMessage_; - result.selfLink_ = selfLink_; - result.targetLink_ = targetLink_; - result.location_ = location_; - result.startTime_ = startTime_; - result.endTime_ = endTime_; - if (progressBuilder_ == null) { - result.progress_ = progress_; - } else { - result.progress_ = progressBuilder_.build(); - } - if (clusterConditionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - clusterConditions_ = java.util.Collections.unmodifiableList(clusterConditions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.clusterConditions_ = clusterConditions_; - } else { - result.clusterConditions_ = clusterConditionsBuilder_.build(); - } - if (nodepoolConditionsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - nodepoolConditions_ = java.util.Collections.unmodifiableList(nodepoolConditions_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.nodepoolConditions_ = nodepoolConditions_; - } else { - result.nodepoolConditions_ = nodepoolConditionsBuilder_.build(); - } - if (errorBuilder_ == null) { - result.error_ = error_; - } else { - result.error_ = errorBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.Operation) { - return mergeFrom((com.google.container.v1beta1.Operation)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.Operation other) { - if (other == com.google.container.v1beta1.Operation.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (other.operationType_ != 0) { - setOperationTypeValue(other.getOperationTypeValue()); - } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); - } - if (!other.getDetail().isEmpty()) { - detail_ = other.detail_; - onChanged(); - } - if (!other.getStatusMessage().isEmpty()) { - statusMessage_ = other.statusMessage_; - onChanged(); - } - if (!other.getSelfLink().isEmpty()) { - selfLink_ = other.selfLink_; - onChanged(); - } - if (!other.getTargetLink().isEmpty()) { - targetLink_ = other.targetLink_; - onChanged(); - } - if (!other.getLocation().isEmpty()) { - location_ = other.location_; - onChanged(); - } - if (!other.getStartTime().isEmpty()) { - startTime_ = other.startTime_; - onChanged(); - } - if (!other.getEndTime().isEmpty()) { - endTime_ = other.endTime_; - onChanged(); - } - if (other.hasProgress()) { - mergeProgress(other.getProgress()); - } - if (clusterConditionsBuilder_ == null) { - if (!other.clusterConditions_.isEmpty()) { - if (clusterConditions_.isEmpty()) { - clusterConditions_ = other.clusterConditions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureClusterConditionsIsMutable(); - clusterConditions_.addAll(other.clusterConditions_); - } - onChanged(); - } - } else { - if (!other.clusterConditions_.isEmpty()) { - if (clusterConditionsBuilder_.isEmpty()) { - clusterConditionsBuilder_.dispose(); - clusterConditionsBuilder_ = null; - clusterConditions_ = other.clusterConditions_; - bitField0_ = (bitField0_ & ~0x00000001); - clusterConditionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getClusterConditionsFieldBuilder() : null; - } else { - clusterConditionsBuilder_.addAllMessages(other.clusterConditions_); - } - } - } - if (nodepoolConditionsBuilder_ == null) { - if (!other.nodepoolConditions_.isEmpty()) { - if (nodepoolConditions_.isEmpty()) { - nodepoolConditions_ = other.nodepoolConditions_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureNodepoolConditionsIsMutable(); - nodepoolConditions_.addAll(other.nodepoolConditions_); - } - onChanged(); - } - } else { - if (!other.nodepoolConditions_.isEmpty()) { - if (nodepoolConditionsBuilder_.isEmpty()) { - nodepoolConditionsBuilder_.dispose(); - nodepoolConditionsBuilder_ = null; - nodepoolConditions_ = other.nodepoolConditions_; - bitField0_ = (bitField0_ & ~0x00000002); - nodepoolConditionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNodepoolConditionsFieldBuilder() : null; - } else { - nodepoolConditionsBuilder_.addAllMessages(other.nodepoolConditions_); - } - } - } - if (other.hasError()) { - mergeError(other.getError()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: { - operationType_ = input.readEnum(); - - break; - } // case 24 - case 32: { - status_ = input.readEnum(); - - break; - } // case 32 - case 42: { - statusMessage_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: { - selfLink_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 58: { - targetLink_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 66: { - detail_ = input.readStringRequireUtf8(); - - break; - } // case 66 - case 74: { - location_ = input.readStringRequireUtf8(); - - break; - } // case 74 - case 82: { - startTime_ = input.readStringRequireUtf8(); - - break; - } // case 82 - case 90: { - endTime_ = input.readStringRequireUtf8(); - - break; - } // case 90 - case 98: { - input.readMessage( - getProgressFieldBuilder().getBuilder(), - extensionRegistry); - - 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); - - 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; - onChanged(); - return this; - } - /** - *
-     * The server-assigned ID for the operation.
-     * 
- * - * string name = 1; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The server-assigned ID for the operation.
-     * 
- * - * string name = 1; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * operation is taking place. This field is deprecated, use location instead.
-     * 
- * - * string zone = 2 [deprecated = true]; - * @deprecated google.container.v1beta1.Operation.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2262 - * @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=2262 - * @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=2262 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * operation is taking place. This field is deprecated, use location instead.
-     * 
- * - * string zone = 2 [deprecated = true]; - * @deprecated google.container.v1beta1.Operation.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2262 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - *
-     * The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * operation is taking place. This field is deprecated, use location instead.
-     * 
- * - * string zone = 2 [deprecated = true]; - * @deprecated google.container.v1beta1.Operation.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2262 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private int operationType_ = 0; - /** - *
-     * The operation type.
-     * 
- * - * .google.container.v1beta1.Operation.Type operation_type = 3; - * @return The enum numeric value on the wire for operationType. - */ - @java.lang.Override public int getOperationTypeValue() { - return operationType_; - } - /** - *
-     * The operation type.
-     * 
- * - * .google.container.v1beta1.Operation.Type operation_type = 3; - * @param value The enum numeric value on the wire for operationType to set. - * @return This builder for chaining. - */ - public Builder setOperationTypeValue(int value) { - - operationType_ = value; - onChanged(); - return this; - } - /** - *
-     * The operation type.
-     * 
- * - * .google.container.v1beta1.Operation.Type operation_type = 3; - * @return The operationType. - */ - @java.lang.Override - public com.google.container.v1beta1.Operation.Type getOperationType() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.Operation.Type result = com.google.container.v1beta1.Operation.Type.valueOf(operationType_); - return result == null ? com.google.container.v1beta1.Operation.Type.UNRECOGNIZED : result; - } - /** - *
-     * The operation type.
-     * 
- * - * .google.container.v1beta1.Operation.Type operation_type = 3; - * @param value The operationType to set. - * @return This builder for chaining. - */ - public Builder setOperationType(com.google.container.v1beta1.Operation.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - operationType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * The operation type.
-     * 
- * - * .google.container.v1beta1.Operation.Type operation_type = 3; - * @return This builder for chaining. - */ - public Builder clearOperationType() { - - operationType_ = 0; - onChanged(); - return this; - } - - private int status_ = 0; - /** - *
-     * The current status of the operation.
-     * 
- * - * .google.container.v1beta1.Operation.Status status = 4; - * @return The enum numeric value on the wire for status. - */ - @java.lang.Override public int getStatusValue() { - return status_; - } - /** - *
-     * The current status of the operation.
-     * 
- * - * .google.container.v1beta1.Operation.Status status = 4; - * @param value The enum numeric value on the wire for status to set. - * @return This builder for chaining. - */ - public Builder setStatusValue(int value) { - - status_ = value; - onChanged(); - return this; - } - /** - *
-     * The current status of the operation.
-     * 
- * - * .google.container.v1beta1.Operation.Status status = 4; - * @return The status. - */ - @java.lang.Override - public com.google.container.v1beta1.Operation.Status getStatus() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.Operation.Status result = com.google.container.v1beta1.Operation.Status.valueOf(status_); - return result == null ? com.google.container.v1beta1.Operation.Status.UNRECOGNIZED : result; - } - /** - *
-     * The current status of the operation.
-     * 
- * - * .google.container.v1beta1.Operation.Status status = 4; - * @param value The status to set. - * @return This builder for chaining. - */ - public Builder setStatus(com.google.container.v1beta1.Operation.Status value) { - if (value == null) { - throw new NullPointerException(); - } - - status_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * The current status of the operation.
-     * 
- * - * .google.container.v1beta1.Operation.Status status = 4; - * @return This builder for chaining. - */ - public Builder clearStatus() { - - status_ = 0; - onChanged(); - return this; - } - - private java.lang.Object detail_ = ""; - /** - *
-     * Detailed operation progress, if available.
-     * 
- * - * string detail = 8; - * @return The detail. - */ - public java.lang.String getDetail() { - java.lang.Object ref = detail_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - detail_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Detailed operation progress, if available.
-     * 
- * - * string detail = 8; - * @return The bytes for detail. - */ - public com.google.protobuf.ByteString - getDetailBytes() { - java.lang.Object ref = detail_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - detail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Detailed operation progress, if available.
-     * 
- * - * string detail = 8; - * @param value The detail to set. - * @return This builder for chaining. - */ - public Builder setDetail( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - detail_ = value; - onChanged(); - return this; - } - /** - *
-     * Detailed operation progress, if available.
-     * 
- * - * string detail = 8; - * @return This builder for chaining. - */ - public Builder clearDetail() { - - detail_ = getDefaultInstance().getDetail(); - onChanged(); - return this; - } - /** - *
-     * Detailed operation progress, if available.
-     * 
- * - * string detail = 8; - * @param value The bytes for detail to set. - * @return This builder for chaining. - */ - public Builder setDetailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - detail_ = value; - onChanged(); - return this; - } - - private java.lang.Object statusMessage_ = ""; - /** - *
-     * Output only. If an error has occurred, a textual description of the error.
-     * Deprecated. Use field error instead.
-     * 
- * - * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @deprecated google.container.v1beta1.Operation.status_message is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2275 - * @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=2275 - * @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=2275 - * @param value The statusMessage to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setStatusMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - statusMessage_ = value; - onChanged(); - return this; - } - /** - *
-     * Output only. If an error has occurred, a textual description of the error.
-     * Deprecated. Use field error instead.
-     * 
- * - * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @deprecated google.container.v1beta1.Operation.status_message is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2275 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearStatusMessage() { - - statusMessage_ = getDefaultInstance().getStatusMessage(); - onChanged(); - return this; - } - /** - *
-     * Output only. If an error has occurred, a textual description of the error.
-     * Deprecated. Use field error instead.
-     * 
- * - * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @deprecated google.container.v1beta1.Operation.status_message is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2275 - * @param value The bytes for statusMessage to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setStatusMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - statusMessage_ = value; - onChanged(); - return this; - } - - private java.lang.Object selfLink_ = ""; - /** - *
-     * Server-defined URL for the resource.
-     * 
- * - * string self_link = 6; - * @return The selfLink. - */ - public java.lang.String getSelfLink() { - java.lang.Object ref = selfLink_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - selfLink_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Server-defined URL for the resource.
-     * 
- * - * string self_link = 6; - * @return The bytes for selfLink. - */ - public com.google.protobuf.ByteString - getSelfLinkBytes() { - java.lang.Object ref = selfLink_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - selfLink_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Server-defined URL for the resource.
-     * 
- * - * string self_link = 6; - * @param value The selfLink to set. - * @return This builder for chaining. - */ - public Builder setSelfLink( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - selfLink_ = value; - onChanged(); - return this; - } - /** - *
-     * Server-defined URL for the resource.
-     * 
- * - * string self_link = 6; - * @return This builder for chaining. - */ - public Builder clearSelfLink() { - - selfLink_ = getDefaultInstance().getSelfLink(); - onChanged(); - return this; - } - /** - *
-     * Server-defined URL for the resource.
-     * 
- * - * string self_link = 6; - * @param value The bytes for selfLink to set. - * @return This builder for chaining. - */ - public Builder setSelfLinkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - selfLink_ = value; - onChanged(); - return this; - } - - private java.lang.Object targetLink_ = ""; - /** - *
-     * Server-defined URL for the target of the operation.
-     * 
- * - * string target_link = 7; - * @return The targetLink. - */ - public java.lang.String getTargetLink() { - java.lang.Object ref = targetLink_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetLink_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Server-defined URL for the target of the operation.
-     * 
- * - * string target_link = 7; - * @return The bytes for targetLink. - */ - public com.google.protobuf.ByteString - getTargetLinkBytes() { - java.lang.Object ref = targetLink_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - targetLink_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Server-defined URL for the target of the operation.
-     * 
- * - * string target_link = 7; - * @param value The targetLink to set. - * @return This builder for chaining. - */ - public Builder setTargetLink( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - targetLink_ = value; - onChanged(); - return this; - } - /** - *
-     * Server-defined URL for the target of the operation.
-     * 
- * - * string target_link = 7; - * @return This builder for chaining. - */ - public Builder clearTargetLink() { - - targetLink_ = getDefaultInstance().getTargetLink(); - onChanged(); - return this; - } - /** - *
-     * Server-defined URL for the target of the operation.
-     * 
- * - * string target_link = 7; - * @param value The bytes for targetLink to set. - * @return This builder for chaining. - */ - public Builder setTargetLinkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - targetLink_ = value; - onChanged(); - return this; - } - - private java.lang.Object location_ = ""; - /** - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * in which the cluster resides.
-     * 
- * - * string location = 9; - * @return The location. - */ - public java.lang.String getLocation() { - java.lang.Object ref = location_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - location_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * in which the cluster resides.
-     * 
- * - * string location = 9; - * @return The bytes for location. - */ - public com.google.protobuf.ByteString - getLocationBytes() { - java.lang.Object ref = location_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - location_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * in which the cluster resides.
-     * 
- * - * string location = 9; - * @param value The location to set. - * @return This builder for chaining. - */ - public Builder setLocation( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - location_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * in which the cluster resides.
-     * 
- * - * string location = 9; - * @return This builder for chaining. - */ - public Builder clearLocation() { - - location_ = getDefaultInstance().getLocation(); - onChanged(); - return this; - } - /** - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * in which the cluster resides.
-     * 
- * - * string location = 9; - * @param value The bytes for location to set. - * @return This builder for chaining. - */ - public Builder setLocationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - location_ = value; - onChanged(); - return this; - } - - private java.lang.Object startTime_ = ""; - /** - *
-     * [Output only] The time the operation started, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string start_time = 10; - * @return The startTime. - */ - public java.lang.String getStartTime() { - java.lang.Object ref = startTime_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - startTime_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * [Output only] The time the operation started, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string start_time = 10; - * @return The bytes for startTime. - */ - public com.google.protobuf.ByteString - getStartTimeBytes() { - java.lang.Object ref = startTime_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - startTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * [Output only] The time the operation started, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string start_time = 10; - * @param value The startTime to set. - * @return This builder for chaining. - */ - public Builder setStartTime( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - startTime_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] The time the operation started, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string start_time = 10; - * @return This builder for chaining. - */ - public Builder clearStartTime() { - - startTime_ = getDefaultInstance().getStartTime(); - onChanged(); - return this; - } - /** - *
-     * [Output only] The time the operation started, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string start_time = 10; - * @param value The bytes for startTime to set. - * @return This builder for chaining. - */ - public Builder setStartTimeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - startTime_ = value; - onChanged(); - return this; - } - - private java.lang.Object endTime_ = ""; - /** - *
-     * [Output only] The time the operation completed, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string end_time = 11; - * @return The endTime. - */ - public java.lang.String getEndTime() { - java.lang.Object ref = endTime_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - endTime_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * [Output only] The time the operation completed, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string end_time = 11; - * @return The bytes for endTime. - */ - public com.google.protobuf.ByteString - getEndTimeBytes() { - java.lang.Object ref = endTime_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - endTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * [Output only] The time the operation completed, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string end_time = 11; - * @param value The endTime to set. - * @return This builder for chaining. - */ - public Builder setEndTime( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - endTime_ = value; - onChanged(); - return this; - } - /** - *
-     * [Output only] The time the operation completed, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string end_time = 11; - * @return This builder for chaining. - */ - public Builder clearEndTime() { - - endTime_ = getDefaultInstance().getEndTime(); - onChanged(); - return this; - } - /** - *
-     * [Output only] The time the operation completed, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string end_time = 11; - * @param value The bytes for endTime to set. - * @return This builder for chaining. - */ - public Builder setEndTimeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - endTime_ = value; - onChanged(); - return this; - } - - private com.google.container.v1beta1.OperationProgress progress_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.OperationProgress, com.google.container.v1beta1.OperationProgress.Builder, com.google.container.v1beta1.OperationProgressOrBuilder> progressBuilder_; - /** - *
-     * Output only. [Output only] Progress information for an operation.
-     * 
- * - * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the progress field is set. - */ - public boolean hasProgress() { - return progressBuilder_ != null || progress_ != null; - } - /** - *
-     * Output only. [Output only] Progress information for an operation.
-     * 
- * - * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The progress. - */ - public com.google.container.v1beta1.OperationProgress getProgress() { - if (progressBuilder_ == null) { - return progress_ == null ? com.google.container.v1beta1.OperationProgress.getDefaultInstance() : progress_; - } else { - return progressBuilder_.getMessage(); - } - } - /** - *
-     * Output only. [Output only] Progress information for an operation.
-     * 
- * - * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setProgress(com.google.container.v1beta1.OperationProgress value) { - if (progressBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - progress_ = value; - onChanged(); - } else { - progressBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Output only. [Output only] Progress information for an operation.
-     * 
- * - * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setProgress( - com.google.container.v1beta1.OperationProgress.Builder builderForValue) { - if (progressBuilder_ == null) { - progress_ = builderForValue.build(); - onChanged(); - } else { - progressBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Output only. [Output only] Progress information for an operation.
-     * 
- * - * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeProgress(com.google.container.v1beta1.OperationProgress value) { - if (progressBuilder_ == null) { - if (progress_ != null) { - progress_ = - com.google.container.v1beta1.OperationProgress.newBuilder(progress_).mergeFrom(value).buildPartial(); - } else { - progress_ = value; - } - onChanged(); - } else { - progressBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Output only. [Output only] Progress information for an operation.
-     * 
- * - * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearProgress() { - if (progressBuilder_ == null) { - progress_ = null; - onChanged(); - } else { - progress_ = null; - progressBuilder_ = null; - } - - return this; - } - /** - *
-     * Output only. [Output only] Progress information for an operation.
-     * 
- * - * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.container.v1beta1.OperationProgress.Builder getProgressBuilder() { - - onChanged(); - return getProgressFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. [Output only] Progress information for an operation.
-     * 
- * - * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.container.v1beta1.OperationProgressOrBuilder getProgressOrBuilder() { - if (progressBuilder_ != null) { - return progressBuilder_.getMessageOrBuilder(); - } else { - return progress_ == null ? - com.google.container.v1beta1.OperationProgress.getDefaultInstance() : progress_; - } - } - /** - *
-     * Output only. [Output only] Progress information for an operation.
-     * 
- * - * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.OperationProgress, com.google.container.v1beta1.OperationProgress.Builder, com.google.container.v1beta1.OperationProgressOrBuilder> - getProgressFieldBuilder() { - if (progressBuilder_ == null) { - progressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.OperationProgress, com.google.container.v1beta1.OperationProgress.Builder, com.google.container.v1beta1.OperationProgressOrBuilder>( - getProgress(), - getParentForChildren(), - isClean()); - progress_ = null; - } - return progressBuilder_; - } - - private java.util.List clusterConditions_ = - java.util.Collections.emptyList(); - private void ensureClusterConditionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - clusterConditions_ = new java.util.ArrayList(clusterConditions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.StatusCondition, com.google.container.v1beta1.StatusCondition.Builder, com.google.container.v1beta1.StatusConditionOrBuilder> clusterConditionsBuilder_; - - /** - *
-     * Which conditions caused the current cluster state.
-     * Deprecated. Use field error instead.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; - */ - @java.lang.Deprecated public java.util.List getClusterConditionsList() { - if (clusterConditionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(clusterConditions_); - } else { - return clusterConditionsBuilder_.getMessageList(); - } - } - /** - *
-     * Which conditions caused the current cluster state.
-     * Deprecated. Use field error instead.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; - */ - @java.lang.Deprecated public int getClusterConditionsCount() { - if (clusterConditionsBuilder_ == null) { - return clusterConditions_.size(); - } else { - return clusterConditionsBuilder_.getCount(); - } - } - /** - *
-     * Which conditions caused the current cluster state.
-     * Deprecated. Use field error instead.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.container.v1beta1.StatusCondition getClusterConditions(int index) { - if (clusterConditionsBuilder_ == null) { - return clusterConditions_.get(index); - } else { - return clusterConditionsBuilder_.getMessage(index); - } - } - /** - *
-     * Which conditions caused the current cluster state.
-     * Deprecated. Use field error instead.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setClusterConditions( - int index, com.google.container.v1beta1.StatusCondition value) { - if (clusterConditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClusterConditionsIsMutable(); - clusterConditions_.set(index, value); - onChanged(); - } else { - clusterConditionsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Which conditions caused the current cluster state.
-     * Deprecated. Use field error instead.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setClusterConditions( - int index, com.google.container.v1beta1.StatusCondition.Builder builderForValue) { - if (clusterConditionsBuilder_ == null) { - ensureClusterConditionsIsMutable(); - clusterConditions_.set(index, builderForValue.build()); - onChanged(); - } else { - clusterConditionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Which conditions caused the current cluster state.
-     * Deprecated. Use field error instead.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; - */ - @java.lang.Deprecated public Builder addClusterConditions(com.google.container.v1beta1.StatusCondition value) { - if (clusterConditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClusterConditionsIsMutable(); - clusterConditions_.add(value); - onChanged(); - } else { - clusterConditionsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Which conditions caused the current cluster state.
-     * Deprecated. Use field error instead.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; - */ - @java.lang.Deprecated public Builder addClusterConditions( - int index, com.google.container.v1beta1.StatusCondition value) { - if (clusterConditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClusterConditionsIsMutable(); - clusterConditions_.add(index, value); - onChanged(); - } else { - clusterConditionsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Which conditions caused the current cluster state.
-     * Deprecated. Use field error instead.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; - */ - @java.lang.Deprecated public Builder addClusterConditions( - com.google.container.v1beta1.StatusCondition.Builder builderForValue) { - if (clusterConditionsBuilder_ == null) { - ensureClusterConditionsIsMutable(); - clusterConditions_.add(builderForValue.build()); - onChanged(); - } else { - clusterConditionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Which conditions caused the current cluster state.
-     * Deprecated. Use field error instead.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; - */ - @java.lang.Deprecated public Builder addClusterConditions( - int index, com.google.container.v1beta1.StatusCondition.Builder builderForValue) { - if (clusterConditionsBuilder_ == null) { - ensureClusterConditionsIsMutable(); - clusterConditions_.add(index, builderForValue.build()); - onChanged(); - } else { - clusterConditionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Which conditions caused the current cluster state.
-     * Deprecated. Use field error instead.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; - */ - @java.lang.Deprecated public Builder addAllClusterConditions( - java.lang.Iterable values) { - if (clusterConditionsBuilder_ == null) { - ensureClusterConditionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, clusterConditions_); - onChanged(); - } else { - clusterConditionsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Which conditions caused the current cluster state.
-     * Deprecated. Use field error instead.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearClusterConditions() { - if (clusterConditionsBuilder_ == null) { - clusterConditions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - clusterConditionsBuilder_.clear(); - } - return this; - } - /** - *
-     * Which conditions caused the current cluster state.
-     * Deprecated. Use field error instead.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; - */ - @java.lang.Deprecated public Builder removeClusterConditions(int index) { - if (clusterConditionsBuilder_ == null) { - ensureClusterConditionsIsMutable(); - clusterConditions_.remove(index); - onChanged(); - } else { - clusterConditionsBuilder_.remove(index); - } - return this; - } - /** - *
-     * Which conditions caused the current cluster state.
-     * Deprecated. Use field error instead.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.container.v1beta1.StatusCondition.Builder getClusterConditionsBuilder( - int index) { - return getClusterConditionsFieldBuilder().getBuilder(index); - } - /** - *
-     * Which conditions caused the current cluster state.
-     * Deprecated. Use field error instead.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.container.v1beta1.StatusConditionOrBuilder getClusterConditionsOrBuilder( - int index) { - if (clusterConditionsBuilder_ == null) { - return clusterConditions_.get(index); } else { - return clusterConditionsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Which conditions caused the current cluster state.
-     * Deprecated. Use field error instead.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; - */ - @java.lang.Deprecated public java.util.List - getClusterConditionsOrBuilderList() { - if (clusterConditionsBuilder_ != null) { - return clusterConditionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(clusterConditions_); - } - } - /** - *
-     * Which conditions caused the current cluster state.
-     * Deprecated. Use field error instead.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.container.v1beta1.StatusCondition.Builder addClusterConditionsBuilder() { - return getClusterConditionsFieldBuilder().addBuilder( - com.google.container.v1beta1.StatusCondition.getDefaultInstance()); - } - /** - *
-     * Which conditions caused the current cluster state.
-     * Deprecated. Use field error instead.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.container.v1beta1.StatusCondition.Builder addClusterConditionsBuilder( - int index) { - return getClusterConditionsFieldBuilder().addBuilder( - index, com.google.container.v1beta1.StatusCondition.getDefaultInstance()); - } - /** - *
-     * Which conditions caused the current cluster state.
-     * Deprecated. Use field error instead.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; - */ - @java.lang.Deprecated public java.util.List - getClusterConditionsBuilderList() { - return getClusterConditionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.StatusCondition, com.google.container.v1beta1.StatusCondition.Builder, com.google.container.v1beta1.StatusConditionOrBuilder> - getClusterConditionsFieldBuilder() { - if (clusterConditionsBuilder_ == null) { - clusterConditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.StatusCondition, com.google.container.v1beta1.StatusCondition.Builder, com.google.container.v1beta1.StatusConditionOrBuilder>( - clusterConditions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - clusterConditions_ = null; - } - return clusterConditionsBuilder_; - } - - private java.util.List nodepoolConditions_ = - java.util.Collections.emptyList(); - private void ensureNodepoolConditionsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - nodepoolConditions_ = new java.util.ArrayList(nodepoolConditions_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.StatusCondition, com.google.container.v1beta1.StatusCondition.Builder, com.google.container.v1beta1.StatusConditionOrBuilder> nodepoolConditionsBuilder_; - - /** - *
-     * Which conditions caused the current node pool state.
-     * Deprecated. Use field error instead.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - */ - @java.lang.Deprecated public java.util.List getNodepoolConditionsList() { - if (nodepoolConditionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(nodepoolConditions_); - } else { - return nodepoolConditionsBuilder_.getMessageList(); - } - } - /** - *
-     * Which conditions caused the current node pool state.
-     * Deprecated. Use field error instead.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - */ - @java.lang.Deprecated public int getNodepoolConditionsCount() { - if (nodepoolConditionsBuilder_ == null) { - return nodepoolConditions_.size(); - } else { - return nodepoolConditionsBuilder_.getCount(); - } - } - /** - *
-     * Which conditions caused the current node pool state.
-     * Deprecated. Use field error instead.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.container.v1beta1.StatusCondition getNodepoolConditions(int index) { - if (nodepoolConditionsBuilder_ == null) { - return nodepoolConditions_.get(index); - } else { - return nodepoolConditionsBuilder_.getMessage(index); - } - } - /** - *
-     * Which conditions caused the current node pool state.
-     * Deprecated. Use field error instead.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setNodepoolConditions( - int index, com.google.container.v1beta1.StatusCondition value) { - if (nodepoolConditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodepoolConditionsIsMutable(); - nodepoolConditions_.set(index, value); - onChanged(); - } else { - nodepoolConditionsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Which conditions caused the current node pool state.
-     * Deprecated. Use field error instead.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setNodepoolConditions( - int index, com.google.container.v1beta1.StatusCondition.Builder builderForValue) { - if (nodepoolConditionsBuilder_ == null) { - ensureNodepoolConditionsIsMutable(); - nodepoolConditions_.set(index, builderForValue.build()); - onChanged(); - } else { - nodepoolConditionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Which conditions caused the current node pool state.
-     * Deprecated. Use field error instead.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - */ - @java.lang.Deprecated public Builder addNodepoolConditions(com.google.container.v1beta1.StatusCondition value) { - if (nodepoolConditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodepoolConditionsIsMutable(); - nodepoolConditions_.add(value); - onChanged(); - } else { - nodepoolConditionsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Which conditions caused the current node pool state.
-     * Deprecated. Use field error instead.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - */ - @java.lang.Deprecated public Builder addNodepoolConditions( - int index, com.google.container.v1beta1.StatusCondition value) { - if (nodepoolConditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodepoolConditionsIsMutable(); - nodepoolConditions_.add(index, value); - onChanged(); - } else { - nodepoolConditionsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Which conditions caused the current node pool state.
-     * Deprecated. Use field error instead.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - */ - @java.lang.Deprecated public Builder addNodepoolConditions( - com.google.container.v1beta1.StatusCondition.Builder builderForValue) { - if (nodepoolConditionsBuilder_ == null) { - ensureNodepoolConditionsIsMutable(); - nodepoolConditions_.add(builderForValue.build()); - onChanged(); - } else { - nodepoolConditionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Which conditions caused the current node pool state.
-     * Deprecated. Use field error instead.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - */ - @java.lang.Deprecated public Builder addNodepoolConditions( - int index, com.google.container.v1beta1.StatusCondition.Builder builderForValue) { - if (nodepoolConditionsBuilder_ == null) { - ensureNodepoolConditionsIsMutable(); - nodepoolConditions_.add(index, builderForValue.build()); - onChanged(); - } else { - nodepoolConditionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Which conditions caused the current node pool state.
-     * Deprecated. Use field error instead.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - */ - @java.lang.Deprecated public Builder addAllNodepoolConditions( - java.lang.Iterable values) { - if (nodepoolConditionsBuilder_ == null) { - ensureNodepoolConditionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nodepoolConditions_); - onChanged(); - } else { - nodepoolConditionsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Which conditions caused the current node pool state.
-     * Deprecated. Use field error instead.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearNodepoolConditions() { - if (nodepoolConditionsBuilder_ == null) { - nodepoolConditions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - nodepoolConditionsBuilder_.clear(); - } - return this; - } - /** - *
-     * Which conditions caused the current node pool state.
-     * Deprecated. Use field error instead.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - */ - @java.lang.Deprecated public Builder removeNodepoolConditions(int index) { - if (nodepoolConditionsBuilder_ == null) { - ensureNodepoolConditionsIsMutable(); - nodepoolConditions_.remove(index); - onChanged(); - } else { - nodepoolConditionsBuilder_.remove(index); - } - return this; - } - /** - *
-     * Which conditions caused the current node pool state.
-     * Deprecated. Use field error instead.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.container.v1beta1.StatusCondition.Builder getNodepoolConditionsBuilder( - int index) { - return getNodepoolConditionsFieldBuilder().getBuilder(index); - } - /** - *
-     * Which conditions caused the current node pool state.
-     * Deprecated. Use field error instead.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.container.v1beta1.StatusConditionOrBuilder getNodepoolConditionsOrBuilder( - int index) { - if (nodepoolConditionsBuilder_ == null) { - return nodepoolConditions_.get(index); } else { - return nodepoolConditionsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Which conditions caused the current node pool state.
-     * Deprecated. Use field error instead.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - */ - @java.lang.Deprecated public java.util.List - getNodepoolConditionsOrBuilderList() { - if (nodepoolConditionsBuilder_ != null) { - return nodepoolConditionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nodepoolConditions_); - } - } - /** - *
-     * Which conditions caused the current node pool state.
-     * Deprecated. Use field error instead.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.container.v1beta1.StatusCondition.Builder addNodepoolConditionsBuilder() { - return getNodepoolConditionsFieldBuilder().addBuilder( - com.google.container.v1beta1.StatusCondition.getDefaultInstance()); - } - /** - *
-     * Which conditions caused the current node pool state.
-     * Deprecated. Use field error instead.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.container.v1beta1.StatusCondition.Builder addNodepoolConditionsBuilder( - int index) { - return getNodepoolConditionsFieldBuilder().addBuilder( - index, com.google.container.v1beta1.StatusCondition.getDefaultInstance()); - } - /** - *
-     * Which conditions caused the current node pool state.
-     * Deprecated. Use field error instead.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - */ - @java.lang.Deprecated public java.util.List - getNodepoolConditionsBuilderList() { - return getNodepoolConditionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.StatusCondition, com.google.container.v1beta1.StatusCondition.Builder, com.google.container.v1beta1.StatusConditionOrBuilder> - getNodepoolConditionsFieldBuilder() { - if (nodepoolConditionsBuilder_ == null) { - nodepoolConditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.StatusCondition, com.google.container.v1beta1.StatusCondition.Builder, com.google.container.v1beta1.StatusConditionOrBuilder>( - nodepoolConditions_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - nodepoolConditions_ = null; - } - return nodepoolConditionsBuilder_; - } - - private com.google.rpc.Status error_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; - /** - *
-     * The error result of the operation in case of failure.
-     * 
- * - * .google.rpc.Status error = 15; - * @return Whether the error field is set. - */ - public boolean hasError() { - return errorBuilder_ != null || error_ != null; - } - /** - *
-     * The error result of the operation in case of failure.
-     * 
- * - * .google.rpc.Status error = 15; - * @return The error. - */ - public com.google.rpc.Status getError() { - if (errorBuilder_ == null) { - return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; - } else { - return errorBuilder_.getMessage(); - } - } - /** - *
-     * The error result of the operation in case of failure.
-     * 
- * - * .google.rpc.Status error = 15; - */ - public Builder setError(com.google.rpc.Status value) { - if (errorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - error_ = value; - onChanged(); - } else { - errorBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The error result of the operation in case of failure.
-     * 
- * - * .google.rpc.Status error = 15; - */ - public Builder setError( - com.google.rpc.Status.Builder builderForValue) { - if (errorBuilder_ == null) { - error_ = builderForValue.build(); - onChanged(); - } else { - errorBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The error result of the operation in case of failure.
-     * 
- * - * .google.rpc.Status error = 15; - */ - public Builder mergeError(com.google.rpc.Status value) { - if (errorBuilder_ == null) { - if (error_ != null) { - error_ = - com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); - } else { - error_ = value; - } - onChanged(); - } else { - errorBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The error result of the operation in case of failure.
-     * 
- * - * .google.rpc.Status error = 15; - */ - public Builder clearError() { - if (errorBuilder_ == null) { - error_ = null; - onChanged(); - } else { - error_ = null; - errorBuilder_ = null; - } - - return this; - } - /** - *
-     * The error result of the operation in case of failure.
-     * 
- * - * .google.rpc.Status error = 15; - */ - public com.google.rpc.Status.Builder getErrorBuilder() { - - onChanged(); - return getErrorFieldBuilder().getBuilder(); - } - /** - *
-     * The error result of the operation in case of failure.
-     * 
- * - * .google.rpc.Status error = 15; - */ - public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { - if (errorBuilder_ != null) { - return errorBuilder_.getMessageOrBuilder(); - } else { - return error_ == null ? - com.google.rpc.Status.getDefaultInstance() : error_; - } - } - /** - *
-     * The error result of the operation in case of failure.
-     * 
- * - * .google.rpc.Status error = 15; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - getErrorFieldBuilder() { - if (errorBuilder_ == null) { - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - getError(), - getParentForChildren(), - isClean()); - error_ = null; - } - return errorBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.Operation) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.Operation) - private static final com.google.container.v1beta1.Operation DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.Operation(); - } - - public static com.google.container.v1beta1.Operation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Operation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index b0a862afd722..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationOrBuilder.java +++ /dev/null @@ -1,405 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface OperationOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.Operation) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The server-assigned ID for the operation.
-   * 
- * - * string name = 1; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * The server-assigned ID for the operation.
-   * 
- * - * string name = 1; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * operation is taking place. This field is deprecated, use location instead.
-   * 
- * - * string zone = 2 [deprecated = true]; - * @deprecated google.container.v1beta1.Operation.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2262 - * @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=2262 - * @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=2275 - * @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=2275 - * @return The bytes for statusMessage. - */ - @java.lang.Deprecated com.google.protobuf.ByteString - getStatusMessageBytes(); - - /** - *
-   * Server-defined URL for the resource.
-   * 
- * - * string self_link = 6; - * @return The selfLink. - */ - java.lang.String getSelfLink(); - /** - *
-   * Server-defined URL for the resource.
-   * 
- * - * string self_link = 6; - * @return The bytes for selfLink. - */ - com.google.protobuf.ByteString - getSelfLinkBytes(); - - /** - *
-   * Server-defined URL for the target of the operation.
-   * 
- * - * string target_link = 7; - * @return The targetLink. - */ - java.lang.String getTargetLink(); - /** - *
-   * Server-defined URL for the target of the operation.
-   * 
- * - * string target_link = 7; - * @return The bytes for targetLink. - */ - com.google.protobuf.ByteString - getTargetLinkBytes(); - - /** - *
-   * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * or
-   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * in which the cluster resides.
-   * 
- * - * string location = 9; - * @return The location. - */ - java.lang.String getLocation(); - /** - *
-   * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * or
-   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * in which the cluster resides.
-   * 
- * - * string location = 9; - * @return The bytes for location. - */ - com.google.protobuf.ByteString - getLocationBytes(); - - /** - *
-   * [Output only] The time the operation started, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string start_time = 10; - * @return The startTime. - */ - java.lang.String getStartTime(); - /** - *
-   * [Output only] The time the operation started, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string start_time = 10; - * @return The bytes for startTime. - */ - com.google.protobuf.ByteString - getStartTimeBytes(); - - /** - *
-   * [Output only] The time the operation completed, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string end_time = 11; - * @return The endTime. - */ - java.lang.String getEndTime(); - /** - *
-   * [Output only] The time the operation completed, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string end_time = 11; - * @return The bytes for endTime. - */ - com.google.protobuf.ByteString - getEndTimeBytes(); - - /** - *
-   * Output only. [Output only] Progress information for an operation.
-   * 
- * - * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the progress field is set. - */ - boolean hasProgress(); - /** - *
-   * Output only. [Output only] Progress information for an operation.
-   * 
- * - * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The progress. - */ - com.google.container.v1beta1.OperationProgress getProgress(); - /** - *
-   * Output only. [Output only] Progress information for an operation.
-   * 
- * - * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.container.v1beta1.OperationProgressOrBuilder getProgressOrBuilder(); - - /** - *
-   * Which conditions caused the current cluster state.
-   * Deprecated. Use field error instead.
-   * 
- * - * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; - */ - @java.lang.Deprecated java.util.List - getClusterConditionsList(); - /** - *
-   * Which conditions caused the current cluster state.
-   * Deprecated. Use field error instead.
-   * 
- * - * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; - */ - @java.lang.Deprecated com.google.container.v1beta1.StatusCondition getClusterConditions(int index); - /** - *
-   * Which conditions caused the current cluster state.
-   * Deprecated. Use field error instead.
-   * 
- * - * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; - */ - @java.lang.Deprecated int getClusterConditionsCount(); - /** - *
-   * Which conditions caused the current cluster state.
-   * Deprecated. Use field error instead.
-   * 
- * - * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; - */ - @java.lang.Deprecated java.util.List - getClusterConditionsOrBuilderList(); - /** - *
-   * Which conditions caused the current cluster state.
-   * Deprecated. Use field error instead.
-   * 
- * - * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; - */ - @java.lang.Deprecated com.google.container.v1beta1.StatusConditionOrBuilder getClusterConditionsOrBuilder( - int index); - - /** - *
-   * Which conditions caused the current node pool state.
-   * Deprecated. Use field error instead.
-   * 
- * - * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - */ - @java.lang.Deprecated java.util.List - getNodepoolConditionsList(); - /** - *
-   * Which conditions caused the current node pool state.
-   * Deprecated. Use field error instead.
-   * 
- * - * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - */ - @java.lang.Deprecated com.google.container.v1beta1.StatusCondition getNodepoolConditions(int index); - /** - *
-   * Which conditions caused the current node pool state.
-   * Deprecated. Use field error instead.
-   * 
- * - * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - */ - @java.lang.Deprecated int getNodepoolConditionsCount(); - /** - *
-   * Which conditions caused the current node pool state.
-   * Deprecated. Use field error instead.
-   * 
- * - * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - */ - @java.lang.Deprecated java.util.List - getNodepoolConditionsOrBuilderList(); - /** - *
-   * Which conditions caused the current node pool state.
-   * Deprecated. Use field error instead.
-   * 
- * - * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - */ - @java.lang.Deprecated com.google.container.v1beta1.StatusConditionOrBuilder getNodepoolConditionsOrBuilder( - int index); - - /** - *
-   * The error result of the operation in case of failure.
-   * 
- * - * .google.rpc.Status error = 15; - * @return Whether the error field is set. - */ - boolean hasError(); - /** - *
-   * The error result of the operation in case of failure.
-   * 
- * - * .google.rpc.Status error = 15; - * @return The error. - */ - com.google.rpc.Status getError(); - /** - *
-   * The error result of the operation in case of failure.
-   * 
- * - * .google.rpc.Status error = 15; - */ - com.google.rpc.StatusOrBuilder getErrorOrBuilder(); -} diff --git a/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 deleted file mode 100644 index 74158c2ab411..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationProgress.java +++ /dev/null @@ -1,2894 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Information about operation (or operation stage) progress.
- * 
- * - * Protobuf type {@code google.container.v1beta1.OperationProgress} - */ -public final class OperationProgress extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.OperationProgress) - OperationProgressOrBuilder { -private static final long serialVersionUID = 0L; - // Use OperationProgress.newBuilder() to construct. - private OperationProgress(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OperationProgress() { - name_ = ""; - status_ = 0; - metrics_ = java.util.Collections.emptyList(); - stages_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OperationProgress(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_OperationProgress_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_OperationProgress_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.OperationProgress.class, com.google.container.v1beta1.OperationProgress.Builder.class); - } - - public interface MetricOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.OperationProgress.Metric) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Required. Metric name, e.g., "nodes total", "percent done".
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-     * Required. Metric name, e.g., "nodes total", "percent done".
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * For metrics with integer value.
-     * 
- * - * int64 int_value = 2; - * @return Whether the intValue field is set. - */ - boolean hasIntValue(); - /** - *
-     * For metrics with integer value.
-     * 
- * - * int64 int_value = 2; - * @return The intValue. - */ - long getIntValue(); - - /** - *
-     * For metrics with floating point value.
-     * 
- * - * double double_value = 3; - * @return Whether the doubleValue field is set. - */ - boolean hasDoubleValue(); - /** - *
-     * For metrics with floating point value.
-     * 
- * - * double double_value = 3; - * @return The doubleValue. - */ - double getDoubleValue(); - - /** - *
-     * For metrics with custom values (ratios, visual progress, etc.).
-     * 
- * - * string string_value = 4; - * @return Whether the stringValue field is set. - */ - boolean hasStringValue(); - /** - *
-     * For metrics with custom values (ratios, visual progress, etc.).
-     * 
- * - * string string_value = 4; - * @return The stringValue. - */ - java.lang.String getStringValue(); - /** - *
-     * For metrics with custom values (ratios, visual progress, etc.).
-     * 
- * - * string string_value = 4; - * @return The bytes for stringValue. - */ - com.google.protobuf.ByteString - getStringValueBytes(); - - public com.google.container.v1beta1.OperationProgress.Metric.ValueCase getValueCase(); - } - /** - *
-   * Progress metric is (string, int|float|string) pair.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.OperationProgress.Metric} - */ - public static final class Metric extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.OperationProgress.Metric) - MetricOrBuilder { - private static final long serialVersionUID = 0L; - // Use Metric.newBuilder() to construct. - private Metric(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Metric() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Metric(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_OperationProgress_Metric_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_OperationProgress_Metric_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.OperationProgress.Metric.class, com.google.container.v1beta1.OperationProgress.Metric.Builder.class); - } - - private int valueCase_ = 0; - private java.lang.Object value_; - public enum ValueCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - INT_VALUE(2), - DOUBLE_VALUE(3), - STRING_VALUE(4), - VALUE_NOT_SET(0); - private final int value; - private ValueCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValueCase valueOf(int value) { - return forNumber(value); - } - - public static ValueCase forNumber(int value) { - switch (value) { - case 2: return INT_VALUE; - case 3: return DOUBLE_VALUE; - case 4: return STRING_VALUE; - case 0: return VALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-     * Required. Metric name, e.g., "nodes total", "percent done".
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-     * Required. Metric name, e.g., "nodes total", "percent done".
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INT_VALUE_FIELD_NUMBER = 2; - /** - *
-     * For metrics with integer value.
-     * 
- * - * int64 int_value = 2; - * @return Whether the intValue field is set. - */ - @java.lang.Override - public boolean hasIntValue() { - return valueCase_ == 2; - } - /** - *
-     * For metrics with integer value.
-     * 
- * - * int64 int_value = 2; - * @return The intValue. - */ - @java.lang.Override - public long getIntValue() { - if (valueCase_ == 2) { - return (java.lang.Long) value_; - } - return 0L; - } - - public static final int DOUBLE_VALUE_FIELD_NUMBER = 3; - /** - *
-     * For metrics with floating point value.
-     * 
- * - * double double_value = 3; - * @return Whether the doubleValue field is set. - */ - @java.lang.Override - public boolean hasDoubleValue() { - return valueCase_ == 3; - } - /** - *
-     * For metrics with floating point value.
-     * 
- * - * double double_value = 3; - * @return The doubleValue. - */ - @java.lang.Override - public double getDoubleValue() { - if (valueCase_ == 3) { - return (java.lang.Double) value_; - } - return 0D; - } - - public static final int STRING_VALUE_FIELD_NUMBER = 4; - /** - *
-     * For metrics with custom values (ratios, visual progress, etc.).
-     * 
- * - * string string_value = 4; - * @return Whether the stringValue field is set. - */ - public boolean hasStringValue() { - return valueCase_ == 4; - } - /** - *
-     * For metrics with custom values (ratios, visual progress, etc.).
-     * 
- * - * string string_value = 4; - * @return The stringValue. - */ - public java.lang.String getStringValue() { - java.lang.Object ref = ""; - if (valueCase_ == 4) { - ref = value_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valueCase_ == 4) { - value_ = s; - } - return s; - } - } - /** - *
-     * For metrics with custom values (ratios, visual progress, etc.).
-     * 
- * - * string string_value = 4; - * @return The bytes for stringValue. - */ - public com.google.protobuf.ByteString - getStringValueBytes() { - java.lang.Object ref = ""; - if (valueCase_ == 4) { - ref = value_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valueCase_ == 4) { - value_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - name_ = ""; - - valueCase_ = 0; - value_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_OperationProgress_Metric_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.OperationProgress.Metric getDefaultInstanceForType() { - return com.google.container.v1beta1.OperationProgress.Metric.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.OperationProgress.Metric build() { - com.google.container.v1beta1.OperationProgress.Metric result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.OperationProgress.Metric buildPartial() { - com.google.container.v1beta1.OperationProgress.Metric result = new com.google.container.v1beta1.OperationProgress.Metric(this); - result.name_ = name_; - if (valueCase_ == 2) { - result.value_ = value_; - } - if (valueCase_ == 3) { - result.value_ = value_; - } - if (valueCase_ == 4) { - result.value_ = value_; - } - result.valueCase_ = valueCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.OperationProgress.Metric) { - return mergeFrom((com.google.container.v1beta1.OperationProgress.Metric)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.OperationProgress.Metric other) { - if (other == com.google.container.v1beta1.OperationProgress.Metric.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - switch (other.getValueCase()) { - case INT_VALUE: { - setIntValue(other.getIntValue()); - break; - } - case DOUBLE_VALUE: { - setDoubleValue(other.getDoubleValue()); - break; - } - case STRING_VALUE: { - valueCase_ = 4; - value_ = other.value_; - onChanged(); - break; - } - case VALUE_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 java.lang.Object name_ = ""; - /** - *
-       * Required. Metric name, e.g., "nodes total", "percent done".
-       * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Required. Metric name, e.g., "nodes total", "percent done".
-       * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Required. Metric name, e.g., "nodes total", "percent done".
-       * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * Required. Metric name, e.g., "nodes total", "percent done".
-       * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * Required. Metric name, e.g., "nodes total", "percent done".
-       * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - /** - *
-       * For metrics with integer value.
-       * 
- * - * int64 int_value = 2; - * @return Whether the intValue field is set. - */ - public boolean hasIntValue() { - return valueCase_ == 2; - } - /** - *
-       * For metrics with integer value.
-       * 
- * - * int64 int_value = 2; - * @return The intValue. - */ - public long getIntValue() { - if (valueCase_ == 2) { - return (java.lang.Long) value_; - } - return 0L; - } - /** - *
-       * For metrics with integer value.
-       * 
- * - * int64 int_value = 2; - * @param value The intValue to set. - * @return This builder for chaining. - */ - public Builder setIntValue(long value) { - valueCase_ = 2; - value_ = value; - onChanged(); - return this; - } - /** - *
-       * For metrics with integer value.
-       * 
- * - * int64 int_value = 2; - * @return This builder for chaining. - */ - public Builder clearIntValue() { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - - /** - *
-       * For metrics with floating point value.
-       * 
- * - * double double_value = 3; - * @return Whether the doubleValue field is set. - */ - public boolean hasDoubleValue() { - return valueCase_ == 3; - } - /** - *
-       * For metrics with floating point value.
-       * 
- * - * double double_value = 3; - * @return The doubleValue. - */ - public double getDoubleValue() { - if (valueCase_ == 3) { - return (java.lang.Double) value_; - } - return 0D; - } - /** - *
-       * For metrics with floating point value.
-       * 
- * - * double double_value = 3; - * @param value The doubleValue to set. - * @return This builder for chaining. - */ - public Builder setDoubleValue(double value) { - valueCase_ = 3; - value_ = value; - onChanged(); - return this; - } - /** - *
-       * For metrics with floating point value.
-       * 
- * - * double double_value = 3; - * @return This builder for chaining. - */ - public Builder clearDoubleValue() { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - - /** - *
-       * For metrics with custom values (ratios, visual progress, etc.).
-       * 
- * - * string string_value = 4; - * @return Whether the stringValue field is set. - */ - @java.lang.Override - public boolean hasStringValue() { - return valueCase_ == 4; - } - /** - *
-       * For metrics with custom values (ratios, visual progress, etc.).
-       * 
- * - * string string_value = 4; - * @return The stringValue. - */ - @java.lang.Override - public java.lang.String getStringValue() { - java.lang.Object ref = ""; - if (valueCase_ == 4) { - ref = value_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valueCase_ == 4) { - value_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * For metrics with custom values (ratios, visual progress, etc.).
-       * 
- * - * string string_value = 4; - * @return The bytes for stringValue. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getStringValueBytes() { - java.lang.Object ref = ""; - if (valueCase_ == 4) { - ref = value_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valueCase_ == 4) { - value_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * For metrics with custom values (ratios, visual progress, etc.).
-       * 
- * - * string string_value = 4; - * @param value The stringValue to set. - * @return This builder for chaining. - */ - public Builder setStringValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - valueCase_ = 4; - value_ = value; - onChanged(); - return this; - } - /** - *
-       * For metrics with custom values (ratios, visual progress, etc.).
-       * 
- * - * string string_value = 4; - * @return This builder for chaining. - */ - public Builder clearStringValue() { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - /** - *
-       * For metrics with custom values (ratios, visual progress, etc.).
-       * 
- * - * string string_value = 4; - * @param value The bytes for stringValue to set. - * @return This builder for chaining. - */ - public Builder setStringValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - valueCase_ = 4; - value_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.OperationProgress.Metric) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.OperationProgress.Metric) - private static final com.google.container.v1beta1.OperationProgress.Metric DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.OperationProgress.Metric(); - } - - public static com.google.container.v1beta1.OperationProgress.Metric getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Metric parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1beta1.OperationProgress.Metric getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-   * A non-parameterized string describing an operation stage.
-   * Unset for single-stage operations.
-   * 
- * - * string name = 1; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * A non-parameterized string describing an operation stage.
-   * Unset for single-stage operations.
-   * 
- * - * string name = 1; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_FIELD_NUMBER = 2; - private int status_; - /** - *
-   * Status of an operation stage.
-   * Unset for single-stage operations.
-   * 
- * - * .google.container.v1beta1.Operation.Status status = 2; - * @return The enum numeric value on the wire for status. - */ - @java.lang.Override public int getStatusValue() { - return status_; - } - /** - *
-   * Status of an operation stage.
-   * Unset for single-stage operations.
-   * 
- * - * .google.container.v1beta1.Operation.Status status = 2; - * @return The status. - */ - @java.lang.Override public com.google.container.v1beta1.Operation.Status getStatus() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.Operation.Status result = com.google.container.v1beta1.Operation.Status.valueOf(status_); - return result == null ? com.google.container.v1beta1.Operation.Status.UNRECOGNIZED : result; - } - - public static final int METRICS_FIELD_NUMBER = 3; - private java.util.List metrics_; - /** - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - @java.lang.Override - public java.util.List getMetricsList() { - return metrics_; - } - /** - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - @java.lang.Override - public java.util.List - getMetricsOrBuilderList() { - return metrics_; - } - /** - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - @java.lang.Override - public int getMetricsCount() { - return metrics_.size(); - } - /** - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - @java.lang.Override - public com.google.container.v1beta1.OperationProgress.Metric getMetrics(int index) { - return metrics_.get(index); - } - /** - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - @java.lang.Override - public com.google.container.v1beta1.OperationProgress.MetricOrBuilder getMetricsOrBuilder( - int index) { - return metrics_.get(index); - } - - public static final int STAGES_FIELD_NUMBER = 4; - private java.util.List stages_; - /** - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - @java.lang.Override - public java.util.List getStagesList() { - return stages_; - } - /** - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - @java.lang.Override - public java.util.List - getStagesOrBuilderList() { - return stages_; - } - /** - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - @java.lang.Override - public int getStagesCount() { - return stages_.size(); - } - /** - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - @java.lang.Override - public com.google.container.v1beta1.OperationProgress getStages(int index) { - return stages_.get(index); - } - /** - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - @java.lang.Override - public com.google.container.v1beta1.OperationProgressOrBuilder getStagesOrBuilder( - int index) { - return stages_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - name_ = ""; - - status_ = 0; - - if (metricsBuilder_ == null) { - metrics_ = java.util.Collections.emptyList(); - } else { - metrics_ = null; - metricsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (stagesBuilder_ == null) { - stages_ = java.util.Collections.emptyList(); - } else { - stages_ = null; - stagesBuilder_.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_OperationProgress_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.OperationProgress getDefaultInstanceForType() { - return com.google.container.v1beta1.OperationProgress.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.OperationProgress build() { - com.google.container.v1beta1.OperationProgress result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.OperationProgress buildPartial() { - com.google.container.v1beta1.OperationProgress result = new com.google.container.v1beta1.OperationProgress(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.status_ = status_; - if (metricsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - metrics_ = java.util.Collections.unmodifiableList(metrics_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.metrics_ = metrics_; - } else { - result.metrics_ = metricsBuilder_.build(); - } - if (stagesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - stages_ = java.util.Collections.unmodifiableList(stages_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.stages_ = stages_; - } else { - result.stages_ = stagesBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.OperationProgress) { - return mergeFrom((com.google.container.v1beta1.OperationProgress)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.OperationProgress other) { - if (other == com.google.container.v1beta1.OperationProgress.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); - } - if (metricsBuilder_ == null) { - if (!other.metrics_.isEmpty()) { - if (metrics_.isEmpty()) { - metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureMetricsIsMutable(); - metrics_.addAll(other.metrics_); - } - onChanged(); - } - } else { - if (!other.metrics_.isEmpty()) { - if (metricsBuilder_.isEmpty()) { - metricsBuilder_.dispose(); - metricsBuilder_ = null; - metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000001); - metricsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMetricsFieldBuilder() : null; - } else { - metricsBuilder_.addAllMessages(other.metrics_); - } - } - } - if (stagesBuilder_ == null) { - if (!other.stages_.isEmpty()) { - if (stages_.isEmpty()) { - stages_ = other.stages_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureStagesIsMutable(); - stages_.addAll(other.stages_); - } - onChanged(); - } - } else { - if (!other.stages_.isEmpty()) { - if (stagesBuilder_.isEmpty()) { - stagesBuilder_.dispose(); - stagesBuilder_ = null; - stages_ = other.stages_; - bitField0_ = (bitField0_ & ~0x00000002); - stagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getStagesFieldBuilder() : null; - } else { - stagesBuilder_.addAllMessages(other.stages_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 16: { - status_ = input.readEnum(); - - 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; - onChanged(); - return this; - } - /** - *
-     * A non-parameterized string describing an operation stage.
-     * Unset for single-stage operations.
-     * 
- * - * string name = 1; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * A non-parameterized string describing an operation stage.
-     * Unset for single-stage operations.
-     * 
- * - * string name = 1; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private int status_ = 0; - /** - *
-     * Status of an operation stage.
-     * Unset for single-stage operations.
-     * 
- * - * .google.container.v1beta1.Operation.Status status = 2; - * @return The enum numeric value on the wire for status. - */ - @java.lang.Override public int getStatusValue() { - return status_; - } - /** - *
-     * Status of an operation stage.
-     * Unset for single-stage operations.
-     * 
- * - * .google.container.v1beta1.Operation.Status status = 2; - * @param value The enum numeric value on the wire for status to set. - * @return This builder for chaining. - */ - public Builder setStatusValue(int value) { - - status_ = value; - onChanged(); - return this; - } - /** - *
-     * Status of an operation stage.
-     * Unset for single-stage operations.
-     * 
- * - * .google.container.v1beta1.Operation.Status status = 2; - * @return The status. - */ - @java.lang.Override - public com.google.container.v1beta1.Operation.Status getStatus() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.Operation.Status result = com.google.container.v1beta1.Operation.Status.valueOf(status_); - return result == null ? com.google.container.v1beta1.Operation.Status.UNRECOGNIZED : result; - } - /** - *
-     * Status of an operation stage.
-     * Unset for single-stage operations.
-     * 
- * - * .google.container.v1beta1.Operation.Status status = 2; - * @param value The status to set. - * @return This builder for chaining. - */ - public Builder setStatus(com.google.container.v1beta1.Operation.Status value) { - if (value == null) { - throw new NullPointerException(); - } - - status_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Status of an operation stage.
-     * Unset for single-stage operations.
-     * 
- * - * .google.container.v1beta1.Operation.Status status = 2; - * @return This builder for chaining. - */ - public Builder clearStatus() { - - status_ = 0; - onChanged(); - return this; - } - - private java.util.List metrics_ = - java.util.Collections.emptyList(); - private void ensureMetricsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - metrics_ = new java.util.ArrayList(metrics_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.OperationProgress.Metric, com.google.container.v1beta1.OperationProgress.Metric.Builder, com.google.container.v1beta1.OperationProgress.MetricOrBuilder> metricsBuilder_; - - /** - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - public java.util.List getMetricsList() { - if (metricsBuilder_ == null) { - return java.util.Collections.unmodifiableList(metrics_); - } else { - return metricsBuilder_.getMessageList(); - } - } - /** - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - public int getMetricsCount() { - if (metricsBuilder_ == null) { - return metrics_.size(); - } else { - return metricsBuilder_.getCount(); - } - } - /** - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - public com.google.container.v1beta1.OperationProgress.Metric getMetrics(int index) { - if (metricsBuilder_ == null) { - return metrics_.get(index); - } else { - return metricsBuilder_.getMessage(index); - } - } - /** - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - public Builder setMetrics( - int index, com.google.container.v1beta1.OperationProgress.Metric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.set(index, value); - onChanged(); - } else { - metricsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - public Builder setMetrics( - int index, com.google.container.v1beta1.OperationProgress.Metric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.set(index, builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - public Builder addMetrics(com.google.container.v1beta1.OperationProgress.Metric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.add(value); - onChanged(); - } else { - metricsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - public Builder addMetrics( - int index, com.google.container.v1beta1.OperationProgress.Metric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.add(index, value); - onChanged(); - } else { - metricsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - public Builder addMetrics( - com.google.container.v1beta1.OperationProgress.Metric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - public Builder addMetrics( - int index, com.google.container.v1beta1.OperationProgress.Metric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(index, builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - public Builder addAllMetrics( - java.lang.Iterable values) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, metrics_); - onChanged(); - } else { - metricsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - public Builder clearMetrics() { - if (metricsBuilder_ == null) { - metrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - metricsBuilder_.clear(); - } - return this; - } - /** - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - public Builder removeMetrics(int index) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.remove(index); - onChanged(); - } else { - metricsBuilder_.remove(index); - } - return this; - } - /** - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - public com.google.container.v1beta1.OperationProgress.Metric.Builder getMetricsBuilder( - int index) { - return getMetricsFieldBuilder().getBuilder(index); - } - /** - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - public com.google.container.v1beta1.OperationProgress.MetricOrBuilder getMetricsOrBuilder( - int index) { - if (metricsBuilder_ == null) { - return metrics_.get(index); } else { - return metricsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - public java.util.List - getMetricsOrBuilderList() { - if (metricsBuilder_ != null) { - return metricsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(metrics_); - } - } - /** - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - public com.google.container.v1beta1.OperationProgress.Metric.Builder addMetricsBuilder() { - return getMetricsFieldBuilder().addBuilder( - com.google.container.v1beta1.OperationProgress.Metric.getDefaultInstance()); - } - /** - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - public com.google.container.v1beta1.OperationProgress.Metric.Builder addMetricsBuilder( - int index) { - return getMetricsFieldBuilder().addBuilder( - index, com.google.container.v1beta1.OperationProgress.Metric.getDefaultInstance()); - } - /** - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - public java.util.List - getMetricsBuilderList() { - return getMetricsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.OperationProgress.Metric, com.google.container.v1beta1.OperationProgress.Metric.Builder, com.google.container.v1beta1.OperationProgress.MetricOrBuilder> - getMetricsFieldBuilder() { - if (metricsBuilder_ == null) { - metricsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.OperationProgress.Metric, com.google.container.v1beta1.OperationProgress.Metric.Builder, com.google.container.v1beta1.OperationProgress.MetricOrBuilder>( - metrics_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - metrics_ = null; - } - return metricsBuilder_; - } - - private java.util.List stages_ = - java.util.Collections.emptyList(); - private void ensureStagesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - stages_ = new java.util.ArrayList(stages_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.OperationProgress, com.google.container.v1beta1.OperationProgress.Builder, com.google.container.v1beta1.OperationProgressOrBuilder> stagesBuilder_; - - /** - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - public java.util.List getStagesList() { - if (stagesBuilder_ == null) { - return java.util.Collections.unmodifiableList(stages_); - } else { - return stagesBuilder_.getMessageList(); - } - } - /** - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - public int getStagesCount() { - if (stagesBuilder_ == null) { - return stages_.size(); - } else { - return stagesBuilder_.getCount(); - } - } - /** - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - public com.google.container.v1beta1.OperationProgress getStages(int index) { - if (stagesBuilder_ == null) { - return stages_.get(index); - } else { - return stagesBuilder_.getMessage(index); - } - } - /** - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - public Builder setStages( - int index, com.google.container.v1beta1.OperationProgress value) { - if (stagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStagesIsMutable(); - stages_.set(index, value); - onChanged(); - } else { - stagesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - public Builder setStages( - int index, com.google.container.v1beta1.OperationProgress.Builder builderForValue) { - if (stagesBuilder_ == null) { - ensureStagesIsMutable(); - stages_.set(index, builderForValue.build()); - onChanged(); - } else { - stagesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - public Builder addStages(com.google.container.v1beta1.OperationProgress value) { - if (stagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStagesIsMutable(); - stages_.add(value); - onChanged(); - } else { - stagesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - public Builder addStages( - int index, com.google.container.v1beta1.OperationProgress value) { - if (stagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStagesIsMutable(); - stages_.add(index, value); - onChanged(); - } else { - stagesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - public Builder addStages( - com.google.container.v1beta1.OperationProgress.Builder builderForValue) { - if (stagesBuilder_ == null) { - ensureStagesIsMutable(); - stages_.add(builderForValue.build()); - onChanged(); - } else { - stagesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - public Builder addStages( - int index, com.google.container.v1beta1.OperationProgress.Builder builderForValue) { - if (stagesBuilder_ == null) { - ensureStagesIsMutable(); - stages_.add(index, builderForValue.build()); - onChanged(); - } else { - stagesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - public Builder addAllStages( - java.lang.Iterable values) { - if (stagesBuilder_ == null) { - ensureStagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, stages_); - onChanged(); - } else { - stagesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - public Builder clearStages() { - if (stagesBuilder_ == null) { - stages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - stagesBuilder_.clear(); - } - return this; - } - /** - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - public Builder removeStages(int index) { - if (stagesBuilder_ == null) { - ensureStagesIsMutable(); - stages_.remove(index); - onChanged(); - } else { - stagesBuilder_.remove(index); - } - return this; - } - /** - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - public com.google.container.v1beta1.OperationProgress.Builder getStagesBuilder( - int index) { - return getStagesFieldBuilder().getBuilder(index); - } - /** - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - public com.google.container.v1beta1.OperationProgressOrBuilder getStagesOrBuilder( - int index) { - if (stagesBuilder_ == null) { - return stages_.get(index); } else { - return stagesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - public java.util.List - getStagesOrBuilderList() { - if (stagesBuilder_ != null) { - return stagesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(stages_); - } - } - /** - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - public com.google.container.v1beta1.OperationProgress.Builder addStagesBuilder() { - return getStagesFieldBuilder().addBuilder( - com.google.container.v1beta1.OperationProgress.getDefaultInstance()); - } - /** - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - public com.google.container.v1beta1.OperationProgress.Builder addStagesBuilder( - int index) { - return getStagesFieldBuilder().addBuilder( - index, com.google.container.v1beta1.OperationProgress.getDefaultInstance()); - } - /** - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - public java.util.List - getStagesBuilderList() { - return getStagesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.OperationProgress, com.google.container.v1beta1.OperationProgress.Builder, com.google.container.v1beta1.OperationProgressOrBuilder> - getStagesFieldBuilder() { - if (stagesBuilder_ == null) { - stagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.OperationProgress, com.google.container.v1beta1.OperationProgress.Builder, com.google.container.v1beta1.OperationProgressOrBuilder>( - stages_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - stages_ = null; - } - return stagesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.OperationProgress) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.OperationProgress) - private static final com.google.container.v1beta1.OperationProgress DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.OperationProgress(); - } - - public static com.google.container.v1beta1.OperationProgress getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationProgress parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 41b9a60e5cec..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationProgressOrBuilder.java +++ /dev/null @@ -1,165 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface OperationProgressOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.OperationProgress) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * A non-parameterized string describing an operation stage.
-   * Unset for single-stage operations.
-   * 
- * - * string name = 1; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * A non-parameterized string describing an operation stage.
-   * Unset for single-stage operations.
-   * 
- * - * string name = 1; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Status of an operation stage.
-   * Unset for single-stage operations.
-   * 
- * - * .google.container.v1beta1.Operation.Status status = 2; - * @return The enum numeric value on the wire for status. - */ - int getStatusValue(); - /** - *
-   * Status of an operation stage.
-   * Unset for single-stage operations.
-   * 
- * - * .google.container.v1beta1.Operation.Status status = 2; - * @return The status. - */ - com.google.container.v1beta1.Operation.Status getStatus(); - - /** - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - java.util.List - getMetricsList(); - /** - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - com.google.container.v1beta1.OperationProgress.Metric getMetrics(int index); - /** - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - int getMetricsCount(); - /** - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - java.util.List - getMetricsOrBuilderList(); - /** - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - com.google.container.v1beta1.OperationProgress.MetricOrBuilder getMetricsOrBuilder( - int index); - - /** - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - java.util.List - getStagesList(); - /** - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - com.google.container.v1beta1.OperationProgress getStages(int index); - /** - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - int getStagesCount(); - /** - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - java.util.List - getStagesOrBuilderList(); - /** - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - com.google.container.v1beta1.OperationProgressOrBuilder getStagesOrBuilder( - int index); -} diff --git a/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 deleted file mode 100644 index 68e19360b2b7..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PodSecurityPolicyConfig.java +++ /dev/null @@ -1,494 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Configuration for the PodSecurityPolicy feature.
- * 
- * - * Protobuf type {@code google.container.v1beta1.PodSecurityPolicyConfig} - */ -public final class PodSecurityPolicyConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.PodSecurityPolicyConfig) - PodSecurityPolicyConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use PodSecurityPolicyConfig.newBuilder() to construct. - private PodSecurityPolicyConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PodSecurityPolicyConfig() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PodSecurityPolicyConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_PodSecurityPolicyConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_PodSecurityPolicyConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.PodSecurityPolicyConfig.class, com.google.container.v1beta1.PodSecurityPolicyConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-   * Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
-   * must be valid under a PodSecurityPolicy to be created.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - 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(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_PodSecurityPolicyConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.PodSecurityPolicyConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.PodSecurityPolicyConfig build() { - com.google.container.v1beta1.PodSecurityPolicyConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.PodSecurityPolicyConfig buildPartial() { - com.google.container.v1beta1.PodSecurityPolicyConfig result = new com.google.container.v1beta1.PodSecurityPolicyConfig(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.PodSecurityPolicyConfig) { - return mergeFrom((com.google.container.v1beta1.PodSecurityPolicyConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.PodSecurityPolicyConfig other) { - if (other == com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 boolean enabled_ ; - /** - *
-     * Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
-     * must be valid under a PodSecurityPolicy to be created.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
-     * must be valid under a PodSecurityPolicy to be created.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
-     * must be valid under a PodSecurityPolicy to be created.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.PodSecurityPolicyConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.PodSecurityPolicyConfig) - private static final com.google.container.v1beta1.PodSecurityPolicyConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.PodSecurityPolicyConfig(); - } - - public static com.google.container.v1beta1.PodSecurityPolicyConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PodSecurityPolicyConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index e0ccdfc96eda..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PodSecurityPolicyConfigOrBuilder.java +++ /dev/null @@ -1,20 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface PodSecurityPolicyConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.PodSecurityPolicyConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
-   * must be valid under a PodSecurityPolicy to be created.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/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 deleted file mode 100644 index 67b7307c7bb1..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfig.java +++ /dev/null @@ -1,1662 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Configuration options for private clusters.
- * 
- * - * Protobuf type {@code google.container.v1beta1.PrivateClusterConfig} - */ -public final class PrivateClusterConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.PrivateClusterConfig) - PrivateClusterConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use PrivateClusterConfig.newBuilder() to construct. - private PrivateClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PrivateClusterConfig() { - masterIpv4CidrBlock_ = ""; - privateEndpoint_ = ""; - publicEndpoint_ = ""; - peeringName_ = ""; - privateEndpointSubnetwork_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PrivateClusterConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_PrivateClusterConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_PrivateClusterConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.PrivateClusterConfig.class, com.google.container.v1beta1.PrivateClusterConfig.Builder.class); - } - - public static final int ENABLE_PRIVATE_NODES_FIELD_NUMBER = 1; - private boolean enablePrivateNodes_; - /** - *
-   * Whether nodes have internal IP addresses only. If enabled, all nodes are
-   * given only RFC 1918 private addresses and communicate with the master via
-   * private networking.
-   * 
- * - * bool enable_private_nodes = 1; - * @return The enablePrivateNodes. - */ - @java.lang.Override - public boolean getEnablePrivateNodes() { - return enablePrivateNodes_; - } - - public static final int ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER = 2; - private boolean enablePrivateEndpoint_; - /** - *
-   * Whether the master's internal IP address is used as the cluster endpoint.
-   * 
- * - * bool enable_private_endpoint = 2; - * @return The enablePrivateEndpoint. - */ - @java.lang.Override - public boolean getEnablePrivateEndpoint() { - return enablePrivateEndpoint_; - } - - public static final int MASTER_IPV4_CIDR_BLOCK_FIELD_NUMBER = 3; - private volatile java.lang.Object masterIpv4CidrBlock_; - /** - *
-   * The IP range in CIDR notation to use for the hosted master network. This
-   * range will be used for assigning internal IP addresses to the master or
-   * set of masters, as well as the ILB VIP. This range must not overlap with
-   * any other ranges in use within the cluster's network.
-   * 
- * - * string master_ipv4_cidr_block = 3; - * @return The masterIpv4CidrBlock. - */ - @java.lang.Override - public java.lang.String getMasterIpv4CidrBlock() { - java.lang.Object ref = masterIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - masterIpv4CidrBlock_ = s; - return s; - } - } - /** - *
-   * The IP range in CIDR notation to use for the hosted master network. This
-   * range will be used for assigning internal IP addresses to the master or
-   * set of masters, as well as the ILB VIP. This range must not overlap with
-   * any other ranges in use within the cluster's network.
-   * 
- * - * string master_ipv4_cidr_block = 3; - * @return The bytes for masterIpv4CidrBlock. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMasterIpv4CidrBlockBytes() { - java.lang.Object ref = masterIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - masterIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PRIVATE_ENDPOINT_FIELD_NUMBER = 4; - private volatile java.lang.Object privateEndpoint_; - /** - *
-   * Output only. The internal IP address of this cluster's master endpoint.
-   * 
- * - * string private_endpoint = 4; - * @return The privateEndpoint. - */ - @java.lang.Override - public java.lang.String getPrivateEndpoint() { - java.lang.Object ref = privateEndpoint_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - privateEndpoint_ = s; - return s; - } - } - /** - *
-   * Output only. The internal IP address of this cluster's master endpoint.
-   * 
- * - * string private_endpoint = 4; - * @return The bytes for privateEndpoint. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPrivateEndpointBytes() { - java.lang.Object ref = privateEndpoint_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - privateEndpoint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PUBLIC_ENDPOINT_FIELD_NUMBER = 5; - private volatile java.lang.Object publicEndpoint_; - /** - *
-   * Output only. The external IP address of this cluster's master endpoint.
-   * 
- * - * string public_endpoint = 5; - * @return The publicEndpoint. - */ - @java.lang.Override - public java.lang.String getPublicEndpoint() { - java.lang.Object ref = publicEndpoint_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - publicEndpoint_ = s; - return s; - } - } - /** - *
-   * Output only. The external IP address of this cluster's master endpoint.
-   * 
- * - * string public_endpoint = 5; - * @return The bytes for publicEndpoint. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPublicEndpointBytes() { - java.lang.Object ref = publicEndpoint_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - publicEndpoint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PEERING_NAME_FIELD_NUMBER = 7; - private volatile java.lang.Object peeringName_; - /** - *
-   * Output only. The peering name in the customer VPC used by this cluster.
-   * 
- * - * string peering_name = 7; - * @return The peeringName. - */ - @java.lang.Override - public java.lang.String getPeeringName() { - java.lang.Object ref = peeringName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - peeringName_ = s; - return s; - } - } - /** - *
-   * Output only. The peering name in the customer VPC used by this cluster.
-   * 
- * - * string peering_name = 7; - * @return The bytes for peeringName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPeeringNameBytes() { - java.lang.Object ref = peeringName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - peeringName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MASTER_GLOBAL_ACCESS_CONFIG_FIELD_NUMBER = 8; - private com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig masterGlobalAccessConfig_; - /** - *
-   * Controls master global access settings.
-   * 
- * - * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * @return Whether the masterGlobalAccessConfig field is set. - */ - @java.lang.Override - public boolean hasMasterGlobalAccessConfig() { - return masterGlobalAccessConfig_ != null; - } - /** - *
-   * Controls master global access settings.
-   * 
- * - * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * @return The masterGlobalAccessConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig getMasterGlobalAccessConfig() { - return masterGlobalAccessConfig_ == null ? com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance() : masterGlobalAccessConfig_; - } - /** - *
-   * Controls master global access settings.
-   * 
- * - * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - */ - @java.lang.Override - public com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfigOrBuilder getMasterGlobalAccessConfigOrBuilder() { - return getMasterGlobalAccessConfig(); - } - - public static final int PRIVATE_ENDPOINT_SUBNETWORK_FIELD_NUMBER = 10; - 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 (masterGlobalAccessConfig_ != null) { - 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 (masterGlobalAccessConfig_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - enablePrivateNodes_ = false; - - enablePrivateEndpoint_ = false; - - masterIpv4CidrBlock_ = ""; - - privateEndpoint_ = ""; - - publicEndpoint_ = ""; - - peeringName_ = ""; - - if (masterGlobalAccessConfigBuilder_ == null) { - masterGlobalAccessConfig_ = null; - } else { - masterGlobalAccessConfig_ = null; - masterGlobalAccessConfigBuilder_ = null; - } - 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); - result.enablePrivateNodes_ = enablePrivateNodes_; - result.enablePrivateEndpoint_ = enablePrivateEndpoint_; - result.masterIpv4CidrBlock_ = masterIpv4CidrBlock_; - result.privateEndpoint_ = privateEndpoint_; - result.publicEndpoint_ = publicEndpoint_; - result.peeringName_ = peeringName_; - if (masterGlobalAccessConfigBuilder_ == null) { - result.masterGlobalAccessConfig_ = masterGlobalAccessConfig_; - } else { - result.masterGlobalAccessConfig_ = masterGlobalAccessConfigBuilder_.build(); - } - result.privateEndpointSubnetwork_ = privateEndpointSubnetwork_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.PrivateClusterConfig) { - return mergeFrom((com.google.container.v1beta1.PrivateClusterConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.PrivateClusterConfig other) { - if (other == com.google.container.v1beta1.PrivateClusterConfig.getDefaultInstance()) return this; - if (other.getEnablePrivateNodes() != false) { - setEnablePrivateNodes(other.getEnablePrivateNodes()); - } - if (other.getEnablePrivateEndpoint() != false) { - setEnablePrivateEndpoint(other.getEnablePrivateEndpoint()); - } - if (!other.getMasterIpv4CidrBlock().isEmpty()) { - masterIpv4CidrBlock_ = other.masterIpv4CidrBlock_; - onChanged(); - } - if (!other.getPrivateEndpoint().isEmpty()) { - privateEndpoint_ = other.privateEndpoint_; - onChanged(); - } - if (!other.getPublicEndpoint().isEmpty()) { - publicEndpoint_ = other.publicEndpoint_; - onChanged(); - } - if (!other.getPeeringName().isEmpty()) { - peeringName_ = other.peeringName_; - onChanged(); - } - if (other.hasMasterGlobalAccessConfig()) { - mergeMasterGlobalAccessConfig(other.getMasterGlobalAccessConfig()); - } - if (!other.getPrivateEndpointSubnetwork().isEmpty()) { - privateEndpointSubnetwork_ = other.privateEndpointSubnetwork_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 8 - case 16: { - enablePrivateEndpoint_ = input.readBool(); - - break; - } // case 16 - case 26: { - masterIpv4CidrBlock_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - privateEndpoint_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - publicEndpoint_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 58: { - peeringName_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 66: { - input.readMessage( - getMasterGlobalAccessConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 66 - case 82: { - privateEndpointSubnetwork_ = input.readStringRequireUtf8(); - - 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 boolean enablePrivateNodes_ ; - /** - *
-     * Whether nodes have internal IP addresses only. If enabled, all nodes are
-     * given only RFC 1918 private addresses and communicate with the master via
-     * private networking.
-     * 
- * - * bool enable_private_nodes = 1; - * @return The enablePrivateNodes. - */ - @java.lang.Override - public boolean getEnablePrivateNodes() { - return enablePrivateNodes_; - } - /** - *
-     * Whether nodes have internal IP addresses only. If enabled, all nodes are
-     * given only RFC 1918 private addresses and communicate with the master via
-     * private networking.
-     * 
- * - * bool enable_private_nodes = 1; - * @param value The enablePrivateNodes to set. - * @return This builder for chaining. - */ - public Builder setEnablePrivateNodes(boolean value) { - - enablePrivateNodes_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether nodes have internal IP addresses only. If enabled, all nodes are
-     * given only RFC 1918 private addresses and communicate with the master via
-     * private networking.
-     * 
- * - * bool enable_private_nodes = 1; - * @return This builder for chaining. - */ - public Builder clearEnablePrivateNodes() { - - enablePrivateNodes_ = false; - onChanged(); - return this; - } - - private boolean enablePrivateEndpoint_ ; - /** - *
-     * Whether the master's internal IP address is used as the cluster endpoint.
-     * 
- * - * bool enable_private_endpoint = 2; - * @return The enablePrivateEndpoint. - */ - @java.lang.Override - public boolean getEnablePrivateEndpoint() { - return enablePrivateEndpoint_; - } - /** - *
-     * Whether the master's internal IP address is used as the cluster endpoint.
-     * 
- * - * bool enable_private_endpoint = 2; - * @param value The enablePrivateEndpoint to set. - * @return This builder for chaining. - */ - public Builder setEnablePrivateEndpoint(boolean value) { - - enablePrivateEndpoint_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether the master's internal IP address is used as the cluster endpoint.
-     * 
- * - * bool enable_private_endpoint = 2; - * @return This builder for chaining. - */ - public Builder clearEnablePrivateEndpoint() { - - enablePrivateEndpoint_ = false; - onChanged(); - return this; - } - - private java.lang.Object masterIpv4CidrBlock_ = ""; - /** - *
-     * The IP range in CIDR notation to use for the hosted master network. This
-     * range will be used for assigning internal IP addresses to the master or
-     * set of masters, as well as the ILB VIP. This range must not overlap with
-     * any other ranges in use within the cluster's network.
-     * 
- * - * string master_ipv4_cidr_block = 3; - * @return The masterIpv4CidrBlock. - */ - public java.lang.String getMasterIpv4CidrBlock() { - java.lang.Object ref = masterIpv4CidrBlock_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - masterIpv4CidrBlock_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The IP range in CIDR notation to use for the hosted master network. This
-     * range will be used for assigning internal IP addresses to the master or
-     * set of masters, as well as the ILB VIP. This range must not overlap with
-     * any other ranges in use within the cluster's network.
-     * 
- * - * string master_ipv4_cidr_block = 3; - * @return The bytes for masterIpv4CidrBlock. - */ - public com.google.protobuf.ByteString - getMasterIpv4CidrBlockBytes() { - java.lang.Object ref = masterIpv4CidrBlock_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - masterIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The IP range in CIDR notation to use for the hosted master network. This
-     * range will be used for assigning internal IP addresses to the master or
-     * set of masters, as well as the ILB VIP. This range must not overlap with
-     * any other ranges in use within the cluster's network.
-     * 
- * - * string master_ipv4_cidr_block = 3; - * @param value The masterIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setMasterIpv4CidrBlock( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - masterIpv4CidrBlock_ = value; - onChanged(); - return this; - } - /** - *
-     * The IP range in CIDR notation to use for the hosted master network. This
-     * range will be used for assigning internal IP addresses to the master or
-     * set of masters, as well as the ILB VIP. This range must not overlap with
-     * any other ranges in use within the cluster's network.
-     * 
- * - * string master_ipv4_cidr_block = 3; - * @return This builder for chaining. - */ - public Builder clearMasterIpv4CidrBlock() { - - masterIpv4CidrBlock_ = getDefaultInstance().getMasterIpv4CidrBlock(); - onChanged(); - return this; - } - /** - *
-     * The IP range in CIDR notation to use for the hosted master network. This
-     * range will be used for assigning internal IP addresses to the master or
-     * set of masters, as well as the ILB VIP. This range must not overlap with
-     * any other ranges in use within the cluster's network.
-     * 
- * - * string master_ipv4_cidr_block = 3; - * @param value The bytes for masterIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setMasterIpv4CidrBlockBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - masterIpv4CidrBlock_ = value; - onChanged(); - return this; - } - - private java.lang.Object privateEndpoint_ = ""; - /** - *
-     * Output only. The internal IP address of this cluster's master endpoint.
-     * 
- * - * string private_endpoint = 4; - * @return The privateEndpoint. - */ - public java.lang.String getPrivateEndpoint() { - java.lang.Object ref = privateEndpoint_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - privateEndpoint_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. The internal IP address of this cluster's master endpoint.
-     * 
- * - * string private_endpoint = 4; - * @return The bytes for privateEndpoint. - */ - public com.google.protobuf.ByteString - getPrivateEndpointBytes() { - java.lang.Object ref = privateEndpoint_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - privateEndpoint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. The internal IP address of this cluster's master endpoint.
-     * 
- * - * string private_endpoint = 4; - * @param value The privateEndpoint to set. - * @return This builder for chaining. - */ - public Builder setPrivateEndpoint( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - privateEndpoint_ = value; - onChanged(); - return this; - } - /** - *
-     * Output only. The internal IP address of this cluster's master endpoint.
-     * 
- * - * string private_endpoint = 4; - * @return This builder for chaining. - */ - public Builder clearPrivateEndpoint() { - - privateEndpoint_ = getDefaultInstance().getPrivateEndpoint(); - onChanged(); - return this; - } - /** - *
-     * Output only. The internal IP address of this cluster's master endpoint.
-     * 
- * - * string private_endpoint = 4; - * @param value The bytes for privateEndpoint to set. - * @return This builder for chaining. - */ - public Builder setPrivateEndpointBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - privateEndpoint_ = value; - onChanged(); - return this; - } - - private java.lang.Object publicEndpoint_ = ""; - /** - *
-     * Output only. The external IP address of this cluster's master endpoint.
-     * 
- * - * string public_endpoint = 5; - * @return The publicEndpoint. - */ - public java.lang.String getPublicEndpoint() { - java.lang.Object ref = publicEndpoint_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - publicEndpoint_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. The external IP address of this cluster's master endpoint.
-     * 
- * - * string public_endpoint = 5; - * @return The bytes for publicEndpoint. - */ - public com.google.protobuf.ByteString - getPublicEndpointBytes() { - java.lang.Object ref = publicEndpoint_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - publicEndpoint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. The external IP address of this cluster's master endpoint.
-     * 
- * - * string public_endpoint = 5; - * @param value The publicEndpoint to set. - * @return This builder for chaining. - */ - public Builder setPublicEndpoint( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - publicEndpoint_ = value; - onChanged(); - return this; - } - /** - *
-     * Output only. The external IP address of this cluster's master endpoint.
-     * 
- * - * string public_endpoint = 5; - * @return This builder for chaining. - */ - public Builder clearPublicEndpoint() { - - publicEndpoint_ = getDefaultInstance().getPublicEndpoint(); - onChanged(); - return this; - } - /** - *
-     * Output only. The external IP address of this cluster's master endpoint.
-     * 
- * - * string public_endpoint = 5; - * @param value The bytes for publicEndpoint to set. - * @return This builder for chaining. - */ - public Builder setPublicEndpointBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - publicEndpoint_ = value; - onChanged(); - return this; - } - - private java.lang.Object peeringName_ = ""; - /** - *
-     * Output only. The peering name in the customer VPC used by this cluster.
-     * 
- * - * string peering_name = 7; - * @return The peeringName. - */ - public java.lang.String getPeeringName() { - java.lang.Object ref = peeringName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - peeringName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. The peering name in the customer VPC used by this cluster.
-     * 
- * - * string peering_name = 7; - * @return The bytes for peeringName. - */ - public com.google.protobuf.ByteString - getPeeringNameBytes() { - java.lang.Object ref = peeringName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - peeringName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. The peering name in the customer VPC used by this cluster.
-     * 
- * - * string peering_name = 7; - * @param value The peeringName to set. - * @return This builder for chaining. - */ - public Builder setPeeringName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - peeringName_ = value; - onChanged(); - return this; - } - /** - *
-     * Output only. The peering name in the customer VPC used by this cluster.
-     * 
- * - * string peering_name = 7; - * @return This builder for chaining. - */ - public Builder clearPeeringName() { - - peeringName_ = getDefaultInstance().getPeeringName(); - onChanged(); - return this; - } - /** - *
-     * Output only. The peering name in the customer VPC used by this cluster.
-     * 
- * - * string peering_name = 7; - * @param value The bytes for peeringName to set. - * @return This builder for chaining. - */ - public Builder setPeeringNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - peeringName_ = value; - onChanged(); - return this; - } - - private com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig masterGlobalAccessConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig, com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.Builder, com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfigOrBuilder> masterGlobalAccessConfigBuilder_; - /** - *
-     * Controls master global access settings.
-     * 
- * - * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * @return Whether the masterGlobalAccessConfig field is set. - */ - public boolean hasMasterGlobalAccessConfig() { - return masterGlobalAccessConfigBuilder_ != null || masterGlobalAccessConfig_ != null; - } - /** - *
-     * Controls master global access settings.
-     * 
- * - * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * @return The masterGlobalAccessConfig. - */ - public com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig getMasterGlobalAccessConfig() { - if (masterGlobalAccessConfigBuilder_ == null) { - return masterGlobalAccessConfig_ == null ? com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance() : masterGlobalAccessConfig_; - } else { - return masterGlobalAccessConfigBuilder_.getMessage(); - } - } - /** - *
-     * Controls master global access settings.
-     * 
- * - * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - */ - public Builder setMasterGlobalAccessConfig(com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig value) { - if (masterGlobalAccessConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - masterGlobalAccessConfig_ = value; - onChanged(); - } else { - masterGlobalAccessConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Controls master global access settings.
-     * 
- * - * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - */ - public Builder setMasterGlobalAccessConfig( - com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.Builder builderForValue) { - if (masterGlobalAccessConfigBuilder_ == null) { - masterGlobalAccessConfig_ = builderForValue.build(); - onChanged(); - } else { - masterGlobalAccessConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Controls master global access settings.
-     * 
- * - * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - */ - public Builder mergeMasterGlobalAccessConfig(com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig value) { - if (masterGlobalAccessConfigBuilder_ == null) { - if (masterGlobalAccessConfig_ != null) { - masterGlobalAccessConfig_ = - com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.newBuilder(masterGlobalAccessConfig_).mergeFrom(value).buildPartial(); - } else { - masterGlobalAccessConfig_ = value; - } - onChanged(); - } else { - masterGlobalAccessConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Controls master global access settings.
-     * 
- * - * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - */ - public Builder clearMasterGlobalAccessConfig() { - if (masterGlobalAccessConfigBuilder_ == null) { - masterGlobalAccessConfig_ = null; - onChanged(); - } else { - masterGlobalAccessConfig_ = null; - masterGlobalAccessConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Controls master global access settings.
-     * 
- * - * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - */ - public com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.Builder getMasterGlobalAccessConfigBuilder() { - - onChanged(); - return getMasterGlobalAccessConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Controls master global access settings.
-     * 
- * - * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - */ - public com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfigOrBuilder getMasterGlobalAccessConfigOrBuilder() { - if (masterGlobalAccessConfigBuilder_ != null) { - return masterGlobalAccessConfigBuilder_.getMessageOrBuilder(); - } else { - return masterGlobalAccessConfig_ == null ? - com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance() : masterGlobalAccessConfig_; - } - } - /** - *
-     * Controls master global access settings.
-     * 
- * - * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig, com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.Builder, com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfigOrBuilder> - getMasterGlobalAccessConfigFieldBuilder() { - if (masterGlobalAccessConfigBuilder_ == null) { - masterGlobalAccessConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig, com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.Builder, com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfigOrBuilder>( - getMasterGlobalAccessConfig(), - getParentForChildren(), - isClean()); - masterGlobalAccessConfig_ = null; - } - return masterGlobalAccessConfigBuilder_; - } - - 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; - 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(); - 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; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index a3fa6c4d2b32..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfigOrBuilder.java +++ /dev/null @@ -1,166 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface PrivateClusterConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.PrivateClusterConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether nodes have internal IP addresses only. If enabled, all nodes are
-   * given only RFC 1918 private addresses and communicate with the master via
-   * private networking.
-   * 
- * - * bool enable_private_nodes = 1; - * @return The enablePrivateNodes. - */ - boolean getEnablePrivateNodes(); - - /** - *
-   * Whether the master's internal IP address is used as the cluster endpoint.
-   * 
- * - * bool enable_private_endpoint = 2; - * @return The enablePrivateEndpoint. - */ - boolean getEnablePrivateEndpoint(); - - /** - *
-   * The IP range in CIDR notation to use for the hosted master network. This
-   * range will be used for assigning internal IP addresses to the master or
-   * set of masters, as well as the ILB VIP. This range must not overlap with
-   * any other ranges in use within the cluster's network.
-   * 
- * - * string master_ipv4_cidr_block = 3; - * @return The masterIpv4CidrBlock. - */ - java.lang.String getMasterIpv4CidrBlock(); - /** - *
-   * The IP range in CIDR notation to use for the hosted master network. This
-   * range will be used for assigning internal IP addresses to the master or
-   * set of masters, as well as the ILB VIP. This range must not overlap with
-   * any other ranges in use within the cluster's network.
-   * 
- * - * string master_ipv4_cidr_block = 3; - * @return The bytes for masterIpv4CidrBlock. - */ - com.google.protobuf.ByteString - getMasterIpv4CidrBlockBytes(); - - /** - *
-   * Output only. The internal IP address of this cluster's master endpoint.
-   * 
- * - * string private_endpoint = 4; - * @return The privateEndpoint. - */ - java.lang.String getPrivateEndpoint(); - /** - *
-   * Output only. The internal IP address of this cluster's master endpoint.
-   * 
- * - * string private_endpoint = 4; - * @return The bytes for privateEndpoint. - */ - com.google.protobuf.ByteString - getPrivateEndpointBytes(); - - /** - *
-   * Output only. The external IP address of this cluster's master endpoint.
-   * 
- * - * string public_endpoint = 5; - * @return The publicEndpoint. - */ - java.lang.String getPublicEndpoint(); - /** - *
-   * Output only. The external IP address of this cluster's master endpoint.
-   * 
- * - * string public_endpoint = 5; - * @return The bytes for publicEndpoint. - */ - com.google.protobuf.ByteString - getPublicEndpointBytes(); - - /** - *
-   * Output only. The peering name in the customer VPC used by this cluster.
-   * 
- * - * string peering_name = 7; - * @return The peeringName. - */ - java.lang.String getPeeringName(); - /** - *
-   * Output only. The peering name in the customer VPC used by this cluster.
-   * 
- * - * string peering_name = 7; - * @return The bytes for peeringName. - */ - com.google.protobuf.ByteString - getPeeringNameBytes(); - - /** - *
-   * Controls master global access settings.
-   * 
- * - * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * @return Whether the masterGlobalAccessConfig field is set. - */ - boolean hasMasterGlobalAccessConfig(); - /** - *
-   * Controls master global access settings.
-   * 
- * - * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * @return The masterGlobalAccessConfig. - */ - com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig getMasterGlobalAccessConfig(); - /** - *
-   * Controls master global access settings.
-   * 
- * - * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - */ - com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfigOrBuilder getMasterGlobalAccessConfigOrBuilder(); - - /** - *
-   * 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 deleted file mode 100644 index 637e5e6e56d3..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterMasterGlobalAccessConfig.java +++ /dev/null @@ -1,490 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Configuration for controlling master global access settings.
- * 
- * - * Protobuf type {@code google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig} - */ -public final class PrivateClusterMasterGlobalAccessConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig) - PrivateClusterMasterGlobalAccessConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use PrivateClusterMasterGlobalAccessConfig.newBuilder() to construct. - private PrivateClusterMasterGlobalAccessConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PrivateClusterMasterGlobalAccessConfig() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PrivateClusterMasterGlobalAccessConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_PrivateClusterMasterGlobalAccessConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_PrivateClusterMasterGlobalAccessConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.class, com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-   * Whenever master is accessible globally or not.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - 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(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_PrivateClusterMasterGlobalAccessConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig build() { - com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig buildPartial() { - com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig result = new com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig) { - return mergeFrom((com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig other) { - if (other == com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 boolean enabled_ ; - /** - *
-     * Whenever master is accessible globally or not.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Whenever master is accessible globally or not.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whenever master is accessible globally or not.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig) - private static final com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig(); - } - - public static com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrivateClusterMasterGlobalAccessConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 44f44d9c8e79..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterMasterGlobalAccessConfigOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface PrivateClusterMasterGlobalAccessConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whenever master is accessible globally or not.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/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 deleted file mode 100644 index d669d06097d5..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateIPv6GoogleAccess.java +++ /dev/null @@ -1,168 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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 priate IPv6 access to and from Google Services
-   * 
- * - * PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL = 3; - */ - PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL(3), - UNRECOGNIZED(-1), - ; - - /** - *
-   * Default value. Same as DISABLED
-   * 
- * - * PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0; - */ - public static final int PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED_VALUE = 0; - /** - *
-   * No private access to or from Google Services
-   * 
- * - * PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED = 1; - */ - public static final int PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED_VALUE = 1; - /** - *
-   * Enables private IPv6 access to Google Services from GKE
-   * 
- * - * PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE = 2; - */ - public static final int PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE_VALUE = 2; - /** - *
-   * Enables priate IPv6 access to and from Google Services
-   * 
- * - * PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL = 3; - */ - public static final int PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL_VALUE = 3; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PrivateIPv6GoogleAccess valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static PrivateIPv6GoogleAccess forNumber(int value) { - switch (value) { - case 0: return PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED; - case 1: return PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED; - case 2: return PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE; - case 3: return PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - 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 deleted file mode 100644 index 9371dacf3a03..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ProtectConfig.java +++ /dev/null @@ -1,966 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode result = com.google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode.valueOf(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(); - if (workloadConfigBuilder_ == null) { - workloadConfig_ = null; - } else { - workloadConfigBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - workloadVulnerabilityMode_ = 0; - 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_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); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - if (workloadConfigBuilder_ == null) { - result.workloadConfig_ = workloadConfig_; - } else { - result.workloadConfig_ = workloadConfigBuilder_.build(); - } - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - to_bitField0_ |= 0x00000002; - } - result.workloadVulnerabilityMode_ = workloadVulnerabilityMode_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.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; - onChanged(); - } else { - workloadConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - 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(); - onChanged(); - } else { - workloadConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - 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()) { - workloadConfig_ = - com.google.container.v1beta1.WorkloadConfig.newBuilder(workloadConfig_).mergeFrom(value).buildPartial(); - } else { - workloadConfig_ = value; - } - onChanged(); - } else { - workloadConfigBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - 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() { - if (workloadConfigBuilder_ == null) { - workloadConfig_ = null; - onChanged(); - } else { - workloadConfigBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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) { - bitField0_ |= 0x00000002; - workloadVulnerabilityMode_ = value; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode result = com.google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode.valueOf(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 deleted file mode 100644 index 4391f3115f90..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ProtectConfigOrBuilder.java +++ /dev/null @@ -1,67 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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/RecurringTimeWindow.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RecurringTimeWindow.java deleted file mode 100644 index 5c819ef79951..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RecurringTimeWindow.java +++ /dev/null @@ -1,979 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Represents an arbitrary window of time that recurs.
- * 
- * - * Protobuf type {@code google.container.v1beta1.RecurringTimeWindow} - */ -public final class RecurringTimeWindow extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.RecurringTimeWindow) - RecurringTimeWindowOrBuilder { -private static final long serialVersionUID = 0L; - // Use RecurringTimeWindow.newBuilder() to construct. - private RecurringTimeWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RecurringTimeWindow() { - recurrence_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RecurringTimeWindow(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_RecurringTimeWindow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_RecurringTimeWindow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.RecurringTimeWindow.class, com.google.container.v1beta1.RecurringTimeWindow.Builder.class); - } - - public static final int WINDOW_FIELD_NUMBER = 1; - private com.google.container.v1beta1.TimeWindow window_; - /** - *
-   * The window of the first recurrence.
-   * 
- * - * .google.container.v1beta1.TimeWindow window = 1; - * @return Whether the window field is set. - */ - @java.lang.Override - public boolean hasWindow() { - return window_ != null; - } - /** - *
-   * The window of the first recurrence.
-   * 
- * - * .google.container.v1beta1.TimeWindow window = 1; - * @return The window. - */ - @java.lang.Override - public com.google.container.v1beta1.TimeWindow getWindow() { - return window_ == null ? com.google.container.v1beta1.TimeWindow.getDefaultInstance() : window_; - } - /** - *
-   * The window of the first recurrence.
-   * 
- * - * .google.container.v1beta1.TimeWindow window = 1; - */ - @java.lang.Override - public com.google.container.v1beta1.TimeWindowOrBuilder getWindowOrBuilder() { - return getWindow(); - } - - public static final int RECURRENCE_FIELD_NUMBER = 2; - private volatile java.lang.Object recurrence_; - /** - *
-   * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
-   * this window reccurs. They go on for the span of time between the start and
-   * end time.
-   * For example, to have something repeat every weekday, you'd use:
-   * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
-   * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
-   * `FREQ=DAILY`
-   * For the first weekend of every month:
-   * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
-   * This specifies how frequently the window starts. Eg, if you wanted to have
-   * a 9-5 UTC-4 window every weekday, you'd use something like:
-   * ```
-   * start time = 2019-01-01T09:00:00-0400
-   * end time = 2019-01-01T17:00:00-0400
-   * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
-   * ```
-   * Windows can span multiple days. Eg, to make the window encompass every
-   * weekend from midnight Saturday till the last minute of Sunday UTC:
-   * ```
-   * start time = 2019-01-05T00:00:00Z
-   * end time = 2019-01-07T23:59:00Z
-   * recurrence = FREQ=WEEKLY;BYDAY=SA
-   * ```
-   * Note the start and end time's specific dates are largely arbitrary except
-   * to specify duration of the window and when it first starts.
-   * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
-   * 
- * - * string recurrence = 2; - * @return The recurrence. - */ - @java.lang.Override - public java.lang.String getRecurrence() { - java.lang.Object ref = recurrence_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - recurrence_ = s; - return s; - } - } - /** - *
-   * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
-   * this window reccurs. They go on for the span of time between the start and
-   * end time.
-   * For example, to have something repeat every weekday, you'd use:
-   * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
-   * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
-   * `FREQ=DAILY`
-   * For the first weekend of every month:
-   * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
-   * This specifies how frequently the window starts. Eg, if you wanted to have
-   * a 9-5 UTC-4 window every weekday, you'd use something like:
-   * ```
-   * start time = 2019-01-01T09:00:00-0400
-   * end time = 2019-01-01T17:00:00-0400
-   * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
-   * ```
-   * Windows can span multiple days. Eg, to make the window encompass every
-   * weekend from midnight Saturday till the last minute of Sunday UTC:
-   * ```
-   * start time = 2019-01-05T00:00:00Z
-   * end time = 2019-01-07T23:59:00Z
-   * recurrence = FREQ=WEEKLY;BYDAY=SA
-   * ```
-   * Note the start and end time's specific dates are largely arbitrary except
-   * to specify duration of the window and when it first starts.
-   * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
-   * 
- * - * string recurrence = 2; - * @return The bytes for recurrence. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRecurrenceBytes() { - java.lang.Object ref = recurrence_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - recurrence_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (window_ != null) { - output.writeMessage(1, getWindow()); - } - if (!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 (window_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (windowBuilder_ == null) { - window_ = null; - } else { - window_ = null; - windowBuilder_ = null; - } - recurrence_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_RecurringTimeWindow_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.RecurringTimeWindow getDefaultInstanceForType() { - return com.google.container.v1beta1.RecurringTimeWindow.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.RecurringTimeWindow build() { - com.google.container.v1beta1.RecurringTimeWindow result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.RecurringTimeWindow buildPartial() { - com.google.container.v1beta1.RecurringTimeWindow result = new com.google.container.v1beta1.RecurringTimeWindow(this); - if (windowBuilder_ == null) { - result.window_ = window_; - } else { - result.window_ = windowBuilder_.build(); - } - result.recurrence_ = recurrence_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.RecurringTimeWindow) { - return mergeFrom((com.google.container.v1beta1.RecurringTimeWindow)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.RecurringTimeWindow other) { - if (other == com.google.container.v1beta1.RecurringTimeWindow.getDefaultInstance()) return this; - if (other.hasWindow()) { - mergeWindow(other.getWindow()); - } - if (!other.getRecurrence().isEmpty()) { - recurrence_ = other.recurrence_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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); - - break; - } // case 10 - case 18: { - recurrence_ = input.readStringRequireUtf8(); - - 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 com.google.container.v1beta1.TimeWindow window_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.TimeWindow, com.google.container.v1beta1.TimeWindow.Builder, com.google.container.v1beta1.TimeWindowOrBuilder> windowBuilder_; - /** - *
-     * The window of the first recurrence.
-     * 
- * - * .google.container.v1beta1.TimeWindow window = 1; - * @return Whether the window field is set. - */ - public boolean hasWindow() { - return windowBuilder_ != null || window_ != null; - } - /** - *
-     * The window of the first recurrence.
-     * 
- * - * .google.container.v1beta1.TimeWindow window = 1; - * @return The window. - */ - public com.google.container.v1beta1.TimeWindow getWindow() { - if (windowBuilder_ == null) { - return window_ == null ? com.google.container.v1beta1.TimeWindow.getDefaultInstance() : window_; - } else { - return windowBuilder_.getMessage(); - } - } - /** - *
-     * The window of the first recurrence.
-     * 
- * - * .google.container.v1beta1.TimeWindow window = 1; - */ - public Builder setWindow(com.google.container.v1beta1.TimeWindow value) { - if (windowBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - window_ = value; - onChanged(); - } else { - windowBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The window of the first recurrence.
-     * 
- * - * .google.container.v1beta1.TimeWindow window = 1; - */ - public Builder setWindow( - com.google.container.v1beta1.TimeWindow.Builder builderForValue) { - if (windowBuilder_ == null) { - window_ = builderForValue.build(); - onChanged(); - } else { - windowBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The window of the first recurrence.
-     * 
- * - * .google.container.v1beta1.TimeWindow window = 1; - */ - public Builder mergeWindow(com.google.container.v1beta1.TimeWindow value) { - if (windowBuilder_ == null) { - if (window_ != null) { - window_ = - com.google.container.v1beta1.TimeWindow.newBuilder(window_).mergeFrom(value).buildPartial(); - } else { - window_ = value; - } - onChanged(); - } else { - windowBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The window of the first recurrence.
-     * 
- * - * .google.container.v1beta1.TimeWindow window = 1; - */ - public Builder clearWindow() { - if (windowBuilder_ == null) { - window_ = null; - onChanged(); - } else { - window_ = null; - windowBuilder_ = null; - } - - return this; - } - /** - *
-     * The window of the first recurrence.
-     * 
- * - * .google.container.v1beta1.TimeWindow window = 1; - */ - public com.google.container.v1beta1.TimeWindow.Builder getWindowBuilder() { - - onChanged(); - return getWindowFieldBuilder().getBuilder(); - } - /** - *
-     * The window of the first recurrence.
-     * 
- * - * .google.container.v1beta1.TimeWindow window = 1; - */ - public com.google.container.v1beta1.TimeWindowOrBuilder getWindowOrBuilder() { - if (windowBuilder_ != null) { - return windowBuilder_.getMessageOrBuilder(); - } else { - return window_ == null ? - com.google.container.v1beta1.TimeWindow.getDefaultInstance() : window_; - } - } - /** - *
-     * The window of the first recurrence.
-     * 
- * - * .google.container.v1beta1.TimeWindow window = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.TimeWindow, com.google.container.v1beta1.TimeWindow.Builder, com.google.container.v1beta1.TimeWindowOrBuilder> - getWindowFieldBuilder() { - if (windowBuilder_ == null) { - windowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.TimeWindow, com.google.container.v1beta1.TimeWindow.Builder, com.google.container.v1beta1.TimeWindowOrBuilder>( - getWindow(), - getParentForChildren(), - isClean()); - window_ = null; - } - return windowBuilder_; - } - - private java.lang.Object recurrence_ = ""; - /** - *
-     * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
-     * this window reccurs. They go on for the span of time between the start and
-     * end time.
-     * For example, to have something repeat every weekday, you'd use:
-     * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
-     * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
-     * `FREQ=DAILY`
-     * For the first weekend of every month:
-     * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
-     * This specifies how frequently the window starts. Eg, if you wanted to have
-     * a 9-5 UTC-4 window every weekday, you'd use something like:
-     * ```
-     * start time = 2019-01-01T09:00:00-0400
-     * end time = 2019-01-01T17:00:00-0400
-     * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
-     * ```
-     * Windows can span multiple days. Eg, to make the window encompass every
-     * weekend from midnight Saturday till the last minute of Sunday UTC:
-     * ```
-     * start time = 2019-01-05T00:00:00Z
-     * end time = 2019-01-07T23:59:00Z
-     * recurrence = FREQ=WEEKLY;BYDAY=SA
-     * ```
-     * Note the start and end time's specific dates are largely arbitrary except
-     * to specify duration of the window and when it first starts.
-     * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
-     * 
- * - * string recurrence = 2; - * @return The recurrence. - */ - public java.lang.String getRecurrence() { - java.lang.Object ref = recurrence_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - recurrence_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
-     * this window reccurs. They go on for the span of time between the start and
-     * end time.
-     * For example, to have something repeat every weekday, you'd use:
-     * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
-     * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
-     * `FREQ=DAILY`
-     * For the first weekend of every month:
-     * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
-     * This specifies how frequently the window starts. Eg, if you wanted to have
-     * a 9-5 UTC-4 window every weekday, you'd use something like:
-     * ```
-     * start time = 2019-01-01T09:00:00-0400
-     * end time = 2019-01-01T17:00:00-0400
-     * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
-     * ```
-     * Windows can span multiple days. Eg, to make the window encompass every
-     * weekend from midnight Saturday till the last minute of Sunday UTC:
-     * ```
-     * start time = 2019-01-05T00:00:00Z
-     * end time = 2019-01-07T23:59:00Z
-     * recurrence = FREQ=WEEKLY;BYDAY=SA
-     * ```
-     * Note the start and end time's specific dates are largely arbitrary except
-     * to specify duration of the window and when it first starts.
-     * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
-     * 
- * - * string recurrence = 2; - * @return The bytes for recurrence. - */ - public com.google.protobuf.ByteString - getRecurrenceBytes() { - java.lang.Object ref = recurrence_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - recurrence_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
-     * this window reccurs. They go on for the span of time between the start and
-     * end time.
-     * For example, to have something repeat every weekday, you'd use:
-     * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
-     * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
-     * `FREQ=DAILY`
-     * For the first weekend of every month:
-     * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
-     * This specifies how frequently the window starts. Eg, if you wanted to have
-     * a 9-5 UTC-4 window every weekday, you'd use something like:
-     * ```
-     * start time = 2019-01-01T09:00:00-0400
-     * end time = 2019-01-01T17:00:00-0400
-     * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
-     * ```
-     * Windows can span multiple days. Eg, to make the window encompass every
-     * weekend from midnight Saturday till the last minute of Sunday UTC:
-     * ```
-     * start time = 2019-01-05T00:00:00Z
-     * end time = 2019-01-07T23:59:00Z
-     * recurrence = FREQ=WEEKLY;BYDAY=SA
-     * ```
-     * Note the start and end time's specific dates are largely arbitrary except
-     * to specify duration of the window and when it first starts.
-     * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
-     * 
- * - * string recurrence = 2; - * @param value The recurrence to set. - * @return This builder for chaining. - */ - public Builder setRecurrence( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - recurrence_ = value; - onChanged(); - return this; - } - /** - *
-     * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
-     * this window reccurs. They go on for the span of time between the start and
-     * end time.
-     * For example, to have something repeat every weekday, you'd use:
-     * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
-     * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
-     * `FREQ=DAILY`
-     * For the first weekend of every month:
-     * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
-     * This specifies how frequently the window starts. Eg, if you wanted to have
-     * a 9-5 UTC-4 window every weekday, you'd use something like:
-     * ```
-     * start time = 2019-01-01T09:00:00-0400
-     * end time = 2019-01-01T17:00:00-0400
-     * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
-     * ```
-     * Windows can span multiple days. Eg, to make the window encompass every
-     * weekend from midnight Saturday till the last minute of Sunday UTC:
-     * ```
-     * start time = 2019-01-05T00:00:00Z
-     * end time = 2019-01-07T23:59:00Z
-     * recurrence = FREQ=WEEKLY;BYDAY=SA
-     * ```
-     * Note the start and end time's specific dates are largely arbitrary except
-     * to specify duration of the window and when it first starts.
-     * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
-     * 
- * - * string recurrence = 2; - * @return This builder for chaining. - */ - public Builder clearRecurrence() { - - recurrence_ = getDefaultInstance().getRecurrence(); - onChanged(); - return this; - } - /** - *
-     * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
-     * this window reccurs. They go on for the span of time between the start and
-     * end time.
-     * For example, to have something repeat every weekday, you'd use:
-     * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
-     * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
-     * `FREQ=DAILY`
-     * For the first weekend of every month:
-     * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
-     * This specifies how frequently the window starts. Eg, if you wanted to have
-     * a 9-5 UTC-4 window every weekday, you'd use something like:
-     * ```
-     * start time = 2019-01-01T09:00:00-0400
-     * end time = 2019-01-01T17:00:00-0400
-     * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
-     * ```
-     * Windows can span multiple days. Eg, to make the window encompass every
-     * weekend from midnight Saturday till the last minute of Sunday UTC:
-     * ```
-     * start time = 2019-01-05T00:00:00Z
-     * end time = 2019-01-07T23:59:00Z
-     * recurrence = FREQ=WEEKLY;BYDAY=SA
-     * ```
-     * Note the start and end time's specific dates are largely arbitrary except
-     * to specify duration of the window and when it first starts.
-     * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
-     * 
- * - * string recurrence = 2; - * @param value The bytes for recurrence to set. - * @return This builder for chaining. - */ - public Builder setRecurrenceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - recurrence_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.RecurringTimeWindow) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.RecurringTimeWindow) - private static final com.google.container.v1beta1.RecurringTimeWindow DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.RecurringTimeWindow(); - } - - public static com.google.container.v1beta1.RecurringTimeWindow getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecurringTimeWindow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index ae5469cba867..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RecurringTimeWindowOrBuilder.java +++ /dev/null @@ -1,106 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface RecurringTimeWindowOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.RecurringTimeWindow) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The window of the first recurrence.
-   * 
- * - * .google.container.v1beta1.TimeWindow window = 1; - * @return Whether the window field is set. - */ - boolean hasWindow(); - /** - *
-   * The window of the first recurrence.
-   * 
- * - * .google.container.v1beta1.TimeWindow window = 1; - * @return The window. - */ - com.google.container.v1beta1.TimeWindow getWindow(); - /** - *
-   * The window of the first recurrence.
-   * 
- * - * .google.container.v1beta1.TimeWindow window = 1; - */ - com.google.container.v1beta1.TimeWindowOrBuilder getWindowOrBuilder(); - - /** - *
-   * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
-   * this window reccurs. They go on for the span of time between the start and
-   * end time.
-   * For example, to have something repeat every weekday, you'd use:
-   * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
-   * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
-   * `FREQ=DAILY`
-   * For the first weekend of every month:
-   * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
-   * This specifies how frequently the window starts. Eg, if you wanted to have
-   * a 9-5 UTC-4 window every weekday, you'd use something like:
-   * ```
-   * start time = 2019-01-01T09:00:00-0400
-   * end time = 2019-01-01T17:00:00-0400
-   * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
-   * ```
-   * Windows can span multiple days. Eg, to make the window encompass every
-   * weekend from midnight Saturday till the last minute of Sunday UTC:
-   * ```
-   * start time = 2019-01-05T00:00:00Z
-   * end time = 2019-01-07T23:59:00Z
-   * recurrence = FREQ=WEEKLY;BYDAY=SA
-   * ```
-   * Note the start and end time's specific dates are largely arbitrary except
-   * to specify duration of the window and when it first starts.
-   * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
-   * 
- * - * string recurrence = 2; - * @return The recurrence. - */ - java.lang.String getRecurrence(); - /** - *
-   * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
-   * this window reccurs. They go on for the span of time between the start and
-   * end time.
-   * For example, to have something repeat every weekday, you'd use:
-   * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
-   * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
-   * `FREQ=DAILY`
-   * For the first weekend of every month:
-   * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
-   * This specifies how frequently the window starts. Eg, if you wanted to have
-   * a 9-5 UTC-4 window every weekday, you'd use something like:
-   * ```
-   * start time = 2019-01-01T09:00:00-0400
-   * end time = 2019-01-01T17:00:00-0400
-   * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
-   * ```
-   * Windows can span multiple days. Eg, to make the window encompass every
-   * weekend from midnight Saturday till the last minute of Sunday UTC:
-   * ```
-   * start time = 2019-01-05T00:00:00Z
-   * end time = 2019-01-07T23:59:00Z
-   * recurrence = FREQ=WEEKLY;BYDAY=SA
-   * ```
-   * Note the start and end time's specific dates are largely arbitrary except
-   * to specify duration of the window and when it first starts.
-   * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
-   * 
- * - * string recurrence = 2; - * @return The bytes for recurrence. - */ - com.google.protobuf.ByteString - getRecurrenceBytes(); -} diff --git a/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 deleted file mode 100644 index e175fc42804c..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReleaseChannel.java +++ /dev/null @@ -1,716 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * ReleaseChannel indicates which release channel a cluster is
- * subscribed to. Release channels are arranged in order of risk.
- * When a cluster is subscribed to a release channel, Google maintains
- * both the master version and the node version. Node auto-upgrade
- * defaults to true and cannot be disabled.
- * 
- * - * Protobuf type {@code google.container.v1beta1.ReleaseChannel} - */ -public final class ReleaseChannel extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.ReleaseChannel) - ReleaseChannelOrBuilder { -private static final long serialVersionUID = 0L; - // Use ReleaseChannel.newBuilder() to construct. - private ReleaseChannel(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReleaseChannel() { - channel_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReleaseChannel(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * channel specifies which release channel the cluster is subscribed to.
-   * 
- * - * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; - * @return The enum numeric value on the wire for channel. - */ - @java.lang.Override public int getChannelValue() { - return channel_; - } - /** - *
-   * channel specifies which release channel the cluster is subscribed to.
-   * 
- * - * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; - * @return The channel. - */ - @java.lang.Override public com.google.container.v1beta1.ReleaseChannel.Channel getChannel() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.ReleaseChannel.Channel result = com.google.container.v1beta1.ReleaseChannel.Channel.valueOf(channel_); - return result == null ? com.google.container.v1beta1.ReleaseChannel.Channel.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (channel_ != com.google.container.v1beta1.ReleaseChannel.Channel.UNSPECIFIED.getNumber()) { - output.writeEnum(1, channel_); - } - 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(); - channel_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ReleaseChannel_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.ReleaseChannel getDefaultInstanceForType() { - return com.google.container.v1beta1.ReleaseChannel.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.ReleaseChannel build() { - com.google.container.v1beta1.ReleaseChannel result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.ReleaseChannel buildPartial() { - com.google.container.v1beta1.ReleaseChannel result = new com.google.container.v1beta1.ReleaseChannel(this); - result.channel_ = channel_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.ReleaseChannel) { - return mergeFrom((com.google.container.v1beta1.ReleaseChannel)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.ReleaseChannel other) { - if (other == com.google.container.v1beta1.ReleaseChannel.getDefaultInstance()) return this; - if (other.channel_ != 0) { - setChannelValue(other.getChannelValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 channel_ = 0; - /** - *
-     * channel specifies which release channel the cluster is subscribed to.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; - * @return The enum numeric value on the wire for channel. - */ - @java.lang.Override public int getChannelValue() { - return channel_; - } - /** - *
-     * channel specifies which release channel the cluster is subscribed to.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; - * @param value The enum numeric value on the wire for channel to set. - * @return This builder for chaining. - */ - public Builder setChannelValue(int value) { - - channel_ = value; - onChanged(); - return this; - } - /** - *
-     * channel specifies which release channel the cluster is subscribed to.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; - * @return The channel. - */ - @java.lang.Override - public com.google.container.v1beta1.ReleaseChannel.Channel getChannel() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.ReleaseChannel.Channel result = com.google.container.v1beta1.ReleaseChannel.Channel.valueOf(channel_); - return result == null ? com.google.container.v1beta1.ReleaseChannel.Channel.UNRECOGNIZED : result; - } - /** - *
-     * channel specifies which release channel the cluster is subscribed to.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; - * @param value The channel to set. - * @return This builder for chaining. - */ - public Builder setChannel(com.google.container.v1beta1.ReleaseChannel.Channel value) { - if (value == null) { - throw new NullPointerException(); - } - - channel_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * channel specifies which release channel the cluster is subscribed to.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; - * @return This builder for chaining. - */ - public Builder clearChannel() { - - channel_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ReleaseChannel) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.ReleaseChannel) - private static final com.google.container.v1beta1.ReleaseChannel DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.ReleaseChannel(); - } - - public static com.google.container.v1beta1.ReleaseChannel getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReleaseChannel parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 5e51c768b5d3..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReleaseChannelOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface ReleaseChannelOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ReleaseChannel) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * channel specifies which release channel the cluster is subscribed to.
-   * 
- * - * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; - * @return The enum numeric value on the wire for channel. - */ - int getChannelValue(); - /** - *
-   * channel specifies which release channel the cluster is subscribed to.
-   * 
- * - * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; - * @return The channel. - */ - com.google.container.v1beta1.ReleaseChannel.Channel getChannel(); -} diff --git a/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 deleted file mode 100644 index 10518734002d..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReservationAffinity.java +++ /dev/null @@ -1,1126 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
- * is the configuration of desired reservation which instances could take
- * capacity from.
- * 
- * - * Protobuf type {@code google.container.v1beta1.ReservationAffinity} - */ -public final class ReservationAffinity extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.ReservationAffinity) - ReservationAffinityOrBuilder { -private static final long serialVersionUID = 0L; - // Use ReservationAffinity.newBuilder() to construct. - private ReservationAffinity(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReservationAffinity() { - consumeReservationType_ = 0; - key_ = ""; - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReservationAffinity(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * Corresponds to the type of reservation consumption.
-   * 
- * - * .google.container.v1beta1.ReservationAffinity.Type consume_reservation_type = 1; - * @return The enum numeric value on the wire for consumeReservationType. - */ - @java.lang.Override public int getConsumeReservationTypeValue() { - return consumeReservationType_; - } - /** - *
-   * Corresponds to the type of reservation consumption.
-   * 
- * - * .google.container.v1beta1.ReservationAffinity.Type consume_reservation_type = 1; - * @return The consumeReservationType. - */ - @java.lang.Override public com.google.container.v1beta1.ReservationAffinity.Type getConsumeReservationType() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.ReservationAffinity.Type result = com.google.container.v1beta1.ReservationAffinity.Type.valueOf(consumeReservationType_); - return result == null ? com.google.container.v1beta1.ReservationAffinity.Type.UNRECOGNIZED : result; - } - - public static final int KEY_FIELD_NUMBER = 2; - private volatile java.lang.Object key_; - /** - *
-   * Corresponds to the label key of a reservation resource. To target a
-   * SPECIFIC_RESERVATION by name, specify
-   * "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; - private com.google.protobuf.LazyStringList values_; - /** - *
-   * Corresponds to the label value(s) of reservation resource(s).
-   * 
- * - * repeated string values = 3; - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList - getValuesList() { - return values_; - } - /** - *
-   * Corresponds to the label value(s) of reservation resource(s).
-   * 
- * - * repeated string values = 3; - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - *
-   * Corresponds to the label value(s) of reservation resource(s).
-   * 
- * - * repeated string values = 3; - * @param index The index of the element to return. - * @return The values at the given index. - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - *
-   * Corresponds to the label value(s) of reservation resource(s).
-   * 
- * - * repeated string values = 3; - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { - return values_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (consumeReservationType_ != com.google.container.v1beta1.ReservationAffinity.Type.UNSPECIFIED.getNumber()) { - output.writeEnum(1, consumeReservationType_); - } - if (!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(); - consumeReservationType_ = 0; - - key_ = ""; - - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ReservationAffinity_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.ReservationAffinity getDefaultInstanceForType() { - return com.google.container.v1beta1.ReservationAffinity.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.ReservationAffinity build() { - com.google.container.v1beta1.ReservationAffinity result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.ReservationAffinity buildPartial() { - com.google.container.v1beta1.ReservationAffinity result = new com.google.container.v1beta1.ReservationAffinity(this); - int from_bitField0_ = bitField0_; - result.consumeReservationType_ = consumeReservationType_; - result.key_ = key_; - if (((bitField0_ & 0x00000001) != 0)) { - values_ = values_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.values_ = values_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.ReservationAffinity) { - return mergeFrom((com.google.container.v1beta1.ReservationAffinity)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.ReservationAffinity other) { - if (other == com.google.container.v1beta1.ReservationAffinity.getDefaultInstance()) return this; - if (other.consumeReservationType_ != 0) { - setConsumeReservationTypeValue(other.getConsumeReservationTypeValue()); - } - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (!other.values_.isEmpty()) { - if (values_.isEmpty()) { - values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValuesIsMutable(); - values_.addAll(other.values_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 8 - case 18: { - key_ = input.readStringRequireUtf8(); - - 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; - onChanged(); - return this; - } - /** - *
-     * Corresponds to the type of reservation consumption.
-     * 
- * - * .google.container.v1beta1.ReservationAffinity.Type consume_reservation_type = 1; - * @return The consumeReservationType. - */ - @java.lang.Override - public com.google.container.v1beta1.ReservationAffinity.Type getConsumeReservationType() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.ReservationAffinity.Type result = com.google.container.v1beta1.ReservationAffinity.Type.valueOf(consumeReservationType_); - return result == null ? com.google.container.v1beta1.ReservationAffinity.Type.UNRECOGNIZED : result; - } - /** - *
-     * Corresponds to the type of reservation consumption.
-     * 
- * - * .google.container.v1beta1.ReservationAffinity.Type consume_reservation_type = 1; - * @param value The consumeReservationType to set. - * @return This builder for chaining. - */ - public Builder setConsumeReservationType(com.google.container.v1beta1.ReservationAffinity.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - consumeReservationType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Corresponds to the type of reservation consumption.
-     * 
- * - * .google.container.v1beta1.ReservationAffinity.Type consume_reservation_type = 1; - * @return This builder for chaining. - */ - public Builder clearConsumeReservationType() { - - consumeReservationType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object key_ = ""; - /** - *
-     * Corresponds to the label key of a reservation resource. To target a
-     * SPECIFIC_RESERVATION by name, specify
-     * "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; - 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(); - 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; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureValuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - values_ = new com.google.protobuf.LazyStringArrayList(values_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * Corresponds to the label value(s) of reservation resource(s).
-     * 
- * - * repeated string values = 3; - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList - getValuesList() { - return values_.getUnmodifiableView(); - } - /** - *
-     * Corresponds to the label value(s) of reservation resource(s).
-     * 
- * - * repeated string values = 3; - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - *
-     * Corresponds to the label value(s) of reservation resource(s).
-     * 
- * - * repeated string values = 3; - * @param index The index of the element to return. - * @return The values at the given index. - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - *
-     * Corresponds to the label value(s) of reservation resource(s).
-     * 
- * - * repeated string values = 3; - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { - return values_.getByteString(index); - } - /** - *
-     * Corresponds to the label value(s) of reservation resource(s).
-     * 
- * - * repeated string values = 3; - * @param index The index to set the value at. - * @param value The values to set. - * @return This builder for chaining. - */ - public Builder setValues( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * Corresponds to the label value(s) of reservation resource(s).
-     * 
- * - * repeated string values = 3; - * @param value The values to add. - * @return This builder for chaining. - */ - public Builder addValues( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.add(value); - onChanged(); - return this; - } - /** - *
-     * Corresponds to the label value(s) of reservation resource(s).
-     * 
- * - * repeated string values = 3; - * @param values The values to add. - * @return This builder for chaining. - */ - public Builder addAllValues( - java.lang.Iterable values) { - ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, values_); - onChanged(); - return this; - } - /** - *
-     * Corresponds to the label value(s) of reservation resource(s).
-     * 
- * - * repeated string values = 3; - * @return This builder for chaining. - */ - public Builder clearValues() { - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Corresponds to the label value(s) of reservation resource(s).
-     * 
- * - * repeated string values = 3; - * @param value The bytes of the values to add. - * @return This builder for chaining. - */ - public Builder addValuesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureValuesIsMutable(); - values_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ReservationAffinity) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.ReservationAffinity) - private static final com.google.container.v1beta1.ReservationAffinity DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.ReservationAffinity(); - } - - public static com.google.container.v1beta1.ReservationAffinity getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReservationAffinity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index d896b46050e3..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReservationAffinityOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface ReservationAffinityOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ReservationAffinity) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Corresponds to the type of reservation consumption.
-   * 
- * - * .google.container.v1beta1.ReservationAffinity.Type consume_reservation_type = 1; - * @return The enum numeric value on the wire for consumeReservationType. - */ - int getConsumeReservationTypeValue(); - /** - *
-   * Corresponds to the type of reservation consumption.
-   * 
- * - * .google.container.v1beta1.ReservationAffinity.Type consume_reservation_type = 1; - * @return The consumeReservationType. - */ - com.google.container.v1beta1.ReservationAffinity.Type getConsumeReservationType(); - - /** - *
-   * Corresponds to the label key of a reservation resource. To target a
-   * SPECIFIC_RESERVATION by name, specify
-   * "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 deleted file mode 100644 index 5e438f7528dd..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLabels.java +++ /dev/null @@ -1,738 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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.MapField internalGetMapField( - 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, - ""); - } - 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 java.lang.String getLabelsOrDefault( - java.lang.String key, - 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.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetLabels(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - 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(); - 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); - int from_bitField0_ = bitField0_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.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()); - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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()); - 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() { - onChanged();; - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - *
-     * 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 java.lang.String getLabelsOrDefault( - java.lang.String key, - 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() { - 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() { - 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); - 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); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 2ed02c6eef6e..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLabelsOrBuilder.java +++ /dev/null @@ -1,65 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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 deleted file mode 100644 index 6b3e3bb619d1..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLimit.java +++ /dev/null @@ -1,738 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Contains information about amount of some resource in the cluster.
- * For memory, value should be in GB.
- * 
- * - * Protobuf type {@code google.container.v1beta1.ResourceLimit} - */ -public final class ResourceLimit extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.ResourceLimit) - ResourceLimitOrBuilder { -private static final long serialVersionUID = 0L; - // Use ResourceLimit.newBuilder() to construct. - private ResourceLimit(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ResourceLimit() { - resourceType_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ResourceLimit(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ResourceLimit_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ResourceLimit_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.ResourceLimit.class, com.google.container.v1beta1.ResourceLimit.Builder.class); - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object resourceType_; - /** - *
-   * Resource name "cpu", "memory" or gpu-specific string.
-   * 
- * - * string resource_type = 1; - * @return The resourceType. - */ - @java.lang.Override - public java.lang.String getResourceType() { - java.lang.Object ref = resourceType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resourceType_ = s; - return s; - } - } - /** - *
-   * Resource name "cpu", "memory" or gpu-specific string.
-   * 
- * - * string resource_type = 1; - * @return The bytes for resourceType. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getResourceTypeBytes() { - java.lang.Object ref = resourceType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resourceType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MINIMUM_FIELD_NUMBER = 2; - private long minimum_; - /** - *
-   * Minimum amount of the resource in the cluster.
-   * 
- * - * int64 minimum = 2; - * @return The minimum. - */ - @java.lang.Override - public long getMinimum() { - return minimum_; - } - - public static final int MAXIMUM_FIELD_NUMBER = 3; - private long maximum_; - /** - *
-   * Maximum amount of the resource in the cluster.
-   * 
- * - * int64 maximum = 3; - * @return The maximum. - */ - @java.lang.Override - public long getMaximum() { - return maximum_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - resourceType_ = ""; - - minimum_ = 0L; - - maximum_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ResourceLimit_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.ResourceLimit getDefaultInstanceForType() { - return com.google.container.v1beta1.ResourceLimit.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.ResourceLimit build() { - com.google.container.v1beta1.ResourceLimit result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.ResourceLimit buildPartial() { - com.google.container.v1beta1.ResourceLimit result = new com.google.container.v1beta1.ResourceLimit(this); - result.resourceType_ = resourceType_; - result.minimum_ = minimum_; - result.maximum_ = maximum_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.ResourceLimit) { - return mergeFrom((com.google.container.v1beta1.ResourceLimit)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.ResourceLimit other) { - if (other == com.google.container.v1beta1.ResourceLimit.getDefaultInstance()) return this; - if (!other.getResourceType().isEmpty()) { - resourceType_ = other.resourceType_; - onChanged(); - } - if (other.getMinimum() != 0L) { - setMinimum(other.getMinimum()); - } - if (other.getMaximum() != 0L) { - setMaximum(other.getMaximum()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 16: { - minimum_ = input.readInt64(); - - break; - } // case 16 - case 24: { - maximum_ = input.readInt64(); - - 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 java.lang.Object resourceType_ = ""; - /** - *
-     * Resource name "cpu", "memory" or gpu-specific string.
-     * 
- * - * string resource_type = 1; - * @return The resourceType. - */ - public java.lang.String getResourceType() { - java.lang.Object ref = resourceType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resourceType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Resource name "cpu", "memory" or gpu-specific string.
-     * 
- * - * string resource_type = 1; - * @return The bytes for resourceType. - */ - public com.google.protobuf.ByteString - getResourceTypeBytes() { - java.lang.Object ref = resourceType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resourceType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Resource name "cpu", "memory" or gpu-specific string.
-     * 
- * - * string resource_type = 1; - * @param value The resourceType to set. - * @return This builder for chaining. - */ - public Builder setResourceType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value; - onChanged(); - return this; - } - /** - *
-     * Resource name "cpu", "memory" or gpu-specific string.
-     * 
- * - * string resource_type = 1; - * @return This builder for chaining. - */ - public Builder clearResourceType() { - - resourceType_ = getDefaultInstance().getResourceType(); - onChanged(); - return this; - } - /** - *
-     * Resource name "cpu", "memory" or gpu-specific string.
-     * 
- * - * string resource_type = 1; - * @param value The bytes for resourceType to set. - * @return This builder for chaining. - */ - public Builder setResourceTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - resourceType_ = value; - onChanged(); - return this; - } - - private long minimum_ ; - /** - *
-     * Minimum amount of the resource in the cluster.
-     * 
- * - * int64 minimum = 2; - * @return The minimum. - */ - @java.lang.Override - public long getMinimum() { - return minimum_; - } - /** - *
-     * Minimum amount of the resource in the cluster.
-     * 
- * - * int64 minimum = 2; - * @param value The minimum to set. - * @return This builder for chaining. - */ - public Builder setMinimum(long value) { - - minimum_ = value; - onChanged(); - return this; - } - /** - *
-     * Minimum amount of the resource in the cluster.
-     * 
- * - * int64 minimum = 2; - * @return This builder for chaining. - */ - public Builder clearMinimum() { - - minimum_ = 0L; - onChanged(); - return this; - } - - private long maximum_ ; - /** - *
-     * Maximum amount of the resource in the cluster.
-     * 
- * - * int64 maximum = 3; - * @return The maximum. - */ - @java.lang.Override - public long getMaximum() { - return maximum_; - } - /** - *
-     * Maximum amount of the resource in the cluster.
-     * 
- * - * int64 maximum = 3; - * @param value The maximum to set. - * @return This builder for chaining. - */ - public Builder setMaximum(long value) { - - maximum_ = value; - onChanged(); - return this; - } - /** - *
-     * Maximum amount of the resource in the cluster.
-     * 
- * - * int64 maximum = 3; - * @return This builder for chaining. - */ - public Builder clearMaximum() { - - maximum_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ResourceLimit) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.ResourceLimit) - private static final com.google.container.v1beta1.ResourceLimit DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.ResourceLimit(); - } - - public static com.google.container.v1beta1.ResourceLimit getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceLimit parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 151d3f922cc5..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLimitOrBuilder.java +++ /dev/null @@ -1,49 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface ResourceLimitOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ResourceLimit) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Resource name "cpu", "memory" or gpu-specific string.
-   * 
- * - * string resource_type = 1; - * @return The resourceType. - */ - java.lang.String getResourceType(); - /** - *
-   * Resource name "cpu", "memory" or gpu-specific string.
-   * 
- * - * string resource_type = 1; - * @return The bytes for resourceType. - */ - com.google.protobuf.ByteString - getResourceTypeBytes(); - - /** - *
-   * Minimum amount of the resource in the cluster.
-   * 
- * - * int64 minimum = 2; - * @return The minimum. - */ - long getMinimum(); - - /** - *
-   * Maximum amount of the resource in the cluster.
-   * 
- * - * int64 maximum = 3; - * @return The maximum. - */ - long getMaximum(); -} diff --git a/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 deleted file mode 100644 index 713f12b6a6c4..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceUsageExportConfig.java +++ /dev/null @@ -1,2056 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Configuration for exporting cluster resource usages.
- * 
- * - * Protobuf type {@code google.container.v1beta1.ResourceUsageExportConfig} - */ -public final class ResourceUsageExportConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.ResourceUsageExportConfig) - ResourceUsageExportConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use ResourceUsageExportConfig.newBuilder() to construct. - private ResourceUsageExportConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ResourceUsageExportConfig() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ResourceUsageExportConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ResourceUsageExportConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ResourceUsageExportConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.ResourceUsageExportConfig.class, com.google.container.v1beta1.ResourceUsageExportConfig.Builder.class); - } - - public interface BigQueryDestinationOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The ID of a BigQuery Dataset.
-     * 
- * - * string dataset_id = 1; - * @return The datasetId. - */ - java.lang.String getDatasetId(); - /** - *
-     * The ID of a BigQuery Dataset.
-     * 
- * - * string dataset_id = 1; - * @return The bytes for datasetId. - */ - com.google.protobuf.ByteString - getDatasetIdBytes(); - } - /** - *
-   * Parameters for using BigQuery as the destination of resource usage export.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination} - */ - public static final class BigQueryDestination extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination) - BigQueryDestinationOrBuilder { - private static final long serialVersionUID = 0L; - // Use BigQueryDestination.newBuilder() to construct. - private BigQueryDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BigQueryDestination() { - datasetId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BigQueryDestination(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ResourceUsageExportConfig_BigQueryDestination_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ResourceUsageExportConfig_BigQueryDestination_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination.class, com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination.Builder.class); - } - - public static final int DATASET_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object datasetId_; - /** - *
-     * The ID of a BigQuery Dataset.
-     * 
- * - * string dataset_id = 1; - * @return The datasetId. - */ - @java.lang.Override - public java.lang.String getDatasetId() { - java.lang.Object ref = datasetId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - datasetId_ = s; - return s; - } - } - /** - *
-     * The ID of a BigQuery Dataset.
-     * 
- * - * string dataset_id = 1; - * @return The bytes for datasetId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDatasetIdBytes() { - java.lang.Object ref = datasetId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - datasetId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - datasetId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ResourceUsageExportConfig_BigQueryDestination_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination getDefaultInstanceForType() { - return com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination build() { - com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination buildPartial() { - com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination result = new com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination(this); - result.datasetId_ = datasetId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination) { - return mergeFrom((com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination other) { - if (other == com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination.getDefaultInstance()) return this; - if (!other.getDatasetId().isEmpty()) { - datasetId_ = other.datasetId_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 java.lang.Object datasetId_ = ""; - /** - *
-       * The ID of a BigQuery Dataset.
-       * 
- * - * string dataset_id = 1; - * @return The datasetId. - */ - public java.lang.String getDatasetId() { - java.lang.Object ref = datasetId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - datasetId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The ID of a BigQuery Dataset.
-       * 
- * - * string dataset_id = 1; - * @return The bytes for datasetId. - */ - public com.google.protobuf.ByteString - getDatasetIdBytes() { - java.lang.Object ref = datasetId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - datasetId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The ID of a BigQuery Dataset.
-       * 
- * - * string dataset_id = 1; - * @param value The datasetId to set. - * @return This builder for chaining. - */ - public Builder setDatasetId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - datasetId_ = value; - onChanged(); - return this; - } - /** - *
-       * The ID of a BigQuery Dataset.
-       * 
- * - * string dataset_id = 1; - * @return This builder for chaining. - */ - public Builder clearDatasetId() { - - datasetId_ = getDefaultInstance().getDatasetId(); - onChanged(); - return this; - } - /** - *
-       * The ID of a BigQuery Dataset.
-       * 
- * - * string dataset_id = 1; - * @param value The bytes for datasetId to set. - * @return This builder for chaining. - */ - public Builder setDatasetIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - datasetId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination) - private static final com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination(); - } - - public static com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BigQueryDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ConsumptionMeteringConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Whether to enable consumption metering for this cluster. If enabled, a
-     * second BigQuery table will be created to hold resource consumption
-     * records.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - boolean getEnabled(); - } - /** - *
-   * Parameters for controlling consumption metering.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig} - */ - public static final class ConsumptionMeteringConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig) - ConsumptionMeteringConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ConsumptionMeteringConfig.newBuilder() to construct. - private ConsumptionMeteringConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ConsumptionMeteringConfig() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ConsumptionMeteringConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ResourceUsageExportConfig_ConsumptionMeteringConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ResourceUsageExportConfig_ConsumptionMeteringConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig.class, com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-     * Whether to enable consumption metering for this cluster. If enabled, a
-     * second BigQuery table will be created to hold resource consumption
-     * records.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - 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(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ResourceUsageExportConfig_ConsumptionMeteringConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig build() { - com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig buildPartial() { - com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig result = new com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig) { - return mergeFrom((com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig other) { - if (other == com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 boolean enabled_ ; - /** - *
-       * Whether to enable consumption metering for this cluster. If enabled, a
-       * second BigQuery table will be created to hold resource consumption
-       * records.
-       * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-       * Whether to enable consumption metering for this cluster. If enabled, a
-       * second BigQuery table will be created to hold resource consumption
-       * records.
-       * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-       * Whether to enable consumption metering for this cluster. If enabled, a
-       * second BigQuery table will be created to hold resource consumption
-       * records.
-       * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig) - private static final com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig(); - } - - public static com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConsumptionMeteringConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int BIGQUERY_DESTINATION_FIELD_NUMBER = 1; - private com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigqueryDestination_; - /** - *
-   * Configuration to use BigQuery as usage export destination.
-   * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * @return Whether the bigqueryDestination field is set. - */ - @java.lang.Override - public boolean hasBigqueryDestination() { - return bigqueryDestination_ != null; - } - /** - *
-   * Configuration to use BigQuery as usage export destination.
-   * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * @return The bigqueryDestination. - */ - @java.lang.Override - public com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination getBigqueryDestination() { - return bigqueryDestination_ == null ? com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination.getDefaultInstance() : bigqueryDestination_; - } - /** - *
-   * Configuration to use BigQuery as usage export destination.
-   * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - */ - @java.lang.Override - public com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder() { - return getBigqueryDestination(); - } - - public static final int ENABLE_NETWORK_EGRESS_METERING_FIELD_NUMBER = 2; - private boolean enableNetworkEgressMetering_; - /** - *
-   * Whether to enable network egress metering for this cluster. If enabled, a
-   * daemonset will be created in the cluster to meter network egress traffic.
-   * 
- * - * bool enable_network_egress_metering = 2; - * @return The enableNetworkEgressMetering. - */ - @java.lang.Override - public boolean getEnableNetworkEgressMetering() { - return enableNetworkEgressMetering_; - } - - public static final int CONSUMPTION_METERING_CONFIG_FIELD_NUMBER = 3; - private com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumptionMeteringConfig_; - /** - *
-   * Configuration to enable resource consumption metering.
-   * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * @return Whether the consumptionMeteringConfig field is set. - */ - @java.lang.Override - public boolean hasConsumptionMeteringConfig() { - return consumptionMeteringConfig_ != null; - } - /** - *
-   * Configuration to enable resource consumption metering.
-   * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * @return The consumptionMeteringConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig getConsumptionMeteringConfig() { - return consumptionMeteringConfig_ == null ? com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig.getDefaultInstance() : consumptionMeteringConfig_; - } - /** - *
-   * Configuration to enable resource consumption metering.
-   * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - */ - @java.lang.Override - public com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfigOrBuilder getConsumptionMeteringConfigOrBuilder() { - return getConsumptionMeteringConfig(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (bigqueryDestination_ != null) { - output.writeMessage(1, getBigqueryDestination()); - } - if (enableNetworkEgressMetering_ != false) { - output.writeBool(2, enableNetworkEgressMetering_); - } - if (consumptionMeteringConfig_ != null) { - output.writeMessage(3, getConsumptionMeteringConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (bigqueryDestination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBigqueryDestination()); - } - if (enableNetworkEgressMetering_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, enableNetworkEgressMetering_); - } - if (consumptionMeteringConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getConsumptionMeteringConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (bigqueryDestinationBuilder_ == null) { - bigqueryDestination_ = null; - } else { - bigqueryDestination_ = null; - bigqueryDestinationBuilder_ = null; - } - enableNetworkEgressMetering_ = false; - - if (consumptionMeteringConfigBuilder_ == null) { - consumptionMeteringConfig_ = null; - } else { - consumptionMeteringConfig_ = null; - consumptionMeteringConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ResourceUsageExportConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.ResourceUsageExportConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.ResourceUsageExportConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.ResourceUsageExportConfig build() { - com.google.container.v1beta1.ResourceUsageExportConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.ResourceUsageExportConfig buildPartial() { - com.google.container.v1beta1.ResourceUsageExportConfig result = new com.google.container.v1beta1.ResourceUsageExportConfig(this); - if (bigqueryDestinationBuilder_ == null) { - result.bigqueryDestination_ = bigqueryDestination_; - } else { - result.bigqueryDestination_ = bigqueryDestinationBuilder_.build(); - } - result.enableNetworkEgressMetering_ = enableNetworkEgressMetering_; - if (consumptionMeteringConfigBuilder_ == null) { - result.consumptionMeteringConfig_ = consumptionMeteringConfig_; - } else { - result.consumptionMeteringConfig_ = consumptionMeteringConfigBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.ResourceUsageExportConfig) { - return mergeFrom((com.google.container.v1beta1.ResourceUsageExportConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.ResourceUsageExportConfig other) { - if (other == com.google.container.v1beta1.ResourceUsageExportConfig.getDefaultInstance()) return this; - if (other.hasBigqueryDestination()) { - mergeBigqueryDestination(other.getBigqueryDestination()); - } - if (other.getEnableNetworkEgressMetering() != false) { - setEnableNetworkEgressMetering(other.getEnableNetworkEgressMetering()); - } - if (other.hasConsumptionMeteringConfig()) { - mergeConsumptionMeteringConfig(other.getConsumptionMeteringConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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); - - break; - } // case 10 - case 16: { - enableNetworkEgressMetering_ = input.readBool(); - - break; - } // case 16 - case 26: { - input.readMessage( - getConsumptionMeteringConfigFieldBuilder().getBuilder(), - extensionRegistry); - - 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 com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigqueryDestination_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination, com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination.Builder, com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestinationOrBuilder> bigqueryDestinationBuilder_; - /** - *
-     * Configuration to use BigQuery as usage export destination.
-     * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * @return Whether the bigqueryDestination field is set. - */ - public boolean hasBigqueryDestination() { - return bigqueryDestinationBuilder_ != null || bigqueryDestination_ != null; - } - /** - *
-     * Configuration to use BigQuery as usage export destination.
-     * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * @return The bigqueryDestination. - */ - public com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination getBigqueryDestination() { - if (bigqueryDestinationBuilder_ == null) { - return bigqueryDestination_ == null ? com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination.getDefaultInstance() : bigqueryDestination_; - } else { - return bigqueryDestinationBuilder_.getMessage(); - } - } - /** - *
-     * Configuration to use BigQuery as usage export destination.
-     * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - */ - public Builder setBigqueryDestination(com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination value) { - if (bigqueryDestinationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - bigqueryDestination_ = value; - onChanged(); - } else { - bigqueryDestinationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration to use BigQuery as usage export destination.
-     * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - */ - public Builder setBigqueryDestination( - com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination.Builder builderForValue) { - if (bigqueryDestinationBuilder_ == null) { - bigqueryDestination_ = builderForValue.build(); - onChanged(); - } else { - bigqueryDestinationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration to use BigQuery as usage export destination.
-     * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - */ - public Builder mergeBigqueryDestination(com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination value) { - if (bigqueryDestinationBuilder_ == null) { - if (bigqueryDestination_ != null) { - bigqueryDestination_ = - com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination.newBuilder(bigqueryDestination_).mergeFrom(value).buildPartial(); - } else { - bigqueryDestination_ = value; - } - onChanged(); - } else { - bigqueryDestinationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration to use BigQuery as usage export destination.
-     * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - */ - public Builder clearBigqueryDestination() { - if (bigqueryDestinationBuilder_ == null) { - bigqueryDestination_ = null; - onChanged(); - } else { - bigqueryDestination_ = null; - bigqueryDestinationBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration to use BigQuery as usage export destination.
-     * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - */ - public com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination.Builder getBigqueryDestinationBuilder() { - - onChanged(); - return getBigqueryDestinationFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration to use BigQuery as usage export destination.
-     * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - */ - public com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder() { - if (bigqueryDestinationBuilder_ != null) { - return bigqueryDestinationBuilder_.getMessageOrBuilder(); - } else { - return bigqueryDestination_ == null ? - com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination.getDefaultInstance() : bigqueryDestination_; - } - } - /** - *
-     * Configuration to use BigQuery as usage export destination.
-     * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination, com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination.Builder, com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestinationOrBuilder> - getBigqueryDestinationFieldBuilder() { - if (bigqueryDestinationBuilder_ == null) { - bigqueryDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination, com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination.Builder, com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestinationOrBuilder>( - getBigqueryDestination(), - getParentForChildren(), - isClean()); - bigqueryDestination_ = null; - } - return bigqueryDestinationBuilder_; - } - - private boolean enableNetworkEgressMetering_ ; - /** - *
-     * Whether to enable network egress metering for this cluster. If enabled, a
-     * daemonset will be created in the cluster to meter network egress traffic.
-     * 
- * - * bool enable_network_egress_metering = 2; - * @return The enableNetworkEgressMetering. - */ - @java.lang.Override - public boolean getEnableNetworkEgressMetering() { - return enableNetworkEgressMetering_; - } - /** - *
-     * Whether to enable network egress metering for this cluster. If enabled, a
-     * daemonset will be created in the cluster to meter network egress traffic.
-     * 
- * - * bool enable_network_egress_metering = 2; - * @param value The enableNetworkEgressMetering to set. - * @return This builder for chaining. - */ - public Builder setEnableNetworkEgressMetering(boolean value) { - - enableNetworkEgressMetering_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether to enable network egress metering for this cluster. If enabled, a
-     * daemonset will be created in the cluster to meter network egress traffic.
-     * 
- * - * bool enable_network_egress_metering = 2; - * @return This builder for chaining. - */ - public Builder clearEnableNetworkEgressMetering() { - - enableNetworkEgressMetering_ = false; - onChanged(); - return this; - } - - private com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumptionMeteringConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig, com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder, com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfigOrBuilder> consumptionMeteringConfigBuilder_; - /** - *
-     * Configuration to enable resource consumption metering.
-     * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * @return Whether the consumptionMeteringConfig field is set. - */ - public boolean hasConsumptionMeteringConfig() { - return consumptionMeteringConfigBuilder_ != null || consumptionMeteringConfig_ != null; - } - /** - *
-     * Configuration to enable resource consumption metering.
-     * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * @return The consumptionMeteringConfig. - */ - public com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig getConsumptionMeteringConfig() { - if (consumptionMeteringConfigBuilder_ == null) { - return consumptionMeteringConfig_ == null ? com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig.getDefaultInstance() : consumptionMeteringConfig_; - } else { - return consumptionMeteringConfigBuilder_.getMessage(); - } - } - /** - *
-     * Configuration to enable resource consumption metering.
-     * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - */ - public Builder setConsumptionMeteringConfig(com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig value) { - if (consumptionMeteringConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - consumptionMeteringConfig_ = value; - onChanged(); - } else { - consumptionMeteringConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configuration to enable resource consumption metering.
-     * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - */ - public Builder setConsumptionMeteringConfig( - com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder builderForValue) { - if (consumptionMeteringConfigBuilder_ == null) { - consumptionMeteringConfig_ = builderForValue.build(); - onChanged(); - } else { - consumptionMeteringConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configuration to enable resource consumption metering.
-     * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - */ - public Builder mergeConsumptionMeteringConfig(com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig value) { - if (consumptionMeteringConfigBuilder_ == null) { - if (consumptionMeteringConfig_ != null) { - consumptionMeteringConfig_ = - com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig.newBuilder(consumptionMeteringConfig_).mergeFrom(value).buildPartial(); - } else { - consumptionMeteringConfig_ = value; - } - onChanged(); - } else { - consumptionMeteringConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configuration to enable resource consumption metering.
-     * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - */ - public Builder clearConsumptionMeteringConfig() { - if (consumptionMeteringConfigBuilder_ == null) { - consumptionMeteringConfig_ = null; - onChanged(); - } else { - consumptionMeteringConfig_ = null; - consumptionMeteringConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Configuration to enable resource consumption metering.
-     * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - */ - public com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder getConsumptionMeteringConfigBuilder() { - - onChanged(); - return getConsumptionMeteringConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Configuration to enable resource consumption metering.
-     * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - */ - public com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfigOrBuilder getConsumptionMeteringConfigOrBuilder() { - if (consumptionMeteringConfigBuilder_ != null) { - return consumptionMeteringConfigBuilder_.getMessageOrBuilder(); - } else { - return consumptionMeteringConfig_ == null ? - com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig.getDefaultInstance() : consumptionMeteringConfig_; - } - } - /** - *
-     * Configuration to enable resource consumption metering.
-     * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig, com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder, com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfigOrBuilder> - getConsumptionMeteringConfigFieldBuilder() { - if (consumptionMeteringConfigBuilder_ == null) { - consumptionMeteringConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig, com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder, com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfigOrBuilder>( - getConsumptionMeteringConfig(), - getParentForChildren(), - isClean()); - consumptionMeteringConfig_ = null; - } - return consumptionMeteringConfigBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ResourceUsageExportConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.ResourceUsageExportConfig) - private static final com.google.container.v1beta1.ResourceUsageExportConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.ResourceUsageExportConfig(); - } - - public static com.google.container.v1beta1.ResourceUsageExportConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceUsageExportConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 6891208e4ec2..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceUsageExportConfigOrBuilder.java +++ /dev/null @@ -1,74 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface ResourceUsageExportConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ResourceUsageExportConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Configuration to use BigQuery as usage export destination.
-   * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * @return Whether the bigqueryDestination field is set. - */ - boolean hasBigqueryDestination(); - /** - *
-   * Configuration to use BigQuery as usage export destination.
-   * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * @return The bigqueryDestination. - */ - com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination getBigqueryDestination(); - /** - *
-   * Configuration to use BigQuery as usage export destination.
-   * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - */ - com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder(); - - /** - *
-   * Whether to enable network egress metering for this cluster. If enabled, a
-   * daemonset will be created in the cluster to meter network egress traffic.
-   * 
- * - * bool enable_network_egress_metering = 2; - * @return The enableNetworkEgressMetering. - */ - boolean getEnableNetworkEgressMetering(); - - /** - *
-   * Configuration to enable resource consumption metering.
-   * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * @return Whether the consumptionMeteringConfig field is set. - */ - boolean hasConsumptionMeteringConfig(); - /** - *
-   * Configuration to enable resource consumption metering.
-   * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * @return The consumptionMeteringConfig. - */ - com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig getConsumptionMeteringConfig(); - /** - *
-   * Configuration to enable resource consumption metering.
-   * 
- * - * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - */ - com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfigOrBuilder getConsumptionMeteringConfigOrBuilder(); -} diff --git a/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 deleted file mode 100644 index 28287da2bb25..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequest.java +++ /dev/null @@ -1,1442 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed
- * NodePool upgrade. This will be an no-op if the last upgrade successfully
- * completed.
- * 
- * - * Protobuf type {@code google.container.v1beta1.RollbackNodePoolUpgradeRequest} - */ -public final class RollbackNodePoolUpgradeRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.RollbackNodePoolUpgradeRequest) - RollbackNodePoolUpgradeRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use RollbackNodePoolUpgradeRequest.newBuilder() to construct. - private RollbackNodePoolUpgradeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RollbackNodePoolUpgradeRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - nodePoolId_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RollbackNodePoolUpgradeRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_RollbackNodePoolUpgradeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_RollbackNodePoolUpgradeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.RollbackNodePoolUpgradeRequest.class, com.google.container.v1beta1.RollbackNodePoolUpgradeRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=3793 - * @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=3793 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Required. Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3802 - * @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=3802 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * Required. Deprecated. The name of the cluster to rollback.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3809 - * @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=3809 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_POOL_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object nodePoolId_; - /** - *
-   * Required. Deprecated. The name of the node pool to rollback.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3816 - * @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=3816 - * @return The bytes for nodePoolId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getNodePoolIdBytes() { - java.lang.Object ref = nodePoolId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodePoolId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster, node pool id) of the node poll to
-   * rollback upgrade.
-   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 6; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project, location, cluster, node pool id) of the node poll to
-   * rollback upgrade.
-   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 6; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESPECT_PDB_FIELD_NUMBER = 7; - 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_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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(); - 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); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.nodePoolId_ = nodePoolId_; - result.name_ = name_; - result.respectPdb_ = respectPdb_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.RollbackNodePoolUpgradeRequest) { - return mergeFrom((com.google.container.v1beta1.RollbackNodePoolUpgradeRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.RollbackNodePoolUpgradeRequest other) { - if (other == com.google.container.v1beta1.RollbackNodePoolUpgradeRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getNodePoolId().isEmpty()) { - nodePoolId_ = other.nodePoolId_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - nodePoolId_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 50: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 56: { - respectPdb_ = input.readBool(); - - 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 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=3793 - * @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=3793 - * @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=3793 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=3793 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=3793 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3802 - * @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=3802 - * @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=3802 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3802 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3802 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * Required. Deprecated. The name of the cluster to rollback.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3809 - * @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=3809 - * @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=3809 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster to rollback.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3809 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster to rollback.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3809 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object nodePoolId_ = ""; - /** - *
-     * Required. Deprecated. The name of the node pool to rollback.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3816 - * @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=3816 - * @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=3816 - * @param value The nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setNodePoolId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodePoolId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the node pool to rollback.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3816 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearNodePoolId() { - - nodePoolId_ = getDefaultInstance().getNodePoolId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the node pool to rollback.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3816 - * @param value The bytes for nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setNodePoolIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodePoolId_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster, node pool id) of the node poll to
-     * rollback upgrade.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node poll to
-     * rollback upgrade.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node poll to
-     * rollback upgrade.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node poll to
-     * rollback upgrade.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node poll to
-     * rollback upgrade.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - 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; - 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() { - - 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 deleted file mode 100644 index 08555d19aa88..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequestOrBuilder.java +++ /dev/null @@ -1,154 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface RollbackNodePoolUpgradeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.RollbackNodePoolUpgradeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=3793 - * @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=3793 - * @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=3802 - * @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=3802 - * @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=3809 - * @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=3809 - * @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=3816 - * @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=3816 - * @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 deleted file mode 100644 index b1ba05891a68..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SandboxConfig.java +++ /dev/null @@ -1,839 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * SandboxConfig contains configurations of the sandbox to use for the node.
- * 
- * - * Protobuf type {@code google.container.v1beta1.SandboxConfig} - */ -public final class SandboxConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.SandboxConfig) - SandboxConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use SandboxConfig.newBuilder() to construct. - private SandboxConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SandboxConfig() { - sandboxType_ = ""; - type_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SandboxConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - 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=872 - * @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=872 - * @return The bytes for sandboxType. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getSandboxTypeBytes() { - java.lang.Object ref = sandboxType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sandboxType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 2; - private int type_; - /** - *
-   * Type of the sandbox to use for the node.
-   * 
- * - * .google.container.v1beta1.SandboxConfig.Type type = 2; - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } - /** - *
-   * Type of the sandbox to use for the node.
-   * 
- * - * .google.container.v1beta1.SandboxConfig.Type type = 2; - * @return The type. - */ - @java.lang.Override public com.google.container.v1beta1.SandboxConfig.Type getType() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.SandboxConfig.Type result = com.google.container.v1beta1.SandboxConfig.Type.valueOf(type_); - return result == null ? com.google.container.v1beta1.SandboxConfig.Type.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - sandboxType_ = ""; - - type_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SandboxConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.SandboxConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.SandboxConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.SandboxConfig build() { - com.google.container.v1beta1.SandboxConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.SandboxConfig buildPartial() { - com.google.container.v1beta1.SandboxConfig result = new com.google.container.v1beta1.SandboxConfig(this); - result.sandboxType_ = sandboxType_; - result.type_ = type_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.SandboxConfig) { - return mergeFrom((com.google.container.v1beta1.SandboxConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.SandboxConfig other) { - if (other == com.google.container.v1beta1.SandboxConfig.getDefaultInstance()) return this; - if (!other.getSandboxType().isEmpty()) { - sandboxType_ = other.sandboxType_; - onChanged(); - } - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 16: { - type_ = input.readEnum(); - - 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 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=872 - * @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=872 - * @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=872 - * @param value The sandboxType to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setSandboxType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - sandboxType_ = value; - onChanged(); - return this; - } - /** - *
-     * Type of the sandbox to use for the node (e.g. 'gvisor')
-     * 
- * - * string sandbox_type = 1 [deprecated = true]; - * @deprecated google.container.v1beta1.SandboxConfig.sandbox_type is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=872 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearSandboxType() { - - sandboxType_ = getDefaultInstance().getSandboxType(); - onChanged(); - return this; - } - /** - *
-     * Type of the sandbox to use for the node (e.g. 'gvisor')
-     * 
- * - * string sandbox_type = 1 [deprecated = true]; - * @deprecated google.container.v1beta1.SandboxConfig.sandbox_type is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=872 - * @param value The bytes for sandboxType to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setSandboxTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sandboxType_ = value; - onChanged(); - return this; - } - - private int type_ = 0; - /** - *
-     * Type of the sandbox to use for the node.
-     * 
- * - * .google.container.v1beta1.SandboxConfig.Type type = 2; - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } - /** - *
-     * Type of the sandbox to use for the node.
-     * 
- * - * .google.container.v1beta1.SandboxConfig.Type type = 2; - * @param value The enum numeric value on the wire for type to set. - * @return This builder for chaining. - */ - public Builder setTypeValue(int value) { - - type_ = value; - onChanged(); - return this; - } - /** - *
-     * Type of the sandbox to use for the node.
-     * 
- * - * .google.container.v1beta1.SandboxConfig.Type type = 2; - * @return The type. - */ - @java.lang.Override - public com.google.container.v1beta1.SandboxConfig.Type getType() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.SandboxConfig.Type result = com.google.container.v1beta1.SandboxConfig.Type.valueOf(type_); - return result == null ? com.google.container.v1beta1.SandboxConfig.Type.UNRECOGNIZED : result; - } - /** - *
-     * Type of the sandbox to use for the node.
-     * 
- * - * .google.container.v1beta1.SandboxConfig.Type type = 2; - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(com.google.container.v1beta1.SandboxConfig.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Type of the sandbox to use for the node.
-     * 
- * - * .google.container.v1beta1.SandboxConfig.Type type = 2; - * @return This builder for chaining. - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SandboxConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.SandboxConfig) - private static final com.google.container.v1beta1.SandboxConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.SandboxConfig(); - } - - public static com.google.container.v1beta1.SandboxConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SandboxConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index dd2af6964bd7..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SandboxConfigOrBuilder.java +++ /dev/null @@ -1,52 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface SandboxConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SandboxConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Type of the sandbox to use for the node (e.g. 'gvisor')
-   * 
- * - * string sandbox_type = 1 [deprecated = true]; - * @deprecated google.container.v1beta1.SandboxConfig.sandbox_type is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=872 - * @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=872 - * @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 deleted file mode 100644 index 14875a34d1f3..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecurityBulletinEvent.java +++ /dev/null @@ -1,2251 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * SecurityBulletinEvent is a notification sent to customers when a security
- * bulletin has been posted that they are vulnerable to.
- * 
- * - * Protobuf type {@code google.container.v1beta1.SecurityBulletinEvent} - */ -public final class SecurityBulletinEvent extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.SecurityBulletinEvent) - SecurityBulletinEventOrBuilder { -private static final long serialVersionUID = 0L; - // Use SecurityBulletinEvent.newBuilder() to construct. - private SecurityBulletinEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SecurityBulletinEvent() { - resourceTypeAffected_ = ""; - bulletinId_ = ""; - cveIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - severity_ = ""; - bulletinUri_ = ""; - briefDescription_ = ""; - affectedSupportedMinors_ = com.google.protobuf.LazyStringArrayList.EMPTY; - patchedVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - suggestedUpgradeTarget_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SecurityBulletinEvent(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SecurityBulletinEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SecurityBulletinEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.SecurityBulletinEvent.class, com.google.container.v1beta1.SecurityBulletinEvent.Builder.class); - } - - public static final int RESOURCE_TYPE_AFFECTED_FIELD_NUMBER = 1; - private volatile java.lang.Object resourceTypeAffected_; - /** - *
-   * The resource type (node/control plane) that has the vulnerability. Multiple
-   * notifications (1 notification per resource type) will be sent for a
-   * vulnerability that affects > 1 resource type.
-   * 
- * - * string resource_type_affected = 1; - * @return The resourceTypeAffected. - */ - @java.lang.Override - public java.lang.String getResourceTypeAffected() { - java.lang.Object ref = resourceTypeAffected_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resourceTypeAffected_ = s; - return s; - } - } - /** - *
-   * The resource type (node/control plane) that has the vulnerability. Multiple
-   * notifications (1 notification per resource type) will be sent for a
-   * vulnerability that affects > 1 resource type.
-   * 
- * - * string resource_type_affected = 1; - * @return The bytes for resourceTypeAffected. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getResourceTypeAffectedBytes() { - java.lang.Object ref = resourceTypeAffected_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resourceTypeAffected_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BULLETIN_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object bulletinId_; - /** - *
-   * The ID of the bulletin corresponding to the vulnerability.
-   * 
- * - * string bulletin_id = 2; - * @return The bulletinId. - */ - @java.lang.Override - public java.lang.String getBulletinId() { - java.lang.Object ref = bulletinId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bulletinId_ = s; - return s; - } - } - /** - *
-   * The ID of the bulletin corresponding to the vulnerability.
-   * 
- * - * string bulletin_id = 2; - * @return The bytes for bulletinId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBulletinIdBytes() { - java.lang.Object ref = bulletinId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bulletinId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CVE_IDS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList cveIds_; - /** - *
-   * The CVEs associated with this bulletin.
-   * 
- * - * repeated string cve_ids = 3; - * @return A list containing the cveIds. - */ - public com.google.protobuf.ProtocolStringList - getCveIdsList() { - return cveIds_; - } - /** - *
-   * The CVEs associated with this bulletin.
-   * 
- * - * repeated string cve_ids = 3; - * @return The count of cveIds. - */ - public int getCveIdsCount() { - return cveIds_.size(); - } - /** - *
-   * The CVEs associated with this bulletin.
-   * 
- * - * repeated string cve_ids = 3; - * @param index The index of the element to return. - * @return The cveIds at the given index. - */ - public java.lang.String getCveIds(int index) { - return cveIds_.get(index); - } - /** - *
-   * The CVEs associated with this bulletin.
-   * 
- * - * repeated string cve_ids = 3; - * @param index The index of the value to return. - * @return The bytes of the cveIds at the given index. - */ - public com.google.protobuf.ByteString - getCveIdsBytes(int index) { - return cveIds_.getByteString(index); - } - - public static final int SEVERITY_FIELD_NUMBER = 4; - private volatile java.lang.Object severity_; - /** - *
-   * The severity of this bulletin as it relates to GKE.
-   * 
- * - * string severity = 4; - * @return The severity. - */ - @java.lang.Override - public java.lang.String getSeverity() { - java.lang.Object ref = severity_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - severity_ = s; - return s; - } - } - /** - *
-   * The severity of this bulletin as it relates to GKE.
-   * 
- * - * string severity = 4; - * @return The bytes for severity. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSeverityBytes() { - java.lang.Object ref = severity_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - severity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BULLETIN_URI_FIELD_NUMBER = 5; - private volatile java.lang.Object bulletinUri_; - /** - *
-   * The URI link to the bulletin on the website for more information.
-   * 
- * - * string bulletin_uri = 5; - * @return The bulletinUri. - */ - @java.lang.Override - public java.lang.String getBulletinUri() { - java.lang.Object ref = bulletinUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bulletinUri_ = s; - return s; - } - } - /** - *
-   * The URI link to the bulletin on the website for more information.
-   * 
- * - * string bulletin_uri = 5; - * @return The bytes for bulletinUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBulletinUriBytes() { - java.lang.Object ref = bulletinUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bulletinUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BRIEF_DESCRIPTION_FIELD_NUMBER = 6; - private volatile java.lang.Object briefDescription_; - /** - *
-   * A brief description of the bulletin. See the bulletin pointed to by the
-   * bulletin_uri field for an expanded description.
-   * 
- * - * string brief_description = 6; - * @return The briefDescription. - */ - @java.lang.Override - public java.lang.String getBriefDescription() { - java.lang.Object ref = briefDescription_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - briefDescription_ = s; - return s; - } - } - /** - *
-   * A brief description of the bulletin. See the bulletin pointed to by the
-   * bulletin_uri field for an expanded description.
-   * 
- * - * string brief_description = 6; - * @return The bytes for briefDescription. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBriefDescriptionBytes() { - java.lang.Object ref = briefDescription_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - briefDescription_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AFFECTED_SUPPORTED_MINORS_FIELD_NUMBER = 7; - private com.google.protobuf.LazyStringList affectedSupportedMinors_; - /** - *
-   * The GKE minor versions affected by this vulnerability.
-   * 
- * - * repeated string affected_supported_minors = 7; - * @return A list containing the affectedSupportedMinors. - */ - public com.google.protobuf.ProtocolStringList - getAffectedSupportedMinorsList() { - return affectedSupportedMinors_; - } - /** - *
-   * The GKE minor versions affected by this vulnerability.
-   * 
- * - * repeated string affected_supported_minors = 7; - * @return The count of affectedSupportedMinors. - */ - public int getAffectedSupportedMinorsCount() { - return affectedSupportedMinors_.size(); - } - /** - *
-   * The GKE minor versions affected by this vulnerability.
-   * 
- * - * repeated string affected_supported_minors = 7; - * @param index The index of the element to return. - * @return The affectedSupportedMinors at the given index. - */ - public java.lang.String getAffectedSupportedMinors(int index) { - return affectedSupportedMinors_.get(index); - } - /** - *
-   * The GKE minor versions affected by this vulnerability.
-   * 
- * - * repeated string affected_supported_minors = 7; - * @param index The index of the value to return. - * @return The bytes of the affectedSupportedMinors at the given index. - */ - public com.google.protobuf.ByteString - getAffectedSupportedMinorsBytes(int index) { - return affectedSupportedMinors_.getByteString(index); - } - - public static final int PATCHED_VERSIONS_FIELD_NUMBER = 8; - private com.google.protobuf.LazyStringList patchedVersions_; - /** - *
-   * The GKE versions where this vulnerability is patched.
-   * 
- * - * repeated string patched_versions = 8; - * @return A list containing the patchedVersions. - */ - public com.google.protobuf.ProtocolStringList - getPatchedVersionsList() { - return patchedVersions_; - } - /** - *
-   * The GKE versions where this vulnerability is patched.
-   * 
- * - * repeated string patched_versions = 8; - * @return The count of patchedVersions. - */ - public int getPatchedVersionsCount() { - return patchedVersions_.size(); - } - /** - *
-   * The GKE versions where this vulnerability is patched.
-   * 
- * - * repeated string patched_versions = 8; - * @param index The index of the element to return. - * @return The patchedVersions at the given index. - */ - public java.lang.String getPatchedVersions(int index) { - return patchedVersions_.get(index); - } - /** - *
-   * The GKE versions where this vulnerability is patched.
-   * 
- * - * repeated string patched_versions = 8; - * @param index The index of the value to return. - * @return The bytes of the patchedVersions at the given index. - */ - public com.google.protobuf.ByteString - getPatchedVersionsBytes(int index) { - return patchedVersions_.getByteString(index); - } - - public static final int SUGGESTED_UPGRADE_TARGET_FIELD_NUMBER = 9; - private volatile java.lang.Object suggestedUpgradeTarget_; - /** - *
-   * This represents a version selected from the patched_versions field that
-   * the cluster receiving this notification should most likely want to upgrade
-   * to based on its current version. Note that if this notification is being
-   * received by a given cluster, it means that this version is currently
-   * available as an upgrade target in that cluster's location.
-   * 
- * - * string suggested_upgrade_target = 9; - * @return The suggestedUpgradeTarget. - */ - @java.lang.Override - public java.lang.String getSuggestedUpgradeTarget() { - java.lang.Object ref = suggestedUpgradeTarget_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - suggestedUpgradeTarget_ = s; - return s; - } - } - /** - *
-   * This represents a version selected from the patched_versions field that
-   * the cluster receiving this notification should most likely want to upgrade
-   * to based on its current version. Note that if this notification is being
-   * received by a given cluster, it means that this version is currently
-   * available as an upgrade target in that cluster's location.
-   * 
- * - * string suggested_upgrade_target = 9; - * @return The bytes for suggestedUpgradeTarget. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSuggestedUpgradeTargetBytes() { - java.lang.Object ref = suggestedUpgradeTarget_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - suggestedUpgradeTarget_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MANUAL_STEPS_REQUIRED_FIELD_NUMBER = 10; - private boolean manualStepsRequired_; - /** - *
-   * If this field is specified, it means there are manual steps that the user
-   * must take to make their clusters safe.
-   * 
- * - * bool manual_steps_required = 10; - * @return The manualStepsRequired. - */ - @java.lang.Override - public boolean getManualStepsRequired() { - return manualStepsRequired_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceTypeAffected_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceTypeAffected_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bulletinId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bulletinId_); - } - for (int i = 0; i < cveIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cveIds_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(severity_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, severity_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bulletinUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, bulletinUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(briefDescription_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, briefDescription_); - } - for (int i = 0; i < affectedSupportedMinors_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, affectedSupportedMinors_.getRaw(i)); - } - for (int i = 0; i < patchedVersions_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, patchedVersions_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(suggestedUpgradeTarget_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, suggestedUpgradeTarget_); - } - if (manualStepsRequired_ != false) { - output.writeBool(10, manualStepsRequired_); - } - getUnknownFields().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(); - resourceTypeAffected_ = ""; - - bulletinId_ = ""; - - cveIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - severity_ = ""; - - bulletinUri_ = ""; - - briefDescription_ = ""; - - affectedSupportedMinors_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - patchedVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - suggestedUpgradeTarget_ = ""; - - manualStepsRequired_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SecurityBulletinEvent_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.SecurityBulletinEvent getDefaultInstanceForType() { - return com.google.container.v1beta1.SecurityBulletinEvent.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.SecurityBulletinEvent build() { - com.google.container.v1beta1.SecurityBulletinEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.SecurityBulletinEvent buildPartial() { - com.google.container.v1beta1.SecurityBulletinEvent result = new com.google.container.v1beta1.SecurityBulletinEvent(this); - int from_bitField0_ = bitField0_; - result.resourceTypeAffected_ = resourceTypeAffected_; - result.bulletinId_ = bulletinId_; - if (((bitField0_ & 0x00000001) != 0)) { - cveIds_ = cveIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.cveIds_ = cveIds_; - result.severity_ = severity_; - result.bulletinUri_ = bulletinUri_; - result.briefDescription_ = briefDescription_; - if (((bitField0_ & 0x00000002) != 0)) { - affectedSupportedMinors_ = affectedSupportedMinors_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.affectedSupportedMinors_ = affectedSupportedMinors_; - if (((bitField0_ & 0x00000004) != 0)) { - patchedVersions_ = patchedVersions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.patchedVersions_ = patchedVersions_; - result.suggestedUpgradeTarget_ = suggestedUpgradeTarget_; - result.manualStepsRequired_ = manualStepsRequired_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.SecurityBulletinEvent) { - return mergeFrom((com.google.container.v1beta1.SecurityBulletinEvent)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.SecurityBulletinEvent other) { - if (other == com.google.container.v1beta1.SecurityBulletinEvent.getDefaultInstance()) return this; - if (!other.getResourceTypeAffected().isEmpty()) { - resourceTypeAffected_ = other.resourceTypeAffected_; - onChanged(); - } - if (!other.getBulletinId().isEmpty()) { - bulletinId_ = other.bulletinId_; - onChanged(); - } - if (!other.cveIds_.isEmpty()) { - if (cveIds_.isEmpty()) { - cveIds_ = other.cveIds_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureCveIdsIsMutable(); - cveIds_.addAll(other.cveIds_); - } - onChanged(); - } - if (!other.getSeverity().isEmpty()) { - severity_ = other.severity_; - onChanged(); - } - if (!other.getBulletinUri().isEmpty()) { - bulletinUri_ = other.bulletinUri_; - onChanged(); - } - if (!other.getBriefDescription().isEmpty()) { - briefDescription_ = other.briefDescription_; - onChanged(); - } - if (!other.affectedSupportedMinors_.isEmpty()) { - if (affectedSupportedMinors_.isEmpty()) { - affectedSupportedMinors_ = other.affectedSupportedMinors_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureAffectedSupportedMinorsIsMutable(); - affectedSupportedMinors_.addAll(other.affectedSupportedMinors_); - } - onChanged(); - } - if (!other.patchedVersions_.isEmpty()) { - if (patchedVersions_.isEmpty()) { - patchedVersions_ = other.patchedVersions_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensurePatchedVersionsIsMutable(); - patchedVersions_.addAll(other.patchedVersions_); - } - onChanged(); - } - if (!other.getSuggestedUpgradeTarget().isEmpty()) { - suggestedUpgradeTarget_ = other.suggestedUpgradeTarget_; - onChanged(); - } - if (other.getManualStepsRequired() != false) { - setManualStepsRequired(other.getManualStepsRequired()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - bulletinId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureCveIdsIsMutable(); - cveIds_.add(s); - break; - } // case 26 - case 34: { - severity_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - bulletinUri_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: { - briefDescription_ = input.readStringRequireUtf8(); - - 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(); - - break; - } // case 74 - case 80: { - manualStepsRequired_ = input.readBool(); - - 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; - onChanged(); - return this; - } - /** - *
-     * The resource type (node/control plane) that has the vulnerability. Multiple
-     * notifications (1 notification per resource type) will be sent for a
-     * vulnerability that affects > 1 resource type.
-     * 
- * - * string resource_type_affected = 1; - * @return This builder for chaining. - */ - public Builder clearResourceTypeAffected() { - - resourceTypeAffected_ = getDefaultInstance().getResourceTypeAffected(); - onChanged(); - return this; - } - /** - *
-     * The resource type (node/control plane) that has the vulnerability. Multiple
-     * notifications (1 notification per resource type) will be sent for a
-     * vulnerability that affects > 1 resource type.
-     * 
- * - * string resource_type_affected = 1; - * @param value The bytes for resourceTypeAffected to set. - * @return This builder for chaining. - */ - public Builder setResourceTypeAffectedBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - resourceTypeAffected_ = value; - onChanged(); - return this; - } - - private java.lang.Object bulletinId_ = ""; - /** - *
-     * The ID of the bulletin corresponding to the vulnerability.
-     * 
- * - * string bulletin_id = 2; - * @return The bulletinId. - */ - public java.lang.String getBulletinId() { - java.lang.Object ref = bulletinId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bulletinId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The ID of the bulletin corresponding to the vulnerability.
-     * 
- * - * string bulletin_id = 2; - * @return The bytes for bulletinId. - */ - public com.google.protobuf.ByteString - getBulletinIdBytes() { - java.lang.Object ref = bulletinId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bulletinId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The ID of the bulletin corresponding to the vulnerability.
-     * 
- * - * string bulletin_id = 2; - * @param value The bulletinId to set. - * @return This builder for chaining. - */ - public Builder setBulletinId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - bulletinId_ = value; - onChanged(); - return this; - } - /** - *
-     * The ID of the bulletin corresponding to the vulnerability.
-     * 
- * - * string bulletin_id = 2; - * @return This builder for chaining. - */ - public Builder clearBulletinId() { - - bulletinId_ = getDefaultInstance().getBulletinId(); - onChanged(); - return this; - } - /** - *
-     * The ID of the bulletin corresponding to the vulnerability.
-     * 
- * - * string bulletin_id = 2; - * @param value The bytes for bulletinId to set. - * @return This builder for chaining. - */ - public Builder setBulletinIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - bulletinId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList cveIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureCveIdsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - cveIds_ = new com.google.protobuf.LazyStringArrayList(cveIds_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * The CVEs associated with this bulletin.
-     * 
- * - * repeated string cve_ids = 3; - * @return A list containing the cveIds. - */ - public com.google.protobuf.ProtocolStringList - getCveIdsList() { - return cveIds_.getUnmodifiableView(); - } - /** - *
-     * The CVEs associated with this bulletin.
-     * 
- * - * repeated string cve_ids = 3; - * @return The count of cveIds. - */ - public int getCveIdsCount() { - return cveIds_.size(); - } - /** - *
-     * The CVEs associated with this bulletin.
-     * 
- * - * repeated string cve_ids = 3; - * @param index The index of the element to return. - * @return The cveIds at the given index. - */ - public java.lang.String getCveIds(int index) { - return cveIds_.get(index); - } - /** - *
-     * The CVEs associated with this bulletin.
-     * 
- * - * repeated string cve_ids = 3; - * @param index The index of the value to return. - * @return The bytes of the cveIds at the given index. - */ - public com.google.protobuf.ByteString - getCveIdsBytes(int index) { - return cveIds_.getByteString(index); - } - /** - *
-     * The CVEs associated with this bulletin.
-     * 
- * - * repeated string cve_ids = 3; - * @param index The index to set the value at. - * @param value The cveIds to set. - * @return This builder for chaining. - */ - public Builder setCveIds( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureCveIdsIsMutable(); - cveIds_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * The CVEs associated with this bulletin.
-     * 
- * - * repeated string cve_ids = 3; - * @param value The cveIds to add. - * @return This builder for chaining. - */ - public Builder addCveIds( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureCveIdsIsMutable(); - cveIds_.add(value); - onChanged(); - return this; - } - /** - *
-     * The CVEs associated with this bulletin.
-     * 
- * - * repeated string cve_ids = 3; - * @param values The cveIds to add. - * @return This builder for chaining. - */ - public Builder addAllCveIds( - java.lang.Iterable values) { - ensureCveIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, cveIds_); - onChanged(); - return this; - } - /** - *
-     * The CVEs associated with this bulletin.
-     * 
- * - * repeated string cve_ids = 3; - * @return This builder for chaining. - */ - public Builder clearCveIds() { - cveIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The CVEs associated with this bulletin.
-     * 
- * - * repeated string cve_ids = 3; - * @param value The bytes of the cveIds to add. - * @return This builder for chaining. - */ - public Builder addCveIdsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureCveIdsIsMutable(); - cveIds_.add(value); - onChanged(); - return this; - } - - private java.lang.Object severity_ = ""; - /** - *
-     * The severity of this bulletin as it relates to GKE.
-     * 
- * - * string severity = 4; - * @return The severity. - */ - public java.lang.String getSeverity() { - java.lang.Object ref = severity_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - severity_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The severity of this bulletin as it relates to GKE.
-     * 
- * - * string severity = 4; - * @return The bytes for severity. - */ - public com.google.protobuf.ByteString - getSeverityBytes() { - java.lang.Object ref = severity_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - severity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The severity of this bulletin as it relates to GKE.
-     * 
- * - * string severity = 4; - * @param value The severity to set. - * @return This builder for chaining. - */ - public Builder setSeverity( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - severity_ = value; - onChanged(); - return this; - } - /** - *
-     * The severity of this bulletin as it relates to GKE.
-     * 
- * - * string severity = 4; - * @return This builder for chaining. - */ - public Builder clearSeverity() { - - severity_ = getDefaultInstance().getSeverity(); - onChanged(); - return this; - } - /** - *
-     * The severity of this bulletin as it relates to GKE.
-     * 
- * - * string severity = 4; - * @param value The bytes for severity to set. - * @return This builder for chaining. - */ - public Builder setSeverityBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - severity_ = value; - onChanged(); - return this; - } - - private java.lang.Object bulletinUri_ = ""; - /** - *
-     * The URI link to the bulletin on the website for more information.
-     * 
- * - * string bulletin_uri = 5; - * @return The bulletinUri. - */ - public java.lang.String getBulletinUri() { - java.lang.Object ref = bulletinUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bulletinUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The URI link to the bulletin on the website for more information.
-     * 
- * - * string bulletin_uri = 5; - * @return The bytes for bulletinUri. - */ - public com.google.protobuf.ByteString - getBulletinUriBytes() { - java.lang.Object ref = bulletinUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bulletinUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The URI link to the bulletin on the website for more information.
-     * 
- * - * string bulletin_uri = 5; - * @param value The bulletinUri to set. - * @return This builder for chaining. - */ - public Builder setBulletinUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - bulletinUri_ = value; - onChanged(); - return this; - } - /** - *
-     * The URI link to the bulletin on the website for more information.
-     * 
- * - * string bulletin_uri = 5; - * @return This builder for chaining. - */ - public Builder clearBulletinUri() { - - bulletinUri_ = getDefaultInstance().getBulletinUri(); - onChanged(); - return this; - } - /** - *
-     * The URI link to the bulletin on the website for more information.
-     * 
- * - * string bulletin_uri = 5; - * @param value The bytes for bulletinUri to set. - * @return This builder for chaining. - */ - public Builder setBulletinUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - bulletinUri_ = value; - onChanged(); - return this; - } - - private java.lang.Object briefDescription_ = ""; - /** - *
-     * A brief description of the bulletin. See the bulletin pointed to by the
-     * bulletin_uri field for an expanded description.
-     * 
- * - * string brief_description = 6; - * @return The briefDescription. - */ - public java.lang.String getBriefDescription() { - java.lang.Object ref = briefDescription_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - briefDescription_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A brief description of the bulletin. See the bulletin pointed to by the
-     * bulletin_uri field for an expanded description.
-     * 
- * - * string brief_description = 6; - * @return The bytes for briefDescription. - */ - public com.google.protobuf.ByteString - getBriefDescriptionBytes() { - java.lang.Object ref = briefDescription_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - briefDescription_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A brief description of the bulletin. See the bulletin pointed to by the
-     * bulletin_uri field for an expanded description.
-     * 
- * - * string brief_description = 6; - * @param value The briefDescription to set. - * @return This builder for chaining. - */ - public Builder setBriefDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - briefDescription_ = value; - onChanged(); - return this; - } - /** - *
-     * A brief description of the bulletin. See the bulletin pointed to by the
-     * bulletin_uri field for an expanded description.
-     * 
- * - * string brief_description = 6; - * @return This builder for chaining. - */ - public Builder clearBriefDescription() { - - briefDescription_ = getDefaultInstance().getBriefDescription(); - onChanged(); - return this; - } - /** - *
-     * A brief description of the bulletin. See the bulletin pointed to by the
-     * bulletin_uri field for an expanded description.
-     * 
- * - * string brief_description = 6; - * @param value The bytes for briefDescription to set. - * @return This builder for chaining. - */ - public Builder setBriefDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - briefDescription_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList affectedSupportedMinors_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureAffectedSupportedMinorsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - affectedSupportedMinors_ = new com.google.protobuf.LazyStringArrayList(affectedSupportedMinors_); - bitField0_ |= 0x00000002; - } - } - /** - *
-     * The GKE minor versions affected by this vulnerability.
-     * 
- * - * repeated string affected_supported_minors = 7; - * @return A list containing the affectedSupportedMinors. - */ - public com.google.protobuf.ProtocolStringList - getAffectedSupportedMinorsList() { - return affectedSupportedMinors_.getUnmodifiableView(); - } - /** - *
-     * The GKE minor versions affected by this vulnerability.
-     * 
- * - * repeated string affected_supported_minors = 7; - * @return The count of affectedSupportedMinors. - */ - public int getAffectedSupportedMinorsCount() { - return affectedSupportedMinors_.size(); - } - /** - *
-     * The GKE minor versions affected by this vulnerability.
-     * 
- * - * repeated string affected_supported_minors = 7; - * @param index The index of the element to return. - * @return The affectedSupportedMinors at the given index. - */ - public java.lang.String getAffectedSupportedMinors(int index) { - return affectedSupportedMinors_.get(index); - } - /** - *
-     * The GKE minor versions affected by this vulnerability.
-     * 
- * - * repeated string affected_supported_minors = 7; - * @param index The index of the value to return. - * @return The bytes of the affectedSupportedMinors at the given index. - */ - public com.google.protobuf.ByteString - getAffectedSupportedMinorsBytes(int index) { - return affectedSupportedMinors_.getByteString(index); - } - /** - *
-     * The GKE minor versions affected by this vulnerability.
-     * 
- * - * repeated string affected_supported_minors = 7; - * @param index The index to set the value at. - * @param value The affectedSupportedMinors to set. - * @return This builder for chaining. - */ - public Builder setAffectedSupportedMinors( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAffectedSupportedMinorsIsMutable(); - affectedSupportedMinors_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * The GKE minor versions affected by this vulnerability.
-     * 
- * - * repeated string affected_supported_minors = 7; - * @param value The affectedSupportedMinors to add. - * @return This builder for chaining. - */ - public Builder addAffectedSupportedMinors( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAffectedSupportedMinorsIsMutable(); - affectedSupportedMinors_.add(value); - onChanged(); - return this; - } - /** - *
-     * The GKE minor versions affected by this vulnerability.
-     * 
- * - * repeated string affected_supported_minors = 7; - * @param values The affectedSupportedMinors to add. - * @return This builder for chaining. - */ - public Builder addAllAffectedSupportedMinors( - java.lang.Iterable values) { - ensureAffectedSupportedMinorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, affectedSupportedMinors_); - onChanged(); - return this; - } - /** - *
-     * The GKE minor versions affected by this vulnerability.
-     * 
- * - * repeated string affected_supported_minors = 7; - * @return This builder for chaining. - */ - public Builder clearAffectedSupportedMinors() { - affectedSupportedMinors_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * The GKE minor versions affected by this vulnerability.
-     * 
- * - * repeated string affected_supported_minors = 7; - * @param value The bytes of the affectedSupportedMinors to add. - * @return This builder for chaining. - */ - public Builder addAffectedSupportedMinorsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureAffectedSupportedMinorsIsMutable(); - affectedSupportedMinors_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList patchedVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensurePatchedVersionsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - patchedVersions_ = new com.google.protobuf.LazyStringArrayList(patchedVersions_); - bitField0_ |= 0x00000004; - } - } - /** - *
-     * The GKE versions where this vulnerability is patched.
-     * 
- * - * repeated string patched_versions = 8; - * @return A list containing the patchedVersions. - */ - public com.google.protobuf.ProtocolStringList - getPatchedVersionsList() { - return patchedVersions_.getUnmodifiableView(); - } - /** - *
-     * The GKE versions where this vulnerability is patched.
-     * 
- * - * repeated string patched_versions = 8; - * @return The count of patchedVersions. - */ - public int getPatchedVersionsCount() { - return patchedVersions_.size(); - } - /** - *
-     * The GKE versions where this vulnerability is patched.
-     * 
- * - * repeated string patched_versions = 8; - * @param index The index of the element to return. - * @return The patchedVersions at the given index. - */ - public java.lang.String getPatchedVersions(int index) { - return patchedVersions_.get(index); - } - /** - *
-     * The GKE versions where this vulnerability is patched.
-     * 
- * - * repeated string patched_versions = 8; - * @param index The index of the value to return. - * @return The bytes of the patchedVersions at the given index. - */ - public com.google.protobuf.ByteString - getPatchedVersionsBytes(int index) { - return patchedVersions_.getByteString(index); - } - /** - *
-     * The GKE versions where this vulnerability is patched.
-     * 
- * - * repeated string patched_versions = 8; - * @param index The index to set the value at. - * @param value The patchedVersions to set. - * @return This builder for chaining. - */ - public Builder setPatchedVersions( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePatchedVersionsIsMutable(); - patchedVersions_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * The GKE versions where this vulnerability is patched.
-     * 
- * - * repeated string patched_versions = 8; - * @param value The patchedVersions to add. - * @return This builder for chaining. - */ - public Builder addPatchedVersions( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePatchedVersionsIsMutable(); - patchedVersions_.add(value); - onChanged(); - return this; - } - /** - *
-     * The GKE versions where this vulnerability is patched.
-     * 
- * - * repeated string patched_versions = 8; - * @param values The patchedVersions to add. - * @return This builder for chaining. - */ - public Builder addAllPatchedVersions( - java.lang.Iterable values) { - ensurePatchedVersionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, patchedVersions_); - onChanged(); - return this; - } - /** - *
-     * The GKE versions where this vulnerability is patched.
-     * 
- * - * repeated string patched_versions = 8; - * @return This builder for chaining. - */ - public Builder clearPatchedVersions() { - patchedVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * The GKE versions where this vulnerability is patched.
-     * 
- * - * repeated string patched_versions = 8; - * @param value The bytes of the patchedVersions to add. - * @return This builder for chaining. - */ - public Builder addPatchedVersionsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensurePatchedVersionsIsMutable(); - patchedVersions_.add(value); - onChanged(); - return this; - } - - private java.lang.Object suggestedUpgradeTarget_ = ""; - /** - *
-     * This represents a version selected from the patched_versions field that
-     * the cluster receiving this notification should most likely want to upgrade
-     * to based on its current version. Note that if this notification is being
-     * received by a given cluster, it means that this version is currently
-     * available as an upgrade target in that cluster's location.
-     * 
- * - * string suggested_upgrade_target = 9; - * @return The suggestedUpgradeTarget. - */ - public java.lang.String getSuggestedUpgradeTarget() { - java.lang.Object ref = suggestedUpgradeTarget_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - suggestedUpgradeTarget_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * This represents a version selected from the patched_versions field that
-     * the cluster receiving this notification should most likely want to upgrade
-     * to based on its current version. Note that if this notification is being
-     * received by a given cluster, it means that this version is currently
-     * available as an upgrade target in that cluster's location.
-     * 
- * - * string suggested_upgrade_target = 9; - * @return The bytes for suggestedUpgradeTarget. - */ - public com.google.protobuf.ByteString - getSuggestedUpgradeTargetBytes() { - java.lang.Object ref = suggestedUpgradeTarget_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - suggestedUpgradeTarget_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * This represents a version selected from the patched_versions field that
-     * the cluster receiving this notification should most likely want to upgrade
-     * to based on its current version. Note that if this notification is being
-     * received by a given cluster, it means that this version is currently
-     * available as an upgrade target in that cluster's location.
-     * 
- * - * string suggested_upgrade_target = 9; - * @param value The suggestedUpgradeTarget to set. - * @return This builder for chaining. - */ - public Builder setSuggestedUpgradeTarget( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - suggestedUpgradeTarget_ = value; - onChanged(); - return this; - } - /** - *
-     * This represents a version selected from the patched_versions field that
-     * the cluster receiving this notification should most likely want to upgrade
-     * to based on its current version. Note that if this notification is being
-     * received by a given cluster, it means that this version is currently
-     * available as an upgrade target in that cluster's location.
-     * 
- * - * string suggested_upgrade_target = 9; - * @return This builder for chaining. - */ - public Builder clearSuggestedUpgradeTarget() { - - suggestedUpgradeTarget_ = getDefaultInstance().getSuggestedUpgradeTarget(); - onChanged(); - return this; - } - /** - *
-     * This represents a version selected from the patched_versions field that
-     * the cluster receiving this notification should most likely want to upgrade
-     * to based on its current version. Note that if this notification is being
-     * received by a given cluster, it means that this version is currently
-     * available as an upgrade target in that cluster's location.
-     * 
- * - * string suggested_upgrade_target = 9; - * @param value The bytes for suggestedUpgradeTarget to set. - * @return This builder for chaining. - */ - public Builder setSuggestedUpgradeTargetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - suggestedUpgradeTarget_ = value; - onChanged(); - return this; - } - - private boolean manualStepsRequired_ ; - /** - *
-     * If this field is specified, it means there are manual steps that the user
-     * must take to make their clusters safe.
-     * 
- * - * bool manual_steps_required = 10; - * @return The manualStepsRequired. - */ - @java.lang.Override - public boolean getManualStepsRequired() { - return manualStepsRequired_; - } - /** - *
-     * If this field is specified, it means there are manual steps that the user
-     * must take to make their clusters safe.
-     * 
- * - * bool manual_steps_required = 10; - * @param value The manualStepsRequired to set. - * @return This builder for chaining. - */ - public Builder setManualStepsRequired(boolean value) { - - manualStepsRequired_ = value; - onChanged(); - return this; - } - /** - *
-     * If this field is specified, it means there are manual steps that the user
-     * must take to make their clusters safe.
-     * 
- * - * bool manual_steps_required = 10; - * @return This builder for chaining. - */ - public Builder clearManualStepsRequired() { - - manualStepsRequired_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SecurityBulletinEvent) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.SecurityBulletinEvent) - private static final com.google.container.v1beta1.SecurityBulletinEvent DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.SecurityBulletinEvent(); - } - - public static com.google.container.v1beta1.SecurityBulletinEvent getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecurityBulletinEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 3d2f8a24ed91..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecurityBulletinEventOrBuilder.java +++ /dev/null @@ -1,277 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface SecurityBulletinEventOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SecurityBulletinEvent) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The resource type (node/control plane) that has the vulnerability. Multiple
-   * notifications (1 notification per resource type) will be sent for a
-   * vulnerability that affects > 1 resource type.
-   * 
- * - * string resource_type_affected = 1; - * @return The resourceTypeAffected. - */ - java.lang.String getResourceTypeAffected(); - /** - *
-   * The resource type (node/control plane) that has the vulnerability. Multiple
-   * notifications (1 notification per resource type) will be sent for a
-   * vulnerability that affects > 1 resource type.
-   * 
- * - * string resource_type_affected = 1; - * @return The bytes for resourceTypeAffected. - */ - com.google.protobuf.ByteString - getResourceTypeAffectedBytes(); - - /** - *
-   * The ID of the bulletin corresponding to the vulnerability.
-   * 
- * - * string bulletin_id = 2; - * @return The bulletinId. - */ - java.lang.String getBulletinId(); - /** - *
-   * The ID of the bulletin corresponding to the vulnerability.
-   * 
- * - * string bulletin_id = 2; - * @return The bytes for bulletinId. - */ - com.google.protobuf.ByteString - getBulletinIdBytes(); - - /** - *
-   * The CVEs associated with this bulletin.
-   * 
- * - * repeated string cve_ids = 3; - * @return A list containing the cveIds. - */ - java.util.List - getCveIdsList(); - /** - *
-   * The CVEs associated with this bulletin.
-   * 
- * - * repeated string cve_ids = 3; - * @return The count of cveIds. - */ - int getCveIdsCount(); - /** - *
-   * The CVEs associated with this bulletin.
-   * 
- * - * repeated string cve_ids = 3; - * @param index The index of the element to return. - * @return The cveIds at the given index. - */ - java.lang.String getCveIds(int index); - /** - *
-   * The CVEs associated with this bulletin.
-   * 
- * - * repeated string cve_ids = 3; - * @param index The index of the value to return. - * @return The bytes of the cveIds at the given index. - */ - com.google.protobuf.ByteString - getCveIdsBytes(int index); - - /** - *
-   * The severity of this bulletin as it relates to GKE.
-   * 
- * - * string severity = 4; - * @return The severity. - */ - java.lang.String getSeverity(); - /** - *
-   * The severity of this bulletin as it relates to GKE.
-   * 
- * - * string severity = 4; - * @return The bytes for severity. - */ - com.google.protobuf.ByteString - getSeverityBytes(); - - /** - *
-   * The URI link to the bulletin on the website for more information.
-   * 
- * - * string bulletin_uri = 5; - * @return The bulletinUri. - */ - java.lang.String getBulletinUri(); - /** - *
-   * The URI link to the bulletin on the website for more information.
-   * 
- * - * string bulletin_uri = 5; - * @return The bytes for bulletinUri. - */ - com.google.protobuf.ByteString - getBulletinUriBytes(); - - /** - *
-   * A brief description of the bulletin. See the bulletin pointed to by the
-   * bulletin_uri field for an expanded description.
-   * 
- * - * string brief_description = 6; - * @return The briefDescription. - */ - java.lang.String getBriefDescription(); - /** - *
-   * A brief description of the bulletin. See the bulletin pointed to by the
-   * bulletin_uri field for an expanded description.
-   * 
- * - * string brief_description = 6; - * @return The bytes for briefDescription. - */ - com.google.protobuf.ByteString - getBriefDescriptionBytes(); - - /** - *
-   * The GKE minor versions affected by this vulnerability.
-   * 
- * - * repeated string affected_supported_minors = 7; - * @return A list containing the affectedSupportedMinors. - */ - java.util.List - getAffectedSupportedMinorsList(); - /** - *
-   * The GKE minor versions affected by this vulnerability.
-   * 
- * - * repeated string affected_supported_minors = 7; - * @return The count of affectedSupportedMinors. - */ - int getAffectedSupportedMinorsCount(); - /** - *
-   * The GKE minor versions affected by this vulnerability.
-   * 
- * - * repeated string affected_supported_minors = 7; - * @param index The index of the element to return. - * @return The affectedSupportedMinors at the given index. - */ - java.lang.String getAffectedSupportedMinors(int index); - /** - *
-   * The GKE minor versions affected by this vulnerability.
-   * 
- * - * repeated string affected_supported_minors = 7; - * @param index The index of the value to return. - * @return The bytes of the affectedSupportedMinors at the given index. - */ - com.google.protobuf.ByteString - getAffectedSupportedMinorsBytes(int index); - - /** - *
-   * The GKE versions where this vulnerability is patched.
-   * 
- * - * repeated string patched_versions = 8; - * @return A list containing the patchedVersions. - */ - java.util.List - getPatchedVersionsList(); - /** - *
-   * The GKE versions where this vulnerability is patched.
-   * 
- * - * repeated string patched_versions = 8; - * @return The count of patchedVersions. - */ - int getPatchedVersionsCount(); - /** - *
-   * The GKE versions where this vulnerability is patched.
-   * 
- * - * repeated string patched_versions = 8; - * @param index The index of the element to return. - * @return The patchedVersions at the given index. - */ - java.lang.String getPatchedVersions(int index); - /** - *
-   * The GKE versions where this vulnerability is patched.
-   * 
- * - * repeated string patched_versions = 8; - * @param index The index of the value to return. - * @return The bytes of the patchedVersions at the given index. - */ - com.google.protobuf.ByteString - getPatchedVersionsBytes(int index); - - /** - *
-   * This represents a version selected from the patched_versions field that
-   * the cluster receiving this notification should most likely want to upgrade
-   * to based on its current version. Note that if this notification is being
-   * received by a given cluster, it means that this version is currently
-   * available as an upgrade target in that cluster's location.
-   * 
- * - * string suggested_upgrade_target = 9; - * @return The suggestedUpgradeTarget. - */ - java.lang.String getSuggestedUpgradeTarget(); - /** - *
-   * This represents a version selected from the patched_versions field that
-   * the cluster receiving this notification should most likely want to upgrade
-   * to based on its current version. Note that if this notification is being
-   * received by a given cluster, it means that this version is currently
-   * available as an upgrade target in that cluster's location.
-   * 
- * - * string suggested_upgrade_target = 9; - * @return The bytes for suggestedUpgradeTarget. - */ - com.google.protobuf.ByteString - getSuggestedUpgradeTargetBytes(); - - /** - *
-   * If this field is specified, it means there are manual steps that the user
-   * must take to make their clusters safe.
-   * 
- * - * bool manual_steps_required = 10; - * @return The manualStepsRequired. - */ - boolean getManualStepsRequired(); -} diff --git a/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 deleted file mode 100644 index 5b61d5bdf2c6..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServerConfig.java +++ /dev/null @@ -1,4556 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Kubernetes Engine service configuration.
- * 
- * - * Protobuf type {@code google.container.v1beta1.ServerConfig} - */ -public final class ServerConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.ServerConfig) - ServerConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use ServerConfig.newBuilder() to construct. - private ServerConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ServerConfig() { - defaultClusterVersion_ = ""; - validNodeVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - defaultImageType_ = ""; - validImageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - channels_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ServerConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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.MapField internalGetMapField( - 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.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReleaseChannelConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ServerConfig_ReleaseChannelConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ServerConfig_ReleaseChannelConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.class, com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.Builder.class); - } - - @java.lang.Deprecated public interface AvailableVersionOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion) - com.google.protobuf.MessageOrBuilder { - - /** - *
-       * Kubernetes version.
-       * 
- * - * string version = 1; - * @return The version. - */ - java.lang.String getVersion(); - /** - *
-       * Kubernetes version.
-       * 
- * - * string version = 1; - * @return The bytes for version. - */ - com.google.protobuf.ByteString - getVersionBytes(); - - /** - *
-       * Reason for availability.
-       * 
- * - * string reason = 2; - * @return The reason. - */ - java.lang.String getReason(); - /** - *
-       * Reason for availability.
-       * 
- * - * string reason = 2; - * @return The bytes for reason. - */ - com.google.protobuf.ByteString - getReasonBytes(); - } - /** - *
-     * Deprecated.
-     * 
- * - * Protobuf type {@code google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion} - */ - @java.lang.Deprecated public static final class AvailableVersion extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion) - AvailableVersionOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvailableVersion.newBuilder() to construct. - private AvailableVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AvailableVersion() { - version_ = ""; - reason_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvailableVersion(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ServerConfig_ReleaseChannelConfig_AvailableVersion_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ServerConfig_ReleaseChannelConfig_AvailableVersion_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion.class, com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion.Builder.class); - } - - public static final int VERSION_FIELD_NUMBER = 1; - private volatile java.lang.Object version_; - /** - *
-       * Kubernetes version.
-       * 
- * - * string version = 1; - * @return The version. - */ - @java.lang.Override - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } - } - /** - *
-       * Kubernetes version.
-       * 
- * - * string version = 1; - * @return The bytes for version. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REASON_FIELD_NUMBER = 2; - private volatile java.lang.Object reason_; - /** - *
-       * Reason for availability.
-       * 
- * - * string reason = 2; - * @return The reason. - */ - @java.lang.Override - public java.lang.String getReason() { - java.lang.Object ref = reason_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - reason_ = s; - return s; - } - } - /** - *
-       * Reason for availability.
-       * 
- * - * string reason = 2; - * @return The bytes for reason. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getReasonBytes() { - java.lang.Object ref = reason_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - reason_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - version_ = ""; - - reason_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ServerConfig_ReleaseChannelConfig_AvailableVersion_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion getDefaultInstanceForType() { - return com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion build() { - com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion buildPartial() { - com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion result = new com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion(this); - result.version_ = version_; - result.reason_ = reason_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion) { - return mergeFrom((com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion other) { - if (other == com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion.getDefaultInstance()) return this; - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - onChanged(); - } - if (!other.getReason().isEmpty()) { - reason_ = other.reason_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - reason_ = input.readStringRequireUtf8(); - - 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 java.lang.Object version_ = ""; - /** - *
-         * Kubernetes version.
-         * 
- * - * string version = 1; - * @return The version. - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-         * Kubernetes version.
-         * 
- * - * string version = 1; - * @return The bytes for version. - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-         * Kubernetes version.
-         * 
- * - * string version = 1; - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - version_ = value; - onChanged(); - return this; - } - /** - *
-         * Kubernetes version.
-         * 
- * - * string version = 1; - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - *
-         * Kubernetes version.
-         * 
- * - * string version = 1; - * @param value The bytes for version to set. - * @return This builder for chaining. - */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - version_ = value; - onChanged(); - return this; - } - - private java.lang.Object reason_ = ""; - /** - *
-         * Reason for availability.
-         * 
- * - * string reason = 2; - * @return The reason. - */ - public java.lang.String getReason() { - java.lang.Object ref = reason_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - reason_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-         * Reason for availability.
-         * 
- * - * string reason = 2; - * @return The bytes for reason. - */ - public com.google.protobuf.ByteString - getReasonBytes() { - java.lang.Object ref = reason_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - reason_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-         * Reason for availability.
-         * 
- * - * string reason = 2; - * @param value The reason to set. - * @return This builder for chaining. - */ - public Builder setReason( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - reason_ = value; - onChanged(); - return this; - } - /** - *
-         * Reason for availability.
-         * 
- * - * string reason = 2; - * @return This builder for chaining. - */ - public Builder clearReason() { - - reason_ = getDefaultInstance().getReason(); - onChanged(); - return this; - } - /** - *
-         * Reason for availability.
-         * 
- * - * string reason = 2; - * @param value The bytes for reason to set. - * @return This builder for chaining. - */ - public Builder setReasonBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - reason_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion) - private static final com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion(); - } - - public static com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AvailableVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int CHANNEL_FIELD_NUMBER = 1; - private int channel_; - /** - *
-     * The release channel this configuration applies to.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; - * @return The enum numeric value on the wire for channel. - */ - @java.lang.Override public int getChannelValue() { - return channel_; - } - /** - *
-     * The release channel this configuration applies to.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; - * @return The channel. - */ - @java.lang.Override public com.google.container.v1beta1.ReleaseChannel.Channel getChannel() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.ReleaseChannel.Channel result = com.google.container.v1beta1.ReleaseChannel.Channel.valueOf(channel_); - return result == null ? com.google.container.v1beta1.ReleaseChannel.Channel.UNRECOGNIZED : result; - } - - public static final int DEFAULT_VERSION_FIELD_NUMBER = 2; - private volatile java.lang.Object defaultVersion_; - /** - *
-     * The default version for newly created clusters on the channel.
-     * 
- * - * string default_version = 2; - * @return The defaultVersion. - */ - @java.lang.Override - public java.lang.String getDefaultVersion() { - java.lang.Object ref = defaultVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultVersion_ = s; - return s; - } - } - /** - *
-     * The default version for newly created clusters on the channel.
-     * 
- * - * string default_version = 2; - * @return The bytes for defaultVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDefaultVersionBytes() { - java.lang.Object ref = defaultVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AVAILABLE_VERSIONS_FIELD_NUMBER = 3; - private java.util.List 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; - private com.google.protobuf.LazyStringList validVersions_; - /** - *
-     * List of valid versions for the channel.
-     * 
- * - * repeated string valid_versions = 4; - * @return A list containing the validVersions. - */ - public com.google.protobuf.ProtocolStringList - getValidVersionsList() { - return validVersions_; - } - /** - *
-     * List of valid versions for the channel.
-     * 
- * - * repeated string valid_versions = 4; - * @return The count of validVersions. - */ - public int getValidVersionsCount() { - return validVersions_.size(); - } - /** - *
-     * List of valid versions for the channel.
-     * 
- * - * repeated string valid_versions = 4; - * @param index The index of the element to return. - * @return The validVersions at the given index. - */ - public java.lang.String getValidVersions(int index) { - return validVersions_.get(index); - } - /** - *
-     * List of valid versions for the channel.
-     * 
- * - * repeated string valid_versions = 4; - * @param index The index of the value to return. - * @return The bytes of the validVersions at the given index. - */ - public com.google.protobuf.ByteString - getValidVersionsBytes(int index) { - return validVersions_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (channel_ != com.google.container.v1beta1.ReleaseChannel.Channel.UNSPECIFIED.getNumber()) { - output.writeEnum(1, channel_); - } - if (!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(); - channel_ = 0; - - defaultVersion_ = ""; - - if (availableVersionsBuilder_ == null) { - availableVersions_ = java.util.Collections.emptyList(); - } else { - availableVersions_ = null; - availableVersionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - validVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ServerConfig_ReleaseChannelConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig build() { - com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig buildPartial() { - com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig result = new com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig(this); - int from_bitField0_ = bitField0_; - result.channel_ = channel_; - result.defaultVersion_ = defaultVersion_; - if (availableVersionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - availableVersions_ = java.util.Collections.unmodifiableList(availableVersions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.availableVersions_ = availableVersions_; - } else { - result.availableVersions_ = availableVersionsBuilder_.build(); - } - if (((bitField0_ & 0x00000002) != 0)) { - validVersions_ = validVersions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.validVersions_ = validVersions_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig) { - return mergeFrom((com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig other) { - if (other == com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.getDefaultInstance()) return this; - if (other.channel_ != 0) { - setChannelValue(other.getChannelValue()); - } - if (!other.getDefaultVersion().isEmpty()) { - defaultVersion_ = other.defaultVersion_; - onChanged(); - } - if (availableVersionsBuilder_ == null) { - if (!other.availableVersions_.isEmpty()) { - if (availableVersions_.isEmpty()) { - availableVersions_ = other.availableVersions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAvailableVersionsIsMutable(); - availableVersions_.addAll(other.availableVersions_); - } - onChanged(); - } - } else { - if (!other.availableVersions_.isEmpty()) { - if (availableVersionsBuilder_.isEmpty()) { - availableVersionsBuilder_.dispose(); - availableVersionsBuilder_ = null; - availableVersions_ = other.availableVersions_; - bitField0_ = (bitField0_ & ~0x00000001); - availableVersionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAvailableVersionsFieldBuilder() : null; - } else { - availableVersionsBuilder_.addAllMessages(other.availableVersions_); - } - } - } - if (!other.validVersions_.isEmpty()) { - if (validVersions_.isEmpty()) { - validVersions_ = other.validVersions_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureValidVersionsIsMutable(); - validVersions_.addAll(other.validVersions_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 8 - case 18: { - defaultVersion_ = input.readStringRequireUtf8(); - - 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; - onChanged(); - return this; - } - /** - *
-       * The release channel this configuration applies to.
-       * 
- * - * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; - * @return The channel. - */ - @java.lang.Override - public com.google.container.v1beta1.ReleaseChannel.Channel getChannel() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.ReleaseChannel.Channel result = com.google.container.v1beta1.ReleaseChannel.Channel.valueOf(channel_); - return result == null ? com.google.container.v1beta1.ReleaseChannel.Channel.UNRECOGNIZED : result; - } - /** - *
-       * The release channel this configuration applies to.
-       * 
- * - * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; - * @param value The channel to set. - * @return This builder for chaining. - */ - public Builder setChannel(com.google.container.v1beta1.ReleaseChannel.Channel value) { - if (value == null) { - throw new NullPointerException(); - } - - channel_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * The release channel this configuration applies to.
-       * 
- * - * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; - * @return This builder for chaining. - */ - public Builder clearChannel() { - - channel_ = 0; - onChanged(); - return this; - } - - private java.lang.Object defaultVersion_ = ""; - /** - *
-       * The default version for newly created clusters on the channel.
-       * 
- * - * string default_version = 2; - * @return The defaultVersion. - */ - public java.lang.String getDefaultVersion() { - java.lang.Object ref = defaultVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The default version for newly created clusters on the channel.
-       * 
- * - * string default_version = 2; - * @return The bytes for defaultVersion. - */ - public com.google.protobuf.ByteString - getDefaultVersionBytes() { - java.lang.Object ref = defaultVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The default version for newly created clusters on the channel.
-       * 
- * - * string default_version = 2; - * @param value The defaultVersion to set. - * @return This builder for chaining. - */ - public Builder setDefaultVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - defaultVersion_ = value; - onChanged(); - return this; - } - /** - *
-       * The default version for newly created clusters on the channel.
-       * 
- * - * string default_version = 2; - * @return This builder for chaining. - */ - public Builder clearDefaultVersion() { - - defaultVersion_ = getDefaultInstance().getDefaultVersion(); - onChanged(); - return this; - } - /** - *
-       * The default version for newly created clusters on the channel.
-       * 
- * - * string default_version = 2; - * @param value The bytes for defaultVersion to set. - * @return This builder for chaining. - */ - public Builder setDefaultVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - defaultVersion_ = value; - onChanged(); - return this; - } - - private java.util.List availableVersions_ = - java.util.Collections.emptyList(); - private void ensureAvailableVersionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - availableVersions_ = new java.util.ArrayList(availableVersions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion, com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion.Builder, com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersionOrBuilder> availableVersionsBuilder_; - - /** - *
-       * Deprecated.
-       * This field has been deprecated and replaced with the valid_versions
-       * field.
-       * 
- * - * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; - */ - @java.lang.Deprecated public java.util.List 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_ & ~0x00000001); - onChanged(); - } else { - availableVersionsBuilder_.clear(); - } - return this; - } - /** - *
-       * Deprecated.
-       * This field has been deprecated and replaced with the valid_versions
-       * field.
-       * 
- * - * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; - */ - @java.lang.Deprecated public Builder removeAvailableVersions(int index) { - if (availableVersionsBuilder_ == null) { - ensureAvailableVersionsIsMutable(); - availableVersions_.remove(index); - onChanged(); - } else { - availableVersionsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Deprecated.
-       * This field has been deprecated and replaced with the valid_versions
-       * field.
-       * 
- * - * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion.Builder getAvailableVersionsBuilder( - int index) { - return getAvailableVersionsFieldBuilder().getBuilder(index); - } - /** - *
-       * Deprecated.
-       * This field has been deprecated and replaced with the valid_versions
-       * field.
-       * 
- * - * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersionOrBuilder getAvailableVersionsOrBuilder( - int index) { - if (availableVersionsBuilder_ == null) { - return availableVersions_.get(index); } else { - return availableVersionsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Deprecated.
-       * This field has been deprecated and replaced with the valid_versions
-       * field.
-       * 
- * - * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; - */ - @java.lang.Deprecated public java.util.List - 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_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - availableVersions_ = null; - } - return availableVersionsBuilder_; - } - - private com.google.protobuf.LazyStringList validVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureValidVersionsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - validVersions_ = new com.google.protobuf.LazyStringArrayList(validVersions_); - bitField0_ |= 0x00000002; - } - } - /** - *
-       * List of valid versions for the channel.
-       * 
- * - * repeated string valid_versions = 4; - * @return A list containing the validVersions. - */ - public com.google.protobuf.ProtocolStringList - getValidVersionsList() { - return validVersions_.getUnmodifiableView(); - } - /** - *
-       * List of valid versions for the channel.
-       * 
- * - * repeated string valid_versions = 4; - * @return The count of validVersions. - */ - public int getValidVersionsCount() { - return validVersions_.size(); - } - /** - *
-       * List of valid versions for the channel.
-       * 
- * - * repeated string valid_versions = 4; - * @param index The index of the element to return. - * @return The validVersions at the given index. - */ - public java.lang.String getValidVersions(int index) { - return validVersions_.get(index); - } - /** - *
-       * List of valid versions for the channel.
-       * 
- * - * repeated string valid_versions = 4; - * @param index The index of the value to return. - * @return The bytes of the validVersions at the given index. - */ - public com.google.protobuf.ByteString - getValidVersionsBytes(int index) { - return validVersions_.getByteString(index); - } - /** - *
-       * List of valid versions for the channel.
-       * 
- * - * repeated string valid_versions = 4; - * @param index The index to set the value at. - * @param value The validVersions to set. - * @return This builder for chaining. - */ - public Builder setValidVersions( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidVersionsIsMutable(); - validVersions_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * List of valid versions for the channel.
-       * 
- * - * repeated string valid_versions = 4; - * @param value The validVersions to add. - * @return This builder for chaining. - */ - public Builder addValidVersions( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidVersionsIsMutable(); - validVersions_.add(value); - onChanged(); - return this; - } - /** - *
-       * List of valid versions for the channel.
-       * 
- * - * repeated string valid_versions = 4; - * @param values The validVersions to add. - * @return This builder for chaining. - */ - public Builder addAllValidVersions( - java.lang.Iterable values) { - ensureValidVersionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, validVersions_); - onChanged(); - return this; - } - /** - *
-       * List of valid versions for the channel.
-       * 
- * - * repeated string valid_versions = 4; - * @return This builder for chaining. - */ - public Builder clearValidVersions() { - validVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-       * List of valid versions for the channel.
-       * 
- * - * repeated string valid_versions = 4; - * @param value The bytes of the validVersions to add. - * @return This builder for chaining. - */ - public Builder addValidVersionsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureValidVersionsIsMutable(); - validVersions_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ServerConfig.ReleaseChannelConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.ServerConfig.ReleaseChannelConfig) - private static final com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig(); - } - - public static com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReleaseChannelConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int DEFAULT_CLUSTER_VERSION_FIELD_NUMBER = 1; - private volatile java.lang.Object defaultClusterVersion_; - /** - *
-   * Version of Kubernetes the service deploys by default.
-   * 
- * - * string default_cluster_version = 1; - * @return The defaultClusterVersion. - */ - @java.lang.Override - public java.lang.String getDefaultClusterVersion() { - java.lang.Object ref = defaultClusterVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultClusterVersion_ = s; - return s; - } - } - /** - *
-   * Version of Kubernetes the service deploys by default.
-   * 
- * - * string default_cluster_version = 1; - * @return The bytes for defaultClusterVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDefaultClusterVersionBytes() { - java.lang.Object ref = defaultClusterVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultClusterVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALID_NODE_VERSIONS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList validNodeVersions_; - /** - *
-   * List of valid node upgrade target versions, in descending order.
-   * 
- * - * repeated string valid_node_versions = 3; - * @return A list containing the validNodeVersions. - */ - public com.google.protobuf.ProtocolStringList - getValidNodeVersionsList() { - return validNodeVersions_; - } - /** - *
-   * List of valid node upgrade target versions, in descending order.
-   * 
- * - * repeated string valid_node_versions = 3; - * @return The count of validNodeVersions. - */ - public int getValidNodeVersionsCount() { - return validNodeVersions_.size(); - } - /** - *
-   * List of valid node upgrade target versions, in descending order.
-   * 
- * - * repeated string valid_node_versions = 3; - * @param index The index of the element to return. - * @return The validNodeVersions at the given index. - */ - public java.lang.String getValidNodeVersions(int index) { - return validNodeVersions_.get(index); - } - /** - *
-   * List of valid node upgrade target versions, in descending order.
-   * 
- * - * repeated string valid_node_versions = 3; - * @param index The index of the value to return. - * @return The bytes of the validNodeVersions at the given index. - */ - public com.google.protobuf.ByteString - getValidNodeVersionsBytes(int index) { - return validNodeVersions_.getByteString(index); - } - - public static final int DEFAULT_IMAGE_TYPE_FIELD_NUMBER = 4; - private volatile java.lang.Object defaultImageType_; - /** - *
-   * Default image type.
-   * 
- * - * string default_image_type = 4; - * @return The defaultImageType. - */ - @java.lang.Override - public java.lang.String getDefaultImageType() { - java.lang.Object ref = defaultImageType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultImageType_ = s; - return s; - } - } - /** - *
-   * Default image type.
-   * 
- * - * string default_image_type = 4; - * @return The bytes for defaultImageType. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDefaultImageTypeBytes() { - java.lang.Object ref = defaultImageType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultImageType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALID_IMAGE_TYPES_FIELD_NUMBER = 5; - private com.google.protobuf.LazyStringList validImageTypes_; - /** - *
-   * List of valid image types.
-   * 
- * - * repeated string valid_image_types = 5; - * @return A list containing the validImageTypes. - */ - public com.google.protobuf.ProtocolStringList - getValidImageTypesList() { - return validImageTypes_; - } - /** - *
-   * List of valid image types.
-   * 
- * - * repeated string valid_image_types = 5; - * @return The count of validImageTypes. - */ - public int getValidImageTypesCount() { - return validImageTypes_.size(); - } - /** - *
-   * List of valid image types.
-   * 
- * - * repeated string valid_image_types = 5; - * @param index The index of the element to return. - * @return The validImageTypes at the given index. - */ - public java.lang.String getValidImageTypes(int index) { - return validImageTypes_.get(index); - } - /** - *
-   * List of valid image types.
-   * 
- * - * repeated string valid_image_types = 5; - * @param index The index of the value to return. - * @return The bytes of the validImageTypes at the given index. - */ - public com.google.protobuf.ByteString - getValidImageTypesBytes(int index) { - return validImageTypes_.getByteString(index); - } - - public static final int VALID_MASTER_VERSIONS_FIELD_NUMBER = 6; - private com.google.protobuf.LazyStringList validMasterVersions_; - /** - *
-   * List of valid master versions, in descending order.
-   * 
- * - * repeated string valid_master_versions = 6; - * @return A list containing the validMasterVersions. - */ - public com.google.protobuf.ProtocolStringList - getValidMasterVersionsList() { - return validMasterVersions_; - } - /** - *
-   * List of valid master versions, in descending order.
-   * 
- * - * repeated string valid_master_versions = 6; - * @return The count of validMasterVersions. - */ - public int getValidMasterVersionsCount() { - return validMasterVersions_.size(); - } - /** - *
-   * List of valid master versions, in descending order.
-   * 
- * - * repeated string valid_master_versions = 6; - * @param index The index of the element to return. - * @return The validMasterVersions at the given index. - */ - public java.lang.String getValidMasterVersions(int index) { - return validMasterVersions_.get(index); - } - /** - *
-   * List of valid master versions, in descending order.
-   * 
- * - * repeated string valid_master_versions = 6; - * @param index The index of the value to return. - * @return The bytes of the validMasterVersions at the given index. - */ - public com.google.protobuf.ByteString - getValidMasterVersionsBytes(int index) { - return validMasterVersions_.getByteString(index); - } - - public static final int CHANNELS_FIELD_NUMBER = 9; - private java.util.List channels_; - /** - *
-   * List of release channel configurations.
-   * 
- * - * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - @java.lang.Override - public java.util.List getChannelsList() { - return channels_; - } - /** - *
-   * List of release channel configurations.
-   * 
- * - * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - @java.lang.Override - public java.util.List - 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()); - } - 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 com.google.container.v1beta1.WindowsVersions getWindowsVersionMapsOrDefault( - java.lang.String key, - 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.MapField internalGetMapField( - int number) { - switch (number) { - case 10: - return internalGetWindowsVersionMaps(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - 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(); - defaultClusterVersion_ = ""; - - validNodeVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - defaultImageType_ = ""; - - validImageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - if (channelsBuilder_ == null) { - channels_ = java.util.Collections.emptyList(); - } else { - channels_ = null; - channelsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - 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); - int from_bitField0_ = bitField0_; - result.defaultClusterVersion_ = defaultClusterVersion_; - if (((bitField0_ & 0x00000001) != 0)) { - validNodeVersions_ = validNodeVersions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.validNodeVersions_ = validNodeVersions_; - result.defaultImageType_ = defaultImageType_; - if (((bitField0_ & 0x00000002) != 0)) { - validImageTypes_ = validImageTypes_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.validImageTypes_ = validImageTypes_; - if (((bitField0_ & 0x00000004) != 0)) { - validMasterVersions_ = validMasterVersions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.validMasterVersions_ = validMasterVersions_; - if (channelsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - channels_ = java.util.Collections.unmodifiableList(channels_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.channels_ = channels_; - } else { - result.channels_ = channelsBuilder_.build(); - } - result.windowsVersionMaps_ = internalGetWindowsVersionMaps(); - result.windowsVersionMaps_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.ServerConfig) { - return mergeFrom((com.google.container.v1beta1.ServerConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.ServerConfig other) { - if (other == com.google.container.v1beta1.ServerConfig.getDefaultInstance()) return this; - if (!other.getDefaultClusterVersion().isEmpty()) { - defaultClusterVersion_ = other.defaultClusterVersion_; - onChanged(); - } - if (!other.validNodeVersions_.isEmpty()) { - if (validNodeVersions_.isEmpty()) { - validNodeVersions_ = other.validNodeVersions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValidNodeVersionsIsMutable(); - validNodeVersions_.addAll(other.validNodeVersions_); - } - onChanged(); - } - if (!other.getDefaultImageType().isEmpty()) { - defaultImageType_ = other.defaultImageType_; - onChanged(); - } - if (!other.validImageTypes_.isEmpty()) { - if (validImageTypes_.isEmpty()) { - validImageTypes_ = other.validImageTypes_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureValidImageTypesIsMutable(); - validImageTypes_.addAll(other.validImageTypes_); - } - onChanged(); - } - if (!other.validMasterVersions_.isEmpty()) { - if (validMasterVersions_.isEmpty()) { - validMasterVersions_ = other.validMasterVersions_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureValidMasterVersionsIsMutable(); - validMasterVersions_.addAll(other.validMasterVersions_); - } - onChanged(); - } - if (channelsBuilder_ == null) { - if (!other.channels_.isEmpty()) { - if (channels_.isEmpty()) { - channels_ = other.channels_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureChannelsIsMutable(); - channels_.addAll(other.channels_); - } - onChanged(); - } - } else { - if (!other.channels_.isEmpty()) { - if (channelsBuilder_.isEmpty()) { - channelsBuilder_.dispose(); - channelsBuilder_ = null; - channels_ = other.channels_; - bitField0_ = (bitField0_ & ~0x00000008); - channelsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getChannelsFieldBuilder() : null; - } else { - channelsBuilder_.addAllMessages(other.channels_); - } - } - } - internalGetMutableWindowsVersionMaps().mergeFrom( - other.internalGetWindowsVersionMaps()); - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureValidNodeVersionsIsMutable(); - validNodeVersions_.add(s); - break; - } // case 26 - case 34: { - defaultImageType_ = input.readStringRequireUtf8(); - - 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().getMutableMap().put( - windowsVersionMaps__.getKey(), windowsVersionMaps__.getValue()); - 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; - onChanged(); - return this; - } - /** - *
-     * Version of Kubernetes the service deploys by default.
-     * 
- * - * string default_cluster_version = 1; - * @return This builder for chaining. - */ - public Builder clearDefaultClusterVersion() { - - defaultClusterVersion_ = getDefaultInstance().getDefaultClusterVersion(); - onChanged(); - return this; - } - /** - *
-     * Version of Kubernetes the service deploys by default.
-     * 
- * - * string default_cluster_version = 1; - * @param value The bytes for defaultClusterVersion to set. - * @return This builder for chaining. - */ - public Builder setDefaultClusterVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - defaultClusterVersion_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList validNodeVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureValidNodeVersionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - validNodeVersions_ = new com.google.protobuf.LazyStringArrayList(validNodeVersions_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * List of valid node upgrade target versions, in descending order.
-     * 
- * - * repeated string valid_node_versions = 3; - * @return A list containing the validNodeVersions. - */ - public com.google.protobuf.ProtocolStringList - getValidNodeVersionsList() { - return validNodeVersions_.getUnmodifiableView(); - } - /** - *
-     * List of valid node upgrade target versions, in descending order.
-     * 
- * - * repeated string valid_node_versions = 3; - * @return The count of validNodeVersions. - */ - public int getValidNodeVersionsCount() { - return validNodeVersions_.size(); - } - /** - *
-     * List of valid node upgrade target versions, in descending order.
-     * 
- * - * repeated string valid_node_versions = 3; - * @param index The index of the element to return. - * @return The validNodeVersions at the given index. - */ - public java.lang.String getValidNodeVersions(int index) { - return validNodeVersions_.get(index); - } - /** - *
-     * List of valid node upgrade target versions, in descending order.
-     * 
- * - * repeated string valid_node_versions = 3; - * @param index The index of the value to return. - * @return The bytes of the validNodeVersions at the given index. - */ - public com.google.protobuf.ByteString - getValidNodeVersionsBytes(int index) { - return validNodeVersions_.getByteString(index); - } - /** - *
-     * List of valid node upgrade target versions, in descending order.
-     * 
- * - * repeated string valid_node_versions = 3; - * @param index The index to set the value at. - * @param value The validNodeVersions to set. - * @return This builder for chaining. - */ - public Builder setValidNodeVersions( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidNodeVersionsIsMutable(); - validNodeVersions_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * List of valid node upgrade target versions, in descending order.
-     * 
- * - * repeated string valid_node_versions = 3; - * @param value The validNodeVersions to add. - * @return This builder for chaining. - */ - public Builder addValidNodeVersions( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidNodeVersionsIsMutable(); - validNodeVersions_.add(value); - onChanged(); - return this; - } - /** - *
-     * List of valid node upgrade target versions, in descending order.
-     * 
- * - * repeated string valid_node_versions = 3; - * @param values The validNodeVersions to add. - * @return This builder for chaining. - */ - public Builder addAllValidNodeVersions( - java.lang.Iterable values) { - ensureValidNodeVersionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, validNodeVersions_); - onChanged(); - return this; - } - /** - *
-     * List of valid node upgrade target versions, in descending order.
-     * 
- * - * repeated string valid_node_versions = 3; - * @return This builder for chaining. - */ - public Builder clearValidNodeVersions() { - validNodeVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * List of valid node upgrade target versions, in descending order.
-     * 
- * - * repeated string valid_node_versions = 3; - * @param value The bytes of the validNodeVersions to add. - * @return This builder for chaining. - */ - public Builder addValidNodeVersionsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureValidNodeVersionsIsMutable(); - validNodeVersions_.add(value); - onChanged(); - return this; - } - - private java.lang.Object defaultImageType_ = ""; - /** - *
-     * Default image type.
-     * 
- * - * string default_image_type = 4; - * @return The defaultImageType. - */ - public java.lang.String getDefaultImageType() { - java.lang.Object ref = defaultImageType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultImageType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Default image type.
-     * 
- * - * string default_image_type = 4; - * @return The bytes for defaultImageType. - */ - public com.google.protobuf.ByteString - getDefaultImageTypeBytes() { - java.lang.Object ref = defaultImageType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultImageType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Default image type.
-     * 
- * - * string default_image_type = 4; - * @param value The defaultImageType to set. - * @return This builder for chaining. - */ - public Builder setDefaultImageType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - defaultImageType_ = value; - onChanged(); - return this; - } - /** - *
-     * Default image type.
-     * 
- * - * string default_image_type = 4; - * @return This builder for chaining. - */ - public Builder clearDefaultImageType() { - - defaultImageType_ = getDefaultInstance().getDefaultImageType(); - onChanged(); - return this; - } - /** - *
-     * Default image type.
-     * 
- * - * string default_image_type = 4; - * @param value The bytes for defaultImageType to set. - * @return This builder for chaining. - */ - public Builder setDefaultImageTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - defaultImageType_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList validImageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureValidImageTypesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - validImageTypes_ = new com.google.protobuf.LazyStringArrayList(validImageTypes_); - bitField0_ |= 0x00000002; - } - } - /** - *
-     * List of valid image types.
-     * 
- * - * repeated string valid_image_types = 5; - * @return A list containing the validImageTypes. - */ - public com.google.protobuf.ProtocolStringList - getValidImageTypesList() { - return validImageTypes_.getUnmodifiableView(); - } - /** - *
-     * List of valid image types.
-     * 
- * - * repeated string valid_image_types = 5; - * @return The count of validImageTypes. - */ - public int getValidImageTypesCount() { - return validImageTypes_.size(); - } - /** - *
-     * List of valid image types.
-     * 
- * - * repeated string valid_image_types = 5; - * @param index The index of the element to return. - * @return The validImageTypes at the given index. - */ - public java.lang.String getValidImageTypes(int index) { - return validImageTypes_.get(index); - } - /** - *
-     * List of valid image types.
-     * 
- * - * repeated string valid_image_types = 5; - * @param index The index of the value to return. - * @return The bytes of the validImageTypes at the given index. - */ - public com.google.protobuf.ByteString - getValidImageTypesBytes(int index) { - return validImageTypes_.getByteString(index); - } - /** - *
-     * List of valid image types.
-     * 
- * - * repeated string valid_image_types = 5; - * @param index The index to set the value at. - * @param value The validImageTypes to set. - * @return This builder for chaining. - */ - public Builder setValidImageTypes( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidImageTypesIsMutable(); - validImageTypes_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * List of valid image types.
-     * 
- * - * repeated string valid_image_types = 5; - * @param value The validImageTypes to add. - * @return This builder for chaining. - */ - public Builder addValidImageTypes( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidImageTypesIsMutable(); - validImageTypes_.add(value); - onChanged(); - return this; - } - /** - *
-     * List of valid image types.
-     * 
- * - * repeated string valid_image_types = 5; - * @param values The validImageTypes to add. - * @return This builder for chaining. - */ - public Builder addAllValidImageTypes( - java.lang.Iterable values) { - ensureValidImageTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, validImageTypes_); - onChanged(); - return this; - } - /** - *
-     * List of valid image types.
-     * 
- * - * repeated string valid_image_types = 5; - * @return This builder for chaining. - */ - public Builder clearValidImageTypes() { - validImageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * List of valid image types.
-     * 
- * - * repeated string valid_image_types = 5; - * @param value The bytes of the validImageTypes to add. - * @return This builder for chaining. - */ - public Builder addValidImageTypesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureValidImageTypesIsMutable(); - validImageTypes_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureValidMasterVersionsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - validMasterVersions_ = new com.google.protobuf.LazyStringArrayList(validMasterVersions_); - bitField0_ |= 0x00000004; - } - } - /** - *
-     * List of valid master versions, in descending order.
-     * 
- * - * repeated string valid_master_versions = 6; - * @return A list containing the validMasterVersions. - */ - public com.google.protobuf.ProtocolStringList - getValidMasterVersionsList() { - return validMasterVersions_.getUnmodifiableView(); - } - /** - *
-     * List of valid master versions, in descending order.
-     * 
- * - * repeated string valid_master_versions = 6; - * @return The count of validMasterVersions. - */ - public int getValidMasterVersionsCount() { - return validMasterVersions_.size(); - } - /** - *
-     * List of valid master versions, in descending order.
-     * 
- * - * repeated string valid_master_versions = 6; - * @param index The index of the element to return. - * @return The validMasterVersions at the given index. - */ - public java.lang.String getValidMasterVersions(int index) { - return validMasterVersions_.get(index); - } - /** - *
-     * List of valid master versions, in descending order.
-     * 
- * - * repeated string valid_master_versions = 6; - * @param index The index of the value to return. - * @return The bytes of the validMasterVersions at the given index. - */ - public com.google.protobuf.ByteString - getValidMasterVersionsBytes(int index) { - return validMasterVersions_.getByteString(index); - } - /** - *
-     * List of valid master versions, in descending order.
-     * 
- * - * repeated string valid_master_versions = 6; - * @param index The index to set the value at. - * @param value The validMasterVersions to set. - * @return This builder for chaining. - */ - public Builder setValidMasterVersions( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidMasterVersionsIsMutable(); - validMasterVersions_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * List of valid master versions, in descending order.
-     * 
- * - * repeated string valid_master_versions = 6; - * @param value The validMasterVersions to add. - * @return This builder for chaining. - */ - public Builder addValidMasterVersions( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidMasterVersionsIsMutable(); - validMasterVersions_.add(value); - onChanged(); - return this; - } - /** - *
-     * List of valid master versions, in descending order.
-     * 
- * - * repeated string valid_master_versions = 6; - * @param values The validMasterVersions to add. - * @return This builder for chaining. - */ - public Builder addAllValidMasterVersions( - java.lang.Iterable values) { - ensureValidMasterVersionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, validMasterVersions_); - onChanged(); - return this; - } - /** - *
-     * List of valid master versions, in descending order.
-     * 
- * - * repeated string valid_master_versions = 6; - * @return This builder for chaining. - */ - public Builder clearValidMasterVersions() { - validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * List of valid master versions, in descending order.
-     * 
- * - * repeated string valid_master_versions = 6; - * @param value The bytes of the validMasterVersions to add. - * @return This builder for chaining. - */ - public Builder addValidMasterVersionsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureValidMasterVersionsIsMutable(); - validMasterVersions_.add(value); - onChanged(); - return this; - } - - private java.util.List channels_ = - java.util.Collections.emptyList(); - private void ensureChannelsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - channels_ = new java.util.ArrayList(channels_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig, com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.Builder, com.google.container.v1beta1.ServerConfig.ReleaseChannelConfigOrBuilder> channelsBuilder_; - - /** - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public java.util.List getChannelsList() { - if (channelsBuilder_ == null) { - return java.util.Collections.unmodifiableList(channels_); - } else { - return channelsBuilder_.getMessageList(); - } - } - /** - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public int getChannelsCount() { - if (channelsBuilder_ == null) { - return channels_.size(); - } else { - return channelsBuilder_.getCount(); - } - } - /** - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig getChannels(int index) { - if (channelsBuilder_ == null) { - return channels_.get(index); - } else { - return channelsBuilder_.getMessage(index); - } - } - /** - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public Builder setChannels( - int index, com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig value) { - if (channelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChannelsIsMutable(); - channels_.set(index, value); - onChanged(); - } else { - channelsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public Builder setChannels( - int index, com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.Builder builderForValue) { - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - channels_.set(index, builderForValue.build()); - onChanged(); - } else { - channelsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public Builder addChannels(com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig value) { - if (channelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChannelsIsMutable(); - channels_.add(value); - onChanged(); - } else { - channelsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public Builder addChannels( - int index, com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig value) { - if (channelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChannelsIsMutable(); - channels_.add(index, value); - onChanged(); - } else { - channelsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public Builder addChannels( - com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.Builder builderForValue) { - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - channels_.add(builderForValue.build()); - onChanged(); - } else { - channelsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public Builder addChannels( - int index, com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.Builder builderForValue) { - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - channels_.add(index, builderForValue.build()); - onChanged(); - } else { - channelsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public Builder addAllChannels( - java.lang.Iterable values) { - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, channels_); - onChanged(); - } else { - channelsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public Builder clearChannels() { - if (channelsBuilder_ == null) { - channels_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - channelsBuilder_.clear(); - } - return this; - } - /** - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public Builder removeChannels(int index) { - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - channels_.remove(index); - onChanged(); - } else { - channelsBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.Builder getChannelsBuilder( - int index) { - return getChannelsFieldBuilder().getBuilder(index); - } - /** - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfigOrBuilder getChannelsOrBuilder( - int index) { - if (channelsBuilder_ == null) { - return channels_.get(index); } else { - return channelsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public java.util.List - getChannelsOrBuilderList() { - if (channelsBuilder_ != null) { - return channelsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(channels_); - } - } - /** - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.Builder addChannelsBuilder() { - return getChannelsFieldBuilder().addBuilder( - com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.getDefaultInstance()); - } - /** - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.Builder addChannelsBuilder( - int index) { - return getChannelsFieldBuilder().addBuilder( - index, com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.getDefaultInstance()); - } - /** - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public java.util.List - getChannelsBuilderList() { - return getChannelsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig, com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.Builder, com.google.container.v1beta1.ServerConfig.ReleaseChannelConfigOrBuilder> - getChannelsFieldBuilder() { - if (channelsBuilder_ == null) { - channelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig, com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.Builder, com.google.container.v1beta1.ServerConfig.ReleaseChannelConfigOrBuilder>( - channels_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - channels_ = null; - } - return channelsBuilder_; - } - - 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_; - } - private com.google.protobuf.MapField - internalGetMutableWindowsVersionMaps() { - onChanged();; - if (windowsVersionMaps_ == null) { - windowsVersionMaps_ = com.google.protobuf.MapField.newMapField( - WindowsVersionMapsDefaultEntryHolder.defaultEntry); - } - if (!windowsVersionMaps_.isMutable()) { - windowsVersionMaps_ = windowsVersionMaps_.copy(); - } - 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 com.google.container.v1beta1.WindowsVersions getWindowsVersionMapsOrDefault( - java.lang.String key, - 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); - } - - public Builder clearWindowsVersionMaps() { - internalGetMutableWindowsVersionMaps().getMutableMap() - .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().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableWindowsVersionMaps() { - return internalGetMutableWindowsVersionMaps().getMutableMap(); - } - /** - *
-     * 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().getMutableMap() - .put(key, value); - 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) { - internalGetMutableWindowsVersionMaps().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.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 deleted file mode 100644 index d4d2bb3436d9..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServerConfigOrBuilder.java +++ /dev/null @@ -1,272 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface ServerConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ServerConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Version of Kubernetes the service deploys by default.
-   * 
- * - * string default_cluster_version = 1; - * @return The defaultClusterVersion. - */ - java.lang.String getDefaultClusterVersion(); - /** - *
-   * Version of Kubernetes the service deploys by default.
-   * 
- * - * string default_cluster_version = 1; - * @return The bytes for defaultClusterVersion. - */ - com.google.protobuf.ByteString - getDefaultClusterVersionBytes(); - - /** - *
-   * List of valid node upgrade target versions, in descending order.
-   * 
- * - * repeated string valid_node_versions = 3; - * @return A list containing the validNodeVersions. - */ - java.util.List - getValidNodeVersionsList(); - /** - *
-   * List of valid node upgrade target versions, in descending order.
-   * 
- * - * repeated string valid_node_versions = 3; - * @return The count of validNodeVersions. - */ - int getValidNodeVersionsCount(); - /** - *
-   * List of valid node upgrade target versions, in descending order.
-   * 
- * - * repeated string valid_node_versions = 3; - * @param index The index of the element to return. - * @return The validNodeVersions at the given index. - */ - java.lang.String getValidNodeVersions(int index); - /** - *
-   * List of valid node upgrade target versions, in descending order.
-   * 
- * - * repeated string valid_node_versions = 3; - * @param index The index of the value to return. - * @return The bytes of the validNodeVersions at the given index. - */ - com.google.protobuf.ByteString - getValidNodeVersionsBytes(int index); - - /** - *
-   * Default image type.
-   * 
- * - * string default_image_type = 4; - * @return The defaultImageType. - */ - java.lang.String getDefaultImageType(); - /** - *
-   * Default image type.
-   * 
- * - * string default_image_type = 4; - * @return The bytes for defaultImageType. - */ - com.google.protobuf.ByteString - getDefaultImageTypeBytes(); - - /** - *
-   * List of valid image types.
-   * 
- * - * repeated string valid_image_types = 5; - * @return A list containing the validImageTypes. - */ - java.util.List - getValidImageTypesList(); - /** - *
-   * List of valid image types.
-   * 
- * - * repeated string valid_image_types = 5; - * @return The count of validImageTypes. - */ - int getValidImageTypesCount(); - /** - *
-   * List of valid image types.
-   * 
- * - * repeated string valid_image_types = 5; - * @param index The index of the element to return. - * @return The validImageTypes at the given index. - */ - java.lang.String getValidImageTypes(int index); - /** - *
-   * List of valid image types.
-   * 
- * - * repeated string valid_image_types = 5; - * @param index The index of the value to return. - * @return The bytes of the validImageTypes at the given index. - */ - com.google.protobuf.ByteString - getValidImageTypesBytes(int index); - - /** - *
-   * List of valid master versions, in descending order.
-   * 
- * - * repeated string valid_master_versions = 6; - * @return A list containing the validMasterVersions. - */ - java.util.List - getValidMasterVersionsList(); - /** - *
-   * List of valid master versions, in descending order.
-   * 
- * - * repeated string valid_master_versions = 6; - * @return The count of validMasterVersions. - */ - int getValidMasterVersionsCount(); - /** - *
-   * List of valid master versions, in descending order.
-   * 
- * - * repeated string valid_master_versions = 6; - * @param index The index of the element to return. - * @return The validMasterVersions at the given index. - */ - java.lang.String getValidMasterVersions(int index); - /** - *
-   * List of valid master versions, in descending order.
-   * 
- * - * repeated string valid_master_versions = 6; - * @param index The index of the value to return. - * @return The bytes of the validMasterVersions at the given index. - */ - com.google.protobuf.ByteString - getValidMasterVersionsBytes(int index); - - /** - *
-   * List of release channel configurations.
-   * 
- * - * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - java.util.List - getChannelsList(); - /** - *
-   * List of release channel configurations.
-   * 
- * - * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig getChannels(int index); - /** - *
-   * List of release channel configurations.
-   * 
- * - * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - int getChannelsCount(); - /** - *
-   * List of release channel configurations.
-   * 
- * - * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - java.util.List - getChannelsOrBuilderList(); - /** - *
-   * List of release channel configurations.
-   * 
- * - * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - com.google.container.v1beta1.ServerConfig.ReleaseChannelConfigOrBuilder getChannelsOrBuilder( - int index); - - /** - *
-   * 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 deleted file mode 100644 index 9d8725cd2935..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServiceExternalIPsConfig.java +++ /dev/null @@ -1,490 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * 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(); - 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); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.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(); - - 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 boolean enabled_ ; - /** - *
-     * Whether Services with ExternalIPs field are allowed or not.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Whether Services with ExternalIPs field are allowed or not.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether Services with ExternalIPs field are allowed or not.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index 4c00e676b77f..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServiceExternalIPsConfigOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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 deleted file mode 100644 index ca9131dab4b4..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequest.java +++ /dev/null @@ -1,1402 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * SetAddonsRequest sets the addons associated with the cluster.
- * 
- * - * Protobuf type {@code google.container.v1beta1.SetAddonsConfigRequest} - */ -public final class SetAddonsConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetAddonsConfigRequest) - SetAddonsConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use SetAddonsConfigRequest.newBuilder() to construct. - private SetAddonsConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SetAddonsConfigRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SetAddonsConfigRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetAddonsConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetAddonsConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.SetAddonsConfigRequest.class, com.google.container.v1beta1.SetAddonsConfigRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=2693 - * @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=2693 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Required. Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2702 - * @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=2702 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * Required. Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2709 - * @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=2709 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ADDONS_CONFIG_FIELD_NUMBER = 4; - private com.google.container.v1beta1.AddonsConfig addonsConfig_; - /** - *
-   * Required. The desired configurations for the various addons available to run in the
-   * cluster.
-   * 
- * - * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the addonsConfig field is set. - */ - @java.lang.Override - public boolean hasAddonsConfig() { - return addonsConfig_ != null; - } - /** - *
-   * Required. The desired configurations for the various addons available to run in the
-   * cluster.
-   * 
- * - * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The addonsConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.AddonsConfig getAddonsConfig() { - return addonsConfig_ == null ? com.google.container.v1beta1.AddonsConfig.getDefaultInstance() : addonsConfig_; - } - /** - *
-   * Required. The desired configurations for the various addons available to run in the
-   * cluster.
-   * 
- * - * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.container.v1beta1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() { - return getAddonsConfig(); - } - - public static final int NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster) of the cluster to set addons.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project, location, cluster) of the cluster to set addons.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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 (addonsConfig_ != null) { - 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 (addonsConfig_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - if (addonsConfigBuilder_ == null) { - addonsConfig_ = null; - } else { - addonsConfig_ = null; - addonsConfigBuilder_ = null; - } - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetAddonsConfigRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.SetAddonsConfigRequest getDefaultInstanceForType() { - return com.google.container.v1beta1.SetAddonsConfigRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.SetAddonsConfigRequest build() { - com.google.container.v1beta1.SetAddonsConfigRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.SetAddonsConfigRequest buildPartial() { - com.google.container.v1beta1.SetAddonsConfigRequest result = new com.google.container.v1beta1.SetAddonsConfigRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - if (addonsConfigBuilder_ == null) { - result.addonsConfig_ = addonsConfig_; - } else { - result.addonsConfig_ = addonsConfigBuilder_.build(); - } - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.SetAddonsConfigRequest) { - return mergeFrom((com.google.container.v1beta1.SetAddonsConfigRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.SetAddonsConfigRequest other) { - if (other == com.google.container.v1beta1.SetAddonsConfigRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (other.hasAddonsConfig()) { - mergeAddonsConfig(other.getAddonsConfig()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - input.readMessage( - getAddonsConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 34 - case 50: { - name_ = input.readStringRequireUtf8(); - - 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 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=2693 - * @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=2693 - * @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=2693 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=2693 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=2693 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2702 - * @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=2702 - * @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=2702 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2702 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2702 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * Required. Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2709 - * @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=2709 - * @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=2709 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2709 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2709 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private com.google.container.v1beta1.AddonsConfig addonsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AddonsConfig, com.google.container.v1beta1.AddonsConfig.Builder, com.google.container.v1beta1.AddonsConfigOrBuilder> addonsConfigBuilder_; - /** - *
-     * Required. The desired configurations for the various addons available to run in the
-     * cluster.
-     * 
- * - * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the addonsConfig field is set. - */ - public boolean hasAddonsConfig() { - return addonsConfigBuilder_ != null || addonsConfig_ != null; - } - /** - *
-     * Required. The desired configurations for the various addons available to run in the
-     * cluster.
-     * 
- * - * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The addonsConfig. - */ - public com.google.container.v1beta1.AddonsConfig getAddonsConfig() { - if (addonsConfigBuilder_ == null) { - return addonsConfig_ == null ? com.google.container.v1beta1.AddonsConfig.getDefaultInstance() : addonsConfig_; - } else { - return addonsConfigBuilder_.getMessage(); - } - } - /** - *
-     * Required. The desired configurations for the various addons available to run in the
-     * cluster.
-     * 
- * - * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setAddonsConfig(com.google.container.v1beta1.AddonsConfig value) { - if (addonsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - addonsConfig_ = value; - onChanged(); - } else { - addonsConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Required. The desired configurations for the various addons available to run in the
-     * cluster.
-     * 
- * - * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setAddonsConfig( - com.google.container.v1beta1.AddonsConfig.Builder builderForValue) { - if (addonsConfigBuilder_ == null) { - addonsConfig_ = builderForValue.build(); - onChanged(); - } else { - addonsConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Required. The desired configurations for the various addons available to run in the
-     * cluster.
-     * 
- * - * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeAddonsConfig(com.google.container.v1beta1.AddonsConfig value) { - if (addonsConfigBuilder_ == null) { - if (addonsConfig_ != null) { - addonsConfig_ = - com.google.container.v1beta1.AddonsConfig.newBuilder(addonsConfig_).mergeFrom(value).buildPartial(); - } else { - addonsConfig_ = value; - } - onChanged(); - } else { - addonsConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Required. The desired configurations for the various addons available to run in the
-     * cluster.
-     * 
- * - * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearAddonsConfig() { - if (addonsConfigBuilder_ == null) { - addonsConfig_ = null; - onChanged(); - } else { - addonsConfig_ = null; - addonsConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Required. The desired configurations for the various addons available to run in the
-     * cluster.
-     * 
- * - * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.container.v1beta1.AddonsConfig.Builder getAddonsConfigBuilder() { - - onChanged(); - return getAddonsConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The desired configurations for the various addons available to run in the
-     * cluster.
-     * 
- * - * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.container.v1beta1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() { - if (addonsConfigBuilder_ != null) { - return addonsConfigBuilder_.getMessageOrBuilder(); - } else { - return addonsConfig_ == null ? - com.google.container.v1beta1.AddonsConfig.getDefaultInstance() : addonsConfig_; - } - } - /** - *
-     * Required. The desired configurations for the various addons available to run in the
-     * cluster.
-     * 
- * - * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AddonsConfig, com.google.container.v1beta1.AddonsConfig.Builder, com.google.container.v1beta1.AddonsConfigOrBuilder> - getAddonsConfigFieldBuilder() { - if (addonsConfigBuilder_ == null) { - addonsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AddonsConfig, com.google.container.v1beta1.AddonsConfig.Builder, com.google.container.v1beta1.AddonsConfigOrBuilder>( - getAddonsConfig(), - getParentForChildren(), - isClean()); - addonsConfig_ = null; - } - return addonsConfigBuilder_; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster) of the cluster to set addons.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name (project, location, cluster) of the cluster to set addons.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name (project, location, cluster) of the cluster to set addons.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster) of the cluster to set addons.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster) of the cluster to set addons.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetAddonsConfigRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetAddonsConfigRequest) - private static final com.google.container.v1beta1.SetAddonsConfigRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.SetAddonsConfigRequest(); - } - - public static com.google.container.v1beta1.SetAddonsConfigRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetAddonsConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index ec59d600061d..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequestOrBuilder.java +++ /dev/null @@ -1,145 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface SetAddonsConfigRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetAddonsConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=2693 - * @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=2693 - * @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=2702 - * @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=2702 - * @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=2709 - * @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=2709 - * @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 deleted file mode 100644 index 4a3d128d3d65..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequest.java +++ /dev/null @@ -1,1691 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * SetLabelsRequest sets the Google Cloud Platform labels on a Google Container
- * Engine cluster, which will in turn set them for Google Compute Engine
- * resources used by that cluster
- * 
- * - * Protobuf type {@code google.container.v1beta1.SetLabelsRequest} - */ -public final class SetLabelsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetLabelsRequest) - SetLabelsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use SetLabelsRequest.newBuilder() to construct. - private SetLabelsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SetLabelsRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - labelFingerprint_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SetLabelsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetLabelsRequest_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 4: - return internalGetResourceLabels(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetLabelsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.SetLabelsRequest.class, com.google.container.v1beta1.SetLabelsRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=4014 - * @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=4014 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Required. Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4023 - * @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=4023 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * Required. Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4030 - * @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=4030 - * @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, - ""); - } - 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 java.lang.String getResourceLabelsOrDefault( - java.lang.String key, - 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; - private volatile java.lang.Object labelFingerprint_; - /** - *
-   * Required. The fingerprint of the previous set of labels for this resource,
-   * used to detect conflicts. The fingerprint is initially generated by
-   * Kubernetes Engine and changes after every request to modify or update
-   * labels. You must always provide an up-to-date fingerprint hash when
-   * updating or changing labels. Make a `get()` request to the
-   * resource to get the latest fingerprint.
-   * 
- * - * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The labelFingerprint. - */ - @java.lang.Override - public java.lang.String getLabelFingerprint() { - java.lang.Object ref = labelFingerprint_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - labelFingerprint_ = s; - return s; - } - } - /** - *
-   * Required. The fingerprint of the previous set of labels for this resource,
-   * used to detect conflicts. The fingerprint is initially generated by
-   * Kubernetes Engine and changes after every request to modify or update
-   * labels. You must always provide an up-to-date fingerprint hash when
-   * updating or changing labels. Make a `get()` request to the
-   * resource to get the latest fingerprint.
-   * 
- * - * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for labelFingerprint. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getLabelFingerprintBytes() { - java.lang.Object ref = labelFingerprint_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - labelFingerprint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 7; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster 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.MapField internalGetMapField( - int number) { - switch (number) { - case 4: - return internalGetResourceLabels(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 4: - return internalGetMutableResourceLabels(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetLabelsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.SetLabelsRequest.class, com.google.container.v1beta1.SetLabelsRequest.Builder.class); - } - - // Construct using com.google.container.v1beta1.SetLabelsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - internalGetMutableResourceLabels().clear(); - labelFingerprint_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetLabelsRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.SetLabelsRequest getDefaultInstanceForType() { - return com.google.container.v1beta1.SetLabelsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.SetLabelsRequest build() { - com.google.container.v1beta1.SetLabelsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.SetLabelsRequest buildPartial() { - com.google.container.v1beta1.SetLabelsRequest result = new com.google.container.v1beta1.SetLabelsRequest(this); - int from_bitField0_ = bitField0_; - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.resourceLabels_ = internalGetResourceLabels(); - result.resourceLabels_.makeImmutable(); - result.labelFingerprint_ = labelFingerprint_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.SetLabelsRequest) { - return mergeFrom((com.google.container.v1beta1.SetLabelsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.SetLabelsRequest other) { - if (other == com.google.container.v1beta1.SetLabelsRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - internalGetMutableResourceLabels().mergeFrom( - other.internalGetResourceLabels()); - if (!other.getLabelFingerprint().isEmpty()) { - labelFingerprint_ = other.labelFingerprint_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - com.google.protobuf.MapEntry - resourceLabels__ = input.readMessage( - ResourceLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableResourceLabels().getMutableMap().put( - resourceLabels__.getKey(), resourceLabels__.getValue()); - break; - } // case 34 - case 42: { - labelFingerprint_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 58: { - name_ = input.readStringRequireUtf8(); - - 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=4014 - * @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=4014 - * @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=4014 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=4014 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=4014 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4023 - * @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=4023 - * @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=4023 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4023 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4023 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * Required. Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4030 - * @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=4030 - * @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=4030 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4030 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4030 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> resourceLabels_; - private com.google.protobuf.MapField - internalGetResourceLabels() { - if (resourceLabels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ResourceLabelsDefaultEntryHolder.defaultEntry); - } - return resourceLabels_; - } - private com.google.protobuf.MapField - internalGetMutableResourceLabels() { - onChanged();; - if (resourceLabels_ == null) { - resourceLabels_ = com.google.protobuf.MapField.newMapField( - ResourceLabelsDefaultEntryHolder.defaultEntry); - } - if (!resourceLabels_.isMutable()) { - resourceLabels_ = resourceLabels_.copy(); - } - return resourceLabels_; - } - - public int getResourceLabelsCount() { - return internalGetResourceLabels().getMap().size(); - } - /** - *
-     * 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 java.lang.String getResourceLabelsOrDefault( - java.lang.String key, - 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() { - 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() { - 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); - return this; - } - /** - *
-     * Required. The labels to set for that cluster.
-     * 
- * - * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - - public Builder putAllResourceLabels( - java.util.Map values) { - internalGetMutableResourceLabels().getMutableMap() - .putAll(values); - return this; - } - - private java.lang.Object labelFingerprint_ = ""; - /** - *
-     * Required. The fingerprint of the previous set of labels for this resource,
-     * used to detect conflicts. The fingerprint is initially generated by
-     * Kubernetes Engine and changes after every request to modify or update
-     * labels. You must always provide an up-to-date fingerprint hash when
-     * updating or changing labels. Make a `get()` request to the
-     * resource to get the latest fingerprint.
-     * 
- * - * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The labelFingerprint. - */ - public java.lang.String getLabelFingerprint() { - java.lang.Object ref = labelFingerprint_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - labelFingerprint_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The fingerprint of the previous set of labels for this resource,
-     * used to detect conflicts. The fingerprint is initially generated by
-     * Kubernetes Engine and changes after every request to modify or update
-     * labels. You must always provide an up-to-date fingerprint hash when
-     * updating or changing labels. Make a `get()` request to the
-     * resource to get the latest fingerprint.
-     * 
- * - * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for labelFingerprint. - */ - public com.google.protobuf.ByteString - getLabelFingerprintBytes() { - java.lang.Object ref = labelFingerprint_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - labelFingerprint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The fingerprint of the previous set of labels for this resource,
-     * used to detect conflicts. The fingerprint is initially generated by
-     * Kubernetes Engine and changes after every request to modify or update
-     * labels. You must always provide an up-to-date fingerprint hash when
-     * updating or changing labels. Make a `get()` request to the
-     * resource to get the latest fingerprint.
-     * 
- * - * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param value The labelFingerprint to set. - * @return This builder for chaining. - */ - public Builder setLabelFingerprint( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - labelFingerprint_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. The fingerprint of the previous set of labels for this resource,
-     * used to detect conflicts. The fingerprint is initially generated by
-     * Kubernetes Engine and changes after every request to modify or update
-     * labels. You must always provide an up-to-date fingerprint hash when
-     * updating or changing labels. Make a `get()` request to the
-     * resource to get the latest fingerprint.
-     * 
- * - * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearLabelFingerprint() { - - labelFingerprint_ = getDefaultInstance().getLabelFingerprint(); - onChanged(); - return this; - } - /** - *
-     * Required. The fingerprint of the previous set of labels for this resource,
-     * used to detect conflicts. The fingerprint is initially generated by
-     * Kubernetes Engine and changes after every request to modify or update
-     * labels. You must always provide an up-to-date fingerprint hash when
-     * updating or changing labels. Make a `get()` request to the
-     * resource to get the latest fingerprint.
-     * 
- * - * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for labelFingerprint to set. - * @return This builder for chaining. - */ - public Builder setLabelFingerprintBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - labelFingerprint_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster 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; - 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(); - 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; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index fa243d28a902..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequestOrBuilder.java +++ /dev/null @@ -1,201 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface SetLabelsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetLabelsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=4014 - * @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=4014 - * @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=4023 - * @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=4023 - * @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=4030 - * @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=4030 - * @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 deleted file mode 100644 index 3e8ed92b8d8a..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequest.java +++ /dev/null @@ -1,1243 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for
- * a cluster.
- * 
- * - * Protobuf type {@code google.container.v1beta1.SetLegacyAbacRequest} - */ -public final class SetLegacyAbacRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetLegacyAbacRequest) - SetLegacyAbacRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use SetLegacyAbacRequest.newBuilder() to construct. - private SetLegacyAbacRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SetLegacyAbacRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SetLegacyAbacRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetLegacyAbacRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetLegacyAbacRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.SetLegacyAbacRequest.class, com.google.container.v1beta1.SetLegacyAbacRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=4057 - * @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=4057 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Required. Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4066 - * @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=4066 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * Required. Deprecated. The name of the cluster to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4073 - * @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=4073 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ENABLED_FIELD_NUMBER = 4; - private boolean enabled_; - /** - *
-   * Required. Whether ABAC authorization will be enabled in the cluster.
-   * 
- * - * bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - public static final int NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster 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(); - projectId_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - enabled_ = false; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetLegacyAbacRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.SetLegacyAbacRequest getDefaultInstanceForType() { - return com.google.container.v1beta1.SetLegacyAbacRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.SetLegacyAbacRequest build() { - com.google.container.v1beta1.SetLegacyAbacRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.SetLegacyAbacRequest buildPartial() { - com.google.container.v1beta1.SetLegacyAbacRequest result = new com.google.container.v1beta1.SetLegacyAbacRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.enabled_ = enabled_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.SetLegacyAbacRequest) { - return mergeFrom((com.google.container.v1beta1.SetLegacyAbacRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.SetLegacyAbacRequest other) { - if (other == com.google.container.v1beta1.SetLegacyAbacRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 32: { - enabled_ = input.readBool(); - - break; - } // case 32 - case 50: { - name_ = input.readStringRequireUtf8(); - - 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 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=4057 - * @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=4057 - * @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=4057 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=4057 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=4057 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4066 - * @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=4066 - * @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=4066 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4066 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4066 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * Required. Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4073 - * @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=4073 - * @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=4073 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4073 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4073 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private boolean enabled_ ; - /** - *
-     * Required. Whether ABAC authorization will be enabled in the cluster.
-     * 
- * - * bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Required. Whether ABAC authorization will be enabled in the cluster.
-     * 
- * - * bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Whether ABAC authorization will be enabled in the cluster.
-     * 
- * - * bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster 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; - 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(); - 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; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index aeb456332290..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequestOrBuilder.java +++ /dev/null @@ -1,125 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface SetLegacyAbacRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetLegacyAbacRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=4057 - * @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=4057 - * @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=4066 - * @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=4066 - * @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=4073 - * @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=4073 - * @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 deleted file mode 100644 index e7946f7ace55..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequest.java +++ /dev/null @@ -1,1465 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * SetLocationsRequest sets the locations of the cluster.
- * 
- * - * Protobuf type {@code google.container.v1beta1.SetLocationsRequest} - */ -public final class SetLocationsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetLocationsRequest) - SetLocationsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use SetLocationsRequest.newBuilder() to construct. - private SetLocationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SetLocationsRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SetLocationsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetLocationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetLocationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.SetLocationsRequest.class, com.google.container.v1beta1.SetLocationsRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=2728 - * @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=2728 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Required. Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2737 - * @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=2737 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * Required. Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2744 - * @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=2744 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOCATIONS_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList locations_; - /** - *
-   * Required. The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located. Changing the locations a cluster is in
-   * will result in nodes being either created or removed from the cluster,
-   * depending on whether locations are being added or removed.
-   * This list must always include the cluster's primary zone.
-   * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return A list containing the locations. - */ - public com.google.protobuf.ProtocolStringList - getLocationsList() { - return locations_; - } - /** - *
-   * Required. The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located. Changing the locations a cluster is in
-   * will result in nodes being either created or removed from the cluster,
-   * depending on whether locations are being added or removed.
-   * This list must always include the cluster's primary zone.
-   * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The count of locations. - */ - public int getLocationsCount() { - return locations_.size(); - } - /** - *
-   * Required. The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located. Changing the locations a cluster is in
-   * will result in nodes being either created or removed from the cluster,
-   * depending on whether locations are being added or removed.
-   * This list must always include the cluster's primary zone.
-   * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index of the element to return. - * @return The locations at the given index. - */ - public java.lang.String getLocations(int index) { - return locations_.get(index); - } - /** - *
-   * Required. The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located. Changing the locations a cluster is in
-   * will result in nodes being either created or removed from the cluster,
-   * depending on whether locations are being added or removed.
-   * This list must always include the cluster's primary zone.
-   * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index of the value to return. - * @return The bytes of the locations at the given index. - */ - public com.google.protobuf.ByteString - getLocationsBytes(int index) { - return locations_.getByteString(index); - } - - public static final int NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster) of the cluster to set locations.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project, location, cluster) of the cluster to set locations.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - projectId_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetLocationsRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.SetLocationsRequest getDefaultInstanceForType() { - return com.google.container.v1beta1.SetLocationsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.SetLocationsRequest build() { - com.google.container.v1beta1.SetLocationsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.SetLocationsRequest buildPartial() { - com.google.container.v1beta1.SetLocationsRequest result = new com.google.container.v1beta1.SetLocationsRequest(this); - int from_bitField0_ = bitField0_; - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - if (((bitField0_ & 0x00000001) != 0)) { - locations_ = locations_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.locations_ = locations_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.SetLocationsRequest) { - return mergeFrom((com.google.container.v1beta1.SetLocationsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.SetLocationsRequest other) { - if (other == com.google.container.v1beta1.SetLocationsRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.locations_.isEmpty()) { - if (locations_.isEmpty()) { - locations_ = other.locations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLocationsIsMutable(); - locations_.addAll(other.locations_); - } - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - ensureLocationsIsMutable(); - locations_.add(s); - break; - } // case 34 - case 50: { - name_ = input.readStringRequireUtf8(); - - 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=2728 - * @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=2728 - * @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=2728 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=2728 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=2728 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2737 - * @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=2737 - * @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=2737 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2737 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2737 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * Required. Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2744 - * @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=2744 - * @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=2744 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2744 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2744 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureLocationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - locations_ = new com.google.protobuf.LazyStringArrayList(locations_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * Required. The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located. Changing the locations a cluster is in
-     * will result in nodes being either created or removed from the cluster,
-     * depending on whether locations are being added or removed.
-     * This list must always include the cluster's primary zone.
-     * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return A list containing the locations. - */ - public com.google.protobuf.ProtocolStringList - getLocationsList() { - return locations_.getUnmodifiableView(); - } - /** - *
-     * Required. The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located. Changing the locations a cluster is in
-     * will result in nodes being either created or removed from the cluster,
-     * depending on whether locations are being added or removed.
-     * This list must always include the cluster's primary zone.
-     * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The count of locations. - */ - public int getLocationsCount() { - return locations_.size(); - } - /** - *
-     * Required. The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located. Changing the locations a cluster is in
-     * will result in nodes being either created or removed from the cluster,
-     * depending on whether locations are being added or removed.
-     * This list must always include the cluster's primary zone.
-     * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index of the element to return. - * @return The locations at the given index. - */ - public java.lang.String getLocations(int index) { - return locations_.get(index); - } - /** - *
-     * Required. The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located. Changing the locations a cluster is in
-     * will result in nodes being either created or removed from the cluster,
-     * depending on whether locations are being added or removed.
-     * This list must always include the cluster's primary zone.
-     * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index of the value to return. - * @return The bytes of the locations at the given index. - */ - public com.google.protobuf.ByteString - getLocationsBytes(int index) { - return locations_.getByteString(index); - } - /** - *
-     * Required. The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located. Changing the locations a cluster is in
-     * will result in nodes being either created or removed from the cluster,
-     * depending on whether locations are being added or removed.
-     * This list must always include the cluster's primary zone.
-     * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index to set the value at. - * @param value The locations to set. - * @return This builder for chaining. - */ - public Builder setLocations( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); - locations_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * Required. The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located. Changing the locations a cluster is in
-     * will result in nodes being either created or removed from the cluster,
-     * depending on whether locations are being added or removed.
-     * This list must always include the cluster's primary zone.
-     * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param value The locations to add. - * @return This builder for chaining. - */ - public Builder addLocations( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); - locations_.add(value); - onChanged(); - return this; - } - /** - *
-     * Required. The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located. Changing the locations a cluster is in
-     * will result in nodes being either created or removed from the cluster,
-     * depending on whether locations are being added or removed.
-     * This list must always include the cluster's primary zone.
-     * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param values The locations to add. - * @return This builder for chaining. - */ - public Builder addAllLocations( - java.lang.Iterable values) { - ensureLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, locations_); - onChanged(); - return this; - } - /** - *
-     * Required. The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located. Changing the locations a cluster is in
-     * will result in nodes being either created or removed from the cluster,
-     * depending on whether locations are being added or removed.
-     * This list must always include the cluster's primary zone.
-     * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearLocations() { - locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located. Changing the locations a cluster is in
-     * will result in nodes being either created or removed from the cluster,
-     * depending on whether locations are being added or removed.
-     * This list must always include the cluster's primary zone.
-     * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes of the locations to add. - * @return This builder for chaining. - */ - public Builder addLocationsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureLocationsIsMutable(); - locations_.add(value); - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster) of the cluster to set locations.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name (project, location, cluster) of the cluster to set locations.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name (project, location, cluster) of the cluster to set locations.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster) of the cluster to set locations.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster) of the cluster to set locations.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetLocationsRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetLocationsRequest) - private static final com.google.container.v1beta1.SetLocationsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.SetLocationsRequest(); - } - - public static com.google.container.v1beta1.SetLocationsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetLocationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 34afe5b9326f..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequestOrBuilder.java +++ /dev/null @@ -1,176 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface SetLocationsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetLocationsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=2728 - * @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=2728 - * @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=2737 - * @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=2737 - * @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=2744 - * @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=2744 - * @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 deleted file mode 100644 index 2a552924ed38..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequest.java +++ /dev/null @@ -1,1381 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * SetLoggingServiceRequest sets the logging service of a cluster.
- * 
- * - * Protobuf type {@code google.container.v1beta1.SetLoggingServiceRequest} - */ -public final class SetLoggingServiceRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetLoggingServiceRequest) - SetLoggingServiceRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use SetLoggingServiceRequest.newBuilder() to construct. - private SetLoggingServiceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SetLoggingServiceRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - loggingService_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SetLoggingServiceRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetLoggingServiceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetLoggingServiceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.SetLoggingServiceRequest.class, com.google.container.v1beta1.SetLoggingServiceRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=2605 - * @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=2605 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Required. Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2614 - * @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=2614 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * Required. Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2621 - * @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=2621 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOGGING_SERVICE_FIELD_NUMBER = 4; - private volatile java.lang.Object loggingService_; - /** - *
-   * Required. The logging service the cluster should use to write logs.
-   * Currently available options:
-   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-   * service with a Kubernetes-native resource model
-   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-   *   available as of GKE 1.15).
-   * * `none` - no logs will be exported from the cluster.
-   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-   * 
- * - * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The loggingService. - */ - @java.lang.Override - public java.lang.String getLoggingService() { - java.lang.Object ref = loggingService_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - loggingService_ = s; - return s; - } - } - /** - *
-   * Required. The logging service the cluster should use to write logs.
-   * Currently available options:
-   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-   * service with a Kubernetes-native resource model
-   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-   *   available as of GKE 1.15).
-   * * `none` - no logs will be exported from the cluster.
-   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-   * 
- * - * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for loggingService. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getLoggingServiceBytes() { - java.lang.Object ref = loggingService_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - loggingService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 5; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster) of the cluster to set logging.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 5; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project, location, cluster) of the cluster to set logging.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 5; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - projectId_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - loggingService_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetLoggingServiceRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.SetLoggingServiceRequest getDefaultInstanceForType() { - return com.google.container.v1beta1.SetLoggingServiceRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.SetLoggingServiceRequest build() { - com.google.container.v1beta1.SetLoggingServiceRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.SetLoggingServiceRequest buildPartial() { - com.google.container.v1beta1.SetLoggingServiceRequest result = new com.google.container.v1beta1.SetLoggingServiceRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.loggingService_ = loggingService_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.SetLoggingServiceRequest) { - return mergeFrom((com.google.container.v1beta1.SetLoggingServiceRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.SetLoggingServiceRequest other) { - if (other == com.google.container.v1beta1.SetLoggingServiceRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getLoggingService().isEmpty()) { - loggingService_ = other.loggingService_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - loggingService_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - name_ = input.readStringRequireUtf8(); - - 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 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=2605 - * @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=2605 - * @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=2605 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=2605 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=2605 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2614 - * @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=2614 - * @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=2614 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2614 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2614 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * Required. Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2621 - * @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=2621 - * @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=2621 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2621 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2621 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object loggingService_ = ""; - /** - *
-     * Required. The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The loggingService. - */ - public java.lang.String getLoggingService() { - java.lang.Object ref = loggingService_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - loggingService_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for loggingService. - */ - public com.google.protobuf.ByteString - getLoggingServiceBytes() { - java.lang.Object ref = loggingService_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - loggingService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param value The loggingService to set. - * @return This builder for chaining. - */ - public Builder setLoggingService( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - loggingService_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearLoggingService() { - - loggingService_ = getDefaultInstance().getLoggingService(); - onChanged(); - return this; - } - /** - *
-     * Required. The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for loggingService to set. - * @return This builder for chaining. - */ - public Builder setLoggingServiceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - loggingService_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster) of the cluster to set logging.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name (project, location, cluster) of the cluster to set logging.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name (project, location, cluster) of the cluster to set logging.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster) of the cluster to set logging.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster) of the cluster to set logging.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetLoggingServiceRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetLoggingServiceRequest) - private static final com.google.container.v1beta1.SetLoggingServiceRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.SetLoggingServiceRequest(); - } - - public static com.google.container.v1beta1.SetLoggingServiceRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetLoggingServiceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index c692818b5b94..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequestOrBuilder.java +++ /dev/null @@ -1,151 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface SetLoggingServiceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetLoggingServiceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=2605 - * @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=2605 - * @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=2614 - * @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=2614 - * @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=2621 - * @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=2621 - * @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 deleted file mode 100644 index 8cac4b5040ef..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMaintenancePolicyRequest.java +++ /dev/null @@ -1,1346 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * SetMaintenancePolicyRequest sets the maintenance policy for a cluster.
- * 
- * - * Protobuf type {@code google.container.v1beta1.SetMaintenancePolicyRequest} - */ -public final class SetMaintenancePolicyRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetMaintenancePolicyRequest) - SetMaintenancePolicyRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use SetMaintenancePolicyRequest.newBuilder() to construct. - private SetMaintenancePolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SetMaintenancePolicyRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SetMaintenancePolicyRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetMaintenancePolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetMaintenancePolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.SetMaintenancePolicyRequest.class, com.google.container.v1beta1.SetMaintenancePolicyRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Required. The Google Developers Console [project ID or project
-   * number](https://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; - private volatile java.lang.Object zone_; - /** - *
-   * Required. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides.
-   * 
- * - * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The zone. - */ - @java.lang.Override - public java.lang.String getZone() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - zone_ = s; - return s; - } - } - /** - *
-   * Required. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides.
-   * 
- * - * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for zone. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * Required. The name of the cluster to update.
-   * 
- * - * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The clusterId. - */ - @java.lang.Override - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } - } - /** - *
-   * Required. The name of the cluster to update.
-   * 
- * - * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for clusterId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MAINTENANCE_POLICY_FIELD_NUMBER = 4; - private com.google.container.v1beta1.MaintenancePolicy maintenancePolicy_; - /** - *
-   * Required. The maintenance policy to be set for the cluster. An empty field
-   * clears the existing maintenance policy.
-   * 
- * - * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the maintenancePolicy field is set. - */ - @java.lang.Override - public boolean hasMaintenancePolicy() { - return maintenancePolicy_ != null; - } - /** - *
-   * Required. The maintenance policy to be set for the cluster. An empty field
-   * clears the existing maintenance policy.
-   * 
- * - * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The maintenancePolicy. - */ - @java.lang.Override - public com.google.container.v1beta1.MaintenancePolicy getMaintenancePolicy() { - return maintenancePolicy_ == null ? com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; - } - /** - *
-   * Required. The maintenance policy to be set for the cluster. An empty field
-   * clears the existing maintenance policy.
-   * 
- * - * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.container.v1beta1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { - return getMaintenancePolicy(); - } - - public static final int NAME_FIELD_NUMBER = 5; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster 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 (maintenancePolicy_ != null) { - 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 (maintenancePolicy_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - if (maintenancePolicyBuilder_ == null) { - maintenancePolicy_ = null; - } else { - maintenancePolicy_ = null; - maintenancePolicyBuilder_ = null; - } - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetMaintenancePolicyRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.SetMaintenancePolicyRequest getDefaultInstanceForType() { - return com.google.container.v1beta1.SetMaintenancePolicyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.SetMaintenancePolicyRequest build() { - com.google.container.v1beta1.SetMaintenancePolicyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.SetMaintenancePolicyRequest buildPartial() { - com.google.container.v1beta1.SetMaintenancePolicyRequest result = new com.google.container.v1beta1.SetMaintenancePolicyRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - if (maintenancePolicyBuilder_ == null) { - result.maintenancePolicy_ = maintenancePolicy_; - } else { - result.maintenancePolicy_ = maintenancePolicyBuilder_.build(); - } - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.SetMaintenancePolicyRequest) { - return mergeFrom((com.google.container.v1beta1.SetMaintenancePolicyRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.SetMaintenancePolicyRequest other) { - if (other == com.google.container.v1beta1.SetMaintenancePolicyRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (other.hasMaintenancePolicy()) { - mergeMaintenancePolicy(other.getMaintenancePolicy()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - input.readMessage( - getMaintenancePolicyFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 34 - case 42: { - name_ = input.readStringRequireUtf8(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Required. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides.
-     * 
- * - * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The zone. - */ - public java.lang.String getZone() { - java.lang.Object ref = zone_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - zone_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides.
-     * 
- * - * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for zone. - */ - public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides.
-     * 
- * - * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The zone to set. - * @return This builder for chaining. - */ - public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides.
-     * 
- * - * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides.
-     * 
- * - * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * Required. The name of the cluster to update.
-     * 
- * - * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The clusterId. - */ - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the cluster to update.
-     * 
- * - * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for clusterId. - */ - public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the cluster to update.
-     * 
- * - * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param value The clusterId to set. - * @return This builder for chaining. - */ - public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the cluster to update.
-     * 
- * - * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the cluster to update.
-     * 
- * - * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private com.google.container.v1beta1.MaintenancePolicy maintenancePolicy_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MaintenancePolicy, com.google.container.v1beta1.MaintenancePolicy.Builder, com.google.container.v1beta1.MaintenancePolicyOrBuilder> maintenancePolicyBuilder_; - /** - *
-     * Required. The maintenance policy to be set for the cluster. An empty field
-     * clears the existing maintenance policy.
-     * 
- * - * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the maintenancePolicy field is set. - */ - public boolean hasMaintenancePolicy() { - return maintenancePolicyBuilder_ != null || maintenancePolicy_ != null; - } - /** - *
-     * Required. The maintenance policy to be set for the cluster. An empty field
-     * clears the existing maintenance policy.
-     * 
- * - * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The maintenancePolicy. - */ - public com.google.container.v1beta1.MaintenancePolicy getMaintenancePolicy() { - if (maintenancePolicyBuilder_ == null) { - return maintenancePolicy_ == null ? com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; - } else { - return maintenancePolicyBuilder_.getMessage(); - } - } - /** - *
-     * Required. The maintenance policy to be set for the cluster. An empty field
-     * clears the existing maintenance policy.
-     * 
- * - * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setMaintenancePolicy(com.google.container.v1beta1.MaintenancePolicy value) { - if (maintenancePolicyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - maintenancePolicy_ = value; - onChanged(); - } else { - maintenancePolicyBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Required. The maintenance policy to be set for the cluster. An empty field
-     * clears the existing maintenance policy.
-     * 
- * - * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setMaintenancePolicy( - com.google.container.v1beta1.MaintenancePolicy.Builder builderForValue) { - if (maintenancePolicyBuilder_ == null) { - maintenancePolicy_ = builderForValue.build(); - onChanged(); - } else { - maintenancePolicyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Required. The maintenance policy to be set for the cluster. An empty field
-     * clears the existing maintenance policy.
-     * 
- * - * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeMaintenancePolicy(com.google.container.v1beta1.MaintenancePolicy value) { - if (maintenancePolicyBuilder_ == null) { - if (maintenancePolicy_ != null) { - maintenancePolicy_ = - com.google.container.v1beta1.MaintenancePolicy.newBuilder(maintenancePolicy_).mergeFrom(value).buildPartial(); - } else { - maintenancePolicy_ = value; - } - onChanged(); - } else { - maintenancePolicyBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Required. The maintenance policy to be set for the cluster. An empty field
-     * clears the existing maintenance policy.
-     * 
- * - * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearMaintenancePolicy() { - if (maintenancePolicyBuilder_ == null) { - maintenancePolicy_ = null; - onChanged(); - } else { - maintenancePolicy_ = null; - maintenancePolicyBuilder_ = null; - } - - return this; - } - /** - *
-     * Required. The maintenance policy to be set for the cluster. An empty field
-     * clears the existing maintenance policy.
-     * 
- * - * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.container.v1beta1.MaintenancePolicy.Builder getMaintenancePolicyBuilder() { - - onChanged(); - return getMaintenancePolicyFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The maintenance policy to be set for the cluster. An empty field
-     * clears the existing maintenance policy.
-     * 
- * - * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.container.v1beta1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { - if (maintenancePolicyBuilder_ != null) { - return maintenancePolicyBuilder_.getMessageOrBuilder(); - } else { - return maintenancePolicy_ == null ? - com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; - } - } - /** - *
-     * Required. The maintenance policy to be set for the cluster. An empty field
-     * clears the existing maintenance policy.
-     * 
- * - * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MaintenancePolicy, com.google.container.v1beta1.MaintenancePolicy.Builder, com.google.container.v1beta1.MaintenancePolicyOrBuilder> - getMaintenancePolicyFieldBuilder() { - if (maintenancePolicyBuilder_ == null) { - maintenancePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MaintenancePolicy, com.google.container.v1beta1.MaintenancePolicy.Builder, com.google.container.v1beta1.MaintenancePolicyOrBuilder>( - getMaintenancePolicy(), - getParentForChildren(), - isClean()); - maintenancePolicy_ = null; - } - return maintenancePolicyBuilder_; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster 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; - 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(); - 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; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 82de8903fe2f..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMaintenancePolicyRequestOrBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface SetMaintenancePolicyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetMaintenancePolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The Google Developers Console [project ID or project
-   * number](https://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 deleted file mode 100644 index 41152f2c6d62..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequest.java +++ /dev/null @@ -1,1681 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * SetMasterAuthRequest updates the admin password of a cluster.
- * 
- * - * Protobuf type {@code google.container.v1beta1.SetMasterAuthRequest} - */ -public final class SetMasterAuthRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetMasterAuthRequest) - SetMasterAuthRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use SetMasterAuthRequest.newBuilder() to construct. - private SetMasterAuthRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SetMasterAuthRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - action_ = 0; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SetMasterAuthRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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) - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=2829 - * @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=2829 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Required. Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2838 - * @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=2838 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * Required. Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2845 - * @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=2845 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ACTION_FIELD_NUMBER = 4; - private int action_; - /** - *
-   * Required. The exact form of action to be taken on the master auth.
-   * 
- * - * .google.container.v1beta1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for action. - */ - @java.lang.Override public int getActionValue() { - return action_; - } - /** - *
-   * Required. The exact form of action to be taken on the master auth.
-   * 
- * - * .google.container.v1beta1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The action. - */ - @java.lang.Override public com.google.container.v1beta1.SetMasterAuthRequest.Action getAction() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.SetMasterAuthRequest.Action result = com.google.container.v1beta1.SetMasterAuthRequest.Action.valueOf(action_); - return result == null ? com.google.container.v1beta1.SetMasterAuthRequest.Action.UNRECOGNIZED : result; - } - - public static final int UPDATE_FIELD_NUMBER = 5; - private com.google.container.v1beta1.MasterAuth update_; - /** - *
-   * Required. A description of the update.
-   * 
- * - * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the update field is set. - */ - @java.lang.Override - public boolean hasUpdate() { - return update_ != null; - } - /** - *
-   * Required. A description of the update.
-   * 
- * - * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The update. - */ - @java.lang.Override - public com.google.container.v1beta1.MasterAuth getUpdate() { - return update_ == null ? com.google.container.v1beta1.MasterAuth.getDefaultInstance() : update_; - } - /** - *
-   * Required. A description of the update.
-   * 
- * - * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.container.v1beta1.MasterAuthOrBuilder getUpdateOrBuilder() { - return getUpdate(); - } - - public static final int NAME_FIELD_NUMBER = 7; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster) of the cluster to set auth.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 7; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project, location, cluster) of the cluster to set auth.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 7; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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 (update_ != null) { - 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 (update_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - action_ = 0; - - if (updateBuilder_ == null) { - update_ = null; - } else { - update_ = null; - updateBuilder_ = null; - } - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetMasterAuthRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.SetMasterAuthRequest getDefaultInstanceForType() { - return com.google.container.v1beta1.SetMasterAuthRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.SetMasterAuthRequest build() { - com.google.container.v1beta1.SetMasterAuthRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.SetMasterAuthRequest buildPartial() { - com.google.container.v1beta1.SetMasterAuthRequest result = new com.google.container.v1beta1.SetMasterAuthRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.action_ = action_; - if (updateBuilder_ == null) { - result.update_ = update_; - } else { - result.update_ = updateBuilder_.build(); - } - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.SetMasterAuthRequest) { - return mergeFrom((com.google.container.v1beta1.SetMasterAuthRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.SetMasterAuthRequest other) { - if (other == com.google.container.v1beta1.SetMasterAuthRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (other.action_ != 0) { - setActionValue(other.getActionValue()); - } - if (other.hasUpdate()) { - mergeUpdate(other.getUpdate()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 32: { - action_ = input.readEnum(); - - break; - } // case 32 - case 42: { - input.readMessage( - getUpdateFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 42 - case 58: { - name_ = input.readStringRequireUtf8(); - - 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 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=2829 - * @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=2829 - * @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=2829 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=2829 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=2829 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2838 - * @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=2838 - * @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=2838 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2838 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2838 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * Required. Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2845 - * @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=2845 - * @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=2845 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2845 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2845 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private int action_ = 0; - /** - *
-     * Required. The exact form of action to be taken on the master auth.
-     * 
- * - * .google.container.v1beta1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for action. - */ - @java.lang.Override public int getActionValue() { - return action_; - } - /** - *
-     * Required. The exact form of action to be taken on the master auth.
-     * 
- * - * .google.container.v1beta1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param value The enum numeric value on the wire for action to set. - * @return This builder for chaining. - */ - public Builder setActionValue(int value) { - - action_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. The exact form of action to be taken on the master auth.
-     * 
- * - * .google.container.v1beta1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The action. - */ - @java.lang.Override - public com.google.container.v1beta1.SetMasterAuthRequest.Action getAction() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.SetMasterAuthRequest.Action result = com.google.container.v1beta1.SetMasterAuthRequest.Action.valueOf(action_); - return result == null ? com.google.container.v1beta1.SetMasterAuthRequest.Action.UNRECOGNIZED : result; - } - /** - *
-     * Required. The exact form of action to be taken on the master auth.
-     * 
- * - * .google.container.v1beta1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param value The action to set. - * @return This builder for chaining. - */ - public Builder setAction(com.google.container.v1beta1.SetMasterAuthRequest.Action value) { - if (value == null) { - throw new NullPointerException(); - } - - action_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Required. The exact form of action to be taken on the master auth.
-     * 
- * - * .google.container.v1beta1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearAction() { - - action_ = 0; - onChanged(); - return this; - } - - private com.google.container.v1beta1.MasterAuth update_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MasterAuth, com.google.container.v1beta1.MasterAuth.Builder, com.google.container.v1beta1.MasterAuthOrBuilder> updateBuilder_; - /** - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the update field is set. - */ - public boolean hasUpdate() { - return updateBuilder_ != null || update_ != null; - } - /** - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The update. - */ - public com.google.container.v1beta1.MasterAuth getUpdate() { - if (updateBuilder_ == null) { - return update_ == null ? com.google.container.v1beta1.MasterAuth.getDefaultInstance() : update_; - } else { - return updateBuilder_.getMessage(); - } - } - /** - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdate(com.google.container.v1beta1.MasterAuth value) { - if (updateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - update_ = value; - onChanged(); - } else { - updateBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdate( - com.google.container.v1beta1.MasterAuth.Builder builderForValue) { - if (updateBuilder_ == null) { - update_ = builderForValue.build(); - onChanged(); - } else { - updateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeUpdate(com.google.container.v1beta1.MasterAuth value) { - if (updateBuilder_ == null) { - if (update_ != null) { - update_ = - com.google.container.v1beta1.MasterAuth.newBuilder(update_).mergeFrom(value).buildPartial(); - } else { - update_ = value; - } - onChanged(); - } else { - updateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearUpdate() { - if (updateBuilder_ == null) { - update_ = null; - onChanged(); - } else { - update_ = null; - updateBuilder_ = null; - } - - return this; - } - /** - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.container.v1beta1.MasterAuth.Builder getUpdateBuilder() { - - onChanged(); - return getUpdateFieldBuilder().getBuilder(); - } - /** - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.container.v1beta1.MasterAuthOrBuilder getUpdateOrBuilder() { - if (updateBuilder_ != null) { - return updateBuilder_.getMessageOrBuilder(); - } else { - return update_ == null ? - com.google.container.v1beta1.MasterAuth.getDefaultInstance() : update_; - } - } - /** - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MasterAuth, com.google.container.v1beta1.MasterAuth.Builder, com.google.container.v1beta1.MasterAuthOrBuilder> - getUpdateFieldBuilder() { - if (updateBuilder_ == null) { - updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MasterAuth, com.google.container.v1beta1.MasterAuth.Builder, com.google.container.v1beta1.MasterAuthOrBuilder>( - getUpdate(), - getParentForChildren(), - isClean()); - update_ = null; - } - return updateBuilder_; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster) of the cluster to set auth.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name (project, location, cluster) of the cluster to set auth.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name (project, location, cluster) of the cluster to set auth.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster) of the cluster to set auth.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster) of the cluster to set auth.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetMasterAuthRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetMasterAuthRequest) - private static final com.google.container.v1beta1.SetMasterAuthRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.SetMasterAuthRequest(); - } - - public static com.google.container.v1beta1.SetMasterAuthRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetMasterAuthRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 972a063d426b..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequestOrBuilder.java +++ /dev/null @@ -1,161 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface SetMasterAuthRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetMasterAuthRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=2829 - * @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=2829 - * @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=2838 - * @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=2838 - * @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=2845 - * @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=2845 - * @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 deleted file mode 100644 index ea56f4f8c0ec..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequest.java +++ /dev/null @@ -1,1381 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * SetMonitoringServiceRequest sets the monitoring service of a cluster.
- * 
- * - * Protobuf type {@code google.container.v1beta1.SetMonitoringServiceRequest} - */ -public final class SetMonitoringServiceRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetMonitoringServiceRequest) - SetMonitoringServiceRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use SetMonitoringServiceRequest.newBuilder() to construct. - private SetMonitoringServiceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SetMonitoringServiceRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - monitoringService_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SetMonitoringServiceRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetMonitoringServiceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetMonitoringServiceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.SetMonitoringServiceRequest.class, com.google.container.v1beta1.SetMonitoringServiceRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=2649 - * @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=2649 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Required. Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2658 - * @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=2658 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * Required. Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2665 - * @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=2665 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MONITORING_SERVICE_FIELD_NUMBER = 4; - private volatile java.lang.Object monitoringService_; - /** - *
-   * Required. The monitoring service the cluster should use to write metrics.
-   * Currently available options:
-   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-   * service with a Kubernetes-native resource model
-   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-   *   longer available as of GKE 1.15).
-   * * `none` - No metrics will be exported from the cluster.
-   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-   * 
- * - * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The monitoringService. - */ - @java.lang.Override - public java.lang.String getMonitoringService() { - java.lang.Object ref = monitoringService_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - monitoringService_ = s; - return s; - } - } - /** - *
-   * Required. The monitoring service the cluster should use to write metrics.
-   * Currently available options:
-   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-   * service with a Kubernetes-native resource model
-   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-   *   longer available as of GKE 1.15).
-   * * `none` - No metrics will be exported from the cluster.
-   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-   * 
- * - * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for monitoringService. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMonitoringServiceBytes() { - java.lang.Object ref = monitoringService_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - monitoringService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster) of the cluster to set monitoring.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project, location, cluster) of the cluster to set monitoring.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - projectId_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - monitoringService_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetMonitoringServiceRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.SetMonitoringServiceRequest getDefaultInstanceForType() { - return com.google.container.v1beta1.SetMonitoringServiceRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.SetMonitoringServiceRequest build() { - com.google.container.v1beta1.SetMonitoringServiceRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.SetMonitoringServiceRequest buildPartial() { - com.google.container.v1beta1.SetMonitoringServiceRequest result = new com.google.container.v1beta1.SetMonitoringServiceRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.monitoringService_ = monitoringService_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.SetMonitoringServiceRequest) { - return mergeFrom((com.google.container.v1beta1.SetMonitoringServiceRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.SetMonitoringServiceRequest other) { - if (other == com.google.container.v1beta1.SetMonitoringServiceRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getMonitoringService().isEmpty()) { - monitoringService_ = other.monitoringService_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - monitoringService_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 50: { - name_ = input.readStringRequireUtf8(); - - 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 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=2649 - * @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=2649 - * @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=2649 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=2649 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=2649 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2658 - * @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=2658 - * @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=2658 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2658 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2658 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * Required. Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2665 - * @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=2665 - * @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=2665 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2665 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2665 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object monitoringService_ = ""; - /** - *
-     * Required. The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The monitoringService. - */ - public java.lang.String getMonitoringService() { - java.lang.Object ref = monitoringService_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - monitoringService_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for monitoringService. - */ - public com.google.protobuf.ByteString - getMonitoringServiceBytes() { - java.lang.Object ref = monitoringService_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - monitoringService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param value The monitoringService to set. - * @return This builder for chaining. - */ - public Builder setMonitoringService( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - monitoringService_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearMonitoringService() { - - monitoringService_ = getDefaultInstance().getMonitoringService(); - onChanged(); - return this; - } - /** - *
-     * Required. The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for monitoringService to set. - * @return This builder for chaining. - */ - public Builder setMonitoringServiceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - monitoringService_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster) of the cluster to set monitoring.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name (project, location, cluster) of the cluster to set monitoring.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name (project, location, cluster) of the cluster to set monitoring.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster) of the cluster to set monitoring.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster) of the cluster to set monitoring.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetMonitoringServiceRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetMonitoringServiceRequest) - private static final com.google.container.v1beta1.SetMonitoringServiceRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.SetMonitoringServiceRequest(); - } - - public static com.google.container.v1beta1.SetMonitoringServiceRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetMonitoringServiceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 05a64921e4df..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequestOrBuilder.java +++ /dev/null @@ -1,151 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface SetMonitoringServiceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetMonitoringServiceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=2649 - * @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=2649 - * @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=2658 - * @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=2658 - * @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=2665 - * @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=2665 - * @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 deleted file mode 100644 index 079b5b7f6fbd..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequest.java +++ /dev/null @@ -1,1390 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * SetNetworkPolicyRequest enables/disables network policy for a cluster.
- * 
- * - * Protobuf type {@code google.container.v1beta1.SetNetworkPolicyRequest} - */ -public final class SetNetworkPolicyRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetNetworkPolicyRequest) - SetNetworkPolicyRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use SetNetworkPolicyRequest.newBuilder() to construct. - private SetNetworkPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SetNetworkPolicyRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SetNetworkPolicyRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetNetworkPolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetNetworkPolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.SetNetworkPolicyRequest.class, com.google.container.v1beta1.SetNetworkPolicyRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=4260 - * @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=4260 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Required. Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.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.SetNetworkPolicyRequest.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; - 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=4276 - * @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=4276 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NETWORK_POLICY_FIELD_NUMBER = 4; - private com.google.container.v1beta1.NetworkPolicy networkPolicy_; - /** - *
-   * Required. Configuration options for the NetworkPolicy feature.
-   * 
- * - * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the networkPolicy field is set. - */ - @java.lang.Override - public boolean hasNetworkPolicy() { - return networkPolicy_ != null; - } - /** - *
-   * Required. Configuration options for the NetworkPolicy feature.
-   * 
- * - * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The networkPolicy. - */ - @java.lang.Override - public com.google.container.v1beta1.NetworkPolicy getNetworkPolicy() { - return networkPolicy_ == null ? com.google.container.v1beta1.NetworkPolicy.getDefaultInstance() : networkPolicy_; - } - /** - *
-   * Required. Configuration options for the NetworkPolicy feature.
-   * 
- * - * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.container.v1beta1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { - return getNetworkPolicy(); - } - - public static final int NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster 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 (networkPolicy_ != null) { - 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 (networkPolicy_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - if (networkPolicyBuilder_ == null) { - networkPolicy_ = null; - } else { - networkPolicy_ = null; - networkPolicyBuilder_ = null; - } - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetNetworkPolicyRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.SetNetworkPolicyRequest getDefaultInstanceForType() { - return com.google.container.v1beta1.SetNetworkPolicyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.SetNetworkPolicyRequest build() { - com.google.container.v1beta1.SetNetworkPolicyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.SetNetworkPolicyRequest buildPartial() { - com.google.container.v1beta1.SetNetworkPolicyRequest result = new com.google.container.v1beta1.SetNetworkPolicyRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - if (networkPolicyBuilder_ == null) { - result.networkPolicy_ = networkPolicy_; - } else { - result.networkPolicy_ = networkPolicyBuilder_.build(); - } - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.SetNetworkPolicyRequest) { - return mergeFrom((com.google.container.v1beta1.SetNetworkPolicyRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.SetNetworkPolicyRequest other) { - if (other == com.google.container.v1beta1.SetNetworkPolicyRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (other.hasNetworkPolicy()) { - mergeNetworkPolicy(other.getNetworkPolicy()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - input.readMessage( - getNetworkPolicyFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 34 - case 50: { - name_ = input.readStringRequireUtf8(); - - 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 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=4260 - * @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=4260 - * @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=4260 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=4260 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=4260 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.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.SetNetworkPolicyRequest.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.SetNetworkPolicyRequest.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; - 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=4269 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.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; - 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=4276 - * @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=4276 - * @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=4276 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4276 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4276 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private com.google.container.v1beta1.NetworkPolicy networkPolicy_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NetworkPolicy, com.google.container.v1beta1.NetworkPolicy.Builder, com.google.container.v1beta1.NetworkPolicyOrBuilder> networkPolicyBuilder_; - /** - *
-     * Required. Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the networkPolicy field is set. - */ - public boolean hasNetworkPolicy() { - return networkPolicyBuilder_ != null || networkPolicy_ != null; - } - /** - *
-     * Required. Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The networkPolicy. - */ - public com.google.container.v1beta1.NetworkPolicy getNetworkPolicy() { - if (networkPolicyBuilder_ == null) { - return networkPolicy_ == null ? com.google.container.v1beta1.NetworkPolicy.getDefaultInstance() : networkPolicy_; - } else { - return networkPolicyBuilder_.getMessage(); - } - } - /** - *
-     * Required. Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setNetworkPolicy(com.google.container.v1beta1.NetworkPolicy value) { - if (networkPolicyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - networkPolicy_ = value; - onChanged(); - } else { - networkPolicyBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Required. Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setNetworkPolicy( - com.google.container.v1beta1.NetworkPolicy.Builder builderForValue) { - if (networkPolicyBuilder_ == null) { - networkPolicy_ = builderForValue.build(); - onChanged(); - } else { - networkPolicyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Required. Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeNetworkPolicy(com.google.container.v1beta1.NetworkPolicy value) { - if (networkPolicyBuilder_ == null) { - if (networkPolicy_ != null) { - networkPolicy_ = - com.google.container.v1beta1.NetworkPolicy.newBuilder(networkPolicy_).mergeFrom(value).buildPartial(); - } else { - networkPolicy_ = value; - } - onChanged(); - } else { - networkPolicyBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Required. Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearNetworkPolicy() { - if (networkPolicyBuilder_ == null) { - networkPolicy_ = null; - onChanged(); - } else { - networkPolicy_ = null; - networkPolicyBuilder_ = null; - } - - return this; - } - /** - *
-     * Required. Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.container.v1beta1.NetworkPolicy.Builder getNetworkPolicyBuilder() { - - onChanged(); - return getNetworkPolicyFieldBuilder().getBuilder(); - } - /** - *
-     * Required. Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.container.v1beta1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { - if (networkPolicyBuilder_ != null) { - return networkPolicyBuilder_.getMessageOrBuilder(); - } else { - return networkPolicy_ == null ? - com.google.container.v1beta1.NetworkPolicy.getDefaultInstance() : networkPolicy_; - } - } - /** - *
-     * Required. Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NetworkPolicy, com.google.container.v1beta1.NetworkPolicy.Builder, com.google.container.v1beta1.NetworkPolicyOrBuilder> - getNetworkPolicyFieldBuilder() { - if (networkPolicyBuilder_ == null) { - networkPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NetworkPolicy, com.google.container.v1beta1.NetworkPolicy.Builder, com.google.container.v1beta1.NetworkPolicyOrBuilder>( - getNetworkPolicy(), - getParentForChildren(), - isClean()); - networkPolicy_ = null; - } - return networkPolicyBuilder_; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster 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; - 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(); - 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; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 5f9a09ba9121..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequestOrBuilder.java +++ /dev/null @@ -1,142 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface SetNetworkPolicyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetNetworkPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=4260 - * @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=4260 - * @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=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.SetNetworkPolicyRequest.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.
-   * This field 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=4276 - * @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=4276 - * @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 deleted file mode 100644 index d5c1f3e92f98..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequest.java +++ /dev/null @@ -1,1583 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool.
- * 
- * - * Protobuf type {@code google.container.v1beta1.SetNodePoolAutoscalingRequest} - */ -public final class SetNodePoolAutoscalingRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetNodePoolAutoscalingRequest) - SetNodePoolAutoscalingRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use SetNodePoolAutoscalingRequest.newBuilder() to construct. - private SetNodePoolAutoscalingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SetNodePoolAutoscalingRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - nodePoolId_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SetNodePoolAutoscalingRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetNodePoolAutoscalingRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetNodePoolAutoscalingRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.SetNodePoolAutoscalingRequest.class, com.google.container.v1beta1.SetNodePoolAutoscalingRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=2563 - * @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=2563 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Required. Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2572 - * @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=2572 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * Required. Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2579 - * @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=2579 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_POOL_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object nodePoolId_; - /** - *
-   * Required. Deprecated. The name of the node pool to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2586 - * @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=2586 - * @return The bytes for nodePoolId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getNodePoolIdBytes() { - java.lang.Object ref = nodePoolId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodePoolId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AUTOSCALING_FIELD_NUMBER = 5; - private com.google.container.v1beta1.NodePoolAutoscaling autoscaling_; - /** - *
-   * Required. Autoscaling configuration for the node pool.
-   * 
- * - * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the autoscaling field is set. - */ - @java.lang.Override - public boolean hasAutoscaling() { - return autoscaling_ != null; - } - /** - *
-   * Required. Autoscaling configuration for the node pool.
-   * 
- * - * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The autoscaling. - */ - @java.lang.Override - public com.google.container.v1beta1.NodePoolAutoscaling getAutoscaling() { - return autoscaling_ == null ? com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() : autoscaling_; - } - /** - *
-   * Required. Autoscaling configuration for the node pool.
-   * 
- * - * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.container.v1beta1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder() { - return getAutoscaling(); - } - - public static final int NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster, node pool) of the node pool to set
-   * autoscaler settings. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 6; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project, location, cluster, node pool) of the node pool to set
-   * autoscaler settings. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 6; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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 (autoscaling_ != null) { - 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 (autoscaling_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - nodePoolId_ = ""; - - if (autoscalingBuilder_ == null) { - autoscaling_ = null; - } else { - autoscaling_ = null; - autoscalingBuilder_ = null; - } - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetNodePoolAutoscalingRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.SetNodePoolAutoscalingRequest getDefaultInstanceForType() { - return com.google.container.v1beta1.SetNodePoolAutoscalingRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.SetNodePoolAutoscalingRequest build() { - com.google.container.v1beta1.SetNodePoolAutoscalingRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.SetNodePoolAutoscalingRequest buildPartial() { - com.google.container.v1beta1.SetNodePoolAutoscalingRequest result = new com.google.container.v1beta1.SetNodePoolAutoscalingRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.nodePoolId_ = nodePoolId_; - if (autoscalingBuilder_ == null) { - result.autoscaling_ = autoscaling_; - } else { - result.autoscaling_ = autoscalingBuilder_.build(); - } - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.SetNodePoolAutoscalingRequest) { - return mergeFrom((com.google.container.v1beta1.SetNodePoolAutoscalingRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.SetNodePoolAutoscalingRequest other) { - if (other == com.google.container.v1beta1.SetNodePoolAutoscalingRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getNodePoolId().isEmpty()) { - nodePoolId_ = other.nodePoolId_; - onChanged(); - } - if (other.hasAutoscaling()) { - mergeAutoscaling(other.getAutoscaling()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - nodePoolId_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - input.readMessage( - getAutoscalingFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 42 - case 50: { - name_ = input.readStringRequireUtf8(); - - 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 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=2563 - * @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=2563 - * @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=2563 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=2563 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=2563 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2572 - * @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=2572 - * @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=2572 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2572 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2572 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * Required. Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2579 - * @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=2579 - * @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=2579 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2579 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2579 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object nodePoolId_ = ""; - /** - *
-     * Required. Deprecated. The name of the node pool to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2586 - * @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=2586 - * @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=2586 - * @param value The nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setNodePoolId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodePoolId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the node pool to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2586 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearNodePoolId() { - - nodePoolId_ = getDefaultInstance().getNodePoolId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the node pool to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2586 - * @param value The bytes for nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setNodePoolIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodePoolId_ = value; - onChanged(); - return this; - } - - private com.google.container.v1beta1.NodePoolAutoscaling autoscaling_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePoolAutoscaling, com.google.container.v1beta1.NodePoolAutoscaling.Builder, com.google.container.v1beta1.NodePoolAutoscalingOrBuilder> autoscalingBuilder_; - /** - *
-     * Required. Autoscaling configuration for the node pool.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the autoscaling field is set. - */ - public boolean hasAutoscaling() { - return autoscalingBuilder_ != null || autoscaling_ != null; - } - /** - *
-     * Required. Autoscaling configuration for the node pool.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The autoscaling. - */ - public com.google.container.v1beta1.NodePoolAutoscaling getAutoscaling() { - if (autoscalingBuilder_ == null) { - return autoscaling_ == null ? com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() : autoscaling_; - } else { - return autoscalingBuilder_.getMessage(); - } - } - /** - *
-     * Required. Autoscaling configuration for the node pool.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setAutoscaling(com.google.container.v1beta1.NodePoolAutoscaling value) { - if (autoscalingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - autoscaling_ = value; - onChanged(); - } else { - autoscalingBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Required. Autoscaling configuration for the node pool.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setAutoscaling( - com.google.container.v1beta1.NodePoolAutoscaling.Builder builderForValue) { - if (autoscalingBuilder_ == null) { - autoscaling_ = builderForValue.build(); - onChanged(); - } else { - autoscalingBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Required. Autoscaling configuration for the node pool.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeAutoscaling(com.google.container.v1beta1.NodePoolAutoscaling value) { - if (autoscalingBuilder_ == null) { - if (autoscaling_ != null) { - autoscaling_ = - com.google.container.v1beta1.NodePoolAutoscaling.newBuilder(autoscaling_).mergeFrom(value).buildPartial(); - } else { - autoscaling_ = value; - } - onChanged(); - } else { - autoscalingBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Required. Autoscaling configuration for the node pool.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearAutoscaling() { - if (autoscalingBuilder_ == null) { - autoscaling_ = null; - onChanged(); - } else { - autoscaling_ = null; - autoscalingBuilder_ = null; - } - - return this; - } - /** - *
-     * Required. Autoscaling configuration for the node pool.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.container.v1beta1.NodePoolAutoscaling.Builder getAutoscalingBuilder() { - - onChanged(); - return getAutoscalingFieldBuilder().getBuilder(); - } - /** - *
-     * Required. Autoscaling configuration for the node pool.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.container.v1beta1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder() { - if (autoscalingBuilder_ != null) { - return autoscalingBuilder_.getMessageOrBuilder(); - } else { - return autoscaling_ == null ? - com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() : autoscaling_; - } - } - /** - *
-     * Required. Autoscaling configuration for the node pool.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePoolAutoscaling, com.google.container.v1beta1.NodePoolAutoscaling.Builder, com.google.container.v1beta1.NodePoolAutoscalingOrBuilder> - getAutoscalingFieldBuilder() { - if (autoscalingBuilder_ == null) { - autoscalingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePoolAutoscaling, com.google.container.v1beta1.NodePoolAutoscaling.Builder, com.google.container.v1beta1.NodePoolAutoscalingOrBuilder>( - getAutoscaling(), - getParentForChildren(), - isClean()); - autoscaling_ = null; - } - return autoscalingBuilder_; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster, node pool) of the node pool to set
-     * autoscaler settings. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name (project, location, cluster, node pool) of the node pool to set
-     * autoscaler settings. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name (project, location, cluster, node pool) of the node pool to set
-     * autoscaler settings. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster, node pool) of the node pool to set
-     * autoscaler settings. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster, node pool) of the node pool to set
-     * autoscaler settings. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetNodePoolAutoscalingRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetNodePoolAutoscalingRequest) - private static final com.google.container.v1beta1.SetNodePoolAutoscalingRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.SetNodePoolAutoscalingRequest(); - } - - public static com.google.container.v1beta1.SetNodePoolAutoscalingRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetNodePoolAutoscalingRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index ccc0ae412286..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequestOrBuilder.java +++ /dev/null @@ -1,170 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface SetNodePoolAutoscalingRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetNodePoolAutoscalingRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=2563 - * @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=2563 - * @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=2572 - * @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=2572 - * @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=2579 - * @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=2579 - * @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=2586 - * @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=2586 - * @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 deleted file mode 100644 index 905652c748b4..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequest.java +++ /dev/null @@ -1,1585 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * SetNodePoolManagementRequest sets the node management properties of a node
- * pool.
- * 
- * - * Protobuf type {@code google.container.v1beta1.SetNodePoolManagementRequest} - */ -public final class SetNodePoolManagementRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetNodePoolManagementRequest) - SetNodePoolManagementRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use SetNodePoolManagementRequest.newBuilder() to construct. - private SetNodePoolManagementRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SetNodePoolManagementRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - nodePoolId_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SetNodePoolManagementRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetNodePoolManagementRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetNodePoolManagementRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.SetNodePoolManagementRequest.class, com.google.container.v1beta1.SetNodePoolManagementRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=3698 - * @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=3698 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Required. Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3707 - * @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=3707 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * Required. Deprecated. The name of the cluster to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3714 - * @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=3714 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_POOL_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object nodePoolId_; - /** - *
-   * Required. Deprecated. The name of the node pool to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3721 - * @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=3721 - * @return The bytes for nodePoolId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getNodePoolIdBytes() { - java.lang.Object ref = nodePoolId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodePoolId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MANAGEMENT_FIELD_NUMBER = 5; - private com.google.container.v1beta1.NodeManagement management_; - /** - *
-   * Required. NodeManagement configuration for the node pool.
-   * 
- * - * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the management field is set. - */ - @java.lang.Override - public boolean hasManagement() { - return management_ != null; - } - /** - *
-   * Required. NodeManagement configuration for the node pool.
-   * 
- * - * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The management. - */ - @java.lang.Override - public com.google.container.v1beta1.NodeManagement getManagement() { - return management_ == null ? com.google.container.v1beta1.NodeManagement.getDefaultInstance() : management_; - } - /** - *
-   * Required. NodeManagement configuration for the node pool.
-   * 
- * - * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuilder() { - return getManagement(); - } - - public static final int NAME_FIELD_NUMBER = 7; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster, node pool id) of the node pool to set
-   * management properties. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 7; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project, location, cluster, node pool id) of the node pool to set
-   * management properties. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 7; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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 (management_ != null) { - 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 (management_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - nodePoolId_ = ""; - - if (managementBuilder_ == null) { - management_ = null; - } else { - management_ = null; - managementBuilder_ = null; - } - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetNodePoolManagementRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.SetNodePoolManagementRequest getDefaultInstanceForType() { - return com.google.container.v1beta1.SetNodePoolManagementRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.SetNodePoolManagementRequest build() { - com.google.container.v1beta1.SetNodePoolManagementRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.SetNodePoolManagementRequest buildPartial() { - com.google.container.v1beta1.SetNodePoolManagementRequest result = new com.google.container.v1beta1.SetNodePoolManagementRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.nodePoolId_ = nodePoolId_; - if (managementBuilder_ == null) { - result.management_ = management_; - } else { - result.management_ = managementBuilder_.build(); - } - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.SetNodePoolManagementRequest) { - return mergeFrom((com.google.container.v1beta1.SetNodePoolManagementRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.SetNodePoolManagementRequest other) { - if (other == com.google.container.v1beta1.SetNodePoolManagementRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getNodePoolId().isEmpty()) { - nodePoolId_ = other.nodePoolId_; - onChanged(); - } - if (other.hasManagement()) { - mergeManagement(other.getManagement()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - nodePoolId_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - input.readMessage( - getManagementFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 42 - case 58: { - name_ = input.readStringRequireUtf8(); - - 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 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=3698 - * @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=3698 - * @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=3698 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=3698 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=3698 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3707 - * @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=3707 - * @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=3707 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3707 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3707 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * Required. Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3714 - * @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=3714 - * @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=3714 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3714 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3714 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object nodePoolId_ = ""; - /** - *
-     * Required. Deprecated. The name of the node pool to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3721 - * @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=3721 - * @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=3721 - * @param value The nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setNodePoolId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodePoolId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the node pool to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3721 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearNodePoolId() { - - nodePoolId_ = getDefaultInstance().getNodePoolId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the node pool to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3721 - * @param value The bytes for nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setNodePoolIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodePoolId_ = value; - onChanged(); - return this; - } - - private com.google.container.v1beta1.NodeManagement management_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeManagement, com.google.container.v1beta1.NodeManagement.Builder, com.google.container.v1beta1.NodeManagementOrBuilder> managementBuilder_; - /** - *
-     * Required. NodeManagement configuration for the node pool.
-     * 
- * - * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the management field is set. - */ - public boolean hasManagement() { - return managementBuilder_ != null || management_ != null; - } - /** - *
-     * Required. NodeManagement configuration for the node pool.
-     * 
- * - * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The management. - */ - public com.google.container.v1beta1.NodeManagement getManagement() { - if (managementBuilder_ == null) { - return management_ == null ? com.google.container.v1beta1.NodeManagement.getDefaultInstance() : management_; - } else { - return managementBuilder_.getMessage(); - } - } - /** - *
-     * Required. NodeManagement configuration for the node pool.
-     * 
- * - * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setManagement(com.google.container.v1beta1.NodeManagement value) { - if (managementBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - management_ = value; - onChanged(); - } else { - managementBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Required. NodeManagement configuration for the node pool.
-     * 
- * - * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setManagement( - com.google.container.v1beta1.NodeManagement.Builder builderForValue) { - if (managementBuilder_ == null) { - management_ = builderForValue.build(); - onChanged(); - } else { - managementBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Required. NodeManagement configuration for the node pool.
-     * 
- * - * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeManagement(com.google.container.v1beta1.NodeManagement value) { - if (managementBuilder_ == null) { - if (management_ != null) { - management_ = - com.google.container.v1beta1.NodeManagement.newBuilder(management_).mergeFrom(value).buildPartial(); - } else { - management_ = value; - } - onChanged(); - } else { - managementBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Required. NodeManagement configuration for the node pool.
-     * 
- * - * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearManagement() { - if (managementBuilder_ == null) { - management_ = null; - onChanged(); - } else { - management_ = null; - managementBuilder_ = null; - } - - return this; - } - /** - *
-     * Required. NodeManagement configuration for the node pool.
-     * 
- * - * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.container.v1beta1.NodeManagement.Builder getManagementBuilder() { - - onChanged(); - return getManagementFieldBuilder().getBuilder(); - } - /** - *
-     * Required. NodeManagement configuration for the node pool.
-     * 
- * - * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuilder() { - if (managementBuilder_ != null) { - return managementBuilder_.getMessageOrBuilder(); - } else { - return management_ == null ? - com.google.container.v1beta1.NodeManagement.getDefaultInstance() : management_; - } - } - /** - *
-     * Required. NodeManagement configuration for the node pool.
-     * 
- * - * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeManagement, com.google.container.v1beta1.NodeManagement.Builder, com.google.container.v1beta1.NodeManagementOrBuilder> - getManagementFieldBuilder() { - if (managementBuilder_ == null) { - managementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeManagement, com.google.container.v1beta1.NodeManagement.Builder, com.google.container.v1beta1.NodeManagementOrBuilder>( - getManagement(), - getParentForChildren(), - isClean()); - management_ = null; - } - return managementBuilder_; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to set
-     * management properties. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 7; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to set
-     * management properties. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 7; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to set
-     * management properties. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 7; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to set
-     * management properties. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 7; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to set
-     * management properties. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 7; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetNodePoolManagementRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetNodePoolManagementRequest) - private static final com.google.container.v1beta1.SetNodePoolManagementRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.SetNodePoolManagementRequest(); - } - - public static com.google.container.v1beta1.SetNodePoolManagementRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetNodePoolManagementRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 2b5bceb95b98..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequestOrBuilder.java +++ /dev/null @@ -1,170 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface SetNodePoolManagementRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetNodePoolManagementRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=3698 - * @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=3698 - * @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=3707 - * @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=3707 - * @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=3714 - * @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=3714 - * @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=3721 - * @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=3721 - * @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 deleted file mode 100644 index e15cd7baf859..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequest.java +++ /dev/null @@ -1,1433 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * SetNodePoolSizeRequest sets the size 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetNodePoolSizeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetNodePoolSizeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.SetNodePoolSizeRequest.class, com.google.container.v1beta1.SetNodePoolSizeRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=3740 - * @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=3740 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Required. Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3749 - * @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=3749 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * Required. Deprecated. The name of the cluster to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3756 - * @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=3756 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_POOL_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object nodePoolId_; - /** - *
-   * Required. Deprecated. The name of the node pool to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3763 - * @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=3763 - * @return The bytes for nodePoolId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getNodePoolIdBytes() { - java.lang.Object ref = nodePoolId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodePoolId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_COUNT_FIELD_NUMBER = 5; - private int nodeCount_; - /** - *
-   * Required. The desired node count for the pool.
-   * 
- * - * int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The nodeCount. - */ - @java.lang.Override - public int getNodeCount() { - return nodeCount_; - } - - public static final int NAME_FIELD_NUMBER = 7; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster, node pool id) of the node pool to set
-   * size.
-   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 7; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project, location, cluster, node pool id) of the node pool to set
-   * size.
-   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 7; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - projectId_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - nodePoolId_ = ""; - - nodeCount_ = 0; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetNodePoolSizeRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.SetNodePoolSizeRequest getDefaultInstanceForType() { - return com.google.container.v1beta1.SetNodePoolSizeRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.SetNodePoolSizeRequest build() { - com.google.container.v1beta1.SetNodePoolSizeRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.SetNodePoolSizeRequest buildPartial() { - com.google.container.v1beta1.SetNodePoolSizeRequest result = new com.google.container.v1beta1.SetNodePoolSizeRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.nodePoolId_ = nodePoolId_; - result.nodeCount_ = nodeCount_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.SetNodePoolSizeRequest) { - return mergeFrom((com.google.container.v1beta1.SetNodePoolSizeRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.SetNodePoolSizeRequest other) { - if (other == com.google.container.v1beta1.SetNodePoolSizeRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getNodePoolId().isEmpty()) { - nodePoolId_ = other.nodePoolId_; - onChanged(); - } - if (other.getNodeCount() != 0) { - setNodeCount(other.getNodeCount()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - nodePoolId_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 40: { - nodeCount_ = input.readInt32(); - - break; - } // case 40 - case 58: { - name_ = input.readStringRequireUtf8(); - - 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 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=3740 - * @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=3740 - * @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=3740 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=3740 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=3740 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3749 - * @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=3749 - * @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=3749 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3749 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3749 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * Required. Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3756 - * @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=3756 - * @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=3756 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3756 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3756 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object nodePoolId_ = ""; - /** - *
-     * Required. Deprecated. The name of the node pool to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3763 - * @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=3763 - * @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=3763 - * @param value The nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setNodePoolId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodePoolId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the node pool to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3763 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearNodePoolId() { - - nodePoolId_ = getDefaultInstance().getNodePoolId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the node pool to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3763 - * @param value The bytes for nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setNodePoolIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodePoolId_ = value; - onChanged(); - return this; - } - - private int nodeCount_ ; - /** - *
-     * Required. The desired node count for the pool.
-     * 
- * - * int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The nodeCount. - */ - @java.lang.Override - public int getNodeCount() { - return nodeCount_; - } - /** - *
-     * Required. The desired node count for the pool.
-     * 
- * - * int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param value The nodeCount to set. - * @return This builder for chaining. - */ - public Builder setNodeCount(int value) { - - nodeCount_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. The desired node count for the pool.
-     * 
- * - * int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearNodeCount() { - - nodeCount_ = 0; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to set
-     * size.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 7; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to set
-     * size.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 7; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to set
-     * size.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 7; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to set
-     * size.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 7; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster, node pool id) of the node pool to set
-     * size.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 7; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetNodePoolSizeRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetNodePoolSizeRequest) - private static final com.google.container.v1beta1.SetNodePoolSizeRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.SetNodePoolSizeRequest(); - } - - public static com.google.container.v1beta1.SetNodePoolSizeRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetNodePoolSizeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 7a0817a94ac3..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequestOrBuilder.java +++ /dev/null @@ -1,153 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface SetNodePoolSizeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetNodePoolSizeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=3740 - * @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=3740 - * @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=3749 - * @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=3749 - * @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=3756 - * @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=3756 - * @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=3763 - * @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=3763 - * @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 deleted file mode 100644 index 6fa2162970c9..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedInstanceConfig.java +++ /dev/null @@ -1,599 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * A set of Shielded Instance options.
- * 
- * - * Protobuf type {@code google.container.v1beta1.ShieldedInstanceConfig} - */ -public final class ShieldedInstanceConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.ShieldedInstanceConfig) - ShieldedInstanceConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use ShieldedInstanceConfig.newBuilder() to construct. - private ShieldedInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ShieldedInstanceConfig() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ShieldedInstanceConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ShieldedInstanceConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ShieldedInstanceConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.ShieldedInstanceConfig.class, com.google.container.v1beta1.ShieldedInstanceConfig.Builder.class); - } - - public static final int ENABLE_SECURE_BOOT_FIELD_NUMBER = 1; - private boolean enableSecureBoot_; - /** - *
-   * Defines whether the instance has Secure Boot enabled.
-   * Secure Boot helps ensure that the system only runs authentic software by
-   * verifying the digital signature of all boot components, and halting the
-   * boot process if signature verification fails.
-   * 
- * - * bool enable_secure_boot = 1; - * @return The enableSecureBoot. - */ - @java.lang.Override - public boolean getEnableSecureBoot() { - return enableSecureBoot_; - } - - public static final int ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER = 2; - private boolean enableIntegrityMonitoring_; - /** - *
-   * Defines whether the instance has integrity monitoring enabled.
-   * Enables monitoring and attestation of the boot integrity of the instance.
-   * The attestation is performed against the integrity policy baseline. This
-   * baseline is initially derived from the implicitly trusted boot image when
-   * the instance is created.
-   * 
- * - * bool enable_integrity_monitoring = 2; - * @return The enableIntegrityMonitoring. - */ - @java.lang.Override - public boolean getEnableIntegrityMonitoring() { - return enableIntegrityMonitoring_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enableSecureBoot_ != false) { - output.writeBool(1, enableSecureBoot_); - } - if (enableIntegrityMonitoring_ != false) { - output.writeBool(2, enableIntegrityMonitoring_); - } - 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(); - enableSecureBoot_ = false; - - enableIntegrityMonitoring_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ShieldedInstanceConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.ShieldedInstanceConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.ShieldedInstanceConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.ShieldedInstanceConfig build() { - com.google.container.v1beta1.ShieldedInstanceConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.ShieldedInstanceConfig buildPartial() { - com.google.container.v1beta1.ShieldedInstanceConfig result = new com.google.container.v1beta1.ShieldedInstanceConfig(this); - result.enableSecureBoot_ = enableSecureBoot_; - result.enableIntegrityMonitoring_ = enableIntegrityMonitoring_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.ShieldedInstanceConfig) { - return mergeFrom((com.google.container.v1beta1.ShieldedInstanceConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.ShieldedInstanceConfig other) { - if (other == com.google.container.v1beta1.ShieldedInstanceConfig.getDefaultInstance()) return this; - if (other.getEnableSecureBoot() != false) { - setEnableSecureBoot(other.getEnableSecureBoot()); - } - if (other.getEnableIntegrityMonitoring() != false) { - setEnableIntegrityMonitoring(other.getEnableIntegrityMonitoring()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 8 - case 16: { - enableIntegrityMonitoring_ = input.readBool(); - - 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 boolean enableSecureBoot_ ; - /** - *
-     * Defines whether the instance has Secure Boot enabled.
-     * Secure Boot helps ensure that the system only runs authentic software by
-     * verifying the digital signature of all boot components, and halting the
-     * boot process if signature verification fails.
-     * 
- * - * bool enable_secure_boot = 1; - * @return The enableSecureBoot. - */ - @java.lang.Override - public boolean getEnableSecureBoot() { - return enableSecureBoot_; - } - /** - *
-     * Defines whether the instance has Secure Boot enabled.
-     * Secure Boot helps ensure that the system only runs authentic software by
-     * verifying the digital signature of all boot components, and halting the
-     * boot process if signature verification fails.
-     * 
- * - * bool enable_secure_boot = 1; - * @param value The enableSecureBoot to set. - * @return This builder for chaining. - */ - public Builder setEnableSecureBoot(boolean value) { - - enableSecureBoot_ = value; - onChanged(); - return this; - } - /** - *
-     * Defines whether the instance has Secure Boot enabled.
-     * Secure Boot helps ensure that the system only runs authentic software by
-     * verifying the digital signature of all boot components, and halting the
-     * boot process if signature verification fails.
-     * 
- * - * bool enable_secure_boot = 1; - * @return This builder for chaining. - */ - public Builder clearEnableSecureBoot() { - - enableSecureBoot_ = false; - onChanged(); - return this; - } - - private boolean enableIntegrityMonitoring_ ; - /** - *
-     * Defines whether the instance has integrity monitoring enabled.
-     * Enables monitoring and attestation of the boot integrity of the instance.
-     * The attestation is performed against the integrity policy baseline. This
-     * baseline is initially derived from the implicitly trusted boot image when
-     * the instance is created.
-     * 
- * - * bool enable_integrity_monitoring = 2; - * @return The enableIntegrityMonitoring. - */ - @java.lang.Override - public boolean getEnableIntegrityMonitoring() { - return enableIntegrityMonitoring_; - } - /** - *
-     * Defines whether the instance has integrity monitoring enabled.
-     * Enables monitoring and attestation of the boot integrity of the instance.
-     * The attestation is performed against the integrity policy baseline. This
-     * baseline is initially derived from the implicitly trusted boot image when
-     * the instance is created.
-     * 
- * - * bool enable_integrity_monitoring = 2; - * @param value The enableIntegrityMonitoring to set. - * @return This builder for chaining. - */ - public Builder setEnableIntegrityMonitoring(boolean value) { - - enableIntegrityMonitoring_ = value; - onChanged(); - return this; - } - /** - *
-     * Defines whether the instance has integrity monitoring enabled.
-     * Enables monitoring and attestation of the boot integrity of the instance.
-     * The attestation is performed against the integrity policy baseline. This
-     * baseline is initially derived from the implicitly trusted boot image when
-     * the instance is created.
-     * 
- * - * bool enable_integrity_monitoring = 2; - * @return This builder for chaining. - */ - public Builder clearEnableIntegrityMonitoring() { - - enableIntegrityMonitoring_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ShieldedInstanceConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.ShieldedInstanceConfig) - private static final com.google.container.v1beta1.ShieldedInstanceConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.ShieldedInstanceConfig(); - } - - public static com.google.container.v1beta1.ShieldedInstanceConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ShieldedInstanceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index aceea33a6383..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedInstanceConfigOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface ShieldedInstanceConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ShieldedInstanceConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Defines whether the instance has Secure Boot enabled.
-   * Secure Boot helps ensure that the system only runs authentic software by
-   * verifying the digital signature of all boot components, and halting the
-   * boot process if signature verification fails.
-   * 
- * - * bool enable_secure_boot = 1; - * @return The enableSecureBoot. - */ - boolean getEnableSecureBoot(); - - /** - *
-   * Defines whether the instance has integrity monitoring enabled.
-   * Enables monitoring and attestation of the boot integrity of the instance.
-   * The attestation is performed against the integrity policy baseline. This
-   * baseline is initially derived from the implicitly trusted boot image when
-   * the instance is created.
-   * 
- * - * bool enable_integrity_monitoring = 2; - * @return The enableIntegrityMonitoring. - */ - boolean getEnableIntegrityMonitoring(); -} diff --git a/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 deleted file mode 100644 index 49339fa218f9..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedNodes.java +++ /dev/null @@ -1,490 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Configuration of Shielded Nodes feature.
- * 
- * - * Protobuf type {@code google.container.v1beta1.ShieldedNodes} - */ -public final class ShieldedNodes extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.ShieldedNodes) - ShieldedNodesOrBuilder { -private static final long serialVersionUID = 0L; - // Use ShieldedNodes.newBuilder() to construct. - private ShieldedNodes(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ShieldedNodes() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ShieldedNodes(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ShieldedNodes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ShieldedNodes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.ShieldedNodes.class, com.google.container.v1beta1.ShieldedNodes.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-   * Whether Shielded Nodes features are enabled on all nodes in this cluster.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - 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(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ShieldedNodes_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.ShieldedNodes getDefaultInstanceForType() { - return com.google.container.v1beta1.ShieldedNodes.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.ShieldedNodes build() { - com.google.container.v1beta1.ShieldedNodes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.ShieldedNodes buildPartial() { - com.google.container.v1beta1.ShieldedNodes result = new com.google.container.v1beta1.ShieldedNodes(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.ShieldedNodes) { - return mergeFrom((com.google.container.v1beta1.ShieldedNodes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.ShieldedNodes other) { - if (other == com.google.container.v1beta1.ShieldedNodes.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 boolean enabled_ ; - /** - *
-     * Whether Shielded Nodes features are enabled on all nodes in this cluster.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Whether Shielded Nodes features are enabled on all nodes in this cluster.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether Shielded Nodes features are enabled on all nodes in this cluster.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ShieldedNodes) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.ShieldedNodes) - private static final com.google.container.v1beta1.ShieldedNodes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.ShieldedNodes(); - } - - public static com.google.container.v1beta1.ShieldedNodes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ShieldedNodes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 3d24876a5811..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedNodesOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface ShieldedNodesOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ShieldedNodes) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether Shielded Nodes features are enabled on all nodes in this cluster.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/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 deleted file mode 100644 index 325972a68532..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequest.java +++ /dev/null @@ -1,1243 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * StartIPRotationRequest creates a new IP for the cluster and then performs
- * a node upgrade on each node pool to point to the new IP.
- * 
- * - * Protobuf type {@code google.container.v1beta1.StartIPRotationRequest} - */ -public final class StartIPRotationRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.StartIPRotationRequest) - StartIPRotationRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use StartIPRotationRequest.newBuilder() to construct. - private StartIPRotationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StartIPRotationRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StartIPRotationRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_StartIPRotationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_StartIPRotationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.StartIPRotationRequest.class, com.google.container.v1beta1.StartIPRotationRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=4092 - * @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=4092 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Required. Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. - * See google/container/v1beta1/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; - } - } - /** - *
-   * Required. Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This 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=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; - 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=4108 - * @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=4108 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster 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_; - /** - *
-   * 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(); - projectId_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - name_ = ""; - - rotateCredentials_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_StartIPRotationRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.StartIPRotationRequest getDefaultInstanceForType() { - return com.google.container.v1beta1.StartIPRotationRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.StartIPRotationRequest build() { - com.google.container.v1beta1.StartIPRotationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.StartIPRotationRequest buildPartial() { - com.google.container.v1beta1.StartIPRotationRequest result = new com.google.container.v1beta1.StartIPRotationRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.name_ = name_; - result.rotateCredentials_ = rotateCredentials_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.StartIPRotationRequest) { - return mergeFrom((com.google.container.v1beta1.StartIPRotationRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.StartIPRotationRequest other) { - if (other == com.google.container.v1beta1.StartIPRotationRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.getRotateCredentials() != false) { - setRotateCredentials(other.getRotateCredentials()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 50: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 56: { - rotateCredentials_ = input.readBool(); - - 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 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=4092 - * @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=4092 - * @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=4092 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=4092 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=4092 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. - * See google/container/v1beta1/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; - } - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This 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=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; - } - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This 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=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; - 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=4101 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. - * See google/container/v1beta1/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; - 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=4108 - * @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=4108 - * @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=4108 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4108 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4108 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster 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; - 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(); - 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; - onChanged(); - return this; - } - - private boolean rotateCredentials_ ; - /** - *
-     * Whether to rotate credentials during IP rotation.
-     * 
- * - * bool rotate_credentials = 7; - * @return The rotateCredentials. - */ - @java.lang.Override - public boolean getRotateCredentials() { - return rotateCredentials_; - } - /** - *
-     * Whether to rotate credentials during IP rotation.
-     * 
- * - * bool rotate_credentials = 7; - * @param value The rotateCredentials to set. - * @return This builder for chaining. - */ - public Builder setRotateCredentials(boolean value) { - - rotateCredentials_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether to rotate credentials during IP rotation.
-     * 
- * - * bool rotate_credentials = 7; - * @return This builder for chaining. - */ - public Builder clearRotateCredentials() { - - rotateCredentials_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.StartIPRotationRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.StartIPRotationRequest) - private static final com.google.container.v1beta1.StartIPRotationRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.StartIPRotationRequest(); - } - - public static com.google.container.v1beta1.StartIPRotationRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartIPRotationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 4e0da28109b1..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequestOrBuilder.java +++ /dev/null @@ -1,125 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface StartIPRotationRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.StartIPRotationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=4092 - * @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=4092 - * @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=4101 - * @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=4101 - * @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=4108 - * @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=4108 - * @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/StatusCondition.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusCondition.java deleted file mode 100644 index d5c56dc77573..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusCondition.java +++ /dev/null @@ -1,1064 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * StatusCondition describes why a cluster or a node pool has a certain status
- * (e.g., ERROR or DEGRADED).
- * 
- * - * Protobuf type {@code google.container.v1beta1.StatusCondition} - */ -public final class StatusCondition extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.StatusCondition) - StatusConditionOrBuilder { -private static final long serialVersionUID = 0L; - // Use StatusCondition.newBuilder() to construct. - private StatusCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StatusCondition() { - code_ = 0; - message_ = ""; - canonicalCode_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StatusCondition(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * 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=4395 - * @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=4395 - * @return The code. - */ - @java.lang.Override @java.lang.Deprecated public com.google.container.v1beta1.StatusCondition.Code getCode() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.StatusCondition.Code result = com.google.container.v1beta1.StatusCondition.Code.valueOf(code_); - return result == null ? com.google.container.v1beta1.StatusCondition.Code.UNRECOGNIZED : result; - } - - public static final int MESSAGE_FIELD_NUMBER = 2; - private volatile java.lang.Object message_; - /** - *
-   * Human-friendly representation of the condition
-   * 
- * - * string message = 2; - * @return The message. - */ - @java.lang.Override - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } - } - /** - *
-   * Human-friendly representation of the condition
-   * 
- * - * string message = 2; - * @return The bytes for message. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CANONICAL_CODE_FIELD_NUMBER = 3; - private int canonicalCode_; - /** - *
-   * Canonical code of the condition.
-   * 
- * - * .google.rpc.Code canonical_code = 3; - * @return The enum numeric value on the wire for canonicalCode. - */ - @java.lang.Override public int getCanonicalCodeValue() { - return canonicalCode_; - } - /** - *
-   * Canonical code of the condition.
-   * 
- * - * .google.rpc.Code canonical_code = 3; - * @return The canonicalCode. - */ - @java.lang.Override public com.google.rpc.Code getCanonicalCode() { - @SuppressWarnings("deprecation") - com.google.rpc.Code result = com.google.rpc.Code.valueOf(canonicalCode_); - return result == null ? com.google.rpc.Code.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (code_ != com.google.container.v1beta1.StatusCondition.Code.UNKNOWN.getNumber()) { - output.writeEnum(1, code_); - } - if (!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(); - code_ = 0; - - message_ = ""; - - canonicalCode_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_StatusCondition_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.StatusCondition getDefaultInstanceForType() { - return com.google.container.v1beta1.StatusCondition.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.StatusCondition build() { - com.google.container.v1beta1.StatusCondition result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.StatusCondition buildPartial() { - com.google.container.v1beta1.StatusCondition result = new com.google.container.v1beta1.StatusCondition(this); - result.code_ = code_; - result.message_ = message_; - result.canonicalCode_ = canonicalCode_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.StatusCondition) { - return mergeFrom((com.google.container.v1beta1.StatusCondition)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.StatusCondition other) { - if (other == com.google.container.v1beta1.StatusCondition.getDefaultInstance()) return this; - if (other.code_ != 0) { - setCodeValue(other.getCodeValue()); - } - if (!other.getMessage().isEmpty()) { - message_ = other.message_; - onChanged(); - } - if (other.canonicalCode_ != 0) { - setCanonicalCodeValue(other.getCanonicalCodeValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 8 - case 18: { - message_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: { - canonicalCode_ = input.readEnum(); - - 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 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=4395 - * @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=4395 - * @param value The enum numeric value on the wire for code to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setCodeValue(int value) { - - code_ = value; - onChanged(); - return this; - } - /** - *
-     * Machine-friendly representation of the condition
-     * Deprecated. Use canonical_code instead.
-     * 
- * - * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; - * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4395 - * @return The code. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.container.v1beta1.StatusCondition.Code getCode() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.StatusCondition.Code result = com.google.container.v1beta1.StatusCondition.Code.valueOf(code_); - return result == null ? com.google.container.v1beta1.StatusCondition.Code.UNRECOGNIZED : result; - } - /** - *
-     * Machine-friendly representation of the condition
-     * Deprecated. Use canonical_code instead.
-     * 
- * - * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; - * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4395 - * @param value The code to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setCode(com.google.container.v1beta1.StatusCondition.Code value) { - if (value == null) { - throw new NullPointerException(); - } - - code_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Machine-friendly representation of the condition
-     * Deprecated. Use canonical_code instead.
-     * 
- * - * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; - * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4395 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearCode() { - - code_ = 0; - onChanged(); - return this; - } - - private java.lang.Object message_ = ""; - /** - *
-     * Human-friendly representation of the condition
-     * 
- * - * string message = 2; - * @return The message. - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Human-friendly representation of the condition
-     * 
- * - * string message = 2; - * @return The bytes for message. - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Human-friendly representation of the condition
-     * 
- * - * string message = 2; - * @param value The message to set. - * @return This builder for chaining. - */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - onChanged(); - return this; - } - /** - *
-     * Human-friendly representation of the condition
-     * 
- * - * string message = 2; - * @return This builder for chaining. - */ - public Builder clearMessage() { - - message_ = getDefaultInstance().getMessage(); - onChanged(); - return this; - } - /** - *
-     * Human-friendly representation of the condition
-     * 
- * - * string message = 2; - * @param value The bytes for message to set. - * @return This builder for chaining. - */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value; - onChanged(); - return this; - } - - private int canonicalCode_ = 0; - /** - *
-     * Canonical code of the condition.
-     * 
- * - * .google.rpc.Code canonical_code = 3; - * @return The enum numeric value on the wire for canonicalCode. - */ - @java.lang.Override public int getCanonicalCodeValue() { - return canonicalCode_; - } - /** - *
-     * Canonical code of the condition.
-     * 
- * - * .google.rpc.Code canonical_code = 3; - * @param value The enum numeric value on the wire for canonicalCode to set. - * @return This builder for chaining. - */ - public Builder setCanonicalCodeValue(int value) { - - canonicalCode_ = value; - onChanged(); - return this; - } - /** - *
-     * Canonical code of the condition.
-     * 
- * - * .google.rpc.Code canonical_code = 3; - * @return The canonicalCode. - */ - @java.lang.Override - public com.google.rpc.Code getCanonicalCode() { - @SuppressWarnings("deprecation") - com.google.rpc.Code result = com.google.rpc.Code.valueOf(canonicalCode_); - return result == null ? com.google.rpc.Code.UNRECOGNIZED : result; - } - /** - *
-     * Canonical code of the condition.
-     * 
- * - * .google.rpc.Code canonical_code = 3; - * @param value The canonicalCode to set. - * @return This builder for chaining. - */ - public Builder setCanonicalCode(com.google.rpc.Code value) { - if (value == null) { - throw new NullPointerException(); - } - - canonicalCode_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Canonical code of the condition.
-     * 
- * - * .google.rpc.Code canonical_code = 3; - * @return This builder for chaining. - */ - public Builder clearCanonicalCode() { - - canonicalCode_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.StatusCondition) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.StatusCondition) - private static final com.google.container.v1beta1.StatusCondition DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.StatusCondition(); - } - - public static com.google.container.v1beta1.StatusCondition getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StatusCondition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 0169120e98cf..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusConditionOrBuilder.java +++ /dev/null @@ -1,73 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface StatusConditionOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.StatusCondition) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Machine-friendly representation of the condition
-   * Deprecated. Use canonical_code instead.
-   * 
- * - * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; - * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4395 - * @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=4395 - * @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 deleted file mode 100644 index 74a61e1b6179..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TimeWindow.java +++ /dev/null @@ -1,1221 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Represents an arbitrary window of time.
- * 
- * - * Protobuf type {@code google.container.v1beta1.TimeWindow} - */ -public final class TimeWindow extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.TimeWindow) - TimeWindowOrBuilder { -private static final long serialVersionUID = 0L; - // Use TimeWindow.newBuilder() to construct. - private TimeWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TimeWindow() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TimeWindow(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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 optionsCase_ = 0; - private java.lang.Object options_; - public enum OptionsCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - MAINTENANCE_EXCLUSION_OPTIONS(3), - OPTIONS_NOT_SET(0); - private final int value; - private OptionsCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OptionsCase valueOf(int value) { - return forNumber(value); - } - - public static OptionsCase forNumber(int value) { - switch (value) { - case 3: return MAINTENANCE_EXCLUSION_OPTIONS; - case 0: return OPTIONS_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OptionsCase - getOptionsCase() { - return OptionsCase.forNumber( - optionsCase_); - } - - public static final int MAINTENANCE_EXCLUSION_OPTIONS_FIELD_NUMBER = 3; - /** - *
-   * MaintenanceExclusionOptions provides maintenance exclusion related
-   * options.
-   * 
- * - * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * @return Whether the maintenanceExclusionOptions field is set. - */ - @java.lang.Override - public boolean hasMaintenanceExclusionOptions() { - return optionsCase_ == 3; - } - /** - *
-   * MaintenanceExclusionOptions provides maintenance exclusion related
-   * options.
-   * 
- * - * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * @return The maintenanceExclusionOptions. - */ - @java.lang.Override - public com.google.container.v1beta1.MaintenanceExclusionOptions getMaintenanceExclusionOptions() { - if (optionsCase_ == 3) { - return (com.google.container.v1beta1.MaintenanceExclusionOptions) options_; - } - return com.google.container.v1beta1.MaintenanceExclusionOptions.getDefaultInstance(); - } - /** - *
-   * MaintenanceExclusionOptions provides maintenance exclusion related
-   * options.
-   * 
- * - * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - */ - @java.lang.Override - public com.google.container.v1beta1.MaintenanceExclusionOptionsOrBuilder getMaintenanceExclusionOptionsOrBuilder() { - if (optionsCase_ == 3) { - return (com.google.container.v1beta1.MaintenanceExclusionOptions) options_; - } - return com.google.container.v1beta1.MaintenanceExclusionOptions.getDefaultInstance(); - } - - public static final int START_TIME_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp startTime_; - /** - *
-   * The time that the window first starts.
-   * 
- * - * .google.protobuf.Timestamp start_time = 1; - * @return Whether the startTime field is set. - */ - @java.lang.Override - public boolean hasStartTime() { - return startTime_ != null; - } - /** - *
-   * The time that the window first starts.
-   * 
- * - * .google.protobuf.Timestamp start_time = 1; - * @return The startTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getStartTime() { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; - } - /** - *
-   * The time that the window first starts.
-   * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); - } - - public static final int END_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp endTime_; - /** - *
-   * The time that the window ends. The end time should take place after the
-   * start time.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - * @return Whether the endTime field is set. - */ - @java.lang.Override - public boolean hasEndTime() { - return endTime_ != null; - } - /** - *
-   * The time that the window ends. The end time should take place after the
-   * start time.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - * @return The endTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getEndTime() { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; - } - /** - *
-   * The time that the window ends. The end time should take place after the
-   * start time.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (startTime_ != null) { - output.writeMessage(1, getStartTime()); - } - if (endTime_ != null) { - output.writeMessage(2, getEndTime()); - } - 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 (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getStartTime()); - } - if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); - } - if (optionsCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.container.v1beta1.MaintenanceExclusionOptions) options_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (maintenanceExclusionOptionsBuilder_ != null) { - maintenanceExclusionOptionsBuilder_.clear(); - } - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; - startTimeBuilder_ = null; - } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; - 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 (optionsCase_ == 3) { - if (maintenanceExclusionOptionsBuilder_ == null) { - result.options_ = options_; - } else { - result.options_ = maintenanceExclusionOptionsBuilder_.build(); - } - } - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); - } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); - } - result.optionsCase_ = optionsCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.TimeWindow) { - return mergeFrom((com.google.container.v1beta1.TimeWindow)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.TimeWindow other) { - if (other == com.google.container.v1beta1.TimeWindow.getDefaultInstance()) return this; - if (other.hasStartTime()) { - mergeStartTime(other.getStartTime()); - } - if (other.hasEndTime()) { - mergeEndTime(other.getEndTime()); - } - 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); - - break; - } // case 10 - case 18: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - - 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 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 startTimeBuilder_ != null || startTime_ != null; - } - /** - *
-     * The time that the window first starts.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - * @return The startTime. - */ - public com.google.protobuf.Timestamp getStartTime() { - if (startTimeBuilder_ == null) { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; - } else { - return startTimeBuilder_.getMessage(); - } - } - /** - *
-     * The time that the window first starts.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public Builder setStartTime(com.google.protobuf.Timestamp value) { - if (startTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - startTime_ = value; - onChanged(); - } else { - startTimeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The time that the window first starts.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (startTimeBuilder_ == null) { - startTime_ = builderForValue.build(); - onChanged(); - } else { - startTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The time that the window first starts.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public Builder mergeStartTime(com.google.protobuf.Timestamp value) { - if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); - } else { - startTime_ = value; - } - onChanged(); - } else { - startTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The time that the window first starts.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; - startTimeBuilder_ = null; - } - - return this; - } - /** - *
-     * The time that the window first starts.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - - onChanged(); - return getStartTimeFieldBuilder().getBuilder(); - } - /** - *
-     * The time that the window first starts.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - if (startTimeBuilder_ != null) { - return startTimeBuilder_.getMessageOrBuilder(); - } else { - return startTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; - } - } - /** - *
-     * The time that the window first starts.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getStartTimeFieldBuilder() { - if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); - startTime_ = null; - } - return startTimeBuilder_; - } - - private com.google.protobuf.Timestamp endTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; - /** - *
-     * The time that the window ends. The end time should take place after the
-     * start time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - * @return Whether the endTime field is set. - */ - public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; - } - /** - *
-     * The time that the window ends. The end time should take place after the
-     * start time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - * @return The endTime. - */ - public com.google.protobuf.Timestamp getEndTime() { - if (endTimeBuilder_ == null) { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; - } else { - return endTimeBuilder_.getMessage(); - } - } - /** - *
-     * The time that the window ends. The end time should take place after the
-     * start time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public Builder setEndTime(com.google.protobuf.Timestamp value) { - if (endTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - endTime_ = value; - onChanged(); - } else { - endTimeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The time that the window ends. The end time should take place after the
-     * start time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (endTimeBuilder_ == null) { - endTime_ = builderForValue.build(); - onChanged(); - } else { - endTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The time that the window ends. The end time should take place after the
-     * start time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public Builder mergeEndTime(com.google.protobuf.Timestamp value) { - if (endTimeBuilder_ == null) { - if (endTime_ != null) { - endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); - } else { - endTime_ = value; - } - onChanged(); - } else { - endTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The time that the window ends. The end time should take place after the
-     * start time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; - endTimeBuilder_ = null; - } - - return this; - } - /** - *
-     * The time that the window ends. The end time should take place after the
-     * start time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - - onChanged(); - return getEndTimeFieldBuilder().getBuilder(); - } - /** - *
-     * The time that the window ends. The end time should take place after the
-     * start time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - if (endTimeBuilder_ != null) { - return endTimeBuilder_.getMessageOrBuilder(); - } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; - } - } - /** - *
-     * The time that the window ends. The end time should take place after the
-     * start time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getEndTimeFieldBuilder() { - if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); - endTime_ = null; - } - return endTimeBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.TimeWindow) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.TimeWindow) - private static final com.google.container.v1beta1.TimeWindow DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.TimeWindow(); - } - - public static com.google.container.v1beta1.TimeWindow getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimeWindow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 027625858ec7..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TimeWindowOrBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface TimeWindowOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.TimeWindow) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * 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(); - - public 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 deleted file mode 100644 index 9efc9b914a88..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TpuConfig.java +++ /dev/null @@ -1,736 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Configuration for Cloud TPU.
- * 
- * - * Protobuf type {@code google.container.v1beta1.TpuConfig} - */ -public final class TpuConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.TpuConfig) - TpuConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use TpuConfig.newBuilder() to construct. - private TpuConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TpuConfig() { - ipv4CidrBlock_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TpuConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_TpuConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_TpuConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.TpuConfig.class, com.google.container.v1beta1.TpuConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-   * Whether Cloud TPU integration is enabled or not.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - public static final int USE_SERVICE_NETWORKING_FIELD_NUMBER = 2; - private boolean useServiceNetworking_; - /** - *
-   * Whether to use service networking for Cloud TPU or not.
-   * 
- * - * bool use_service_networking = 2; - * @return The useServiceNetworking. - */ - @java.lang.Override - public boolean getUseServiceNetworking() { - return useServiceNetworking_; - } - - public static final int IPV4_CIDR_BLOCK_FIELD_NUMBER = 3; - private volatile java.lang.Object ipv4CidrBlock_; - /** - *
-   * IPv4 CIDR block reserved for Cloud TPU in the VPC.
-   * 
- * - * string ipv4_cidr_block = 3; - * @return The ipv4CidrBlock. - */ - @java.lang.Override - public java.lang.String getIpv4CidrBlock() { - java.lang.Object ref = ipv4CidrBlock_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ipv4CidrBlock_ = s; - return s; - } - } - /** - *
-   * IPv4 CIDR block reserved for Cloud TPU in the VPC.
-   * 
- * - * string ipv4_cidr_block = 3; - * @return The bytes for ipv4CidrBlock. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIpv4CidrBlockBytes() { - java.lang.Object ref = ipv4CidrBlock_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ipv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - if (useServiceNetworking_ != false) { - output.writeBool(2, useServiceNetworking_); - } - if (!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(); - enabled_ = false; - - useServiceNetworking_ = false; - - ipv4CidrBlock_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_TpuConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.TpuConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.TpuConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.TpuConfig build() { - com.google.container.v1beta1.TpuConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.TpuConfig buildPartial() { - com.google.container.v1beta1.TpuConfig result = new com.google.container.v1beta1.TpuConfig(this); - result.enabled_ = enabled_; - result.useServiceNetworking_ = useServiceNetworking_; - result.ipv4CidrBlock_ = ipv4CidrBlock_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.TpuConfig) { - return mergeFrom((com.google.container.v1beta1.TpuConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.TpuConfig other) { - if (other == com.google.container.v1beta1.TpuConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - if (other.getUseServiceNetworking() != false) { - setUseServiceNetworking(other.getUseServiceNetworking()); - } - if (!other.getIpv4CidrBlock().isEmpty()) { - ipv4CidrBlock_ = other.ipv4CidrBlock_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 8 - case 16: { - useServiceNetworking_ = input.readBool(); - - break; - } // case 16 - case 26: { - ipv4CidrBlock_ = input.readStringRequireUtf8(); - - 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 boolean enabled_ ; - /** - *
-     * Whether Cloud TPU integration is enabled or not.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Whether Cloud TPU integration is enabled or not.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether Cloud TPU integration is enabled or not.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - - private boolean useServiceNetworking_ ; - /** - *
-     * Whether to use service networking for Cloud TPU or not.
-     * 
- * - * bool use_service_networking = 2; - * @return The useServiceNetworking. - */ - @java.lang.Override - public boolean getUseServiceNetworking() { - return useServiceNetworking_; - } - /** - *
-     * Whether to use service networking for Cloud TPU or not.
-     * 
- * - * bool use_service_networking = 2; - * @param value The useServiceNetworking to set. - * @return This builder for chaining. - */ - public Builder setUseServiceNetworking(boolean value) { - - useServiceNetworking_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether to use service networking for Cloud TPU or not.
-     * 
- * - * bool use_service_networking = 2; - * @return This builder for chaining. - */ - public Builder clearUseServiceNetworking() { - - useServiceNetworking_ = false; - onChanged(); - return this; - } - - private java.lang.Object ipv4CidrBlock_ = ""; - /** - *
-     * IPv4 CIDR block reserved for Cloud TPU in the VPC.
-     * 
- * - * string ipv4_cidr_block = 3; - * @return The ipv4CidrBlock. - */ - public java.lang.String getIpv4CidrBlock() { - java.lang.Object ref = ipv4CidrBlock_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ipv4CidrBlock_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * IPv4 CIDR block reserved for Cloud TPU in the VPC.
-     * 
- * - * string ipv4_cidr_block = 3; - * @return The bytes for ipv4CidrBlock. - */ - public com.google.protobuf.ByteString - getIpv4CidrBlockBytes() { - java.lang.Object ref = ipv4CidrBlock_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ipv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * IPv4 CIDR block reserved for Cloud TPU in the VPC.
-     * 
- * - * string ipv4_cidr_block = 3; - * @param value The ipv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setIpv4CidrBlock( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ipv4CidrBlock_ = value; - onChanged(); - return this; - } - /** - *
-     * IPv4 CIDR block reserved for Cloud TPU in the VPC.
-     * 
- * - * string ipv4_cidr_block = 3; - * @return This builder for chaining. - */ - public Builder clearIpv4CidrBlock() { - - ipv4CidrBlock_ = getDefaultInstance().getIpv4CidrBlock(); - onChanged(); - return this; - } - /** - *
-     * IPv4 CIDR block reserved for Cloud TPU in the VPC.
-     * 
- * - * string ipv4_cidr_block = 3; - * @param value The bytes for ipv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setIpv4CidrBlockBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ipv4CidrBlock_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.TpuConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.TpuConfig) - private static final com.google.container.v1beta1.TpuConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.TpuConfig(); - } - - public static com.google.container.v1beta1.TpuConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TpuConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 133b341921a8..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TpuConfigOrBuilder.java +++ /dev/null @@ -1,49 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface TpuConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.TpuConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether Cloud TPU integration is enabled or not.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - boolean getEnabled(); - - /** - *
-   * Whether to use service networking for Cloud TPU or not.
-   * 
- * - * bool use_service_networking = 2; - * @return The useServiceNetworking. - */ - boolean getUseServiceNetworking(); - - /** - *
-   * IPv4 CIDR block reserved for Cloud TPU in the VPC.
-   * 
- * - * string ipv4_cidr_block = 3; - * @return The ipv4CidrBlock. - */ - java.lang.String getIpv4CidrBlock(); - /** - *
-   * IPv4 CIDR block reserved for Cloud TPU in the VPC.
-   * 
- * - * string ipv4_cidr_block = 3; - * @return The bytes for ipv4CidrBlock. - */ - com.google.protobuf.ByteString - getIpv4CidrBlockBytes(); -} diff --git a/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 deleted file mode 100644 index cc87022de22b..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequest.java +++ /dev/null @@ -1,1390 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * UpdateClusterRequest updates the settings of a cluster.
- * 
- * - * Protobuf type {@code google.container.v1beta1.UpdateClusterRequest} - */ -public final class UpdateClusterRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.UpdateClusterRequest) - UpdateClusterRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateClusterRequest.newBuilder() to construct. - private UpdateClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateClusterRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateClusterRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UpdateClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UpdateClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.UpdateClusterRequest.class, com.google.container.v1beta1.UpdateClusterRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=2420 - * @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=2420 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Required. Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2429 - * @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=2429 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * Required. Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2436 - * @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=2436 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int UPDATE_FIELD_NUMBER = 4; - private com.google.container.v1beta1.ClusterUpdate update_; - /** - *
-   * Required. A description of the update.
-   * 
- * - * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the update field is set. - */ - @java.lang.Override - public boolean hasUpdate() { - return update_ != null; - } - /** - *
-   * Required. A description of the update.
-   * 
- * - * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The update. - */ - @java.lang.Override - public com.google.container.v1beta1.ClusterUpdate getUpdate() { - return update_ == null ? com.google.container.v1beta1.ClusterUpdate.getDefaultInstance() : update_; - } - /** - *
-   * Required. A description of the update.
-   * 
- * - * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.container.v1beta1.ClusterUpdateOrBuilder getUpdateOrBuilder() { - return getUpdate(); - } - - public static final int NAME_FIELD_NUMBER = 5; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster) of the cluster to update.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 5; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project, location, cluster) of the cluster to update.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 5; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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 (update_ != null) { - 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 (update_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - if (updateBuilder_ == null) { - update_ = null; - } else { - update_ = null; - updateBuilder_ = null; - } - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UpdateClusterRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.UpdateClusterRequest getDefaultInstanceForType() { - return com.google.container.v1beta1.UpdateClusterRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.UpdateClusterRequest build() { - com.google.container.v1beta1.UpdateClusterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.UpdateClusterRequest buildPartial() { - com.google.container.v1beta1.UpdateClusterRequest result = new com.google.container.v1beta1.UpdateClusterRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - if (updateBuilder_ == null) { - result.update_ = update_; - } else { - result.update_ = updateBuilder_.build(); - } - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.UpdateClusterRequest) { - return mergeFrom((com.google.container.v1beta1.UpdateClusterRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.UpdateClusterRequest other) { - if (other == com.google.container.v1beta1.UpdateClusterRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (other.hasUpdate()) { - mergeUpdate(other.getUpdate()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - input.readMessage( - getUpdateFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 34 - case 42: { - name_ = input.readStringRequireUtf8(); - - 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 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=2420 - * @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=2420 - * @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=2420 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=2420 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=2420 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2429 - * @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=2429 - * @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=2429 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2429 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2429 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * Required. Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2436 - * @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=2436 - * @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=2436 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2436 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2436 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private com.google.container.v1beta1.ClusterUpdate update_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ClusterUpdate, com.google.container.v1beta1.ClusterUpdate.Builder, com.google.container.v1beta1.ClusterUpdateOrBuilder> updateBuilder_; - /** - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the update field is set. - */ - public boolean hasUpdate() { - return updateBuilder_ != null || update_ != null; - } - /** - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The update. - */ - public com.google.container.v1beta1.ClusterUpdate getUpdate() { - if (updateBuilder_ == null) { - return update_ == null ? com.google.container.v1beta1.ClusterUpdate.getDefaultInstance() : update_; - } else { - return updateBuilder_.getMessage(); - } - } - /** - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdate(com.google.container.v1beta1.ClusterUpdate value) { - if (updateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - update_ = value; - onChanged(); - } else { - updateBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdate( - com.google.container.v1beta1.ClusterUpdate.Builder builderForValue) { - if (updateBuilder_ == null) { - update_ = builderForValue.build(); - onChanged(); - } else { - updateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeUpdate(com.google.container.v1beta1.ClusterUpdate value) { - if (updateBuilder_ == null) { - if (update_ != null) { - update_ = - com.google.container.v1beta1.ClusterUpdate.newBuilder(update_).mergeFrom(value).buildPartial(); - } else { - update_ = value; - } - onChanged(); - } else { - updateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearUpdate() { - if (updateBuilder_ == null) { - update_ = null; - onChanged(); - } else { - update_ = null; - updateBuilder_ = null; - } - - return this; - } - /** - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.container.v1beta1.ClusterUpdate.Builder getUpdateBuilder() { - - onChanged(); - return getUpdateFieldBuilder().getBuilder(); - } - /** - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.container.v1beta1.ClusterUpdateOrBuilder getUpdateOrBuilder() { - if (updateBuilder_ != null) { - return updateBuilder_.getMessageOrBuilder(); - } else { - return update_ == null ? - com.google.container.v1beta1.ClusterUpdate.getDefaultInstance() : update_; - } - } - /** - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ClusterUpdate, com.google.container.v1beta1.ClusterUpdate.Builder, com.google.container.v1beta1.ClusterUpdateOrBuilder> - getUpdateFieldBuilder() { - if (updateBuilder_ == null) { - updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ClusterUpdate, com.google.container.v1beta1.ClusterUpdate.Builder, com.google.container.v1beta1.ClusterUpdateOrBuilder>( - getUpdate(), - getParentForChildren(), - isClean()); - update_ = null; - } - return updateBuilder_; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster) of the cluster to update.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name (project, location, cluster) of the cluster to update.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name (project, location, cluster) of the cluster to update.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster) of the cluster to update.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster) of the cluster to update.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.UpdateClusterRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.UpdateClusterRequest) - private static final com.google.container.v1beta1.UpdateClusterRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.UpdateClusterRequest(); - } - - public static com.google.container.v1beta1.UpdateClusterRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index b0e9d3d07f79..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequestOrBuilder.java +++ /dev/null @@ -1,142 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface UpdateClusterRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.UpdateClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=2420 - * @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=2420 - * @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=2429 - * @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=2429 - * @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=2436 - * @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=2436 - * @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 deleted file mode 100644 index e46b39077f59..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequest.java +++ /dev/null @@ -1,1374 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * UpdateMasterRequest updates the master of the cluster.
- * 
- * - * Protobuf type {@code google.container.v1beta1.UpdateMasterRequest} - */ -public final class UpdateMasterRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.UpdateMasterRequest) - UpdateMasterRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateMasterRequest.newBuilder() to construct. - private UpdateMasterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateMasterRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - masterVersion_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateMasterRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UpdateMasterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UpdateMasterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.UpdateMasterRequest.class, com.google.container.v1beta1.UpdateMasterRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=2768 - * @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=2768 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Required. Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2777 - * @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=2777 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * Required. Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2784 - * @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=2784 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MASTER_VERSION_FIELD_NUMBER = 4; - private volatile java.lang.Object masterVersion_; - /** - *
-   * Required. The Kubernetes version to change the master to.
-   * Users may specify either explicit versions offered by
-   * Kubernetes Engine or version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the default Kubernetes version
-   * 
- * - * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The masterVersion. - */ - @java.lang.Override - public java.lang.String getMasterVersion() { - java.lang.Object ref = masterVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - masterVersion_ = s; - return s; - } - } - /** - *
-   * Required. The Kubernetes version to change the master to.
-   * Users may specify either explicit versions offered by
-   * Kubernetes Engine or version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the default Kubernetes version
-   * 
- * - * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for masterVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMasterVersionBytes() { - java.lang.Object ref = masterVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - masterVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 7; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster) of the cluster to update.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 7; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project, location, cluster) of the cluster to update.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 7; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - projectId_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - masterVersion_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UpdateMasterRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.UpdateMasterRequest getDefaultInstanceForType() { - return com.google.container.v1beta1.UpdateMasterRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.UpdateMasterRequest build() { - com.google.container.v1beta1.UpdateMasterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.UpdateMasterRequest buildPartial() { - com.google.container.v1beta1.UpdateMasterRequest result = new com.google.container.v1beta1.UpdateMasterRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.masterVersion_ = masterVersion_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.UpdateMasterRequest) { - return mergeFrom((com.google.container.v1beta1.UpdateMasterRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.UpdateMasterRequest other) { - if (other == com.google.container.v1beta1.UpdateMasterRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getMasterVersion().isEmpty()) { - masterVersion_ = other.masterVersion_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - masterVersion_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 58: { - name_ = input.readStringRequireUtf8(); - - 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 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=2768 - * @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=2768 - * @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=2768 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=2768 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=2768 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2777 - * @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=2777 - * @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=2777 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2777 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2777 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * Required. Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2784 - * @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=2784 - * @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=2784 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2784 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2784 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object masterVersion_ = ""; - /** - *
-     * Required. The Kubernetes version to change the master to.
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the default Kubernetes version
-     * 
- * - * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The masterVersion. - */ - public java.lang.String getMasterVersion() { - java.lang.Object ref = masterVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - masterVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The Kubernetes version to change the master to.
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the default Kubernetes version
-     * 
- * - * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for masterVersion. - */ - public com.google.protobuf.ByteString - getMasterVersionBytes() { - java.lang.Object ref = masterVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - masterVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The Kubernetes version to change the master to.
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the default Kubernetes version
-     * 
- * - * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param value The masterVersion to set. - * @return This builder for chaining. - */ - public Builder setMasterVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - masterVersion_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. The Kubernetes version to change the master to.
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the default Kubernetes version
-     * 
- * - * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearMasterVersion() { - - masterVersion_ = getDefaultInstance().getMasterVersion(); - onChanged(); - return this; - } - /** - *
-     * Required. The Kubernetes version to change the master to.
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the default Kubernetes version
-     * 
- * - * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for masterVersion to set. - * @return This builder for chaining. - */ - public Builder setMasterVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - masterVersion_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster) of the cluster to update.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name (project, location, cluster) of the cluster to update.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name (project, location, cluster) of the cluster to update.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster) of the cluster to update.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster) of the cluster to update.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.UpdateMasterRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.UpdateMasterRequest) - private static final com.google.container.v1beta1.UpdateMasterRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.UpdateMasterRequest(); - } - - public static com.google.container.v1beta1.UpdateMasterRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateMasterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index febfb61a1bc1..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequestOrBuilder.java +++ /dev/null @@ -1,149 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface UpdateMasterRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.UpdateMasterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=2768 - * @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=2768 - * @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=2777 - * @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=2777 - * @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=2784 - * @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=2784 - * @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 deleted file mode 100644 index 8585bf340cea..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequest.java +++ /dev/null @@ -1,5117 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * SetNodePoolVersionRequest updates the version of a node pool.
- * 
- * - * Protobuf type {@code google.container.v1beta1.UpdateNodePoolRequest} - */ -public final class UpdateNodePoolRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.UpdateNodePoolRequest) - UpdateNodePoolRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateNodePoolRequest.newBuilder() to construct. - private UpdateNodePoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateNodePoolRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - nodePoolId_ = ""; - nodeVersion_ = ""; - imageType_ = ""; - locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateNodePoolRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UpdateNodePoolRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UpdateNodePoolRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.UpdateNodePoolRequest.class, com.google.container.v1beta1.UpdateNodePoolRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=2454 - * @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=2454 - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - *
-   * Required. Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2463 - * @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=2463 - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - *
-   * Required. Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2470 - * @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=2470 - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_POOL_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object nodePoolId_; - /** - *
-   * Required. Deprecated. The name of the node pool to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2477 - * @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=2477 - * @return The bytes for nodePoolId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getNodePoolIdBytes() { - java.lang.Object ref = nodePoolId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodePoolId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_VERSION_FIELD_NUMBER = 5; - private volatile java.lang.Object nodeVersion_; - /** - *
-   * Required. The Kubernetes version to change the nodes to (typically an
-   * upgrade).
-   * Users may specify either explicit versions offered by Kubernetes Engine or
-   * version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the Kubernetes master version
-   * 
- * - * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The nodeVersion. - */ - @java.lang.Override - public java.lang.String getNodeVersion() { - java.lang.Object ref = nodeVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeVersion_ = s; - return s; - } - } - /** - *
-   * Required. The Kubernetes version to change the nodes to (typically an
-   * upgrade).
-   * Users may specify either explicit versions offered by Kubernetes Engine or
-   * version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the Kubernetes master version
-   * 
- * - * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for nodeVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNodeVersionBytes() { - java.lang.Object ref = nodeVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodeVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IMAGE_TYPE_FIELD_NUMBER = 6; - private volatile java.lang.Object imageType_; - /** - *
-   * Required. The desired image type for the node pool.
-   * 
- * - * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return The imageType. - */ - @java.lang.Override - public java.lang.String getImageType() { - java.lang.Object ref = imageType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - imageType_ = s; - return s; - } - } - /** - *
-   * Required. The desired image type for the node pool.
-   * 
- * - * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for imageType. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getImageTypeBytes() { - java.lang.Object ref = imageType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - imageType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOCATIONS_FIELD_NUMBER = 13; - private com.google.protobuf.LazyStringList locations_; - /** - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * node pool's nodes should be located. Changing the locations for a node pool
-   * will result in nodes being either created or removed from the node pool,
-   * depending on whether locations are being added or removed.
-   * 
- * - * repeated string locations = 13; - * @return A list containing the locations. - */ - public com.google.protobuf.ProtocolStringList - getLocationsList() { - return locations_; - } - /** - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * node pool's nodes should be located. Changing the locations for a node pool
-   * will result in nodes being either created or removed from the node pool,
-   * depending on whether locations are being added or removed.
-   * 
- * - * repeated string locations = 13; - * @return The count of locations. - */ - public int getLocationsCount() { - return locations_.size(); - } - /** - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * node pool's nodes should be located. Changing the locations for a node pool
-   * will result in nodes being either created or removed from the node pool,
-   * depending on whether locations are being added or removed.
-   * 
- * - * repeated string locations = 13; - * @param index The index of the element to return. - * @return The locations at the given index. - */ - public java.lang.String getLocations(int index) { - return locations_.get(index); - } - /** - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * node pool's nodes should be located. Changing the locations for a node pool
-   * will result in nodes being either created or removed from the node pool,
-   * depending on whether locations are being added or removed.
-   * 
- * - * repeated string locations = 13; - * @param index The index of the value to return. - * @return The bytes of the locations at the given index. - */ - public com.google.protobuf.ByteString - getLocationsBytes(int index) { - return locations_.getByteString(index); - } - - public static final int WORKLOAD_METADATA_CONFIG_FIELD_NUMBER = 14; - private com.google.container.v1beta1.WorkloadMetadataConfig workloadMetadataConfig_; - /** - *
-   * The desired workload metadata config for the node pool.
-   * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; - * @return Whether the workloadMetadataConfig field is set. - */ - @java.lang.Override - public boolean hasWorkloadMetadataConfig() { - return workloadMetadataConfig_ != null; - } - /** - *
-   * The desired workload metadata config for the node pool.
-   * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; - * @return The workloadMetadataConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.WorkloadMetadataConfig getWorkloadMetadataConfig() { - return workloadMetadataConfig_ == null ? com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance() : workloadMetadataConfig_; - } - /** - *
-   * The desired workload metadata config for the node pool.
-   * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - @java.lang.Override - public com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder getWorkloadMetadataConfigOrBuilder() { - return getWorkloadMetadataConfig(); - } - - public static final int NAME_FIELD_NUMBER = 8; - private volatile java.lang.Object name_; - /** - *
-   * The name (project, location, cluster, node pool) of the node pool to
-   * update. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 8; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The name (project, location, cluster, node pool) of the node pool to
-   * update. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 8; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int UPGRADE_SETTINGS_FIELD_NUMBER = 15; - private com.google.container.v1beta1.NodePool.UpgradeSettings upgradeSettings_; - /** - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; - * @return Whether the upgradeSettings field is set. - */ - @java.lang.Override - public boolean hasUpgradeSettings() { - return upgradeSettings_ != null; - } - /** - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; - * @return The upgradeSettings. - */ - @java.lang.Override - public com.google.container.v1beta1.NodePool.UpgradeSettings getUpgradeSettings() { - return upgradeSettings_ == null ? com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance() : upgradeSettings_; - } - /** - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - @java.lang.Override - public com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { - return getUpgradeSettings(); - } - - public static final int 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 tags_ != null; - } - /** - *
-   * 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 getTags(); - } - - 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 taints_ != null; - } - /** - *
-   * 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 getTaints(); - } - - 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 labels_ != null; - } - /** - *
-   * 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 getLabels(); - } - - public static final int LINUX_NODE_CONFIG_FIELD_NUMBER = 19; - private com.google.container.v1beta1.LinuxNodeConfig linuxNodeConfig_; - /** - *
-   * Parameters that can be configured on Linux nodes.
-   * 
- * - * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 19; - * @return Whether the linuxNodeConfig field is set. - */ - @java.lang.Override - public boolean hasLinuxNodeConfig() { - return linuxNodeConfig_ != null; - } - /** - *
-   * Parameters that can be configured on Linux nodes.
-   * 
- * - * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 19; - * @return The linuxNodeConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.LinuxNodeConfig getLinuxNodeConfig() { - return linuxNodeConfig_ == null ? com.google.container.v1beta1.LinuxNodeConfig.getDefaultInstance() : linuxNodeConfig_; - } - /** - *
-   * Parameters that can be configured on Linux nodes.
-   * 
- * - * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 19; - */ - @java.lang.Override - public com.google.container.v1beta1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder() { - return getLinuxNodeConfig(); - } - - public static final int KUBELET_CONFIG_FIELD_NUMBER = 20; - private com.google.container.v1beta1.NodeKubeletConfig kubeletConfig_; - /** - *
-   * Node kubelet configs.
-   * 
- * - * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; - * @return Whether the kubeletConfig field is set. - */ - @java.lang.Override - public boolean hasKubeletConfig() { - return kubeletConfig_ != null; - } - /** - *
-   * Node kubelet configs.
-   * 
- * - * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; - * @return The kubeletConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.NodeKubeletConfig getKubeletConfig() { - return kubeletConfig_ == null ? com.google.container.v1beta1.NodeKubeletConfig.getDefaultInstance() : kubeletConfig_; - } - /** - *
-   * Node kubelet configs.
-   * 
- * - * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; - */ - @java.lang.Override - public com.google.container.v1beta1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder() { - return getKubeletConfig(); - } - - 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 nodeNetworkConfig_ != null; - } - /** - *
-   * 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 getNodeNetworkConfig(); - } - - public static final int GCFS_CONFIG_FIELD_NUMBER = 22; - private com.google.container.v1beta1.GcfsConfig gcfsConfig_; - /** - *
-   * GCFS config.
-   * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 22; - * @return Whether the gcfsConfig field is set. - */ - @java.lang.Override - public boolean hasGcfsConfig() { - return gcfsConfig_ != null; - } - /** - *
-   * GCFS config.
-   * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 22; - * @return The gcfsConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.GcfsConfig getGcfsConfig() { - return gcfsConfig_ == null ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() : gcfsConfig_; - } - /** - *
-   * GCFS config.
-   * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 22; - */ - @java.lang.Override - public com.google.container.v1beta1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { - return getGcfsConfig(); - } - - public static final int 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 confidentialNodes_ != null; - } - /** - *
-   * 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 getConfidentialNodes(); - } - - 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 gvnic_ != null; - } - /** - *
-   * 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 getGvnic(); - } - - 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 loggingConfig_ != null; - } - /** - *
-   * 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 getLoggingConfig(); - } - - 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 resourceLabels_ != null; - } - /** - *
-   * 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 getResourceLabels(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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 (workloadMetadataConfig_ != null) { - output.writeMessage(14, getWorkloadMetadataConfig()); - } - if (upgradeSettings_ != null) { - output.writeMessage(15, getUpgradeSettings()); - } - if (tags_ != null) { - output.writeMessage(16, getTags()); - } - if (taints_ != null) { - output.writeMessage(17, getTaints()); - } - if (labels_ != null) { - output.writeMessage(18, getLabels()); - } - if (linuxNodeConfig_ != null) { - output.writeMessage(19, getLinuxNodeConfig()); - } - if (kubeletConfig_ != null) { - output.writeMessage(20, getKubeletConfig()); - } - if (nodeNetworkConfig_ != null) { - output.writeMessage(21, getNodeNetworkConfig()); - } - if (gcfsConfig_ != null) { - output.writeMessage(22, getGcfsConfig()); - } - if (confidentialNodes_ != null) { - output.writeMessage(23, getConfidentialNodes()); - } - if (gvnic_ != null) { - output.writeMessage(29, getGvnic()); - } - if (loggingConfig_ != null) { - output.writeMessage(32, getLoggingConfig()); - } - if (resourceLabels_ != null) { - output.writeMessage(33, getResourceLabels()); - } - getUnknownFields().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 (workloadMetadataConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getWorkloadMetadataConfig()); - } - if (upgradeSettings_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, getUpgradeSettings()); - } - if (tags_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getTags()); - } - if (taints_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getTaints()); - } - if (labels_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, getLabels()); - } - if (linuxNodeConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, getLinuxNodeConfig()); - } - if (kubeletConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, getKubeletConfig()); - } - if (nodeNetworkConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, getNodeNetworkConfig()); - } - if (gcfsConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, getGcfsConfig()); - } - if (confidentialNodes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(23, getConfidentialNodes()); - } - if (gvnic_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(29, getGvnic()); - } - if (loggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(32, getLoggingConfig()); - } - if (resourceLabels_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(33, getResourceLabels()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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 (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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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(); - } - 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(); - } - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - nodePoolId_ = ""; - - nodeVersion_ = ""; - - imageType_ = ""; - - locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (workloadMetadataConfigBuilder_ == null) { - workloadMetadataConfig_ = null; - } else { - workloadMetadataConfig_ = null; - workloadMetadataConfigBuilder_ = null; - } - name_ = ""; - - if (upgradeSettingsBuilder_ == null) { - upgradeSettings_ = null; - } else { - upgradeSettings_ = null; - upgradeSettingsBuilder_ = null; - } - if (tagsBuilder_ == null) { - tags_ = null; - } else { - tags_ = null; - tagsBuilder_ = null; - } - if (taintsBuilder_ == null) { - taints_ = null; - } else { - taints_ = null; - taintsBuilder_ = null; - } - if (labelsBuilder_ == null) { - labels_ = null; - } else { - labels_ = null; - labelsBuilder_ = null; - } - if (linuxNodeConfigBuilder_ == null) { - linuxNodeConfig_ = null; - } else { - linuxNodeConfig_ = null; - linuxNodeConfigBuilder_ = null; - } - if (kubeletConfigBuilder_ == null) { - kubeletConfig_ = null; - } else { - kubeletConfig_ = null; - kubeletConfigBuilder_ = null; - } - if (nodeNetworkConfigBuilder_ == null) { - nodeNetworkConfig_ = null; - } else { - nodeNetworkConfig_ = null; - nodeNetworkConfigBuilder_ = null; - } - if (gcfsConfigBuilder_ == null) { - gcfsConfig_ = null; - } else { - gcfsConfig_ = null; - gcfsConfigBuilder_ = null; - } - if (confidentialNodesBuilder_ == null) { - confidentialNodes_ = null; - } else { - confidentialNodes_ = null; - confidentialNodesBuilder_ = null; - } - if (gvnicBuilder_ == null) { - gvnic_ = null; - } else { - gvnic_ = null; - gvnicBuilder_ = null; - } - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - if (resourceLabelsBuilder_ == null) { - resourceLabels_ = null; - } else { - resourceLabels_ = null; - resourceLabelsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UpdateNodePoolRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.UpdateNodePoolRequest getDefaultInstanceForType() { - return com.google.container.v1beta1.UpdateNodePoolRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.UpdateNodePoolRequest build() { - com.google.container.v1beta1.UpdateNodePoolRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.UpdateNodePoolRequest buildPartial() { - com.google.container.v1beta1.UpdateNodePoolRequest result = new com.google.container.v1beta1.UpdateNodePoolRequest(this); - int from_bitField0_ = bitField0_; - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.nodePoolId_ = nodePoolId_; - result.nodeVersion_ = nodeVersion_; - result.imageType_ = imageType_; - if (((bitField0_ & 0x00000001) != 0)) { - locations_ = locations_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.locations_ = locations_; - if (workloadMetadataConfigBuilder_ == null) { - result.workloadMetadataConfig_ = workloadMetadataConfig_; - } else { - result.workloadMetadataConfig_ = workloadMetadataConfigBuilder_.build(); - } - result.name_ = name_; - if (upgradeSettingsBuilder_ == null) { - result.upgradeSettings_ = upgradeSettings_; - } else { - result.upgradeSettings_ = upgradeSettingsBuilder_.build(); - } - if (tagsBuilder_ == null) { - result.tags_ = tags_; - } else { - result.tags_ = tagsBuilder_.build(); - } - if (taintsBuilder_ == null) { - result.taints_ = taints_; - } else { - result.taints_ = taintsBuilder_.build(); - } - if (labelsBuilder_ == null) { - result.labels_ = labels_; - } else { - result.labels_ = labelsBuilder_.build(); - } - if (linuxNodeConfigBuilder_ == null) { - result.linuxNodeConfig_ = linuxNodeConfig_; - } else { - result.linuxNodeConfig_ = linuxNodeConfigBuilder_.build(); - } - if (kubeletConfigBuilder_ == null) { - result.kubeletConfig_ = kubeletConfig_; - } else { - result.kubeletConfig_ = kubeletConfigBuilder_.build(); - } - if (nodeNetworkConfigBuilder_ == null) { - result.nodeNetworkConfig_ = nodeNetworkConfig_; - } else { - result.nodeNetworkConfig_ = nodeNetworkConfigBuilder_.build(); - } - if (gcfsConfigBuilder_ == null) { - result.gcfsConfig_ = gcfsConfig_; - } else { - result.gcfsConfig_ = gcfsConfigBuilder_.build(); - } - if (confidentialNodesBuilder_ == null) { - result.confidentialNodes_ = confidentialNodes_; - } else { - result.confidentialNodes_ = confidentialNodesBuilder_.build(); - } - if (gvnicBuilder_ == null) { - result.gvnic_ = gvnic_; - } else { - result.gvnic_ = gvnicBuilder_.build(); - } - if (loggingConfigBuilder_ == null) { - result.loggingConfig_ = loggingConfig_; - } else { - result.loggingConfig_ = loggingConfigBuilder_.build(); - } - if (resourceLabelsBuilder_ == null) { - result.resourceLabels_ = resourceLabels_; - } else { - result.resourceLabels_ = resourceLabelsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.UpdateNodePoolRequest) { - return mergeFrom((com.google.container.v1beta1.UpdateNodePoolRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.UpdateNodePoolRequest other) { - if (other == com.google.container.v1beta1.UpdateNodePoolRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getNodePoolId().isEmpty()) { - nodePoolId_ = other.nodePoolId_; - onChanged(); - } - if (!other.getNodeVersion().isEmpty()) { - nodeVersion_ = other.nodeVersion_; - onChanged(); - } - if (!other.getImageType().isEmpty()) { - imageType_ = other.imageType_; - onChanged(); - } - if (!other.locations_.isEmpty()) { - if (locations_.isEmpty()) { - locations_ = other.locations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLocationsIsMutable(); - locations_.addAll(other.locations_); - } - onChanged(); - } - if (other.hasWorkloadMetadataConfig()) { - mergeWorkloadMetadataConfig(other.getWorkloadMetadataConfig()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasUpgradeSettings()) { - mergeUpgradeSettings(other.getUpgradeSettings()); - } - if (other.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.hasLoggingConfig()) { - mergeLoggingConfig(other.getLoggingConfig()); - } - if (other.hasResourceLabels()) { - mergeResourceLabels(other.getResourceLabels()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - clusterId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - nodePoolId_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - nodeVersion_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: { - imageType_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 66: { - name_ = input.readStringRequireUtf8(); - - 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); - - break; - } // case 114 - case 122: { - input.readMessage( - getUpgradeSettingsFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 122 - case 130: { - input.readMessage( - getTagsFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 130 - case 138: { - input.readMessage( - getTaintsFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 138 - case 146: { - input.readMessage( - getLabelsFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 146 - case 154: { - input.readMessage( - getLinuxNodeConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 154 - case 162: { - input.readMessage( - getKubeletConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 162 - case 170: { - input.readMessage( - getNodeNetworkConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 170 - case 178: { - input.readMessage( - getGcfsConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 178 - case 186: { - input.readMessage( - getConfidentialNodesFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 186 - case 234: { - input.readMessage( - getGvnicFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 234 - case 258: { - input.readMessage( - getLoggingConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 258 - case 266: { - input.readMessage( - getResourceLabelsFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 266 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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=2454 - * @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=2454 - * @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=2454 - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=2454 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field 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=2454 - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2463 - * @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=2463 - * @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=2463 - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2463 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2463 - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - *
-     * Required. Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2470 - * @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=2470 - * @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=2470 - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2470 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2470 - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object nodePoolId_ = ""; - /** - *
-     * Required. Deprecated. The name of the node pool to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2477 - * @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=2477 - * @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=2477 - * @param value The nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setNodePoolId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodePoolId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the node pool to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2477 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearNodePoolId() { - - nodePoolId_ = getDefaultInstance().getNodePoolId(); - onChanged(); - return this; - } - /** - *
-     * Required. Deprecated. The name of the node pool to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=2477 - * @param value The bytes for nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setNodePoolIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodePoolId_ = value; - onChanged(); - return this; - } - - private java.lang.Object nodeVersion_ = ""; - /** - *
-     * Required. The Kubernetes version to change the nodes to (typically an
-     * upgrade).
-     * Users may specify either explicit versions offered by Kubernetes Engine or
-     * version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the Kubernetes master version
-     * 
- * - * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The nodeVersion. - */ - public java.lang.String getNodeVersion() { - java.lang.Object ref = nodeVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The Kubernetes version to change the nodes to (typically an
-     * upgrade).
-     * Users may specify either explicit versions offered by Kubernetes Engine or
-     * version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the Kubernetes master version
-     * 
- * - * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for nodeVersion. - */ - public com.google.protobuf.ByteString - getNodeVersionBytes() { - java.lang.Object ref = nodeVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodeVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The Kubernetes version to change the nodes to (typically an
-     * upgrade).
-     * Users may specify either explicit versions offered by Kubernetes Engine or
-     * version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the Kubernetes master version
-     * 
- * - * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param value The nodeVersion to set. - * @return This builder for chaining. - */ - public Builder setNodeVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodeVersion_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. The Kubernetes version to change the nodes to (typically an
-     * upgrade).
-     * Users may specify either explicit versions offered by Kubernetes Engine or
-     * version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the Kubernetes master version
-     * 
- * - * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearNodeVersion() { - - nodeVersion_ = getDefaultInstance().getNodeVersion(); - onChanged(); - return this; - } - /** - *
-     * Required. The Kubernetes version to change the nodes to (typically an
-     * upgrade).
-     * Users may specify either explicit versions offered by Kubernetes Engine or
-     * version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the Kubernetes master version
-     * 
- * - * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for nodeVersion to set. - * @return This builder for chaining. - */ - public Builder setNodeVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodeVersion_ = value; - onChanged(); - return this; - } - - private java.lang.Object imageType_ = ""; - /** - *
-     * Required. The desired image type for the node pool.
-     * 
- * - * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return The imageType. - */ - public java.lang.String getImageType() { - java.lang.Object ref = imageType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - imageType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The desired image type for the node pool.
-     * 
- * - * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for imageType. - */ - public com.google.protobuf.ByteString - getImageTypeBytes() { - java.lang.Object ref = imageType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - imageType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The desired image type for the node pool.
-     * 
- * - * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param value The imageType to set. - * @return This builder for chaining. - */ - public Builder setImageType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - imageType_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. The desired image type for the node pool.
-     * 
- * - * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearImageType() { - - imageType_ = getDefaultInstance().getImageType(); - onChanged(); - return this; - } - /** - *
-     * Required. The desired image type for the node pool.
-     * 
- * - * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for imageType to set. - * @return This builder for chaining. - */ - public Builder setImageTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - imageType_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureLocationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - locations_ = new com.google.protobuf.LazyStringArrayList(locations_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * node pool's nodes should be located. Changing the locations for a node pool
-     * will result in nodes being either created or removed from the node pool,
-     * depending on whether locations are being added or removed.
-     * 
- * - * repeated string locations = 13; - * @return A list containing the locations. - */ - public com.google.protobuf.ProtocolStringList - getLocationsList() { - return locations_.getUnmodifiableView(); - } - /** - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * node pool's nodes should be located. Changing the locations for a node pool
-     * will result in nodes being either created or removed from the node pool,
-     * depending on whether locations are being added or removed.
-     * 
- * - * repeated string locations = 13; - * @return The count of locations. - */ - public int getLocationsCount() { - return locations_.size(); - } - /** - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * node pool's nodes should be located. Changing the locations for a node pool
-     * will result in nodes being either created or removed from the node pool,
-     * depending on whether locations are being added or removed.
-     * 
- * - * repeated string locations = 13; - * @param index The index of the element to return. - * @return The locations at the given index. - */ - public java.lang.String getLocations(int index) { - return locations_.get(index); - } - /** - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * node pool's nodes should be located. Changing the locations for a node pool
-     * will result in nodes being either created or removed from the node pool,
-     * depending on whether locations are being added or removed.
-     * 
- * - * repeated string locations = 13; - * @param index The index of the value to return. - * @return The bytes of the locations at the given index. - */ - public com.google.protobuf.ByteString - getLocationsBytes(int index) { - return locations_.getByteString(index); - } - /** - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * node pool's nodes should be located. Changing the locations for a node pool
-     * will result in nodes being either created or removed from the node pool,
-     * depending on whether locations are being added or removed.
-     * 
- * - * repeated string locations = 13; - * @param index The index to set the value at. - * @param value The locations to set. - * @return This builder for chaining. - */ - public Builder setLocations( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); - locations_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * node pool's nodes should be located. Changing the locations for a node pool
-     * will result in nodes being either created or removed from the node pool,
-     * depending on whether locations are being added or removed.
-     * 
- * - * repeated string locations = 13; - * @param value The locations to add. - * @return This builder for chaining. - */ - public Builder addLocations( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); - locations_.add(value); - onChanged(); - return this; - } - /** - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * node pool's nodes should be located. Changing the locations for a node pool
-     * will result in nodes being either created or removed from the node pool,
-     * depending on whether locations are being added or removed.
-     * 
- * - * repeated string locations = 13; - * @param values The locations to add. - * @return This builder for chaining. - */ - public Builder addAllLocations( - java.lang.Iterable values) { - ensureLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, locations_); - onChanged(); - return this; - } - /** - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * node pool's nodes should be located. Changing the locations for a node pool
-     * will result in nodes being either created or removed from the node pool,
-     * depending on whether locations are being added or removed.
-     * 
- * - * repeated string locations = 13; - * @return This builder for chaining. - */ - public Builder clearLocations() { - locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * node pool's nodes should be located. Changing the locations for a node pool
-     * will result in nodes being either created or removed from the node pool,
-     * depending on whether locations are being added or removed.
-     * 
- * - * repeated string locations = 13; - * @param value The bytes of the locations to add. - * @return This builder for chaining. - */ - public Builder addLocationsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureLocationsIsMutable(); - locations_.add(value); - onChanged(); - return this; - } - - private com.google.container.v1beta1.WorkloadMetadataConfig workloadMetadataConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WorkloadMetadataConfig, com.google.container.v1beta1.WorkloadMetadataConfig.Builder, com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder> workloadMetadataConfigBuilder_; - /** - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; - * @return Whether the workloadMetadataConfig field is set. - */ - public boolean hasWorkloadMetadataConfig() { - return workloadMetadataConfigBuilder_ != null || workloadMetadataConfig_ != null; - } - /** - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; - * @return The workloadMetadataConfig. - */ - public com.google.container.v1beta1.WorkloadMetadataConfig getWorkloadMetadataConfig() { - if (workloadMetadataConfigBuilder_ == null) { - return workloadMetadataConfig_ == null ? com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance() : workloadMetadataConfig_; - } else { - return workloadMetadataConfigBuilder_.getMessage(); - } - } - /** - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public Builder setWorkloadMetadataConfig(com.google.container.v1beta1.WorkloadMetadataConfig value) { - if (workloadMetadataConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workloadMetadataConfig_ = value; - onChanged(); - } else { - workloadMetadataConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public Builder setWorkloadMetadataConfig( - com.google.container.v1beta1.WorkloadMetadataConfig.Builder builderForValue) { - if (workloadMetadataConfigBuilder_ == null) { - workloadMetadataConfig_ = builderForValue.build(); - onChanged(); - } else { - workloadMetadataConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public Builder mergeWorkloadMetadataConfig(com.google.container.v1beta1.WorkloadMetadataConfig value) { - if (workloadMetadataConfigBuilder_ == null) { - if (workloadMetadataConfig_ != null) { - workloadMetadataConfig_ = - com.google.container.v1beta1.WorkloadMetadataConfig.newBuilder(workloadMetadataConfig_).mergeFrom(value).buildPartial(); - } else { - workloadMetadataConfig_ = value; - } - onChanged(); - } else { - workloadMetadataConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public Builder clearWorkloadMetadataConfig() { - if (workloadMetadataConfigBuilder_ == null) { - workloadMetadataConfig_ = null; - onChanged(); - } else { - workloadMetadataConfig_ = null; - workloadMetadataConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public com.google.container.v1beta1.WorkloadMetadataConfig.Builder getWorkloadMetadataConfigBuilder() { - - onChanged(); - return getWorkloadMetadataConfigFieldBuilder().getBuilder(); - } - /** - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder getWorkloadMetadataConfigOrBuilder() { - if (workloadMetadataConfigBuilder_ != null) { - return workloadMetadataConfigBuilder_.getMessageOrBuilder(); - } else { - return workloadMetadataConfig_ == null ? - com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance() : workloadMetadataConfig_; - } - } - /** - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WorkloadMetadataConfig, com.google.container.v1beta1.WorkloadMetadataConfig.Builder, com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder> - getWorkloadMetadataConfigFieldBuilder() { - if (workloadMetadataConfigBuilder_ == null) { - workloadMetadataConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WorkloadMetadataConfig, com.google.container.v1beta1.WorkloadMetadataConfig.Builder, com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder>( - getWorkloadMetadataConfig(), - getParentForChildren(), - isClean()); - workloadMetadataConfig_ = null; - } - return workloadMetadataConfigBuilder_; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name (project, location, cluster, node pool) of the node pool to
-     * update. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 8; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name (project, location, cluster, node pool) of the node pool to
-     * update. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 8; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name (project, location, cluster, node pool) of the node pool to
-     * update. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 8; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster, node pool) of the node pool to
-     * update. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 8; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name (project, location, cluster, node pool) of the node pool to
-     * update. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 8; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.container.v1beta1.NodePool.UpgradeSettings upgradeSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePool.UpgradeSettings, com.google.container.v1beta1.NodePool.UpgradeSettings.Builder, com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder> upgradeSettingsBuilder_; - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; - * @return Whether the upgradeSettings field is set. - */ - public boolean hasUpgradeSettings() { - return upgradeSettingsBuilder_ != null || upgradeSettings_ != null; - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; - * @return The upgradeSettings. - */ - public com.google.container.v1beta1.NodePool.UpgradeSettings getUpgradeSettings() { - if (upgradeSettingsBuilder_ == null) { - return upgradeSettings_ == null ? com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance() : upgradeSettings_; - } else { - return upgradeSettingsBuilder_.getMessage(); - } - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - public Builder setUpgradeSettings(com.google.container.v1beta1.NodePool.UpgradeSettings value) { - if (upgradeSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - upgradeSettings_ = value; - onChanged(); - } else { - upgradeSettingsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - public Builder setUpgradeSettings( - com.google.container.v1beta1.NodePool.UpgradeSettings.Builder builderForValue) { - if (upgradeSettingsBuilder_ == null) { - upgradeSettings_ = builderForValue.build(); - onChanged(); - } else { - upgradeSettingsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - public Builder mergeUpgradeSettings(com.google.container.v1beta1.NodePool.UpgradeSettings value) { - if (upgradeSettingsBuilder_ == null) { - if (upgradeSettings_ != null) { - upgradeSettings_ = - com.google.container.v1beta1.NodePool.UpgradeSettings.newBuilder(upgradeSettings_).mergeFrom(value).buildPartial(); - } else { - upgradeSettings_ = value; - } - onChanged(); - } else { - upgradeSettingsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - public Builder clearUpgradeSettings() { - if (upgradeSettingsBuilder_ == null) { - upgradeSettings_ = null; - onChanged(); - } else { - upgradeSettings_ = null; - upgradeSettingsBuilder_ = null; - } - - return this; - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - public com.google.container.v1beta1.NodePool.UpgradeSettings.Builder getUpgradeSettingsBuilder() { - - onChanged(); - return getUpgradeSettingsFieldBuilder().getBuilder(); - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - public com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { - if (upgradeSettingsBuilder_ != null) { - return upgradeSettingsBuilder_.getMessageOrBuilder(); - } else { - return upgradeSettings_ == null ? - com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance() : upgradeSettings_; - } - } - /** - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePool.UpgradeSettings, com.google.container.v1beta1.NodePool.UpgradeSettings.Builder, com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder> - getUpgradeSettingsFieldBuilder() { - if (upgradeSettingsBuilder_ == null) { - upgradeSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePool.UpgradeSettings, com.google.container.v1beta1.NodePool.UpgradeSettings.Builder, com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder>( - getUpgradeSettings(), - getParentForChildren(), - isClean()); - upgradeSettings_ = null; - } - return upgradeSettingsBuilder_; - } - - private com.google.container.v1beta1.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 tagsBuilder_ != null || tags_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - tagsBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - tagsBuilder_.setMessage(builderForValue.build()); - } - - 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 (tags_ != null) { - tags_ = - com.google.container.v1beta1.NetworkTags.newBuilder(tags_).mergeFrom(value).buildPartial(); - } else { - tags_ = value; - } - onChanged(); - } else { - tagsBuilder_.mergeFrom(value); - } - - 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() { - if (tagsBuilder_ == null) { - tags_ = null; - onChanged(); - } else { - tags_ = null; - tagsBuilder_ = null; - } - - 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() { - - 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 taintsBuilder_ != null || taints_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - taintsBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - taintsBuilder_.setMessage(builderForValue.build()); - } - - 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 (taints_ != null) { - taints_ = - com.google.container.v1beta1.NodeTaints.newBuilder(taints_).mergeFrom(value).buildPartial(); - } else { - taints_ = value; - } - onChanged(); - } else { - taintsBuilder_.mergeFrom(value); - } - - 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() { - if (taintsBuilder_ == null) { - taints_ = null; - onChanged(); - } else { - taints_ = null; - taintsBuilder_ = null; - } - - 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() { - - 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 labelsBuilder_ != null || labels_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - labelsBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - labelsBuilder_.setMessage(builderForValue.build()); - } - - 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 (labels_ != null) { - labels_ = - com.google.container.v1beta1.NodeLabels.newBuilder(labels_).mergeFrom(value).buildPartial(); - } else { - labels_ = value; - } - onChanged(); - } else { - labelsBuilder_.mergeFrom(value); - } - - 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() { - if (labelsBuilder_ == null) { - labels_ = null; - onChanged(); - } else { - labels_ = null; - labelsBuilder_ = null; - } - - 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() { - - 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 linuxNodeConfigBuilder_ != null || linuxNodeConfig_ != null; - } - /** - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 19; - * @return The linuxNodeConfig. - */ - public com.google.container.v1beta1.LinuxNodeConfig getLinuxNodeConfig() { - if (linuxNodeConfigBuilder_ == null) { - return linuxNodeConfig_ == null ? com.google.container.v1beta1.LinuxNodeConfig.getDefaultInstance() : linuxNodeConfig_; - } else { - return linuxNodeConfigBuilder_.getMessage(); - } - } - /** - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 19; - */ - public Builder setLinuxNodeConfig(com.google.container.v1beta1.LinuxNodeConfig value) { - if (linuxNodeConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - linuxNodeConfig_ = value; - onChanged(); - } else { - linuxNodeConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 19; - */ - public Builder setLinuxNodeConfig( - com.google.container.v1beta1.LinuxNodeConfig.Builder builderForValue) { - if (linuxNodeConfigBuilder_ == null) { - linuxNodeConfig_ = builderForValue.build(); - onChanged(); - } else { - linuxNodeConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 19; - */ - public Builder mergeLinuxNodeConfig(com.google.container.v1beta1.LinuxNodeConfig value) { - if (linuxNodeConfigBuilder_ == null) { - if (linuxNodeConfig_ != null) { - linuxNodeConfig_ = - com.google.container.v1beta1.LinuxNodeConfig.newBuilder(linuxNodeConfig_).mergeFrom(value).buildPartial(); - } else { - linuxNodeConfig_ = value; - } - onChanged(); - } else { - linuxNodeConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 19; - */ - public Builder clearLinuxNodeConfig() { - if (linuxNodeConfigBuilder_ == null) { - linuxNodeConfig_ = null; - onChanged(); - } else { - linuxNodeConfig_ = null; - linuxNodeConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 19; - */ - public com.google.container.v1beta1.LinuxNodeConfig.Builder getLinuxNodeConfigBuilder() { - - onChanged(); - return getLinuxNodeConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 19; - */ - public com.google.container.v1beta1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder() { - if (linuxNodeConfigBuilder_ != null) { - return linuxNodeConfigBuilder_.getMessageOrBuilder(); - } else { - return linuxNodeConfig_ == null ? - com.google.container.v1beta1.LinuxNodeConfig.getDefaultInstance() : linuxNodeConfig_; - } - } - /** - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 19; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.LinuxNodeConfig, com.google.container.v1beta1.LinuxNodeConfig.Builder, com.google.container.v1beta1.LinuxNodeConfigOrBuilder> - getLinuxNodeConfigFieldBuilder() { - if (linuxNodeConfigBuilder_ == null) { - linuxNodeConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.LinuxNodeConfig, com.google.container.v1beta1.LinuxNodeConfig.Builder, com.google.container.v1beta1.LinuxNodeConfigOrBuilder>( - getLinuxNodeConfig(), - getParentForChildren(), - isClean()); - linuxNodeConfig_ = null; - } - return linuxNodeConfigBuilder_; - } - - private com.google.container.v1beta1.NodeKubeletConfig kubeletConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeKubeletConfig, com.google.container.v1beta1.NodeKubeletConfig.Builder, com.google.container.v1beta1.NodeKubeletConfigOrBuilder> kubeletConfigBuilder_; - /** - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; - * @return Whether the kubeletConfig field is set. - */ - public boolean hasKubeletConfig() { - return kubeletConfigBuilder_ != null || kubeletConfig_ != null; - } - /** - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; - * @return The kubeletConfig. - */ - public com.google.container.v1beta1.NodeKubeletConfig getKubeletConfig() { - if (kubeletConfigBuilder_ == null) { - return kubeletConfig_ == null ? com.google.container.v1beta1.NodeKubeletConfig.getDefaultInstance() : kubeletConfig_; - } else { - return kubeletConfigBuilder_.getMessage(); - } - } - /** - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; - */ - public Builder setKubeletConfig(com.google.container.v1beta1.NodeKubeletConfig value) { - if (kubeletConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kubeletConfig_ = value; - onChanged(); - } else { - kubeletConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; - */ - public Builder setKubeletConfig( - com.google.container.v1beta1.NodeKubeletConfig.Builder builderForValue) { - if (kubeletConfigBuilder_ == null) { - kubeletConfig_ = builderForValue.build(); - onChanged(); - } else { - kubeletConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; - */ - public Builder mergeKubeletConfig(com.google.container.v1beta1.NodeKubeletConfig value) { - if (kubeletConfigBuilder_ == null) { - if (kubeletConfig_ != null) { - kubeletConfig_ = - com.google.container.v1beta1.NodeKubeletConfig.newBuilder(kubeletConfig_).mergeFrom(value).buildPartial(); - } else { - kubeletConfig_ = value; - } - onChanged(); - } else { - kubeletConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; - */ - public Builder clearKubeletConfig() { - if (kubeletConfigBuilder_ == null) { - kubeletConfig_ = null; - onChanged(); - } else { - kubeletConfig_ = null; - kubeletConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; - */ - public com.google.container.v1beta1.NodeKubeletConfig.Builder getKubeletConfigBuilder() { - - onChanged(); - return getKubeletConfigFieldBuilder().getBuilder(); - } - /** - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; - */ - public com.google.container.v1beta1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder() { - if (kubeletConfigBuilder_ != null) { - return kubeletConfigBuilder_.getMessageOrBuilder(); - } else { - return kubeletConfig_ == null ? - com.google.container.v1beta1.NodeKubeletConfig.getDefaultInstance() : kubeletConfig_; - } - } - /** - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeKubeletConfig, com.google.container.v1beta1.NodeKubeletConfig.Builder, com.google.container.v1beta1.NodeKubeletConfigOrBuilder> - getKubeletConfigFieldBuilder() { - if (kubeletConfigBuilder_ == null) { - kubeletConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeKubeletConfig, com.google.container.v1beta1.NodeKubeletConfig.Builder, com.google.container.v1beta1.NodeKubeletConfigOrBuilder>( - getKubeletConfig(), - getParentForChildren(), - isClean()); - kubeletConfig_ = null; - } - return kubeletConfigBuilder_; - } - - 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 nodeNetworkConfigBuilder_ != null || nodeNetworkConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - nodeNetworkConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - nodeNetworkConfigBuilder_.setMessage(builderForValue.build()); - } - - 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 (nodeNetworkConfig_ != null) { - nodeNetworkConfig_ = - com.google.container.v1beta1.NodeNetworkConfig.newBuilder(nodeNetworkConfig_).mergeFrom(value).buildPartial(); - } else { - nodeNetworkConfig_ = value; - } - onChanged(); - } else { - nodeNetworkConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Node network config.
-     * 
- * - * .google.container.v1beta1.NodeNetworkConfig node_network_config = 21; - */ - public Builder clearNodeNetworkConfig() { - if (nodeNetworkConfigBuilder_ == null) { - nodeNetworkConfig_ = null; - onChanged(); - } else { - nodeNetworkConfig_ = null; - nodeNetworkConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Node network config.
-     * 
- * - * .google.container.v1beta1.NodeNetworkConfig node_network_config = 21; - */ - public com.google.container.v1beta1.NodeNetworkConfig.Builder getNodeNetworkConfigBuilder() { - - 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 gcfsConfigBuilder_ != null || gcfsConfig_ != null; - } - /** - *
-     * GCFS config.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 22; - * @return The gcfsConfig. - */ - public com.google.container.v1beta1.GcfsConfig getGcfsConfig() { - if (gcfsConfigBuilder_ == null) { - return gcfsConfig_ == null ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() : gcfsConfig_; - } else { - return gcfsConfigBuilder_.getMessage(); - } - } - /** - *
-     * GCFS config.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 22; - */ - public Builder setGcfsConfig(com.google.container.v1beta1.GcfsConfig value) { - if (gcfsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gcfsConfig_ = value; - onChanged(); - } else { - gcfsConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * GCFS config.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 22; - */ - public Builder setGcfsConfig( - com.google.container.v1beta1.GcfsConfig.Builder builderForValue) { - if (gcfsConfigBuilder_ == null) { - gcfsConfig_ = builderForValue.build(); - onChanged(); - } else { - gcfsConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * GCFS config.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 22; - */ - public Builder mergeGcfsConfig(com.google.container.v1beta1.GcfsConfig value) { - if (gcfsConfigBuilder_ == null) { - if (gcfsConfig_ != null) { - gcfsConfig_ = - com.google.container.v1beta1.GcfsConfig.newBuilder(gcfsConfig_).mergeFrom(value).buildPartial(); - } else { - gcfsConfig_ = value; - } - onChanged(); - } else { - gcfsConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * GCFS config.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 22; - */ - public Builder clearGcfsConfig() { - if (gcfsConfigBuilder_ == null) { - gcfsConfig_ = null; - onChanged(); - } else { - gcfsConfig_ = null; - gcfsConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * GCFS config.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 22; - */ - public com.google.container.v1beta1.GcfsConfig.Builder getGcfsConfigBuilder() { - - onChanged(); - return getGcfsConfigFieldBuilder().getBuilder(); - } - /** - *
-     * GCFS config.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 22; - */ - public com.google.container.v1beta1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { - if (gcfsConfigBuilder_ != null) { - return gcfsConfigBuilder_.getMessageOrBuilder(); - } else { - return gcfsConfig_ == null ? - com.google.container.v1beta1.GcfsConfig.getDefaultInstance() : gcfsConfig_; - } - } - /** - *
-     * GCFS config.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 22; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GcfsConfig, com.google.container.v1beta1.GcfsConfig.Builder, com.google.container.v1beta1.GcfsConfigOrBuilder> - getGcfsConfigFieldBuilder() { - if (gcfsConfigBuilder_ == null) { - gcfsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GcfsConfig, com.google.container.v1beta1.GcfsConfig.Builder, com.google.container.v1beta1.GcfsConfigOrBuilder>( - getGcfsConfig(), - getParentForChildren(), - isClean()); - gcfsConfig_ = null; - } - return gcfsConfigBuilder_; - } - - private com.google.container.v1beta1.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 confidentialNodesBuilder_ != null || confidentialNodes_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - confidentialNodesBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - confidentialNodesBuilder_.setMessage(builderForValue.build()); - } - - 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 (confidentialNodes_ != null) { - confidentialNodes_ = - com.google.container.v1beta1.ConfidentialNodes.newBuilder(confidentialNodes_).mergeFrom(value).buildPartial(); - } else { - confidentialNodes_ = value; - } - onChanged(); - } else { - confidentialNodesBuilder_.mergeFrom(value); - } - - 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() { - if (confidentialNodesBuilder_ == null) { - confidentialNodes_ = null; - onChanged(); - } else { - confidentialNodes_ = null; - confidentialNodesBuilder_ = null; - } - - 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() { - - 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 gvnicBuilder_ != null || gvnic_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - gvnicBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - gvnicBuilder_.setMessage(builderForValue.build()); - } - - 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 (gvnic_ != null) { - gvnic_ = - com.google.container.v1beta1.VirtualNIC.newBuilder(gvnic_).mergeFrom(value).buildPartial(); - } else { - gvnic_ = value; - } - onChanged(); - } else { - gvnicBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1beta1.VirtualNIC gvnic = 29; - */ - public Builder clearGvnic() { - if (gvnicBuilder_ == null) { - gvnic_ = null; - onChanged(); - } else { - gvnic_ = null; - gvnicBuilder_ = null; - } - - return this; - } - /** - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1beta1.VirtualNIC gvnic = 29; - */ - public com.google.container.v1beta1.VirtualNIC.Builder getGvnicBuilder() { - - 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 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 loggingConfigBuilder_ != null || loggingConfig_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - loggingConfigBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - loggingConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 32; - */ - public Builder mergeLoggingConfig(com.google.container.v1beta1.NodePoolLoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (loggingConfig_ != null) { - loggingConfig_ = - com.google.container.v1beta1.NodePoolLoggingConfig.newBuilder(loggingConfig_).mergeFrom(value).buildPartial(); - } else { - loggingConfig_ = value; - } - onChanged(); - } else { - loggingConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 32; - */ - public Builder clearLoggingConfig() { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - onChanged(); - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 32; - */ - public com.google.container.v1beta1.NodePoolLoggingConfig.Builder getLoggingConfigBuilder() { - - 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 resourceLabelsBuilder_ != null || resourceLabels_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - resourceLabelsBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - resourceLabelsBuilder_.setMessage(builderForValue.build()); - } - - 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 (resourceLabels_ != null) { - resourceLabels_ = - com.google.container.v1beta1.ResourceLabels.newBuilder(resourceLabels_).mergeFrom(value).buildPartial(); - } else { - resourceLabels_ = value; - } - onChanged(); - } else { - resourceLabelsBuilder_.mergeFrom(value); - } - - 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() { - if (resourceLabelsBuilder_ == null) { - resourceLabels_ = null; - onChanged(); - } else { - resourceLabels_ = null; - resourceLabelsBuilder_ = null; - } - - 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() { - - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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 deleted file mode 100644 index 7f824ac1d05a..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequestOrBuilder.java +++ /dev/null @@ -1,631 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface UpdateNodePoolRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.UpdateNodePoolRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field 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=2454 - * @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=2454 - * @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=2463 - * @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=2463 - * @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=2470 - * @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=2470 - * @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=2477 - * @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=2477 - * @return The bytes for nodePoolId. - */ - @java.lang.Deprecated com.google.protobuf.ByteString - getNodePoolIdBytes(); - - /** - *
-   * Required. The Kubernetes version to change the nodes to (typically an
-   * upgrade).
-   * Users may specify either explicit versions offered by Kubernetes Engine or
-   * version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the Kubernetes master version
-   * 
- * - * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The nodeVersion. - */ - java.lang.String getNodeVersion(); - /** - *
-   * Required. The Kubernetes version to change the nodes to (typically an
-   * upgrade).
-   * Users may specify either explicit versions offered by Kubernetes Engine or
-   * version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the Kubernetes master version
-   * 
- * - * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for nodeVersion. - */ - com.google.protobuf.ByteString - getNodeVersionBytes(); - - /** - *
-   * Required. The desired image type for the node pool.
-   * 
- * - * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return The imageType. - */ - java.lang.String getImageType(); - /** - *
-   * Required. The desired image type for the node pool.
-   * 
- * - * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for imageType. - */ - com.google.protobuf.ByteString - getImageTypeBytes(); - - /** - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * node pool's nodes should be located. Changing the locations for a node pool
-   * will result in nodes being either created or removed from the node pool,
-   * depending on whether locations are being added or removed.
-   * 
- * - * repeated string locations = 13; - * @return A list containing the locations. - */ - java.util.List - getLocationsList(); - /** - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * node pool's nodes should be located. Changing the locations for a node pool
-   * will result in nodes being either created or removed from the node pool,
-   * depending on whether locations are being added or removed.
-   * 
- * - * repeated string locations = 13; - * @return The count of locations. - */ - int getLocationsCount(); - /** - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * node pool's nodes should be located. Changing the locations for a node pool
-   * will result in nodes being either created or removed from the node pool,
-   * depending on whether locations are being added or removed.
-   * 
- * - * repeated string locations = 13; - * @param index The index of the element to return. - * @return The locations at the given index. - */ - java.lang.String getLocations(int index); - /** - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * node pool's nodes should be located. Changing the locations for a node pool
-   * will result in nodes being either created or removed from the node pool,
-   * depending on whether locations are being added or removed.
-   * 
- * - * repeated string locations = 13; - * @param index The index of the value to return. - * @return The bytes of the locations at the given index. - */ - com.google.protobuf.ByteString - getLocationsBytes(int index); - - /** - *
-   * The desired workload metadata config for the node pool.
-   * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; - * @return Whether the workloadMetadataConfig field is set. - */ - boolean hasWorkloadMetadataConfig(); - /** - *
-   * The desired workload metadata config for the node pool.
-   * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; - * @return The workloadMetadataConfig. - */ - com.google.container.v1beta1.WorkloadMetadataConfig getWorkloadMetadataConfig(); - /** - *
-   * The desired workload metadata config for the node pool.
-   * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder getWorkloadMetadataConfigOrBuilder(); - - /** - *
-   * The name (project, location, cluster, node pool) of the node pool to
-   * update. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 8; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * The name (project, location, cluster, node pool) of the node pool to
-   * update. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 8; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; - * @return Whether the upgradeSettings field is set. - */ - boolean hasUpgradeSettings(); - /** - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; - * @return The upgradeSettings. - */ - com.google.container.v1beta1.NodePool.UpgradeSettings getUpgradeSettings(); - /** - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder(); - - /** - *
-   * 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(); - - /** - *
-   * 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(); -} 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 deleted file mode 100644 index 3642e9ecfe02..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeAvailableEvent.java +++ /dev/null @@ -1,1343 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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); - } - - public static final int VERSION_FIELD_NUMBER = 1; - private volatile java.lang.Object version_; - /** - *
-   * The release version available for upgrade.
-   * 
- * - * string version = 1; - * @return The version. - */ - @java.lang.Override - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } - } - /** - *
-   * The release version available for upgrade.
-   * 
- * - * string version = 1; - * @return The bytes for version. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 2; - private int resourceType_; - /** - *
-   * The resource type of the release version.
-   * 
- * - * .google.container.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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.UpgradeResourceType result = com.google.container.v1beta1.UpgradeResourceType.valueOf(resourceType_); - return result == null ? com.google.container.v1beta1.UpgradeResourceType.UNRECOGNIZED : result; - } - - public static final int 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 releaseChannel_ != null; - } - /** - *
-   * 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 getReleaseChannel(); - } - - public static final int RESOURCE_FIELD_NUMBER = 4; - private volatile java.lang.Object resource_; - /** - *
-   * Optional relative path to the resource. For example, the relative path of
-   * the node pool.
-   * 
- * - * string resource = 4; - * @return The resource. - */ - @java.lang.Override - public java.lang.String getResource() { - java.lang.Object ref = resource_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resource_ = s; - return s; - } - } - /** - *
-   * Optional relative path to the resource. For example, the relative path of
-   * the node pool.
-   * 
- * - * string resource = 4; - * @return The bytes for resource. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getResourceBytes() { - java.lang.Object ref = resource_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 windowsVersions_ != null; - } - /** - *
-   * 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 getWindowsVersions(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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 (releaseChannel_ != null) { - output.writeMessage(3, getReleaseChannel()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, resource_); - } - if (windowsVersions_ != null) { - 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 (releaseChannel_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getReleaseChannel()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, resource_); - } - if (windowsVersions_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - version_ = ""; - - resourceType_ = 0; - - if (releaseChannelBuilder_ == null) { - releaseChannel_ = null; - } else { - releaseChannel_ = null; - releaseChannelBuilder_ = null; - } - resource_ = ""; - - if (windowsVersionsBuilder_ == null) { - windowsVersions_ = null; - } else { - windowsVersions_ = null; - 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); - result.version_ = version_; - result.resourceType_ = resourceType_; - if (releaseChannelBuilder_ == null) { - result.releaseChannel_ = releaseChannel_; - } else { - result.releaseChannel_ = releaseChannelBuilder_.build(); - } - result.resource_ = resource_; - if (windowsVersionsBuilder_ == null) { - result.windowsVersions_ = windowsVersions_; - } else { - result.windowsVersions_ = windowsVersionsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.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_; - onChanged(); - } - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - if (other.hasReleaseChannel()) { - mergeReleaseChannel(other.getReleaseChannel()); - } - if (!other.getResource().isEmpty()) { - resource_ = other.resource_; - 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(); - - break; - } // case 10 - case 16: { - resourceType_ = input.readEnum(); - - break; - } // case 16 - case 26: { - input.readMessage( - getReleaseChannelFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 26 - case 34: { - resource_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - input.readMessage( - getWindowsVersionsFieldBuilder().getBuilder(), - extensionRegistry); - - 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 java.lang.Object version_ = ""; - /** - *
-     * The release version available for upgrade.
-     * 
- * - * string version = 1; - * @return The version. - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The release version available for upgrade.
-     * 
- * - * string version = 1; - * @return The bytes for version. - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The release version available for upgrade.
-     * 
- * - * string version = 1; - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - version_ = value; - onChanged(); - return this; - } - /** - *
-     * The release version available for upgrade.
-     * 
- * - * string version = 1; - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - *
-     * The release version available for upgrade.
-     * 
- * - * string version = 1; - * @param value The bytes for version to set. - * @return This builder for chaining. - */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - version_ = value; - onChanged(); - return this; - } - - private int resourceType_ = 0; - /** - *
-     * The resource type of the release version.
-     * 
- * - * .google.container.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; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.UpgradeResourceType result = com.google.container.v1beta1.UpgradeResourceType.valueOf(resourceType_); - return result == null ? com.google.container.v1beta1.UpgradeResourceType.UNRECOGNIZED : result; - } - /** - *
-     * 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(); - } - - 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() { - - 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 releaseChannelBuilder_ != null || releaseChannel_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - releaseChannelBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - releaseChannelBuilder_.setMessage(builderForValue.build()); - } - - 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 (releaseChannel_ != null) { - releaseChannel_ = - com.google.container.v1beta1.ReleaseChannel.newBuilder(releaseChannel_).mergeFrom(value).buildPartial(); - } else { - releaseChannel_ = value; - } - onChanged(); - } else { - releaseChannelBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The release channel of the version. If empty, it means a non-channel
-     * release.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 3; - */ - public Builder clearReleaseChannel() { - if (releaseChannelBuilder_ == null) { - releaseChannel_ = null; - onChanged(); - } else { - releaseChannel_ = null; - releaseChannelBuilder_ = null; - } - - return this; - } - /** - *
-     * The release channel of the version. If empty, it means a non-channel
-     * release.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 3; - */ - public com.google.container.v1beta1.ReleaseChannel.Builder getReleaseChannelBuilder() { - - 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; - onChanged(); - return this; - } - /** - *
-     * Optional relative path to the resource. For example, the relative path of
-     * the node pool.
-     * 
- * - * string resource = 4; - * @return This builder for chaining. - */ - public Builder clearResource() { - - resource_ = getDefaultInstance().getResource(); - onChanged(); - return this; - } - /** - *
-     * Optional relative path to the resource. For example, the relative path of
-     * the node pool.
-     * 
- * - * string resource = 4; - * @param value The bytes for resource to set. - * @return This builder for chaining. - */ - public Builder setResourceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - resource_ = value; - onChanged(); - return this; - } - - 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 windowsVersionsBuilder_ != null || windowsVersions_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - windowsVersionsBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - windowsVersionsBuilder_.setMessage(builderForValue.build()); - } - - 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 (windowsVersions_ != null) { - windowsVersions_ = - com.google.container.v1beta1.WindowsVersions.newBuilder(windowsVersions_).mergeFrom(value).buildPartial(); - } else { - windowsVersions_ = value; - } - onChanged(); - } else { - windowsVersionsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Windows node versions info.
-     * 
- * - * .google.container.v1beta1.WindowsVersions windows_versions = 5; - */ - public Builder clearWindowsVersions() { - if (windowsVersionsBuilder_ == null) { - windowsVersions_ = null; - onChanged(); - } else { - windowsVersions_ = null; - windowsVersionsBuilder_ = null; - } - - return this; - } - /** - *
-     * Windows node versions info.
-     * 
- * - * .google.container.v1beta1.WindowsVersions windows_versions = 5; - */ - public com.google.container.v1beta1.WindowsVersions.Builder getWindowsVersionsBuilder() { - - 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 deleted file mode 100644 index d82a31892276..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeAvailableEventOrBuilder.java +++ /dev/null @@ -1,127 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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 deleted file mode 100644 index b2d42dc7d09f..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeEvent.java +++ /dev/null @@ -1,1431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * UpgradeEvent is a notification sent to customers by the cluster server when
- * a resource is upgrading.
- * 
- * - * Protobuf type {@code google.container.v1beta1.UpgradeEvent} - */ -public final class UpgradeEvent extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.UpgradeEvent) - UpgradeEventOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpgradeEvent.newBuilder() to construct. - private UpgradeEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpgradeEvent() { - resourceType_ = 0; - operation_ = ""; - currentVersion_ = ""; - targetVersion_ = ""; - resource_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpgradeEvent(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UpgradeEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UpgradeEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.UpgradeEvent.class, com.google.container.v1beta1.UpgradeEvent.Builder.class); - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; - private int resourceType_; - /** - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.UpgradeResourceType result = com.google.container.v1beta1.UpgradeResourceType.valueOf(resourceType_); - return result == null ? com.google.container.v1beta1.UpgradeResourceType.UNRECOGNIZED : result; - } - - public static final int OPERATION_FIELD_NUMBER = 2; - private volatile java.lang.Object operation_; - /** - *
-   * The operation associated with this upgrade.
-   * 
- * - * string operation = 2; - * @return The operation. - */ - @java.lang.Override - public java.lang.String getOperation() { - java.lang.Object ref = operation_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - operation_ = s; - return s; - } - } - /** - *
-   * The operation associated with this upgrade.
-   * 
- * - * string operation = 2; - * @return The bytes for operation. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getOperationBytes() { - java.lang.Object ref = operation_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - operation_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OPERATION_START_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp operationStartTime_; - /** - *
-   * The time when the operation was started.
-   * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - * @return Whether the operationStartTime field is set. - */ - @java.lang.Override - public boolean hasOperationStartTime() { - return operationStartTime_ != null; - } - /** - *
-   * The time when the operation was started.
-   * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - * @return The operationStartTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getOperationStartTime() { - return operationStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : operationStartTime_; - } - /** - *
-   * The time when the operation was started.
-   * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getOperationStartTimeOrBuilder() { - return getOperationStartTime(); - } - - public static final int CURRENT_VERSION_FIELD_NUMBER = 4; - private volatile java.lang.Object currentVersion_; - /** - *
-   * The current version before the upgrade.
-   * 
- * - * string current_version = 4; - * @return The currentVersion. - */ - @java.lang.Override - public java.lang.String getCurrentVersion() { - java.lang.Object ref = currentVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currentVersion_ = s; - return s; - } - } - /** - *
-   * The current version before the upgrade.
-   * 
- * - * string current_version = 4; - * @return The bytes for currentVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCurrentVersionBytes() { - java.lang.Object ref = currentVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - currentVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TARGET_VERSION_FIELD_NUMBER = 5; - private volatile java.lang.Object targetVersion_; - /** - *
-   * The target version for the upgrade.
-   * 
- * - * string target_version = 5; - * @return The targetVersion. - */ - @java.lang.Override - public java.lang.String getTargetVersion() { - java.lang.Object ref = targetVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetVersion_ = s; - return s; - } - } - /** - *
-   * The target version for the upgrade.
-   * 
- * - * string target_version = 5; - * @return The bytes for targetVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTargetVersionBytes() { - java.lang.Object ref = targetVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - targetVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESOURCE_FIELD_NUMBER = 6; - private volatile java.lang.Object resource_; - /** - *
-   * Optional relative path to the resource. For example in node pool upgrades,
-   * the relative path of the node pool.
-   * 
- * - * string resource = 6; - * @return The resource. - */ - @java.lang.Override - public java.lang.String getResource() { - java.lang.Object ref = resource_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resource_ = s; - return s; - } - } - /** - *
-   * Optional relative path to the resource. For example in node pool upgrades,
-   * the relative path of the node pool.
-   * 
- * - * string resource = 6; - * @return The bytes for resource. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getResourceBytes() { - java.lang.Object ref = resource_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (resourceType_ != com.google.container.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 (operationStartTime_ != null) { - output.writeMessage(3, getOperationStartTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, currentVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, targetVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, resource_); - } - 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 (operationStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getOperationStartTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, currentVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, targetVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, resource_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - resourceType_ = 0; - - operation_ = ""; - - if (operationStartTimeBuilder_ == null) { - operationStartTime_ = null; - } else { - operationStartTime_ = null; - operationStartTimeBuilder_ = null; - } - currentVersion_ = ""; - - targetVersion_ = ""; - - resource_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UpgradeEvent_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.UpgradeEvent getDefaultInstanceForType() { - return com.google.container.v1beta1.UpgradeEvent.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.UpgradeEvent build() { - com.google.container.v1beta1.UpgradeEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.UpgradeEvent buildPartial() { - com.google.container.v1beta1.UpgradeEvent result = new com.google.container.v1beta1.UpgradeEvent(this); - result.resourceType_ = resourceType_; - result.operation_ = operation_; - if (operationStartTimeBuilder_ == null) { - result.operationStartTime_ = operationStartTime_; - } else { - result.operationStartTime_ = operationStartTimeBuilder_.build(); - } - result.currentVersion_ = currentVersion_; - result.targetVersion_ = targetVersion_; - result.resource_ = resource_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.UpgradeEvent) { - return mergeFrom((com.google.container.v1beta1.UpgradeEvent)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.UpgradeEvent other) { - if (other == com.google.container.v1beta1.UpgradeEvent.getDefaultInstance()) return this; - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - if (!other.getOperation().isEmpty()) { - operation_ = other.operation_; - onChanged(); - } - if (other.hasOperationStartTime()) { - mergeOperationStartTime(other.getOperationStartTime()); - } - if (!other.getCurrentVersion().isEmpty()) { - currentVersion_ = other.currentVersion_; - onChanged(); - } - if (!other.getTargetVersion().isEmpty()) { - targetVersion_ = other.targetVersion_; - onChanged(); - } - if (!other.getResource().isEmpty()) { - resource_ = other.resource_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 8 - case 18: { - operation_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - input.readMessage( - getOperationStartTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 26 - case 34: { - currentVersion_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - targetVersion_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: { - resource_ = input.readStringRequireUtf8(); - - 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 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; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.UpgradeResourceType result = com.google.container.v1beta1.UpgradeResourceType.valueOf(resourceType_); - return result == null ? com.google.container.v1beta1.UpgradeResourceType.UNRECOGNIZED : result; - } - /** - *
-     * 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(); - } - - 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() { - - resourceType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object operation_ = ""; - /** - *
-     * The operation associated with this upgrade.
-     * 
- * - * string operation = 2; - * @return The operation. - */ - public java.lang.String getOperation() { - java.lang.Object ref = operation_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - operation_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The operation associated with this upgrade.
-     * 
- * - * string operation = 2; - * @return The bytes for operation. - */ - public com.google.protobuf.ByteString - getOperationBytes() { - java.lang.Object ref = operation_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - operation_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The operation associated with this upgrade.
-     * 
- * - * string operation = 2; - * @param value The operation to set. - * @return This builder for chaining. - */ - public Builder setOperation( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - operation_ = value; - onChanged(); - return this; - } - /** - *
-     * The operation associated with this upgrade.
-     * 
- * - * string operation = 2; - * @return This builder for chaining. - */ - public Builder clearOperation() { - - operation_ = getDefaultInstance().getOperation(); - onChanged(); - return this; - } - /** - *
-     * The operation associated with this upgrade.
-     * 
- * - * string operation = 2; - * @param value The bytes for operation to set. - * @return This builder for chaining. - */ - public Builder setOperationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - operation_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp operationStartTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> operationStartTimeBuilder_; - /** - *
-     * The time when the operation was started.
-     * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - * @return Whether the operationStartTime field is set. - */ - public boolean hasOperationStartTime() { - return operationStartTimeBuilder_ != null || operationStartTime_ != null; - } - /** - *
-     * The time when the operation was started.
-     * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - * @return The operationStartTime. - */ - public com.google.protobuf.Timestamp getOperationStartTime() { - if (operationStartTimeBuilder_ == null) { - return operationStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : operationStartTime_; - } else { - return operationStartTimeBuilder_.getMessage(); - } - } - /** - *
-     * The time when the operation was started.
-     * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - */ - public Builder setOperationStartTime(com.google.protobuf.Timestamp value) { - if (operationStartTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - operationStartTime_ = value; - onChanged(); - } else { - operationStartTimeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The time when the operation was started.
-     * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - */ - public Builder setOperationStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (operationStartTimeBuilder_ == null) { - operationStartTime_ = builderForValue.build(); - onChanged(); - } else { - operationStartTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The time when the operation was started.
-     * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - */ - public Builder mergeOperationStartTime(com.google.protobuf.Timestamp value) { - if (operationStartTimeBuilder_ == null) { - if (operationStartTime_ != null) { - operationStartTime_ = - com.google.protobuf.Timestamp.newBuilder(operationStartTime_).mergeFrom(value).buildPartial(); - } else { - operationStartTime_ = value; - } - onChanged(); - } else { - operationStartTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The time when the operation was started.
-     * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - */ - public Builder clearOperationStartTime() { - if (operationStartTimeBuilder_ == null) { - operationStartTime_ = null; - onChanged(); - } else { - operationStartTime_ = null; - operationStartTimeBuilder_ = null; - } - - return this; - } - /** - *
-     * The time when the operation was started.
-     * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - */ - public com.google.protobuf.Timestamp.Builder getOperationStartTimeBuilder() { - - onChanged(); - return getOperationStartTimeFieldBuilder().getBuilder(); - } - /** - *
-     * The time when the operation was started.
-     * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - */ - public com.google.protobuf.TimestampOrBuilder getOperationStartTimeOrBuilder() { - if (operationStartTimeBuilder_ != null) { - return operationStartTimeBuilder_.getMessageOrBuilder(); - } else { - return operationStartTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : operationStartTime_; - } - } - /** - *
-     * The time when the operation was started.
-     * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getOperationStartTimeFieldBuilder() { - if (operationStartTimeBuilder_ == null) { - operationStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getOperationStartTime(), - getParentForChildren(), - isClean()); - operationStartTime_ = null; - } - return operationStartTimeBuilder_; - } - - private java.lang.Object currentVersion_ = ""; - /** - *
-     * The current version before the upgrade.
-     * 
- * - * string current_version = 4; - * @return The currentVersion. - */ - public java.lang.String getCurrentVersion() { - java.lang.Object ref = currentVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currentVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The current version before the upgrade.
-     * 
- * - * string current_version = 4; - * @return The bytes for currentVersion. - */ - public com.google.protobuf.ByteString - getCurrentVersionBytes() { - java.lang.Object ref = currentVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - currentVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The current version before the upgrade.
-     * 
- * - * string current_version = 4; - * @param value The currentVersion to set. - * @return This builder for chaining. - */ - public Builder setCurrentVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - currentVersion_ = value; - onChanged(); - return this; - } - /** - *
-     * The current version before the upgrade.
-     * 
- * - * string current_version = 4; - * @return This builder for chaining. - */ - public Builder clearCurrentVersion() { - - currentVersion_ = getDefaultInstance().getCurrentVersion(); - onChanged(); - return this; - } - /** - *
-     * The current version before the upgrade.
-     * 
- * - * string current_version = 4; - * @param value The bytes for currentVersion to set. - * @return This builder for chaining. - */ - public Builder setCurrentVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - currentVersion_ = value; - onChanged(); - return this; - } - - private java.lang.Object targetVersion_ = ""; - /** - *
-     * The target version for the upgrade.
-     * 
- * - * string target_version = 5; - * @return The targetVersion. - */ - public java.lang.String getTargetVersion() { - java.lang.Object ref = targetVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The target version for the upgrade.
-     * 
- * - * string target_version = 5; - * @return The bytes for targetVersion. - */ - public com.google.protobuf.ByteString - getTargetVersionBytes() { - java.lang.Object ref = targetVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - targetVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The target version for the upgrade.
-     * 
- * - * string target_version = 5; - * @param value The targetVersion to set. - * @return This builder for chaining. - */ - public Builder setTargetVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - targetVersion_ = value; - onChanged(); - return this; - } - /** - *
-     * The target version for the upgrade.
-     * 
- * - * string target_version = 5; - * @return This builder for chaining. - */ - public Builder clearTargetVersion() { - - targetVersion_ = getDefaultInstance().getTargetVersion(); - onChanged(); - return this; - } - /** - *
-     * The target version for the upgrade.
-     * 
- * - * string target_version = 5; - * @param value The bytes for targetVersion to set. - * @return This builder for chaining. - */ - public Builder setTargetVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - targetVersion_ = value; - onChanged(); - return this; - } - - private java.lang.Object resource_ = ""; - /** - *
-     * Optional relative path to the resource. For example in node pool upgrades,
-     * the relative path of the node pool.
-     * 
- * - * string resource = 6; - * @return The resource. - */ - public java.lang.String getResource() { - java.lang.Object ref = resource_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resource_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional relative path to the resource. For example in node pool upgrades,
-     * the relative path of the node pool.
-     * 
- * - * string resource = 6; - * @return The bytes for resource. - */ - public com.google.protobuf.ByteString - getResourceBytes() { - java.lang.Object ref = resource_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional relative path to the resource. For example in node pool upgrades,
-     * the relative path of the node pool.
-     * 
- * - * string resource = 6; - * @param value The resource to set. - * @return This builder for chaining. - */ - public Builder setResource( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - resource_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional relative path to the resource. For example in node pool upgrades,
-     * the relative path of the node pool.
-     * 
- * - * string resource = 6; - * @return This builder for chaining. - */ - public Builder clearResource() { - - resource_ = getDefaultInstance().getResource(); - onChanged(); - return this; - } - /** - *
-     * Optional relative path to the resource. For example in node pool upgrades,
-     * the relative path of the node pool.
-     * 
- * - * string resource = 6; - * @param value The bytes for resource to set. - * @return This builder for chaining. - */ - public Builder setResourceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - resource_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index b8a4dda87565..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeEventOrBuilder.java +++ /dev/null @@ -1,137 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface UpgradeEventOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.UpgradeEvent) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * 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 deleted file mode 100644 index 30127a2e676d..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeResourceType.java +++ /dev/null @@ -1,151 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * UpgradeResourceType is the resource type that is upgrading. It is used
- * in upgrade notifications.
- * 
- * - * Protobuf enum {@code google.container.v1beta1.UpgradeResourceType} - */ -public enum UpgradeResourceType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * Default value. This shouldn't be used.
-   * 
- * - * UPGRADE_RESOURCE_TYPE_UNSPECIFIED = 0; - */ - UPGRADE_RESOURCE_TYPE_UNSPECIFIED(0), - /** - *
-   * Master / control plane
-   * 
- * - * MASTER = 1; - */ - MASTER(1), - /** - *
-   * Node pool
-   * 
- * - * NODE_POOL = 2; - */ - NODE_POOL(2), - UNRECOGNIZED(-1), - ; - - /** - *
-   * Default value. This shouldn't be used.
-   * 
- * - * UPGRADE_RESOURCE_TYPE_UNSPECIFIED = 0; - */ - public static final int UPGRADE_RESOURCE_TYPE_UNSPECIFIED_VALUE = 0; - /** - *
-   * Master / control plane
-   * 
- * - * MASTER = 1; - */ - public static final int MASTER_VALUE = 1; - /** - *
-   * Node pool
-   * 
- * - * NODE_POOL = 2; - */ - public static final int NODE_POOL_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static UpgradeResourceType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static UpgradeResourceType forNumber(int value) { - switch (value) { - case 0: return UPGRADE_RESOURCE_TYPE_UNSPECIFIED; - case 1: return MASTER; - case 2: return NODE_POOL; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - 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 deleted file mode 100644 index 41f06f126761..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetwork.java +++ /dev/null @@ -1,1549 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * UsableSubnetwork resource returns the subnetwork name, its associated network
- * and the primary CIDR range.
- * 
- * - * Protobuf type {@code google.container.v1beta1.UsableSubnetwork} - */ -public final class UsableSubnetwork extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.UsableSubnetwork) - UsableSubnetworkOrBuilder { -private static final long serialVersionUID = 0L; - // Use UsableSubnetwork.newBuilder() to construct. - private UsableSubnetwork(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UsableSubnetwork() { - subnetwork_ = ""; - network_ = ""; - ipCidrRange_ = ""; - secondaryIpRanges_ = java.util.Collections.emptyList(); - statusMessage_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UsableSubnetwork(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UsableSubnetwork_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UsableSubnetwork_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.UsableSubnetwork.class, com.google.container.v1beta1.UsableSubnetwork.Builder.class); - } - - public static final int SUBNETWORK_FIELD_NUMBER = 1; - private volatile java.lang.Object subnetwork_; - /** - *
-   * Subnetwork Name.
-   * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
-   * 
- * - * string subnetwork = 1; - * @return The subnetwork. - */ - @java.lang.Override - public java.lang.String getSubnetwork() { - java.lang.Object ref = subnetwork_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subnetwork_ = s; - return s; - } - } - /** - *
-   * Subnetwork Name.
-   * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
-   * 
- * - * string subnetwork = 1; - * @return The bytes for subnetwork. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSubnetworkBytes() { - java.lang.Object ref = subnetwork_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - subnetwork_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NETWORK_FIELD_NUMBER = 2; - private volatile java.lang.Object network_; - /** - *
-   * Network Name.
-   * Example: projects/my-project/global/networks/my-network
-   * 
- * - * string network = 2; - * @return The network. - */ - @java.lang.Override - public java.lang.String getNetwork() { - java.lang.Object ref = network_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - network_ = s; - return s; - } - } - /** - *
-   * Network Name.
-   * Example: projects/my-project/global/networks/my-network
-   * 
- * - * string network = 2; - * @return The bytes for network. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNetworkBytes() { - java.lang.Object ref = network_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - network_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IP_CIDR_RANGE_FIELD_NUMBER = 3; - private volatile java.lang.Object ipCidrRange_; - /** - *
-   * The range of internal addresses that are owned by this subnetwork.
-   * 
- * - * string ip_cidr_range = 3; - * @return The ipCidrRange. - */ - @java.lang.Override - public java.lang.String getIpCidrRange() { - java.lang.Object ref = ipCidrRange_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ipCidrRange_ = s; - return s; - } - } - /** - *
-   * The range of internal addresses that are owned by this subnetwork.
-   * 
- * - * string ip_cidr_range = 3; - * @return The bytes for ipCidrRange. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIpCidrRangeBytes() { - java.lang.Object ref = ipCidrRange_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ipCidrRange_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SECONDARY_IP_RANGES_FIELD_NUMBER = 4; - private java.util.List secondaryIpRanges_; - /** - *
-   * Secondary IP ranges.
-   * 
- * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - */ - @java.lang.Override - public java.util.List getSecondaryIpRangesList() { - return secondaryIpRanges_; - } - /** - *
-   * Secondary IP ranges.
-   * 
- * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - */ - @java.lang.Override - public java.util.List - getSecondaryIpRangesOrBuilderList() { - return secondaryIpRanges_; - } - /** - *
-   * Secondary IP ranges.
-   * 
- * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - */ - @java.lang.Override - public int getSecondaryIpRangesCount() { - return secondaryIpRanges_.size(); - } - /** - *
-   * Secondary IP ranges.
-   * 
- * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - */ - @java.lang.Override - public com.google.container.v1beta1.UsableSubnetworkSecondaryRange getSecondaryIpRanges(int index) { - return secondaryIpRanges_.get(index); - } - /** - *
-   * Secondary IP ranges.
-   * 
- * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - */ - @java.lang.Override - public com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder getSecondaryIpRangesOrBuilder( - int index) { - return secondaryIpRanges_.get(index); - } - - public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; - private volatile java.lang.Object statusMessage_; - /** - *
-   * A human readable status message representing the reasons for cases where
-   * the caller cannot use the secondary ranges under the subnet. For example if
-   * the secondary_ip_ranges is empty due to a permission issue, an insufficient
-   * permission message will be given by status_message.
-   * 
- * - * string status_message = 5; - * @return The statusMessage. - */ - @java.lang.Override - public java.lang.String getStatusMessage() { - java.lang.Object ref = statusMessage_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - statusMessage_ = s; - return s; - } - } - /** - *
-   * A human readable status message representing the reasons for cases where
-   * the caller cannot use the secondary ranges under the subnet. For example if
-   * the secondary_ip_ranges is empty due to a permission issue, an insufficient
-   * permission message will be given by status_message.
-   * 
- * - * string status_message = 5; - * @return The bytes for statusMessage. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getStatusMessageBytes() { - java.lang.Object ref = statusMessage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - statusMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - subnetwork_ = ""; - - network_ = ""; - - ipCidrRange_ = ""; - - if (secondaryIpRangesBuilder_ == null) { - secondaryIpRanges_ = java.util.Collections.emptyList(); - } else { - secondaryIpRanges_ = null; - secondaryIpRangesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - statusMessage_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UsableSubnetwork_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.UsableSubnetwork getDefaultInstanceForType() { - return com.google.container.v1beta1.UsableSubnetwork.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.UsableSubnetwork build() { - com.google.container.v1beta1.UsableSubnetwork result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.UsableSubnetwork buildPartial() { - com.google.container.v1beta1.UsableSubnetwork result = new com.google.container.v1beta1.UsableSubnetwork(this); - int from_bitField0_ = bitField0_; - result.subnetwork_ = subnetwork_; - result.network_ = network_; - result.ipCidrRange_ = ipCidrRange_; - if (secondaryIpRangesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - secondaryIpRanges_ = java.util.Collections.unmodifiableList(secondaryIpRanges_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.secondaryIpRanges_ = secondaryIpRanges_; - } else { - result.secondaryIpRanges_ = secondaryIpRangesBuilder_.build(); - } - result.statusMessage_ = statusMessage_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.UsableSubnetwork) { - return mergeFrom((com.google.container.v1beta1.UsableSubnetwork)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.UsableSubnetwork other) { - if (other == com.google.container.v1beta1.UsableSubnetwork.getDefaultInstance()) return this; - if (!other.getSubnetwork().isEmpty()) { - subnetwork_ = other.subnetwork_; - onChanged(); - } - if (!other.getNetwork().isEmpty()) { - network_ = other.network_; - onChanged(); - } - if (!other.getIpCidrRange().isEmpty()) { - ipCidrRange_ = other.ipCidrRange_; - onChanged(); - } - if (secondaryIpRangesBuilder_ == null) { - if (!other.secondaryIpRanges_.isEmpty()) { - if (secondaryIpRanges_.isEmpty()) { - secondaryIpRanges_ = other.secondaryIpRanges_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSecondaryIpRangesIsMutable(); - secondaryIpRanges_.addAll(other.secondaryIpRanges_); - } - onChanged(); - } - } else { - if (!other.secondaryIpRanges_.isEmpty()) { - if (secondaryIpRangesBuilder_.isEmpty()) { - secondaryIpRangesBuilder_.dispose(); - secondaryIpRangesBuilder_ = null; - secondaryIpRanges_ = other.secondaryIpRanges_; - bitField0_ = (bitField0_ & ~0x00000001); - secondaryIpRangesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSecondaryIpRangesFieldBuilder() : null; - } else { - secondaryIpRangesBuilder_.addAllMessages(other.secondaryIpRanges_); - } - } - } - if (!other.getStatusMessage().isEmpty()) { - statusMessage_ = other.statusMessage_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - network_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - ipCidrRange_ = input.readStringRequireUtf8(); - - 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(); - - 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; - onChanged(); - return this; - } - /** - *
-     * Subnetwork Name.
-     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
-     * 
- * - * string subnetwork = 1; - * @return This builder for chaining. - */ - public Builder clearSubnetwork() { - - subnetwork_ = getDefaultInstance().getSubnetwork(); - onChanged(); - return this; - } - /** - *
-     * Subnetwork Name.
-     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
-     * 
- * - * string subnetwork = 1; - * @param value The bytes for subnetwork to set. - * @return This builder for chaining. - */ - public Builder setSubnetworkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - subnetwork_ = value; - onChanged(); - return this; - } - - private java.lang.Object network_ = ""; - /** - *
-     * Network Name.
-     * Example: projects/my-project/global/networks/my-network
-     * 
- * - * string network = 2; - * @return The network. - */ - public java.lang.String getNetwork() { - java.lang.Object ref = network_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - network_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Network Name.
-     * Example: projects/my-project/global/networks/my-network
-     * 
- * - * string network = 2; - * @return The bytes for network. - */ - public com.google.protobuf.ByteString - getNetworkBytes() { - java.lang.Object ref = network_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - network_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Network Name.
-     * Example: projects/my-project/global/networks/my-network
-     * 
- * - * string network = 2; - * @param value The network to set. - * @return This builder for chaining. - */ - public Builder setNetwork( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - network_ = value; - onChanged(); - return this; - } - /** - *
-     * Network Name.
-     * Example: projects/my-project/global/networks/my-network
-     * 
- * - * string network = 2; - * @return This builder for chaining. - */ - public Builder clearNetwork() { - - network_ = getDefaultInstance().getNetwork(); - onChanged(); - return this; - } - /** - *
-     * Network Name.
-     * Example: projects/my-project/global/networks/my-network
-     * 
- * - * string network = 2; - * @param value The bytes for network to set. - * @return This builder for chaining. - */ - public Builder setNetworkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - network_ = value; - onChanged(); - return this; - } - - private java.lang.Object ipCidrRange_ = ""; - /** - *
-     * The range of internal addresses that are owned by this subnetwork.
-     * 
- * - * string ip_cidr_range = 3; - * @return The ipCidrRange. - */ - public java.lang.String getIpCidrRange() { - java.lang.Object ref = ipCidrRange_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ipCidrRange_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The range of internal addresses that are owned by this subnetwork.
-     * 
- * - * string ip_cidr_range = 3; - * @return The bytes for ipCidrRange. - */ - public com.google.protobuf.ByteString - getIpCidrRangeBytes() { - java.lang.Object ref = ipCidrRange_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ipCidrRange_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The range of internal addresses that are owned by this subnetwork.
-     * 
- * - * string ip_cidr_range = 3; - * @param value The ipCidrRange to set. - * @return This builder for chaining. - */ - public Builder setIpCidrRange( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ipCidrRange_ = value; - onChanged(); - return this; - } - /** - *
-     * The range of internal addresses that are owned by this subnetwork.
-     * 
- * - * string ip_cidr_range = 3; - * @return This builder for chaining. - */ - public Builder clearIpCidrRange() { - - ipCidrRange_ = getDefaultInstance().getIpCidrRange(); - onChanged(); - return this; - } - /** - *
-     * The range of internal addresses that are owned by this subnetwork.
-     * 
- * - * string ip_cidr_range = 3; - * @param value The bytes for ipCidrRange to set. - * @return This builder for chaining. - */ - public Builder setIpCidrRangeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ipCidrRange_ = value; - onChanged(); - return this; - } - - private java.util.List secondaryIpRanges_ = - java.util.Collections.emptyList(); - private void ensureSecondaryIpRangesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - secondaryIpRanges_ = new java.util.ArrayList(secondaryIpRanges_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.UsableSubnetworkSecondaryRange, com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder, com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder> secondaryIpRangesBuilder_; - - /** - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - */ - public java.util.List getSecondaryIpRangesList() { - if (secondaryIpRangesBuilder_ == null) { - return java.util.Collections.unmodifiableList(secondaryIpRanges_); - } else { - return secondaryIpRangesBuilder_.getMessageList(); - } - } - /** - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - */ - public int getSecondaryIpRangesCount() { - if (secondaryIpRangesBuilder_ == null) { - return secondaryIpRanges_.size(); - } else { - return secondaryIpRangesBuilder_.getCount(); - } - } - /** - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - */ - public com.google.container.v1beta1.UsableSubnetworkSecondaryRange getSecondaryIpRanges(int index) { - if (secondaryIpRangesBuilder_ == null) { - return secondaryIpRanges_.get(index); - } else { - return secondaryIpRangesBuilder_.getMessage(index); - } - } - /** - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - */ - public Builder setSecondaryIpRanges( - int index, com.google.container.v1beta1.UsableSubnetworkSecondaryRange value) { - if (secondaryIpRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSecondaryIpRangesIsMutable(); - secondaryIpRanges_.set(index, value); - onChanged(); - } else { - secondaryIpRangesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - */ - public Builder setSecondaryIpRanges( - int index, com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder builderForValue) { - if (secondaryIpRangesBuilder_ == null) { - ensureSecondaryIpRangesIsMutable(); - secondaryIpRanges_.set(index, builderForValue.build()); - onChanged(); - } else { - secondaryIpRangesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - */ - public Builder addSecondaryIpRanges(com.google.container.v1beta1.UsableSubnetworkSecondaryRange value) { - if (secondaryIpRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSecondaryIpRangesIsMutable(); - secondaryIpRanges_.add(value); - onChanged(); - } else { - secondaryIpRangesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - */ - public Builder addSecondaryIpRanges( - int index, com.google.container.v1beta1.UsableSubnetworkSecondaryRange value) { - if (secondaryIpRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSecondaryIpRangesIsMutable(); - secondaryIpRanges_.add(index, value); - onChanged(); - } else { - secondaryIpRangesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - */ - public Builder addSecondaryIpRanges( - com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder builderForValue) { - if (secondaryIpRangesBuilder_ == null) { - ensureSecondaryIpRangesIsMutable(); - secondaryIpRanges_.add(builderForValue.build()); - onChanged(); - } else { - secondaryIpRangesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - */ - public Builder addSecondaryIpRanges( - int index, com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder builderForValue) { - if (secondaryIpRangesBuilder_ == null) { - ensureSecondaryIpRangesIsMutable(); - secondaryIpRanges_.add(index, builderForValue.build()); - onChanged(); - } else { - secondaryIpRangesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - */ - public Builder addAllSecondaryIpRanges( - java.lang.Iterable values) { - if (secondaryIpRangesBuilder_ == null) { - ensureSecondaryIpRangesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, secondaryIpRanges_); - onChanged(); - } else { - secondaryIpRangesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - */ - public Builder clearSecondaryIpRanges() { - if (secondaryIpRangesBuilder_ == null) { - secondaryIpRanges_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - secondaryIpRangesBuilder_.clear(); - } - return this; - } - /** - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - */ - public Builder removeSecondaryIpRanges(int index) { - if (secondaryIpRangesBuilder_ == null) { - ensureSecondaryIpRangesIsMutable(); - secondaryIpRanges_.remove(index); - onChanged(); - } else { - secondaryIpRangesBuilder_.remove(index); - } - return this; - } - /** - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - */ - public com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder getSecondaryIpRangesBuilder( - int index) { - return getSecondaryIpRangesFieldBuilder().getBuilder(index); - } - /** - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - */ - public com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder getSecondaryIpRangesOrBuilder( - int index) { - if (secondaryIpRangesBuilder_ == null) { - return secondaryIpRanges_.get(index); } else { - return secondaryIpRangesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - */ - public java.util.List - getSecondaryIpRangesOrBuilderList() { - if (secondaryIpRangesBuilder_ != null) { - return secondaryIpRangesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(secondaryIpRanges_); - } - } - /** - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - */ - public com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder addSecondaryIpRangesBuilder() { - return getSecondaryIpRangesFieldBuilder().addBuilder( - com.google.container.v1beta1.UsableSubnetworkSecondaryRange.getDefaultInstance()); - } - /** - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - */ - public com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder addSecondaryIpRangesBuilder( - int index) { - return getSecondaryIpRangesFieldBuilder().addBuilder( - index, com.google.container.v1beta1.UsableSubnetworkSecondaryRange.getDefaultInstance()); - } - /** - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - */ - public java.util.List - getSecondaryIpRangesBuilderList() { - return getSecondaryIpRangesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.UsableSubnetworkSecondaryRange, com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder, com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder> - getSecondaryIpRangesFieldBuilder() { - if (secondaryIpRangesBuilder_ == null) { - secondaryIpRangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.UsableSubnetworkSecondaryRange, com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder, com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder>( - secondaryIpRanges_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - secondaryIpRanges_ = null; - } - return secondaryIpRangesBuilder_; - } - - private java.lang.Object statusMessage_ = ""; - /** - *
-     * A human readable status message representing the reasons for cases where
-     * the caller cannot use the secondary ranges under the subnet. For example if
-     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
-     * permission message will be given by status_message.
-     * 
- * - * string status_message = 5; - * @return The statusMessage. - */ - public java.lang.String getStatusMessage() { - java.lang.Object ref = statusMessage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - statusMessage_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A human readable status message representing the reasons for cases where
-     * the caller cannot use the secondary ranges under the subnet. For example if
-     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
-     * permission message will be given by status_message.
-     * 
- * - * string status_message = 5; - * @return The bytes for statusMessage. - */ - public com.google.protobuf.ByteString - getStatusMessageBytes() { - java.lang.Object ref = statusMessage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - statusMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A human readable status message representing the reasons for cases where
-     * the caller cannot use the secondary ranges under the subnet. For example if
-     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
-     * permission message will be given by status_message.
-     * 
- * - * string status_message = 5; - * @param value The statusMessage to set. - * @return This builder for chaining. - */ - public Builder setStatusMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - statusMessage_ = value; - onChanged(); - return this; - } - /** - *
-     * A human readable status message representing the reasons for cases where
-     * the caller cannot use the secondary ranges under the subnet. For example if
-     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
-     * permission message will be given by status_message.
-     * 
- * - * string status_message = 5; - * @return This builder for chaining. - */ - public Builder clearStatusMessage() { - - statusMessage_ = getDefaultInstance().getStatusMessage(); - onChanged(); - return this; - } - /** - *
-     * A human readable status message representing the reasons for cases where
-     * the caller cannot use the secondary ranges under the subnet. For example if
-     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
-     * permission message will be given by status_message.
-     * 
- * - * string status_message = 5; - * @param value The bytes for statusMessage to set. - * @return This builder for chaining. - */ - public Builder setStatusMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - statusMessage_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.UsableSubnetwork) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.UsableSubnetwork) - private static final com.google.container.v1beta1.UsableSubnetwork DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.UsableSubnetwork(); - } - - public static com.google.container.v1beta1.UsableSubnetwork getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UsableSubnetwork parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 7bf2490099a5..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetworkOrBuilder.java +++ /dev/null @@ -1,143 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface UsableSubnetworkOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.UsableSubnetwork) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Subnetwork Name.
-   * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
-   * 
- * - * string subnetwork = 1; - * @return The subnetwork. - */ - java.lang.String getSubnetwork(); - /** - *
-   * Subnetwork Name.
-   * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
-   * 
- * - * string subnetwork = 1; - * @return The bytes for subnetwork. - */ - com.google.protobuf.ByteString - getSubnetworkBytes(); - - /** - *
-   * Network Name.
-   * Example: projects/my-project/global/networks/my-network
-   * 
- * - * string network = 2; - * @return The network. - */ - java.lang.String getNetwork(); - /** - *
-   * Network Name.
-   * Example: projects/my-project/global/networks/my-network
-   * 
- * - * string network = 2; - * @return The bytes for network. - */ - com.google.protobuf.ByteString - getNetworkBytes(); - - /** - *
-   * The range of internal addresses that are owned by this subnetwork.
-   * 
- * - * string ip_cidr_range = 3; - * @return The ipCidrRange. - */ - java.lang.String getIpCidrRange(); - /** - *
-   * The range of internal addresses that are owned by this subnetwork.
-   * 
- * - * string ip_cidr_range = 3; - * @return The bytes for ipCidrRange. - */ - com.google.protobuf.ByteString - getIpCidrRangeBytes(); - - /** - *
-   * Secondary IP ranges.
-   * 
- * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - */ - java.util.List - getSecondaryIpRangesList(); - /** - *
-   * Secondary IP ranges.
-   * 
- * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - */ - com.google.container.v1beta1.UsableSubnetworkSecondaryRange getSecondaryIpRanges(int index); - /** - *
-   * Secondary IP ranges.
-   * 
- * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - */ - int getSecondaryIpRangesCount(); - /** - *
-   * Secondary IP ranges.
-   * 
- * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - */ - java.util.List - getSecondaryIpRangesOrBuilderList(); - /** - *
-   * Secondary IP ranges.
-   * 
- * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - */ - com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder getSecondaryIpRangesOrBuilder( - int index); - - /** - *
-   * A human readable status message representing the reasons for cases where
-   * the caller cannot use the secondary ranges under the subnet. For example if
-   * the secondary_ip_ranges is empty due to a permission issue, an insufficient
-   * permission message will be given by status_message.
-   * 
- * - * string status_message = 5; - * @return The statusMessage. - */ - java.lang.String getStatusMessage(); - /** - *
-   * A human readable status message representing the reasons for cases where
-   * the caller cannot use the secondary ranges under the subnet. For example if
-   * the secondary_ip_ranges is empty due to a permission issue, an insufficient
-   * permission message will be given by status_message.
-   * 
- * - * string status_message = 5; - * @return The bytes for statusMessage. - */ - com.google.protobuf.ByteString - getStatusMessageBytes(); -} diff --git a/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 deleted file mode 100644 index 728cbcedacd9..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetworkSecondaryRange.java +++ /dev/null @@ -1,1056 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Secondary IP range of a usable subnetwork.
- * 
- * - * Protobuf type {@code google.container.v1beta1.UsableSubnetworkSecondaryRange} - */ -public final class UsableSubnetworkSecondaryRange extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.UsableSubnetworkSecondaryRange) - UsableSubnetworkSecondaryRangeOrBuilder { -private static final long serialVersionUID = 0L; - // Use UsableSubnetworkSecondaryRange.newBuilder() to construct. - private UsableSubnetworkSecondaryRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UsableSubnetworkSecondaryRange() { - rangeName_ = ""; - ipCidrRange_ = ""; - status_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UsableSubnetworkSecondaryRange(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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; - private volatile java.lang.Object rangeName_; - /** - *
-   * The name associated with this subnetwork secondary range, used when adding
-   * an alias IP range to a VM instance.
-   * 
- * - * string range_name = 1; - * @return The rangeName. - */ - @java.lang.Override - public java.lang.String getRangeName() { - java.lang.Object ref = rangeName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rangeName_ = s; - return s; - } - } - /** - *
-   * The name associated with this subnetwork secondary range, used when adding
-   * an alias IP range to a VM instance.
-   * 
- * - * string range_name = 1; - * @return The bytes for rangeName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRangeNameBytes() { - java.lang.Object ref = rangeName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rangeName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IP_CIDR_RANGE_FIELD_NUMBER = 2; - private volatile java.lang.Object ipCidrRange_; - /** - *
-   * The range of IP addresses belonging to this subnetwork secondary range.
-   * 
- * - * string ip_cidr_range = 2; - * @return The ipCidrRange. - */ - @java.lang.Override - public java.lang.String getIpCidrRange() { - java.lang.Object ref = ipCidrRange_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ipCidrRange_ = s; - return s; - } - } - /** - *
-   * The range of IP addresses belonging to this subnetwork secondary range.
-   * 
- * - * string ip_cidr_range = 2; - * @return The bytes for ipCidrRange. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIpCidrRangeBytes() { - java.lang.Object ref = ipCidrRange_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ipCidrRange_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_FIELD_NUMBER = 3; - private int status_; - /** - *
-   * This field is to determine the status of the secondary range programmably.
-   * 
- * - * .google.container.v1beta1.UsableSubnetworkSecondaryRange.Status status = 3; - * @return The enum numeric value on the wire for status. - */ - @java.lang.Override public int getStatusValue() { - return status_; - } - /** - *
-   * This field is to determine the status of the secondary range programmably.
-   * 
- * - * .google.container.v1beta1.UsableSubnetworkSecondaryRange.Status status = 3; - * @return The status. - */ - @java.lang.Override public com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status getStatus() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status result = com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status.valueOf(status_); - return result == null ? com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - rangeName_ = ""; - - ipCidrRange_ = ""; - - status_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UsableSubnetworkSecondaryRange_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.UsableSubnetworkSecondaryRange getDefaultInstanceForType() { - return com.google.container.v1beta1.UsableSubnetworkSecondaryRange.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.UsableSubnetworkSecondaryRange build() { - com.google.container.v1beta1.UsableSubnetworkSecondaryRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.UsableSubnetworkSecondaryRange buildPartial() { - com.google.container.v1beta1.UsableSubnetworkSecondaryRange result = new com.google.container.v1beta1.UsableSubnetworkSecondaryRange(this); - result.rangeName_ = rangeName_; - result.ipCidrRange_ = ipCidrRange_; - result.status_ = status_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.UsableSubnetworkSecondaryRange) { - return mergeFrom((com.google.container.v1beta1.UsableSubnetworkSecondaryRange)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.UsableSubnetworkSecondaryRange other) { - if (other == com.google.container.v1beta1.UsableSubnetworkSecondaryRange.getDefaultInstance()) return this; - if (!other.getRangeName().isEmpty()) { - rangeName_ = other.rangeName_; - onChanged(); - } - if (!other.getIpCidrRange().isEmpty()) { - ipCidrRange_ = other.ipCidrRange_; - onChanged(); - } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - ipCidrRange_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: { - status_ = input.readEnum(); - - 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 java.lang.Object rangeName_ = ""; - /** - *
-     * The name associated with this subnetwork secondary range, used when adding
-     * an alias IP range to a VM instance.
-     * 
- * - * string range_name = 1; - * @return The rangeName. - */ - public java.lang.String getRangeName() { - java.lang.Object ref = rangeName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rangeName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name associated with this subnetwork secondary range, used when adding
-     * an alias IP range to a VM instance.
-     * 
- * - * string range_name = 1; - * @return The bytes for rangeName. - */ - public com.google.protobuf.ByteString - getRangeNameBytes() { - java.lang.Object ref = rangeName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rangeName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name associated with this subnetwork secondary range, used when adding
-     * an alias IP range to a VM instance.
-     * 
- * - * string range_name = 1; - * @param value The rangeName to set. - * @return This builder for chaining. - */ - public Builder setRangeName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - rangeName_ = value; - onChanged(); - return this; - } - /** - *
-     * The name associated with this subnetwork secondary range, used when adding
-     * an alias IP range to a VM instance.
-     * 
- * - * string range_name = 1; - * @return This builder for chaining. - */ - public Builder clearRangeName() { - - rangeName_ = getDefaultInstance().getRangeName(); - onChanged(); - return this; - } - /** - *
-     * The name associated with this subnetwork secondary range, used when adding
-     * an alias IP range to a VM instance.
-     * 
- * - * string range_name = 1; - * @param value The bytes for rangeName to set. - * @return This builder for chaining. - */ - public Builder setRangeNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - rangeName_ = value; - onChanged(); - return this; - } - - private java.lang.Object ipCidrRange_ = ""; - /** - *
-     * The range of IP addresses belonging to this subnetwork secondary range.
-     * 
- * - * string ip_cidr_range = 2; - * @return The ipCidrRange. - */ - public java.lang.String getIpCidrRange() { - java.lang.Object ref = ipCidrRange_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ipCidrRange_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The range of IP addresses belonging to this subnetwork secondary range.
-     * 
- * - * string ip_cidr_range = 2; - * @return The bytes for ipCidrRange. - */ - public com.google.protobuf.ByteString - getIpCidrRangeBytes() { - java.lang.Object ref = ipCidrRange_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ipCidrRange_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The range of IP addresses belonging to this subnetwork secondary range.
-     * 
- * - * string ip_cidr_range = 2; - * @param value The ipCidrRange to set. - * @return This builder for chaining. - */ - public Builder setIpCidrRange( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ipCidrRange_ = value; - onChanged(); - return this; - } - /** - *
-     * The range of IP addresses belonging to this subnetwork secondary range.
-     * 
- * - * string ip_cidr_range = 2; - * @return This builder for chaining. - */ - public Builder clearIpCidrRange() { - - ipCidrRange_ = getDefaultInstance().getIpCidrRange(); - onChanged(); - return this; - } - /** - *
-     * The range of IP addresses belonging to this subnetwork secondary range.
-     * 
- * - * string ip_cidr_range = 2; - * @param value The bytes for ipCidrRange to set. - * @return This builder for chaining. - */ - public Builder setIpCidrRangeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ipCidrRange_ = value; - onChanged(); - return this; - } - - private int status_ = 0; - /** - *
-     * This field is to determine the status of the secondary range programmably.
-     * 
- * - * .google.container.v1beta1.UsableSubnetworkSecondaryRange.Status status = 3; - * @return The enum numeric value on the wire for status. - */ - @java.lang.Override public int getStatusValue() { - return status_; - } - /** - *
-     * This field is to determine the status of the secondary range programmably.
-     * 
- * - * .google.container.v1beta1.UsableSubnetworkSecondaryRange.Status status = 3; - * @param value The enum numeric value on the wire for status to set. - * @return This builder for chaining. - */ - public Builder setStatusValue(int value) { - - status_ = value; - onChanged(); - return this; - } - /** - *
-     * This field is to determine the status of the secondary range programmably.
-     * 
- * - * .google.container.v1beta1.UsableSubnetworkSecondaryRange.Status status = 3; - * @return The status. - */ - @java.lang.Override - public com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status getStatus() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status result = com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status.valueOf(status_); - return result == null ? com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status.UNRECOGNIZED : result; - } - /** - *
-     * This field is to determine the status of the secondary range programmably.
-     * 
- * - * .google.container.v1beta1.UsableSubnetworkSecondaryRange.Status status = 3; - * @param value The status to set. - * @return This builder for chaining. - */ - public Builder setStatus(com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status value) { - if (value == null) { - throw new NullPointerException(); - } - - status_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * This field is to determine the status of the secondary range programmably.
-     * 
- * - * .google.container.v1beta1.UsableSubnetworkSecondaryRange.Status status = 3; - * @return This builder for chaining. - */ - public Builder clearStatus() { - - status_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.UsableSubnetworkSecondaryRange) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.UsableSubnetworkSecondaryRange) - private static final com.google.container.v1beta1.UsableSubnetworkSecondaryRange DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.UsableSubnetworkSecondaryRange(); - } - - public static com.google.container.v1beta1.UsableSubnetworkSecondaryRange getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UsableSubnetworkSecondaryRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 9ef6f7566751..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetworkSecondaryRangeOrBuilder.java +++ /dev/null @@ -1,70 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface UsableSubnetworkSecondaryRangeOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.UsableSubnetworkSecondaryRange) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The name associated with this subnetwork secondary range, used when adding
-   * an alias IP range to a VM instance.
-   * 
- * - * string range_name = 1; - * @return The rangeName. - */ - java.lang.String getRangeName(); - /** - *
-   * The name associated with this subnetwork secondary range, used when adding
-   * an alias IP range to a VM instance.
-   * 
- * - * string range_name = 1; - * @return The bytes for rangeName. - */ - com.google.protobuf.ByteString - getRangeNameBytes(); - - /** - *
-   * The range of IP addresses belonging to this subnetwork secondary range.
-   * 
- * - * string ip_cidr_range = 2; - * @return The ipCidrRange. - */ - java.lang.String getIpCidrRange(); - /** - *
-   * The range of IP addresses belonging to this subnetwork secondary range.
-   * 
- * - * string ip_cidr_range = 2; - * @return The bytes for ipCidrRange. - */ - com.google.protobuf.ByteString - getIpCidrRangeBytes(); - - /** - *
-   * This field is to determine the status of the secondary range programmably.
-   * 
- * - * .google.container.v1beta1.UsableSubnetworkSecondaryRange.Status status = 3; - * @return The enum numeric value on the wire for status. - */ - int getStatusValue(); - /** - *
-   * This field is to determine the status of the secondary range programmably.
-   * 
- * - * .google.container.v1beta1.UsableSubnetworkSecondaryRange.Status status = 3; - * @return The status. - */ - com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status getStatus(); -} diff --git a/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 deleted file mode 100644 index 81c372292690..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VerticalPodAutoscaling.java +++ /dev/null @@ -1,494 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * VerticalPodAutoscaling contains global, per-cluster information
- * required by Vertical Pod Autoscaler to automatically adjust
- * the resources of pods controlled by it.
- * 
- * - * Protobuf type {@code google.container.v1beta1.VerticalPodAutoscaling} - */ -public final class VerticalPodAutoscaling extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.VerticalPodAutoscaling) - VerticalPodAutoscalingOrBuilder { -private static final long serialVersionUID = 0L; - // Use VerticalPodAutoscaling.newBuilder() to construct. - private VerticalPodAutoscaling(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private VerticalPodAutoscaling() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new VerticalPodAutoscaling(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_VerticalPodAutoscaling_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_VerticalPodAutoscaling_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.VerticalPodAutoscaling.class, com.google.container.v1beta1.VerticalPodAutoscaling.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-   * Enables vertical pod autoscaling.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - 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(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_VerticalPodAutoscaling_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.VerticalPodAutoscaling getDefaultInstanceForType() { - return com.google.container.v1beta1.VerticalPodAutoscaling.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.VerticalPodAutoscaling build() { - com.google.container.v1beta1.VerticalPodAutoscaling result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.VerticalPodAutoscaling buildPartial() { - com.google.container.v1beta1.VerticalPodAutoscaling result = new com.google.container.v1beta1.VerticalPodAutoscaling(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.VerticalPodAutoscaling) { - return mergeFrom((com.google.container.v1beta1.VerticalPodAutoscaling)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.VerticalPodAutoscaling other) { - if (other == com.google.container.v1beta1.VerticalPodAutoscaling.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 boolean enabled_ ; - /** - *
-     * Enables vertical pod autoscaling.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Enables vertical pod autoscaling.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Enables vertical pod autoscaling.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.VerticalPodAutoscaling) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.VerticalPodAutoscaling) - private static final com.google.container.v1beta1.VerticalPodAutoscaling DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.VerticalPodAutoscaling(); - } - - public static com.google.container.v1beta1.VerticalPodAutoscaling getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VerticalPodAutoscaling parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 782a7a5c0619..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VerticalPodAutoscalingOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface VerticalPodAutoscalingOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.VerticalPodAutoscaling) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Enables vertical pod autoscaling.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/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 deleted file mode 100644 index c3320314399d..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VirtualNIC.java +++ /dev/null @@ -1,490 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * 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(); - 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); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.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(); - - 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 boolean enabled_ ; - /** - *
-     * Whether gVNIC features are enabled in the node pool.
-     * 
- * - * bool enabled = 1; - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - *
-     * Whether gVNIC features are enabled in the node pool.
-     * 
- * - * bool enabled = 1; - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether gVNIC features are enabled in the node pool.
-     * 
- * - * bool enabled = 1; - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.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 deleted file mode 100644 index 2d3fd0171f3f..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VirtualNICOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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/WindowsVersions.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WindowsVersions.java deleted file mode 100644 index 95fe00b0faa3..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WindowsVersions.java +++ /dev/null @@ -1,1887 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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); - } - - public static final int IMAGE_TYPE_FIELD_NUMBER = 1; - 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; - 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 supportEndDate_ != null; - } - /** - *
-     * 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 getSupportEndDate(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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 (supportEndDate_ != null) { - 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 (supportEndDate_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - imageType_ = ""; - - osVersion_ = ""; - - if (supportEndDateBuilder_ == null) { - supportEndDate_ = null; - } else { - supportEndDate_ = null; - 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); - result.imageType_ = imageType_; - result.osVersion_ = osVersion_; - if (supportEndDateBuilder_ == null) { - result.supportEndDate_ = supportEndDate_; - } else { - result.supportEndDate_ = supportEndDateBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.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_; - onChanged(); - } - if (!other.getOsVersion().isEmpty()) { - osVersion_ = other.osVersion_; - 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(); - - break; - } // case 10 - case 18: { - osVersion_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - input.readMessage( - getSupportEndDateFieldBuilder().getBuilder(), - extensionRegistry); - - 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 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; - onChanged(); - return this; - } - /** - *
-       * Windows server image type
-       * 
- * - * string image_type = 1; - * @return This builder for chaining. - */ - public Builder clearImageType() { - - imageType_ = getDefaultInstance().getImageType(); - 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; - 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; - onChanged(); - return this; - } - /** - *
-       * Windows server build number
-       * 
- * - * string os_version = 2; - * @return This builder for chaining. - */ - public Builder clearOsVersion() { - - osVersion_ = getDefaultInstance().getOsVersion(); - 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; - 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 supportEndDateBuilder_ != null || supportEndDate_ != null; - } - /** - *
-       * 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; - onChanged(); - } else { - supportEndDateBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - supportEndDateBuilder_.setMessage(builderForValue.build()); - } - - 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 (supportEndDate_ != null) { - supportEndDate_ = - com.google.type.Date.newBuilder(supportEndDate_).mergeFrom(value).buildPartial(); - } else { - supportEndDate_ = value; - } - onChanged(); - } else { - supportEndDateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Mainstream support end date
-       * 
- * - * .google.type.Date support_end_date = 3; - */ - public Builder clearSupportEndDate() { - if (supportEndDateBuilder_ == null) { - supportEndDate_ = null; - onChanged(); - } else { - supportEndDate_ = null; - supportEndDateBuilder_ = null; - } - - return this; - } - /** - *
-       * Mainstream support end date
-       * 
- * - * .google.type.Date support_end_date = 3; - */ - public com.google.type.Date.Builder getSupportEndDateBuilder() { - - 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; - 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(); - 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); - int from_bitField0_ = bitField0_; - if (windowsVersionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - windowsVersions_ = java.util.Collections.unmodifiableList(windowsVersions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.windowsVersions_ = windowsVersions_; - } else { - result.windowsVersions_ = windowsVersionsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.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 deleted file mode 100644 index 8c6097ec96fa..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WindowsVersionsOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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 deleted file mode 100644 index f6b4c4133753..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadALTSConfig.java +++ /dev/null @@ -1,687 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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); - } - - 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 enableAlts_ != null; - } - /** - *
-   * 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 getEnableAlts(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enableAlts_ != null) { - output.writeMessage(1, getEnableAlts()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (enableAlts_ != null) { - 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (enableAltsBuilder_ == null) { - enableAlts_ = null; - } else { - enableAlts_ = null; - 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 (enableAltsBuilder_ == null) { - result.enableAlts_ = enableAlts_; - } else { - result.enableAlts_ = enableAltsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.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); - - 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 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 enableAltsBuilder_ != null || enableAlts_ != null; - } - /** - *
-     * 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; - onChanged(); - } else { - enableAltsBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - enableAltsBuilder_.setMessage(builderForValue.build()); - } - - 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 (enableAlts_ != null) { - enableAlts_ = - com.google.protobuf.BoolValue.newBuilder(enableAlts_).mergeFrom(value).buildPartial(); - } else { - enableAlts_ = value; - } - onChanged(); - } else { - enableAltsBuilder_.mergeFrom(value); - } - - 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() { - if (enableAltsBuilder_ == null) { - enableAlts_ = null; - onChanged(); - } else { - enableAlts_ = null; - enableAltsBuilder_ = null; - } - - 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() { - - 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 deleted file mode 100644 index 44f95119b3ec..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadALTSConfigOrBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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 deleted file mode 100644 index ab49487cd4c6..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadCertificates.java +++ /dev/null @@ -1,711 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Configuration for issuance of mTLS keys and certificates to Kubernetes pods.
- * 
- * - * Protobuf type {@code google.container.v1beta1.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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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); - } - - 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 enableCertificates_ != null; - } - /** - *
-   * enable_certificates controls issuance of workload mTLS certificates.
-   * If set, the GKE Workload Identity Certificates controller and node agent
-   * will be deployed in the cluster, which can then be configured by creating a
-   * WorkloadCertificateConfig Custom Resource.
-   * Requires Workload Identity
-   * ([workload_pool][google.container.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 getEnableCertificates(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enableCertificates_ != null) { - output.writeMessage(1, getEnableCertificates()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (enableCertificates_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getEnableCertificates()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (enableCertificatesBuilder_ == null) { - enableCertificates_ = null; - } else { - enableCertificates_ = null; - enableCertificatesBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_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 (enableCertificatesBuilder_ == null) { - result.enableCertificates_ = enableCertificates_; - } else { - result.enableCertificates_ = enableCertificatesBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.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); - - 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 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 enableCertificatesBuilder_ != null || enableCertificates_ != null; - } - /** - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     * Requires Workload Identity
-     * ([workload_pool][google.container.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; - onChanged(); - } else { - enableCertificatesBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     * Requires Workload Identity
-     * ([workload_pool][google.container.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(); - onChanged(); - } else { - enableCertificatesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     * Requires Workload Identity
-     * ([workload_pool][google.container.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 (enableCertificates_ != null) { - enableCertificates_ = - com.google.protobuf.BoolValue.newBuilder(enableCertificates_).mergeFrom(value).buildPartial(); - } else { - enableCertificates_ = value; - } - onChanged(); - } else { - enableCertificatesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - public Builder clearEnableCertificates() { - if (enableCertificatesBuilder_ == null) { - enableCertificates_ = null; - onChanged(); - } else { - enableCertificates_ = null; - enableCertificatesBuilder_ = null; - } - - return this; - } - /** - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - public com.google.protobuf.BoolValue.Builder getEnableCertificatesBuilder() { - - onChanged(); - return getEnableCertificatesFieldBuilder().getBuilder(); - } - /** - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     * Requires Workload Identity
-     * ([workload_pool][google.container.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/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 deleted file mode 100644 index 0a44b29baadc..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadConfig.java +++ /dev/null @@ -1,756 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.WorkloadConfig.Mode result = com.google.container.v1beta1.WorkloadConfig.Mode.valueOf(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(); - auditMode_ = 0; - 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_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); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - to_bitField0_ |= 0x00000001; - } - result.auditMode_ = auditMode_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.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) { - bitField0_ |= 0x00000001; - auditMode_ = value; - 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() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.WorkloadConfig.Mode result = com.google.container.v1beta1.WorkloadConfig.Mode.valueOf(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 deleted file mode 100644 index e8ad8c377514..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadConfigOrBuilder.java +++ /dev/null @@ -1,37 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -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 deleted file mode 100644 index ff87e7c7c41b..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfig.java +++ /dev/null @@ -1,920 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * Configuration for the use of Kubernetes Service Accounts in GCP IAM
- * policies.
- * 
- * - * Protobuf type {@code google.container.v1beta1.WorkloadIdentityConfig} - */ -public final class WorkloadIdentityConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.WorkloadIdentityConfig) - WorkloadIdentityConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use WorkloadIdentityConfig.newBuilder() to construct. - private WorkloadIdentityConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkloadIdentityConfig() { - identityNamespace_ = ""; - workloadPool_ = ""; - identityProvider_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WorkloadIdentityConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WorkloadIdentityConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WorkloadIdentityConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.WorkloadIdentityConfig.class, com.google.container.v1beta1.WorkloadIdentityConfig.Builder.class); - } - - public static final int IDENTITY_NAMESPACE_FIELD_NUMBER = 1; - private volatile java.lang.Object identityNamespace_; - /** - *
-   * IAM Identity Namespace to attach all Kubernetes Service Accounts to.
-   * 
- * - * string identity_namespace = 1 [deprecated = true]; - * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4651 - * @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=4651 - * @return The bytes for identityNamespace. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getIdentityNamespaceBytes() { - java.lang.Object ref = identityNamespace_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - identityNamespace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int WORKLOAD_POOL_FIELD_NUMBER = 2; - private volatile java.lang.Object workloadPool_; - /** - *
-   * The workload pool to attach all Kubernetes service accounts to.
-   * 
- * - * string workload_pool = 2; - * @return The workloadPool. - */ - @java.lang.Override - public java.lang.String getWorkloadPool() { - java.lang.Object ref = workloadPool_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workloadPool_ = s; - return s; - } - } - /** - *
-   * The workload pool to attach all Kubernetes service accounts to.
-   * 
- * - * string workload_pool = 2; - * @return The bytes for workloadPool. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getWorkloadPoolBytes() { - java.lang.Object ref = workloadPool_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workloadPool_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IDENTITY_PROVIDER_FIELD_NUMBER = 3; - private volatile java.lang.Object identityProvider_; - /** - *
-   * identity provider is the third party identity provider.
-   * 
- * - * string identity_provider = 3; - * @return The identityProvider. - */ - @java.lang.Override - public java.lang.String getIdentityProvider() { - java.lang.Object ref = identityProvider_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - identityProvider_ = s; - return s; - } - } - /** - *
-   * identity provider is the third party identity provider.
-   * 
- * - * string identity_provider = 3; - * @return The bytes for identityProvider. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdentityProviderBytes() { - java.lang.Object ref = identityProvider_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - identityProvider_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!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(); - identityNamespace_ = ""; - - workloadPool_ = ""; - - identityProvider_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WorkloadIdentityConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.WorkloadIdentityConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.WorkloadIdentityConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.WorkloadIdentityConfig build() { - com.google.container.v1beta1.WorkloadIdentityConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.WorkloadIdentityConfig buildPartial() { - com.google.container.v1beta1.WorkloadIdentityConfig result = new com.google.container.v1beta1.WorkloadIdentityConfig(this); - result.identityNamespace_ = identityNamespace_; - result.workloadPool_ = workloadPool_; - result.identityProvider_ = identityProvider_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.WorkloadIdentityConfig) { - return mergeFrom((com.google.container.v1beta1.WorkloadIdentityConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.WorkloadIdentityConfig other) { - if (other == com.google.container.v1beta1.WorkloadIdentityConfig.getDefaultInstance()) return this; - if (!other.getIdentityNamespace().isEmpty()) { - identityNamespace_ = other.identityNamespace_; - onChanged(); - } - if (!other.getWorkloadPool().isEmpty()) { - workloadPool_ = other.workloadPool_; - onChanged(); - } - if (!other.getIdentityProvider().isEmpty()) { - identityProvider_ = other.identityProvider_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: { - workloadPool_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - identityProvider_ = input.readStringRequireUtf8(); - - 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 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=4651 - * @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=4651 - * @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=4651 - * @param value The identityNamespace to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setIdentityNamespace( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - identityNamespace_ = value; - onChanged(); - return this; - } - /** - *
-     * IAM Identity Namespace to attach all Kubernetes Service Accounts to.
-     * 
- * - * string identity_namespace = 1 [deprecated = true]; - * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4651 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearIdentityNamespace() { - - identityNamespace_ = getDefaultInstance().getIdentityNamespace(); - onChanged(); - return this; - } - /** - *
-     * IAM Identity Namespace to attach all Kubernetes Service Accounts to.
-     * 
- * - * string identity_namespace = 1 [deprecated = true]; - * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4651 - * @param value The bytes for identityNamespace to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setIdentityNamespaceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - identityNamespace_ = value; - onChanged(); - return this; - } - - private java.lang.Object workloadPool_ = ""; - /** - *
-     * The workload pool to attach all Kubernetes service accounts to.
-     * 
- * - * string workload_pool = 2; - * @return The workloadPool. - */ - public java.lang.String getWorkloadPool() { - java.lang.Object ref = workloadPool_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workloadPool_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The workload pool to attach all Kubernetes service accounts to.
-     * 
- * - * string workload_pool = 2; - * @return The bytes for workloadPool. - */ - public com.google.protobuf.ByteString - getWorkloadPoolBytes() { - java.lang.Object ref = workloadPool_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workloadPool_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The workload pool to attach all Kubernetes service accounts to.
-     * 
- * - * string workload_pool = 2; - * @param value The workloadPool to set. - * @return This builder for chaining. - */ - public Builder setWorkloadPool( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - workloadPool_ = value; - onChanged(); - return this; - } - /** - *
-     * The workload pool to attach all Kubernetes service accounts to.
-     * 
- * - * string workload_pool = 2; - * @return This builder for chaining. - */ - public Builder clearWorkloadPool() { - - workloadPool_ = getDefaultInstance().getWorkloadPool(); - onChanged(); - return this; - } - /** - *
-     * The workload pool to attach all Kubernetes service accounts to.
-     * 
- * - * string workload_pool = 2; - * @param value The bytes for workloadPool to set. - * @return This builder for chaining. - */ - public Builder setWorkloadPoolBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - workloadPool_ = value; - onChanged(); - return this; - } - - private java.lang.Object identityProvider_ = ""; - /** - *
-     * identity provider is the third party identity provider.
-     * 
- * - * string identity_provider = 3; - * @return The identityProvider. - */ - public java.lang.String getIdentityProvider() { - java.lang.Object ref = identityProvider_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - identityProvider_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * identity provider is the third party identity provider.
-     * 
- * - * string identity_provider = 3; - * @return The bytes for identityProvider. - */ - public com.google.protobuf.ByteString - getIdentityProviderBytes() { - java.lang.Object ref = identityProvider_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - identityProvider_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * identity provider is the third party identity provider.
-     * 
- * - * string identity_provider = 3; - * @param value The identityProvider to set. - * @return This builder for chaining. - */ - public Builder setIdentityProvider( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - identityProvider_ = value; - onChanged(); - return this; - } - /** - *
-     * identity provider is the third party identity provider.
-     * 
- * - * string identity_provider = 3; - * @return This builder for chaining. - */ - public Builder clearIdentityProvider() { - - identityProvider_ = getDefaultInstance().getIdentityProvider(); - onChanged(); - return this; - } - /** - *
-     * identity provider is the third party identity provider.
-     * 
- * - * string identity_provider = 3; - * @param value The bytes for identityProvider to set. - * @return This builder for chaining. - */ - public Builder setIdentityProviderBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - identityProvider_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.WorkloadIdentityConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.WorkloadIdentityConfig) - private static final com.google.container.v1beta1.WorkloadIdentityConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.WorkloadIdentityConfig(); - } - - public static com.google.container.v1beta1.WorkloadIdentityConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkloadIdentityConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index b56b3dbd0e50..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfigOrBuilder.java +++ /dev/null @@ -1,73 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface WorkloadIdentityConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.WorkloadIdentityConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * IAM Identity Namespace to attach all Kubernetes Service Accounts to.
-   * 
- * - * string identity_namespace = 1 [deprecated = true]; - * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4651 - * @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=4651 - * @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 deleted file mode 100644 index b36ca17628c0..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfig.java +++ /dev/null @@ -1,1022 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -/** - *
- * WorkloadMetadataConfig defines the metadata configuration to expose to
- * workloads on the node pool.
- * 
- * - * Protobuf type {@code google.container.v1beta1.WorkloadMetadataConfig} - */ -public final class WorkloadMetadataConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.WorkloadMetadataConfig) - WorkloadMetadataConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use WorkloadMetadataConfig.newBuilder() to construct. - private WorkloadMetadataConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkloadMetadataConfig() { - nodeMetadata_ = 0; - mode_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WorkloadMetadataConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - 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_; - /** - *
-   * 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=4248 - * @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=4248 - * @return The nodeMetadata. - */ - @java.lang.Override @java.lang.Deprecated public com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata getNodeMetadata() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata result = com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata.valueOf(nodeMetadata_); - return result == null ? com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata.UNRECOGNIZED : result; - } - - public static final int MODE_FIELD_NUMBER = 2; - private int mode_; - /** - *
-   * Mode is the configuration for how to expose metadata to workloads running
-   * on the node pool.
-   * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig.Mode mode = 2; - * @return The enum numeric value on the wire for mode. - */ - @java.lang.Override public int getModeValue() { - return mode_; - } - /** - *
-   * Mode is the configuration for how to expose metadata to workloads running
-   * on the node pool.
-   * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig.Mode mode = 2; - * @return The mode. - */ - @java.lang.Override public com.google.container.v1beta1.WorkloadMetadataConfig.Mode getMode() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.WorkloadMetadataConfig.Mode result = com.google.container.v1beta1.WorkloadMetadataConfig.Mode.valueOf(mode_); - return result == null ? com.google.container.v1beta1.WorkloadMetadataConfig.Mode.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (nodeMetadata_ != com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata.UNSPECIFIED.getNumber()) { - output.writeEnum(1, nodeMetadata_); - } - if (mode_ != com.google.container.v1beta1.WorkloadMetadataConfig.Mode.MODE_UNSPECIFIED.getNumber()) { - output.writeEnum(2, mode_); - } - 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(); - nodeMetadata_ = 0; - - mode_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WorkloadMetadataConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.WorkloadMetadataConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.WorkloadMetadataConfig build() { - com.google.container.v1beta1.WorkloadMetadataConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.WorkloadMetadataConfig buildPartial() { - com.google.container.v1beta1.WorkloadMetadataConfig result = new com.google.container.v1beta1.WorkloadMetadataConfig(this); - result.nodeMetadata_ = nodeMetadata_; - result.mode_ = mode_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.WorkloadMetadataConfig) { - return mergeFrom((com.google.container.v1beta1.WorkloadMetadataConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.WorkloadMetadataConfig other) { - if (other == com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance()) return this; - if (other.nodeMetadata_ != 0) { - setNodeMetadataValue(other.getNodeMetadataValue()); - } - if (other.mode_ != 0) { - setModeValue(other.getModeValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 8 - case 16: { - mode_ = input.readEnum(); - - 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 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=4248 - * @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=4248 - * @param value The enum numeric value on the wire for nodeMetadata to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setNodeMetadataValue(int value) { - - nodeMetadata_ = value; - onChanged(); - return this; - } - /** - *
-     * NodeMetadata is the configuration for how to expose metadata to the
-     * workloads running on the node.
-     * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata node_metadata = 1 [deprecated = true]; - * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4248 - * @return The nodeMetadata. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata getNodeMetadata() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata result = com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata.valueOf(nodeMetadata_); - return result == null ? com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata.UNRECOGNIZED : result; - } - /** - *
-     * NodeMetadata is the configuration for how to expose metadata to the
-     * workloads running on the node.
-     * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata node_metadata = 1 [deprecated = true]; - * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4248 - * @param value The nodeMetadata to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setNodeMetadata(com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata value) { - if (value == null) { - throw new NullPointerException(); - } - - nodeMetadata_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * NodeMetadata is the configuration for how to expose metadata to the
-     * workloads running on the node.
-     * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata node_metadata = 1 [deprecated = true]; - * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4248 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearNodeMetadata() { - - nodeMetadata_ = 0; - onChanged(); - return this; - } - - private int mode_ = 0; - /** - *
-     * Mode is the configuration for how to expose metadata to workloads running
-     * on the node pool.
-     * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig.Mode mode = 2; - * @return The enum numeric value on the wire for mode. - */ - @java.lang.Override public int getModeValue() { - return mode_; - } - /** - *
-     * Mode is the configuration for how to expose metadata to workloads running
-     * on the node pool.
-     * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig.Mode mode = 2; - * @param value The enum numeric value on the wire for mode to set. - * @return This builder for chaining. - */ - public Builder setModeValue(int value) { - - mode_ = value; - onChanged(); - return this; - } - /** - *
-     * Mode is the configuration for how to expose metadata to workloads running
-     * on the node pool.
-     * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig.Mode mode = 2; - * @return The mode. - */ - @java.lang.Override - public com.google.container.v1beta1.WorkloadMetadataConfig.Mode getMode() { - @SuppressWarnings("deprecation") - com.google.container.v1beta1.WorkloadMetadataConfig.Mode result = com.google.container.v1beta1.WorkloadMetadataConfig.Mode.valueOf(mode_); - return result == null ? com.google.container.v1beta1.WorkloadMetadataConfig.Mode.UNRECOGNIZED : result; - } - /** - *
-     * Mode is the configuration for how to expose metadata to workloads running
-     * on the node pool.
-     * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig.Mode mode = 2; - * @param value The mode to set. - * @return This builder for chaining. - */ - public Builder setMode(com.google.container.v1beta1.WorkloadMetadataConfig.Mode value) { - if (value == null) { - throw new NullPointerException(); - } - - mode_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Mode is the configuration for how to expose metadata to workloads running
-     * on the node pool.
-     * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig.Mode mode = 2; - * @return This builder for chaining. - */ - public Builder clearMode() { - - mode_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.WorkloadMetadataConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.WorkloadMetadataConfig) - private static final com.google.container.v1beta1.WorkloadMetadataConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.WorkloadMetadataConfig(); - } - - public static com.google.container.v1beta1.WorkloadMetadataConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkloadMetadataConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.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 deleted file mode 100644 index 447ad850c733..000000000000 --- a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfigOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1beta1/cluster_service.proto - -package com.google.container.v1beta1; - -public interface WorkloadMetadataConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.WorkloadMetadataConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * NodeMetadata is the configuration for how to expose metadata to the
-   * workloads running on the node.
-   * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata node_metadata = 1 [deprecated = true]; - * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4248 - * @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=4248 - * @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(); -}